/* The Crew — one lit scoreboard, a quiet grey locker room, a black chat room. */
:root {
  --floor: #aeb3bb;
  --ice: #dde0e5;
  --ice-2: #d1d5db;
  --ice-3: #c1c6ce;
  --field: #e8eaee;
  --ink: #14161a;
  --ink-2: #3b4049;
  --mute: #666d78;
  --gold: #e8a93a;
  --gold-ink: #8a5d10;
  --in: #1d7f4e;
  --maybe: #8a5d10;
  --out: #b3402f;
  --led: #f1efe9;
  --led-dim: #9b988f;
  --led-in: #43e08f;
  --led-out: #ff6e5c;
  --num: "Teko", "Figtree", sans-serif;
  --safe: max(12px, env(safe-area-inset-bottom));
  --top: env(safe-area-inset-top);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--floor); }
body { font-family: "Figtree", system-ui, sans-serif; color: var(--ink); font-size: 16px; line-height: 1.38; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hidden { display: none !important; }

.app { max-width: 440px; margin: 0 auto; min-height: 100dvh; background: var(--ice); padding: 0 0 calc(76px + var(--safe)); position: relative; overflow-x: clip; }
.pad { padding: 0 18px 12px; }

/* ------------------------------------------------------------ scoreboard */
.mast { background: #000; padding-top: var(--top); }
.mast-banner { width: 100%; height: auto; }
.board {
  position: relative;
  padding: 18px 16px 20px;
  color: var(--led);
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .045) 1px, transparent 1.3px) 0 0 / 4px 4px,
    linear-gradient(180deg, #0c0c0c, #000 70%);
  border-radius: 0 0 26px 26px;
  box-shadow: inset 0 -1px 0 rgba(232, 169, 58, .35), 0 22px 30px -24px rgba(0, 0, 0, .75);
}
.board-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.side b { display: block; font-family: var(--num); font-size: 25px; font-weight: 600; line-height: .92; text-transform: uppercase; color: #fff; overflow-wrap: normal; word-break: normal; hyphens: none; }
.side span { display: block; margin-top: 7px; font-size: 13px; color: var(--led-dim); }
.side.them { text-align: right; }
.clock {
  min-width: 118px;
  padding: 10px 12px 8px;
  border-radius: 12px;
  text-align: center;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(232, 169, 58, .4), 0 0 30px rgba(232, 169, 58, .12);
}
.kick { display: block; font-family: var(--num); font-size: 50px; font-weight: 600; line-height: .78; padding-top: 5px; color: var(--gold); text-shadow: 0 0 16px rgba(232, 169, 58, .55); }
.kick i { font-style: normal; font-size: 20px; margin-left: 3px; }
.clock span { display: block; margin-top: 5px; font-size: 13px; color: #cfcbc1; }
.board-count { margin: 14px 0 0; text-align: center; font-size: 14px; color: #cfcbc1; }
.board-off { margin: 6px 0 0; text-align: center; font-family: var(--num); font-size: 34px; line-height: .9; color: #fff; }

.rsvp-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.rsvp-pad button {
  min-height: 76px;
  border: 0;
  border-radius: 14px;
  background: #121212;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform .15s var(--ease);
}
.rsvp-pad button:active { transform: scale(.97); }
.rsvp-pad .n { font-family: var(--num); font-size: 42px; font-weight: 600; line-height: .75; padding-top: 5px; color: #fff; }
.rsvp-pad .lbl { font-size: 14px; font-weight: 600; color: var(--led-dim); }
.rsvp-pad.ask button { box-shadow: inset 0 0 0 1px rgba(232, 169, 58, .45); }
.rsvp-pad .on .lbl { color: #fff; }
.rsvp-pad .on-in { box-shadow: inset 0 0 0 2px var(--led-in); }
.rsvp-pad .on-in .n { color: var(--led-in); text-shadow: 0 0 14px rgba(67, 224, 143, .5); }
.rsvp-pad .on-maybe { box-shadow: inset 0 0 0 2px var(--gold); }
.rsvp-pad .on-maybe .n { color: var(--gold); text-shadow: 0 0 14px rgba(232, 169, 58, .5); }
.rsvp-pad .on-out { box-shadow: inset 0 0 0 2px var(--led-out); }
.rsvp-pad .on-out .n { color: var(--led-out); text-shadow: 0 0 14px rgba(255, 110, 92, .5); }
.rsvp-ask { margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--gold); }

.bench { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bench-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bench-label { font-size: 14px; font-weight: 600; color: #cfcbc1; }
.bench-label b { font-family: var(--num); font-size: 28px; font-weight: 600; color: #fff; margin-left: 6px; }
.bench-label .of { font-family: var(--num); font-size: 19px; color: var(--led-dim); margin-left: 3px; }
.bench-state { font-size: 14px; font-weight: 700; }
.bench-state.ok { color: var(--led-in); }
.bench-state.warn { color: var(--gold); }
.bench-state.bad { color: var(--led-out); }
.slots { display: flex; gap: 4px; margin-top: 10px; }
.slots i { flex: 1; height: 8px; border-radius: 2px; background: rgba(255, 255, 255, .1); transform-origin: left; }
.slots i.f { background: var(--gold); box-shadow: 0 0 8px rgba(232, 169, 58, .6); }
.slots i.m { background: rgba(232, 169, 58, .35); }
@keyframes fill { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.app.enter .slots i.f, .app.enter .slots i.m { animation: fill .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 200ms); }
.bench-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.gpill { font-family: var(--num); font-size: 22px; font-weight: 600; line-height: 1; }
.gpill.ok { color: var(--led-in); }
.gpill.warn { color: var(--gold); }
.gpill.bad { color: var(--led-out); }
.gtext { font-size: 14px; font-weight: 600; color: var(--led); }
.beer-chip { margin-left: auto; border: 0; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(232, 169, 58, .14); color: var(--gold); font-size: 14px; font-weight: 700; white-space: nowrap; }
.beer-chip.on { background: var(--gold); color: #1a1204; }
.beer-sheet { margin-top: 14px; padding: 12px 14px 14px; border-radius: 14px; background: #151515; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.beer-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.beer-sheet-head h4 { font-size: 16px; font-weight: 700; color: #fff; }
.x { border: 0; background: none; width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--led-dim); }
.beer-board { list-style: none; margin: 4px 0 8px; padding: 0; }
.beer-board li { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 15px; color: var(--led); }
.beer-board li.me { color: var(--gold); }
.beer-board b { font-family: var(--num); font-size: 24px; font-weight: 600; line-height: .8; }
.beer-none { margin: 6px 0 8px; font-size: 14px; color: var(--led-dim); }
.beer-ask { margin: 12px 0 8px; font-size: 13px; font-weight: 600; color: var(--led-dim); }
.cans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cans button { height: 48px; border: 0; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px rgba(232, 169, 58, .35); color: var(--gold); font-family: var(--num); font-size: 28px; font-weight: 600; line-height: 1; padding-top: 4px; }
.cans button.on { background: var(--gold); color: #1a1204; box-shadow: none; }
.beer-drop { width: 100%; margin-top: 10px; height: 40px; border: 0; background: none; color: var(--led-dim); font-size: 14px; font-weight: 600; }

/* ------------------------------------------------------------ locker room */
.block { padding: 22px 0 4px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.block-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.stamp { border: 0; background: none; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--mute); }
.muted { font-size: 13px; color: var(--mute); }

.game { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; border-top: 1px solid var(--ice-3); }
.game:first-child { border-top: 0; }
.g-date { font-size: 13px; font-weight: 600; color: var(--mute); }
.g-opp { font-size: 16px; font-weight: 650; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-opp em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--mute); margin-left: 8px; }
.game.past .g-opp { font-weight: 500; color: var(--ink-2); }
.g-score { display: flex; align-items: baseline; gap: 8px; font-family: var(--num); font-size: 26px; font-weight: 600; line-height: .8; color: var(--ink); }
.g-score.up { font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.3; color: var(--ink-2); }
.g-score em { font-family: "Figtree", sans-serif; font-style: normal; font-size: 11px; font-weight: 700; color: var(--mute); }
.res { font-style: normal; font-size: 21px; }
.r-W { color: var(--in); }
.r-L { color: var(--out); }
.r-T { color: var(--mute); }

.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings th { padding: 6px 4px; font-size: 12px; font-weight: 600; color: var(--mute); text-align: right; }
.standings th:nth-child(2) { text-align: left; }
.standings td { padding: 12px 4px; border-top: 1px solid var(--ice-3); font-size: 15px; text-align: right; color: var(--ink-2); }
.standings td.pos { width: 26px; text-align: center; font-family: var(--num); font-size: 22px; line-height: .8; color: var(--mute); }
.standings td.team { max-width: 0; width: 100%; text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standings td b { font-family: var(--num); font-size: 25px; font-weight: 600; line-height: .8; color: var(--ink); }
.standings td.gd.plus { color: var(--in); }
.standings td.gd.minus { color: var(--out); }
.standings tr.me td { background: rgba(232, 169, 58, .18); }
.standings tr.me td.pos { color: var(--gold-ink); box-shadow: inset 3px 0 0 var(--gold); }
.standings tr.me td.team { font-weight: 800; }

.page-head { display: flex; justify-content: space-between; align-items: baseline; padding: var(--top) 0 4px; }
.page-head h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.page-head span { font-size: 14px; color: var(--mute); }
.seg { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); margin: 12px 0 6px; padding: 3px; border-radius: 11px; background: var(--ice-2); box-shadow: inset 0 0 0 1px var(--ice-3); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 9px; background: var(--ink); transform: translateX(calc(var(--at, 0) * 100%)); }
.seg button { position: relative; z-index: 1; height: 38px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.seg button.on { color: #fff; }
.lens-note { margin: 10px 0 2px; font-size: 13px; color: var(--mute); }
.empty-note { margin: 20px 0; font-size: 15px; color: var(--mute); }

.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 58px; border-top: 1px solid var(--ice-3); }
.rows > .row:first-child, .group + .row { border-top: 0; }
.row-hit { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 58px; padding: 6px 0; border: 0; background: none; text-align: left; }
.num { flex: none; width: 36px; text-align: right; font-family: var(--num); font-size: 31px; font-weight: 600; line-height: .8; padding-top: 5px; color: var(--ink); }
.face { flex: none; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-name { font-size: 17px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.you .row-name { font-weight: 800; }
.row.you .num { color: var(--gold-ink); }
.row.in .num { color: var(--in); }
.row.maybe .num { color: var(--maybe); }
.row.out .num { color: var(--out); }
.c { font-style: normal; margin-left: 6px; font-size: 12px; font-weight: 800; color: var(--gold-ink); }
.row-sub { margin-top: 2px; }
.gline { font-size: 13px; color: var(--ink-2); }
.gline em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--mute); margin: 0 9px 0 2px; }
.row-end { min-width: 56px; text-align: right; font-size: 15px; font-weight: 700; color: var(--ice-3); }
.row-end.in { color: var(--in); }
.row-end.maybe { color: var(--maybe); }
.row-end.out { color: var(--out); }
.row-end.dim { color: var(--mute); }
.row-end.pts b { font-family: var(--num); font-size: 31px; font-weight: 600; line-height: .7; color: var(--ink); }
.row.lead .row-end.pts b { color: var(--gold-ink); }
.group { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 4px; border-top: 1px solid var(--ice-3); font-size: 14px; font-weight: 700; color: var(--mute); }
.group b { font-family: var(--num); font-size: 21px; font-weight: 600; }

.tools { margin-top: 18px; border-top: 1px solid var(--ice-3); }
.tools summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 54px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.tools summary::-webkit-details-marker { display: none; }
.tools summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--mute); }
.tools[open] summary::after { content: "–"; }
.tools-note { margin: 14px 0 6px; font-size: 13px; color: var(--mute); }
.tools.open { border-top: 0; margin-top: 8px; }

label { display: block; margin: 14px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--ice-3); font-size: 16px; color: var(--ink); }
input:focus, select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
input[type="file"] { padding: 10px; font-size: 14px; color: var(--mute); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 9px 14px; border: 0; border-radius: 9px; background: var(--ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.btn-gold { width: 100%; margin-top: 18px; min-height: 52px; border: 0; border-radius: 13px; background: var(--gold); color: #1a1204; font-size: 16px; font-weight: 800; transition: transform .15s var(--ease); }
.btn-gold:active { transform: scale(.98); }
.btn-gold.tight { margin-top: 14px; min-height: 48px; }

/* ---------------------------------------------------------- player card */
.sheet { padding: calc(4px + var(--top)) 0 8px; }

/* Hockey card: gold foil front with the photo, cardboard back with the numbers. Tap to flip. */
.hcard { position: relative; width: min(100%, 320px); aspect-ratio: 5 / 7; margin: 6px auto 0; perspective: 1400px; cursor: pointer; outline: none; }
.hcard .cface { position: absolute; inset: 0; border-radius: 16px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .65s cubic-bezier(.3, .7, .2, 1); box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .75); }
.hcard .rear { transform: rotateY(180deg); }
.hcard.flipped .front { transform: rotateY(-180deg); }
.hcard.flipped .rear { transform: rotateY(0); }
.hcard:focus-visible .cface { box-shadow: 0 0 0 3px var(--gold); }
.front { background: linear-gradient(140deg, #f7da94, #e8a93a 28%, #8a5d10 55%, #f2c76c 80%, #a8741c); }
.front .art { position: absolute; inset: 8px; border-radius: 10px; overflow: hidden; background: radial-gradient(110% 70% at 50% 25%, #2b2b2b, #000 72%); }
.art-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.art-jersey { position: absolute; left: 50%; bottom: 16%; width: 86%; transform: translateX(-50%); }
.art-num { display: none; }
.card-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.front:has(.card-full) { background: #000; }
.card-num { position: absolute; top: 20px; left: 22px; font-family: var(--num); font-size: 60px; font-weight: 600; line-height: .8; color: var(--gold); text-shadow: 0 2px 0 #000, 0 0 18px rgba(232, 169, 58, .45); }
.card-crest { position: absolute; top: 18px; right: 18px; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.plate { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 34px 16px 14px; border-radius: 0 0 10px 10px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .88) 45%); }
.plate b { display: block; font-family: var(--num); font-size: 36px; font-weight: 600; line-height: .85; text-transform: uppercase; color: #fff; }
.plate span { display: block; margin-top: 5px; font-size: 13px; font-weight: 600; color: var(--gold); }
.rear { display: flex; flex-direction: column; padding: 18px 16px 16px; background: #d8dade; color: var(--ink); box-shadow: inset 0 0 0 7px #bfc3cb, 0 26px 40px -24px rgba(0, 0, 0, .75); }
.back-head { display: flex; gap: 12px; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.back-head .card-num { position: static; font-size: 48px; color: var(--ink); text-shadow: none; }
.back-head b { display: block; font-family: var(--num); font-size: 27px; font-weight: 600; line-height: .9; text-transform: uppercase; }
.back-head span { font-size: 12px; font-weight: 600; color: var(--mute); }
.card-stats { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.card-stats th { padding: 4px 3px; font-size: 11px; font-weight: 700; color: var(--mute); text-align: right; }
.card-stats td { padding: 6px 3px; border-top: 1px solid var(--ice-3); text-align: right; }
.card-stats th:first-child, .card-stats td:first-child { text-align: left; }
.card-stats tr.car td { font-weight: 800; border-top: 2px solid var(--ink); }
.rear h4 { margin: 14px 0 6px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.story { margin: 0; overflow: auto; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.rear textarea { flex: 1; min-height: 70px; width: 100%; resize: none; padding: 10px; border: 0; border-radius: 10px; background: var(--field); box-shadow: inset 0 0 0 1px var(--ice-3); font: inherit; font-size: 14px; color: var(--ink); }
.story-save { margin-top: 8px; height: 40px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.flip-hint { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--mute); }
.sheet .call { margin-top: 16px; border-top: 1px solid var(--ice-3); }

/* Your locker: quiet, folded, yours only */
.locker { margin-top: 22px; border-top: 1px solid var(--ice-3); }
.locker summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 50px; font-size: 14px; font-weight: 600; color: var(--mute); }
.locker summary::-webkit-details-marker { display: none; }
.locker summary em { font-style: normal; font-weight: 500; }
.locker-note { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.locker dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 8px 0 4px; font-size: 14px; }
.locker dt { color: var(--mute); }
.locker dd { margin: 0; text-align: right; font-weight: 600; }
.locker .left { font-weight: 800; color: var(--ink); }
.tools-sub { margin: 26px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.back { min-height: 44px; padding: 8px 0; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.back::before { content: "‹"; font-size: 22px; margin-right: 6px; }
.sheet-hero { display: flex; gap: 18px; align-items: center; margin: 4px 0 20px; }
.sheet-mark { flex: none; min-width: 64px; font-family: var(--num); font-size: 88px; font-weight: 600; line-height: .78; padding-top: 10px; color: var(--ink); }
.sheet-mark.face { width: 84px; height: 84px; min-width: 0; padding: 0; border-radius: 50%; object-fit: cover; }
.sheet-id h3 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.sheet-meta { margin: 6px 0 0; font-size: 15px; color: var(--mute); }
.tag { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 700; }
.tag.in { color: var(--in); }
.tag.maybe { color: var(--maybe); }
.tag.out { color: var(--out); }
.sheet-stats { display: grid; grid-template-columns: repeat(5, 1fr); padding: 14px 0 12px; border-top: 1px solid var(--ice-3); border-bottom: 1px solid var(--ice-3); }
.sheet-stats span { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.sheet-stats b { font-family: var(--num); font-size: 36px; font-weight: 600; line-height: .75; padding-top: 5px; color: var(--ink); }
.sheet-stats em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); }
.line, .fees summary, .call { display: flex; justify-content: space-between; align-items: center; min-height: 54px; border-bottom: 1px solid var(--ice-3); font-size: 15px; }
.line span, .fees summary span { color: var(--ink-2); }
.line b { font-weight: 700; color: var(--ink); text-align: right; }
.line b em { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--mute); }
.fees summary { list-style: none; cursor: pointer; }
.fees summary::-webkit-details-marker { display: none; }
.fees summary b { font-weight: 700; color: var(--ink); }
.fees summary b::after { content: "›"; margin-left: 8px; color: var(--mute); }
.fees[open] summary b::after { content: "⌄"; }
.fees dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 12px 0 4px; font-size: 15px; }
.fees dt { color: var(--mute); }
.fees dd { margin: 0; text-align: right; font-weight: 600; }
.fee-edit { padding-bottom: 12px; border-bottom: 1px solid var(--ice-3); }
.call { color: var(--ink); font-weight: 650; text-decoration: none; }
.call em { font-style: normal; font-weight: 500; color: var(--mute); }
.alerts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sw { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--field); box-shadow: inset 0 0 0 1px var(--ice-3); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--ice-3); transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--field); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.sw.on i { background: var(--in); }
.sw.on i::after { transform: translateX(16px); }
.signout { width: 100%; margin-top: 18px; min-height: 48px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--out); }

/* --------------------------------------------------------------- sign in */
.gate { min-height: 100dvh; display: flex; flex-direction: column; background: #000; }
.gate-art { padding-top: var(--top); background: #000; }
.gate-hero { width: 100%; height: auto; }
.gate-body { flex: 1; position: relative; margin-top: -18px; padding: 26px 20px calc(28px + var(--safe)); border-radius: 24px 24px 0 0; background: var(--ice); }
.gate-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.gate-kicker { margin: 4px 0 4px; font-size: 14px; color: var(--mute); }
.gate-fine { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--mute); }
.install-nudge { width: 100%; margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ice-2); font-size: 14px; font-weight: 700; text-align: left; }
.install-nudge em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--mute); }
.ios-help { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ chat */
body.on-chat, body.on-chat .app { background: #000; }
body.on-chat .app { height: 100dvh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.chat-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; color: var(--led); }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + var(--top)) 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.chat-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.mute { height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; color: var(--led); }
.mute.off { color: var(--led-dim); }
.thread { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 3px; padding: 8px 14px 16px; }
.thread-empty { margin: auto; color: var(--led-dim); }
.day { display: flex; justify-content: center; margin: 16px 0 8px; }
.day span { font-size: 12px; font-weight: 600; color: var(--led-dim); }
.row-msg { display: flex; max-width: 84%; }
.row-msg.lead { margin-top: 10px; }
.row-msg.mine { margin-left: auto; }
.stack { display: flex; flex-direction: column; min-width: 0; }
.mine .stack { align-items: flex-end; }
.who { margin: 0 0 4px 12px; font-size: 13px; font-weight: 600; color: #b4b0a6; }
.who b { margin-right: 5px; font-family: var(--num); font-size: 18px; font-weight: 600; color: var(--gold); }
.bubble { padding: 9px 14px 8px; border-radius: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.theirs .bubble { background: #1c1d20; border-bottom-left-radius: 6px; }
.mine .bubble { background: var(--gold); color: #1a1204; border-bottom-right-radius: 6px; }
.b-text { font-size: 16px; }
.b-time { display: inline-block; margin-left: 8px; font-size: 11px; opacity: .55; }
.shot-link { display: block; margin: 2px -8px 4px; }
.shot { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; background: #000; }
.bubble audio { display: block; width: 220px; max-width: 100%; height: 36px; }
.poll { display: grid; gap: 6px; margin-top: 8px; min-width: 200px; }
.poll button { display: flex; justify-content: space-between; align-items: center; min-height: 42px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .22); font-weight: 600; }
.poll button.on { box-shadow: inset 0 0 0 2px currentColor; }
.poll b { font-family: var(--num); font-size: 21px; }
.del { margin-top: 4px; padding: 4px 10px; border: 0; background: none; font-size: 13px; font-weight: 700; color: var(--led-out); }
.composer-dock { padding: 8px 12px calc(76px + var(--safe)); border-top: 1px solid rgba(255, 255, 255, .08); background: #000; }
.composer { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: #1c1d20; }
.composer input { flex: 1; min-width: 0; min-height: 40px; padding: 8px 6px; border-radius: 0; background: transparent; box-shadow: none; color: var(--led); }
.composer input:focus { box-shadow: none; }
.composer input::placeholder { color: var(--led-dim); }
.icon-btn, .send-btn { flex: none; position: relative; overflow: hidden; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: var(--led); }
.icon-btn svg, .send-btn svg { width: 22px; height: 22px; }
.icon-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.send-btn { background: var(--gold); color: #1a1204; }
.rec-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(76px + var(--safe)); border-top: 1px solid rgba(255, 255, 255, .08); background: #000; font-weight: 700; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--led-out); }
.rec-bar button { margin-left: auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gold); color: #1a1204; font-weight: 800; }

/* ------------------------------------------------------------------ tabs */
.tabs { position: fixed; left: 50%; bottom: 0; z-index: 20; transform: translateX(-50%); width: min(440px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 0 env(safe-area-inset-bottom); background: #000; box-shadow: inset 0 1px 0 rgba(232, 169, 58, .3); }
.tabs button { position: relative; height: 60px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 600; color: #807c74; }
.tabs svg { width: 23px; height: 23px; }
.tabs button.on { color: var(--gold); }
.tab-dot { position: absolute; top: 10px; right: calc(50% - 17px); width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.tab-badge { font-style: normal; position: absolute; top: 7px; right: calc(50% - 25px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--led-out); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(76px + var(--safe)); z-index: 30; transform: translate(-50%, 8px); padding: 10px 16px; border-radius: 999px; background: #000; color: #fff; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 520px) { .app { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .45); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
