/* ============================================================
   HOODWIN — Crash
   Depends on shared: theme.css · base.css · betfield.css
   ============================================================ */

body {
  background: radial-gradient(120% 80% at 50% -5%, #121218 0%, var(--bg-void) 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ============================================================
   HEADER
   ============================================================ */

.game-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(0.9rem, 3vw, 2rem);
  background: rgba(13, 14, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line-hair);
}

.game-title { text-align: left; line-height: 1.2; }
.game-title__name {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* the live dot on the eyebrow */
.game-title .eyebrow { position: relative; padding-left: 0.85rem; }
.game-title .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 8px var(--win-glow);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.game-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: end;
}

.wallet__icon { font-family: var(--font-display); font-size: 0.95rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  color: var(--text-mid);
  cursor: pointer;
  transition: color var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.icon-btn:hover {
  color: var(--gold-300);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.icon-btn:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn--sm { width: 30px; height: 30px; }
.icon-btn--sm svg { width: 15px; height: 15px; }

.icon-btn__off { display: none; }
body.sound-off .icon-btn__on { display: none; }
body.sound-off .icon-btn__off { display: block; }
body.sound-off #soundToggle { color: var(--text-faint); }

/* ============================================================
   LAYOUT
   ============================================================ */

.game-room {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.6rem) clamp(0.75rem, 2.5vw, 2rem) 3rem;
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr) minmax(250px, 290px);
  gap: clamp(0.9rem, 1.8vw, 1.5rem);
  align-items: start;
}

/* ============================================================
   CONTROLS
   ============================================================ */

.controls {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 1.1rem;
  position: sticky;
  top: 5.5rem;
}

.control-block { display: flex; flex-direction: column; gap: 0.5rem; }

.control-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-low);
}

.control-hint {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--text-faint);
  font-family: var(--font-num);
}

/* ---------- Auto cash out ---------- */

.auto-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.75rem;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  border: 1px solid var(--line-hair);
  transition: border-color var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}
.auto-row:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(0, 217, 95, 0.12);
}

.auto-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold-200);
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 500;
  outline: none;
}
.auto-input::placeholder { color: var(--text-faint); }

.auto-unit { font-size: 0.8rem; color: var(--text-faint); flex-shrink: 0; }

.op-btn {
  min-width: 32px;
  height: 28px;
  padding: 0 0.4rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  color: var(--text-mid);
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.op-btn:hover:not(:disabled) {
  color: var(--gold-200);
  border-color: var(--line-strong);
  background: rgba(0, 217, 95, 0.08);
}
.op-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.auto-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.3rem;
}

.auto-preset {
  padding: 0.4rem 0.1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--bg-elevated);
  color: var(--text-low);
  font-family: var(--font-num);
  font-size: 0.63rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-out);
}
.auto-preset:hover { color: var(--gold-200); border-color: var(--line-strong); }
.auto-preset.is-active {
  color: var(--text-on-gold);
  background: var(--gold-gradient);
  border-color: var(--gold-200);
  box-shadow: var(--glow-gold);
}

/* ---------- Potential ---------- */

.potential {
  gap: 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  border: 1px solid var(--line-hair);
}

.potential-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.28rem 0;
}
.potential-row + .potential-row { border-top: 1px solid var(--line-soft); }

.potential-row__label {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 600;
}
.potential-row__value { font-size: 0.95rem; color: var(--gold-200); font-weight: 500; }
.potential-row__value.is-live { color: var(--win); }

/* ---------- Main action button ---------- */

.action-btn {
  width: 100%;
  min-height: 58px;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  letter-spacing: 0.2em;
}

.action-btn__sub {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: none;
  opacity: 0.78;
}

.action-btn--cashout {
  color: #06210f;
  background: linear-gradient(160deg, #6ef0a4, #17b866);
  border-color: rgba(150, 255, 200, 0.6);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: cashout-urge 900ms var(--ease-in-out) infinite;
}
@keyframes cashout-urge {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 rgba(0, 217, 95, 0); }
  50% { box-shadow: var(--shadow-lg), 0 0 34px rgba(0, 217, 95, 0.55); }
}

.action-btn--cancel { min-height: 58px; }

