/* The Game Room demo. Colors from highlandmeadowsgolfcourse.com's home page CSS:
   green #3b935f, deep green #28584b, mint #e0efde, navy #13263e. Type: Cormorant Garamond and
   Montserrat, served from fonts/. */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(fonts/montserrat-latin-700-normal.woff2) format("woff2"); }

:root {
  --green: #28584b;
  --green-deep: #1f463c;
  --leaf: #3b935f;
  --mint: #e0efde;
  --navy: #13263e;
  --paper: #f4f2ec;
  --card: #ffffff;
  --ink: #13263e;
  --muted: #5d6a78;
  --line: #e2e2da;
  --line-strong: #cdd2c8;
  --warn: #9a3b26;
  --gold-ink: #7a6a3a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 16px;
  --gutter: 16px;
  --tabbar: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--green); color: var(--ink); font: 400 15px/1.45 var(--sans); overflow-x: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

.app { min-height: 100vh; min-height: 100dvh; max-width: 480px; margin: 0 auto; background: var(--paper); position: relative; }
.app.dark { background: var(--green); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--green); color: #fff; padding: calc(var(--safe-t) + 10px) var(--gutter) 10px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.bar h1 { margin: 0; text-align: center; font: 600 13px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.bar .back:active { background: rgba(255,255,255,.12); }
.bar .back svg { width: 22px; height: 22px; }
.pill { display: inline-block; font: 700 9.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 5px 7px 4px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); color: #fff; justify-self: end; }
.pill.ink { border-color: var(--line-strong); color: var(--muted); }

/* ---------- home ---------- */
.home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; background:
  radial-gradient(120% 60% at 50% 0%, rgba(59,147,95,.35), rgba(40,88,75,0) 60%),
  linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%); padding: calc(var(--safe-t) + 14px) var(--gutter) calc(var(--safe-b) + 18px); }
