/* === Tokyo 大富翁 — base styles === */

:root {
  --paper: #F2EDE0;
  --paper-2: #EAE3D2;
  --ink: #1A1A1A;
  --ink-2: #3A3A3A;
  --ink-soft: #6B6B6B;
  --line-yamanote: #9ACD32;
  --line-yamanote-deep: #6B9622;
  --rail-bg: #1B2622;

  --c-shopping: #E8588C;
  --c-cultural: #C8443B;
  --c-otaku:    #7A4FB8;
  --c-resident: #2EA39A;
  --c-tourist:  #2E6FB5;
  --c-night:    #E08A2E;

  --gold: #B7892F;
  --shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px rgba(20,20,20,0.06);
  --shadow-strong: 0 2px 0 rgba(0,0,0,0.06), 0 24px 60px rgba(20,20,20,0.18);

  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --bay-tone: rgba(46,111,181,0.08);
}

[data-theme="neon"] {
  --paper: #0B1220;
  --paper-2: #131C30;
  --ink: #F2F4FA;
  --ink-2: #C7CCDA;
  --ink-soft: #7E869A;
  --rail-bg: #050810;
  --line-yamanote: #B8FF3C;
  --line-yamanote-deep: #4A7510;
  --bay-tone: rgba(80,150,255,0.08);
  --shadow: 0 1px 0 rgba(0,0,0,0.4), 0 8px 28px rgba(184,255,60,0.05);
  --shadow-strong: 0 0 0 1px rgba(184,255,60,0.15), 0 24px 60px rgba(0,0,0,0.6);
}

[data-theme="sumi"] {
  --paper: #ECE6D8;
  --paper-2: #DCD4BF;
  --ink: #14110D;
  --ink-2: #2B251A;
  --ink-soft: #5A5346;
  --line-yamanote: #2A2A2A;
  --line-yamanote-deep: #000000;
  --rail-bg: #14110D;
  --c-shopping: #8B2942;
  --c-cultural: #5C2118;
  --c-otaku:    #2D2552;
  --c-resident: #1F4F47;
  --c-tourist:  #1B3A60;
  --c-night:    #7A4416;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; width: 100vw;
}

#root { width: 100vw; min-height: 100vh; }

/* In-game layout locks the viewport so the board fills the screen.
   Pre-game screens (login / character select / lobby) keep their natural
   height so mobile can scroll. */
.shell { width: 100vw; height: 100vh; overflow: hidden; }

.paper-grain {
  position: fixed; inset: 0;
  pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(0,0,0,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(0,0,0,0.03) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, rgba(0,0,0,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 20%, rgba(0,0,0,0.03) 50%, transparent 51%);
  background-size: 200px 200px, 250px 250px, 180px 180px, 220px 220px;
  z-index: 1;
}
[data-theme="neon"] .paper-grain { display: none; }

/* ===== Layout — 2 columns now ===== */
.shell {
  position: relative;
  width: 100vw; height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 56px 1fr;
  gap: 12px; padding: 12px;
  z-index: 2;
}

.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--line-yamanote); color: #0F1A06;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.1);
}
.brand-title { font-family: var(--font-serif); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; }
.brand-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; }

.topbar-spacer { flex: 1; }
.topbar-meta { display: flex; gap: 18px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.1em; }
.topbar-meta strong { color: var(--ink); font-weight: 600; }

/* ===== Header actions (settings / login) ===== */
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; position: relative; }
.hdr-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-2); cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
}
.hdr-btn:hover { background: var(--paper-2); border-color: rgba(0,0,0,0.25); color: var(--ink); }
.hdr-btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hdr-btn.primary:hover { background: var(--ink-2); }
.hdr-btn svg { flex-shrink: 0; }
[data-theme="neon"] .hdr-btn { background: rgba(15,23,42,0.6); border-color: rgba(184,255,60,0.25); color: var(--ink-2); }
[data-theme="neon"] .hdr-btn.primary { background: var(--line-yamanote); color: #0F1A06; border-color: var(--line-yamanote); }

.hdr-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  padding: 8px;
  z-index: 100;
  display: flex; flex-direction: column; gap: 2px;
}
[data-theme="neon"] .hdr-menu { background: #0F172A; border-color: rgba(184,255,60,0.25); }
.hdr-menu-title { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.25em; color: var(--ink-soft); padding: 6px 10px 8px; text-transform: uppercase; border-bottom: 1px solid rgba(0,0,0,0.06); margin-bottom: 4px; }
.hdr-menu-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center; gap: 10px;
  padding: 8px 10px;
  background: transparent; border: none;
  font-family: var(--font-sans); font-size: 13px;
  color: var(--ink); text-align: left; cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.hdr-menu-row:hover { background: rgba(0,0,0,0.04); }
.hdr-menu-row.primary { background: var(--ink); color: var(--paper); margin-top: 4px; }
.hdr-menu-row.primary:hover { background: var(--ink-2); }
.hdr-menu-row > span:first-child { font-size: 14px; }
.hdr-menu-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.hdr-menu-foot { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--ink-soft); padding: 8px 10px 4px; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 6px; text-align: center; }

.hdr-login-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  margin-bottom: 6px;
}
.hdr-login-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: var(--paper-2); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.08); }
.hdr-login-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.hdr-login-sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em; color: var(--ink-soft); text-transform: uppercase; margin-top: 2px; }

/* ===== Combined left panel ===== */
.left-panel {
  grid-column: 1; grid-row: 2;
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
  flex-shrink: 0;
}
.panel-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-soft); text-transform: uppercase; }
.panel-meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); }

.panel-body {
  flex: 1; overflow-y: auto; padding: 8px;
  min-height: 0;
}
.panel-body::-webkit-scrollbar { width: 6px; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }

.player-card {
  position: relative;
  padding: 10px 12px 10px 14px;
  margin-bottom: 8px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  border-left: 4px solid var(--player-color);
  transition: all 0.2s;
}
.player-card.active {
  background: var(--paper-2);
  box-shadow: 0 0 0 2px var(--player-color), 0 4px 12px rgba(0,0,0,0.08);
  transform: translateX(2px);
}
.player-card.bankrupt { opacity: 0.4; filter: grayscale(0.6); }
.player-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-rank {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 18px; line-height: 1;
  color: var(--ink-soft);
  min-width: 26px;
  font-variant-numeric: tabular-nums;
}
.player-rank.gold { color: var(--gold); }
.player-name { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.player-token-mini {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--player-color);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4);
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 10px;
}
.player-money { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.player-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em;
  padding: 1px 6px; border-radius: 2px;
  background: rgba(0,0,0,0.08); color: var(--ink-soft);
  text-transform: uppercase;
}
.player-tag.you { background: var(--player-color); color: white; }
.player-prop-count { font-family: var(--font-mono); font-size: 9px; color: var(--ink-soft); letter-spacing: 0.05em; }
.player-properties { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.prop-chip {
  font-family: var(--font-mono); font-size: 9px;
  padding: 2px 5px; border-radius: 2px;
  background: var(--chip-color); color: white;
  letter-spacing: 0.05em;
}
.prop-chip-empty { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); font-style: italic; }
.player-total {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--ink-soft); letter-spacing: 0.1em;
  margin-top: 6px; text-transform: uppercase;
  display: flex; justify-content: space-between;
}