.controls__note {
  margin: 0;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   STAGE
   ============================================================ */

.stage { display: flex; flex-direction: column; gap: 0.7rem; }

.recent-strip {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.recent-strip::-webkit-scrollbar { display: none; }

.recent-pip {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border-radius: var(--r-sm);
  font-family: var(--font-num);
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
}
/* Crash-point colour ladder, shared by the pips and the live readout:
   under 1.50 grey · 1.50–2.99 blue · 3–9.99 purple ·
   10–99.99 gold · 100+ red */
.recent-pip--gray   { color: #9a978f; background: rgba(154, 151, 143, 0.12); border-color: rgba(154, 151, 143, 0.26); }
.recent-pip--blue   { color: #7cc4ff; background: rgba(60, 150, 235, 0.14);  border-color: rgba(60, 150, 235, 0.34); }
.recent-pip--purple { color: #c79cff; background: rgba(139, 92, 246, 0.16);  border-color: rgba(139, 92, 246, 0.38); }
.recent-pip--gold   { color: var(--gold-200); background: rgba(0, 217, 95, 0.16); border-color: rgba(0, 217, 95, 0.42); }
.recent-pip--red    { color: #ff8d99; background: rgba(232, 48, 70, 0.18);   border-color: rgba(232, 48, 70, 0.5);
                      box-shadow: 0 0 14px rgba(232, 48, 70, 0.35); }

.chart-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 60vh;
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(0, 217, 95, 0.07) 0%, transparent 60%),
    linear-gradient(168deg, #101016 0%, #08080b 100%);
  border: 1px solid rgba(0, 217, 95, 0.24);
  box-shadow: var(--shadow-xl), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chart { display: block; width: 100%; height: 100%; }

.chart-wrap.is-shaking { animation: stage-shake 600ms var(--ease-in-out); }
@keyframes stage-shake {
  0%, 100% { transform: translate(0, 0); }
  15% { transform: translate(-8px, 4px); }
  30% { transform: translate(7px, -5px); }
  45% { transform: translate(-6px, -2px); }
  60% { transform: translate(5px, 4px); }
  80% { transform: translate(-3px, 1px); }
}

.stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
  text-align: center;
  padding: 1rem;
}

.multiplier {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.85);
  transition: color var(--t-med) var(--ease-out);
}
.multiplier.is-idle { color: var(--text-low) !important; }

/* while climbing, the readout wears the band it has reached */
.multiplier.is-flying.gray   { color: #b8b5ad; }
.multiplier.is-flying.blue   { color: #7cc4ff; text-shadow: 0 0 34px rgba(60, 150, 235, 0.5); }
.multiplier.is-flying.purple { color: #c79cff; text-shadow: 0 0 34px rgba(139, 92, 246, 0.5); }
.multiplier.is-flying.gold   { color: var(--gold-300); text-shadow: 0 0 40px rgba(0, 217, 95, 0.6); }
.multiplier.is-flying.red    { color: #ff8d99; text-shadow: 0 0 44px rgba(232, 48, 70, 0.6); }

.multiplier.is-crashed {
  color: var(--loss) !important;
  animation: mult-crash 500ms var(--ease-out);
}
@keyframes mult-crash {
  0% { transform: scale(1.12); }
  40% { transform: scale(0.94); }
  100% { transform: scale(1); }
}

.stage-caption {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-mid);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: min(260px, 70%);
  margin-top: 0.3rem;
}

.countdown__track {
  width: 100%;
  height: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.countdown__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient-soft);
  transition: width 90ms linear;
}

.countdown__text { font-size: 0.72rem; color: var(--gold-200); }

/* ---------- Cashed toast ---------- */

.cashed-toast {
  position: absolute;
  top: 16%;
  left: 50%;
  transform: translate(-50%, -10px) scale(0.85);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill);
  background: rgba(6, 24, 14, 0.94);
  border: 1px solid var(--win);
  box-shadow: var(--shadow-lg), 0 0 34px var(--win-glow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease-out), transform 460ms var(--ease-spring);
}
.cashed-toast.is-shown { opacity: 1; transform: translate(-50%, 0) scale(1); }

.cashed-toast__mult { font-size: 1.15rem; font-weight: 600; color: #b9ffd6; }
.cashed-toast__amount { font-size: 0.82rem; color: var(--win); }

/* ---------- Footer ---------- */

.stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.round-id {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

.sync-note {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   SIDE RAIL
   ============================================================ */

.side-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.sim-badge {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.22rem 0.45rem;
  border-radius: var(--r-sm);
  color: var(--text-low);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.feed-head,
.feed-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.4rem 0.85rem;
}

.feed-head {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
}
.feed-head span:nth-child(2),
.feed-head span:nth-child(3) { text-align: right; }

.feed-list { max-height: 230px; overflow-y: auto; padding: 0.25rem 0 0.4rem; }

.feed-row {
  font-size: 0.7rem;
  border-radius: var(--r-sm);
  animation: row-in 300ms var(--ease-out);
}
.feed-row:hover { background: rgba(255, 255, 255, 0.03); }

.feed-row__name {
  color: var(--text-mid);
  font-family: var(--font-num);
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-row__bet { color: var(--text-low); text-align: right; font-size: 0.66rem; }
.feed-row__res { text-align: right; font-weight: 600; font-size: 0.66rem; min-width: 44px; }
.feed-row__res.is-win { color: var(--win); }
.feed-row__res.is-loss { color: var(--loss); }
.feed-row__res.is-pending { color: var(--text-faint); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.mini-stat { background: var(--bg-raised); padding: 0.7rem 0.35rem; text-align: center; }

.mini-stat__label {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.mini-stat__value { display: block; font-size: 0.92rem; color: var(--gold-200); }
.mini-stat__value.is-win { color: var(--win); }
.mini-stat__value.is-loss { color: var(--loss); }

.history-list { max-height: 240px; overflow-y: auto; padding: 0.5rem 0.6rem 0.7rem; }

.empty-note {
  margin: 0;
  padding: 0.9rem 0.5rem;
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--text-faint);
  text-align: center;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.5rem;
  border-radius: var(--r-sm);
  border-left: 2px solid transparent;
  animation: row-in 320ms var(--ease-out);
}
.history-row.is-win { border-left-color: var(--win); background: rgba(0, 217, 95, 0.05); }
.history-row.is-loss { border-left-color: rgba(217, 58, 74, 0.5); }

@keyframes row-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.history-badge {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 25px;
  padding: 0 0.3rem;
  border-radius: var(--r-sm);
  font-family: var(--font-num);
  font-size: 0.66rem;
  font-weight: 700;
  flex-shrink: 0;
}
.history-badge--win { color: #06210f; background: linear-gradient(160deg, #6ef0a4, #17b866); }
.history-badge--loss { color: #ffe2e5; background: linear-gradient(160deg, var(--loss), var(--red-deep)); }

.history-row__mid { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.history-row__meta { font-size: 0.66rem; color: var(--text-mid); font-family: var(--font-num); }
.history-row__time { font-size: 0.58rem; color: var(--text-faint); }
.history-row__net { font-size: 0.76rem; color: var(--text-low); flex-shrink: 0; }
.history-row.is-win .history-row__net { color: var(--win); }
.history-row.is-loss .history-row__net { color: var(--loss); }

/* ============================================================
   OVERLAYS
   ============================================================ */

.confetti-layer { position: fixed; inset: 0; z-index: 290; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute;
  top: -20px;
  display: block;
  border-radius: 1px;
  opacity: 0;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--drift, 0), 105vh, 0) rotate(var(--twist, 720deg)); }
}

body.is-losing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 280;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(217, 58, 74, 0.22) 100%);
  animation: loss-flash 700ms var(--ease-out);
}
@keyframes loss-flash {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}

/* ============================================================
   MODAL
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity var(--t-med) var(--ease-out), visibility 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  width: min(500px, 100%);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.97);
  transition: transform 420ms var(--ease-spring);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); }

.modal__body { padding: 0.9rem 1.1rem 1.3rem; overflow-y: auto; }

.rule-list { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.rule-list li { font-size: 0.76rem; line-height: 1.55; color: var(--text-mid); }
.rule-list li::marker { color: var(--gold-500); }

.fair-block {
  margin-top: 1.1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md);
  background: var(--bg-inset);
  border: 1px solid var(--line-hair);
}
.fair-block__title {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.fair-block__text { margin: 0; font-size: 0.73rem; line-height: 1.65; color: var(--text-mid); }
.fair-block__text code {
  font-family: var(--font-num);
  font-size: 0.68rem;
  color: var(--gold-200);
  background: rgba(0, 217, 95, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
}

.modal__note { margin: 1rem 0 0; font-size: 0.72rem; line-height: 1.65; color: var(--text-faint); }
.modal__note strong { color: var(--text-mid); }

.modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.modal__actions-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-low);
  font-weight: 600;
}

.shortcut-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: 1rem; }
.shortcut { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; color: var(--text-faint); }
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  padding: 2px 5px;
  font-family: var(--font-num);
  font-size: 0.62rem;
  color: var(--text-mid);
  background: var(--bg-inset);
  border: 1px solid var(--line-soft);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1240px) {
  .game-room {
    grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
    grid-template-areas: "controls stage" "rail rail";
  }
  .controls { grid-area: controls; }
  .stage { grid-area: stage; }
  .side-rail {
    grid-area: rail;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .side-panel { flex: 1 1 320px; }
}

@media (max-width: 880px) {
  .game-room {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "stage" "controls" "rail";
    gap: 1rem;
  }
  .controls { position: static; }
  .chart-wrap { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .game-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
  }  .game-title { min-width: 0; }
  .game-title .eyebrow { font-size: 0.5rem; letter-spacing: 0.14em; }
  .game-title__name {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wallet { padding: 0.4rem 0.8rem 0.4rem 0.6rem; gap: 0.5rem; }
  .wallet__icon { width: 24px; height: 24px; font-size: 0.8rem; }
  .wallet__label { font-size: 0.48rem; }
  .wallet__value { font-size: 0.9rem; }
  .icon-btn { width: 34px; height: 34px; }

  .side-rail { flex-direction: column; }
  .sync-note { display: none; }
  .stage-footer { justify-content: center; }
}