.home-top { display: flex; justify-content: flex-end; }
.crest { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 18px 0 26px; }
.crest img { width: 64px; height: auto; }
.crest .club { font: 500 30px/1.05 var(--serif); margin: 16px 0 6px; letter-spacing: .01em; }
.crest .place { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.crest .rule { width: 44px; height: 1px; background: rgba(255,255,255,.4); margin: 18px auto 14px; }
.crest .title { font: 500 italic 22px/1 var(--serif); color: var(--mint); }
.home-actions { display: grid; gap: 10px; }
.a2hs { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: rgba(224,239,222,.12); border: 1px solid rgba(224,239,222,.35); font: 500 12.5px/1.5 var(--sans); color: #fff; }
.a2hs b { display: block; font-weight: 700; color: var(--mint); margin-bottom: 4px; }
.a2hs .btn { min-height: 44px; margin-top: 10px; width: 100%; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 18px; border-radius: 14px; font: 600 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; }
.btn.primary { background: var(--mint); color: var(--green-deep); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px rgba(0,0,0,.18); }
.btn.solid { background: var(--green); color: #fff; }
.btn.ghost { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.btn.line { border: 1px solid var(--line-strong); color: var(--ink); background: var(--card); }
.btn:active { transform: translateY(1px); filter: brightness(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.btn small { display: block; font: 500 11.5px/1.3 var(--sans); opacity: .75; margin-top: 3px; letter-spacing: 0; }
.btn .stack { display: flex; flex-direction: column; align-items: center; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 112px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; text-align: left; }
.tile svg { width: 26px; height: 26px; color: var(--mint); }
.tile b { display: block; font: 600 14px/1.25 var(--sans); margin-top: 12px; }
.tile span { display: block; font: 500 11.5px/1.35 var(--sans); opacity: .72; margin-top: 3px; }
.tile .soon { display: inline-block; margin-top: 6px; font: 700 9px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green-deep); background: var(--mint); padding: 4px 6px 3px; border-radius: 4px; opacity: 1; }
.home-foot { margin-top: auto; padding-top: 22px; font: 500 11px/1.5 var(--sans); color: rgba(255,255,255,.66); text-align: center; }
.home-foot p { margin: 0 0 6px; }
.home-foot .status { color: var(--mint); }

/* ---------- content screens ---------- */
.page { padding: 18px var(--gutter) calc(var(--tabbar) + var(--safe-b) + 28px); }
.page.no-tabs { padding-bottom: calc(var(--safe-b) + 28px); }
.eyebrow { font: 700 10.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); margin: 0 0 10px; }
.h2 { font: 600 28px/1.08 var(--serif); margin: 0 0 6px; color: var(--ink); }
.lede { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
.section { margin: 26px 0 0; }
.section > .eyebrow { margin-bottom: 12px; }
.card { background: var(--card); border-radius: var(--r); box-shadow: 0 1px 2px rgba(19,38,62,.06), 0 0 0 1px rgba(19,38,62,.05); }
.card + .card { margin-top: 10px; }
.pad { padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.fine { font: 500 11px/1.5 var(--sans); color: var(--muted); }
.demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--mint); color: var(--green-deep); font: 500 12.5px/1.45 var(--sans); }
.demo-note b { font-weight: 700; }
.demo-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }

/* fields */
.field { display: block; margin: 0 0 14px; }
.field > span { display: block; font: 600 12px/1 var(--sans); color: var(--muted); margin: 0 0 7px; letter-spacing: .02em; }
.field input { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; padding: 0 14px; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(59,147,95,.18); }
.field .hint { display: block; font: 500 11.5px/1.4 var(--sans); color: var(--muted); margin-top: 6px; }
.field .err { display: block; font: 600 11.5px/1.4 var(--sans); color: var(--warn); margin-top: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font: 600 13px/1 var(--sans); display: inline-flex; align-items: center; gap: 7px; }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #e9e8e1; border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { min-height: 40px; border-radius: 9px; font: 600 12.5px/1.15 var(--sans); color: var(--muted); padding: 4px 6px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(19,38,62,.15); }

/* game picker */
.game { padding: 16px; }
.game-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-head b { font: 600 22px/1 var(--serif); }
.game p { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); }
.game.off .opt { display: none; }
.opt { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.switch { width: 52px; height: 32px; border-radius: 999px; background: #d4d6cf; position: relative; flex: 0 0 52px; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--leaf); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* players */
.plist { padding: 4px 0; }
.prow { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 16px; }
.prow + .prow { border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; font: 700 14px/1 var(--sans); }
.prow .who b { display: block; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .who span { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.prow .who { min-width: 0; }
.x { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.x svg { width: 18px; height: 18px; }

.qr-card { padding: 20px 16px 18px; text-align: center; }
.qr-box { width: 208px; height: 208px; margin: 4px auto 14px; padding: 12px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.qr-box svg { width: 100%; height: 100%; display: block; }
.code { font: 600 13px/1 var(--sans); letter-spacing: .2em; color: var(--muted); }
.code b { color: var(--ink); }

/* ---------- hole screen ---------- */
.hole-hero { background: var(--green); color: #fff; padding: 6px var(--gutter) 16px; }
.hole-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hole-no { font: 600 58px/.85 var(--sans); letter-spacing: -.03em; }
.hole-no small { display: block; font: 700 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.hole-facts { display: grid; grid-auto-flow: column; gap: 16px; text-align: right; }
.hole-facts div { font: 700 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.hole-facts div b { display: block; font: 600 24px/1 var(--sans); letter-spacing: 0; text-transform: none; margin-top: 6px; white-space: nowrap; }
.hole-facts div b small { font: 600 12px/1 var(--sans); opacity: .8; }
/* YDS: the tee's color dot sits beside the label. With mixed tees, a row of yardages along the bottom instead. */
.hole-facts .yds .lbl { display: inline-flex; align-items: center; gap: 5px; }
.tee-yards { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font: 600 15px/1 var(--sans); }
.tee-yards > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tee-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter); margin: 0; scrollbar-width: none; background: var(--green-deep); scroll-padding: 0 var(--gutter); }
.strip::-webkit-scrollbar { display: none; }
.strip button { flex: 0 0 34px; height: 34px; border-radius: 10px; font: 600 13px/1 var(--sans); color: rgba(255,255,255,.75); background: rgba(255,255,255,.06); }
.strip button.done { color: #fff; background: rgba(224,239,222,.18); }
.strip button[aria-current="true"] { background: var(--mint); color: var(--green-deep); }

.scores { padding: 14px var(--gutter) 0; }
.srow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; min-height: 84px; }
.srow + .srow { border-top: 1px solid var(--line); }
.srow .who { min-width: 0; }
.srow .who b { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 17px; color: var(--ink); }
.srow .who b .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; align-self: baseline; }
/* the line under the name only (a wider selector once shrank the name itself to 12px grey) */
.srow .who > span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.srow .who b .par { flex: 0 0 auto; font: 400 12px/1.45 var(--sans); color: var(--muted); align-self: baseline; }
.dots { display: inline-flex; gap: 3px; flex: 0 0 auto; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); display: block; }
.dots i.give { background: none; box-shadow: inset 0 0 0 1.5px var(--warn); }
.stepper { display: grid; grid-template-columns: 52px 60px 52px; align-items: center; gap: 4px; }
.stepper button.step { height: 52px; border-radius: 14px; background: #eef0ea; display: grid; place-items: center; color: var(--green-deep); }
.stepper button.step:active { background: var(--mint); }
.stepper button.step svg { width: 20px; height: 20px; }
.stepper .val { height: 60px; border-radius: 16px; display: grid; place-items: center; font: 600 28px/1 var(--sans); color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.stepper .val.empty { color: var(--muted); font: 600 12px/1.15 var(--sans); text-align: center; background: var(--mint); box-shadow: none; color: var(--green-deep); }
.stepper .val.under { box-shadow: inset 0 0 0 2px var(--leaf); color: var(--leaf); }
.stepper .val.over { box-shadow: inset 0 0 0 1.5px var(--line-strong); }

.live { padding: 18px var(--gutter) 0; }
.live h3 { margin: 0 0 10px; }
.lrow { display: grid; grid-template-columns: 82px 1fr; gap: 10px; padding: 12px 16px; align-items: baseline; font-size: 13.5px; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow > span:first-child { font: 700 10.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.lrow b { font-weight: 600; }
.lrow .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.press { margin-top: 10px; width: 100%; min-height: 46px; border-radius: 12px; border: 1.5px dashed var(--leaf); color: var(--green-deep); font: 600 13.5px/1.25 var(--sans); background: #f3f8f1; padding: 8px 14px; }

.nextbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); z-index: 15; pointer-events: none; }
.nextbar .in { max-width: 480px; margin: 0 auto; padding: 10px var(--gutter); display: grid; grid-template-columns: 54px 1fr; gap: 8px; pointer-events: auto; background: linear-gradient(180deg, rgba(244,242,236,0), var(--paper) 30%); }
.nextbar .prev { height: 54px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-strong); display: grid; place-items: center; }
.nextbar .prev svg { width: 22px; height: 22px; }
.nextbar .go { height: 54px; border-radius: 14px; background: var(--green); color: #fff; font: 600 15px/1 var(--sans); display: flex; align-items: center; justify-content: center; gap: 8px; }
.nextbar .go.ready { background: var(--leaf); }
.nextbar .go svg { width: 18px; height: 18px; }
.page.with-next { padding-bottom: calc(var(--tabbar) + var(--safe-b) + 96px); }

/* ---------- tab bar ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 16; background: #fff; box-shadow: 0 -1px 0 var(--line); padding-bottom: var(--safe-b); }
.tabs .in { max-width: 480px; margin: 0 auto; height: var(--tabbar); display: grid; grid-template-columns: repeat(4, 1fr); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font: 600 10.5px/1 var(--sans); letter-spacing: .04em; color: var(--muted); }
.tabs a svg { width: 22px; height: 22px; }
.tabs a[aria-current="page"] { color: var(--green); }

/* ---------- board ---------- */
.total-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; }
.total-row + .total-row { border-top: 1px solid var(--line); }
.total-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
/* a points total */
.pts { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.amt .u { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.amt { font: 600 19px/1 var(--sans); letter-spacing: -.01em; }
.board-game { padding: 16px; }
.board-game header { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.board-game header b { font: 600 22px/1 var(--serif); }
.board-game header span { font: 600 11px/1 var(--sans); color: var(--muted); letter-spacing: .04em; }
.part { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; align-items: baseline; }
.part:first-of-type { border-top: 0; }
.part .s { text-align: right; font-weight: 600; }
.part .s.lead { color: var(--leaf); }
.part em { font-style: normal; color: var(--muted); font-size: 12px; display: block; }
.vs { font: 600 12px/1.3 var(--sans); color: var(--muted); margin: 12px 0 2px; }
.vs:first-of-type { margin-top: 0; }

/* ---------- scorecard ---------- */
.sc-wrap { margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
table.sc { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
table.sc th, table.sc td { text-align: center; padding: 0; height: 34px; border-bottom: 1px solid var(--line); }
table.sc col.lbl { width: 58px; }
table.sc col.tot { width: 34px; }
table.sc th:first-child, table.sc td:first-child { text-align: left; padding-left: 10px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sc thead th { background: var(--green); color: #fff; font: 700 11px/1 var(--sans); height: 32px; }
table.sc thead th:first-child { border-top-left-radius: 12px; }
table.sc thead th:last-child { border-top-right-radius: 12px; }
table.sc tr.meta td { color: var(--muted); font-size: 11px; height: 26px; background: #fafaf6; }
table.sc td.t { font-weight: 700; background: #f3f6f1; }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; position: relative; font-weight: 600; }
.mk.b1 { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--leaf); color: var(--leaf); }
.mk.b2 { border-radius: 50%; box-shadow: 0 0 0 1.5px var(--leaf), 0 0 0 3.5px #fff, 0 0 0 5px var(--leaf); color: var(--leaf); }
.mk.o1 { box-shadow: 0 0 0 1.25px var(--line-strong); border-radius: 3px; }
.mk.o2 { box-shadow: 0 0 0 1.25px var(--muted), 0 0 0 3px #fff, 0 0 0 4.25px var(--muted); border-radius: 2px; }
.mk sup { position: absolute; top: -3px; right: -4px; display: flex; gap: 1px; }
.mk sup i { width: 4px; height: 4px; border-radius: 50%; background: var(--leaf); display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 11.5px; color: var(--muted); align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.legend .mk { width: 18px; height: 18px; font-size: 10px; }
.legend .mk.b2, .legend .mk.o2 { margin: 0 5px; }
.totals td, .totals th { height: 40px; }
table.tot { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tot th, table.tot td { padding: 10px 8px; text-align: right; border-top: 1px solid var(--line); }
table.tot th { font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-top: 0; }
table.tot td:first-child, table.tot th:first-child { text-align: left; padding-left: 16px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.tot td:last-child, table.tot th:last-child { padding-right: 16px; }

/* ---------- standings ---------- */
.standings-hero { background: var(--green); color: #fff; padding: 22px var(--gutter) 26px; text-align: center; }
.standings-hero .h2 { color: #fff; }
.standings-hero p { margin: 0; font-size: 13px; opacity: .8; }
.st-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.st-top b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rank { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--green-deep); display: grid; place-items: center; font: 700 13px/1 var(--sans); }
.standing .amt { font-size: 22px; }
.result { padding: 14px 16px; }
.result + .result { border-top: 1px solid var(--line); }
.result .gname { display: block; margin-bottom: 5px; color: var(--muted); font: 600 11px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; }
.result b { font-size: 15px; font-weight: 600; }
.breakdown { margin-top: 8px; }
table.tot.breakdown td:first-child { padding-left: 0; }
table.tot.breakdown td:last-child { padding-right: 0; }
.breakdown td.g { color: var(--muted); }

/* ---------- passport ---------- */
.passport { position: relative; padding: 22px 18px 20px; border-radius: 18px; background:
  linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0)), var(--navy); color: #fff; overflow: hidden; }
.passport .ribbon { position: absolute; top: 18px; right: -38px; transform: rotate(35deg); background: var(--mint); color: var(--green-deep); font: 700 10px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; padding: 7px 44px; }
.passport .ttl { font: 600 30px/1 var(--serif); margin: 14px 0 6px; }
.passport .sub { font-size: 12.5px; opacity: .78; max-width: 250px; }
.stamps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 22px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.28); display: grid; place-items: center; text-align: center; font: 600 9.5px/1.25 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 8px; }
.stamp.got { border: 0; color: var(--mint); }
.stamp.got svg { width: 100%; height: 100%; }

/* misc */
.center { text-align: center; }
.code-inline { white-space: nowrap; font: 600 .78em/1 var(--sans); letter-spacing: .02em; }
.stack-10 > * + * { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.empty-state { text-align: center; padding: 40px 8px; color: var(--muted); }
.toast { pointer-events: none; position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 84px); transform: translateX(-50%); background: var(--navy); color: #fff; font: 600 13px/1.3 var(--sans); padding: 11px 16px; border-radius: 12px; z-index: 40; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.sheet-bg { position: fixed; inset: 0; background: rgba(19,38,62,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--paper); border-radius: 22px 22px 0 0; padding: 10px var(--gutter) calc(var(--safe-b) + 18px); max-height: 92vh; overflow-y: auto; }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
