/* Stella's Pinball Arcade & Lounge Tycoon. Palette from the Stella's brand guide:
   cyan #03EEFF, yellow #F6E62B, magenta #FE20E1, deep purple #3C1850. */
.game-stellas-tycoon {
  --cyan: #03eeff;
  --yellow: #f6e62b;
  --magenta: #fe20e1;
  --purple: #3c1850;
  --deep: #1a0b26;
  --ink: #0d0716;
  --panel: #150a20;
  --panel-2: #20112f;
  --line: rgba(254, 32, 225, 0.35);
  --text: #f3eaff;
  --muted: #b3a2c8;
  --good: #7dff7a;
  --bad: #ff3b6b;
  --gold: #f7a30f;
  --pixel: "Press Start 2P", monospace;
  --round: "Fredoka", "Space Grotesk", system-ui, sans-serif;
}

html:has(body.game-stellas-tycoon) { height: 100%; overflow: hidden; }
body.arcade-game.game-stellas-tycoon {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--ink) !important;
  color: var(--text);
  font-family: var(--round);
  -webkit-user-select: none;
  user-select: none;
}
.game-stellas-tycoon * { box-sizing: border-box; }
.game-stellas-tycoon [hidden] { display: none !important; }
.game-stellas-tycoon button { font: inherit; color: inherit; cursor: pointer; }

.sty-app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr); }