.log-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  max-height: 35%;
  display: flex;
  flex-direction: column;
}
.log-list {
  overflow-y: auto;
  padding: 4px 12px;
  flex: 1;
  min-height: 0;
}
.log-list::-webkit-scrollbar { width: 6px; }
.log-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.log-entry {
  font-family: var(--font-mono); font-size: 10px;
  padding: 4px 0; color: var(--ink-2);
  border-bottom: 1px dashed rgba(0,0,0,0.06);
  letter-spacing: 0.04em; line-height: 1.5;
}
.log-entry .turn-tag {
  margin-right: 6px; font-weight: 600;
}

/* ===== Board area ===== */
.board-wrap {
  grid-column: 2; grid-row: 2;
  min-width: 0; min-height: 0;
  position: relative;
  display: grid; place-items: center;
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.board-svg { width: 100%; height: 100%; display: block; }

/* ===== Board-center dice overlay ===== */
.board-center-dice {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  padding: 14px 18px 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.6) inset;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 5;
  min-width: 280px;
}
[data-theme="neon"] .board-center-dice { background: rgba(15,23,42,0.92); border-color: rgba(184,255,60,0.25); box-shadow: 0 8px 24px rgba(0,0,0,0.6); }
[data-theme="sumi"] .board-center-dice { background: rgba(245,242,234,0.96); }
.bcd-turn { display: flex; align-items: center; gap: 8px; }
.bcd-token { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); }
.bcd-name { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ink-2); text-transform: uppercase; }
.bcd-dice-row { display: flex; align-items: center; gap: 12px; }
.bcd-total { font-family: var(--font-serif); font-size: 36px; font-weight: 900; color: var(--ink); min-width: 44px; text-align: center; line-height: 1; }
.bcd-status { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.04em; line-height: 1.4; text-align: center; min-height: 14px; max-width: 280px; }
.bcd-actions { display: flex; gap: 6px; }
.bcd-actions .btn { padding: 6px 12px; font-size: 11px; }

/* hide huge old center text since BoardCenterDice now occupies it */
.board-svg .center-mask { display: none; }

/* ===== End board-center-dice ===== */

/* Center panel inside the board */
.board-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
  text-align: center;
}
.board-center > * { pointer-events: auto; }
.center-line { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 6px; }
.center-title { font-family: var(--font-serif); font-size: clamp(36px, 4vw, 60px); font-weight: 900; letter-spacing: 0.05em; margin: 0; line-height: 1; }
.center-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-soft); margin-top: 8px; text-transform: uppercase; }
.center-status {
  margin-top: 22px;
  padding: 10px 22px;
  background: rgba(0,0,0,0.04);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.05em;
  color: var(--ink-2);
  max-width: 90%;
}
[data-theme="neon"] .center-status { background: rgba(184,255,60,0.06); }

/* ===== In-panel dice section ===== */
.dice-pane {
  flex-shrink: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 14px 14px 16px;
  background: rgba(0,0,0,0.02);
}
.dice-pane-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.25em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 10px; }
.dice-pane-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dice-pane-status { font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.04em; line-height: 1.4; min-height: 26px; padding: 6px 8px; background: rgba(0,0,0,0.04); border-radius: 3px; margin-bottom: 10px; }
[data-theme="neon"] .dice-pane-status { background: rgba(184,255,60,0.06); }

/* ===== Realistic 3D dice ===== */
.dice-stage {
  perspective: 800px;
  perspective-origin: 50% 30%;
  width: 72px; height: 72px;
  flex-shrink: 0;
}
.dice-cube {
  position: relative;
  width: 72px; height: 72px;
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(.2,.6,.3,1);
}
.dice-cube.rolling {
  animation: dice-roll 0.8s cubic-bezier(.4,1.5,.6,1) forwards;
}
@keyframes dice-roll {
  0%   { transform: rotateX(0)   rotateY(0)   rotateZ(0); }
  20%  { transform: rotateX(180deg) rotateY(120deg) rotateZ(45deg) translateY(-10px); }
  40%  { transform: rotateX(360deg) rotateY(240deg) rotateZ(90deg) translateY(-6px); }
  60%  { transform: rotateX(540deg) rotateY(360deg) rotateZ(135deg) translateY(-3px); }
  80%  { transform: rotateX(720deg) rotateY(480deg) rotateZ(180deg); }
  100% { transform: rotateX(720deg) rotateY(480deg) rotateZ(180deg); }
}
.dice-face {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFFDF6 0%, #F0E9D6 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.08),
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 -3px 4px rgba(0,0,0,0.08),
    0 6px 14px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 12px;
  gap: 4px;
}
[data-theme="neon"] .dice-face {
  background: linear-gradient(135deg, #1F2A45 0%, #0F172A 100%);
  box-shadow:
    inset 0 0 0 1px rgba(184,255,60,0.18),
    inset 0 2px 0 rgba(255,255,255,0.05),
    inset 0 -3px 4px rgba(0,0,0,0.5),
    0 6px 14px rgba(0,0,0,0.6);
}
.dice-face::before {
  /* subtle inner shading toward bottom-right */
  content: ""; position: absolute; inset: 0;
  border-radius: 12px;
  background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.4), transparent 60%);
  pointer-events: none;
}
.dice-face.f1 { transform: translateZ(36px); }
.dice-face.f2 { transform: rotateY(180deg) translateZ(36px); }
.dice-face.f3 { transform: rotateY(90deg)  translateZ(36px); }
.dice-face.f4 { transform: rotateY(-90deg) translateZ(36px); }
.dice-face.f5 { transform: rotateX(90deg)  translateZ(36px); }
.dice-face.f6 { transform: rotateX(-90deg) translateZ(36px); }

