@font-face{font-family:'Press Start 2P';font-weight:400;font-display:swap;src:url(/fonts/press-start-2p-400.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-weight:400;font-display:swap;src:url(/fonts/jetbrains-mono-400.woff2) format('woff2');}
@font-face{font-family:'JetBrains Mono';font-weight:600;font-display:swap;src:url(/fonts/jetbrains-mono-600.woff2) format('woff2');}
:root {
  --bg: #050805; --surface: #0c140d; --border: #1d3a20; --g: #39ff6a; --g2: #1fae45; --g3: #0f4d22;
  --text: #e6ffe9; --muted: #8fbf97; --red: #ff4d4d; --gold: #e8d86a;
  --px: 'Press Start 2P', monospace; --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --bar: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 14px; line-height: 1.5; min-height: 100vh; padding-bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 24px); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 2000; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 4px); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px dashed var(--g); outline-offset: 3px; }
::selection { background: var(--g); color: var(--bg); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 14px; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: square; stroke-linejoin: miter; flex: none; }

/* buttons */
.btn { font-family: var(--px); font-size: 10px; text-transform: uppercase; background: var(--surface); color: var(--g); border: 2px solid var(--border); padding: 0 14px; min-height: 44px; box-shadow: 3px 3px 0 var(--g3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; transition: transform .1s steps(2), box-shadow .1s steps(2); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--g3); }
.btn.primary { background: var(--g); color: var(--bg); border-color: var(--g); }
.btn.danger { color: var(--red); border-color: #5a1d1d; box-shadow: 3px 3px 0 #3a1010; }
.btn:disabled { opacity: .4; }
.btn.small { min-height: 36px; font-size: 9px; padding: 0 10px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--border); padding-top: env(safe-area-inset-top); }
.topbar .wrap { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.wordmark { font-family: var(--px); font-size: 11px; line-height: 1.4; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wordmark b { color: var(--g); font-weight: 400; }
.sbar { padding: 0 0 12px; }
.sbar .wrap { display: flex; gap: 8px; }
.input { font-family: var(--mono); font-size: 16px; background: var(--bg); color: var(--text); border: 2px solid var(--border); padding: 0 12px; min-height: 44px; width: 100%; border-radius: 0; }
.input:focus { border-color: var(--g); outline: none; }
.input::placeholder { color: #4d6b53; }

/* hero */
.hero { border-bottom: 2px solid var(--border); background: linear-gradient(to bottom, rgba(57,255,106,.06), transparent); }
.hero .wrap { padding-top: 18px; padding-bottom: 18px; }
.headline { font-family: var(--px); font-size: clamp(14px, 4.4vw, 26px); line-height: 1.4; color: var(--g); text-shadow: 3px 3px 0 var(--g3); margin: 0 0 8px; }
.tagline { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 2px solid var(--border); padding: 8px 6px; text-align: center; }
.stat b { display: block; font-family: var(--px); font-size: 14px; color: var(--g); font-weight: 400; }
.stat small { font-family: var(--px); font-size: 7px; color: var(--muted); letter-spacing: .04em; }

/* tabs + chips */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 12px; }
.tab { font-family: var(--px); font-size: 10px; min-height: 48px; background: var(--surface); color: var(--muted); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 4px; }
.tab small { font-size: 8px; opacity: .8; }
.tab[aria-pressed='true'] { background: var(--g); color: var(--bg); border-color: var(--g); box-shadow: 3px 3px 0 var(--g3); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; scroll-snap-align: start; font-family: var(--px); font-size: 8px; min-height: 36px; padding: 0 10px; background: var(--bg); color: var(--muted); border: 2px solid var(--border); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip small { font-size: 8px; color: var(--g2); }
.chip[aria-pressed='true'] { color: var(--g); border-color: var(--g); }
.chip[aria-pressed='true'] small { color: var(--g); }

/* list header */
.lhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 12px; min-height: 36px; }
.ltitle { font-family: var(--px); font-size: 10px; color: var(--muted); margin: 0; line-height: 1.5; }
.ltitle b { color: var(--g); font-weight: 400; }
.day { font-family: var(--px); font-size: 9px; color: var(--g2); margin: 20px 0 10px; padding-bottom: 6px; border-bottom: 2px dashed var(--border); }

/* rows */
.list { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
.row { position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--border); padding: 8px 8px 8px 10px; min-height: 64px; box-shadow: 3px 3px 0 var(--g3); }
.row.opened .main { opacity: .6; }
.row.picked { border-color: var(--g); background: #0e2412; }
.tick { display: none; flex: none; width: 24px; height: 24px; border: 2px solid var(--border); background: var(--bg); place-items: center; color: var(--bg); }
.selecting .tick { display: grid; }
.row.picked .tick { background: var(--g); border-color: var(--g); }
.main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; min-height: 48px; }
.fav { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--c, var(--border)); font-family: var(--px); font-size: 12px; color: var(--c, var(--g)); overflow: hidden; }
.fav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ln { min-width: 0; }
.ln b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-new { display: inline-block; font-family: var(--px); font-size: 7px; background: var(--g); color: var(--bg); padding: 2px 4px; margin-left: 6px; vertical-align: 2px; }
.star { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--border); color: var(--muted); }
.star[aria-pressed='true'] { color: var(--gold); border-color: #b7a43a; }
.star[aria-pressed='true'] svg { fill: currentColor; }
.open { flex: none; min-width: 64px; }
.selecting .open { display: none; }

.empty { text-align: center; padding: 48px 10px; font-family: var(--px); font-size: 10px; line-height: 1.8; color: var(--muted); display: grid; gap: 18px; justify-items: center; }
.notice { margin: 28px 0 0; padding: 14px; border: 2px solid var(--border); background: var(--surface); font-size: 12px; color: var(--muted); }
.notice b { color: var(--text); }
.notice a { color: var(--g); }
.foot { text-align: center; color: var(--muted); font-family: var(--px); font-size: 8px; padding: 22px 10px 10px; }

/* bottom bars */
.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg); border-top: 2px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.btabs { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--bar); }
.btab { background: none; border: 0; border-right: 2px solid var(--border); font-family: var(--px); font-size: 8px; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.btab:last-child { border-right: 0; }
.btab[aria-pressed='true'] { color: var(--g); background: #0b1a0d; box-shadow: inset 0 3px 0 var(--g); }
.selbar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 2px solid var(--border); background: var(--surface); }
.selbar .info { font-family: var(--px); font-size: 9px; color: var(--g); flex: 1; line-height: 1.5; }
.selbar select { font-family: var(--px); font-size: 9px; background: var(--bg); color: var(--text); border: 2px solid var(--border); min-height: 44px; padding: 0 6px; border-radius: 0; }
.selbar .btn { flex: 1.2; }

#toasts { position: fixed; left: 50%; bottom: calc(var(--bar) + env(safe-area-inset-bottom) + 90px); transform: translateX(-50%); z-index: 1500; display: grid; gap: 8px; width: min(92vw, 520px); pointer-events: none; }
.toast { font-family: var(--px); font-size: 9px; line-height: 1.7; background: var(--surface); border: 2px solid var(--g); color: var(--g); padding: 10px 12px; box-shadow: 3px 3px 0 var(--g3); }
.toast.warn { border-color: #b7a43a; color: var(--gold); box-shadow: 3px 3px 0 #3a3410; }

/* desktop */
@media (min-width: 761px) {
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .wordmark { font-size: 14px; }
  .btabs { max-width: 560px; margin: 0 auto; border-left: 2px solid var(--border); border-right: 2px solid var(--border); }
  .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1000px) { .list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .hero .wrap { padding-top: 12px; padding-bottom: 12px; } .headline { font-size: 13px; margin-bottom: 4px; } .headline br { display: none; } .tagline { margin-bottom: 10px; font-size: 12px; } .tabs { margin-top: 12px; } }
@media (max-width: 360px) { .wordmark { font-size: 9px; } .open { min-width: 54px; padding: 0 8px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.foot a{color:var(--g);}

/* spinning 3D dollar sign: stacked glyph layers rotated on the Y axis */
.logo3d { width: 48px; height: 48px; flex: none; perspective: 260px; display: grid; place-items: center; filter: drop-shadow(0 0 8px rgba(57,255,106,.45)); }
.spin { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: spin 3.2s linear infinite; }
.spin span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--px); font-size: 38px; line-height: 1; padding-left: 4px; color: var(--g3); transform: translateZ(var(--z)); }
.spin span:nth-child(n+3):nth-child(-n+7) { color: var(--g2); }
.spin span.face { color: var(--g); }
@keyframes spin { to { transform: rotateY(360deg); } }

/* select all / queue */
.lactions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.badge-q { display: inline-block; font-family: var(--px); font-size: 7px; border: 1px solid var(--g); color: var(--g); padding: 1px 4px; margin-left: 6px; vertical-align: 2px; }
.btab { position: relative; }
.bcount { position: absolute; top: 5px; right: 8px; font-family: var(--px); font-size: 7px; color: var(--bg); background: var(--g); padding: 2px 4px; min-width: 16px; text-align: center; }
.bcount:empty { display: none; }
.qtools { display: grid; gap: 10px; margin: 0 0 16px; }
.qtools .qrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.qtools .qrow .btn { flex: 1; }
.qtools .qrow .btn.small { flex: none; }
.qtools select { flex: 1; font-family: var(--px); font-size: 9px; background: var(--bg); color: var(--text); border: 2px solid var(--border); min-height: 44px; padding: 0 8px; border-radius: 0; }
.qleft { font-family: var(--px); font-size: 9px; color: var(--g); text-align: right; line-height: 1.5; }
.btn.big { min-height: 56px; font-size: 12px; width: 100%; }
.qhint { margin: 0; font-size: 12px; color: var(--muted); }
.panel.qtools { background: var(--surface); border: 2px solid var(--border); box-shadow: 3px 3px 0 var(--g3); padding: 14px; }
.selbar .btn { flex: none; }
@media (max-width: 760px) { .tabs { display: none; } .lhead { flex-wrap: wrap; } .lactions { width: 100%; justify-content: flex-start; } }