/* ── HUD ─────────────────────────────────────────────────────────────────── */
.sty-hud {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  background: linear-gradient(180deg, #24103a, var(--deep));
  border-bottom: 2px solid var(--magenta);
  box-shadow: 0 2px 0 #000;
  position: relative; z-index: 5;
}
.sty-brand { display: flex; align-items: center; gap: 6px; margin: 0; font-size: inherit; font-weight: inherit; }
.sty-brand img { width: 62px; height: auto; display: block; mix-blend-mode: screen; }
.sty-brand span { font-family: var(--pixel); font-size: 10px; color: var(--yellow); letter-spacing: 0.08em; }
.sty-clock { display: grid; grid-template-columns: auto auto; column-gap: 8px; line-height: 1.25; }
.sty-clock b { font-family: var(--pixel); font-size: 9px; color: var(--cyan); }
.sty-clock span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sty-clock strong { font-family: var(--pixel); font-size: 11px; color: #fff; }
.sty-clock em { font-style: normal; font-family: var(--pixel); font-size: 7px; color: var(--magenta); align-self: center; }
.sty-stat { display: flex; flex-direction: column; min-width: 44px; line-height: 1.3; }
.sty-stat span { font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.sty-stat strong { font-family: var(--pixel); font-size: 11px; }
.sty-stat .stars { color: var(--yellow); font-family: var(--round); font-size: 15px; letter-spacing: 1px; }
.sty-stat.cash { flex-direction: row; align-items: center; gap: 6px; }
.sty-stat.cash img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px #000, 0 0 10px rgba(247, 163, 15, 0.4); }
.sty-stat.cash strong { font-size: 13px; color: var(--yellow); display: block; }
.sty-stat.cash small { font-size: 11px; color: var(--muted); }
.neg { color: var(--bad) !important; }
.good { color: var(--good); }
.warn { color: var(--gold); font-size: 12px; }
.sty-speed { display: flex; gap: 3px; margin-left: auto; }
.sty-speed button {
  min-width: 36px; height: 30px; padding: 0 6px; border: 2px solid var(--purple); background: var(--ink);
  font-family: var(--pixel); font-size: 8px; color: var(--muted);
}
.sty-speed button.is-active { border-color: var(--cyan); color: var(--ink); background: var(--cyan); }
.game-stellas-tycoon .top-actions { position: static; display: flex; gap: 4px; }
.game-stellas-tycoon .icon-btn { width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid; font-family: var(--pixel); font-size: 9px; }
.game-stellas-tycoon #pauseBtn { display: none; }

/* ── Main layout ─────────────────────────────────────────────────────────── */
.sty-main { display: grid; grid-template-columns: minmax(0, 1fr) 372px; min-height: 0; }
.sty-stage {
  position: relative; min-height: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(60, 24, 80, 0.55), transparent 70%),
    radial-gradient(circle, rgba(254, 32, 225, 0.10) 1px, transparent 1.5px) 0 0 / 22px 22px,
    #07050d;
}
.sty-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
body.building .sty-stage canvas { cursor: crosshair; }

.sty-panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 2px solid var(--purple); }
.sty-tabs { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 2px solid var(--purple); background: var(--deep); }
.sty-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 6px;
  border: 0; border-bottom: 3px solid transparent; background: none; font-family: var(--pixel); font-size: 6px; color: var(--muted);
}
.sty-tabs button i { font-style: normal; font-size: 15px; font-family: var(--round); }
.sty-tabs button.is-active { color: var(--yellow); border-bottom-color: var(--magenta); background: rgba(254, 32, 225, 0.08); }
.sty-sheet-head { display: none; }
.sty-panel-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 24px; -webkit-user-select: text; user-select: text; }
.sty-panel-body h3 { font-family: var(--pixel); font-size: 9px; color: var(--cyan); margin: 16px 0 8px; display: flex; justify-content: space-between; align-items: baseline; }
.sty-panel-body h3:first-child { margin-top: 4px; }
.sty-panel-body h3 small { font-family: var(--round); font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.sty-empty { color: var(--muted); font-size: 13px; padding: 10px; border: 1px dashed var(--purple); }

.sty-subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.sty-subtabs button { border: 2px solid var(--purple); background: var(--ink); padding: 5px 7px; font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.sty-subtabs button.is-active { border-color: var(--yellow); color: var(--yellow); }

.sty-item, .sty-card-item {
  display: block; width: 100%; text-align: left; margin-bottom: 7px; padding: 9px 10px;
  background: var(--panel-2); border: 2px solid var(--purple); color: var(--text); font-size: 13px;
}
.sty-item { transition: border-color .12s, transform .12s; }
.sty-item:hover { border-color: var(--magenta); }
.sty-item.is-active { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow) inset; }
.sty-item.locked { opacity: 0.55; }
.sty-item .row, .sty-card-item .row, .sty-inspect .row, .sty-goalset .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.sty-item b, .sty-card-item b { font-weight: 600; font-size: 14px; }
.sty-item strong { font-family: var(--pixel); font-size: 9px; color: var(--yellow); }
.sty-item .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 12px; }
.sty-item .stats { display: flex; gap: 10px; margin-top: 5px; font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.sty-item .stats b { color: #fff; font-size: 7px; }
.chip { display: inline-block; padding: 2px 6px; font-family: var(--pixel); font-size: 6px; border: 1px solid var(--c, var(--muted)); color: var(--c, var(--muted)); }
.chip.ok { --c: var(--good); }
.chip.bad { --c: var(--bad); }
.stars { color: var(--yellow); letter-spacing: 1px; }
.trait { font-size: 12px; font-weight: 600; padding: 1px 5px; border-radius: 3px; }
.trait.good { background: rgba(125, 255, 122, 0.15); color: var(--good); }
.trait.bad { background: rgba(255, 59, 107, 0.15); color: #ff8aa6; }

.sty-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 6px 10px; margin-top: 6px;
  border: 2px solid var(--purple); background: var(--ink); color: var(--text); font-family: var(--pixel); font-size: 7px; letter-spacing: 0.04em;
}
.sty-btn:hover { border-color: var(--cyan); }
.sty-btn.primary { background: var(--magenta); border-color: #000; color: #fff; box-shadow: 3px 3px 0 #000; }
.sty-btn.primary:hover { background: #ff4fe8; }
.sty-btn.danger { border-color: #6a1830; color: #ff8aa6; }
.sty-btn.big { font-size: 10px; min-height: 46px; padding: 10px 16px; }
.sty-btn.icon { margin: 0; min-height: 26px; padding: 2px 8px; }
.btns { display: flex; flex-wrap: wrap; gap: 6px; }
.btns .sty-btn { margin-top: 6px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper .sty-btn { margin: 0; min-width: 32px; padding: 4px 8px; font-size: 11px; }
.stepper strong { font-family: var(--pixel); font-size: 9px; color: var(--yellow); min-width: 54px; text-align: center; display: inline-flex; align-items: center; gap: 4px; justify-content: center; }
.sty-coin { border-radius: 50%; vertical-align: middle; }

.kv { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; margin: 4px 0; font-size: 12px; }
.sty-meter { height: 8px; background: #0a0510; border: 1px solid #3a2550; }
.sty-meter i { display: block; height: 100%; }
.grid2 { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; }
.grid2 b { font-weight: 600; text-align: right; }

.sty-hire { margin-bottom: 7px; border: 2px solid var(--purple); background: var(--panel-2); }
.sty-hire summary { display: flex; justify-content: space-between; padding: 9px 10px; cursor: pointer; font-size: 14px; }
.sty-hire summary span { color: var(--muted); font-size: 12px; }
.sty-hire > p { margin: 0 10px 6px; font-size: 12px; }
.sty-cand { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid #2a1840; font-size: 13px; }

.toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: var(--magenta); margin-top: 2px; flex: none; }

.sty-vault { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; margin-bottom: 8px; }
.sty-token { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; background: var(--panel-2); border: 2px solid var(--purple); text-align: center; }
.sty-token img { width: 56px; height: 56px; border-radius: 50%; filter: drop-shadow(0 2px 4px #000); }
.sty-token span { font-size: 11px; font-weight: 600; line-height: 1.15; }
.sty-token small { font-family: var(--pixel); font-size: 5.5px; color: var(--muted); line-height: 1.4; }
.sty-token.locked img { filter: grayscale(1) brightness(0.35); }
.sty-token.is-active { border-color: var(--yellow); }
.sty-token.is-active small { color: var(--yellow); }
.sty-card-item.wizard { border-color: #6a4a1a; background: linear-gradient(135deg, #2a1a10, var(--panel-2)); }

.thought { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; margin-bottom: 3px; font-size: 13px; background: var(--panel-2); border-left: 3px solid var(--muted); }
.thought.bad { border-left-color: var(--bad); }
.thought.good { border-left-color: var(--good); }
.thought b { font-family: var(--pixel); font-size: 8px; align-self: center; }
#histChart { width: 100%; height: 120px; background: #0a0510; border: 1px solid #2a1840; }
.ledger { display: grid; font-size: 12px; }
.ledger .lh, .ledger .lr { display: grid; grid-template-columns: 1fr 64px 72px 52px; gap: 4px; padding: 4px 6px; text-align: left; }
.ledger .lh { font-family: var(--pixel); font-size: 6px; color: var(--muted); }
.ledger .lr { border: 0; border-top: 1px solid #2a1840; background: none; font-size: 12px; }
.ledger .lr:hover { background: var(--panel-2); }

.sty-goalset { padding: 10px; margin-bottom: 8px; border: 2px solid var(--purple); background: var(--panel-2); }
.sty-goalset.current { border-color: var(--magenta); }
.sty-goalset.done { border-color: #2e6a2e; opacity: 0.8; }
.sty-goalset.future { opacity: 0.6; }
.sty-goalset b { font-size: 14px; }
.sty-goalset .row span { font-family: var(--pixel); font-size: 7px; color: var(--yellow); }
.goal { font-size: 13px; margin: 6px 0; display: grid; gap: 3px; }
.goal.met span { color: var(--good); }
.sty-combos { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.combo { padding: 7px; font-size: 12px; background: var(--panel-2); border: 1px dashed #3a2550; display: grid; gap: 2px; }
.combo b { font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.combo span { color: var(--muted); }
.combo.found { border: 1px solid var(--good); }
.combo.found b { color: var(--good); }

/* ── Stage overlays ──────────────────────────────────────────────────────── */
.sty-goals {
  position: absolute; left: 8px; top: 8px; max-width: min(290px, 60%); padding: 8px 10px; z-index: 2;
  background: rgba(13, 7, 22, 0.82); border: 2px solid var(--purple); display: grid; gap: 3px; font-size: 12px; pointer-events: none;
}
.sty-goals b { font-family: var(--pixel); font-size: 7px; color: var(--yellow); margin-bottom: 2px; }
.sty-goals span.met { color: var(--good); text-decoration: line-through; opacity: 0.8; }
.sty-goals em { font-style: normal; color: var(--cyan); font-weight: 600; }
.sty-tip {
  position: absolute; left: 50%; bottom: 82px; transform: translateX(-50%); width: min(430px, calc(100% - 20px)); z-index: 4;
  padding: 10px 12px; background: #1d0e2c; border: 2px solid var(--cyan); box-shadow: 4px 4px 0 #000; display: grid; gap: 6px; font-size: 14px;
}
.sty-tip b { font-family: var(--pixel); font-size: 7px; color: var(--cyan); }
.sty-tip div { display: flex; gap: 6px; }
.sty-tip .sty-btn { margin: 0; }
.sty-feed { position: absolute; left: 8px; bottom: 64px; width: min(360px, calc(100% - 70px)); display: flex; flex-direction: column-reverse; gap: 4px; z-index: 2; pointer-events: none; }
.sty-toast { padding: 6px 9px; font-size: 13px; background: rgba(13, 7, 22, 0.9); border-left: 3px solid var(--cyan); transition: opacity .8s; }
.sty-toast.good { border-left-color: var(--good); }
.sty-toast.bad { border-left-color: var(--bad); }
.sty-toast.fade { opacity: 0; }
.sty-banner {
  position: absolute; left: 50%; top: 22%; transform: translate(-50%, -20px) scale(0.9); opacity: 0; pointer-events: none; z-index: 6;
  display: flex; gap: 12px; align-items: center; padding: 12px 18px; background: var(--ink); border: 3px solid var(--yellow); box-shadow: 6px 6px 0 var(--magenta);
  transition: opacity .25s, transform .25s; max-width: calc(100% - 24px);
}
.sty-banner.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.sty-banner img { border-radius: 50%; }
.sty-banner div { display: grid; gap: 4px; }
.sty-banner b { font-family: var(--pixel); font-size: 12px; color: var(--yellow); }
.sty-banner span { font-size: 14px; }
.sty-inspect {
  position: absolute; right: 52px; top: 8px; width: 290px; max-height: calc(100% - 80px); overflow-y: auto; z-index: 3;
  padding: 10px 12px; background: rgba(21, 10, 32, 0.96); border: 2px solid var(--yellow); box-shadow: 4px 4px 0 #000; font-size: 13px;
  -webkit-user-select: text; user-select: text;
}
.sty-inspect b { font-size: 15px; font-weight: 600; }
.sty-inspect p { margin: 4px 0 8px; }
.sty-inspect .quote { padding: 6px 8px; background: #0d0716; border-left: 3px solid var(--good); font-style: italic; }
.sty-inspect .quote.bad { border-left-color: var(--bad); }
.face.happy { color: var(--good); } .face.ok { color: var(--gold); } .face.sad { color: var(--bad); }
.sty-overlays { position: absolute; right: 8px; bottom: 64px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.sty-overlays button, .sty-zoom button { border: 2px solid var(--purple); background: rgba(13, 7, 22, 0.85); padding: 6px; font-family: var(--pixel); font-size: 6px; color: var(--muted); min-width: 36px; }
.sty-overlays button.is-active { border-color: var(--cyan); color: var(--cyan); }
.sty-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.sty-zoom button { font-size: 14px; font-family: var(--round); width: 36px; height: 34px; padding: 0; }
.sty-open {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 8px 12px; background: rgba(13, 7, 22, 0.92); border: 2px solid var(--yellow); box-shadow: 4px 4px 0 #000; max-width: calc(100% - 20px);
}
.sty-open span { font-family: var(--pixel); font-size: 8px; color: var(--yellow); line-height: 1.6; }
.sty-open .sty-btn { margin: 0; animation: sty-pulse 1.4s ease-in-out infinite; }
.sty-open .auto { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
@keyframes sty-pulse { 50% { box-shadow: 3px 3px 0 #000, 0 0 18px var(--magenta); } }
.sty-buildbar {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  padding: 8px 10px; background: rgba(13, 7, 22, 0.95); border: 2px solid var(--cyan); box-shadow: 4px 4px 0 #000; max-width: calc(100% - 20px);
}
.sty-buildbar div { display: grid; gap: 2px; min-width: 180px; }
.sty-buildbar b { font-family: var(--pixel); font-size: 8px; color: var(--cyan); }
.sty-buildbar span { font-size: 13px; color: var(--muted); }
.sty-buildbar .sty-btn { margin: 0; }
body.building .sty-open { display: none; }

.sty-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 7; }
.sty-confetti i { position: absolute; top: -12px; width: 8px; height: 12px; animation: sty-fall linear forwards; }
@keyframes sty-fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ── Modals ──────────────────────────────────────────────────────────────── */
.sty-modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 12px; background: rgba(5, 2, 10, 0.78); backdrop-filter: blur(2px); }
.sty-modal[hidden] { display: none; }
.sty-modal-card {
  width: min(720px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px 20px 20px;
  background: var(--panel); border: 3px solid var(--magenta); box-shadow: 8px 8px 0 #000, 0 0 0 3px var(--cyan); -webkit-user-select: text; user-select: text;
}
.sty-modal-card.title { width: min(760px, 100%); background: radial-gradient(ellipse at top, #3c1850, #120820 70%); }
.sty-title { display: grid; justify-items: center; text-align: center; gap: 10px; position: relative; }
.sty-title .logo { width: min(360px, 80%); height: auto; mix-blend-mode: screen; }
.sty-title .sty-wordmark { margin: -14px 0 0; font-family: var(--pixel); font-size: clamp(18px, 4vw, 30px); color: var(--yellow); letter-spacing: 0.12em; }
.sty-title .sty-wordmark span { background: linear-gradient(180deg, #fff6a0, #f6e62b 50%, #f7a30f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sty-title .cab { position: absolute; right: -6px; top: 20px; width: 120px; height: auto; opacity: 0.9; transform: rotate(6deg); pointer-events: none; }
.sty-title .lede { max-width: 520px; font-size: 16px; line-height: 1.45; margin: 0; }
.sty-title .fine { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.sty-title .big { width: min(520px, 100%); }
.diffs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; width: 100%; }
.sty-diff { display: grid; gap: 5px; padding: 12px 10px; text-align: left; background: var(--panel-2); border: 2px solid var(--purple); }
.sty-diff:hover, .sty-diff:focus-visible { border-color: var(--yellow); outline: none; }
.sty-diff b { font-family: var(--pixel); font-size: 9px; color: var(--cyan); }
.sty-diff span { font-size: 13px; line-height: 1.35; }
.sty-diff small { font-family: var(--pixel); font-size: 7px; color: var(--yellow); }

.sty-report { display: grid; gap: 12px; }
.sty-report .paper { background: #efe6d2; color: #1a1210; padding: 10px 12px; border: 2px solid #000; }
.sty-report .paper span { font-family: var(--pixel); font-size: 6px; letter-spacing: 0.08em; }
.sty-report .paper h2 { margin: 6px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 3.4vw, 26px); line-height: 1.15; }
.sty-report .top { display: flex; gap: 14px; align-items: center; }
.grade { width: 74px; height: 74px; flex: none; display: grid; place-items: center; align-content: center; border: 3px solid var(--g); box-shadow: 4px 4px 0 #000; background: var(--ink); }
.grade b { font-family: var(--pixel); font-size: 28px; color: var(--g); }
.grade span { font-family: var(--pixel); font-size: 6px; color: var(--muted); margin-top: 4px; }
.profit { display: grid; gap: 4px; }
.profit span { font-family: var(--pixel); font-size: 7px; color: var(--muted); }
.profit b { font-family: var(--pixel); font-size: clamp(18px, 4vw, 26px); color: var(--good); }
.profit.neg b { color: var(--bad); }
.profit small { font-size: 13px; color: var(--muted); }
.sty-report .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sty-report h4 { font-family: var(--pixel); font-size: 7px; color: var(--cyan); margin: 0 0 6px; }
.rb { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 3px; }
.rb i { height: 8px; background: linear-gradient(90deg, var(--magenta), var(--yellow)); }
.rb b, .rr b { text-align: right; font-weight: 600; }
.rr { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 3px; }
.sty-report .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sty-report .chips span { padding: 4px 8px; background: var(--panel-2); font-size: 13px; border: 1px solid #3a2550; }
.sty-report .chips em { font-style: normal; font-weight: 600; }
.tip { display: grid; gap: 4px; padding: 10px; background: #0d1a20; border: 2px solid var(--cyan); }
.tip b { font-family: var(--pixel); font-size: 7px; color: var(--cyan); }
.reviews { display: grid; gap: 6px; }
.reviews blockquote { margin: 0; padding: 8px 10px; background: var(--panel-2); font-size: 14px; border-left: 3px solid var(--yellow); }
.reviews blockquote span { color: var(--yellow); }
.reviews cite { display: block; font-size: 12px; color: var(--muted); font-style: normal; margin-top: 3px; }
.warnbox { padding: 8px 10px; border: 2px solid var(--bad); background: #2a0a14; font-size: 14px; margin: 0; }
.sty-report .big, .sty-event .big, .sty-star .big { width: 100%; }
.sty-event, .sty-star { display: grid; gap: 10px; text-align: center; }
.sty-event .kicker { font-family: var(--pixel); font-size: 8px; color: var(--magenta); }
.sty-event h2, .sty-star h2 { margin: 0; font-family: var(--pixel); font-size: clamp(14px, 3vw, 20px); color: var(--yellow); line-height: 1.4; }
.sty-event p, .sty-star p { font-size: 16px; line-height: 1.45; margin: 0; }
.sty-star h4 { font-family: var(--pixel); font-size: 8px; color: var(--cyan); margin: 6px 0 0; }
.sty-star .burst { font-size: 44px; color: var(--yellow); animation: sty-pop .6s ease-out; }
@keyframes sty-pop { from { transform: scale(0.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ── Responsive: the panel becomes a bottom sheet under 900px ────────────── */
@media (max-width: 899px) {
  .game-stellas-tycoon { --tabs-h: 54px; --sheet-h: min(58%, 520px); }
  .sty-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; position: relative; }
  .sty-panel { display: contents; }
  .sty-stage { grid-row: 1; }
  .sty-tabs { grid-row: 2; position: relative; z-index: 8; min-height: var(--tabs-h); border-top: 2px solid var(--purple); border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  .sty-tabs button { padding: 6px 1px; font-size: 5.5px; min-width: 0 !important; }
  .sty-tabs button i { font-size: 17px; }
  .sty-panel-body { position: absolute; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); height: var(--sheet-h); z-index: 7; background: var(--panel); border-top: 2px solid var(--magenta); display: none; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5); }
  .sty-sheet-head { position: absolute; right: 8px; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--sheet-h) - 2px); z-index: 7; display: none; }
  .sty-sheet-head button { border: 2px solid var(--magenta); border-bottom: 0; background: var(--panel); font-family: var(--pixel); font-size: 7px; padding: 6px 12px; color: var(--muted); }
  body.sheet-open .sty-panel-body { display: block; }
  body.sheet-open .sty-sheet-head { display: flex; }
  body.sheet-open .sty-tabs button.is-active { background: var(--panel); }
  .sty-inspect { left: 8px; right: 8px; width: auto; top: auto; bottom: 8px; max-height: 52%; }
  body.sheet-open .sty-inspect, body.sheet-open .sty-tip, body.sheet-open .sty-overlays { display: none !important; }
  .sty-goals { max-width: calc(100% - 64px); font-size: 11px; }
  .sty-feed { bottom: 70px; }
  .hide-sm { display: none; }
  .sty-hud { gap: 8px; }
}
@media (max-width: 600px) {
  .sty-hud { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 8px; }
  .sty-hud::after { content: ""; order: 4; flex-basis: 100%; height: 0; }
  .sty-brand { order: 1; }
  .sty-brand img { width: 44px; }
  .sty-brand span { display: none; }
  .sty-clock { order: 2; flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
  .sty-clock span { font-size: 11px; }
  .sty-stat.cash { order: 3; }
  .sty-stat { order: 5; }
  .sty-stat:not(.cash):not(:has(#hudStars)) { display: none; }
  .sty-stat .stars { font-size: 13px; }
  .sty-speed { order: 6; margin-left: auto; }
  .game-stellas-tycoon .top-actions { order: 7; }
  .game-stellas-tycoon .sty-speed button, .game-stellas-tycoon .top-actions .icon-btn { min-width: 36px; min-height: 34px; width: 36px; height: 34px; padding: 0; }
  .sty-report .cols { grid-template-columns: 1fr; }
  .sty-title .cab { width: 78px; right: -10px; top: 8px; }
  .sty-goals { display: none; }
  .sty-open { bottom: 8px; padding: 6px 8px; gap: 6px; }
  .sty-open span { font-size: 6.5px; width: 100%; text-align: center; line-height: 1.7; }
  .sty-overlays { bottom: 70px; }
  .sty-zoom button { width: 34px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .sty-open .sty-btn, .sty-star .burst { animation: none; }
  .sty-confetti { display: none; }
}
