:root {
  color-scheme: dark;
  --bg: #07080c;
  --s1: #0f1118;
  --s2: #151824;
  --s3: #1c2030;
  --line: rgba(255, 255, 255, 0.07);
  --line2: rgba(255, 255, 255, 0.12);
  --text: #f3efe6;
  --muted: #8e91a3;
  --dim: #5d6073;
  --light: #f4b860;
  --light2: #ffe1a8;
  --outer: #8a9bc4;
  --belt: #6cc4b3;
  --core: #f0a25a;
  --heart: #ffd38a;
  --good: #46d39a;
  --bad: #ff6470;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9; }

/* ---------- join ---------- */
.join {
  position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; max-width: 440px; margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center; padding: 32px 24px calc(32px + var(--safe-b));
}
.join-orb { width: 220px; height: 220px; margin: 0 auto 10px; }
.join-orb svg { width: 100%; height: 100%; overflow: visible; }
.jr { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1; }
.jr1 { stroke-dasharray: 2 6; animation: spin 80s linear infinite; transform-origin: center; }
.jr2 { stroke: rgba(108,196,179,.22); stroke-dasharray: 1 4; animation: spin 50s linear infinite reverse; transform-origin: center; }
.jr3 { stroke: rgba(240,162,90,.28); }
.jheart { filter: drop-shadow(0 0 18px rgba(255,190,100,.7)); animation: breathe 4s ease-in-out infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); } }
.wordmark { font-weight: 300; letter-spacing: .42em; text-transform: uppercase; font-size: 30px; margin: 0; text-align: center; padding-left: .42em; }
.wordmark.sm { font-size: 13px; letter-spacing: .38em; text-align: left; padding-left: 0; color: var(--text); opacity: .92; }
.tag { color: var(--muted); text-align: center; margin: 14px 0 30px; line-height: 1.55; }
#joinForm { display: grid; gap: 10px; }
input {
  width: 100%; background: rgba(255,255,255,.04); border: 1px solid var(--line2); border-radius: 14px;
  padding: 15px 16px; font-size: 17px; outline: none; transition: border-color .2s;
}
input:focus { border-color: rgba(244,184,96,.55); }
.primary {
  background: linear-gradient(180deg, #ffe7bb, #f4b860); color: #1b1206; font-weight: 650; border-radius: 14px;
  padding: 15px 16px; font-size: 16px; letter-spacing: .01em; box-shadow: 0 8px 30px -10px rgba(244,184,96,.6);
  transition: transform .15s var(--ease), filter .2s;
}
.primary:active { transform: scale(.98); }
.primary:disabled { filter: grayscale(.8) brightness(.6); }
.err { color: var(--bad); min-height: 1.2em; margin: 4px 0 0; text-align: center; font-size: 14px; }

/* ---------- app shell ---------- */
.app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 16px calc(110px + var(--safe-b)); }
.top { display: flex; justify-content: space-between; align-items: flex-end; padding: 8px 2px 10px; }
.phase-line { color: var(--muted); font-size: 13px; margin-top: 6px; }
.phase-line b { color: var(--light); font-weight: 600; }
.top-r { text-align: right; }
.clock-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock { font-size: 30px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; margin-top: 2px; }
.clock.hot { color: var(--light2); text-shadow: 0 0 22px rgba(244,184,96,.45); }

.rail { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; gap: 4px; margin: 2px 0 14px; }
.seg { position: relative; height: 26px; border-radius: 8px; background: var(--s1); border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.seg.gap { border-radius: 6px; background: transparent; border-style: dashed; }
.seg .fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, rgba(244,184,96,.18), rgba(244,184,96,.38)); }
.seg span { position: relative; }
.seg.done { color: var(--muted); background: rgba(244,184,96,.07); border-color: rgba(244,184,96,.16); }
.seg.on { color: var(--light2); border-color: rgba(244,184,96,.5); box-shadow: 0 0 18px -6px rgba(244,184,96,.7); }
.seg.on.gap { border-style: solid; }