.dice-pip {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #C8443B, #6E211B);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.55),
    inset 0 -1px 1px rgba(255,255,255,0.12);
  width: 100%; height: 100%;
  max-width: 12px; max-height: 12px;
  align-self: center; justify-self: center;
}
.dice-pip.black { background: radial-gradient(circle at 30% 30%, #2A2A2A, #0A0A0A); }
[data-theme="neon"] .dice-pip {
  background: radial-gradient(circle at 30% 30%, #B8FF3C, #4A7510);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 0 4px rgba(184,255,60,0.4);
}

.dice-pip-empty { visibility: hidden; }

.dock-dice { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dice-total {
  font-family: var(--font-mono); font-size: 32px; font-weight: 700;
  color: var(--ink); font-variant-numeric: tabular-nums;
  min-width: 56px;
  letter-spacing: -0.02em;
}
.dice-total .small { font-size: 11px; color: var(--ink-soft); margin-right: 6px; letter-spacing: 0.1em; }

/* Buttons */
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--font-jp);
  font-size: 13px; font-weight: 600;
  padding: 9px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  background: var(--paper); color: var(--ink);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.04em;
}
.btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: var(--line-yamanote); color: var(--ink); border-color: var(--line-yamanote); }
.btn.accent {
  background: var(--line-yamanote); color: #0F1A06;
  border-color: var(--line-yamanote-deep); font-weight: 700;
}
.btn.accent:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 4px 0 var(--line-yamanote-deep); }
.btn.ghost { background: transparent; }

.dock-status { display: flex; flex-direction: column; justify-content: center; }
.status-text { font-size: 14px; color: var(--ink); margin-bottom: 4px; font-weight: 500; }
.status-detail { font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.05em; }

