:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #070707;
  --surface-2: #101010;
  --ink: #f4f7fb;
  --muted: #8b949e;
  --line: #252525;
  --accent: #2dd4bf;
  --accent-dark: #14b8a6;
  --blue: #60a5fa;
  --red: #fb7185;
  --gold: #fbbf24;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button, input, select { font: inherit; }

button {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--accent);
  color: #07110f;
  font-weight: 900;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }
button.selected { background: var(--blue); color: #07111f; }
button:disabled { cursor: not-allowed; opacity: .48; }

input,
select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #10131a;
  color: var(--ink);
  outline: none;
}

input::placeholder { color: #6f7a89; }

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .16);
}

.shell {
  width: min(1280px, calc(100% - 12px));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: end;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.brand span,
.label,
.stats span,
.panel-head span,
.subhead,
.inventory span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--muted);
}

.brand span { color: var(--accent); }

.brand p {
  margin-top: 4px;
  color: #c8d1dc;
  font-weight: 700;
}

h1, h2, p { margin: 0; }

h1 {
  margin-top: 4px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: 0;
}

h2 { font-size: 17px; }
h2 { font-size: 16px; }

.session-card {
  width: min(360px, 100%);
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  background: rgba(15, 17, 21, .78);
  backdrop-filter: blur(10px);
}

.session-card strong { font-size: 22px; }
.session-card strong { font-size: 19px; }

.auth-card {
  width: min(420px, 100%);
}

.auth-form {
  display: grid;
  gap: 6px;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.auth-actions button {
  padding: 0 10px;
}

#registerButton,
#logoutButton {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

#registerButton:hover,
#logoutButton:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.compact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.room-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.wide-action {
  width: 100%;
  margin-top: 6px;
}

.select-block {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.select-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr) 285px;
  gap: 8px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.panel,
.game-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 26, 33, .94);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.panel { padding: 10px; }

.game-board {
  min-height: 0;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-head,
.game-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.panel-head {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.subhead {
  margin: 10px 0 6px;
  color: var(--accent);
}

.person-list,
.shop-list,
ol {
  display: grid;
  gap: 6px;
}

.people-panel .person-list {
  max-height: 68px;
  overflow: auto;
}

.person,
li,
.stats div,
.match-strip div,
.inventory div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.person {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 7px 8px;
  min-height: 42px;
}

.person > div {
  min-width: 0;
}

.person strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person span,
li small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.empty-person {
  grid-template-columns: minmax(0, 1fr);
}

.busy-person {
  opacity: .62;
}

.person button {
  min-height: 30px;
  padding: 0 8px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.person button:hover { border-color: var(--accent); color: var(--accent); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 6px;
}

.stats div { padding: 7px 8px; }

.stats div,
.match-strip div,
.inventory div {
  min-width: 0;
  container-type: inline-size;
}

.stats strong {
  display: block;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(15px, 24cqw, 24px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.match-strip div { padding: 8px; }

.match-strip strong {
  display: block;
  margin-top: 5px;
  color: var(--red);
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(15px, 22cqw, 22px);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.xp-panel {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c0f14;
}

.xp-panel > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.xp-panel strong,
.xp-panel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xp-panel strong {
  color: var(--accent);
  font-size: 13px;
}

.xp-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.xp-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #1f2937;
}

.xp-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

#timeLeft {
  color: var(--gold);
}

.stake-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 6px;
  align-items: center;
}

.toggle {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10131a;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.letter-stage {
  flex: 1;
  min-height: 190px;
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #050505;
}

.letter-card {
  display: grid;
  place-items: center;
  width: min(100%, 140px);
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid rgba(45, 212, 191, .35);
  border-radius: 8px;
  background: #07110f;
  color: var(--accent);
  font-size: clamp(58px, 9vw, 96px);
  font-weight: 950;
  box-shadow: inset 0 0 40px rgba(45, 212, 191, .08), 0 20px 44px rgba(0,0,0,.3);
}

.instruction {
  display: grid;
  gap: 8px;
}

#turnLabel {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(45, 212, 191, .14);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, .28);
  font-size: 13px;
  font-weight: 900;
}

#promptText {
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.16;
  letter-spacing: 0;
}

#message {
  min-height: 40px;
  color: #c3ccd8;
  line-height: 1.5;
}

.word-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 6px;
}

.word-form input {
  min-height: 44px;
  font-size: 18px;
}

.tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tools button,
.shop-list button {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.tools button:hover,
.shop-list button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45, 212, 191, .08);
}

.shop-list button {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-list strong { color: var(--gold); }

.inventory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.inventory div { padding: 7px 8px; }

.inventory strong {
  display: block;
  margin-top: 2px;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(15px, 28cqw, 22px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.reward-grid button {
  min-height: 30px;
  padding: 0 6px;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-grid button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(45, 212, 191, .08);
}

.history-head { margin-top: 8px; }
.history-head { margin-top: 6px; }

.chat-list {
  display: grid;
  gap: 4px;
  height: 86px;
  overflow: auto;
  margin-bottom: 6px;
}

.chat-message,
.chat-empty {
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.chat-message strong {
  display: block;
  overflow: hidden;
  color: var(--accent);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message span,
.chat-empty {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 4px;
  margin-bottom: 6px;
}

.chat-form input,
.chat-form button {
  min-height: 30px;
}

.chat-form input {
  padding: 0 8px;
}

.chat-form button {
  padding: 0 6px;
}

.rank-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 6px;
}

.rank-tabs button {
  min-height: 30px;
  padding: 0 6px;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.rank-tabs button.selected {
  background: var(--accent);
  color: #07110f;
}

.ranking-list {
  max-height: 110px;
  margin-bottom: 8px;
}

ol {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 130px;
  overflow: auto;
}

.panel {
  max-height: 100%;
  overflow: hidden;
}

li {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
}

li strong {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

li span {
  color: var(--muted);
  font-size: 12px;
}

.success { color: var(--accent) !important; }
.error { color: var(--red) !important; }
.warn { color: var(--gold) !important; }

@media (max-height: 760px) {
  button,
  input,
  select {
    min-height: 30px;
    font-size: 13px;
  }

  .shell {
    width: min(1320px, calc(100% - 8px));
    padding: 4px 0;
    gap: 4px;
  }

  .hero {
    min-height: 52px;
    padding: 6px 8px;
  }

  .brand p {
    display: none;
  }

  h1 {
    font-size: clamp(20px, 3vw, 30px);
  }

  h2,
  .session-card strong {
    font-size: 15px;
  }

  .session-card,
  .panel,
  .game-board {
    padding: 7px;
  }

  .layout {
    grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 6px;
  }

  .panel-head {
    padding-bottom: 5px;
    margin-bottom: 5px;
  }

  .subhead {
    margin: 7px 0 4px;
  }

  .select-block {
    margin-top: 6px;
    gap: 4px;
  }

  .person-list,
  .shop-list,
  .reward-grid,
  ol,
  .auth-form,
  .auth-actions,
  .compact-form,
  .room-form {
    gap: 4px;
  }

  .people-panel .person-list {
    max-height: 50px;
  }

  .person {
    min-height: 34px;
    padding: 5px 6px;
  }

  .person button {
    min-height: 26px;
  }

  .game-board {
    gap: 6px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(62px, 1fr));
    gap: 4px;
  }

  .stats div,
  .match-strip div,
  .inventory div,
  .xp-panel,
  li {
    padding: 5px 6px;
  }

  .match-strip,
  .stake-form,
  .word-form,
  .tools,
  .inventory {
    gap: 4px;
  }

  .letter-stage {
    min-height: 128px;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 8px;
    padding: 7px;
  }

  .letter-card {
    width: 96px;
    font-size: 62px;
  }

  #turnLabel {
    padding: 4px 8px;
    font-size: 12px;
  }

  #promptText {
    font-size: clamp(18px, 2.6vw, 26px);
  }

  #message {
    min-height: 28px;
    line-height: 1.3;
    font-size: 13px;
  }

  .word-form input {
    min-height: 34px;
    font-size: 16px;
  }

  .shop-list button {
    min-height: 31px;
  }

  .inventory {
    margin: 5px 0 6px;
  }

  .reward-grid button {
    min-height: 26px;
    font-size: 11px;
  }

  .chat-list {
    height: 58px;
  }

  .chat-form input,
  .chat-form button {
    min-height: 28px;
  }

  .rank-tabs button {
    min-height: 26px;
    font-size: 12px;
  }

  .ranking-list {
    max-height: 64px;
    margin-bottom: 5px;
  }

  ol {
    max-height: 56px;
  }
}

@media (max-width: 1060px) {
  .shell {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .layout { grid-template-columns: 205px minmax(0, 1fr) 235px; }
  .game-board {
    min-height: 0;
    height: 100%;
    order: 1;
  }
  .people-panel { order: 0; }
  .shop-panel { order: 3; }
  .panel {
    max-height: 100%;
    overflow: hidden;
  }
  ol { max-height: 95px; }
}

@media (max-width: 920px) and (orientation: landscape) {
  .shell {
    width: calc(100% - 6px);
    padding: 3px 0;
    gap: 3px;
  }

  .hero {
    min-height: 40px;
    padding: 4px 6px;
    align-items: center;
  }

  h1 {
    font-size: 20px;
  }

  .brand span,
  .label,
  .stats span,
  .panel-head span,
  .subhead,
  .inventory span,
  .select-block span,
  .person span,
  li small {
    font-size: 10px;
  }

  .layout {
    grid-template-columns: 180px minmax(0, 1fr) 205px;
    gap: 4px;
  }

  .session-card {
    width: 310px;
  }

  .auth-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(3, minmax(56px, 1fr));
  }

  .letter-stage {
    min-height: 118px;
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .letter-card {
    width: 78px;
    font-size: 50px;
  }

  #promptText {
    font-size: 18px;
  }

  .tools {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tools button {
    padding: 0 4px;
    font-size: 12px;
  }

  .chat-list {
    height: 44px;
  }

  .chat-form {
    grid-template-columns: minmax(0, 1fr) 46px;
  }

  .chat-message,
  .chat-empty,
  li {
    padding: 4px 6px;
  }
}

@media (max-width: 920px) and (orientation: portrait) {
  .shell {
    filter: blur(2px);
    pointer-events: none;
  }

  body::before {
    content: "휴대폰은 가로로 돌려서 이용하세요";
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #000;
    color: var(--ink);
    text-align: center;
    font-size: 22px;
    font-weight: 900;
  }
}

@media (max-width: 680px) and (orientation: portrait) {
  .tools {
    grid-template-columns: 1fr;
  }
}

/* Reserve space for every section before assigning height to the lists. */
.hero {
  flex: 0 0 auto;
  align-items: center;
}

.brand { min-width: 0; }
.brand p { display: none; }
h1 { font-size: 26px; line-height: 1.15; }
.auth-card { width: 460px; flex: 0 0 auto; padding: 6px 8px; grid-template-columns: 90px minmax(0, 1fr); align-items: center; }
.auth-card strong { overflow-wrap: anywhere; }
.auth-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-actions { grid-column: 1 / -1; }

.people-panel,
.shop-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.people-panel > *,
.shop-panel > * { flex-shrink: 0; }
.panel-head { min-height: 25px; }
.people-panel .person-list {
  flex: 1 1 58px;
  min-height: 34px;
}
.person { min-width: 0; }
.shop-panel .chat-list,
.shop-panel .ranking-list,
.shop-panel #historyList {
  flex: 1 1 70px;
  min-height: 32px;
  max-height: none;
  height: auto;
  overflow: auto;
  align-content: start;
}
.rank-tabs button { font-size: 12px; padding: 0 3px; white-space: nowrap; }
.letter-stage { min-height: 0; grid-template-columns: minmax(70px, .4fr) minmax(0, 1fr); }
.letter-card { width: min(100%, 120px); font-size: 72px; }
#promptText { font-size: 26px; overflow-wrap: anywhere; }
.instruction { min-width: 0; }
#message { overflow-wrap: anywhere; }

@media (max-height: 900px) {
  .hero { min-height: 0; padding: 6px 8px; }
  .panel, .game-board { padding: 7px; }
  .panel-head { margin-bottom: 4px; padding-bottom: 4px; }
  .shop-list { gap: 4px; }
  .shop-list button { min-height: 30px; }
  .inventory { margin: 4px 0; gap: 4px; }
  .inventory div { padding: 4px 6px; }
  .inventory strong { font-size: 18px; }
  .reward-grid button { min-height: 26px; }
  .history-head { margin-top: 4px; }
  .rank-tabs { margin-bottom: 4px; }
  .rank-tabs button { min-height: 28px; }
  .subhead { margin: 6px 0 4px; }
}

@media (max-height: 650px) {
  .auth-card { width: 460px; grid-template-columns: 90px minmax(0, 1fr); align-items: center; }
  .auth-card strong { font-size: 13px; overflow-wrap: anywhere; }
  .auth-form { gap: 3px; }
  .auth-actions { gap: 3px; }
  .auth-form input, .auth-actions button { min-height: 24px; font-size: 12px; }
  .shop-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; }
  .shop-list button { min-height: 27px; padding: 0 4px; font-size: 11px; gap: 2px; }
  .inventory { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .inventory div { padding: 3px; }
  .inventory span { font-size: 10px; }
  .inventory strong { font-size: 14px; }
  .panel-head { min-height: 21px; }
  h2 { font-size: 13px; }
  .people-panel .person-list { min-height: 26px; }
  .person { min-height: 26px; padding: 3px 5px; font-size: 12px; }
  .person span { font-size: 10px; }
  .subhead { margin: 3px 0 2px; }
  .select-block { margin-top: 3px; gap: 2px; }
  .wide-action { margin-top: 3px; }
  .people-panel button, .people-panel input, .people-panel select { min-height: 26px; }
  .reward-grid { margin-bottom: 3px; gap: 3px; }
  .reward-grid button { min-height: 23px; font-size: 10px; }
  .rank-tabs button { min-height: 24px; font-size: 11px; }
  .shop-panel .chat-list, .shop-panel .ranking-list, .shop-panel #historyList { min-height: 24px; }
  .chat-form { margin-bottom: 3px; }
  .chat-form input, .chat-form button { min-height: 25px; }
  .letter-card { width: min(100%, 78px); font-size: 48px; }
  #promptText { font-size: 20px; }
}

@media (max-width: 920px) and (orientation: landscape) {
  h1 { font-size: 18px; }
  .auth-card { width: 360px; grid-template-columns: 65px minmax(0, 1fr); }
  .hero { padding: 3px 6px; }
  .game-board { gap: 3px; }
  .match-strip div, .stats div, .xp-panel { padding: 3px 4px; }
  .match-strip strong { margin-top: 2px; font-size: 14px; }
  .word-form input { min-height: 28px; font-size: 14px; }
  .tools button, .stake-form button, .stake-form select { min-height: 26px; }
  .letter-stage { padding: 4px; gap: 6px; grid-template-columns: 65px minmax(0, 1fr); }
  .letter-card { width: 58px; font-size: 38px; }
  .instruction { gap: 3px; }
  #turnLabel { padding: 2px 6px; }
  #promptText { font-size: 16px; }
  #message { min-height: 0; font-size: 11px; }
}

@media (max-height: 450px) and (orientation: landscape) {
  .hero { padding: 2px 5px; }
  .auth-card { padding: 3px 5px; }
  .auth-card > div { min-width: 0; }
  .auth-card strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
  .auth-form input, .auth-actions button { min-height: 20px; font-size: 11px; }
  .panel { padding: 4px; }
  .panel-head { min-height: 14px; padding: 0; margin: 0 0 1px; line-height: 1.15; }
  .history-head { margin-top: 1px; }
  h2 { font-size: 11px; }
  .subhead, .select-block span { font-size: 10px; }
  .subhead { margin: 2px 0 1px; }
  .subhead { line-height: 1.2; }
  .select-block { grid-template-columns: 65px minmax(0, 1fr); align-items: center; }
  .people-panel button, .people-panel input, .people-panel select { min-height: 20px; font-size: 11px; }
  .people-panel .person-list { min-height: 22px; }
  .person { padding: 2px 4px; min-height: 22px; }
  .person > div { display: flex; align-items: center; gap: 4px; }
  .person strong { font-size: 11px; }
  .person span { font-size: 9px; }
  .shop-list { gap: 2px; }
  .shop-list button { min-height: 22px; font-size: 10px; }
  .inventory { margin: 2px 0; gap: 2px; }
  .inventory div { padding: 2px; }
  .inventory span { font-size: 9px; }
  .inventory strong { margin: 0; font-size: 12px; line-height: 1; }
  .reward-grid { gap: 2px; margin-bottom: 2px; }
  .reward-grid button { min-height: 20px; font-size: 9px; padding: 0 2px; }
  .shop-panel .chat-list, .shop-panel .ranking-list, .shop-panel #historyList { min-height: 18px; margin-bottom: 1px; }
  .chat-form { margin-bottom: 2px; }
  .chat-form input, .chat-form button { min-height: 22px; font-size: 11px; }
  .rank-tabs { margin-bottom: 2px; gap: 2px; }
  .rank-tabs button { min-height: 22px; font-size: 10px; }
}
