
@font-face { font-family: 'Baloo 2'; font-weight: 700; font-display: swap; src: url('../fonts/baloo-2-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Baloo 2'; font-weight: 800; font-display: swap; src: url('../fonts/baloo-2-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 600; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url('../fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
:root {
  --ink-900: #1C1C22; --ink-600: #55555F; --surface-0: #FFF6D6; --surface-1: #FFFFFF; --surface-2: #FFF0B8; --line: #1C1C22; --paper-rule: #F7E7A6;
  --brand-600: #D42620; --brand-700: #A91B16; --brand-100: #FFE2DE; --gold-500: #FFD23F; --gold-100: #FFF0B3; --gold-700: #6E4E00; --coral-500: #E8590C; --coral-700: #A61E14; --coral-100: #FFE1D6; --sky-500: #2F7DE1; --sky-700: #185AA8; --sky-100: #D9EBFF;
  --leaf-700: #17693F; --leaf-100: #D8F5E3; --outline: #BDB596; --on-brand: #FFFFFF;
  --seat0: #00907F; --seat1: #D9434E; --seat2: #B58A00; --seat3: #6B55D9;
  --radius-panel: 14px; --radius-button: 10px;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 56px;
  --elevation-1: 4px 4px 0 var(--line); --elevation-2: 7px 7px 0 var(--line);
  --font-display: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', Roboto, 'Noto Sans', system-ui, sans-serif;
  --tile-paper: #FFFDF6; --tile-ink: #1C1C22; --focus: #0B5CAD;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --ink-900: #FFF6D6; --ink-600: #BDB9A8; --surface-0: #15151A; --surface-1: #23232B; --surface-2: #2F2F39; --line: #E9E2C4; --paper-rule: #1C1C22; --brand-600: #FF6B60; --brand-700: #FF8A80; --brand-100: #47201D;
  --gold-100: #40361A; --gold-700: #FFD86B; --coral-500: #FF8A4C; --coral-700: #FFA08C; --coral-100: #47281F; --sky-700: #8CC4EE; --sky-100: #1F3A52; --leaf-700: #7FDFA8; --leaf-100: #1F3F2E; --outline: #55535F; --on-brand: #15151A;
  --focus: #8CC4EE; color-scheme: dark;
}
:root[data-theme='contrast'] {
  --ink-900: #000; --ink-600: #1E1E1E; --surface-0: #FFF; --surface-1: #FFF; --surface-2: #F0F0F0; --line: #000; --paper-rule: #FFF; --brand-600: #8A0F0A; --brand-700: #5E0805; --coral-700: #8A1208; --outline: #000; --focus: #0000C8; --gold-700: #5A3A00; --sky-700: #003E6E; --leaf-700: #1F4A08;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: repeating-linear-gradient(var(--surface-0) 0 31px, var(--paper-rule) 31px 33px); color: var(--ink-900); font: 400 16px/1.5 var(--font-body); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.15; margin: 0 0 var(--space-2); letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 5vw, 38px); }
h2 { font-size: clamp(21px, 3.4vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--brand-600); font-weight: 600; }
img, svg { max-width: 100%; }
small { font-size: 13px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-600); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--space-3); }
.grow { flex: 1 1 auto; min-width: 0; }
.mono { font-family: ui-monospace, Consolas, Menlo, monospace; }
.ic { width: 20px; height: 20px; flex: none; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface-1); padding: 8px 12px; border-radius: 8px; z-index: 90; }
.skip:focus { top: 8px; }
.boot-splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); }
.boot-splash strong { font-size: 34px; color: var(--brand-600); }
.pion { display: block; width: 100%; height: 100%; overflow: visible; }
.pion--img { object-fit: contain; filter: drop-shadow(0 0 1px #1C1C22) drop-shadow(0 2px 0 rgba(28, 28, 34, .55)); }
.pion-3d { display: block; width: 100%; height: 100%; }
.pion-viewer { display: block; max-width: 100%; height: auto; }
.boot-note { max-width: 32rem; padding: 16px; margin: 16px auto; text-align: center; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 2.5px solid transparent; border-radius: var(--radius-button); font: 700 15px/1.2 var(--font-body); cursor: pointer; text-decoration: none; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease; touch-action: manipulation; user-select: none; }
.btn:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand-600); color: var(--on-brand); border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.btn--primary:hover:not(:disabled) { background: var(--brand-700); }
.btn--primary:active:not(:disabled) { box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.btn--secondary { background: var(--surface-1); color: var(--ink-900); border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.btn--secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn--secondary:active:not(:disabled) { box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.btn--outline { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--outline:hover:not(:disabled) { background: var(--surface-2); }
.btn--ghost { background: transparent; color: var(--ink-900); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { background: var(--coral-700); color: #fff; border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
:root[data-theme='dark'] .btn--danger { background: #B8423A; }
.btn--gold { background: var(--gold-500); color: #1C1C22; border-color: var(--line); box-shadow: 3px 3px 0 var(--line); }
.btn--gold:hover:not(:disabled) { filter: brightness(1.05); }
.btn--gold:active:not(:disabled) { box-shadow: 1px 1px 0 var(--line); transform: translate(2px, 2px); }
.btn--icon { padding: 0; width: 44px; min-width: 44px; }
.btn--sm { min-height: 36px; padding: 4px 12px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 10px 26px; font-size: 18px; font-family: var(--font-display); font-weight: 800; }
.btn--block { width: 100%; }
.btn.is-busy { color: transparent; pointer-events: none; }
.btn.is-busy::after { content: ''; position: absolute; width: 18px; height: 18px; border: 3px solid currentColor; border-color: var(--ink-600) transparent var(--ink-600) transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.btn--primary.is-busy::after { border-color: var(--on-brand) transparent var(--on-brand) transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: var(--space-3); }
.field__label { font-weight: 600; font-size: 14px; }
.field__hint { font-size: 13px; color: var(--ink-600); margin: 0; }
.field__hint--warn { color: var(--gold-700); font-weight: 600; }
.field__err { font-size: 13px; color: var(--coral-700); font-weight: 600; margin: 0; }
.input { width: 100%; min-height: 44px; padding: 8px 12px; border: 2.5px solid var(--line); border-radius: var(--radius-button); background: var(--surface-1); color: var(--ink-900); font: 400 16px/1.3 var(--font-body); }
.input:focus { border-color: var(--brand-600); outline: none; box-shadow: 0 0 0 3px var(--brand-100); }
.has-error .input { border-color: var(--coral-700); }
.input--area { resize: vertical; min-height: 88px; }
.input--code { font: 800 24px/1 var(--font-display); letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.pw-row { display: flex; gap: 4px; align-items: center; }
.pw-row .input { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--brand-600); }
.meter { display: flex; gap: 4px; margin-top: 4px; }
.meter span { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.meter[data-l='1'] span:nth-child(-n+1) { background: var(--coral-500); }
.meter[data-l='2'] span:nth-child(-n+2) { background: var(--gold-500); }
.meter[data-l='3'] span { background: var(--brand-600); }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--radius-button); }
.seg__btn { flex: 1; min-height: 44px; padding: 6px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-900); font: 600 14px/1.15 var(--font-body); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.seg__btn small { font-weight: 400; font-size: 12px; color: var(--ink-600); }
.seg__btn[aria-checked='true'] { background: var(--surface-1); box-shadow: var(--elevation-1); font-weight: 700; }
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch.is-disabled { opacity: .55; cursor: not-allowed; }
.switch__input { position: absolute; opacity: 0; width: 44px; height: 26px; margin: 0; cursor: inherit; }
.switch__track { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--outline); border: 2px solid var(--ink-600); transition: background-color .12s; }
.switch__track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-1); border: 2px solid var(--ink-600); transition: transform .12s; }
.switch__input:checked + .switch__track { background: var(--brand-600); border-color: var(--brand-700); }
.switch__input:checked + .switch__track::after { transform: translateX(18px); border-color: var(--brand-700); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--focus); outline-offset: 2px; }
.switch__label { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; }
.switch__label small { font-weight: 400; color: var(--ink-600); }
.slider { display: grid; grid-template-columns: 96px 1fr 34px; gap: 10px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.slider__input { width: 100%; height: 28px; accent-color: var(--brand-600); }
.slider__val { text-align: right; font-variant-numeric: tabular-nums; }
.tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 2px solid var(--outline); margin-bottom: var(--space-4); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn { flex: none; min-height: 44px; padding: 8px 14px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--ink-600); font: 700 14px var(--font-body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs__btn[aria-selected='true'] { color: var(--ink-900); border-bottom-color: var(--brand-600); }
.chip { min-height: 36px; padding: 4px 12px; border-radius: 18px; background: var(--surface-1); border: 2px solid var(--outline); color: var(--ink-900); font: 600 13px var(--font-body); cursor: pointer; }
.chip.is-on { background: var(--ink-900); border-color: var(--ink-900); color: var(--surface-0); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-900); white-space: nowrap; }
.badge--coral { background: var(--coral-700); color: #fff; }
.badge--brand { background: var(--brand-100); color: var(--brand-700); }
.badge--gold { background: var(--gold-100); color: var(--gold-700); }
.badge--sky { background: var(--sky-100); color: var(--sky-700); }
.badge--leaf { background: var(--leaf-100); color: var(--leaf-700); }
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress__bar { display: block; height: 100%; background: var(--brand-600); transition: width .3s ease; }
.skeleton { display: flex; flex-direction: column; gap: 10px; padding: var(--space-3) 0; }
.skeleton__line { height: 16px; border-radius: 8px; background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--space-6) var(--space-4); }
.empty img { width: 84px; height: auto; margin-bottom: 4px; }
.empty p { color: var(--ink-600); margin: 0; max-width: 28rem; }
.empty .btn { margin-top: var(--space-2); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-button); background: var(--sky-100); color: var(--ink-900); font-size: 14px; }
.banner--warn { background: var(--gold-100); }
.banner--error { background: var(--coral-100); }
.banner--ok { background: var(--leaf-100); }
.card { background: var(--surface-1); border: 3px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--elevation-1); padding: var(--space-4); }
.card--flat { box-shadow: none; border: 2px solid var(--outline); }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--size, 44px); height: var(--size, 44px); border-radius: 50%; background: var(--gold-500); border: 2.5px solid var(--line); overflow: visible; }
.avatar .pion { width: auto; height: 82%; }
.avatar__frame { position: absolute; inset: -22%; width: 144%; height: 144%; max-width: none; pointer-events: none; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: var(--space-3); font-size: 14px; }
#toasts { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--ink-900); color: var(--surface-0); border: 2.5px solid var(--line); border-radius: var(--radius-button); box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); font-size: 14px; font-weight: 600; animation: toast-in .18s ease; }
.toast--error { background: var(--coral-700); color: #fff; }
.toast--success { background: var(--leaf-700); color: #fff; }
.toast.is-out { opacity: 0; transition: opacity .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: rgba(20, 20, 26, .55); animation: fade-in .14s ease; }
.overlay.is-out { opacity: 0; transition: opacity .16s; }
@keyframes fade-in { from { opacity: 0; } }
.overlay--sheet { align-items: flex-end; padding: 0; }
.dialog { display: flex; flex-direction: column; width: min(100%, 460px); max-height: 92dvh; background: var(--surface-1); border: 3px solid var(--line); border-radius: var(--radius-panel); box-shadow: var(--elevation-2); outline: none; }
.dialog--wide { width: min(100%, 760px); }
.dialog--sheet { width: 100%; max-width: 640px; margin: 0 auto; border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding-bottom: env(safe-area-inset-bottom, 0); animation: sheet-in .2s ease; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: 0; } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 10px 4px 18px; }
.dialog__head h2 { margin: 0; font-size: 21px; }
.dialog__body { padding: 8px 18px 14px; overflow-y: auto; flex: 1; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0)); border-top: 1px solid var(--outline); }
.shell { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 6px max(var(--space-4), env(safe-area-inset-left)); background: var(--gold-500); color: #1C1C22; border-bottom: 3px solid var(--line); }
.topbar .btn--ghost { color: #1C1C22; }
.topbar .btn--ghost:hover:not(:disabled) { background: rgba(0, 0, 0, .1); }
.topbar__logo { display: flex; align-items: center; height: 44px; }
.topbar__logo img { height: 44px; width: auto; }
.topbar__nav { display: none; gap: 2px; margin-left: var(--space-3); }
.topbar__nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: 10px; color: #1C1C22; text-decoration: none; font-size: 14px; font-weight: 700; }
.topbar__nav a:hover { background: rgba(0, 0, 0, .1); }
.topbar__nav a[aria-current='page'] { background: #1C1C22; color: #FFD23F; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.wallet { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; min-height: 36px; border-radius: 18px; background: #FFFDF6; border: 2px solid #1C1C22; color: #1C1C22; font-weight: 800; font-size: 14px; text-decoration: none; white-space: nowrap; }
.notif-dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--coral-700); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: var(--space-4) var(--space-4) 96px; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface-1); border-top: 3px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; color: var(--ink-600); text-decoration: none; font-size: 11px; font-weight: 700; }
.bottomnav a[aria-current='page'] { color: var(--ink-900); background: var(--gold-500); }
:root[data-theme='dark'] .bottomnav a[aria-current='page'] { color: #1C1C22; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.page-head h1 { margin: 0; }
.net-banner { position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%); z-index: 70; padding: 8px 14px; border-radius: 20px; background: var(--ink-900); color: var(--surface-0); font-size: 13px; font-weight: 600; box-shadow: var(--elevation-2); }
.announce-bar { background: var(--gold-100); color: var(--gold-700); padding: 8px var(--space-4); font-size: 14px; font-weight: 600; text-align: center; }
.maintenance-bar { background: var(--coral-700); color: #fff; padding: 8px var(--space-4); font-size: 14px; font-weight: 600; text-align: center; }
@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .bottomnav { display: none; }
  .main { padding-bottom: var(--space-7); }
  .net-banner { bottom: 16px; }
}
.hero { position: relative; overflow: hidden; background: #FFD23F; color: #1C1C22; border-bottom: 3px solid var(--line); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero__inner { position: relative; max-width: 1120px; margin: 0 auto; padding: var(--space-5) var(--space-4) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); min-height: 480px; justify-content: center; }
.hero__logo { width: min(86vw, 460px); height: auto; }
.hero__tag { font: 800 clamp(19px, 3.6vw, 26px)/1.2 var(--font-display); color: #1C1C22; margin: 0; max-width: 28rem; background: #FFFDF6; border: 3px solid #1C1C22; box-shadow: 4px 4px 0 #1C1C22; border-radius: 10px; padding: 8px 12px; }
.landing-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.hero .btn--secondary { background: #FFFDF6; color: #1C1C22; border-color: #1C1C22; box-shadow: 3px 3px 0 #1C1C22; }
.hero__login { width: fit-content; margin: 0; padding: 4px 12px; border-radius: 10px; background: #FFFDF6; border: 2px solid #1C1C22; color: #1C1C22; font-weight: 600; }
.hero__login a { color: #A91B16; }
@media (max-width: 760px) {
  .hero__art { opacity: .32; }
  .hero__inner { min-height: 420px; }
}
.pion-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pion-row > * { width: 36px; height: 54px; }
.benefits { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: var(--space-5) 0; }
.benefit { display: flex; gap: var(--space-3); align-items: flex-start; }
.benefit > svg { width: 64px; height: 64px; flex: none; background: var(--surface-2); border: 2.5px solid var(--line); border-radius: 10px; padding: 4px; }
.benefit h3 { margin-bottom: 2px; }
.benefit p { margin: 0; color: var(--ink-600); font-size: 15px; }
.faq details { border-bottom: 1px solid var(--outline); padding: 12px 0; }
.faq summary { font-weight: 700; cursor: pointer; min-height: 28px; }
.faq p { margin: 8px 0 0; color: var(--ink-600); }
.footer { display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-5) var(--space-4); justify-content: center; border-top: 1px solid var(--outline); font-size: 14px; color: var(--ink-600); }
.auth-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: repeating-linear-gradient(#FFD23F 0 16px, #F2B90F 16px 18px); }
.auth-card { width: min(100%, 440px); }
.auth-card__logo { display: block; width: 240px; margin: 0 auto var(--space-3); }
.install-list { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: flex; flex-direction: column; gap: 6px; }
.install-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.install-list .st { flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.st--pass { background: var(--brand-600); }
.st--fail { background: var(--coral-700); }
.st--warn, .st--info, .st--unverified { background: #A87A1A; }
.home-hero { position: relative; overflow: hidden; border-radius: var(--radius-panel); border: 3px solid var(--line); box-shadow: var(--elevation-1); background: #FFD23F; min-height: 280px; display: flex; flex-direction: column; justify-content: center; padding: var(--space-4); margin-bottom: var(--space-4); }
.home-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.home-hero__body { position: relative; max-width: 500px; display: flex; flex-direction: column; gap: var(--space-2); background: #FFFDF6; color: #1C1C22; border: 3px solid #1C1C22; border-radius: var(--radius-panel); padding: var(--space-4); }
.home-hero__body h1 { margin: 0; color: #1C1C22; }
.home-hero__body .input { background: #fff; color: #1C1C22; border-color: #1C1C22; }
.home-hero__body .muted { color: #55555F; }
.home-hero__body .btn--secondary { background: #fff; color: #1C1C22; border-color: #1C1C22; box-shadow: 3px 3px 0 #1C1C22; }
.home-hero__cta { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.home-pawn { position: absolute; right: 5%; bottom: 8px; width: 72px; height: 108px; }
@media (max-width: 620px) { .home-pawn { display: none; } }
.join-row { display: flex; gap: var(--space-2); }
.join-row .input { flex: 1; min-width: 0; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-bottom: var(--space-4); }
.quick__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-3) var(--space-2); background: var(--surface-1); border-radius: var(--radius-panel); box-shadow: var(--elevation-1); color: var(--ink-900); text-decoration: none; font-weight: 700; font-size: 14px; text-align: center; min-height: 88px; justify-content: center; border: 3px solid var(--line); }
.quick__item:hover { background: var(--surface-2); }
.quick__item .ic { width: 28px; height: 28px; color: var(--brand-600); }
.home-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .home-grid { grid-template-columns: 1.15fr 1fr; } }
.list-plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list-plain > li { display: flex; align-items: center; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--outline); }
.list-plain > li:last-child { border-bottom: 0; }
.mission-row { flex-wrap: wrap; }
.mission-row__body { flex: 1; min-width: 180px; }
.mission-row__title { font-weight: 700; font-size: 15px; }
.stat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); text-align: center; }
.stat-trio strong { display: block; font: 800 24px var(--font-display); }
.stat-trio span { font-size: 13px; color: var(--ink-600); }
.koran { font-family: var(--font-display); font-weight: 700; border-left: 5px solid var(--brand-600); padding-left: 10px; font-size: 16px; }
.mode-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.mode-card { text-align: left; padding: var(--space-3); border-radius: var(--radius-panel); border: 2.5px solid var(--line); background: var(--surface-1); color: var(--ink-900); cursor: pointer; min-height: 96px; font: inherit; }
.mode-card[aria-pressed='true'] { background: var(--gold-500); color: #1C1C22; box-shadow: 3px 3px 0 var(--line); }
.mode-card[aria-pressed='true'] small { color: #3B3B44; }
.mode-card h3 { margin-bottom: 2px; }
.mode-card small { color: var(--ink-600); display: block; }
.lobby { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 880px) { .lobby { grid-template-columns: 1.4fr 1fr; } }
.code-box { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.code-box__code { font: 800 clamp(26px, 6vw, 34px)/1 var(--font-display); letter-spacing: .12em; padding: 8px 14px; border-radius: 12px; background: var(--gold-100); color: var(--ink-900); border: 2px dashed var(--ink-900); }
.seats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
@media (min-width: 620px) { .seats { grid-template-columns: repeat(4, 1fr); } }
.seat-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-3) var(--space-2); min-height: 170px; border: 2.5px solid var(--line); border-radius: var(--radius-panel); background: var(--surface-1); text-align: center; }
.seat-slot--empty { border-style: dashed; color: var(--ink-600); justify-content: center; }
.seat-slot.is-ready { border-color: var(--brand-600); background: var(--brand-100); }
:root[data-theme='dark'] .seat-slot.is-ready { background: #1E3F3F; }
.seat-slot__pion { width: 48px; height: 72px; }
.seat-slot--bot { background: var(--surface-2); }
.seat-slot__name { font-weight: 700; font-size: 14px; word-break: break-word; }
.chat-box { display: flex; flex-direction: column; gap: 6px; min-height: 240px; }
.chat-list { flex: 1; min-height: 160px; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--surface-2); border-radius: 12px; }
.chat-msg { align-self: flex-start; max-width: 88%; padding: 5px 10px; background: var(--surface-1); border-radius: 10px; font-size: 14px; overflow-wrap: anywhere; }
.chat-msg.is-me { align-self: flex-end; background: var(--brand-100); }
:root[data-theme='dark'] .chat-msg.is-me { background: #1E3F3F; }
.chat-msg__name { display: block; font-size: 12px; font-weight: 700; color: var(--ink-600); }
.chat-msg__act { background: none; border: 0; color: var(--ink-600); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0 0 0 6px; min-height: 24px; }
.quick-row { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.shop-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
.item-card { display: flex; flex-direction: column; background: var(--surface-1); border-radius: var(--radius-panel); box-shadow: var(--elevation-1); overflow: hidden; border: 3px solid var(--line); }
.item-card.is-owned { background: var(--gold-100); }
.item-card__art { position: relative; height: 128px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); cursor: pointer; border: 0; width: 100%; color: inherit; overflow: hidden; }
.item-card__pion { width: 64px; height: 96px; }
.item-card__body { padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-card__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.item-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.price { font-weight: 800; color: var(--gold-700); font-size: 14px; white-space: nowrap; }
.wish { position: absolute; top: 2px; right: 2px; }
.rarity { position: absolute; top: 6px; left: 6px; }
.dice-preview { display: flex; gap: 6px; }
.preview-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; background: var(--surface-2); border-radius: var(--radius-panel); overflow: hidden; margin-bottom: var(--space-3); }
.preview-stage__pion { width: 120px; height: 180px; }
.pion-grid { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.frame-preview { position: relative; display: inline-flex; }
.sticker { width: 52px; height: 52px; }
.emote-wheel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.emote-slot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; min-height: 84px; background: var(--surface-2); border-radius: 12px; border: 2px dashed var(--outline); cursor: pointer; font: 600 12px var(--font-body); color: var(--ink-900); }
.emote-slot.is-on { border: 2px solid var(--brand-600); background: var(--surface-1); }
.game { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'hud' 'board' 'dock'; background: #26262E; color: var(--ink-900); overflow: hidden; }
.g-hud { grid-area: hud; z-index: 12; background: var(--surface-1); border-bottom: 3px solid var(--line); padding-top: env(safe-area-inset-top, 0); }
.g-hud__top { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 2px 6px; }
.g-round { font: 800 14px/1.05 var(--font-display); white-space: nowrap; }
.g-round small { display: block; font: 600 11px var(--font-body); color: var(--ink-600); }
.g-turn { flex: 1; min-width: 0; font-weight: 700; font-size: 13px; line-height: 1.15; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-timer { position: relative; flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font: 800 15px var(--font-display); font-variant-numeric: tabular-nums; }
.g-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.g-timer circle { fill: none; stroke-width: 4; }
.g-timer .bg { stroke: var(--surface-2); }
.g-timer .fg { stroke: var(--brand-600); stroke-linecap: round; }
.g-timer.is-low .fg { stroke: var(--coral-500); }
.g-timer.is-low { color: var(--coral-700); }
.g-conn { flex: none; display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--coral-700); }
.g-seats { display: flex; gap: 4px; overflow-x: auto; padding: 2px 6px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.g-seats::-webkit-scrollbar { display: none; }
.g-seat { flex: 1 0 136px; scroll-snap-align: start; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 4px; min-height: 48px; border-radius: 10px; border: 2.5px solid var(--line); background: var(--surface-1); color: var(--ink-900); cursor: pointer; text-align: left; font: inherit; position: relative; }
.g-seat.is-active { background: var(--gold-500); color: #1C1C22; box-shadow: 3px 3px 0 var(--seat); }
.g-seat.is-out { opacity: .55; }
.g-seat__pion { flex: none; width: 26px; height: 39px; }
.g-seat__tok { position: absolute; left: 22px; bottom: 1px; width: 14px; height: 14px; color: var(--seat); }
.g-seat__text { min-width: 0; flex: 1; line-height: 1.1; }
.g-seat__name { display: block; font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-seat__cash { display: block; font: 800 15px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-seat__meta { display: flex; align-items: center; gap: 3px; min-height: 12px; }
.g-seat__land { font-size: 11px; font-weight: 600; white-space: nowrap; }
.g-stat-ic { width: 14px; height: 14px; }
.g-stat-pass { font-size: 10px; font-weight: 800; padding: 0 3px; border: 1.5px solid currentColor; border-radius: 4px; }
.g-board { grid-area: board; position: relative; overflow: hidden; touch-action: none; user-select: none; }
.g-board__bg { position: absolute; inset: 0; opacity: .25; }
.camera { position: absolute; left: 0; top: 0; width: 1200px; height: 1150px; transform-origin: 0 0; will-change: transform; }
.camera.is-smooth { transition: transform .32s ease; }
.board { position: absolute; inset: 0; background: #FFD23F; border: 5px solid #1C1C22; border-radius: 18px; box-shadow: 10px 10px 0 #0E0E12; overflow: hidden; }
.board__paper { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board__track-bg { fill: #1C1C22; stroke: #1C1C22; stroke-width: 12; stroke-linejoin: round; }
.board__center { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 680px; display: flex; align-items: center; justify-content: center; gap: 22px; pointer-events: none; }
.board__logo { width: 330px; height: auto; flex: none; }
.deck { position: relative; flex: none; width: 138px; height: 192px; }
.deck--takdir { transform: rotate(-6deg); }
.deck--musibah { transform: rotate(6deg); }
.deck svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .45)); }
.deck svg:nth-child(2) { transform: translate(-2px, -3px); }
.deck svg:nth-child(3) { transform: translate(-4px, -6px); }
.rulebox rect { fill: #FFFDF6; stroke: #1C1C22; stroke-width: 3; }
.rulebox__title { font: 800 18px var(--font-display); fill: #1C1C22; }
.rulebox__line { font: 600 14px var(--font-body); fill: #1C1C22; }
.region-label { font: 800 22px var(--font-display); letter-spacing: .14em; fill: #1C1C22; }
.tile { cursor: pointer; outline: none; }
.tile__bg { fill: var(--tile-paper); stroke: #1C1C22; stroke-width: 2; }
.tile__hl { fill: none; stroke: transparent; stroke-width: 7; pointer-events: none; }
.tile:hover .tile__bg { filter: brightness(.96); }
.tile.is-active .tile__hl { stroke: var(--active-color, #D42620); }
.tile:focus-visible .tile__hl { stroke: #0B5CAD; }
.tile--start .tile__bg { fill: #BFF0D0; }
.tile--lapas .tile__bg { fill: #D8D8DE; }
.tile--pajak .tile__bg { fill: #FFE27A; }
.tile--pengadilan .tile__bg { fill: #FFD6A5; }
.tile--pungli .tile__bg { fill: #FFC9C5; }
.tile--takdir .tile__bg { fill: #1C7ED6; }
.tile--musibah .tile__bg { fill: #E8590C; }
.tile--tol .tile__bg { fill: #E3E1D8; }
.tile--tilang .tile__bg { fill: #FFC9C5; }
.tile__band { stroke: #1C1C22; stroke-width: 1.5; }
.tile__name { font: 800 15px var(--font-display); fill: #fff; paint-order: stroke; stroke: rgba(0, 0, 0, .45); stroke-width: 2.4px; }
.tile__name--special { fill: #1C1C22; stroke: none; }
.tile--takdir .tile__name--special, .tile--musibah .tile__name--special { fill: #fff; }
.tile__foot { fill: #FFF3C4; stroke: #1C1C22; stroke-width: 1.5; }
.tile__foot-own { stroke: #1C1C22; stroke-width: 1.5; }
.tile__price { font: 800 15px var(--font-display); fill: #1C1C22; }
.tile__own-text { font: 800 14px var(--font-display); fill: #fff; }
.tile__tok { color: #fff; }
.tile__gate-bg { fill: #E3E1D8; stroke: #1C1C22; stroke-width: 2; }
.tile__corner-name { font: 800 18px var(--font-display); fill: #1C1C22; }
.pawn { position: absolute; left: 0; top: 0; width: 48px; height: 72px; margin-left: -24px; margin-top: -66px; pointer-events: none; z-index: 5; }
.pawn__body { width: 100%; height: 100%; transform-origin: 50% 90%; }
.pawn__tag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); width: 20px; height: 20px; color: var(--seat); filter: drop-shadow(0 1px 0 #1C1C22); }
.pawn.is-out { opacity: .3; filter: grayscale(.9); }
.pawn.is-lapas .pawn__body { background: repeating-linear-gradient(90deg, rgba(28, 28, 34, .75) 0 3px, transparent 3px 11px); border-radius: 8px; }
.pawn.is-focus { z-index: 40 !important; }
.sticker-pop { position: absolute; left: 50%; top: -52px; width: 54px; height: 54px; margin-left: -27px; z-index: 7; }
.dice-stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; gap: 16px; z-index: 8; pointer-events: none; perspective: 500px; }
.die-wrap { width: 56px; height: 56px; }
.die { position: relative; width: 56px; height: 56px; transform-style: preserve-3d; }
.die__f { position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 8px; background: var(--die-bg, #FFFBF2); border: 2.5px solid var(--line); border-radius: 12px; backface-visibility: hidden; }
.die__f i { width: 9px; height: 9px; border-radius: 50%; background: var(--die-pip, var(--line)); place-self: center; visibility: hidden; }
.die__f i.on { visibility: visible; }
.die__f--1 { transform: translateZ(28px); }
.die__f--6 { transform: rotateY(180deg) translateZ(28px); }
.die__f--2 { transform: rotateY(90deg) translateZ(28px); }
.die__f--5 { transform: rotateY(-90deg) translateZ(28px); }
.die__f--3 { transform: rotateX(90deg) translateZ(28px); }
.die__f--4 { transform: rotateX(-90deg) translateZ(28px); }
.die--wood { --die-bg: #C99B6A; --die-pip: #3E2A20; }
.die--stone { --die-bg: #C2C8CC; --die-pip: var(--line); }
.die--paper { --die-bg: #F4A9A0; --die-pip: #FFFBF2; }
.die--ceramic { --die-bg: #E9F3F5; --die-pip: #157C73; }
.die--night { --die-bg: #2B3A5E; --die-pip: #F8D585; }
.die--kiosk { --die-bg: #157C73; --die-pip: #FFFBF2; }
.die--mini { width: 34px; height: 34px; }
.die--mini .die__f { padding: 4px; border-radius: 8px; }
.die--mini .die__f i { width: 5.500px; height: 5.500px; }
.g-cam { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 9; }
.g-cam .btn { background: var(--surface-1); border: 2.5px solid var(--line); }
.g-bubble { position: absolute; left: 8px; right: 60px; bottom: 8px; z-index: 9; display: flex; flex-direction: column; gap: 4px; pointer-events: none; align-items: flex-start; }
.g-bubble__msg { background: var(--surface-1); border: 2px solid var(--line); border-radius: 12px; padding: 5px 10px; font-size: 13px; font-weight: 600; max-width: 100%; animation: toast-in .18s ease; box-shadow: var(--elevation-1); }
.g-notice { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 10; }
.float-text { position: absolute; z-index: 9; font: 800 26px var(--font-display); white-space: nowrap; pointer-events: none; color: #fff; -webkit-text-stroke: 1px var(--line); paint-order: stroke fill; text-shadow: 0 2px 0 var(--line); }
.float-text--gain { color: #F8D585; }
.float-text--loss { color: #FFB4AC; }
.g-side { display: none; }
.g-ctx { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; max-height: 72%; overflow-y: auto; background: var(--surface-1); border-top: 3px solid var(--line); border-radius: var(--radius-panel) var(--radius-panel) 0 0; padding: var(--space-3); box-shadow: 0 -8px 22px rgba(0, 0, 0, .25); }
[hidden] { display: none !important; }
.g-ctx__close { position: absolute; right: 4px; top: 4px; }
.g-dock { grid-area: dock; z-index: 12; display: flex; align-items: center; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0)); background: var(--surface-1); border-top: 3px solid var(--line); }
.g-dock__main { flex: 1; min-width: 0; display: flex; gap: 6px; }
.g-dock__main .btn { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; white-space: normal; line-height: 1.1; }
@media (max-width: 420px) { .g-dock__main { flex-wrap: wrap; } .g-dock__main .btn { flex: 1 1 68px; font-size: 15px; padding-left: 4px; padding-right: 4px; gap: 4px; } }
@media (max-width: 340px) { .g-dock__main .btn { font-size: 13px; } .g-dock__main .btn svg { display: none; } }
.g-wait { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink-600); min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.card-face { display: flex; flex-direction: column; gap: 8px; }
.card-face--takdir .card-face__deck { background: #1C7ED6; color: #fff; }
.card-face--musibah .card-face__deck { background: #C2410C; color: #fff; }
.card-face__head { display: flex; align-items: center; gap: 10px; }
.card-face__spot { width: 96px; height: 58px; flex: none; }
.card-face__deck { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 1px 8px; border-radius: 6px; margin-bottom: 4px; }
.card-face__title { font: 800 21px/1.1 var(--font-display); margin: 0; }
.card-face__narr { margin: 0; font-size: 15px; line-height: 1.45; }
.card-face__punch { margin: 0; font-style: italic; color: var(--ink-600); font-size: 14px; border-left: 4px solid var(--gold-500); padding-left: 8px; }
.roll-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.roll-table th { width: 56px; background: var(--gold-500); color: #1C1C22; border: 2.5px solid var(--line); border-radius: 8px 0 0 8px; font: 800 18px var(--font-display); text-align: center; }
.roll-table td { border: 2.5px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; padding: 4px 8px; font-size: 14px; line-height: 1.25; }
.roll-table td small { color: var(--ink-600); font-weight: 600; }
.roll-table tr.is-hit th { background: var(--brand-600); color: var(--on-brand); }
.roll-table tr.is-hit td { background: var(--gold-100); }
.choice { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 6px 10px; border: 2.5px solid var(--line); border-radius: var(--radius-button); background: var(--surface-1); color: var(--ink-900); box-shadow: 3px 3px 0 var(--line); cursor: pointer; text-align: left; font: inherit; }
.choice:hover:not(:disabled) { background: var(--surface-2); }
.choice:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.choice:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.choice svg { width: 28px; height: 28px; flex: none; }
.choice .pion, .choice .pion-3d { width: 26px; height: 39px; flex: none; }
.choice__label { display: block; font-weight: 700; font-size: 15px; line-height: 1.2; }
.choice__sum { display: block; font-size: 13px; font-weight: 600; color: var(--ink-600); }
.choice.is-loss .choice__sum { color: var(--coral-700); }
.choice.is-gain .choice__sum { color: var(--leaf-700); }
.result-note { padding: 10px 12px; border-radius: 12px; background: var(--gold-100); border: 2px solid var(--line); color: var(--ink-900); font-size: 14px; }
.result-note strong { display: block; }
.rule-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rule-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--outline); vertical-align: top; text-align: left; }
.rule-table td:first-child { font-weight: 700; width: 30%; min-width: 92px; }
.rule-table tr:last-child td { border-bottom: 0; }
.fine-stamp { display: inline-block; align-self: flex-start; font: 800 16px var(--font-display); color: var(--coral-700); border: 2.5px solid var(--coral-700); border-radius: 8px; padding: 2px 10px; transform: rotate(-2deg); }
.fine-stamp.is-gain { color: var(--leaf-700); border-color: var(--leaf-700); }
.fine-stamp.is-neutral { color: var(--ink-900); border-color: var(--ink-900); }
.prop-card { display: flex; flex-direction: column; gap: 8px; }
.prop-card__head { display: flex; align-items: center; gap: 10px; }
.prop-card__head svg { width: 64px; height: 64px; flex: none; }
.prop-card__head.has-band { border-left: 8px solid var(--band); padding-left: 8px; }
.prop-card__region { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-600); font-size: 11px; }
.rent-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rent-table th, .rent-table td { padding: 3px 4px; border-bottom: 1px solid var(--outline); text-align: left; }
.rent-table td:last-child, .rent-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.rent-table tr.is-now { background: var(--brand-100); }
.sell-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--outline); }
.sell-row svg { width: 34px; height: 34px; flex: none; }
.sell-row__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.2; }
.log-list { list-style: none; margin: 0; padding: 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.log-list li { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); line-height: 1.3; overflow-wrap: anywhere; }
.log-list li.is-round { background: var(--brand-100); font-weight: 700; }
.tile-list { display: grid; gap: 2px; }
.tile-list button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 4px 8px; background: none; border: 0; border-bottom: 1px solid var(--outline); text-align: left; color: inherit; font: 600 14px var(--font-body); cursor: pointer; }
.tile-list svg { width: 32px; height: 32px; flex: none; }
.coach { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; background: var(--sky-100); padding: 8px 10px; border-radius: 10px; border: 2px solid var(--line); }
.coach svg { width: 36px; height: 36px; flex: none; border-radius: 6px; }
@media (min-width: 1000px) {
  .game { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'hud hud' 'board side' 'board dock'; }
  .g-dock { border-left: 2px solid var(--line); }
  .g-hud { display: flex; align-items: center; }
  .g-hud__top { flex: 0 1 420px; min-width: 300px; }
  .g-seats { flex: 1; padding: 4px 6px; }
  .g-side { grid-area: side; display: flex; flex-direction: column; background: var(--surface-1); border-left: 2px solid var(--line); min-height: 0; z-index: 11; }
  .g-side__ctx { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: var(--space-3); }
  .g-ctx { position: static; max-height: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; overflow: visible; }
  .g-ctx__close { display: none; }
  .g-side__tabs { flex: 0 0 auto; border-top: 2px solid var(--outline); }
  .g-side__tabs .tabs { margin: 0; }
  .g-side__pane { height: 220px; overflow-y: auto; padding: 8px; }
  .die-wrap, .die { width: 72px; height: 72px; }
  .die__f { padding: 11px; border-radius: 15px; }
  .die__f i { width: 12px; height: 12px; }
  .die__f--1 { transform: translateZ(36px); }
  .die__f--6 { transform: rotateY(180deg) translateZ(36px); }
  .die__f--2 { transform: rotateY(90deg) translateZ(36px); }
  .die__f--5 { transform: rotateY(-90deg) translateZ(36px); }
  .die__f--3 { transform: rotateX(90deg) translateZ(36px); }
  .die__f--4 { transform: rotateX(-90deg) translateZ(36px); }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 999px) {
  .game { grid-template-columns: minmax(0, 1fr) 280px; grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: 'board hud' 'board dock'; }
  .g-hud { border-bottom: 0; border-left: 2px solid var(--line); overflow-y: auto; }
  .g-seats { flex-direction: column; overflow: visible; }
  .g-seat { flex: 0 0 auto; }
  .g-dock { border-left: 2px solid var(--line); }
  .g-ctx { max-height: 92%; right: auto; width: min(100%, 460px); }
}
.result-top { position: relative; overflow: hidden; border-radius: var(--radius-panel); background: repeating-linear-gradient(#FFD23F 0 16px, #F2B90F 16px 18px); border: 3px solid var(--line); box-shadow: var(--elevation-1); padding: var(--space-4) var(--space-3) 0; margin-bottom: var(--space-4); color: #1C1C22; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 2vw, 16px); min-height: 250px; }
.podium__col { display: flex; flex-direction: column; align-items: center; width: clamp(68px, 22vw, 150px); }
.podium__pion { width: clamp(46px, 11vw, 72px); height: clamp(69px, 16.500vw, 108px); }
.podium__name { font-weight: 700; font-size: 13px; text-align: center; line-height: 1.15; margin-bottom: 2px; overflow-wrap: anywhere; }
.podium__step { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #FFFDF6; border: 3px solid #1C1C22; border-bottom: 0; border-radius: 8px 8px 0 0; font: 800 26px var(--font-display); }
.podium__step small { font: 700 12px var(--font-body); }
.fx-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.fx-piece { position: absolute; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.breakdown th, .breakdown td { padding: 6px 8px; border-bottom: 1px solid var(--outline); text-align: right; font-variant-numeric: tabular-nums; }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; font-weight: 700; }
.table-scroll { overflow-x: auto; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font-body); font-size: 11px; fill: var(--ink-600); }
.chart-tip { position: absolute; z-index: 5; min-width: 120px; padding: 6px 10px; background: var(--ink-900); color: var(--surface-0); border-radius: 8px; font-size: 12px; pointer-events: none; }
:root { --chart1: #00907F; --chart2: #D9434E; --chart3: #B58A00; --chart4: #6B55D9; }
:root[data-theme='dark'] { --chart1: #1FA896; --chart2: #E9616A; --chart3: #AE8A14; --chart4: #8A74E8; }
.moment { padding: 8px 12px; border-left: 5px solid var(--brand-600); background: var(--surface-2); border-radius: 0 12px 12px 0; margin-bottom: 8px; font-size: 14px; }
.reward-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: var(--gold-100); color: var(--gold-700); font-weight: 800; }
.admin { display: grid; min-height: 100dvh; grid-template-columns: 1fr; }
.admin__side { background: #1C1C22; color: #E7EBF2; padding: 8px; display: flex; gap: 4px; overflow-x: auto; position: sticky; top: 0; z-index: 20; scrollbar-width: thin; }
.admin__side a { flex: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: 8px; color: #C9D1DE; text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; }
.admin__side a:hover { background: #33333D; color: #fff; }
.admin__side a[aria-current='page'] { background: #FFD23F; color: #1C1C22; }
.admin__brand { display: none; }
.admin__main { padding: var(--space-4); min-width: 0; }
@media (min-width: 980px) {
  .admin { grid-template-columns: 236px minmax(0, 1fr); }
  .admin__side { flex-direction: column; overflow-y: auto; height: 100dvh; overflow-x: hidden; }
  .admin__brand { display: block; padding: 6px 8px 12px; font: 800 20px var(--font-display); color: #fff; }
}
.admin__who { display: none; padding: 0 8px 8px; color: #9AA6B8; font-size: 12px; overflow-wrap: anywhere; }
@media (min-width: 900px) { .admin__who { display: block; } }
.admin-board { grid-area: auto; min-height: 360px; height: min(70vh, 560px); border-radius: 12px; background: #26262E; }
.setting { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid var(--outline); }
.setting:first-child { border-top: 0; padding-top: 0; }
.setting__label { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.card-preview { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; transition: width .2s ease; }
.crumb { font-size: 13px; color: var(--ink-600); margin-bottom: 4px; }
.tbl-wrap { overflow-x: auto; background: var(--surface-1); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--elevation-1); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; padding: 8px 10px; background: var(--surface-2); font-size: 13px; white-space: nowrap; }
.tbl th button { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; color: inherit; padding: 0; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--outline); vertical-align: top; overflow-wrap: anywhere; }
.tbl tr.is-click { cursor: pointer; }
.tbl tr.is-click:hover td { background: var(--surface-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3); align-items: center; }
.filters .input { width: auto; min-width: 140px; flex: 0 1 220px; }
.kpis { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: var(--space-4); }
.kpi { background: var(--surface-1); border: 3px solid var(--line); border-radius: 12px; box-shadow: var(--elevation-1); padding: 10px 12px; }
.kpi strong { display: block; font: 800 26px var(--font-display); font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--ink-600); }
.two-col { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.board-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 4px; }
.board-mini button { min-height: 44px; padding: 4px; border: 2px solid var(--line); background: var(--surface-1); font: 700 12px var(--font-body); cursor: pointer; color: inherit; border-radius: 6px; min-width: 0; line-height: 1.1; }
.board-mini button[aria-pressed='true'] { background: var(--gold-500); color: #1C1C22; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-600); }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .btn, .tile, .choice, .card { border: 2px solid ButtonText; }
  .tile.is-active { outline: 4px solid Highlight; }
}
@media (pointer: coarse), (max-width: 767px) {
  .btn--sm, .chip, .wallet, .chat-msg__act, .tbl th button { min-height: 44px; }
  details > summary { padding: 10px 0; }
}
:root[data-theme='dark'] .badge--coral { color: #1B2536; }
[tabindex='-1']:focus { outline: none; }