/* ===== Modals (unchanged) ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,15,15,0.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--paper); border-radius: 6px;
  width: min(440px, 92vw);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  animation: rise 0.25s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.prop-card { position: relative; }
.prop-card-head {
  background: var(--card-color, var(--ink)); color: white;
  padding: 18px 22px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.prop-card-tier { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; opacity: 0.8; text-transform: uppercase; }
.prop-card-name { font-family: var(--font-serif); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; margin: 0; }
.prop-card-en { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; opacity: 0.85; text-transform: uppercase; }
.prop-card-station {
  position: absolute; top: 18px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: white; color: var(--card-color, var(--ink));
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.prop-card-icon {
  display: grid; place-items: center;
  margin: 8px 0 0 0;
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}
.prop-card-body { padding: 16px 22px; }
.prop-card-blurb { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 14px; font-family: var(--font-jp); }
.prop-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  font-family: var(--font-mono); font-size: 12px;
}
.prop-row:last-of-type { border-bottom: none; }
.prop-row .lbl { color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; font-size: 10px; }
.prop-row .val { color: var(--ink); font-weight: 600; }
.prop-row.highlight .val { color: var(--card-color, var(--ink)); font-size: 14px; }

.prop-card-actions {
  display: flex; gap: 8px; padding: 12px 22px 18px;
  background: rgba(0,0,0,0.02);
  border-top: 1px solid rgba(0,0,0,0.06);
}
.prop-card-actions .btn { flex: 1; }
.stamp {
  position: absolute; top: 50%; right: 24px;
  transform: translateY(-50%) rotate(-12deg);
  border: 2px solid var(--gold); color: var(--gold);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.15em; padding: 4px 10px;
  border-radius: 3px; opacity: 0.85;
}

.card-draw {
  background: var(--paper); border-radius: 6px;
  width: min(420px, 92vw); overflow: hidden;
  animation: cardflip 0.4s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardflip { from { opacity: 0; transform: rotateY(90deg) scale(0.9); } to { opacity: 1; transform: rotateY(0) scale(1); } }
.card-draw-head { padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; background: var(--card-bg, var(--ink)); color: white; }
.card-draw-kanji { font-family: var(--font-serif); font-size: 28px; font-weight: 700; letter-spacing: 0.1em; }
.card-draw-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; opacity: 0.7; text-transform: uppercase; }
.card-draw-body { padding: 22px; }
.card-draw-msg { font-size: 16px; line-height: 1.5; font-family: var(--font-jp); margin-bottom: 18px; color: var(--ink); }
.card-draw-effect { font-family: var(--font-mono); font-size: 13px; padding: 10px 14px; background: rgba(0,0,0,0.05); border-left: 3px solid var(--card-bg, var(--ink)); color: var(--ink); letter-spacing: 0.04em; }
.card-draw-actions { padding: 0 22px 22px; display: flex; justify-content: flex-end; }

.trade-modal { background: var(--paper); border-radius: 6px; width: min(640px, 94vw); overflow: hidden; box-shadow: var(--shadow-strong); }
.trade-head { padding: 14px 20px; border-bottom: 1px solid rgba(0,0,0,0.08); display: flex; justify-content: space-between; align-items: center; }
.trade-title { font-family: var(--font-serif); font-weight: 700; font-size: 18px; }
.trade-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 12px; padding: 18px 20px; }
.trade-side { background: var(--paper-2); padding: 12px; border-radius: 4px; min-height: 200px; }
.trade-side h4 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; color: var(--ink-soft); text-transform: uppercase; margin: 0 0 10px 0; }
.trade-arrow { display: grid; place-items: center; font-size: 24px; color: var(--ink-soft); }
.trade-prop-pick { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.trade-prop-pick .prop-chip { cursor: pointer; opacity: 0.5; transition: opacity 0.15s; }
.trade-prop-pick .prop-chip.picked { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.trade-money-input { width: 100%; padding: 6px 8px; font-family: var(--font-mono); font-size: 13px; border: 1px solid rgba(0,0,0,0.15); border-radius: 3px; background: var(--paper); color: var(--ink); }
.trade-actions { padding: 12px 20px; border-top: 1px solid rgba(0,0,0,0.08); display: flex; gap: 8px; justify-content: flex-end; }

.icon-btn { background: transparent; border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; }
.icon-btn:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

.flex-1 { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.muted { color: var(--ink-soft); }
.mono { font-family: var(--font-mono); }
.tabnum { font-variant-numeric: tabular-nums; }

.gameover { position: fixed; inset: 0; background: rgba(10,10,10,0.85); display: grid; place-items: center; z-index: 200; }
.gameover-card { background: var(--paper); padding: 36px 48px; text-align: center; border-radius: 8px; max-width: 480px; }
.gameover-kanji { font-family: var(--font-serif); font-size: 64px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 8px; }
.gameover-name { font-size: 22px; margin-bottom: 4px; }
.gameover-money { font-family: var(--font-mono); font-size: 18px; color: var(--ink-soft); margin-bottom: 24px; }

/* === Stock market === */
.stock-modal { background: var(--paper); border-radius: 6px; width: min(820px, 96vw); max-height: 90vh; overflow: hidden; box-shadow: var(--shadow-strong); display: flex; flex-direction: column; }
.stock-head { display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; padding: 18px 22px; background: var(--ink); color: #F5F0E0; border-bottom: 3px solid var(--gold); }
.stock-head-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; opacity: 0.7; }
.stock-head-jp { font-family: var(--font-serif); font-size: 20px; font-weight: 700; letter-spacing: 0.08em; }
.stock-head-stats { display: flex; gap: 24px; }
.stock-head-lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; opacity: 0.65; }
.stock-head-val { font-family: var(--font-mono); font-size: 17px; font-weight: 600; }
.stock-head .icon-btn { color: #F5F0E0; }
.stock-list { overflow-y: auto; flex: 1; padding: 8px 14px 12px; }
.stock-list-head, .stock-row { display: grid; grid-template-columns: 1.5fr 90px 1fr 70px 110px; gap: 14px; align-items: center; padding: 10px 8px; }
.stock-list-head { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; color: var(--ink-soft); border-bottom: 1px solid rgba(0,0,0,0.1); }
.stock-row { border-bottom: 1px dashed rgba(0,0,0,0.07); }
.stock-row-left { display: flex; align-items: center; gap: 10px; }
.stock-ticker { background: #1A1A1A; color: white; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.05em; padding: 5px 8px; border-radius: 3px; min-width: 38px; text-align: center; }
.stock-name { font-size: 13px; font-weight: 600; }
.stock-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--ink-soft); }
.stock-price-block { text-align: right; }
.stock-price { font-size: 15px; font-weight: 700; }
.stock-change { font-size: 10px; font-weight: 600; }
.stock-change.up { color: #2E9A4A; }
.stock-change.dn { color: #D44A4A; }
.stock-owned { text-align: right; font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.stock-owned-lbl { font-size: 9px; color: var(--ink-soft); margin-left: 2px; }
.stock-actions { display: flex; gap: 4px; justify-content: flex-end; }
.btn-mini { border: 1px solid rgba(0,0,0,0.15); background: var(--paper-2); padding: 5px 12px; font-size: 11px; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.1em; cursor: pointer; border-radius: 3px; color: var(--ink); transition: all 0.15s; }
.btn-mini:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-mini.buy:hover:not(:disabled) { background: #2E9A4A; color: white; border-color: #2E9A4A; }
.btn-mini.sell:hover:not(:disabled) { background: #D44A4A; color: white; border-color: #D44A4A; }
.btn-mini:disabled { opacity: 0.3; cursor: not-allowed; }
.stock-foot { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.05em; color: var(--ink-soft); padding: 10px 22px; border-top: 1px solid rgba(0,0,0,0.06); background: var(--paper-2); }
[data-theme="neon"] .stock-head { background: #050810; }
[data-theme="neon"] .stock-ticker { background: rgba(255,255,255,0.1); }


/* === Help / 玩法说明 modal === */
.help-modal {
  background: var(--paper);
  border-radius: 6px;
  width: min(960px, 96vw);
  height: min(720px, 92vh);
  box-shadow: var(--shadow-strong);
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink);
}
.help-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: var(--ink); color: #F5F0E0;
  border-bottom: 3px solid var(--gold);
}
.help-head-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; opacity: 0.7; }
.help-head-jp { font-family: var(--font-serif); font-size: 18px; font-weight: 700; margin-top: 2px; }
.help-body { display: grid; grid-template-columns: 200px 1fr; flex: 1; min-height: 0; }
.help-nav {
  border-right: 1px solid rgba(0,0,0,0.08);
  background: var(--paper-2);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.help-nav-btn {
  display: flex; flex-direction: column; align-items: flex-start;
  background: transparent; border: none; cursor: pointer;
  padding: 9px 12px;
  border-radius: 4px;
  font-family: var(--font-jp); color: var(--ink-2);
  font-size: 14px; font-weight: 500;
  text-align: left;
}
.help-nav-btn:hover { background: rgba(0,0,0,0.04); color: var(--ink); }
.help-nav-btn.active {
  background: var(--ink); color: #F5F0E0;
}
.help-nav-btn.active .help-nav-en { color: rgba(245,240,224,0.55); }
.help-nav-en {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.2em; color: var(--ink-soft); margin-top: 1px;
}
.help-content {
  overflow-y: auto;
  padding: 28px 32px;
}
.help-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px;
  background: var(--paper-2);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 12px; color: var(--ink-soft);
}
.help-foot .btn-primary {
  background: var(--gold); color: #fff; border: none;
  padding: 8px 22px; border-radius: 4px;
  font-family: var(--font-jp); font-weight: 700;
  cursor: pointer; letter-spacing: 0.1em;
}
.help-foot .btn-primary:hover { filter: brightness(1.1); }

.help-section { display: flex; flex-direction: column; gap: 16px; }
.help-h {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  margin: 0 0 4px; color: var(--ink);
  border-bottom: 2px solid var(--ink); padding-bottom: 8px;
}
.help-h-sub {
  font-family: var(--font-jp); font-size: 15px; font-weight: 600;
  margin: 12px 0 4px; color: var(--ink);
  letter-spacing: 0.05em;
}
.help-p { font-size: 14px; line-height: 1.75; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.help-ul, .help-ol { margin: 0; padding-left: 22px; }
.help-ul li, .help-ol li { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.help-ul li strong, .help-ol li strong { color: var(--ink); }

.help-kbd {
  display: inline-block;
  font-family: var(--font-mono); font-size: 11px;
  background: var(--ink); color: #F5F0E0;
  padding: 2px 7px; border-radius: 3px;
  vertical-align: 1px; letter-spacing: 0.04em;
}

.help-callout {
  border-left: 3px solid var(--ink);
  background: var(--paper-2);
  padding: 12px 16px;
  border-radius: 0 4px 4px 0;
  font-size: 13px; line-height: 1.7;
  color: var(--ink-2);
}
.help-callout-warn { border-left-color: #C8702F; background: rgba(200,112,47,0.08); }
.help-callout-note { border-left-color: #2E6FB5; background: rgba(46,111,181,0.08); }
.help-callout-ok   { border-left-color: #2E9A4A; background: rgba(46,154,74,0.08); }
.help-callout-title { font-family: var(--font-serif); font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 14px; }

.help-hero { text-align: center; padding: 20px 0 8px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 6px; }
.help-hero-jp { font-family: var(--font-serif); font-size: 32px; font-weight: 900; color: var(--ink); letter-spacing: 0.04em; }
.help-hero-cn { font-family: var(--font-jp); font-size: 16px; color: var(--ink-2); margin-top: 4px; }
.help-hero-en { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--ink-soft); margin-top: 8px; text-transform: uppercase; }

.help-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 4px 0; }
.help-stat {
  background: var(--paper-2); padding: 14px 8px; border-radius: 4px;
  text-align: center; border: 1px solid rgba(0,0,0,0.06);
}
.help-stat-n { font-family: var(--font-serif); font-size: 22px; font-weight: 900; color: var(--gold); }
.help-stat-l { font-family: var(--font-jp); font-size: 11px; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.1em; }

.help-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.help-tile-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--paper-2); padding: 12px 14px; border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.06);
}
.help-tile-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.help-tile-t { font-family: var(--font-serif); font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.help-tile-d { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

.help-table { display: grid; gap: 1px; background: rgba(0,0,0,0.08); border-radius: 4px; overflow: hidden; margin: 4px 0; }
.help-tr { display: grid; grid-template-columns: 80px 1fr 1fr; background: var(--paper); padding: 10px 14px; font-size: 13px; color: var(--ink-2); }
.help-tr-head { background: var(--ink); color: #F5F0E0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; }
.help-tr div:first-child { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.help-tr-head div:first-child { color: #F5F0E0; }

.help-swatch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-swatch { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--paper-2); border-radius: 4px; }
.help-swatch-dot { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
.help-swatch-name { font-family: var(--font-jp); font-size: 13px; font-weight: 600; color: var(--ink); }
.help-swatch-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--ink-soft); }

.help-theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.help-theme-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--paper-2); padding: 12px;
  border-left: 4px solid; border-radius: 0 4px 4px 0;
}
.help-theme-badge {
  width: 32px; height: 32px; border-radius: 50%;
  color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.help-theme-name { font-family: var(--font-serif); font-weight: 700; font-size: 15px; color: var(--ink); }
.help-theme-en { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.2em; color: var(--ink-soft); margin: 1px 0 4px; }
.help-theme-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

.help-card-types { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 4px; }
.help-card-type { border: 2px solid; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.help-card-type-h { color: #fff; padding: 8px 12px; font-family: var(--font-serif); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; }
.help-card-type ul { margin: 0; padding: 10px 12px 10px 28px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }

/* ===== Topbar avatar (Google profile picture) ===== */
.hdr-btn-avatar {
  width: 18px; height: 18px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15);
}
.hdr-login-avatar { overflow: hidden; }
.hdr-login-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 50%; display: block;
}

/* ===== Login screen — paper-map aesthetic ===== */
.login-screen {
  position: fixed; inset: 0;
  z-index: 1000;
  display: grid; place-items: center;
  background: var(--paper);
  padding: 24px;
  overflow-y: auto;
}
.login-screen::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(0,0,0,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 60%, rgba(0,0,0,0.03) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, rgba(0,0,0,0.04) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 20%, rgba(0,0,0,0.03) 50%, transparent 51%);
  background-size: 200px 200px, 250px 250px, 180px 180px, 220px 220px;
}
[data-theme="neon"] .login-screen::before { display: none; }
.login-screen::after {
  content: ""; position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  border: 14px solid var(--rail-bg);
  box-shadow:
    inset 0 0 0 8px var(--line-yamanote),
    inset 0 0 0 9px rgba(255,255,255,0.18);
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 8px;
  box-shadow: var(--shadow-strong);
  padding: 32px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
[data-theme="neon"] .login-card { background: rgba(15,23,42,0.92); }

.login-brand {
  display: flex; align-items: center; gap: 14px;
}
.login-brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--line-yamanote); color: #0F1A06;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.login-title {
  font-family: var(--font-serif); font-weight: 900;
  font-size: 26px; letter-spacing: 0.05em;
  color: var(--ink); margin: 0; line-height: 1.1;
}
.login-subtitle {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; color: var(--ink-soft);
  text-transform: uppercase; margin-top: 4px;
}

.login-divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent, rgba(0,0,0,0.12) 20%, rgba(0,0,0,0.12) 80%, transparent);
}
[data-theme="neon"] .login-divider {
  background: linear-gradient(to right,
    transparent, rgba(184,255,60,0.22) 20%, rgba(184,255,60,0.22) 80%, transparent);
}

.login-blurb {
  font-family: var(--font-jp);
  font-size: 13px; line-height: 1.7;
  color: var(--ink-2);
  text-align: center;
}

.login-prompt {
  font-family: var(--font-jp);
  font-size: 13px; color: var(--ink);
  text-align: center;
  margin-top: 4px;
  line-height: 1.6;
}
.login-prompt-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-soft); text-transform: uppercase;
}