.tabs { position: sticky; top: calc(6px + var(--safe-t)); z-index: 5; display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(15,17,24,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.tabs button { position: relative; z-index: 1; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--muted); transition: color .25s; }
.tabs button.on { color: #14100a; }
.tab-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 10px;
  background: linear-gradient(180deg, #fff1d6, #f2c27a); transition: transform .35s var(--ease); }

main { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ---------- cards ---------- */
.card { background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.card h3 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.card h3 small { letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--dim); font-size: 12px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: 0 0 10px -1px currentColor; }
.who { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 99px; font-size: 12px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.live { color: var(--light2); border-color: rgba(244,184,96,.4); background: rgba(244,184,96,.1); }
.chip.ok { color: var(--good); border-color: rgba(70,211,154,.3); background: rgba(70,211,154,.08); }
.chip.warn { color: var(--bad); border-color: rgba(255,100,112,.3); background: rgba(255,100,112,.08); }
.ring-outer { color: var(--outer); } .ring-belt { color: var(--belt); } .ring-core { color: var(--core); } .ring-heart { color: var(--heart); }
.ringtag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }

.seat { padding: 18px; }
.seat::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--me, #5b8cff) 0%, transparent 65%); opacity: .18; pointer-events: none; }
.seat .name { font-size: 20px; font-weight: 650; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.seat .bank { text-align: right; }
.seat .bank b { display: block; font-size: 38px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.seat .bank span { font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.stat { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; }
.stat b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--muted); }
.key { margin-top: 12px; font-size: 12px; color: var(--dim); }
.key button { color: var(--muted); text-decoration: underline dotted; }

.banner { border-color: rgba(244,184,96,.22); background: radial-gradient(120% 140% at 0% 0%, rgba(244,184,96,.12), transparent 60%), linear-gradient(180deg, var(--s2), var(--s1)); }
.banner .big { font-size: 17px; font-weight: 600; margin-bottom: 4px; }

/* fleets */
.fleet { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.fleet:first-of-type { border-top: 0; padding-top: 2px; }
.fleet .pip { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; }
.fleet .pip::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.fleet .meta { flex: 1; min-width: 0; }
.fleet .where { font-weight: 600; }
.fleet .what { color: var(--muted); font-size: 13px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet .what b { color: var(--text); font-weight: 600; }
.chev { color: var(--dim); font-size: 18px; }

/* fights */
.fight { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-top: 10px; position: relative; overflow: hidden; }
.fight:first-child { margin-top: 0; }
.fight.mine { border-color: rgba(244,184,96,.3); background: radial-gradient(140% 120% at 100% 0%, rgba(244,184,96,.09), transparent 55%), rgba(255,255,255,.03); }
.fight .hd { display: flex; justify-content: space-between; align-items: baseline; }
.fight .title { font-weight: 650; font-size: 16px; }
.fight .vs { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 8px; font-size: 13px; }
.fight .vs .side { display: flex; align-items: center; gap: 7px; }
.fight .vs .role { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.ground { display: flex; align-items: baseline; gap: 8px; }
.ground b { font-size: 44px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; transition: color .4s; }
.ground span { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.districts { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin: 12px 0 8px; }
.districts i { height: 14px; border-radius: 3px; background: rgba(255,255,255,.06); transition: background .5s, box-shadow .5s; }
.spark { width: 100%; height: 40px; display: block; }
.stamp { position: absolute; right: 12px; top: 12px; transform: rotate(-6deg); font-weight: 800; letter-spacing: .16em; font-size: 13px;
  padding: 4px 9px; border: 2px solid currentColor; border-radius: 7px; text-transform: uppercase; opacity: 0; background: rgba(7,8,12,.6); }
.stamp.show { animation: stamp .5s var(--ease) forwards; }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: .95; transform: rotate(-6deg) scale(1); } }
.chip:empty { display: none; }
.walkrow { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 14px; }
.walkrow:first-child { border-top: 0; }
.walkrow.mine b { color: var(--light2); }
.wr-v { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fight.small { padding: 11px 12px; }
.fight.small .ground b { font-size: 24px; }
.fight.small .districts { margin: 8px 0 0; }
.fight.small .districts i { height: 8px; }

/* trades */
.trade { padding: 12px 0; border-top: 1px solid var(--line); }
.trade:first-of-type { border-top: 0; padding-top: 0; }
.swap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.swap .arrow { color: var(--dim); }
.btns { display: flex; gap: 8px; margin-top: 10px; }
.btn { padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; background: rgba(255,255,255,.07); border: 1px solid var(--line2); transition: transform .12s, background .2s; }
.btn:active { transform: scale(.97); }
.btn.gold { background: linear-gradient(180deg, #ffe7bb, #f4b860); color: #1b1206; border: 0; }
.btn.red { color: var(--bad); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; }

/* recap */
.recap li { list-style: none; display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.recap li:first-child { border-top: 0; }
.recap ul { margin: 0; padding: 0; }
.recap .tg { flex: none; width: 62px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); padding-top: 3px; }
.tg.Heart { color: var(--heart); } .tg.Upset { color: var(--bad); } .tg.Dark { color: #b98cff; } .tg.Nobody { color: var(--muted); }
.tg.Taken { color: var(--core); } .tg.Held { color: var(--belt); } .tg.Belt { color: var(--belt); } .tg.Walked { color: var(--outer); }
.gains { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* map */
.mapcard { padding: 6px; }
.map { width: 100%; height: auto; aspect-ratio: 1; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.map text { font-size: 7.5px; fill: #a7a9b8; pointer-events: none; letter-spacing: .02em; }
.map text.big { font-size: 8.5px; fill: #e9e4d8; font-weight: 600; }
.map .sph { cursor: pointer; transition: opacity .6s; }
.map .sph .body { transition: fill .6s, opacity .6s; }
.map .sph.dark .body { opacity: .5; }
.map .sph.dark .lastlight { stroke-dasharray: 2 2.4; }
.map .lane { stroke: rgba(255,255,255,.075); stroke-width: .8; }
.map .lane.hot { stroke: rgba(255,225,168,.45); stroke-width: 1.2; }
.map .guide { fill: none; stroke: rgba(255,255,255,.045); stroke-width: 1; }
.map .order { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; marker-end: url(#arrow); opacity: .9; }
.map .order.back { stroke-dasharray: 1 3.5; stroke: var(--light2); }
.map .target { fill: none; stroke: var(--light2); stroke-width: 1.4; stroke-dasharray: 3 3; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -12; } }
.map .sel { fill: none; stroke: #fff; stroke-width: 1.6; }
.map .contest { fill: none; stroke-width: 3; stroke-linecap: round; }
.map .contest-bg { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 3; }
.map .pulse { fill: none; stroke: var(--light2); stroke-width: 1; animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.map .front { fill: none; stroke: url(#frontGrad); stroke-width: 10; opacity: .0; }
.map .front.go { animation: front 2.2s var(--ease) forwards; }
@keyframes front { 0% { opacity: .9; } 100% { opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 10px 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* rival */
.matchup { text-align: center; padding: 20px 16px; }
.matchup .sides { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.matchup .side b { display: block; font-size: 46px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1; margin-top: 6px; }
.matchup .side .who { justify-content: center; }
.matchup .v { color: var(--dim); font-size: 12px; letter-spacing: .2em; }
.beltring { width: 180px; height: 180px; margin: 14px auto 6px; display: block; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 10px 4px; border-top: 1px solid var(--line); }
.table tr:first-child td { border-top: 0; }
.table td.r { text-align: right; font-variant-numeric: tabular-nums; }
.table .rank { color: var(--dim); width: 22px; }
.table .me td { color: var(--light2); }
.online { width: 6px; height: 6px; border-radius: 50%; background: var(--good); display: inline-block; margin-left: 6px; box-shadow: 0 0 6px var(--good); }
.ghost { font-size: 10px; color: var(--dim); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 5px; margin-left: 6px; letter-spacing: .06em; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--light), var(--light2)); border-radius: 99px; }

/* host */
.host .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 3px; margin-top: 8px; }
.seg3 button { padding: 8px 0; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg3 button.on { background: rgba(255,255,255,.12); color: var(--text); }
.toggle { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; }
.switch { width: 46px; height: 28px; border-radius: 99px; background: rgba(255,255,255,.12); position: relative; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(18px); }
.footer { text-align: center; color: var(--dim); font-size: 12px; margin: 22px 0 8px; }
.footer button { color: var(--muted); text-decoration: underline dotted; }

/* sheet */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 560px; margin: 0 auto; max-height: 86vh; max-height: 86dvh; overflow-y: auto;
  background: linear-gradient(180deg, #1a1d2b, #12141d); border: 1px solid var(--line2); border-bottom: 0; border-radius: 24px 24px 0 0;
  padding: 8px 18px calc(22px + var(--safe-b)); transform: translateY(105%); transition: transform .38s var(--ease); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.sheet.open { transform: translateY(0); visibility: visible; transition: transform .38s var(--ease), visibility 0s; }
.sheet:not(.open) { visibility: hidden; transition: transform .38s var(--ease), visibility 0s .38s; }
.sheet-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--muted); font-size: 14px; display: grid; place-items: center; z-index: 2; }
.grab { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); margin: 4px auto 12px; }
.sheet h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.sheet .sub { color: var(--muted); margin: 4px 0 14px; font-size: 14px; }
.sheet h4 { margin: 18px 0 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.opt { text-align: left; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.045); border: 1px solid var(--line2); transition: transform .12s, border-color .2s, background .2s; }
.opt:active { transform: scale(.97); }
.opt.on { border-color: rgba(244,184,96,.7); background: rgba(244,184,96,.12); }
.opt:disabled { opacity: .35; }
.opt .t { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.opt .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 10px 0 0; }
.hint b { color: var(--text); font-weight: 600; }

/* thread */
.thread { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; background: rgba(255,255,255,.06); font-size: 15px; line-height: 1.35; align-self: flex-start; word-wrap: break-word; }
.msg .from { font-size: 11px; font-weight: 700; margin-bottom: 2px; letter-spacing: .02em; }
.msg.me { align-self: flex-end; background: linear-gradient(180deg, #ffe7bb, #f2bd6c); color: #1b1206; border-bottom-right-radius: 6px; }
.msg.them { border-bottom-left-radius: 6px; }
.ev { align-self: center; text-align: center; font-size: 12px; color: var(--muted); max-width: 90%; padding: 4px 0; }
.ev.private { color: #c9a8ff; }
.ev.result { color: var(--light2); }
.compose { position: sticky; bottom: calc(-22px - var(--safe-b)); display: flex; gap: 8px; padding: 10px 0 calc(4px); background: linear-gradient(180deg, transparent, #12141d 30%); }
.compose input { padding: 12px 14px; font-size: 16px; border-radius: 99px; }
.compose button { flex: none; width: 46px; height: 46px; border-radius: 50%; }

.fab { position: fixed; z-index: 30; right: max(16px, calc(50% - 264px)); bottom: calc(18px + var(--safe-b)); width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(180deg, #262a3b, #191c28); border: 1px solid var(--line2); color: var(--text); display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .15s; }
.fab:active { transform: scale(.94); }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; border-radius: 99px; background: var(--light); color: #1b1206; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }

.toasts { position: fixed; z-index: 60; left: 0; right: 0; top: calc(10px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { max-width: 520px; width: 100%; background: rgba(28,32,48,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line2);
  border-radius: 16px; padding: 12px 14px; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); animation: tin .4s var(--ease); pointer-events: auto; }
.toast.gold { border-color: rgba(244,184,96,.5); }
.toast.out { animation: tout .3s forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }

.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }
.lit-flash { animation: litflash 1.4s var(--ease); }
@keyframes litflash { 0% { box-shadow: 0 0 0 0 rgba(244,184,96,.0); } 30% { box-shadow: 0 0 40px 4px rgba(244,184,96,.35); } 100% { box-shadow: 0 0 0 0 rgba(244,184,96,0); } }

@media (min-width: 600px) {
  .app { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
