/* ============================================================
   Battle Pass: The Game — "every mobile game storefront at once":
   glossy candy buttons, gold, purple night sky. The Company tab is a
   plain corporate memo, on purpose. Layout rules from Click to Conquer
   (sticky header, ≤560px column, in-game modals, settings panel).
   ============================================================ */
:root {
  --bg: #140a2e; --bg2: #1d0f43; --panel: #26145a; --panel2: #311b70; --line: #4a2f98; --line2: #6a4bc4;
  --text: #f4efff; --dim: #b2a4d8; --gold: #ffc93c; --gold2: #ffe08a; --pink: #ff4fa3; --cyan: #33d6ff; --green: #3ee08f; --red: #ff5a5f; --orange: #ff8a3c;
  --eng: #ff7a3c; --gem: #57c7ff; --sc: #9be15d;
  --font-head: 'Lilita One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; color: var(--text); font: 14px/1.35 var(--font-body); }
html { background: var(--bg); }
body { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(80px + env(safe-area-inset-bottom)); user-select: none; overflow-x: hidden;
  background: radial-gradient(900px 500px at 50% -120px, #4a1f9a 0%, transparent 60%), radial-gradient(700px 500px at 100% 120%, #3a0f5e 0%, transparent 60%), var(--bg); }
h1, h2, h3, .modal-title, .company, .tabs button, .big-n { font-family: var(--font-head); font-weight: 400; letter-spacing: .3px; }
h2 { font-size: 19px; margin: 0; } h3 { font-size: 16px; margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 8px 12px; background: linear-gradient(180deg, #5b3fc0, #4129a0); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 #2a176b; font-weight: 700; }
button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 #2a176b; }
button:disabled { opacity: .42; cursor: default; filter: saturate(.5); }
button.primary { background: linear-gradient(180deg, #4ef0a0, #1fb86b); color: #08321d; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #0e7a43; }
button.accent { background: linear-gradient(180deg, #ffe07a, #ffb526); color: #4a2a00; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #b8740a; }
button.big { font-size: 16px; padding: 12px 16px; width: 100%; margin-top: 8px; font-family: var(--font-head); font-weight: 400; letter-spacing: .5px; }
button.wide { width: 100%; margin-top: 6px; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }
.dim { color: var(--dim); } .small { font-size: 12px; } .good { color: var(--green); } .bad { color: var(--red); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--dim); font-weight: 700; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.btn-row { display: flex; gap: 8px; margin-top: 10px; } .btn-row > * { flex: 1; }
.hint { color: var(--dim); font-size: 12px; margin: 2px 2px 8px; }

/* ---------- header ---------- */
.sticky-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #170b36; box-shadow: 0 6px 12px -6px #000c; padding-bottom: 6px; } /* solid: nothing shows through the header */
.top { padding: 10px 16px 4px; }
.brand { display: flex; align-items: center; gap: 10px; }
.app-icon { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; display: grid; place-items: center; font-size: 24px; background: #000; box-shadow: 0 2px 0 #2a176b, inset 0 1px 0 rgba(255,255,255,.4); flex: none; }
.brand-txt { min-width: 0; flex: 1; }
.company { font-size: 17px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(180deg, #fff, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .sub { font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.version { opacity: .8; }
.head-btns { display: flex; gap: 6px; }
.icon-btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 17px; position: relative; }
.avatar-img { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; } .avatar-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar-img.big { width: 40px; height: 40px; background: var(--panel2); }
.avatar-dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); }
.avatar-dot.ok { background: var(--green); } .avatar-dot.busy { background: var(--gold); } .avatar-dot.bad { background: var(--red); } .avatar-dot.off { background: #777; }
.res-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; margin-top: 8px; }
@media (min-width: 520px) { .res-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); } .res .rr { position: static; } }
.res { display: flex; align-items: center; gap: 6px; background: #241450; border: 1px solid #ffffff1c; border-radius: 10px; padding: 4px 8px; min-width: 0; position: relative; font-variant-numeric: tabular-nums; }
.res .ri { font-size: 16px; } .res .rt { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.res b { font-family: var(--font-head); font-weight: 400; font-size: 15px; letter-spacing: .3px; }
.res .rn { font-size: 9px; text-transform: uppercase; letter-spacing: .8px; color: var(--dim); }
.res .rr { margin-left: auto; font-size: 10px; color: var(--green); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; text-align: right; }
.res-cash b { color: var(--gold2); } .res-eng b { color: #ffb38a; }
.rep-mini { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; background: #ffffff18; border-radius: 2px; overflow: hidden; }
.rep-mini i { display: block; height: 100%; } i.good { background: var(--green); } i.mid { background: var(--gold); } i.bad { background: var(--red); }
.deco { font-weight: 800; font-size: 11px; color: #fff; background: linear-gradient(90deg, #ff4fa3, #ff8a3c); border-radius: 999px; padding: 2px 8px; animation: wobble 2.4s ease-in-out infinite; white-space: nowrap; }
.deco.d3 { background: linear-gradient(90deg, #7a4bff, #ff4fa3); font-family: var(--mono); }
.deco.d4 { background: linear-gradient(90deg, #ffb526, #ff4fa3); } .deco.d5 { background: linear-gradient(90deg, #33d6ff, #7a4bff); }
@keyframes wobble { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1.5deg) scale(1.03); } }
.cur-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.cur { font-size: 12px; background: #0000002e; border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.cur b { font-weight: 700; }
.ticker { margin: 6px -16px 0; background: linear-gradient(90deg, #ff4fa3, #ffb526); color: #2b0c3b; font-weight: 800; font-size: 11px; overflow: hidden; white-space: nowrap; height: 18px; line-height: 18px; }
.ticker-in { display: inline-block; animation: tick 40s linear infinite; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; padding: 6px 16px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1 0 auto; padding: 8px 10px; font-size: 14px; position: relative; background: linear-gradient(180deg, #3a2389, #2c1870); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 2px 0 #1c0e4b; white-space: nowrap; }
.tabs button.active { background: linear-gradient(180deg, #ffe07a, #ffb526); color: #4a2a00; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 #b8740a; }
.badge { position: absolute; top: -5px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 800 11px/18px var(--font-body); box-shadow: 0 1px 0 #0006; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.clutter-3 .tabs button:not(.active)::before, .clutter-4 .tabs button:not(.active)::before, .clutter-5 .tabs button:not(.active)::before { content: '✦'; position: absolute; left: 3px; top: 1px; font-size: 9px; color: var(--gold); }

/* ---------- main ---------- */
main { padding: 8px 16px; }
.card { background: linear-gradient(180deg, #2b1866, #22125a); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; box-shadow: 0 4px 0 #0f0727; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 2px 4px; flex-wrap: wrap; }
.seg { display: inline-flex; gap: 3px; background: #00000030; padding: 3px; border-radius: 10px; }
.seg button { padding: 5px 9px; font-size: 12px; background: transparent; box-shadow: none; }
.seg button.active { background: linear-gradient(180deg, #ffe07a, #ffb526); color: #4a2a00; }
.bar { height: 8px; background: #00000040; border-radius: 6px; overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--pink)); border-radius: 6px; transition: width .2s; }

/* tap button */
.phone-card { padding: 14px; }
.tap-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px 14px; border-radius: 22px;
  background: radial-gradient(120px 90px at 50% 30%, #ffffff30, transparent 70%), linear-gradient(160deg, #ff7ac3, #7a4bff 55%, #33a8ff); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 6px 0 #2a176b; }
.tap-icon { font-size: 64px; line-height: 1; filter: drop-shadow(0 4px 0 #0004); }
.tap-icon.bump { animation: bump .18s ease-out; }
@keyframes bump { 50% { transform: scale(1.18) rotate(-6deg); } }
.tap-title { font-family: var(--font-head); font-size: 22px; font-weight: 400; text-shadow: 0 2px 0 #0005; }
.tap-sub { font-size: 12px; font-weight: 600; opacity: .95; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.kpi { background: #00000030; border-radius: 10px; padding: 6px 8px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .6px; } .kpi b { font-size: 13px; }

/* rows */
.list { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #2b1866, #24135c); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.row .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; font-size: 22px; background: #ffffff12; border-radius: 10px; }
.row .main { flex: 1; min-width: 0; }
.row .name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.row .main .small { margin-top: 2px; }
.lv { font-family: var(--font-head); font-weight: 400; color: var(--gold2); font-size: 13px; margin-left: 2px; }
.tag { display: inline-block; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #ffffff18; vertical-align: 1px; white-space: nowrap; }
.tag.bad { background: #ff5a5f2e; color: #ff9a9d; } .tag.good { background: #3ee08f26; color: #7ff0b8; } .tag.free { background: #33d6ff26; color: #9be8ff; } .tag.new { background: var(--pink); color: #fff; }
.tag.seg-minnow { background: #57c7ff26; color: #a9e2ff; } .tag.seg-dolphin { background: #7a4bff40; color: #cdb8ff; } .tag.seg-whale { background: #ffc93c33; color: var(--gold2); }
.mbar { height: 3px; background: #00000040; border-radius: 3px; margin-top: 5px; overflow: hidden; } .mbar i { display: block; height: 100%; background: var(--cyan); }
.buy { flex: none; min-width: 96px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px; line-height: 1.15; font-size: 12px; }
.buy b { font-size: 13px; font-variant-numeric: tabular-nums; }
.buy.eng { background: linear-gradient(180deg, #ff9b5c, #ef6a1f); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #9a3a07; }
.buy.eng.primary { background: linear-gradient(180deg, #4ef0a0, #1fb86b); color: #08321d; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #0e7a43; }
.buy.gem { background: linear-gradient(180deg, #7fd8ff, #2f9fe0); color: #052a40; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #17628f; }
.buy.data { background: linear-gradient(180deg, #8ae6ff, #33b0d6); color: #052a40; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #186e88; }
.buy.sc { background: linear-gradient(180deg, #c3f08c, #7cc23f); color: #1c3307; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #4a7b1d; min-width: 70px; }
.buy.sm { min-width: 52px; padding: 6px 8px; }
.btn-col { display: flex; flex-direction: column; gap: 5px; } .btn-col-h { display: flex; gap: 5px; }
.aggr { font-size: 10px; padding: 4px 6px; background: #ffffff14; box-shadow: none; font-weight: 800; letter-spacing: .3px; }
.aggr.on { background: linear-gradient(180deg, #ff6b70, #d8333a); color: #fff; box-shadow: 0 2px 0 #7c1418; }
.row.is-aggr { border-color: #ff5a5f88; box-shadow: inset 0 0 0 1px #ff5a5f33; }
.row.locked { opacity: .6; border-style: dashed; } .row.owned { opacity: .7; }
.row.develop { border-color: var(--green); background: linear-gradient(180deg, #1f3d5f, #1f2a5c); }
.row.wom { background: #ffffff08; border-style: dashed; }
.row.xrow .name { font-weight: 600; font-size: 13px; } .row.joke { opacity: .85; }

/* reputation */
.rep-n { font-family: var(--font-head); font-weight: 400; font-size: 26px; color: var(--gold2); }
.rep-meter { position: relative; height: 12px; background: #00000040; border-radius: 8px; margin: 8px 0; }
.rep-meter i { display: block; height: 100%; border-radius: 8px; transition: width .3s; }
.rep-target { position: absolute; top: -4px; width: 3px; height: 20px; background: #fff; border-radius: 2px; transform: translateX(-1px); box-shadow: 0 0 6px #fff; transition: left .3s; }
.rep-parts span { white-space: nowrap; }
.segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.segc { background: #00000030; border-radius: 10px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 11px; }
.segc b { font-family: var(--font-head); font-weight: 400; font-size: 16px; } .segc.seg-whale b { color: var(--gold2); }

/* stage card */
.stage-card .bar i { background: linear-gradient(90deg, var(--cyan), var(--green)); }

/* ---------- fake ad ---------- */
.adstudio { background: linear-gradient(180deg, #2b1866, #1a0f40); }
.fake-ad { margin: 8px 0; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #ffdd57, #ff9b3c); color: #2b0c00; padding: 10px; min-height: 150px; }
.fa-title { font-family: var(--font-head); font-size: 17px; text-align: center; text-shadow: 0 2px 0 #fff8; animation: shout 1s ease-in-out infinite; }
@keyframes shout { 50% { transform: scale(1.05); } }
.fa-stage { display: flex; justify-content: space-between; align-items: center; margin: 12px 4px; position: relative; height: 60px; }
.fa-opt { background: #fff; border-radius: 10px; padding: 8px 10px; font-weight: 800; font-size: 13px; box-shadow: 0 3px 0 #0003; }
.fa-a { animation: wrong 6s infinite; } .fa-b { animation: right 6s infinite; }
@keyframes wrong { 0%, 55% { background: #fff; } 60%, 100% { background: #ff5a5f; color: #fff; } }
@keyframes right { 0%, 100% { box-shadow: 0 0 0 0 #3ee08f; } 30% { box-shadow: 0 0 0 6px #3ee08f99; } }
.fa-hero { position: absolute; left: 50%; font-size: 34px; animation: walk 6s ease-in-out infinite; }
@keyframes walk { 0% { transform: translateX(-50%); } 20% { transform: translateX(-20%) rotate(8deg); } 30% { transform: translateX(-60%) rotate(-8deg); } 55% { transform: translateX(-210%); } 62% { transform: translateX(-210%) translateY(10px) rotate(90deg); opacity: .4; } 100% { transform: translateX(-210%) translateY(10px) rotate(90deg); opacity: .4; } }
.fa-cap { text-align: center; font-weight: 900; font-size: 13px; } .fa-dl { background: #3ee08f; color: #062; padding: 2px 8px; border-radius: 6px; animation: shout .7s infinite; display: inline-block; }

/* ---------- battle pass ---------- */
.pass-head h2 { font-size: 22px; background: linear-gradient(180deg, #fff, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-bar { height: 12px; } .bp-bar i { background: linear-gradient(90deg, var(--gold), var(--orange), var(--pink)); }
.track-wrap { padding: 8px 0 8px 8px; overflow-x: auto; }
.track { display: flex; flex-direction: column; gap: 6px; width: max-content; padding-right: 8px; }
.tr-row { display: flex; gap: 5px; align-items: stretch; }
.tr-lane { position: sticky; left: 0; z-index: 2; width: 78px; flex: none; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; display: flex; align-items: center; padding: 4px 6px; border-radius: 8px; background: #1d0f43; border-left: 4px solid var(--lc, #888); }
.tr-head .tr-lane { border: 0; background: #1d0f43; }
.tr-lv { width: 64px; flex: none; text-align: center; font-family: var(--font-head); font-size: 13px; color: var(--dim); border-radius: 6px; padding: 2px 0; }
.tr-lv.reached { color: #2b1400; background: var(--gold); }
.cell { width: 64px; height: 64px; flex: none; padding: 4px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #ffffff10; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--lc) 45%, transparent); font-weight: 600; }
.cell .ci { font-size: 20px; } .cell .cl { font-size: 9px; line-height: 1.1; text-align: center; opacity: .9; max-height: 20px; overflow: hidden; }
.cell.ready { background: color-mix(in srgb, var(--lc) 35%, #2b1866); box-shadow: inset 0 0 0 2px var(--lc), 0 0 12px color-mix(in srgb, var(--lc) 60%, transparent); animation: glow 1.4s ease-in-out infinite; }
@keyframes glow { 50% { transform: translateY(-2px); } }
.cell.claimed { opacity: .35; } .cell.claimed .ci::after { content: '✓'; position: relative; left: -6px; font-size: 14px; color: var(--green); }
.cell.future { filter: grayscale(.5); opacity: .75; } .cell:disabled { opacity: .35; }
.lane-dot { box-shadow: inset 0 0 0 2px var(--lc); }

/* ---------- shop ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 8px 0; }
.day { background: #00000030; border-radius: 8px; padding: 6px 2px; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 9px; gap: 2px; min-width: 0; }
.day .dn { font-weight: 800; color: var(--dim); white-space: nowrap; } .day .dr { font-size: 18px; } .day .dv { font-weight: 700; overflow-wrap: anywhere; max-width: 100%; }
.day.today { background: linear-gradient(180deg, #ffe07a, #ffb526); color: #4a2a00; } .day.today .dn { color: #7a4a00; }
.day.got { opacity: .45; } .day.chestday .dv { color: var(--gold2); font-size: 8px; } .day.today.chestday .dv { color: #6a0d4a; }
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.offers .row.offer { flex-direction: column; align-items: stretch; gap: 3px; text-align: center; padding: 22px 8px 8px; position: relative; overflow: hidden; background: linear-gradient(180deg, #5a1d8f, #2d1170); border: 2px solid var(--gold); }
.o-ribbon { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(90deg, var(--pink), var(--orange)); color: #fff; font-weight: 900; font-size: 11px; padding: 2px 0; letter-spacing: .5px; }
.o-name { font-family: var(--font-head); font-size: 15px; } .o-price s { color: var(--dim); } .o-price b { color: var(--gold2); font-size: 18px; font-family: var(--font-head); font-weight: 400; }
.o-stock { color: #ff9a9d; font-size: 10px; font-weight: 900; animation: shout 1.2s infinite; }
.o-timer { font-size: 10px; color: var(--dim); } .o-timer b { font-family: var(--mono); color: #fff; }
.offer .buy { width: 100%; min-width: 0; margin-top: 4px; font-size: 11px; }
.row.offer.sold { filter: grayscale(.7); opacity: .65; }
.loot-result { min-height: 6px; }
.loot-pop { display: flex; gap: 10px; align-items: center; background: #00000030; border-radius: 10px; padding: 8px; margin: 8px 0; animation: pop .4s ease-out; }
.loot-pop .lp-ico { font-size: 34px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.coll { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 4px; margin-top: 8px; }
.cos { aspect-ratio: 1; display: grid; place-items: center; font-size: 20px; border-radius: 8px; background: #00000030; opacity: .45; }
.cos.own { opacity: 1; } .rar-Rare.own { box-shadow: inset 0 0 0 2px #57c7ff; } .rar-Epic.own { box-shadow: inset 0 0 0 2px #b07bff; } .rar-Legendary.own { box-shadow: inset 0 0 0 2px var(--gold); } .rar-Mythic.own { box-shadow: inset 0 0 0 2px var(--pink), 0 0 10px var(--pink); }
.loot-pop.rar-Legendary, .loot-pop.rar-Mythic { background: linear-gradient(90deg, #ffb52640, #ff4fa340); }
.vip-card h3 { color: var(--gold2); }

/* ---------- company: a plain corporate memo, on purpose ---------- */
.memo { background: #f6f3ea; color: #1c1c1c; border-radius: 4px; padding: 14px; margin-bottom: 10px; font-family: var(--font-body); box-shadow: 0 4px 0 #0f0727; }
.memo .dim { color: #666; } .memo .label { color: #555; }
.memo-head { font-family: var(--mono); font-size: 10px; letter-spacing: .5px; border-bottom: 1px solid #ccc; padding-bottom: 6px; margin-bottom: 10px; color: #444; }
.memo .big-n { font-size: 28px; color: #2a6b12; }
.memo button { border-radius: 4px; }
.memo .row { background: #fff; border: 1px solid #ddd; color: #1c1c1c; } .memo .row .ico { background: #eee; } .memo .lv { color: #2a6b12; }
.board-list { margin-top: 10px; }

/* ---------- stats ---------- */
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dash .row.tile { padding: 0; border: 0; background: none; }
.tile-btn { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px; background: linear-gradient(180deg, #1c2b5e, #172152); box-shadow: inset 0 0 0 1px #33d6ff33, 0 3px 0 #0b1233; border-radius: 12px; }
.tile-btn .tn { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: #8fd8ff; }
.tile-btn b { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.ach { display: flex; flex-direction: column; gap: 2px; background: #ffffff0c; border: 1px solid var(--line); border-radius: 10px; padding: 8px; opacity: .55; }
.ach.got { opacity: 1; border-color: var(--gold); background: #ffc93c14; }
#lifetime { margin-top: 10px; }
.log { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.log-card summary { cursor: pointer; font-weight: 700; }

/* ---------- event banner, popups, whale, toasts ---------- */
.event-banner { margin: 6px 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 10px; border-radius: 12px; animation: slidein .3s ease-out; }
.event-banner.ev-good { background: linear-gradient(90deg, #1fb86b, #2f9fe0); } .event-banner.ev-bad { background: linear-gradient(90deg, #d8333a, #ef6a1f); }
.ev-ico { font-size: 24px; } .ev-main { flex: 1; display: flex; flex-direction: column; min-width: 0; } .ev-btns { display: flex; flex-wrap: wrap; gap: 6px; flex-basis: 100%; } .ev-btns:empty { display: none; } .ev-btns button { font-size: 12px; padding: 6px 10px; flex: 1; }
.ev-t { font-family: var(--mono); opacity: .85; }
@keyframes slidein { from { transform: translateY(-10px); opacity: 0; } }
.popup-tray { position: fixed; right: max(10px, calc(50% - 270px)); bottom: calc(120px + env(safe-area-inset-bottom)); z-index: 30; display: flex; flex-direction: column-reverse; gap: 6px; width: 190px; pointer-events: none; }
.popup-tray .row.popup { padding: 0; border: 0; background: none; pointer-events: auto; animation: popin .35s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popin { from { transform: scale(.3) rotate(-8deg); opacity: 0; } }
.pop-btn { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px 10px; text-align: left; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #ff4fa3, #ff8a3c); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #8f1f50, 0 8px 18px #0008; border-radius: 12px; }
.pop-btn b { font-family: var(--font-head); font-weight: 400; font-size: 15px; letter-spacing: .3px; }
.pop-life { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #0003; } .pop-life i { display: block; height: 100%; background: #fff; }
.whale-layer { position: fixed; left: 0; right: 0; top: 46%; z-index: 40; pointer-events: none; height: 0; }
.whale { position: absolute; left: 0; pointer-events: auto; background: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; align-items: center; animation: swim linear forwards; }
.whale .w-ico { font-size: 84px; line-height: 1; filter: drop-shadow(0 6px 8px #0008); animation: bob 1.2s ease-in-out infinite; }
.whale .w-tag { background: var(--gold); color: #4a2a00; font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 999px; box-shadow: 0 2px 0 #b8740a; }
.whale-mega .w-ico { font-size: 120px; filter: drop-shadow(0 0 16px var(--gold)); } .whale-levi .w-ico { font-size: 150px; filter: drop-shadow(0 0 20px var(--pink)); }
@keyframes swim { from { transform: translateX(-180px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.toasts { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #120a2ef0; border: 1px solid var(--line2); border-radius: 12px; padding: 6px 10px; font-size: 12px; box-shadow: 0 8px 20px #0008; animation: slidein .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.good { border-color: var(--green); } .toast.bad { border-color: var(--red); } .toast.gold { border-color: var(--gold); background: linear-gradient(90deg, #3a2400f0, #120a2ef0); }
.toast.out { opacity: 0; transform: translateY(-8px); }
.burst { position: fixed; z-index: 70; font-size: 22px; pointer-events: none; animation: burst 1s ease-out forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
.float { position: fixed; z-index: 70; pointer-events: none; font-weight: 900; color: var(--gold2); text-shadow: 0 2px 0 #000a; animation: float .9s ease-out forwards; white-space: nowrap; }
@keyframes float { to { transform: translateY(-50px); opacity: 0; } }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: #07031acc; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(3px); }
.modal-box { width: min(440px, 100%); max-height: 90vh; overflow: auto; background: linear-gradient(180deg, #33207a, #241363); border: 2px solid var(--line2); border-radius: 18px; padding: 16px; box-shadow: 0 10px 0 #0f0727, 0 20px 60px #000a; animation: pop .25s ease-out; }
.modal-title { font-size: 22px; margin: 2px 0 8px; }
.kicker { font-size: 11px; font-weight: 900; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.story-text { font-size: 14px; line-height: 1.5; }
.welcome-box .modal-title { font-size: 20px; }
.wb-gains { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.wb-row { display: flex; justify-content: space-between; background: #00000030; border-radius: 8px; padding: 6px 10px; font-size: 13px; } .wb-row b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.chest-box { text-align: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 45%, #7a3cff, #241363 70%); }
.rays { position: absolute; inset: -50%; background: repeating-conic-gradient(#ffd75e22 0 10deg, transparent 10deg 20deg); animation: spin 8s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.chest-kicker { position: relative; font-size: 11px; font-weight: 900; letter-spacing: 2px; color: var(--gold2); }
.chest-title { position: relative; font-family: var(--font-head); font-size: 26px; line-height: 1.05; margin: 6px 0; background: linear-gradient(180deg, #fff, var(--gold), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 #0006); }
.chest { position: relative; font-size: 100px; margin: 18px 0; display: inline-block; }
.chest.shaking { animation: shake .12s linear infinite, grow 2.4s ease-in forwards; }
.chest.open { animation: boom .5s ease-out forwards; }
@keyframes shake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes grow { to { font-size: 130px; filter: drop-shadow(0 0 30px var(--gold)); } }
@keyframes boom { 0% { transform: scale(1.4); filter: brightness(3); } 100% { transform: scale(1); } }
.chest-out { position: relative; } .chest-got { font-family: var(--font-head); font-size: 34px; color: var(--gold2); }
.chest-box button { position: relative; }
.cs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.cs-card { background: #00000030; border-radius: 10px; padding: 10px; border: 2px solid transparent; } .cs-card.pick { border-color: var(--gold); }
.cs-title { font-weight: 800; } .cs-place { color: var(--gold2); font-size: 13px; }
.settings-box { max-width: 460px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #ffffff14; font-size: 13px; }
.set-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--gold); }
textarea#set-io { width: 100%; height: 56px; margin-top: 6px; background: #00000040; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px; font: 11px var(--mono); }
.cloud-box { background: #00000030; border-radius: 12px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.cloud-user { display: flex; gap: 8px; align-items: center; }
.gsi-btn { display: inline-flex; gap: 8px; align-items: center; background: #fff; color: #222; box-shadow: 0 2px 0 #aaa; margin-top: 6px; }
.link-btn { background: none; box-shadow: none; color: var(--dim); text-decoration: underline; padding: 2px; }
.warn { color: var(--gold2); }
.danger-btn { background: linear-gradient(180deg, #ff6b70, #d8333a); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 0 #7c1418; }
.devtools { margin-top: 8px; font-size: 13px; } .devtools summary { cursor: pointer; padding: 6px 0; font-weight: 700; }
.dev-row { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; } .dev-row button { font-size: 11px; padding: 5px 8px; }
.whatsnew { display: flex; flex-direction: column; gap: 6px; }
.credits { margin-top: 12px; line-height: 1.5; }
.errbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 99; background: var(--red); color: #fff; padding: 6px 10px; font-size: 12px; }

@media (min-width: 900px) {
  body { max-width: 620px; }
  .popup-tray { right: calc(50% - 300px - 210px); bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  .whale { animation: swim linear forwards !important; animation-duration: 9s !important; }
}

/* ---------- tutorial (Alpha 0.2.0) ---------- */
.tut-card { position: relative; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--radius); background: linear-gradient(180deg, #fff6d6, #ffe08a); color: #3b2300; box-shadow: 0 4px 0 #b8740a, 0 10px 24px #0006; display: flex; flex-direction: column; gap: 4px; animation: slidein .3s ease-out; }
.tut-kicker { font-size: 10px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: #8a5200; }
.tut-title { font-family: var(--font-head); font-size: 19px; line-height: 1.15; }
.tut-text { font-size: 13px; line-height: 1.4; max-width: 62ch; }
.tut-prog { display: flex; align-items: center; gap: 8px; } .tut-prog .bar { flex: 1; margin: 4px 0; background: #00000022; } .tut-prog .bar i { background: linear-gradient(90deg, #1fb86b, #4ef0a0); }
.tut-prog .small { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tut-card .dim { color: #7a5a20; }
.tut-go { font-size: 12px; padding: 5px 10px; background: linear-gradient(180deg, #4ef0a0, #1fb86b); color: #08321d; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 0 #0e7a43; }
.tut-glow { position: relative; z-index: 1; animation: tutglow 1.2s ease-in-out infinite !important; outline: 3px solid var(--gold); outline-offset: 3px; }
@keyframes tutglow { 0%, 100% { outline-color: var(--gold); box-shadow: 0 0 0 0 #ffc93c99; } 50% { outline-color: #fff; box-shadow: 0 0 18px 6px #ffc93c99; } }
body:not(.rep-on) .rep-tag, body:not(.rep-on) .aggr { display: none; }

/* ---------- executive desk (Alpha 0.3.0) ---------- */
.desk-kicker { font-size: 12px; color: var(--dim); text-align: center; margin-bottom: 8px; }
.desk-kicker b { color: var(--gold2); }
.tap-btn { background: radial-gradient(120px 90px at 50% 30%, #ffffff26, transparent 70%), linear-gradient(160deg, #2c4a8f, #3a2389 55%, #6a2a8f); }
.tap-title { font-size: 24px; }
.last-action { margin-top: 8px; min-height: 36px; font-size: 13px; text-align: center; background: #00000030; border-radius: 10px; padding: 8px 10px; }
.last-action b { color: #fff; }
.devboard .proj-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.devboard .row.proj { background: #00000026; border-color: #ffffff1c; }
.devboard .row.proj .bar { height: 6px; margin: 5px 0 0; } .devboard .row.proj .bar i { background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .2s linear; }
.proj-line { color: var(--gold2); font-style: italic; }
.proj-t { font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.pizza-row { margin-top: 10px; gap: 10px; } .pizza-row .small { min-width: 0; } .pizza-row button { flex: none; font-size: 12px; width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.post { font-size: 13px; line-height: 1.35; background: #00000026; border-left: 3px solid var(--line2); border-radius: 6px; padding: 6px 8px; animation: slidein .3s ease-out; overflow-wrap: anywhere; }
.post b { color: var(--cyan); font-weight: 700; } .post.good { border-left-color: var(--green); } .post.bad { border-left-color: var(--red); }
#feed-stars { color: var(--gold); white-space: nowrap; }
.row.pending { border-color: var(--gold); }
.desc-wrap { position: relative; }
.row-status { position: absolute; inset: 0; display: flex; align-items: center; color: var(--gold2); font-style: italic; font-size: 13px; } .row-status:empty { display: none; }
.row.pending .desc { visibility: hidden; }
.buy.accent { background: linear-gradient(180deg, #ffe07a, #ffb526); color: #4a2a00; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #b8740a; }

/* buttons in rows keep one size, whatever their label says */
.row > .buy, .row .btn-col > .buy { width: 112px; min-width: 112px; flex: none; }
.row > .buy > span, .row > .buy > b, .row .btn-col > .buy > span, .row .btn-col > .buy > b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offers .row.offer > .buy { width: 100%; min-width: 0; }
.row .btn-col-h > .buy { width: auto; min-width: 0; }

.tut-pulse { animation: tutpulse 0.5s ease-in-out 3 !important; }
@keyframes tutpulse { 50% { transform: scale(1.04); box-shadow: 0 0 0 4px var(--gold), 0 0 24px 8px #ffc93caa; } }

/* ---------- code vs pander (Alpha 0.5.0) ---------- */
.tap-btn { background: radial-gradient(120px 90px at 50% 30%, #ffffff26, transparent 70%), linear-gradient(160deg, #1f6b5c, #2c3f8f 55%, #3a2389); }
.pander-btn { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; background: linear-gradient(135deg, #ff4fa3, #ff8a3c); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #8f1f50; }
.pander-btn .pb-ico { font-size: 26px; } .pander-btn .pb-txt { display: flex; flex-direction: column; } .pander-btn b { font-family: var(--font-head); font-weight: 400; font-size: 16px; }
.pander-line { margin-top: 6px; min-height: 34px; font-size: 13px; text-align: center; background: #ff4fa31a; border-radius: 10px; padding: 7px 10px; }
.code-stats { margin-top: 8px; text-align: center; color: var(--dim); } .code-stats b { color: var(--text); }

/* ===== Alpha 0.6.0: three tabs, three taps ===== */
.tab-job { font-family: var(--font-head); font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); margin: 2px 4px 8px; }
.tap-btn.tap-code { background: radial-gradient(120px 90px at 50% 30%, #ffffff26, transparent 70%), linear-gradient(160deg, #1f6b5c, #2c3f8f 55%, #3a2389); }
.tap-btn.tap-ad { background: radial-gradient(120px 90px at 50% 30%, #ffffff30, transparent 70%), linear-gradient(160deg, #b8740a, #c2335f 55%, #6a2a8f); }
.tap-btn.tap-reply { background: radial-gradient(120px 90px at 50% 30%, #ffffff26, transparent 70%), linear-gradient(160deg, #1d78a8, #2c4a8f 55%, #3a2389); }
.buy.code { background: linear-gradient(180deg, #3fd6c0, #1b9a8a); color: #052b26; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #0d5f55; }
.buy.code.primary { background: linear-gradient(180deg, #4ef0a0, #1fb86b); color: #08321d; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #0e7a43; }
.kpi b.bad, #k-net.bad { color: var(--red); }
.res.neg [data-f=r] { color: var(--red); }
.qbar-wrap { margin-top: 10px; background: #00000030; border-radius: 10px; padding: 8px 10px; }
.qbar { position: relative; height: 12px; background: #00000050; border-radius: 8px; margin: 6px 0; }
.qbar i { display: block; height: 100%; border-radius: 8px; transition: width .3s; background: linear-gradient(90deg, #1fb86b, #4ef0a0); }
.qbar i.bad { background: linear-gradient(90deg, #c2335f, var(--red)); }
.e-mark { position: absolute; top: -4px; width: 3px; height: 20px; background: var(--gold); border-radius: 2px; transform: translateX(-1px); box-shadow: 0 0 6px var(--gold); transition: left .3s; }
.trust-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; margin-top: 10px; background: #00000030; border-radius: 10px; padding: 8px 10px; }
.trust-row .dim { grid-column: 1 / -1; } .trust-row .dim:empty { display: none; }
.trust-bar { height: 8px; background: #00000050; border-radius: 6px; overflow: hidden; }
.trust-bar i { display: block; height: 100%; border-radius: 6px; transition: width .3s; background: var(--green); }
.trust-bar i.mid { background: var(--gold); } .trust-bar i.bad { background: var(--red); }
.stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Code glyph (0.6.1): the Code currency is </>, not a keyboard */
.code-ico { font-family: var(--mono); font-weight: 700; color: var(--cyan); letter-spacing: -1px; white-space: nowrap; }
.tap-icon.code-ico { font-size: 54px; padding: 4px 0; color: #7ff0e0; text-shadow: 0 0 18px #33d6ff88; }
.res .ri .code-ico { font-size: 13px; }
.tabs .code-ico { font-size: 12px; }

/* ===== Alpha 0.0.4: players hub, price, shelves, review bombs ===== */
.hub { margin-bottom: 10px; padding: 10px 12px; }
.hub-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.hub-n { display: flex; align-items: baseline; gap: 8px; }
.hub-n b { font-family: var(--font-head); font-size: 30px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.hub-rate { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-side { text-align: right; font-variant-numeric: tabular-nums; }
.hub .bar { margin: 4px 0 0; } .hub .bar i { background: linear-gradient(90deg, var(--cyan), var(--green)); }
.price-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.price-btn { display: flex; flex-direction: column; gap: 2px; padding: 8px 4px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; }
.price-btn b { font-size: 15px; } .price-btn .small { font-size: 10.5px; line-height: 1.2; }
.price-btn.active { background: linear-gradient(180deg, #4ef0a0, #1fb86b); color: #08321d; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #0e7a43; }
.price-btn.active .dim { color: #0b4a2b; }
.f2p-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.f2p-row button { flex: none; }
.row.shelf-head { background: transparent; border: 0; box-shadow: none; padding: 12px 2px 2px; }
.row.shelf-head .name { font-family: var(--font-head); font-size: 16px; font-weight: 400; }
.inc-card { border: 2px solid var(--red); background: linear-gradient(180deg, #3a1230, #241450); margin-bottom: 12px; }
.inc-card.live { animation: bombpulse 1.2s ease-in-out infinite; }
.inc-card.fixed { border-color: #3ee08f; background: linear-gradient(180deg, #123a2c, #241450); }
.inc-head { display: flex; align-items: center; gap: 10px; }
.inc-ico { font-size: 30px; line-height: 1; }
.inc-tt { flex: 1; min-width: 0; } .inc-tt h3 { margin: 0; }
.inc-kick { font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #ff9a9d; }
.inc-card.fixed .inc-kick { color: #7ff0b8; }
.inc-st { font-weight: 800; font-size: 13px; white-space: nowrap; }
.inc-reason { margin: 8px 0 6px; font-size: 14px; }
.inc-row { display: flex; gap: 8px; font-size: 13px; margin: 4px 0; line-height: 1.35; }
.inc-row b { flex: 0 0 46px; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; padding-top: 2px; color: var(--dim); }
.inc-row.bad span { color: #ffb3b5; }
.inc-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.inc-bar { display: grid; grid-template-columns: minmax(0, 1.3fr) 1fr auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.inc-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .inc-bar b { min-width: 52px; text-align: right; }
.inc-bar .bar { height: 8px; margin: 0; } .inc-bar .bar i.bad { background: var(--red); } .inc-bar .bar i.good { background: #3ee08f; }
.inc-go { margin-top: 8px; width: 100%; padding: 10px; border: 0; border-radius: 12px; font-weight: 800; color: #fff; background: var(--red); font-size: 14px; }
/* on other tabs: one line + a button to go fix it */
.inc-card.mini { padding: 10px 12px; } .inc-card.mini .inc-ico { font-size: 22px; }
.inc-card.mini .inc-reason, .inc-card.mini .fixrow, .inc-card.mini .inc-bars { display: none; }
.inc-card.mini.live { animation: none; }
@keyframes bombpulse { 50% { box-shadow: 0 0 0 3px #ff5a5f55; } }
.bomb-bars { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; margin: 6px 0; }
.bomb-bars .bar { margin: 0; } #bomb-hit { background: var(--red); } #bomb-def { background: var(--green); }
@media (max-width: 420px) { .price-row { grid-template-columns: repeat(2, 1fr); } }

/* Alpha 0.0.5: naming the studio */
.name-form { display: grid; gap: 8px; margin-top: 10px; }
.name-form input { font: 600 16px var(--font-body); color: var(--text); background: #00000040; border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.name-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.name-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.name-ideas .idea { font-size: 12px; padding: 5px 9px; background: #00000040; box-shadow: none; border: 1px solid var(--line); font-weight: 600; }

/* Alpha 0.0.6: Write Code floats a line of code */
.float.codefloat { font: 600 13px var(--mono); color: #7ff0e0; text-shadow: 0 0 8px #33d6ff66, 0 1px 0 #000a; animation: codefloat 1.3s ease-out forwards; }
@keyframes codefloat { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(-70px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .float.codefloat { animation-duration: .8s; } }

/* Alpha 0.0.7: a copy sold */
.float.salefloat { font: 700 13px var(--font-body); color: var(--green); text-shadow: 0 1px 0 #000a; animation: codefloat 1.2s ease-out forwards; }

/* Alpha 0.0.8: buy buttons read cost, then gain */
.buy > span[data-f=bn] { font-size: 11px; opacity: .85; }
.buy > b[data-f=bc] { font-size: 14px; }
.buy > i[data-f=bg] { display: block; font-style: normal; font-size: 12.5px; font-weight: 700; line-height: 1.3; margin-top: 3px; padding: 2px 7px; border-radius: 6px; background: #14092ecc; color: #fff; font-variant-numeric: tabular-nums; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alpha 0.0.10: Promote stays next to the ad tap while the game is paid */
.promo-btn { width: 100%; margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; }
.promo-btn b { font-variant-numeric: tabular-nums; font-size: 13px; }

/* Alpha 0.0.11: labelled price buttons, salary on hires */
.price-btn .pi-row { display: flex; gap: 4px; align-items: baseline; justify-content: center; font-size: 11px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.price-btn.active .pi-row { color: #08321d; }
.buy > i.sal { display: block; font-style: normal; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; margin-top: 2px; background: #3a0d1fcc; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Alpha 0.0.12: Promote hooks and PR replies float up like code lines */
.float.promofloat { font: 800 13px var(--font-body); color: #ffe08a; text-shadow: 0 0 8px #ffb52666, 0 1px 0 #000a; animation: codefloat 1.4s ease-out forwards; }
.float.replyfloat { font: 600 13px var(--font-body); font-style: italic; color: #bfe9ff; text-shadow: 0 0 8px #33d6ff55, 0 1px 0 #000a; animation: codefloat 1.4s ease-out forwards; }
@media (prefers-reduced-motion: reduce) { .float.promofloat, .float.replyfloat { animation-duration: .8s; } }

/* Streamly Live / ToobVOD (0.0.14) */
.row.is-live { box-shadow: inset 3px 0 0 #ff4d6d; }
.vod-list { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.vid { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #ffffff0d; }
.vid .thumb { flex: 0 0 52px; height: 32px; border-radius: 6px; background: #000; display: grid; place-items: center; font-size: 18px; }
.vid.up .thumb { box-shadow: inset 0 -3px 0 #3ee08f; } .vid.down .thumb { box-shadow: inset 0 -3px 0 #ff5a5f; }
.vid .main { min-width: 0; flex: 1; } .vid .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 13px; }

/* 0.0.15: players icon in electric blue; Streamly red TV, ToobVOD purple play */
.pl-ico { width: 1.15em; height: 1.15em; vertical-align: -0.2em; fill: #2ea8ff; filter: drop-shadow(0 0 3px #2ea8ff88); }
.res .ri .pl-ico { width: 22px; height: 22px; vertical-align: middle; }
.brand-ico { width: 1.25em; height: 1.25em; vertical-align: -0.22em; }
.brand-h { display: flex; align-items: center; gap: 8px; }
.toast .brand-ico { width: 1.1em; height: 1.1em; }

/* 0.0.17: price per Quality on patches */
.perq { color: #9be8ff; margin-top: 2px; } .perq b { font-family: var(--mono); }
.row.best-deal { box-shadow: inset 3px 0 0 #3ee08f; }
.tag:empty { display: none; }

/* 0.0.18: content vs bug fixes */
.sub-head { display: flex; flex-direction: column; gap: 2px; margin: 12px 4px 6px; } .sub-head b { font-size: 15px; }
.bug-row { margin-top: 8px; padding: 6px 10px; border-radius: 10px; background: #00000030; }
.bug-row.good { color: #7ff0b8; } .bug-row.mid { color: var(--gold2, #ffd76a); } .bug-row.bad { color: #ff9a9d; }
.buy.fixbtn { background: linear-gradient(180deg, #ff9f43, #e2702a); }
.sale-wrap { margin-top: 10px; padding: 10px; border-radius: 12px; background: #00000028; }
.sale-wrap.live { box-shadow: inset 0 0 0 2px #ff5a5f; }
.sale-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.sale-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(180deg, #e2453c, #b02a3a); font-size: 12px; text-align: left; min-width: 0; }
.sale-btn b { font-size: 18px; font-family: var(--font-head); } .sale-btn .pi-row { display: flex; gap: 4px; align-items: center; white-space: nowrap; }
.sale-btn:disabled { opacity: .45; } .sale-btn.active { opacity: 1; outline: 2px solid #fff; }

/* 0.1.0: eras, opportunities, milestones */
.era-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff14; }
.era-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; font-size: 13px; }
.era-btn { width: 100%; padding: 12px; border: 0; border-radius: 12px; font-weight: 800; font-size: 15px; color: #1b0f3a; background: linear-gradient(180deg, #ffd76a, #ffb423); box-shadow: 0 4px 0 #b9790d; }
.era-row.ready .era-btn { animation: bombpulse 1.2s ease-in-out infinite; }
.inc-card.good { border-color: #3ee08f; background: linear-gradient(180deg, #11402e, #241450); }
.inc-card.good .inc-kick { color: #7ff0b8; } .inc-card.good.live { animation: none; }
.inc-card.good .inc-go { background: #2bb673; }
.inc-card.missed { border-color: #ffffff30; opacity: .8; }
.inc-reward { display: block; margin-top: 4px; color: #7ff0b8; }
.tut-card.ms .tut-kicker { color: #9be8ff; }

/* 0.1.2: logo */
.app-icon img { width: 100%; height: 100%; display: block; }
.story-logo { display: block; width: min(240px, 70%); height: auto; margin: -6px auto 8px; border-radius: 16px; }
.story-logo.hidden { display: none; }

/* 0.1.3: a finished quest flashes green before the next one */
.tut-card.done { box-shadow: 0 0 0 3px #3ee08f, 0 8px 24px #3ee08f44; }
.tut-card.done #tut-count { color: #12804e; font-weight: 800; }

/* 0.1.4: welcome screen: sign in or play as a guest (same flow as Click to Conquer and Factory A.F.K.) */
.first { position: fixed; inset: 0; z-index: 60; background: radial-gradient(120% 80% at 50% 0%, #2a1660, #0d061f 70%); display: flex; align-items: center; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.first.hidden { display: none; }
.first-box { width: min(400px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 12px; text-align: center; }
.first-box img { width: min(300px, 82%); height: auto; align-self: center; border-radius: 20px; filter: drop-shadow(0 10px 30px #00ff8a33); }
.first-tag { margin: 0; font-family: var(--font-head); font-size: 20px; color: var(--gold2, #ffd76a); }
.first-box .fnote { margin: 0; font-size: 13px; line-height: 1.45; color: #c9bde8; }
.first-box .gsi-btn { justify-content: center; padding: 12px; font-size: 15px; }
.first-guest { padding: 12px; border-radius: 12px; border: 1px solid #ffffff30; background: #ffffff10; color: #fff; font-weight: 700; font-size: 15px; }
/* 0.1.5: let staff go */
.letgo { margin-top: 4px; padding: 2px 8px; font-size: 11px; background: transparent; border: 1px solid var(--line, #444); color: var(--dim, #999); border-radius: 6px; min-width: 0; }
.letgo:hover { color: var(--red); border-color: currentColor; }