.login-btn-wrap {
  display: flex; justify-content: center;
  min-height: 44px;
  margin-top: 4px;
}
.login-btn-wrap > div { /* GSI iframe wrapper */
  max-width: 100%;
}

.login-loading {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.15em;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
}

.login-error {
  background: rgba(212,74,74,0.08);
  border: 1px solid rgba(212,74,74,0.3);
  border-left: 4px solid #D44A4A;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font-jp);
  font-size: 12px; line-height: 1.6;
  color: var(--ink);
}
.login-error-title {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: #D44A4A; text-transform: uppercase;
  font-weight: 700; margin-bottom: 6px;
}
.login-error p { margin: 6px 0; color: var(--ink-2); }
.login-error-hint { font-size: 11px; color: var(--ink-soft); }
.login-error code {
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px;
  color: var(--ink);
}
.login-error a { color: var(--ink); text-decoration: underline; }
[data-theme="neon"] .login-error code { background: rgba(255,255,255,0.08); }

.login-foot {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  border-top: 1px dashed rgba(0,0,0,0.1);
  padding-top: 14px;
  margin-top: 4px;
}
[data-theme="neon"] .login-foot { border-top-color: rgba(184,255,60,0.18); }

.login-or {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  margin: 6px 0 -2px;
}
.login-guest-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 15px; font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.login-guest-btn:hover {
  background: rgba(124,179,66,0.08);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.login-guest-btn:active { transform: translateY(0); }
.login-guest-sub {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-transform: uppercase;
  font-weight: 500;
}
[data-theme="neon"] .login-guest-btn {
  border-color: rgba(184,255,60,0.22);
  background: rgba(184,255,60,0.04);
  color: var(--ink);
}
[data-theme="neon"] .login-guest-btn:hover { background: rgba(184,255,60,0.10); }

.lobby-guest-gate {
  border: 1px dashed rgba(0,0,0,0.18);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  background: rgba(0,0,0,0.02);
}
.lobby-guest-gate-t {
  font-family: var(--font-jp); font-weight: 700;
  font-size: 14px;
}
.lobby-guest-gate-d {
  font-family: var(--font-jp);
  font-size: 12px; line-height: 1.5;
  color: var(--ink-2);
}
[data-theme="neon"] .lobby-guest-gate {
  border-color: rgba(184,255,60,0.28);
  background: rgba(184,255,60,0.04);
}

/* ===== Character select screen ===== */
.char-select {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at top, rgba(233,75,122,0.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(164,91,196,0.10), transparent 60%),
    var(--paper);
}
.char-select-card {
  width: 100%;
  max-width: 980px;
  background: var(--paper);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  box-shadow: 0 22px 80px rgba(0,0,0,0.18);
  padding: 28px 32px 24px;
}
.char-select-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.char-select-kanji {
  width: 56px; height: 56px; border-radius: 8px;
  background: var(--ink); color: white;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 900; font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.char-select-title {
  margin: 0 0 4px 0;
  font-family: var(--font-serif); font-weight: 900;
  font-size: 26px; letter-spacing: 0.06em;
  color: var(--ink);
}
.char-select-sub {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.char-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.char-card {
  position: relative;
  background: var(--paper-2);
  border: 3px solid transparent;
  border-radius: 10px;
  padding: 14px 12px 16px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  font-family: inherit;
}
.char-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
  border-color: var(--char-color, var(--ink));
}
.char-card.selected {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--char-color, #000) 30%, transparent);
}
.char-card-portrait {
  height: 130px;
  border-radius: 8px;
  display: grid; place-items: center;
  margin-bottom: 10px;
  border: 1px solid rgba(0,0,0,0.06);
}
.char-card-name {
  font-family: var(--font-serif);
  font-size: 19px; font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.char-card-desc {
  font-family: var(--font-jp);
  font-size: 11px; color: var(--ink-soft);
  margin-bottom: 8px;
  min-height: 14px;
}
.char-card-quote {
  font-family: var(--font-serif);
  font-size: 12px; color: var(--ink);
  background: rgba(0,0,0,0.04);
  padding: 6px 8px;
  border-radius: 6px;
  min-height: 28px;
  display: grid; place-items: center;
}
.char-card-badge {
  position: absolute;
  top: 10px; right: 10px;
  color: white;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 800;
  letter-spacing: 0.2em;
  padding: 3px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.char-select-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.char-select-foot {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: center;
  text-transform: uppercase;
  border-top: 1px dashed rgba(0,0,0,0.10);
  padding-top: 14px;
}
[data-theme="neon"] .char-select { background: linear-gradient(180deg, #0a0f1a, #1a1f2e); }
[data-theme="neon"] .char-select-card { background: rgba(15,23,42,0.92); border-color: rgba(184,255,60,0.18); }
[data-theme="neon"] .char-card { background: rgba(255,255,255,0.04); }
[data-theme="neon"] .char-card-quote { background: rgba(255,255,255,0.06); }

/* ===== Voice / script editor modal ===== */
.vc-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 16, 28, 0.62);
  z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  backdrop-filter: blur(2px);
}
.vc-modal {
  background: var(--paper, #fffaf0);
  color: #1a1a1a;
  width: min(720px, 100%);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,0,0,0.06);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
}
.vc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}
.vc-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px; font-weight: 800;
}
.vc-close {
  background: transparent; border: none; font-size: 20px;
  cursor: pointer; padding: 6px 10px; border-radius: 8px;
  color: #555;
}
.vc-close:hover { background: rgba(0,0,0,0.06); color: #000; }
.vc-tabs {
  display: flex; gap: 6px;
  padding: 12px 22px 0;
}
.vc-tab {
  background: transparent; border: 1.5px solid rgba(0,0,0,0.12);
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-serif); font-weight: 700; font-size: 13px;
  cursor: pointer; color: #444;
}
.vc-tab.on { background: #1f1f2e; color: #fff; border-color: #1f1f2e; }
.vc-list {
  flex: 1; overflow-y: auto;
  padding: 14px 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.vc-empty {
  text-align: center; color: #888; font-size: 13px; padding: 24px 0;
}
.vc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
}
.vc-text {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 16px; font-weight: 600;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  resize: vertical;
  background: #fff;
  color: #1a1a1a;
}
.vc-text:focus { outline: 2px solid #4a7df8; outline-offset: 1px; }
.vc-row-actions {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vc-tag {
  grid-column: 1 / -1;
  font-size: 11px; color: #2c7d3d; font-weight: 700;
  letter-spacing: 0.08em;
}
.vc-btn {
  background: #fff;
  border: 1.5px solid rgba(0,0,0,0.15);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  color: #1a1a1a;
  transition: transform 0.05s, background 0.12s;
}
.vc-btn:hover { background: #f4f4f4; }
.vc-btn:active { transform: translateY(1px); }
.vc-rec  { background: #fff3f3; color: #b8252b; border-color: #f0a8ac; }
.vc-stop { background: #b8252b; color: #fff; border-color: #b8252b; }
.vc-play { background: #eef4ff; color: #1f4ea8; border-color: #b6caf0; }
.vc-clear { color: #6b6b6b; }
.vc-del   { background: transparent; border-color: transparent; color: #999; padding: 4px 8px; }
.vc-del:hover { color: #b8252b; background: rgba(184,37,43,0.08); }
.vc-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}
.vc-add   { background: #f3fbf3; color: #2c7d3d; border-color: #b9deb9; }
.vc-reset { color: #6b6b6b; }
.vc-cancel{ color: #555; }
.vc-save  { background: #1f1f2e; color: #fff; border-color: #1f1f2e; padding: 8px 18px; font-size: 13px; }
.vc-save:hover { background: #383850; }
.vc-hint {
  padding: 8px 22px 14px; font-size: 11px; color: #888;
  border-top: 1px dashed rgba(0,0,0,0.06);
}

/* Center quote edit pencil — overlaid on SVG via foreignObject not used; pencil is SVG */
.center-quote-edit-btn {
  cursor: pointer;
}

/* ============ Lobby ============ */
.lobby-shell {
  min-height: 100vh; display: grid; place-items: center;
  background: var(--paper, #f2ede0);
  padding: 24px;
}
.lobby-card {
  width: 100%; max-width: 440px;
  background: white; border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}
.lobby-title {
  font-family: var(--font-serif);
  font-size: 30px; font-weight: 800; letter-spacing: 4px;
  color: #1a1a1a; text-align: center;
}
.lobby-sub {
  text-align: center; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 3px; color: #888;
  margin-top: 4px; margin-bottom: 24px;
}
.lobby-btn {
  display: block; width: 100%;
  margin: 10px 0; padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.12); border-radius: 12px;
  background: #fcfaf5; color: #1a1a1a; cursor: pointer;
  text-align: left; transition: transform 0.06s, background 0.15s;
}
.lobby-btn:hover:not(:disabled) { background: #f5f0e2; transform: translateY(-1px); }
.lobby-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lobby-btn.primary {
  background: #1f1f2e; color: #fff; border-color: #1f1f2e;
}
.lobby-btn.primary:hover:not(:disabled) { background: #383850; }
.lobby-btn.small {
  padding: 10px 14px; margin: 0;
  width: auto; display: inline-block;
}
.lobby-btn-t { font-size: 15px; font-weight: 700; }
.lobby-btn-d { font-size: 11.5px; color: #777; margin-top: 4px; }
.lobby-btn.primary .lobby-btn-d { color: #c5c5d5; }

.lobby-join { display: flex; gap: 8px; margin-top: 14px; }
.lobby-input {
  flex: 1; padding: 11px 14px; font-size: 16px; letter-spacing: 4px;
  border: 1px solid rgba(0,0,0,0.18); border-radius: 10px;
  font-family: var(--font-mono); text-transform: uppercase;
  background: #fff; color: #1a1a1a;
}
.lobby-input:focus { outline: 2px solid #1f1f2e44; border-color: #1f1f2e; }

.lobby-hosting { text-align: center; margin: 8px 0; }
.lobby-code-label { font-size: 11px; letter-spacing: 3px; color: #777; font-family: var(--font-mono); }
.lobby-code {
  font-family: var(--font-mono); font-size: 38px; font-weight: 800;
  letter-spacing: 8px; padding: 14px 8px; margin: 8px 0 12px;
  background: linear-gradient(180deg, #fcfaf5 0%, #f0e9d5 100%);
  border-radius: 12px; border: 1px solid rgba(0,0,0,0.08);
  color: #1a1a1a;
}
.lobby-hint { color: #888; font-size: 12px; line-height: 1.55; margin-top: 12px; }
.lobby-err  { color: #c33; font-size: 12.5px; margin-top: 8px; }
.lobby-err-block { padding: 14px; background: #fff5f5; border-radius: 10px; color: #c33; }
.lobby-foot {
  margin-top: 22px; padding-top: 14px; font-size: 11px;
  border-top: 1px dashed rgba(0,0,0,0.08); color: #888;
  text-align: center;
}
.lobby-link {
  background: none; border: 0; color: #1f1f2e; cursor: pointer;
  text-decoration: underline; font-size: 11px;
}

/* In-game multiplayer pill (room code + status) */
.mp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: #f0e9d5; color: #1a1a1a;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
}
.mp-pill .mp-dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 6px #34c75988; }

.lobby-host-actions {
  display: flex; gap: 10px; justify-content: center; margin-top: 6px;
}

/* ===========================================================
   Mobile layout (≤ 768px) — desktop unchanged.
   Stacks vertically: compact topbar → horizontal roster strip
   → board (fills the rest) → floating dice/action panel
   anchored over the board.
   =========================================================== */
@media (max-width: 768px) {
  /* IMPORTANT: don't lock html/body here — pre-game screens (lobby,
     character-select, login) must scroll on phones. Only the in-game
     .shell freezes the viewport. */
  .shell {
    grid-template-columns: 1fr;
    /* Four rows: topbar / players / board (flexes) / dice (auto).
       The dice pane is hoisted out of .left-panel via display:contents
       and given its own grid row so the board never gets covered. */
    grid-template-rows: 44px 86px 1fr auto;
    gap: 6px;
    padding: 6px;
    padding-bottom: max(6px, env(safe-area-inset-bottom, 6px));
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }

  /* === Topbar — icon-only, hide meta === */
  .topbar {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 0 8px;
    gap: 8px;
  }
  .brand-mark { width: 26px; height: 26px; font-size: 11px; }
  .brand-title { font-size: 14px; letter-spacing: 0.02em; }
  .brand-sub { display: none; }
  .topbar-meta { display: none; }
  .topbar-actions { gap: 4px; margin-left: 0; }
  .hdr-btn { padding: 5px 8px; font-size: 10px; }
  /* show icon only — but leave the avatar/name visible on the login button */
  .hdr-btn:not(.primary) span { display: none; }
  .hdr-btn.primary span { max-width: 60px; overflow: hidden; text-overflow: ellipsis; }
  .hdr-btn-avatar { width: 18px; height: 18px; }
  .hdr-menu { min-width: 220px; right: 0; }

  /* === Left panel: dissolve it so its children become direct grid items.
       This puts the player strip in row 2 and the dice pane in row 4. === */
  .left-panel {
    display: contents;
  }
  .panel-header { display: none; }
  .panel-body {
    grid-column: 1;
    grid-row: 2;
    background: var(--paper-2);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    flex: none;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 6px;
    padding: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .panel-body::-webkit-scrollbar { height: 4px; }
  .player-card {
    flex: 0 0 156px;
    margin-bottom: 0;
    padding: 6px 8px 5px 10px;
    scroll-snap-align: start;
    border-left-width: 3px;
  }
  .player-card.active { transform: none; }
  .player-row { gap: 4px; }
  .player-rank { font-size: 13px; min-width: 18px; }
  .player-token-mini { width: 14px; height: 14px; font-size: 8px; }
  .player-name { font-size: 11px; gap: 4px; }
  .player-tag { font-size: 8px; padding: 0 4px; }
  .player-total { font-size: 8px; margin-top: 4px; }
  .player-total strong { font-size: 10px; }
  .player-prop-count { display: none; }

  /* === Dice pane = row 4, docked just below the board === */
  .dice-pane {
    grid-column: 1;
    grid-row: 4;
    position: static;
    width: auto;
    max-width: none;
    transform: none;
    margin: 0;
    z-index: auto;
    background: var(--paper-2);
    border: 1px solid rgba(0,0,0,0.08);
    border-top-color: rgba(0,0,0,0.08);
    border-radius: 8px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    padding: 8px 10px 10px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  [data-theme="neon"] .dice-pane {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(184,255,60,0.25);
  }
  [data-theme="sumi"] .dice-pane {
    background: var(--paper-2);
  }
  .dice-pane-label { font-size: 8px; margin-bottom: 4px; letter-spacing: 0.2em; }
  .dice-pane-status {
    font-size: 9px; min-height: 16px;
    padding: 4px 6px; margin-bottom: 6px;
    line-height: 1.4;
  }
  .dice-pane-row { gap: 8px; margin-bottom: 6px; }
  /* shrink dice to 52px on mobile (was 72px) — translateZ has to follow */
  .dice-stage { width: 52px; height: 52px; perspective: 600px; }
  .dice-cube  { width: 52px; height: 52px; }
  .dice-face  { width: 52px; height: 52px; padding: 8px; gap: 3px; border-radius: 9px; }
  .dice-face.f1 { transform: translateZ(26px); }
  .dice-face.f2 { transform: rotateY(180deg) translateZ(26px); }
  .dice-face.f3 { transform: rotateY(90deg)  translateZ(26px); }
  .dice-face.f4 { transform: rotateY(-90deg) translateZ(26px); }
  .dice-face.f5 { transform: rotateX(90deg)  translateZ(26px); }
  .dice-face.f6 { transform: rotateX(-90deg) translateZ(26px); }
  .dice-pip { max-width: 9px; max-height: 9px; }
  .dice-total { font-size: 22px; min-width: 32px; }
  .btn-row .btn { padding: 7px 10px; font-size: 12px; flex: 0 1 auto; }
  .btn-row .btn.accent { flex: 1; }

  /* === Board — fills row 3, anchored to top so any leftover space sits
         between the board and the dice pane (never above the board). === */
  .board-wrap {
    grid-column: 1;
    grid-row: 3;
    padding: 0;
    place-items: start center;
  }
  .board-svg { width: 100%; height: auto; max-height: 100%; }

  /* === Tweaks panel — hide on mobile (use desktop to tune) === */
  .twk-panel { display: none !important; }

  /* === Modals — fit narrower screens === */
  .modal { width: min(360px, 94vw); }
  .stock-modal { width: 96vw; max-height: 86dvh; }
  .stock-head { grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; }
  .stock-head-stats { gap: 12px; }
  .stock-head-val { font-size: 13px; }
  .stock-list-head, .stock-row {
    grid-template-columns: 1.4fr 60px 70px 80px;
    gap: 6px;
    padding: 8px 4px;
    font-size: 11px;
  }
  .stock-list-head > span:nth-child(4),
  .stock-row > .stock-owned { display: none; }
  .trade-modal { width: 96vw; }
  .trade-grid { grid-template-columns: 1fr; gap: 8px; }
  .trade-arrow { display: none; }

  /* === Help modal — scrollable single column === */
  .help-modal { width: 96vw; max-height: 86dvh; }
  .help-body { grid-template-columns: 1fr; }
  .help-nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 6px;
    gap: 4px;
  }
  .help-nav-btn { flex-shrink: 0; padding: 6px 10px; font-size: 11px; }

  /* === Login screen — tighter padding === */
  .login-screen { padding: 12px; }
  .login-card { padding: 22px 18px 16px; gap: 14px; }
  .login-title { font-size: 22px; }
  .login-brand-mark { width: 40px; height: 40px; font-size: 14px; }
  .login-screen::after { width: 360px; height: 360px; border-width: 10px; }
}

/* Very small phones — additional belt-and-suspenders tweaks */
@media (max-width: 400px) {
  .shell { grid-template-rows: 42px 80px 1fr; }
  .brand-title { display: none; }
  .player-card { flex: 0 0 138px; }
  .dice-pane { max-width: calc(100vw - 12px); }
}

/* ===========================================================
   Mobile — Lobby & Character Select (pre-game screens)
   These screens scroll naturally; we just tighten paddings,
   shrink fonts, and let the grid collapse to a column.
   =========================================================== */
@media (max-width: 768px) {
  /* --- Lobby --- */
  .lobby-shell { padding: 16px 12px; min-height: 100dvh; }
  .lobby-card {
    width: 100%;
    max-width: 460px;
    padding: 22px 18px 18px;
    border-radius: 14px;
  }
  .lobby-title { font-size: 26px; letter-spacing: 0.04em; }
  .lobby-sub { font-size: 11px; letter-spacing: 0.18em; }
  .lobby-btn { padding: 12px 14px; border-radius: 10px; }
  .lobby-btn-t { font-size: 14px; }
  .lobby-btn-d { font-size: 11px; line-height: 1.4; margin-top: 3px; }
  .lobby-join { flex-direction: row; }
  .lobby-input {
    flex: 1; min-width: 0;
    font-size: 16px; /* prevents iOS zoom-in on focus */
    padding: 10px 12px;
  }
  .lobby-btn.small { padding: 10px 14px; font-size: 14px; flex: 0 0 auto; }
  .lobby-code { font-size: 32px; letter-spacing: 0.2em; }
  .lobby-hint, .lobby-err { font-size: 12px; line-height: 1.5; }

  /* --- Character select --- */
  .char-select { padding: 16px 12px; min-height: 100dvh; }
  .char-select-card { padding: 22px 18px 18px; border-radius: 14px; }
  .char-select-head { gap: 12px; margin-bottom: 16px; }
  .char-select-kanji { font-size: 40px; padding: 6px 12px; }
  .char-select-title { font-size: 20px; }
  .char-select-sub { font-size: 10px; letter-spacing: 0.15em; }
  .char-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
  }
  .char-card { padding: 10px 8px 12px; border-width: 2px; border-radius: 8px; }
  .char-card-portrait { height: 96px; margin-bottom: 6px; }
  .char-card-name { font-size: 15px; margin-bottom: 2px; }
  .char-card-desc { font-size: 10px; min-height: 12px; margin-bottom: 6px; }
  .char-card-quote { font-size: 10.5px; padding: 4px 6px; min-height: 22px; }
  .char-card-badge { font-size: 8px; padding: 2px 5px; top: 6px; right: 6px; }
  .char-select-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  .char-select-actions .btn,
  .char-select-actions button { width: 100%; }
  .char-select-foot { font-size: 9px; padding-top: 10px; }
}

@media (max-width: 400px) {
  .char-select-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .char-card-portrait { height: 84px; }
  .lobby-card, .char-select-card { padding: 18px 14px 14px; }
}
