/* =========================================================
   LOST & FOUND: retro pixel claims-desk interface
   ========================================================= */
@font-face { font-family: "Jersey 15"; src: url("/assets/fonts/jersey-15.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VT323"; src: url("/assets/fonts/vt323.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #061426;
  --bg-2: #081b33;
  --panel: #0B2745;
  --panel-2: #123B67;
  --panel-3: #1a4c80;
  --panel-dk: #071a31;
  --edge: #020912;
  --gold: #F5BE32;
  --gold-hi: #FFD85A;
  --gold-dk: #9a6a12;
  --cream: #F2E4BC;
  --cream-2: #e2cf98;
  --cream-ink: #2b1d08;
  --red: #C83D32;
  --ok: #5DD890;
  --bad: #EB5A5A;
  --text: #F4F1E8;
  --muted: #9fb3cf;
  --blue-hi: #7fb6ff;

  --f-d: "Jersey 15", "Arial Narrow", sans-serif;
  --f-b: "VT323", "Courier New", monospace;
  --top-h: 70px;
  --sb-h: 34px;
  --px: 3px;               /* border "pixel" */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(18,59,103,.55), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.012) 0 2px, transparent 2px 4px),
    var(--bg);
  color: var(--text);
  font: 20px/1.2 var(--f-b);
  padding-bottom: var(--sb-h);
  -webkit-font-smoothing: none; -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
img { image-rendering: pixelated; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 500; background: var(--gold); color: #000; padding: 6px 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px dashed var(--gold-hi); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }
* { scrollbar-color: var(--panel-3) var(--panel-dk); scrollbar-width: thin; }

.up { color: var(--ok); } .dn { color: var(--bad); } .o { color: var(--gold); font-weight: 400; } .g { color: var(--ok); }
.muted { color: var(--muted); } .small { font-size: 17px; }
.sim-tag { display: inline-block; margin-left: 10px; padding: 0 6px; font: 15px/20px var(--f-b); color: var(--muted); border: 1px dashed var(--panel-3); vertical-align: middle; letter-spacing: .03em; text-shadow: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 4px 14px;
  font: 400 20px/1 var(--f-d); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  color: var(--cream); background: var(--panel-2); cursor: pointer;
  border: 2px solid var(--edge);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.35), 0 0 0 1px rgba(245,190,50,.25);
  transition: transform .05s, background .12s, box-shadow .12s;
}
.btn img { width: 22px; height: 22px; flex: none; }
.btn:hover { background: var(--panel-3); color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.35), 0 0 0 1px var(--gold); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 3px 0 rgba(0,0,0,.35), 0 0 0 1px var(--gold); }
.btn.is-on { background: var(--gold); color: #1a1204; box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 var(--gold-dk), 0 0 0 1px var(--edge); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-gold { background: var(--gold); color: #1a1204; box-shadow: inset 0 2px 0 var(--gold-hi), inset 0 -3px 0 var(--gold-dk), 0 0 0 1px var(--edge), 0 3px 0 rgba(0,0,0,.4); }
.btn-gold:hover { background: var(--gold-hi); color: #1a1204; box-shadow: inset 0 2px 0 #fff3b8, inset 0 -3px 0 var(--gold-dk), 0 0 0 1px var(--edge), 0 3px 0 rgba(0,0,0,.4); }
.btn-red { background: var(--red); color: #fff; box-shadow: inset 0 2px 0 #e86a5f, inset 0 -3px 0 #7b1c15, 0 0 0 1px var(--edge); }
.btn-red:hover { background: #d9493d; }
.btn-block { width: 100%; min-height: 44px; font-size: 22px; }
.btn-lg { min-height: 50px; padding: 6px 22px; font-size: 24px; }
.btn-sm { min-height: 30px; padding: 3px 10px; font-size: 18px; }
.linkish { background: none; border: 0; padding: 0; color: #1b4f9c; text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------- panels ---------- */
.panel {
  position: relative; min-width: 0;
  padding: 14px;
  background: linear-gradient(180deg, var(--panel) 0%, #0a2340 100%);
  border: var(--px) solid var(--edge);
  box-shadow: inset 0 0 0 2px var(--gold-dk), inset 0 0 0 3px rgba(255,216,90,.25), 0 4px 0 rgba(0,0,0,.45);
}
.panel::before, .panel::after {  /* gold corner rivets */
  content: ""; position: absolute; width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 0 2px var(--edge);
  top: 5px; left: 5px;
}
.panel::after { left: auto; right: 5px; }
.panel-t {
  font: 400 25px/1.1 var(--f-d); color: var(--gold); text-align: center; margin: 2px 0 12px;
  text-shadow: 2px 2px 0 var(--edge); letter-spacing: .02em;
}
.panel-t-left { text-align: left; margin: 0; }
.paper {
  position: relative; min-width: 0; padding: 16px;
  background:
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(154,106,18,.16) 25px 26px),
    var(--cream);
  color: var(--cream-ink);
  border: var(--px) solid var(--edge);
  box-shadow: inset 0 0 0 2px var(--cream-2), 0 4px 0 rgba(0,0,0,.45);
}
.paper h2 { font: 400 26px/1.1 var(--f-d); color: var(--red); margin-bottom: 8px; }
.kv { display: grid; gap: 2px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 400; color: var(--text); text-align: right; }
.kv-box { padding: 8px 10px; background: var(--panel-dk); border: 2px solid var(--edge); box-shadow: inset 0 0 0 1px rgba(127,182,255,.12); }
.field {
  width: 100%; padding: 7px 10px; font: 20px/1.1 var(--f-b);
  color: var(--text); background: var(--panel-dk);
  border: 2px solid var(--edge); box-shadow: inset 0 2px 0 rgba(0,0,0,.4), 0 0 0 1px rgba(245,190,50,.2);
  outline: none; border-radius: 0;
}
.field::placeholder { color: #6b82a3; }
.field:focus { box-shadow: inset 0 2px 0 rgba(0,0,0,.4), 0 0 0 2px var(--gold); }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
.tab b { font-weight: 400; font-family: var(--f-b); font-size: 16px; opacity: .8; margin-left: 2px; }
.tabs-2 .tab { flex: 1 1 0; }
.tabs-4 { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }

/* ---------- item slot (inventory square) ---------- */
.slot {
  --s: 64px;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--s); height: var(--s); padding: calc(var(--s) * .06);
  background: radial-gradient(circle at 50% 42%, #1c4f86 0%, #0d2b4d 62%, #081d36 100%);
  border: 2px solid var(--edge);
  box-shadow: inset 0 0 0 1px rgba(245,190,50,.35), inset 0 -4px 0 rgba(0,0,0,.25);
}
.slot img, .slot svg { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.slot-xs { --s: 34px; padding: 1px; } .slot-xs img { image-rendering: auto; }
.slot-sm { --s: 48px; } .slot-sm img { image-rendering: auto; }
.slot-md { --s: 72px; }
.slot-lg { --s: 104px; }
.slot-xl { --s: 136px; }

/* status stamps */
.stamp {
  display: inline-block; padding: 2px 8px 1px; font: 400 17px/1.2 var(--f-d); letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid currentColor; transform: rotate(-4deg); white-space: nowrap; background: rgba(6,20,38,.55);
}
.stamp-new { color: var(--ok); }
.stamp-trending { color: var(--gold-hi); }
.stamp-graduating { color: var(--blue-hi); }
.stamp-graduated { color: #ff7a6e; }

/* bonding bar */
.bond { position: relative; display: block; height: 10px; background: var(--panel-dk); border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(245,190,50,.2); }
.bond i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, var(--gold-hi) 6px 8px); }
.bond.is-done i { background: repeating-linear-gradient(90deg, var(--ok) 0 6px, #8ff0b6 6px 8px); }
.bond em { position: absolute; right: 0; top: -20px; font: 15px/1 var(--f-b); font-style: normal; color: var(--muted); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 60; height: var(--top-h);
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: linear-gradient(180deg, #0c2a4b, #071b34);
  border-bottom: var(--px) solid var(--edge);
  box-shadow: inset 0 -3px 0 var(--gold-dk), inset 0 -4px 0 rgba(255,216,90,.3), 0 4px 0 rgba(0,0,0,.35);
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; image-rendering: pixelated; }
.brand-name { white-space: nowrap; font: 400 30px/1 var(--f-d); color: var(--gold); letter-spacing: .03em; text-shadow: 2px 2px 0 var(--edge), 0 0 12px rgba(245,190,50,.25); }
.brand-tk { font: 17px/1 var(--f-b); color: var(--cream); background: var(--red); padding: 2px 6px 1px; border: 2px solid var(--edge); transform: translateY(-8px) rotate(-6deg); }
.top-nav { display: flex; gap: 6px; }
.btn-nav img { width: 22px; height: 22px; }
.btn-icon { padding: 4px 8px; }
.search { position: relative; flex: 1 1 200px; min-width: 170px; max-width: 380px; margin: 0 auto; }
.search input { width: 100%; padding: 8px 56px 8px 38px; font: 20px/1 var(--f-b); color: var(--text); background: var(--panel-dk); border: 2px solid var(--edge); box-shadow: 0 0 0 1px rgba(245,190,50,.3); outline: none; }
.search input:focus { box-shadow: 0 0 0 2px var(--gold); }
.search input::placeholder { color: #6b82a3; }
.search-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); }
.search kbd { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); font: 15px var(--f-b); padding: 1px 6px; border: 1px solid var(--panel-3); color: var(--muted); background: var(--panel); }
.search-drop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; max-height: 70vh; overflow: auto; padding: 6px; background: var(--panel); border: var(--px) solid var(--edge); box-shadow: inset 0 0 0 2px var(--gold-dk), 0 10px 30px rgba(0,0,0,.6); }
.sd-item { display: flex; align-items: center; gap: 10px; padding: 5px 6px; text-decoration: none; }
.sd-item:hover, .sd-item.is-active { background: var(--panel-2); }
.sd-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-n b { font-weight: 400; color: var(--gold); } .sd-n i { font-style: normal; color: var(--muted); }
.sd-v { color: var(--muted); }
.sd-empty { padding: 10px; color: var(--muted); }
.top-right { display: flex; gap: 6px; flex: none; }
.search-mobile { display: none; }

/* ---------- layout ---------- */
.view { max-width: 1440px; margin: 0 auto; padding: 18px 18px 40px; outline: none; }
.col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.col > * { min-width: 0; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 380px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end;
  background: url("/assets/scenes/counter.webp") center 70% / cover no-repeat, var(--panel);
  border: var(--px) solid var(--edge);
  box-shadow: inset 0 0 0 3px var(--gold-dk), inset 0 0 0 4px rgba(255,216,90,.3), 0 4px 0 rgba(0,0,0,.5);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,38,.95) 0%, rgba(6,20,38,.82) 42%, rgba(6,20,38,.25) 75%, rgba(6,20,38,.1) 100%), linear-gradient(0deg, rgba(6,20,38,.6), transparent 40%); }
.hero-copy { position: relative; z-index: 2; padding: 26px 30px 26px; }
.hero-wordmark { display: block; width: min(440px, 100%); height: auto; image-rendering: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,.5)); }
.hero h1 { margin-top: 10px; font: 400 clamp(40px, 4.2vw, 62px)/1 var(--f-d); color: var(--text); text-shadow: 3px 3px 0 var(--edge); }
.hero-sub { margin-top: 10px; max-width: 34em; font-size: 22px; color: var(--cream); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.flag-ticket {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 8px 14px 8px 8px; max-width: 100%;
  text-decoration: none; color: var(--cream-ink);
  background: var(--cream); border: 2px solid var(--edge); box-shadow: inset 0 0 0 2px var(--cream-2), 0 3px 0 rgba(0,0,0,.4);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.flag-ticket:hover { background: #fff3d2; }
.flag-ticket b { display: block; font: 400 22px/1 var(--f-d); color: var(--red); }
.flag-ticket > span:nth-child(2) { font-size: 18px; }
.ft-v { display: grid; text-align: right; font-size: 19px; margin-left: 8px; }
.flag-ticket .up { color: #147a3f; } .flag-ticket .dn { color: #a3261d; }
.hero-clerk { position: relative; z-index: 2; align-self: end; justify-self: end; display: flex; align-items: flex-end; padding-right: 10px; }
.hero-clerk img { width: min(300px, 100%); height: auto; image-rendering: auto; filter: drop-shadow(0 6px 0 rgba(0,0,0,.45)); }
.bubble {
  position: relative; max-width: 220px; margin: 0 -6px 170px 0; padding: 10px 12px; font-size: 19px; line-height: 1.1;
  color: var(--cream-ink); background: var(--cream); border: 2px solid var(--edge); box-shadow: 3px 3px 0 rgba(0,0,0,.45);
}
.bubble::after { content: ""; position: absolute; right: -12px; bottom: 16px; border: 6px solid transparent; border-left: 8px solid var(--edge); }
.bubble.is-pop { animation: pop .25s steps(3); }
@keyframes pop { from { transform: scale(.92); } to { transform: none; } }

/* intake strip */
.intake-strip { display: flex; align-items: center; gap: 10px; margin: 16px 0; overflow: hidden; background: var(--panel-dk); border: 2px solid var(--edge); box-shadow: inset 0 0 0 1px rgba(245,190,50,.25); }
.is-label { flex: none; padding: 6px 12px; font: 400 19px/1 var(--f-d); letter-spacing: .12em; color: #1a1204; background: var(--gold); border-right: 2px solid var(--edge); }
.is-track { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.intake-strip:hover .is-track { animation-play-state: paused; }
.is-tag { position: relative; flex: none; padding: 3px 12px 2px 20px; font-size: 18px; white-space: nowrap; color: var(--cream-ink); background: var(--cream); border: 2px solid var(--edge); }
.is-tag::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: var(--panel-dk); border-radius: 50%; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- DESK grid ---------- */
.desk { display: grid; grid-template-columns: 290px minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.shelf { display: grid; gap: 4px; max-height: 620px; overflow: auto; }
.shelf-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 5px 6px; text-decoration: none; border: 2px solid transparent; }
.shelf-row:hover { background: rgba(26,76,128,.45); border-color: var(--edge); }
.shelf-row.is-active { background: rgba(245,190,50,.14); border-color: var(--gold-dk); }
.sr-n { min-width: 0; display: grid; gap: 2px; }
.sr-n b { font: 400 20px/1.1 var(--f-d); color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-n > span { font-size: 17px; color: var(--muted); }
.sr-n .bond { height: 7px; margin-top: 2px; }
.sr-p { display: grid; text-align: right; font-size: 18px; }

.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tag-card {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px 12px 14px;
  text-decoration: none; text-align: center;
  background: linear-gradient(180deg, #11355e, #0b2745);
  border: 2px solid var(--edge);
  box-shadow: inset 0 0 0 1px rgba(245,190,50,.35), 0 4px 0 rgba(0,0,0,.4);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%, 0 14px);
  transition: transform .08s, box-shadow .12s;
}
.tag-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--gold), 0 6px 0 rgba(0,0,0,.4); }
.tc-hole { position: absolute; top: 8px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--gold-dk); }
.tag-card .stamp { position: absolute; top: 10px; right: 8px; font-size: 14px; padding: 1px 5px 0; }
.tc-name { margin-top: 6px; font: 400 23px/1.05 var(--f-d); color: var(--cream); letter-spacing: .02em; }
.tc-tk { font-size: 18px; color: var(--gold); }
.tc-row { display: flex; justify-content: space-between; width: 100%; font-size: 18px; margin-top: 4px; }
.tag-card .bond { width: 100%; margin-top: 22px; }
.tc-note { font-size: 17px; color: var(--muted); }
.tag-card-static { pointer-events: none; }
.tag-card-static .stamp { right: 10px; }

.notice-board { padding-top: 24px; }
.notice-board ul { display: grid; gap: 4px; margin: 4px 0 10px; }
.notice-board li { padding-left: 18px; position: relative; font-size: 19px; }
.notice-board li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px; background: var(--red); }
.pin { position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: var(--red); border: 2px solid var(--edge); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }
.pn-foot { font-size: 18px; }
.rubber { position: absolute; right: 10px; bottom: 8px; font: 400 16px/1 var(--f-d); letter-spacing: .1em; color: rgba(200,61,50,.75); border: 2px solid rgba(200,61,50,.75); padding: 3px 6px; transform: rotate(-8deg); }
.lm-row { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.lm-row img { image-rendering: auto; flex: none; }
.lm-row .kv { flex: 1; }

.log {
  height: 300px; overflow: auto; padding: 6px 10px;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(154,106,18,.2) 23px 24px), var(--cream);
  color: var(--cream-ink); border: 2px solid var(--edge); box-shadow: inset 0 0 0 1px var(--cream-2);
}
.log p { line-height: 24px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log .who { color: #1b4f9c; } .log .b { color: #147a3f; } .log .s { color: #a3261d; } .log .n { color: #7a4a00; } .log .ago { color: #8a7650; }
.log-tall { height: 330px; }

/* empty states */
.empty { display: grid; justify-items: center; gap: 10px; padding: 26px 10px; text-align: center; color: var(--muted); }
.empty img { image-rendering: auto; opacity: .95; }
.empty-sm { padding: 12px 6px; gap: 6px; }

/* ---------- CLAIM RECORD ---------- */
.record { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ticket {
  display: grid; grid-template-columns: 70px minmax(0, 1fr);
  background: repeating-linear-gradient(0deg, transparent 0 27px, rgba(154,106,18,.14) 27px 28px), var(--cream);
  color: var(--cream-ink); border: var(--px) solid var(--edge); box-shadow: inset 0 0 0 2px var(--cream-2), 0 4px 0 rgba(0,0,0,.45);
}
.ticket-stub {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: var(--cream); border-right: 3px dashed var(--cream);
  writing-mode: vertical-rl; transform: rotate(180deg);
  font: 400 22px/1 var(--f-d); letter-spacing: .2em;
}
.ticket-stub b { font: 20px/1 var(--f-b); letter-spacing: .05em; }
.ticket-body { padding: 16px 18px; display: grid; gap: 14px; min-width: 0; }
.tk-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.tk-kicker { font: 400 17px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: #8a6a2a; }
.tk-id h1 { margin-top: 4px; font: 400 clamp(32px, 3vw, 46px)/1 var(--f-d); color: var(--cream-ink); }
.tk-id h1 span { color: var(--red); white-space: nowrap; }
.tk-meta { margin-top: 6px; font-size: 19px; color: #6b5528; }
.tk-meta b { font-weight: 400; color: var(--cream-ink); }
.ticket .stamp { font-size: 20px; padding: 4px 10px 3px; background: transparent; }
.ticket .stamp-trending { color: #b07a00; } .ticket .stamp-new { color: #147a3f; } .ticket .stamp-graduating { color: #1b4f9c; } .ticket .stamp-graduated { color: var(--red); }
.tk-notes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(154,106,18,.12); border: 2px dashed rgba(138,106,42,.6); }
.tk-notes > span { font: 400 17px/1.1 var(--f-d); letter-spacing: .1em; text-transform: uppercase; color: #8a6a2a; }
.tk-notes p { font-size: 21px; }
.tk-notes p.is-flash { animation: flash .6s steps(3); }
@keyframes flash { 0%, 60% { color: var(--red); } }
.ticket .bond { background: #d8c48c; border-color: var(--cream-ink); box-shadow: none; }
.ticket .bond em { color: #6b5528; }
.tk-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 19px; }
.tk-links a { display: inline-flex; align-items: center; gap: 5px; color: #1b4f9c; }
.ca { cursor: pointer; padding: 3px 10px; font: 19px var(--f-b); color: var(--cream-ink); background: rgba(255,255,255,.4); border: 2px solid var(--cream-ink); }
.ca b { font-weight: 400; color: var(--red); }
.ca:hover { background: #fff; }
.ca-none { cursor: default; color: #6b5528; border-style: dashed; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 16px 0; }
.stat { padding: 10px 12px; background: var(--panel); border: 2px solid var(--edge); box-shadow: inset 0 0 0 1px rgba(245,190,50,.3); }
.stat > span { display: block; font-size: 16px; color: var(--muted); }
.stat b { display: block; font-weight: 400; font-size: 25px; color: var(--text); font-variant-numeric: tabular-nums; }
.record .col-main > .panel { margin-bottom: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.chart-head .tabs { margin: 0; }
.chart {
  position: relative; height: 290px; background: #04101f; border: 2px solid var(--edge);
  background-image: linear-gradient(rgba(127,182,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(127,182,255,.08) 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
}
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-y { position: absolute; right: 8px; font-size: 16px; color: var(--gold); transform: translateY(-50%); text-shadow: 1px 1px 0 #000; }
.chart-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 16px; color: var(--muted); }
.pressure-top { display: flex; justify-content: space-between; gap: 10px; font-size: 18px; }
.pressure { display: flex; height: 14px; margin-top: 8px; background: var(--bad); border: 2px solid var(--edge); }
.pressure i { display: block; background: var(--ok); }
.lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.claimants { width: 100%; border-collapse: collapse; font-size: 19px; }
.claimants th { text-align: left; font: 400 18px/1 var(--f-d); letter-spacing: .06em; color: var(--gold); padding: 6px; border-bottom: 2px solid var(--gold-dk); }
.claimants td { padding: 5px 6px; border-bottom: 1px solid rgba(127,182,255,.12); }
.claimants td:first-child { color: var(--gold); width: 30px; }
.claimants td:last-child, .claimants th:last-child { text-align: right; }
.claimants tr.is-me td { color: var(--gold-hi); }
.tabs-log { align-items: center; }
.live { margin-left: auto; font: 400 16px/1 var(--f-d); letter-spacing: .14em; color: var(--ok); padding: 3px 6px; border: 2px solid var(--ok); }
.offer .tabs { margin-bottom: 12px; }
.amt { display: grid; gap: 4px; font-size: 17px; color: var(--muted); }
.amt-in { position: relative; }
.amt-in b { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-weight: 400; color: var(--gold); font-size: 22px; }
.amt-in .field { padding-left: 26px; font-size: 24px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 8px 0 10px; }
.offer .kv-box { margin-bottom: 12px; }
.notes-form { display: grid; gap: 8px; }
.notes-form textarea { min-height: 72px; resize: vertical; font-size: 19px; }
.notes-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; color: var(--muted); }
.note-pin { margin-top: 8px; padding: 6px 10px; font-size: 18px; color: var(--cream-ink); background: var(--cream); border: 2px solid var(--edge); border-left: 6px solid var(--red); }
.note-pin span { color: #8a7650; font-size: 16px; }
.about-item p { font-size: 19px; }
.clerk-tip { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px dashed rgba(138,106,42,.5); }
.clerk-tip img { image-rendering: auto; flex: none; }
.clerk-tip p { font-size: 18px; color: #6b5528; }
.more { margin-top: 0; }
.more-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }

/* ---------- page heads / tables ---------- */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.page-head h1 { font: 400 38px/1 var(--f-d); color: var(--gold); text-shadow: 3px 3px 0 var(--edge); }
.page-head p { margin-top: 4px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.board { width: 100%; border-collapse: collapse; font-size: 20px; }
.board th { text-align: left; font: 400 18px/1 var(--f-d); letter-spacing: .06em; color: var(--gold); padding: 10px; background: var(--panel-dk); border-bottom: 2px solid var(--gold-dk); }
.board td { padding: 8px 10px; border-bottom: 1px solid rgba(127,182,255,.12); }
.board tr:hover td { background: rgba(26,76,128,.35); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board a { color: var(--gold); text-decoration: none; }
.board tr.is-me td { color: var(--gold-hi); background: rgba(245,190,50,.08); }
.item-cell { display: inline-flex; align-items: center; gap: 10px; color: var(--cream) !important; }
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; font: 400 18px/1 var(--f-d); color: #1a1204; border: 2px solid var(--edge); }
.medal.m1 { background: var(--gold-hi); } .medal.m2 { background: #cfd8e3; } .medal.m3 { background: #d99a5b; }
.feed-list { display: grid; gap: 5px; }
.feed-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px; text-decoration: none; background: var(--panel-dk); border: 2px solid var(--edge); }
.feed-row:hover { background: #0e2e52; box-shadow: inset 0 0 0 1px var(--gold-dk); }
.feed-row.is-new { animation: newrow 1s steps(4); }
@keyframes newrow { from { background: #3d3207; } }
.fr-t { min-width: 0; }
.fr-t .who { color: var(--blue-hi); } .fr-t .who.me { color: var(--gold-hi); }
.fr-t .b { color: var(--ok); } .fr-t .s { color: var(--bad); } .fr-t .n { color: var(--gold); }
.fr-t b { font-weight: 400; color: var(--cream); } .fr-t .tk { color: var(--gold); }
.fr-ago { color: var(--muted); font-size: 17px; }

/* ---------- LOCKER ---------- */
.locker-head { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; padding: 10px 20px; background: linear-gradient(90deg, rgba(18,59,103,.6), transparent); border-left: 4px solid var(--gold); }
.locker-head img { image-rendering: auto; width: 150px; height: auto; }
.locker-head h1 { font: 400 42px/1 var(--f-d); color: var(--gold); text-shadow: 3px 3px 0 var(--edge); }
.locker-head p { margin-top: 6px; color: var(--muted); }
.locker { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }

/* ---------- TURN IN ---------- */
.launch-banner {
  position: relative; display: flex; align-items: flex-end; min-height: 220px; margin-bottom: 16px; padding: 22px 26px;
  background: url("/assets/scenes/terminal.webp") center / cover no-repeat, var(--panel);
  border: var(--px) solid var(--edge); box-shadow: inset 0 0 0 3px var(--gold-dk), 0 4px 0 rgba(0,0,0,.5);
}
.launch-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,38,.92), rgba(6,20,38,.55) 55%, rgba(6,20,38,.1)); }
.launch-banner > div { position: relative; max-width: 560px; }
.lb-kicker { font: 400 18px/1 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.launch-banner h1 { margin: 6px 0; font: 400 clamp(40px, 4.6vw, 58px)/1 var(--f-d); text-transform: uppercase; color: var(--text); text-shadow: 3px 3px 0 var(--edge); }
.launch-banner p { font-size: 22px; color: var(--cream); }
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.launch .panel-t .count { font: 18px var(--f-b); color: var(--muted); margin-left: 8px; }
.search-inline { position: relative; display: block; margin: 12px 0; }
.search-inline img { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); }
.search-inline .field { padding-left: 36px; }
.inv { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 620px; overflow: auto; padding: 4px; }
.inv-slot {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 8px 4px 6px; cursor: pointer;
  background: var(--panel-dk); border: 2px solid var(--edge); color: var(--cream); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(127,182,255,.12);
}
.inv-slot span:not(.slot) { font: 400 17px/1.1 var(--f-d); }
.inv-slot:hover { box-shadow: inset 0 0 0 2px var(--gold-dk); }
.inv-slot.is-on { background: #16365d; box-shadow: inset 0 0 0 3px var(--gold), 0 0 12px rgba(245,190,50,.35); }
.inv-slot.is-taken { cursor: not-allowed; }
.inv-slot.is-taken .slot { filter: grayscale(1) brightness(.55); }
.inv-slot em { position: absolute; top: 30px; left: 50%; transform: translateX(-50%) rotate(-12deg); font: 400 16px/1 var(--f-d); font-style: normal; letter-spacing: .1em; color: #ff7a6e; border: 2px solid #ff7a6e; padding: 2px 5px; background: rgba(6,20,38,.8); }
.counter { display: grid; gap: 14px; }
.clerk-desk { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: end; padding-bottom: 12px; border-bottom: 3px solid var(--gold-dk); }
.clerk-desk img { width: 140px; height: auto; image-rendering: auto; }
.clerk-desk .bubble { margin: 0 0 60px; max-width: none; }
.clerk-desk .bubble::after { right: auto; left: -14px; border-left-color: transparent; border-right: 8px solid var(--edge); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 17px; color: var(--muted); }
.form textarea { min-height: 70px; resize: vertical; }

/* ---------- ABOUT ---------- */
.about-banner img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; image-rendering: auto; border: var(--px) solid var(--edge); box-shadow: inset 0 0 0 3px var(--gold-dk), 0 4px 0 rgba(0,0,0,.5); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; margin-top: 16px; align-items: start; }
.about h1.panel-t { font-size: 28px; }
.lead { font-size: 24px; color: var(--cream); text-align: center; margin-bottom: 16px; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 10px; background: var(--panel-dk); border: 2px solid var(--edge); }
.steps li::before { counter-increment: s; content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; font: 400 26px/1 var(--f-d); color: #1a1204; background: var(--gold); border: 2px solid var(--edge); }
.steps b { font: 400 22px/1.1 var(--f-d); color: var(--gold); }
.steps .o { color: var(--gold-hi); } .steps .g { color: var(--ok); }
.about-clerk { display: block; width: 180px; margin: 6px auto; image-rendering: auto; }
.about .paper p { font-size: 20px; text-align: center; }
.lost { display: grid; justify-items: center; gap: 12px; padding: 60px 10px; text-align: center; }
.lost img { image-rendering: auto; }
.lost h1 { font: 400 44px/1 var(--f-d); color: var(--gold); text-shadow: 3px 3px 0 var(--edge); }
.lost p { color: var(--muted); }

/* ---------- STATUS BAR ---------- */
.statusbar {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: var(--sb-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px;
  background: #041022; border-top: 2px solid var(--gold-dk); font-size: 18px;
}
.sb-line { display: flex; align-items: center; gap: 14px; min-width: 0; overflow: hidden; white-space: nowrap; }
.sb-dot { width: 10px; height: 10px; flex: none; background: var(--bad); box-shadow: 0 0 0 2px var(--edge); }
.is-open .sb-dot { background: var(--ok); box-shadow: 0 0 0 2px var(--edge), 0 0 8px var(--ok); }
.sb-status { color: var(--gold); }
.sb-ticker { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.sb-links { display: flex; gap: 16px; flex: none; }
.sb-links a, .sb-links button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--cream); text-decoration: none; font: 18px var(--f-b); }
.sb-links a:hover, .sb-links button:hover { color: var(--gold); }
.tabs-mobile { display: none; }

/* ---------- MODALS ---------- */
.modal {
  width: min(640px, calc(100vw - 20px)); padding: 0; color: var(--text);
  background: var(--panel); border: var(--px) solid var(--edge);
  box-shadow: inset 0 0 0 3px var(--gold-dk), inset 0 0 0 4px rgba(255,216,90,.3), 0 20px 60px rgba(0,0,0,.7);
}
.modal::backdrop { background: rgba(2,9,18,.75); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 2px solid var(--gold-dk); background: var(--panel-dk); }
.modal-head h2 { display: flex; align-items: center; gap: 8px; font: 400 25px/1 var(--f-d); color: var(--gold); text-shadow: 2px 2px 0 var(--edge); }
.x { background: none; border: 0; cursor: pointer; padding: 2px; }
.guide-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: end; padding: 18px 18px 0; }
.guide-clerk { width: 190px; height: auto; image-rendering: auto; }
.guide-copy { align-self: center; padding-bottom: 16px; }
.guide-who { display: flex; justify-content: space-between; font: 400 18px/1 var(--f-d); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.guide-who span { font: 16px var(--f-b); letter-spacing: 0; text-transform: none; color: var(--muted); }
.guide-copy h3 { margin: 10px 0 8px; font: 400 30px/1.05 var(--f-d); color: var(--text); }
.guide-copy p { font-size: 21px; color: var(--cream); }
.guide-copy .o { color: var(--gold-hi); } .guide-copy .g { color: var(--ok); }
.modal-text { padding: 18px; font-size: 21px; color: var(--cream); display: grid; gap: 10px; }
.modal-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 2px solid var(--gold-dk); background: var(--panel-dk); }
.modal-actions { display: flex; gap: 8px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 12px; height: 12px; background: var(--panel-dk); border: 2px solid var(--gold-dk); }
.dots i.is-on { background: var(--gold); border-color: var(--edge); }

.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--sb-h) + 18px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 8px 16px; font-size: 20px; color: var(--cream-ink); background: var(--cream); border: 2px solid var(--edge); box-shadow: inset 0 0 0 2px var(--cream-2), 4px 4px 0 rgba(0,0,0,.5); transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .desk { grid-template-columns: 270px minmax(0, 1fr); }
  .desk > .col-right { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-nav .btn-nav { padding: 4px 10px; }
  .brand-tk { display: none; }
  .more-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .top-nav .btn-nav img, .top-right .btn-nav img { display: none; }
  .record, .launch, .about, .locker { grid-template-columns: minmax(0, 1fr); }
  .record .col-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --top-h: 58px; --sb-h: 0px; }
  body { padding-bottom: 72px; font-size: 19px; }
  .top { gap: 8px; padding: 0 12px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 22px; }
  .top-nav, .top-right, .search { display: none; }
  .search-mobile { display: inline-flex; margin-left: auto; padding: 4px 10px; }
  .top.is-searching .search { display: block; position: absolute; left: 10px; right: 10px; top: 9px; max-width: none; }
  .top.is-searching .brand, .top.is-searching .search-mobile { visibility: hidden; }
  .statusbar { display: none; }
  .tabs-mobile {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    padding: 5px 5px max(5px, env(safe-area-inset-bottom)); background: #071b34; border-top: 3px solid var(--gold-dk);
  }
  .tabs-mobile a { display: grid; justify-items: center; gap: 2px; padding: 5px 2px 4px; text-decoration: none; color: var(--cream); background: var(--panel-2); border: 2px solid var(--edge); font: 400 16px/1 var(--f-d); }
  .tabs-mobile a.is-on { background: var(--gold); color: #1a1204; }
  .view { padding: 12px 10px 24px; }

  .hero { grid-template-columns: 1fr; min-height: 0; background-position: 70% 100%; }
  .hero::before { background: linear-gradient(0deg, rgba(6,20,38,.97) 20%, rgba(6,20,38,.72) 70%, rgba(6,20,38,.5)); }
  .hero-copy { padding: 18px 16px 18px; }
  .hero-sub { font-size: 20px; }
  .hero-clerk { position: absolute; right: -6px; top: 6px; padding: 0; }
  .hero-clerk img { width: 96px; }
  .hero h1 { max-width: 11ch; }
  .hero-clerk .bubble { display: none; }
  .hero-wordmark { width: min(300px, 72%); }
  .hero-cta .btn { flex: 1 1 auto; }
  .flag-ticket { width: 100%; }

  .desk { grid-template-columns: 1fr; }
  .desk > .col-right { grid-template-columns: 1fr; }
  .desk > .col-left { order: 2; }
  .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tag-card { padding: 24px 8px 12px; }
  .tag-card .slot-lg { --s: 84px; }
  .tc-name { font-size: 20px; }
  .tc-row { font-size: 17px; }

  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { writing-mode: horizontal-tb; transform: none; flex-direction: row; padding: 6px; border-right: 0; border-bottom: 3px dashed var(--cream); }
  .tk-top { grid-template-columns: auto minmax(0, 1fr); }
  .tk-top > #tStamp { grid-column: 1 / -1; justify-self: start; }
  .tk-top .slot-xl { --s: 96px; }
  .tk-notes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .record { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .record > .col { display: contents; }
  .record .ticket { order: 1; }
  .record .stats { order: 2; }
  .record #tChartPanel { order: 3; }
  .record .col-main > #tPressure { order: 4; }
  .record .col-side > * { margin-bottom: 16px; }
  .record .col-side > .offer { order: 5; }
  .record .col-side > :nth-child(2) { order: 6; }
  .record .lower { order: 7; margin-bottom: 16px; }
  .record .col-side > :nth-child(3) { order: 8; }
  .record .col-side > :nth-child(4) { order: 9; }
  .lower { grid-template-columns: 1fr; }
  .chart { height: 220px; }
  .more-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .page-head h1 { font-size: 28px; }
  .hide-sm { display: none; }
  .locker-head { padding: 8px 10px; gap: 12px; }
  .locker-head img { width: 96px; }
  .locker-head h1 { font-size: 30px; }
  .launch-banner { min-height: 170px; padding: 16px; }
  .launch-banner p { font-size: 19px; }
  .inv { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 440px; }
  .clerk-desk { grid-template-columns: 96px minmax(0, 1fr); }
  .clerk-desk img { width: 96px; }
  .clerk-desk .bubble { margin-bottom: 30px; }
  .guide-body { grid-template-columns: 110px minmax(0, 1fr); padding: 14px 14px 0; gap: 12px; }
  .guide-clerk { width: 110px; }
  .guide-copy h3 { font-size: 22px; }
  .guide-copy p { font-size: 19px; }
  .toast { bottom: 84px; }
}
@media (max-width: 380px) {
  .tag-card .slot-lg { --s: 70px; }
  .inv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .is-track { animation: none; }
  .feed-row.is-new, .bubble.is-pop, .tk-notes p.is-flash { animation: none; }
  .tag-card, .btn { transition: none; }
}

/* =========================================================
   LIVE: wallet, launch steps, chart embed
   ========================================================= */
.wallet { position: relative; flex: none; }
.btn-wallet { background: #3b2a7a; color: #fff; box-shadow: inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.35), 0 0 0 1px #ab9ff2; }
.btn-wallet:hover { background: #4d3a9a; }
.btn-wallet.is-on { background: var(--panel-2); color: var(--cream); box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.35), 0 0 0 1px var(--ok); }
.btn-wallet.is-on::before { content: ""; width: 8px; height: 8px; background: var(--ok); box-shadow: 0 0 0 2px var(--edge); }
.phantom-ico { width: 20px; height: 20px; }
#walletLabel { font-family: var(--f-d); }
.wallet-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 190px; display: grid; padding: 6px; background: var(--panel); border: var(--px) solid var(--edge); box-shadow: inset 0 0 0 2px var(--gold-dk), 0 10px 30px rgba(0,0,0,.6); }
.wallet-menu a, .wallet-menu button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; font: 400 19px/1 var(--f-d); color: var(--cream); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.wallet-menu a:hover, .wallet-menu button:hover { background: var(--panel-2); color: var(--gold-hi); }

.flag-soon { opacity: .92; }
.is-empty { padding: 6px 12px; font-size: 18px; color: var(--muted); }
.spin-soft { animation: bob 1.2s steps(4) infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.tk { color: var(--gold); }
.board .tk { margin-left: 4px; }

.chart-embed { position: relative; height: 420px; background: #04101f; border: 2px solid var(--edge); }
.chart-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.offer-note { margin-bottom: 12px; font-size: 19px; color: var(--cream); text-align: center; }
.offer .muted.small { margin-top: 10px; text-align: center; }

.launch-cost { font-size: 18px; }
.launch-cost b { color: var(--cream); }
.launch-steps { display: grid; gap: 6px; padding: 10px 12px; background: var(--panel-dk); border: 2px solid var(--edge); counter-reset: ls; }
.launch-steps li { position: relative; padding-left: 30px; font-size: 19px; color: var(--muted); counter-increment: ls; }
.launch-steps li::before { content: counter(ls); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; font: 400 16px/1 var(--f-d); color: var(--muted); border: 2px solid var(--panel-3); }
.launch-steps li.is-now { color: var(--gold-hi); }
.launch-steps li.is-now::before { color: #1a1204; background: var(--gold); border-color: var(--edge); animation: ledblink 1s steps(1) infinite; }
.launch-steps li.is-done { color: var(--ok); }
.launch-steps li.is-done::before { content: "✓"; color: #062; background: var(--ok); border-color: var(--edge); }
@keyframes ledblink { 50% { opacity: .35; } }
.inv-slot em.em-pending { color: var(--gold-hi); border-color: var(--gold-hi); }
.form label em { font-style: normal; font-size: 16px; }
.btn[disabled] { opacity: .7; }

@media (max-width: 860px) {
  .wallet { margin-left: 6px; }
  .btn-wallet { padding: 4px 8px; min-height: 36px; }
  #walletLabel { font-size: 15px; }
  .chart-embed { height: 320px; }
}
@media (max-width: 380px) {
  .btn-wallet.is-on #walletLabel { display: none; }
}
[hidden] { display: none !important; }

/* intake ticker: clipped viewport so tags never slide over the INTAKE label */
.intake-strip { gap: 0; }
.is-label { position: relative; z-index: 2; align-self: stretch; display: flex; align-items: center; }
.is-view { position: relative; flex: 1 1 auto; min-width: 0; overflow: hidden; padding: 4px 0; -webkit-mask: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.is-track { display: flex; width: max-content; gap: 0; animation: slide var(--dur, 70s) linear infinite; will-change: transform; }
.is-lap { display: flex; gap: 12px; padding-right: 12px; flex: none; }
.is-view .is-empty { display: block; padding: 2px 14px; }
.trade-msg { min-height: 1.2em; margin: 8px 0 4px; font-size: 18px; text-align: center; color: var(--ok); }
.trade-msg.is-err { color: var(--bad); }
.offer .presets .btn.is-on { background: var(--gold); color: #1a1204; }
@media (prefers-reduced-motion: reduce) { .is-track { animation: none; } }

/* LOST & FOUND: longer brand name needs a tighter header on laptop widths */
@media (min-width: 861px) and (max-width: 1460px) {
  .brand-tk { display: none; }
  .brand-name { font-size: 24px; }
  .top { gap: 10px; }
}
@media (min-width: 861px) and (max-width: 1380px) {
  .top-nav .btn-nav img, .top-right .btn-nav img { display: none; }
}
@media (min-width: 861px) and (max-width: 1060px) {
  .brand-name { display: none; }
}
@media (min-width: 861px) and (max-width: 960px) {
  .search { min-width: 120px; }
  .search kbd { display: none; }
}
