[hidden] { display: none !important; }
:root {
  --ink: #1d1a14; --ink2: #2b261d; --cream: #fff8e7; --paper: #fffdf6; --lemon: #ffd23f; --lemon2: #f4b400; --green: #2f9e44; --red: #e5484d; --blue: #2f80c2; --mute: #7a7160;
  --glass: rgba(255, 252, 240, .9); --line: rgba(29, 26, 20, .12);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --round: 'Fredoka', 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0d1020; color: var(--ink); font: 14px/1.4 Inter, system-ui, sans-serif; overscroll-behavior: none; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: pointer; }
#bubbles, #floats { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }

/* launch screen: Step-Up presents, a BASS production */
#loader { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(28px + var(--safe-t)) 20px calc(44px + var(--safe-b)); background: radial-gradient(ellipse 75% 60% at 50% 46%, rgba(255,210,63,.38), rgba(255,210,63,0) 72%), linear-gradient(180deg, #1b170f, #0b0906); color: #fff8e7; text-align: center; overflow: hidden; transition: opacity .8s ease, visibility 0s .8s; cursor: pointer; }
body:not(.loading) #loader { opacity: 0; visibility: hidden; pointer-events: none; }
#loader .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* slow sunburst behind the logo */
#loader .sp-rays { position: absolute; left: 50%; top: 46%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; background: repeating-conic-gradient(from 0deg, rgba(255,214,80,.10) 0 6deg, rgba(255,214,80,0) 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 25%, transparent 60%); mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 25%, transparent 60%); animation: spRays 40s linear infinite; pointer-events: none; }
@keyframes spRays { to { transform: rotate(360deg); } }
/* lemons, ice and sparkles drifting up */
#loader .sp-float { position: absolute; inset: 0; pointer-events: none; }
#loader .sp-float i { position: absolute; bottom: -40px; font-style: normal; font-size: 22px; opacity: 0; animation: spFloat 7s linear infinite; filter: blur(.3px); }
#loader .sp-float i:nth-child(1) { left: 8%; animation-delay: .2s; } #loader .sp-float i:nth-child(2) { left: 22%; animation-delay: 2.6s; font-size: 16px; }
#loader .sp-float i:nth-child(3) { left: 37%; animation-delay: 4.4s; font-size: 18px; } #loader .sp-float i:nth-child(4) { left: 55%; animation-delay: 1.1s; font-size: 14px; }
#loader .sp-float i:nth-child(5) { left: 70%; animation-delay: 3.3s; } #loader .sp-float i:nth-child(6) { left: 84%; animation-delay: 5.2s; font-size: 15px; }
#loader .sp-float i:nth-child(7) { left: 92%; animation-delay: .9s; font-size: 13px; } #loader .sp-float i:nth-child(8) { left: 47%; animation-delay: 6s; font-size: 26px; }
@keyframes spFloat { 0% { transform: translateY(0) rotate(0); opacity: 0; } 12% { opacity: .55; } 85% { opacity: .35; } 100% { transform: translateY(-110vh) rotate(260deg); opacity: 0; } }
#loader .sp-top { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; animation: spIn 1s .1s both; }
#loader .sp-top img { width: min(36vw, 160px); height: auto; }
#loader .sp-top span { font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: rgba(255,248,231,.62); padding-left: .42em; }
#loader .sp-mid { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; }
/* the animated badge */
.le-logo { position: relative; width: min(84vw, 62vh, 470px); aspect-ratio: 640 / 650; animation: lePop 1.1s cubic-bezier(.2, 1.5, .4, 1) .15s both, leFloat 5s ease-in-out 1.3s infinite; filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(255,200,40,.25)); }
.le-logo > img, .le-who img { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes lePop { 0% { transform: scale(.4) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } 100% { transform: none; } }
@keyframes leFloat { 50% { transform: translateY(-6px); } }
.le-who { position: absolute; inset: 0; }
.le-marcus { transform-origin: 33.5% 57.8%; animation: leMarcus 4.2s ease-in-out 1.2s infinite; }
.le-nia { transform-origin: 65.7% 57.8%; animation: leNia 4.8s ease-in-out 1.5s infinite; }
@keyframes leMarcus { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-.9deg) translateY(-1px); } 65% { transform: rotate(.5deg) translateY(.5px); } }
@keyframes leNia { 0%, 100% { transform: rotate(0) translateY(0); } 35% { transform: rotate(.9deg) translateY(-1.5px); } 70% { transform: rotate(-.4deg) translateY(0); } }
/* blinks: eyelids that close for a moment */
.le-who .lid { position: absolute; width: 3.4%; height: 2.1%; margin: -1.05% 0 0 -1.7%; border-radius: 50%; transform: scaleY(0); transform-origin: 50% 0; animation: leBlink 4.6s infinite 2s; }
.le-marcus .lid { background: rgb(84, 44, 40); border-bottom: 1px solid #1a0f0c; }
.le-nia .lid { background: rgb(98, 47, 42); border-bottom: 1.5px solid #120806; animation-duration: 5.3s; animation-delay: 2.7s; }
@keyframes leBlink { 0%, 93%, 100% { transform: scaleY(0); } 95.5% { transform: scaleY(1); } }
/* the lemon: a glint sweeps across it, and it sparkles */
.le-shine { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; -webkit-mask-image: linear-gradient(115deg, transparent 42%, #000 50%, transparent 58%); mask-image: linear-gradient(115deg, transparent 42%, #000 50%, transparent 58%); -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: 120% 0; mask-position: 120% 0; animation: leShine 3.6s ease-in-out 1.4s infinite both; }
@keyframes leShine { 0% { -webkit-mask-position: 120% 0; mask-position: 120% 0; } 45%, 100% { -webkit-mask-position: -20% 0; mask-position: -20% 0; } }
.le-logo .spark { position: absolute; width: 4.5%; aspect-ratio: 1; margin: -2.25% 0 0 -2.25%; background: radial-gradient(circle, #fff 0 12%, transparent 13%), conic-gradient(from 45deg, transparent 0 20deg, #fff8c2 22deg 26deg, transparent 28deg 110deg, #fff8c2 112deg 116deg, transparent 118deg 200deg, #fff8c2 202deg 206deg, transparent 208deg 290deg, #fff8c2 292deg 296deg, transparent 298deg); border-radius: 50%; opacity: 0; animation: leSpark 2.6s ease-in-out 1.6s infinite; filter: drop-shadow(0 0 6px #fff3a0); }
.le-logo .spark.s2 { width: 3%; margin: -1.5% 0 0 -1.5%; }
@keyframes leSpark { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.4) rotate(90deg); } }
#loader .sp-bass { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; animation: spIn 1s .9s both; }
#loader .sp-bass img { width: min(22vw, 92px); height: auto; filter: drop-shadow(0 4px 14px rgba(255,210,63,.35)); }
#loader .sp-bass b { font-family: Inter, sans-serif; font-weight: 700; font-size: clamp(8px, 2.1vw, 10.5px); letter-spacing: .32em; color: #ffd23f; padding-left: .32em; opacity: .85; }
#loader .sp-load { position: absolute; left: 50%; bottom: calc(18px + var(--safe-b)); width: 120px; margin-left: -60px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
#loader .sp-load i { display: block; height: 100%; width: 0; background: #ffd23f; transition: width 3.4s cubic-bezier(.3,.7,.4,1); }
#loader.go .sp-load i { width: 100%; }
@keyframes spIn { from { opacity: 0; transform: translateY(12px); } }
@media (max-height: 520px) { #loader { padding-top: 10px; padding-bottom: 22px; } #loader .sp-top img { width: 110px; } .le-logo { width: min(60vh, 340px); } }
@media (prefers-reduced-motion: reduce) { #loader *, .le-logo, .le-logo * { animation: none !important; } }
.brandrow { display: flex; align-items: center; justify-content: center; gap: 16px; margin: -4px 0 12px; padding: 12px 18px; border-radius: 14px; background: linear-gradient(180deg, #1d1a14, #0f0d09); }
.brandrow img { height: 26px; width: auto; }
.brandrow .bass { height: 32px; }
.brandrow i { width: 1px; height: 26px; background: rgba(255,255,255,.2); }
.brandfoot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brandfoot img { height: 28px; width: auto; filter: brightness(.55) sepia(.3); }
.brandfoot small { font-size: 9.5px; letter-spacing: .26em; color: var(--mute); font-weight: 600; padding-left: .26em; text-align: center; }
.lemon-spin { font-size: 72px; animation: spin 1.6s cubic-bezier(.5, 0, .5, 1) infinite; filter: drop-shadow(0 8px 12px rgba(0,0,0,.25)); }
@keyframes spin { 50% { transform: rotate(180deg) scale(1.15); } 100% { transform: rotate(360deg); } }

/* HUD */
#hud { position: fixed; z-index: 10; left: 8px; right: 8px; top: calc(8px + var(--safe-t)); display: flex; align-items: stretch; gap: 8px; pointer-events: none; }
#hud > * { pointer-events: auto; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.7); }
#hud .back { display: flex; align-items: center; justify-content: center; width: 38px; text-decoration: none; color: var(--ink); font-size: 26px; font-weight: 700; }
.era { flex: 1.25; min-width: 0; padding: 6px 10px 7px; display: grid; grid-template-columns: 1fr auto; row-gap: 3px; column-gap: 6px; align-items: center; }
.era-name { font-family: var(--round); font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.era .nw { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; white-space: nowrap; }
.era .nw i { font-style: normal; font-weight: 500; color: var(--mute); font-size: 11px; margin-left: 4px; }
.era .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: rgba(0,0,0,.09); overflow: hidden; }
.era .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd23f, #f4b400); border-radius: 4px; transition: width .6s; }
.clock { display: flex; align-items: center; gap: 7px; padding: 4px 10px; cursor: pointer; }
.clock .wx { font-size: 24px; }
.clock .time { display: flex; flex-direction: column; line-height: 1.1; }
.clock .time b { font-family: var(--round); font-size: 15px; font-variant-numeric: tabular-nums; }
.clock .time small { color: var(--mute); font-size: 11px; white-space: nowrap; }
.clock .temp { font-weight: 700; font-size: 15px; }
.cash { padding: 4px 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 98px; }
.cash small { color: var(--mute); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.cash b { font-family: var(--round); font-size: 19px; font-variant-numeric: tabular-nums; color: #186a2f; }
.cash.neg b { color: var(--red); }
.cash.pop b { animation: pop .35s; }
@keyframes pop { 40% { transform: scale(1.12); } }
#hud .icon { border: 0; width: 42px; font-size: 19px; cursor: pointer; }
@media (max-width: 760px) {
  #hud { flex-wrap: wrap; gap: 6px; left: 6px; right: 6px; }
  #hud .back { width: 34px; }
  .era { flex: 1 1 calc(100% - 136px); order: 1; }
  #bTop { order: 2; } #bSet { order: 3; }
  .clock { order: 4; flex: 1; }
  .cash { order: 5; flex: 1; align-items: center; }
  #hud .icon { width: 40px; }
}

/* hustle meter */
#hustle { position: fixed; z-index: 9; left: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
#hustle .mult { font-family: var(--round); font-weight: 700; font-size: 16px; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
#hustle .tube { width: 16px; height: 150px; border-radius: 10px; background: rgba(255,255,255,.35); box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 2px 10px rgba(0,0,0,.25); overflow: hidden; display: flex; align-items: flex-end; border: 2px solid rgba(255,255,255,.75); }
#hustle .tube i { display: block; width: 100%; height: 0; background: linear-gradient(0deg, #ff8a00, #ffd23f 60%, #fff3a8); transition: height .12s; box-shadow: 0 0 16px #ffd23f; }
#hustle .lbl { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); font-weight: 700; }
#hustle.hot .mult { color: #ffd23f; animation: pop .5s infinite; }

/* action buttons */
#actions { position: fixed; z-index: 9; right: 10px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.act { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--glass); box-shadow: 0 6px 16px rgba(0,0,0,.25), inset 0 1px 0 #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.act b { font-size: 22px; line-height: 1; }
.act small { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.act:disabled { opacity: .55; }
.act.ready { animation: glow 1.6s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255,210,63,.45), 0 6px 16px rgba(0,0,0,.25); } }
.act .ring { position: absolute; inset: -3px; pointer-events: none; }
.act .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.act .ring circle { fill: none; stroke: #f4b400; stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }

#tapHint { position: fixed; z-index: 8; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%); background: rgba(29,26,20,.78); color: #fff; padding: 9px 16px; border-radius: 30px; font-weight: 600; font-size: 13px; pointer-events: none; animation: bob 1.6s ease-in-out infinite; transition: opacity .6s; white-space: nowrap; }
#tapHint.gone { opacity: 0; }
@keyframes bob { 50% { transform: translate(-50%, -6px); } }

/* toasts */
#toasts { position: fixed; z-index: 30; left: 50%; top: calc(76px + var(--safe-t)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
@media (max-width: 760px) { #toasts { top: calc(118px + var(--safe-t)); } }
.toast { background: rgba(29,26,20,.9); color: #fff; padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 8px 22px rgba(0,0,0,.3); animation: tin .35s cubic-bezier(.2,.9,.3,1.3); text-align: center; }
.toast.event { background: linear-gradient(135deg, #2b2b6b, #4a2b6b); }
.toast.good { background: linear-gradient(135deg, #1f7a3a, #2f9e44); }
.toast.bad { background: linear-gradient(135deg, #9b2226, #c0392b); }
.toast.era { background: linear-gradient(135deg, #f4b400, #ff8a00); color: var(--ink); }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .4s; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px) scale(.95); } }

/* bubbles over customers */
.bubble { position: absolute; left: 0; top: 0; background: #fff; color: var(--ink); border-radius: 14px; padding: 5px 9px 5px 6px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); display: flex; align-items: center; gap: 4px; will-change: transform; }
.bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble b { font-size: 17px; line-height: 1; }
.bubble.good { background: #fffbe0; }
.bubble.good::after { border-top-color: #fffbe0; }
.float { position: absolute; left: 0; top: 0; font-family: var(--round); font-weight: 700; font-size: 18px; color: #fff; text-shadow: 0 2px 0 #1b6b31, 0 3px 8px rgba(0,0,0,.45); white-space: nowrap; animation: rise 1.2s ease-out forwards; }
.float.lemon { color: #ffe066; text-shadow: 0 2px 0 #9a6b00, 0 3px 8px rgba(0,0,0,.45); font-size: 15px; }
.float.big { font-size: 26px; color: #ffd23f; text-shadow: 0 2px 0 #7a4b00, 0 4px 12px rgba(0,0,0,.5); }
@keyframes rise { from { opacity: 0; transform: var(--p) translateY(6px) scale(.8); } 15% { opacity: 1; transform: var(--p) translateY(0) scale(1.08); } to { opacity: 0; transform: var(--p) translateY(-56px) scale(1); } }

/* flash sale */
#flash { position: fixed; z-index: 20; right: 92px; top: calc(50% - 70px); width: 220px; background: linear-gradient(160deg, #fff6c9, #ffe27a); border-radius: 16px; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.3); border: 2px solid #f4b400; animation: tin .4s; }
#flash .fl-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--round); }
#flash .fl-top span { font-family: var(--round); font-weight: 700; background: var(--ink); color: var(--lemon); border-radius: 20px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
#flash p { margin: 6px 0 10px; font-weight: 600; font-size: 13px; }
#flash .btn { width: 100%; }
@media (max-width: 760px) { #flash { right: 80px; top: auto; bottom: calc(150px + var(--safe-b)); width: 200px; } }

/* tabs */
#tabs { position: fixed; z-index: 15; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); display: flex; gap: 4px; padding: 5px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 20px; box-shadow: 0 10px 26px rgba(0,0,0,.28), inset 0 1px 0 #fff; }
#tabs button { border: 0; background: none; cursor: pointer; width: 68px; padding: 6px 2px 5px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative; }
#tabs button b { font-size: 21px; line-height: 1; }
#tabs button span { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; }
#tabs button[aria-selected=true] { background: var(--ink); color: var(--lemon); }
#tabs button .dot { position: absolute; top: 3px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
#tabs button.locked { opacity: .45; }
@media (max-width: 480px) { #tabs { left: 6px; right: 6px; transform: none; justify-content: space-between; } #tabs button { width: auto; flex: 1; } }

/* sheet */
#sheet { position: fixed; z-index: 14; left: 50%; bottom: 0; width: min(560px, 100%); transform: translate(-50%, 105%); max-height: min(68vh, 640px); display: flex; flex-direction: column; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -12px 40px rgba(0,0,0,.35); transition: transform .38s cubic-bezier(.2,.9,.25,1); padding-bottom: calc(84px + var(--safe-b)); }
#sheet.on { transform: translate(-50%, 0); }
@media (min-width: 1000px) {
  #sheet { left: auto; right: 14px; top: calc(80px + var(--safe-t)); bottom: 90px; width: 410px; max-height: none; border-radius: 20px; transform: translateX(110%); padding-bottom: 0; }
  #sheet.on { transform: none; }
  #actions { right: 440px; transition: right .38s; }
  body:not(.sheet-on) #actions { right: 14px; }
}
#sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.15); margin: 8px auto 0; }
#sheet > header { display: flex; align-items: center; justify-content: space-between; padding: 6px 16px 6px 18px; }
#sheet h2 { margin: 0; font-family: var(--round); font-size: 22px; }
#sheet .x { border: 0; background: rgba(0,0,0,.06); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }
#shBody { overflow-y: auto; padding: 4px 16px 18px; touch-action: pan-y; user-select: text; -webkit-overflow-scrolling: touch; }

/* panel content */
.sec { margin: 12px 0 6px; font-family: var(--round); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec small { font-family: Inter; font-weight: 500; color: var(--mute); font-size: 12px; }
.note { color: var(--mute); font-size: 12.5px; margin: 4px 0 8px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin: 8px 0; box-shadow: 0 2px 6px rgba(0,0,0,.04); }
.row { display: flex; align-items: center; gap: 10px; }
.row.sp { justify-content: space-between; }
.grow1 { flex: 1; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--ink); color: var(--lemon); border-color: var(--ink); }
.btn { border: 0; border-radius: 11px; padding: 9px 13px; font-weight: 700; font-size: 13px; cursor: pointer; background: #efe9d9; white-space: nowrap; }
.btn.gold { background: linear-gradient(180deg, #ffe066, #f4b400); box-shadow: 0 2px 0 #c98a00; }
.btn.dark { background: var(--ink); color: var(--lemon); }
.btn.green { background: var(--green); color: #fff; }
.btn.red { background: #fde4e1; color: #a61b1b; }
.btn.ghost { background: none; border: 1px solid var(--line); }
.btn.sm { padding: 6px 9px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.big-num { font-family: var(--round); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.money { font-variant-numeric: tabular-nums; font-weight: 700; }
.pos { color: #186a2f; } .neg { color: #b42318; }
.slider { display: grid; grid-template-columns: 88px 1fr 56px; align-items: center; gap: 8px; margin: 6px 0; }
.slider label { font-weight: 600; font-size: 13px; }
.slider output { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 13px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: none; touch-action: none; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 5px; background: linear-gradient(90deg, #ffe066, #f4b400); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 5px; background: linear-gradient(90deg, #ffe066, #f4b400); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -8px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.meter { height: 8px; border-radius: 5px; background: #eee6d2; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.meters { display: grid; grid-template-columns: 74px 1fr 34px; gap: 6px 8px; align-items: center; font-size: 12.5px; }
.meters b { text-align: right; font-variant-numeric: tabular-nums; }
.price-box { display: flex; align-items: center; gap: 8px; }
.price-box .p { font-family: var(--round); font-size: 30px; font-weight: 700; min-width: 96px; text-align: center; }
.price-box .btn { font-size: 20px; width: 44px; height: 44px; padding: 0; }
.inv { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.inv:first-child { border-top: 0; }
.inv .ic { font-size: 24px; text-align: center; }
.inv .nm { font-weight: 700; }
.inv .sub { color: var(--mute); font-size: 12px; }
.inv .buys { display: flex; gap: 5px; }
.tag { display: inline-block; padding: 2px 7px; border-radius: 20px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #efe9d9; }
.tag.up { background: #fde4e1; color: #a61b1b; } .tag.down { background: #dcf3e2; color: #186a2f; } .tag.gold { background: #ffe9a3; } .tag.dark { background: var(--ink); color: var(--lemon); }
.staff { display: grid; grid-template-columns: 44px 1fr; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #fff3c4; border: 2px solid #f4b400; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; font-size: 11px; color: var(--mute); }
.stats3 .meter { height: 5px; margin-top: 2px; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
select { font: inherit; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.tiers { display: grid; gap: 6px; }
.tier { display: grid; grid-template-columns: 26px 1fr; gap: 8px; font-size: 12.5px; padding: 8px; border-radius: 10px; background: #faf6ea; }
.tier.on { background: #e9f7ec; }
.tier b { font-family: var(--round); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13px; }
.kv span:nth-child(2n) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.kv .tot { border-top: 1px solid var(--line); padding-top: 5px; font-weight: 800 !important; }
.chart { width: 100%; height: 130px; display: block; }
.news { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.news li { padding: 7px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 48px 1fr; gap: 6px; }
.news li:first-child { border-top: 0; }
.news li span { color: var(--mute); }
.news li.event { color: #4a2b6b; } .news li.era { color: #8a5a00; font-weight: 700; }
.lockbox { text-align: center; padding: 20px 10px; color: var(--mute); }
.lockbox .big { font-size: 44px; }
.map { width: 100%; height: auto; display: block; border-radius: 12px; background: radial-gradient(circle at 50% 40%, #14365c, #0b1d33); }
.rival { display: grid; grid-template-columns: 1fr auto; gap: 4px; }
.state { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 20px; }
.state.Scouting { background: #e5eefc; color: #1f4f8f; } .state.Infiltrating { background: #fff0d1; color: #8a5a00; } .state.PriceWar { background: #fde4e1; color: #a61b1b; } .state.Retrenching { background: #dcf3e2; color: #186a2f; } .state.Acquired { background: var(--ink); color: var(--lemon); }
.hint { background: #fff8d6; border: 1px dashed #f4b400; border-radius: 12px; padding: 8px 10px; font-size: 12.5px; margin: 8px 0; }

/* modal */
#modal { position: fixed; inset: 0; z-index: 40; background: rgba(10, 8, 4, .55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
#modal .card { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: 22px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: tin .45s cubic-bezier(.2,.9,.3,1.2); user-select: text; touch-action: pan-y; }
#modal h2 { font-family: var(--round); margin: 0 0 4px; font-size: 26px; }
#modal .lead { color: var(--mute); margin: 0 0 12px; }
#modal .hero { font-size: 54px; text-align: center; margin: -4px 0 4px; }
#modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; flex-wrap: wrap; }
#modal input[type=text] { width: 100%; font: inherit; font-size: 18px; letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); }
#modal .code { font-family: ui-monospace, Menlo, monospace; font-size: 24px; letter-spacing: .12em; text-align: center; background: #fff3c4; border-radius: 12px; padding: 12px; font-weight: 700; user-select: all; }
.wb-earn { text-align: center; font-family: var(--round); font-size: 42px; font-weight: 700; color: #186a2f; margin: 6px 0; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: 0; }
.set-row small { display: block; color: var(--mute); font-size: 12px; }
.toggle { appearance: none; width: 46px; height: 28px; border-radius: 20px; background: #d9d2c0; position: relative; cursor: pointer; transition: .2s; flex: none; }
.toggle::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: .2s; }
.toggle:checked { background: var(--green); }
.toggle:checked::after { left: 21px; }

/* end of day report */
#report { position: fixed; z-index: 16; left: 12px; bottom: calc(96px + var(--safe-b)); width: min(330px, calc(100vw - 24px)); background: var(--paper); border-radius: 18px; padding: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.35); animation: tin .45s; }
#report h3 { margin: 0 0 6px; font-family: var(--round); font-size: 18px; display: flex; justify-content: space-between; }
#report .net { font-family: var(--round); font-size: 30px; font-weight: 700; }
#report .plan { margin-top: 8px; font-size: 12.5px; background: #fff8d6; border-radius: 10px; padding: 8px 10px; }
#report .plan ol { margin: 4px 0 0; padding-left: 18px; }
#report .row { margin-top: 10px; justify-content: flex-end; }
body.sheet-on #report { display: none; }
@media (max-width: 760px) { #hustle .tube { height: 110px; } .act { width: 54px; height: 54px; } .act b { font-size: 19px; } #actions { top: auto; bottom: calc(100px + var(--safe-b)); transform: none; } #hustle { top: auto; bottom: calc(110px + var(--safe-b)); transform: none; } #tapHint { bottom: calc(86px + var(--safe-b)); } }

.news li.goal { color: #8a5a00; font-weight: 600; }
@media (max-width: 760px) { body.sheet-on #flash { top: calc(126px + var(--safe-t)); bottom: auto; right: 12px; left: 12px; width: auto; } }
.cash small .ico { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
.tier .gem { width: 24px; height: 24px; display: block; }
.tier .gem.off { filter: grayscale(1) opacity(.35); }

/* menu tab */
.menu-it { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.menu-it .mi { font-size: 28px; line-height: 40px; text-align: center; background: #faf6ea; border-radius: 12px; filter: grayscale(.7); opacity: .75; }
.menu-it.on .mi { filter: none; opacity: 1; background: #fff3c4; }
.menu-it .lvl { font-size: 10px; letter-spacing: 2px; color: var(--lemon2, #e0a800); }

/* hustle boost */
.boosts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.boost-b { display: flex; flex-direction: column; align-items: center; padding: 12px 6px; }
.boost-b b { font-size: 26px; line-height: 1; font-family: Fredoka, Inter, sans-serif; }
.boost-b small { font-size: 12px; opacity: .9; margin-top: 4px; }
#hustle { cursor: pointer; }
#hustle.boost .tube i { background: linear-gradient(#fff3a0, #ff9f1c, #ff3d3d) !important; animation: boostPulse .6s ease-in-out infinite alternate; }
#hustle.boost .mult { color: #ffd23f; text-shadow: 0 0 10px rgba(255,160,30,.9); }
@keyframes boostPulse { from { filter: brightness(1); } to { filter: brightness(1.5); } }
#bBoost.on { background: linear-gradient(#ffe066, #ff9f1c); }
#bBoost.on small { font-weight: 800; }

/* Empire HQ */
.hqfloors { display: grid; gap: 5px; margin-top: 8px; }
.hqfloor { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 10px; background: #faf6ea; font-size: 13px; }
.hqfloor .fl { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--lemon); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.hqfloor .stars { color: #e0a800; letter-spacing: 1px; font-size: 11px; }
.hqbuild { padding: 8px 0; border-top: 1px solid var(--line); gap: 10px; }
.hqbuild:first-child { border-top: 0; }

/* Design mode */
body.designing #tabs, body.designing #actions, body.designing #tapHint, body.designing #hustle { display: none !important; }
#design { position: fixed; z-index: 16; left: 50%; transform: translateX(-50%); bottom: calc(8px + var(--safe-b)); width: min(620px, calc(100% - 16px)); background: var(--paper); border-radius: 20px; box-shadow: 0 12px 40px rgba(0,0,0,.35); padding: 10px 12px 12px; animation: sheetIn .45s cubic-bezier(.34,1.56,.64,1); }
#design .dz-top { display: flex; align-items: center; gap: 8px; }
#design .dz-top > b { font-family: var(--round); font-size: 17px; white-space: nowrap; }
#design .dz-where { display: flex; gap: 5px; overflow-x: auto; flex: 1; scrollbar-width: none; }
#design .dz-where .chip { padding: 5px 9px; white-space: nowrap; }
#design .dz-info { font-size: 12.5px; margin: 8px 2px 6px; line-height: 1.35; }
#design .dz-cats { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin-bottom: 6px; }
#design .dz-cats .chip { white-space: nowrap; padding: 5px 10px; }
#design .dz-items { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
#design .dz-item { flex: 0 0 auto; min-width: 118px; text-align: left; border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
#design .dz-item b { font-size: 13px; }
#design .dz-item small { font-size: 11.5px; opacity: .75; }
#design .dz-item.on { border-color: #2a9df4; background: #eaf5ff; box-shadow: 0 0 0 3px rgba(42,157,244,.2); }
#design .dz-item:disabled { opacity: .45; }
#design .dz-sel { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 7px 9px; border-radius: 12px; background: #fff6d6; margin-bottom: 6px; font-size: 13px; }
#design .dz-sel span { flex: 1; }
@keyframes sheetIn { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
/* springier sheet */
#sheet { transition: transform .5s cubic-bezier(.34,1.4,.64,1); }
.float.cash { color: #1a7f37; font-weight: 800; font-size: 18px; text-shadow: 0 1px 0 #fff, 0 0 8px rgba(255,255,255,.9); }

/* story chapters */
.chapter .ch-act { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #b8860b; text-align: center; }
.chapter .ch-art { font-size: 44px; text-align: center; margin: 6px 0 2px; letter-spacing: 6px; }
.chapter h2 { text-align: center; margin: 4px 0 10px; }
.chapter p { font-size: 14.5px; line-height: 1.55; margin: 0 0 10px; }
.chapter i { color: #5a4630; }
.chapter + .actions { position: sticky; bottom: -20px; background: linear-gradient(transparent, var(--paper) 30%); padding: 18px 0 4px; margin: 0; }

/* Main Street */
#blockNav { position: fixed; z-index: 12; left: 50%; transform: translateX(-50%); bottom: calc(86px + var(--safe-b)); display: flex; align-items: center; gap: 8px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 30px; padding: 5px 6px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
#blockNav span { font-weight: 800; font-size: 12px; min-width: 120px; max-width: 46vw; text-align: center; line-height: 1.2; }
#blockNav .btn { width: 38px; height: 38px; border-radius: 50%; padding: 0; flex: none; }
#blockNav #bnUp, #blockNav #bnDown, #blockNav #bnSky { background: var(--ink); color: var(--lemon); }
body.sheet-on #blockNav { display: none; }
.lot { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.lot:first-child { border-top: 0; }
.lot .li { font-size: 26px; text-align: center; }
.lot.pending { background: #fff6d6; margin: 0 -10px; padding: 9px 10px; border-radius: 12px; }
.lot.empty { grid-template-columns: 38px 1fr; }
.lot .chip:disabled { opacity: .45; }
.hqtip { font-size: 12px; color: var(--mute); margin: 8px 2px; }

/* the neighborhood map (Grow tab) */
.hood { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.hood .hst { grid-column: 1 / -1; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7a7262; text-align: center; padding: 2px 0; }
.hood .hst.main { background: #3b3b3b; color: #f1d36a; border-radius: 6px; padding: 4px 0; margin: 2px 0; }
.hc { position: relative; aspect-ratio: 1; border: 0; border-radius: 9px; background: #e9e4d6; font-size: 19px; display: grid; place-items: center; cursor: pointer; padding: 0; transition: transform .12s; }
.hc:active { transform: scale(.94); }
.hc i { position: absolute; right: 2px; bottom: 1px; font-style: normal; font-size: 9px; font-weight: 800; color: #1d1a14; background: #ffd23f; border-radius: 6px; padding: 0 3px; }
.hc.home { background: #ffd23f; box-shadow: inset 0 0 0 2px #1d1a14; }
.hc.mine { background: #bfe3c9; box-shadow: inset 0 0 0 2px #2d6a4f; }
.hc.apts { background: #f5d9b8; box-shadow: inset 0 0 0 2px #9c6644; }
.hc.pend { background: #ffe1a8; box-shadow: inset 0 0 0 2px #d62828; }
.hc.buy { background: #fffdf6; box-shadow: inset 0 0 0 2px #e0a800; }
.hc.far { opacity: .5; }
.hc.sel { outline: 3px solid #2a9df4; outline-offset: 1px; }
.hkey { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11px; color: #6b6458; margin-top: 8px; align-items: center; }
.hkey .k { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 3px; vertical-align: -1px; }
.hkey .k.mine { background: #bfe3c9; } .hkey .k.apts { background: #f5d9b8; } .hkey .k.buy { background: #fffdf6; box-shadow: inset 0 0 0 1.5px #e0a800; } .hkey .k.far { background: #e9e4d6; }
.card.parcel .btns { margin-top: 8px; }
.hqfloor.add { background: #f2f7ff; grid-template-columns: 28px 1fr; }
.hqfloor.add > span:last-child:empty { display: none; }
.hqfloor.add .chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hqfloor.add .chip:disabled { opacity: .45; }

/* Marcus and Nia talking */
.toast.beat { display: flex; gap: 10px; align-items: center; text-align: left; background: #fffdf6; color: #1d1a14; border: 2px solid #ffd23f; max-width: min(420px, 92vw); }
.toast.beat.marcus { border-color: #2a9d8f; }
.toast.beat .face { width: 46px; height: 46px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #ffd23f, 0 3px 8px rgba(0,0,0,.2); }
.toast.beat.marcus .face { box-shadow: 0 0 0 2px #2a9d8f, 0 3px 8px rgba(0,0,0,.2); }
.toast.beat b { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #9c6644; }
.toast.beat.marcus b { color: #2a9d8f; }

.card.staff.local { box-shadow: inset 0 0 0 2px #2d6a4f; }

/* the bank */
.brokecard { border: 2px solid #e0a800; background: #fff8dc; }
.card.lender .btns { margin-top: 8px; flex-wrap: wrap; }
.loan { padding: 8px 0; border-top: 1px solid var(--line); }
.loan:first-child { border-top: 0; }
.loan .btns { margin-top: 6px; }
.credit { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #d62828, #e0a800 45%, #2d6a4f); position: relative; margin: 10px 0 6px; opacity: .9; }
.credit i { position: absolute; top: -4px; bottom: -4px; width: 0; border-right: 3px solid #1d1a14; left: 0; }

/* desk, offers, decisions, game over */
#actions .act { position: relative; }
#actions .act .cnt { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: #d62828; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
#actions .act .cnt:empty { display: none; }
#bDesk.ready { animation: deskPulse 1.4s ease-in-out infinite; }
@keyframes deskPulse { 50% { box-shadow: 0 0 0 6px rgba(214,40,40,.25); } }
.card.desk .kicker, .card .kicker { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b5835a; }
.card.desk h2 { margin: 4px 0 6px; }
.choices { display: grid; gap: 8px; margin: 12px 0 6px; }
.choice { text-align: left; border: 2px solid var(--line); background: #fffdf6; border-radius: 14px; padding: 12px 14px; cursor: pointer; font: inherit; transition: border-color .15s, transform .1s; }
.choice:hover { border-color: #e0a800; }
.choice:active { transform: scale(.98); }
.choice b { display: block; font-size: 15px; }
.choice small { color: #6b6458; font-size: 12.5px; }
.card.bid p { margin: 6px 0; }
.card.over { text-align: center; }
.card.over .kv { text-align: left; }
.premium { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.premium .meter { height: 6px; border-radius: 3px; background: #efe7d2; margin-top: 6px; overflow: hidden; }
.premium .meter i { display: block; height: 100%; background: linear-gradient(90deg, #f4c430, #2a9d8f); }
.btn.bulk { position: relative; }
.btn.bulk i { position: absolute; top: -7px; right: -4px; font-style: normal; font-size: 9.5px; font-weight: 800; background: #2d6a4f; color: #fff; border-radius: 6px; padding: 1px 4px; }
.hero-logo { display: block; width: min(62%, 240px); height: auto; margin: -2px auto 6px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.18)); }

/* Marcus & Nia's advice */
.advice { position: fixed; z-index: 35; left: calc(12px + var(--safe-l, 0px)); bottom: calc(96px + var(--safe-b)); width: min(360px, calc(100vw - 24px)); display: flex; gap: 10px; align-items: flex-start; background: #fffdf6; color: #1d1a14; border-radius: 18px; padding: 12px 12px 12px 10px; box-shadow: 0 14px 34px rgba(0,0,0,.32); border: 2px solid #ffd23f; animation: advIn .45s cubic-bezier(.2,1.4,.4,1); }
.advice.marcus { border-color: #2a9d8f; }
.advice.out { animation: advOut .35s ease forwards; }
@keyframes advIn { from { transform: translateY(30px) scale(.9); opacity: 0; } }
@keyframes advOut { to { transform: translateY(20px); opacity: 0; } }
.advice .aface { width: 58px; height: 58px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px #ffd23f; animation: advBob 2.4s ease-in-out infinite; }
.advice.marcus .aface { box-shadow: 0 0 0 3px #2a9d8f; }
@keyframes advBob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.advice .abody b { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9c6644; }
.advice.marcus .abody b { color: #2a9d8f; }
.advice .abody p { margin: 2px 0 8px; font-size: 13.5px; line-height: 1.35; font-weight: 600; }
.advice .abtns { display: flex; gap: 6px; flex-wrap: wrap; }
body.sheet-on .advice { bottom: auto; top: calc(130px + var(--safe-t)); }
.ch-pair { display: flex; justify-content: center; margin: 4px 0 -4px; }
.ch-pair .cface { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(0,0,0,.2); }
.ch-pair .cface + .cface { margin-left: -12px; }
