/* Hagolf design system. One accent, big numbers in Oswald, one primary action per screen, flat panels told apart by a
   hairline and by space, and every colour a
   custom property that app.js overwrites from the chosen theme's `ui` palette (mixed by build.py). What is
   written here is the hagolf theme, so the first paint is right before any of that runs.
   `color-scheme` is set to the one the theme actually is, which also tells Chrome's and Samsung's auto-dark
   not to recolour a page that has already done it properly. */
@font-face { font-family: "Oswald"; src: url("fonts/oswald/Oswald-Variable.ttf") format("truetype"); font-weight: 200 700; font-display: swap; }

:root {
  color-scheme: only light;
  --bg: #F6F6F4; --card: #FFFFFF; --card2: #F0F0EE; --line: #E6E6E3; --line2: #C9C9C7;
  --ink: #17181A; --ink2: #4B4E52; --ink3: #6E7378;
  --green: #1E6B44; --green-dark: #185636; --green-soft: #D8E3DB; --green-ink: #FFFFFF;
  --gold: #E5A80B; --gold-soft: #F4EBD3; --gold-ink: #674C05; --green-hi: #F5DC9D;
  --under: #1F8A5B; --par: #5B6A61; --bogey: #D9931A; --double: #C8433A; --pick: #8A6D3B;
  --danger: #C8433A; --danger-soft: #F0E1DE; --ok: #2E8B57;
  --bronze: #D9A46A; --on-bronze: #17181A; --on-ink: #FFFFFF; --on-double: #FFFFFF; --on-gold: #17181A;
  --sc-eagle: #073B26; --sc-birdie: #1F8A5B; --sc-par: #9AA1A5; --sc-bogey: #E0A020; --sc-double: #C4362C; --sc-triple: #78221C;
  --r: 6px; --r-s: 4px; --r-xs: 3px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
  --tap: 44px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { touch-action: manipulation; }
/* the app scrolls, not the document: a document scroll makes Chrome float its own "move to top" chip over us */
#app { height: 100%; overflow-y: auto; overscroll-behavior-y: none; -webkit-overflow-scrolling: touch; }
a { color: var(--green); text-decoration: none; }
h1 { font-family: "Oswald", sans-serif; font-size: 20px; margin: 0; font-weight: 500; letter-spacing: .4px; }
h2 { display: flex; align-items: center; gap: 12px; font-size: 10px; text-transform: uppercase; letter-spacing: 2.2px; color: var(--ink3); margin: 28px 0 6px; font-weight: 700; }
h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h2:first-child { margin-top: 6px; }
h3 { font-size: 17px; margin: 0 0 4px; font-weight: 700; }
p { margin: 8px 0; }
.muted { color: var(--ink3); } .small { font-size: 13px; } .tiny { font-size: 11px; } .center { text-align: center; }
.warn { color: var(--bogey); } .acc { color: var(--green); font-weight: 700; }
.num { font-family: "Oswald", -apple-system, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
button { font: inherit; color: inherit; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- chrome: header, main, tab bar, action bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 4px; padding: calc(8px + var(--sat)) 10px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .back { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); font-size: 26px; line-height: 1; flex: none; }
.top .back:active { background: var(--card2); }
.top .back.none { width: 6px; }
.top .ttl { min-width: 0; flex: 1; }
.top .ttl h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sub { color: var(--ink3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .brand { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 5px; text-transform: uppercase; color: var(--ink); }
.top .acts { display: flex; align-items: center; gap: 2px; flex: none; }
.iconbtn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ink2); display: grid; place-items: center; cursor: pointer; }
.iconbtn:active { background: var(--card2); }
.iconbtn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn .n { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.iconbtn .n.quiet { background: var(--green); color: var(--green-ink); }
.iconbtn.on { color: var(--green); }

main { padding: 6px 16px 28px; max-width: 640px; margin: 0 auto; }
main.with-bar { padding-bottom: calc(100px + var(--sab)); }
main.with-tabs { padding-bottom: calc(92px + var(--sab)); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 16px calc(12px + var(--sab)); background: var(--bg); border-top: 1px solid var(--line); z-index: 5; }
.bar > * { flex: 1; }
.bar > .btn:not(.primary) { flex: 0 0 auto; min-width: 120px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 6px 4px calc(8px + var(--sab)); background: var(--card); border-top: 1px solid var(--line); z-index: 5; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px; color: var(--ink3); font-size: 11px; font-weight: 600; border-radius: 4px; position: relative; }
.tabs a svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--green); }
.tabs a:active { background: var(--card2); }
.tabs a .n { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 4px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-size: 16px; font-weight: 600; cursor: pointer; text-align: center; }
.btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.btn.primary:active { background: var(--green-dark); }
.btn.big { width: 100%; min-height: 54px; margin: 12px 0 4px; border-radius: 4px; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 2px; text-transform: uppercase; }
.btn.wide { width: 100%; }
.btn.small { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 3px; }
.btn.small svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--green); }
.btn.soft { background: var(--green-soft); border-color: transparent; color: var(--green); box-shadow: none; }
.btn.danger { border-color: var(--danger); color: var(--danger); background: transparent; box-shadow: none; }
.btn.danger.fill { background: var(--danger); color: #fff; }
.btn.disabled, .btn:disabled { opacity: .45; pointer-events: none; }
.btn:active { filter: brightness(.95); }
.btnrow { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btnrow .btn { flex: 1 1 auto; }

/* ---- cards, lists, rows */
.card { background: var(--card); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; color: var(--ink); border: 1px solid var(--line); width: 100%; text-align: left; }
.card.tight { padding: 10px 14px; }
.card.row, .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row > :first-child { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; }
.row > .btn, .row > .pill, .row > .chev, .row > .avatar { flex: 0 0 auto; }
.row.plain { background: none; border: 0; padding: 0; width: 100%; color: inherit; text-align: left; cursor: pointer; box-shadow: none; }
.card .name, .name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.chev { color: var(--ink3); font-size: 22px; flex: none; }
.x { width: 32px; height: 32px; border-radius: 3px; border: 0; background: none; color: var(--ink3); font-size: 20px; flex: none; }
.warnrow { border-left: 4px solid var(--bogey); }
.list { margin: 4px 0 10px; }
.list > * { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; border-top: 1px solid var(--line); color: var(--ink); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; }
.list > *:first-child { border-top: 0; }
.list > a:active, .list > button:active { background: var(--card2); }
.list .lead { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.list .lead > div { min-width: 0; }
.list .lead .name { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .lead .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .lead svg { width: 20px; height: 20px; stroke: var(--ink3); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--card2); color: var(--ink2); white-space: nowrap; }
.pill.scoring { background: var(--gold-soft); color: var(--gold-ink); }
.pill.done, .pill.good { background: var(--green-soft); color: var(--green); }
.pill.setup { background: var(--card2); color: var(--ink2); }
.pill.warn { background: var(--gold-soft); color: var(--gold-ink); }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-family: "Oswald", sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .5px; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 24px; }
.avatar.ink { background: var(--ink); color: var(--on-ink); }

.banner { display: block; background: none; border: 1px solid var(--line); color: var(--ink2); border-radius: var(--r-s); padding: 11px 13px; margin: 10px 0; font-size: 13px; cursor: pointer; }
.banner.accent { background: var(--green-soft); border-color: transparent; color: var(--green); font-weight: 600; }
.banner.warn { background: var(--gold-soft); border-color: transparent; color: var(--gold-ink); }
.banner.muted { color: var(--ink3); }
button.banner { width: 100%; text-align: left; white-space: normal; font: inherit; font-weight: 600; }
.banner.act { display: flex; align-items: center; gap: 10px; }
.banner.act > span { flex: 1 1 auto; }
.banner.act > .btn, .banner.act > .x { flex: 0 0 auto; }
.ios-share { display: inline-block; border: 1px solid var(--ink3); border-radius: 4px; padding: 0 5px; font-size: 12px; }

.empty { text-align: center; padding: 28px 12px; color: var(--ink3); }
.empty svg { width: 40px; height: 40px; stroke: var(--line2); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.empty b { display: block; color: var(--ink2); font-size: 16px; margin-bottom: 2px; }
.empty .btn { margin-top: 12px; }

.now { background: var(--green); color: var(--green-ink); border-radius: var(--r); padding: 16px 18px; margin: 12px 0; display: block; }
.now .k { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; opacity: .8; font-weight: 700; }
.now .name { font-size: 20px; margin-top: 2px; }
.now .live { color: inherit; opacity: .95; margin-top: 8px; font-size: 14px; }
/* gold only where gold can be read on the accent panel; build.py walks it to the panel ink where it cannot */
.now .live b { color: var(--green-hi); }
.now .cta { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.18); border-radius: 3px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.mecard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; color: var(--ink); }
.mecard .big { font-size: 40px; font-weight: 600; line-height: 1; }
.mecard .row { margin-top: 8px; }
.mecard .row:first-child { margin-top: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.stats div { display: flex; flex-direction: column; }
.stats b { font-size: 26px; line-height: 1.1; } .stats small { color: var(--ink3); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.live { margin-top: 6px; font-size: 13px; color: var(--ink2); }
.live b { color: var(--green); }

/* ---- home: the honours board. The look is rules, space and type, never a colour of its own, so every theme
   carries it unchanged: only --bg, --ink, --ink2, --ink3, --line and the accent are ever named. No card, no
   shadow, no chip; numbers sit right in the condensed face the posters use. */
.mast > .acts { flex: 1 1 0; }
.mast > .acts.end { justify-content: flex-end; }
.mast .ttl { flex: 0 1 auto; text-align: center; }
.mast .wordmark { margin-left: 5px; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 5px; text-transform: uppercase; color: var(--ink); }
.mast h1 { font-size: 17px; letter-spacing: 3px; text-transform: uppercase; }

.caps { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--ink3); }

.inplay { text-align: center; padding: 22px 0 0; }
.inplay .rule { width: 34px; height: 2px; background: var(--green); margin: 0 auto 14px; }
.inplay .k { font-size: 10px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--green); }
.inplay .k.quiet { color: var(--ink3); }
.inplay h1 { margin: 9px 0 0; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 31px; line-height: 1.05; letter-spacing: .4px; text-transform: uppercase; }
.inplay .where { margin: 7px 0 0; font-size: 13px; color: var(--ink3); }
/* the figures under the player's own hero: the card chrome stripped back to the ruled strip the board uses */
.herostats { background: none; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; margin: 20px 0 0; padding: 13px 2px; }
.herostats .stats { margin: 0; gap: 10px; }
.herostats .stats div { flex: 1; align-items: center; }
.herostats .stats b { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 24px; line-height: 1; }
.herostats .stats small { margin-top: 5px; }

.board { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board > div { display: flex; align-items: baseline; gap: 14px; padding: 12px 2px; border-top: 1px solid var(--line); }
.board > div:first-child { border-top: 0; }
.board .p { flex: none; width: 14px; font-family: "Oswald", sans-serif; font-size: 14px; color: var(--ink3); }
.board .who { flex: 1; min-width: 0; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .v { flex: none; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 23px; line-height: 1; }
.board > div:first-child .v { color: var(--green); }
.thru { margin: 11px 0 0; text-align: center; }

.btn.plate { width: 100%; min-height: 52px; margin-top: 18px; border-radius: 4px; box-shadow: none; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }

.sect { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; }
.sect .fill { flex: 1; height: 1px; background: var(--line); }
.sect a { font-size: 12px; }

.rows { font-variant-numeric: tabular-nums; }
.rows > * + * { border-top: 1px solid var(--line); }
.hrow { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 14px 2px 13px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; }
.hrow:active { background: var(--card2); }
.hrow .t { flex: 1; min-width: 0; }
.hrow .t b { display: block; font-size: 16px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow .t span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); }
.hrow .v { flex: none; font-family: "Oswald", sans-serif; font-weight: 500; font-size: 22px; line-height: 1; }
.hrow .v small { font-size: 11px; }
.hrow .v .u { font-size: 11px; letter-spacing: 1.2px; color: var(--ink3); }
.hrow .v.top { color: var(--green); }
.hrow .chev { align-self: center; }
/* an update on the home page is a ruled row like the rest; the Updates screen keeps the card */
.rows .note, .rows .note.unread { padding: 13px 2px; background: none; }
.rows .note .ic, .rows .note.unread .ic { width: 28px; height: 28px; background: none; }
.rows .note .ic svg { width: 19px; height: 19px; stroke: var(--ink3); }
.rows .note.unread .ic svg { stroke: var(--green); }
.rows .note.unread .body p { font-weight: 600; }

/* ---- forms */
label { display: block; color: var(--ink2); font-size: 13px; font-weight: 600; margin: 14px 0 0; }
input, select, button, textarea { font-family: inherit; }
input, select, textarea { width: 100%; margin-top: 6px; font-size: 17px; padding: 12px 14px; border-radius: var(--r-s); border: 1px solid var(--line2); background: var(--card); color: var(--ink); -webkit-appearance: none; appearance: none; font-weight: 500; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: var(--green); }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input[type=checkbox] { -webkit-appearance: checkbox; appearance: checkbox; accent-color: var(--green); width: auto; margin: 0 10px 0 0; transform: scale(1.25); vertical-align: middle; }
input::placeholder { color: var(--ink3); opacity: .8; font-weight: 400; }
.search { margin: 6px 0 10px; font-size: 16px; border-radius: 4px; padding-left: 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A877E' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50% / 18px no-repeat; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.two > .btn { align-self: stretch; }
.addr { overflow-wrap: anywhere; }
.two .btn { margin-top: 12px; }
.form { display: none; } .form.open { display: block; }
.form .btn.primary { margin-top: 16px; width: 100%; }
.form h2 { margin-top: 4px; }
.checks label { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; font-size: 16px; color: var(--ink); min-height: 44px; padding: 6px 0; margin: 0; font-weight: 500; }
.checks label > input { margin: 2px 0 0; }
.checks label > .muted { grid-column: 2; font-size: 13px; font-weight: 400; line-height: 1.35; margin-top: 2px; }
.checks details { margin-top: 6px; } .checks summary { list-style: none; cursor: pointer; }
.addbtn { width: 100%; margin: 10px 0; gap: 10px; border-style: dashed; box-shadow: none; background: transparent; }
.addbtn .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-size: 22px; font-weight: 800; line-height: 1; }
details.card > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 600; }
details.card > summary::after { content: "›"; color: var(--ink3); font-size: 22px; transform: rotate(90deg); }
details.card[open] > summary::after { transform: rotate(-90deg); }
.foldrow > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-weight: 600; color: var(--ink2); }
.foldrow > summary::-webkit-details-marker { display: none; }
.foldrow > summary::after { content: "›"; color: var(--ink3); font-size: 22px; transform: rotate(90deg); }
.foldrow[open] > summary::after { transform: rotate(-90deg); }
/* a switch row: the words on the left, the toggle on the right, the whole row tappable */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; font-size: 16px; font-weight: 500; color: var(--ink); cursor: pointer; }
.switch:first-of-type { border-top: 0; }
.switch > span { min-width: 0; }
.switch > span small { display: block; color: var(--ink3); font-size: 13px; font-weight: 400; }
.switch input { flex: none; margin: 0; width: 44px; height: 26px; border-radius: 999px; background: var(--line2); -webkit-appearance: none; appearance: none; position: relative; transform: none; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.segpick { display: flex; gap: 6px; margin-top: 8px; }
.segpick button { flex: 1; min-height: 40px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; }
.segpick button.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* ---- the gate and onboarding: centred, one thing on the screen */
main.bare { min-height: 100%; display: grid; place-items: center; padding: 24px 16px calc(24px + env(safe-area-inset-bottom)); }
.gate { width: 100%; max-width: 380px; text-align: center; }
.gatemark { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 40px; letter-spacing: 9px; text-transform: uppercase; color: var(--green); margin-bottom: 6px; }
.gate .tag { color: var(--ink2); margin: 0 0 22px; }
.gate .card { text-align: center; }
.gate #gbtn { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 2px; }
.gate .legal { color: var(--ink3); font-size: 12px; margin-top: 16px; }
.gate .preview { text-align: left; }
.gate .install { text-align: left; }
.gate .install h3 { font-size: 18px; margin: 0 0 6px; }
.gate .install .muted { margin: 0; font-size: 15px; }
.gate .install .steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink2); font-size: 15px; }
.gate .install .qr { width: 190px; height: 190px; }
.gate .install .linkbox { text-align: center; }
.onb h1 { font-size: 27px; margin: 8px 0 4px; letter-spacing: .2px; }
.onb .lead { color: var(--ink2); margin: 0 0 12px; }
.onb label { text-align: left; }
.onb .skip { display: block; margin-top: 14px; color: var(--ink3); font-size: 14px; }

/* ---- bottom sheet, replacing every native dialog */
.sheet-wrap { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.35); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(24px); } to { transform: none; } }
.sheet { position: relative; width: 100%; max-width: 640px; max-height: 88dvh; overflow-y: auto; background: var(--bg); border-radius: 8px 8px 0 0; padding: 0 16px calc(16px + var(--sab)); animation: rise .18s; }
/* the grip and the way out ride along as the sheet scrolls: a long sheet must never hide its own cross */
.sheet .sheethead { position: sticky; top: 0; z-index: 2; padding: 10px 0 8px; background: var(--bg); }
.sheet .grip { display: block; width: 38px; height: 4px; border-radius: 2px; background: var(--line2); margin: 0 auto; }
.sheet .sheetx { position: absolute; top: -2px; right: -10px; width: 40px; height: 40px; padding: 0; border: 0; background: none; color: var(--ink3); font-size: 26px; line-height: 1; cursor: pointer; }
.sheet .sheetx:active { color: var(--ink); }
.sheet h3 { font-size: 18px; margin: 4px 0 4px; }
.sheet .lead { color: var(--ink2); margin: 0 0 10px; font-size: 15px; }
.sheet .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sheet .acts .btn { width: 100%; }
.sheet .list { margin: 8px 0; }
.sheet label { margin-top: 10px; }

/* ---- looking at a rendered image: over the app, above the sheet it was opened from, never a new browser tab.
   Its own dark surround whatever the theme, because a poster is judged against nothing, and the chrome is only
   the count, the caption and the way out. */
.viewer { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; background: rgba(10,11,13,.94); animation: fade .15s; }
.viewer .vbar { display: flex; align-items: center; justify-content: space-between; padding: calc(4px + var(--sat)) 6px 4px 16px; color: #fff; }
.viewer .vof { font-size: 10px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; opacity: .65; }
.viewer .vx { width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.viewer .vstage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 12px; overflow: auto; overscroll-behavior: contain; }
.viewer .vstage img { max-width: 100%; max-height: 100%; border-radius: 3px; cursor: zoom-in; animation: rise .18s; }
.viewer .vstage.big { place-items: start center; padding: 0; }
.viewer .vstage.big img { width: 200%; max-width: none; max-height: none; border-radius: 0; cursor: zoom-out; }
.viewer .vfoot { display: flex; align-items: center; gap: 10px; padding: 8px 10px calc(10px + var(--sab)); color: #fff; }
.viewer .vfoot figcaption { flex: 1; min-width: 0; text-align: center; font-size: 13px; line-height: 1.35; opacity: .8; }
.viewer .vhint { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; opacity: .55; }
.viewer .vstage.big ~ .vfoot .vhint { visibility: hidden; }
.viewer .vnav { flex: none; width: 44px; height: 44px; border: 0; border-radius: 3px; background: rgba(255,255,255,.12); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.viewer .vnav:active { background: rgba(255,255,255,.24); }

/* ---- course picker, players in a round */
.course .name { font-size: 16px; }
.course .away { flex: none; font-size: 13px; font-weight: 600; color: var(--ink3); }
.recents { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.recents::-webkit-scrollbar { display: none; }
.rec { flex: 0 0 min(66vw, 230px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 1px; min-height: 94px; padding: 12px 14px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink); }
.rec:active { background: var(--card2); }
.rec b { font-size: 16px; font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec span { font-size: 13px; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rec small { margin-top: auto; padding-top: 4px; font-size: 12px; font-weight: 600; color: var(--green); }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pchip { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; min-height: 48px; }
.pchip small { color: var(--ink3); font-weight: 500; font-size: 11px; }
.pchip.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.pchip .plus { margin-right: 4px; }
.entry { padding: 12px 14px; }
.entry .row .name { font-size: 16px; }
.entry-tools { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.entry-tools select { width: auto; margin: 0; padding: 7px 30px 7px 12px; font-size: 14px; border-radius: 3px; min-height: 36px; }
.entry-tools input { width: 150px; margin: 0; padding: 7px 12px; font-size: 14px; border-radius: 3px; }
.entry-tools input.hi { width: 86px; text-align: center; }
.entry-tools .tool { display: inline-flex; align-items: center; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 3px; overflow: hidden; background: var(--card); }
.seg button { min-width: 38px; height: 36px; border: 0; background: transparent; color: var(--ink2); font-weight: 700; }
.seg button.on { background: var(--green); color: var(--green-ink); }
.seg-label { font-size: 12px; color: var(--ink3); margin-right: -2px; }

/* kept where they still earn their place: the hole chips (now in the hole sheet), the segmented filter and
   the scope bar on Rounds */
.hchip { height: 44px; border-radius: var(--r-s); display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--ink3); font-weight: 700; font-size: 15px; }
.hchip.some { color: var(--ink); border-color: var(--line2); }
.hchip.done { background: var(--green-soft); border-color: transparent; color: var(--green); }
.hchip.cur { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.filter { display: flex; gap: 6px; margin: 0 0 10px; background: var(--card2); padding: 4px; border-radius: 3px; }
.filter button { flex: 1; min-height: 36px; border-radius: 3px; border: 0; background: transparent; color: var(--ink2); font-weight: 600; }
.filter button.on { background: var(--card); color: var(--ink); }
.scopes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 2px 16px 4px; }
.scopes::-webkit-scrollbar { display: none; }
.scopes button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 3px; border: 1px solid var(--line2); background: var(--card); color: var(--ink2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.scopes button.on { border-color: var(--green); background: var(--green); color: var(--green-ink); }
.scopes button i { font-style: normal; font-weight: 700; font-size: 12px; margin-left: 6px; color: var(--ink3); }
.scopes button.on i { color: var(--green-ink); opacity: .75; }

/* ---- scoring: the hole bar, the rows, and the deck that writes to them */
/* The notation, as the posters draw it (scoreGlyph in draw.js): a ring is a birdie, two rings an eagle, a
   square a bogey, two squares a double or worse, plain ink a par. Shape reads before colour does -- in
   sunlight, through a colour deficiency, at arm's length -- which a 2px coloured border never did. */
.mk { display: inline-grid; place-items: center; box-sizing: border-box; width: 40px; height: 40px;
  flex: none; align-self: center; justify-self: center; line-height: 1;
  font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 500;
  color: var(--ink); border: 2px solid transparent; border-radius: 50%; }
.mk .num { font-size: inherit; font-weight: inherit; line-height: 1; }
.mk.c1 { border-color: var(--under); color: var(--under); }
.mk.c2 { border-color: var(--under); color: var(--under); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--under); }
.mk.s1 { border-color: var(--bogey); color: var(--bogey); border-radius: var(--r-xs); }
.mk.s2 { border-color: var(--double); color: var(--double); border-radius: var(--r-xs); box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--double); }
.mk.pk { color: var(--pick); border-color: var(--pick); border-style: dotted; border-radius: var(--r-xs); }
.mk.empty { color: var(--ink3); border-color: var(--line2); border-style: dashed; border-radius: var(--r-xs); font-size: 18px; }

.holebar { display: flex; align-items: center; gap: 12px; padding: 2px 0 10px; }
.hnum { font-size: 52px; font-weight: 600; line-height: 1; color: var(--green); min-width: 62px; text-align: center;
  border: 0; background: none; padding: 0; }
.hmeta { flex: 1; text-align: left; border: 0; background: none; padding: 0; color: var(--ink3); font-size: 13px; }
.hmeta b { color: var(--ink); font-size: 15px; font-weight: 700; }
.hmeta .chev { color: var(--ink3); margin-left: 6px; }

.prows { border-top: 1px solid var(--line); }
.prow { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center;
  min-height: 62px; padding: 6px 4px; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--ink); }
.prow.sel { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); border-radius: var(--r-xs); }
.prow:active { background: var(--card2); }
.prow.skip { opacity: .55; }
.pname { min-width: 0; display: flex; flex-direction: column; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.pname .dots { font-style: normal; color: var(--ink3); font-size: 11px; letter-spacing: 2px; }
.pname small { font-weight: 500; font-size: 12px; color: var(--ink3); }
.pname .said { color: var(--green); }
.ppts { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ppts b { font-size: 22px; line-height: 1; color: var(--green); }
.ppts small { font-size: 10px; color: var(--ink3); white-space: nowrap; }

/* the deck: one place a number goes in, and it keeps its height whether it is showing keys or a question,
   so nothing under the thumb ever moves */
.bar.deck { flex-direction: column; gap: 6px; padding: 6px 16px calc(10px + var(--sab)); }
.bar.deck > * { flex: none; width: 100%; }
.dnav { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.dstep { width: 46px; height: 40px; flex: none; border-radius: var(--r-s); border: 1px solid var(--line2);
  background: var(--card); color: var(--ink2); font-size: 22px; line-height: 1; }
.dstep.go { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.dstep:active { background: var(--card2); }
.dcap { flex: 1; min-width: 0; text-align: center; }
.dwho { display: block; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsub { display: block; font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: 1.2px; }

.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.key { height: 60px; border-radius: var(--r-s); border: 1px solid var(--line2); background: var(--card);
  display: grid; place-items: center; color: var(--ink); font-size: 22px; font-weight: 600; padding: 0; }
.key:active { background: var(--card2); }
.key.on { border-color: var(--green); background: var(--green-soft); }
.key.off { border-style: dashed; opacity: .3; }
.key.more { color: var(--ink3); font-size: 26px; }
.morekeys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 4px; }

/* the questions: same rectangle, same height as the keys -- the extras borrow it and give it back */
.ask { display: flex; flex-direction: column; gap: 5px; }
.askq { display: flex; align-items: center; min-height: 20px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.2px; color: var(--ink3); }
.askskip { margin-left: auto; border: 0; background: none; color: var(--green); font-size: 13px;
  font-weight: 600; letter-spacing: 0; text-transform: none; min-height: 20px; padding: 0; }
.arow { display: flex; gap: 5px; }
.aopt { flex: 1 1 0; min-width: 0; height: 60px; border-radius: var(--r-s); border: 1px solid var(--line2);
  background: var(--card); color: var(--ink); font-size: 17px; font-weight: 600; padding: 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aopt:active { background: var(--card2); }
.aopt.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.aopt.pen { border-color: var(--pick); color: var(--pick); }
.aopt.go { flex: 0 0 34%; color: var(--ink2); }
.adots { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 14px; }
.adots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line2); }
.adots i.was { background: var(--green-soft); }
.adots i.on { background: var(--green); }

/* the hole sheet: everything that is reference rather than scoring */
.holegrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin: 10px 0 4px; }
.hboard { display: flex; flex-direction: column; }
.hrowb { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px;
  border-bottom: 1px solid var(--line); }
.hrowb:last-child { border-bottom: 0; }

main.with-deck { padding-bottom: calc(176px + var(--sab)); }

/* ---- review */
.pl { padding: 12px 14px; }
.pl .pos { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 3px; background: var(--card2); color: var(--ink2); font-family: "Oswald", sans-serif; font-weight: 500; font-size: 15px; margin-right: 10px; flex: none; }
.pl .pos.p1 { background: var(--gold); color: var(--on-gold); }
.pl .who { display: flex; align-items: center; min-width: 0; }
.pl .nums { display: flex; gap: 8px; }
.pl .nums span { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.pl .nums b { font-size: 24px; line-height: 1.1; font-weight: 600; } .pl .nums small { color: var(--ink3); font-size: 11px; white-space: nowrap; }
.pl .nums .acc b { color: var(--green); }
.chips { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 12px; }
.chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 58px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: 16px; padding: 0; }
.chip small { color: var(--ink3); font-size: 9px; font-weight: 500; line-height: 1; }
.chip .mk { width: 32px; height: 32px; font-size: 17px; border-width: 1.5px; }
.chip .mk.c2 { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--under); }
.chip .mk.s2 { box-shadow: 0 0 0 1.5px var(--card), 0 0 0 3px var(--double); }
.chip.sel { outline: 3px solid var(--green); outline-offset: 1px; }
.editor { margin-top: 10px; padding: 12px; background: var(--card2); border-radius: var(--r-s); font-size: 14px; color: var(--ink2); }
.edhead { margin-bottom: 8px; }
.editor .keys { grid-template-columns: repeat(4, 1fr); }
.editor .key { height: 54px; background: var(--card); }
.askall { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.askall .askq { margin-top: 4px; }
.askall .aopt { height: 48px; font-size: 15px; }

.sstrip { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 8px 0 2px; }
.sstrip.off { opacity: .4; }
.srow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.slab { font-size: 12px; color: var(--ink3); flex: none; width: 42px; }
.schip { flex: 1 1 0; min-width: 0; height: 38px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 14px; font-weight: 600; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schip.wide { flex: 1 1 42%; font-size: 13px; }
.schip:active { background: var(--card2); }
.schip.on, .schip.yes { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.schip.no { border-color: var(--bogey); color: var(--bogey); }
.schip.pen { border-color: var(--pick); background: transparent; color: var(--pick); }
.schip .auto { font-style: normal; font-size: 10px; font-weight: 500; opacity: .6; margin-left: 4px; }
.statpick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.statpick button { flex: 1 1 108px; height: 38px; border-radius: 3px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-size: 13px; font-weight: 600; }
.statpick button.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.stattile { background: var(--card2); border-radius: 4px; padding: 8px 10px; }
.stattile b { display: block; font-size: 20px; line-height: 1.1; }
.stattile b.sgup, b.sgup { color: var(--under); }
.stattile b.sgdown, b.sgdown { color: var(--bogey); }
.sgline { margin-top: 10px; font-size: 13px; color: var(--ink2); line-height: 1.45; }
.chglist { margin-top: 4px; }
.chgrow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.chgrow:last-child { border-bottom: 0; }
.chg { display: inline-block; margin: 3px 8px 0 0; font-size: 13px; color: var(--ink2); }
.chg i { font-style: normal; color: var(--ink3); }
.chg b { color: var(--ink); }
.stattile small { display: block; font-size: 11px; color: var(--ink3); margin-top: 2px; }
.morestats { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.morestats > summary { color: var(--ink3); cursor: pointer; }
.morestats .statgrid { margin-top: 8px; }
.pen { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); color: var(--gold-ink); border-radius: 2px; padding: 2px 8px; font-size: 12px; font-weight: 600; margin: 4px 4px 0 0; }
.pen button { border: 0; background: transparent; color: inherit; font-size: 16px; padding: 0; }
.pens { margin-top: 8px; } .pens summary { cursor: pointer; margin-top: 6px; } .pens .btn { margin-top: 10px; }

/* ---- graphics */
.themes { display: grid; gap: 8px; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tfam { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.tfam > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 48px; font-weight: 600; }
.tfam > summary::-webkit-details-marker { display: none; }
.tfam > summary .fname { flex: 1; }
.tfam > summary::after { content: "›"; color: var(--ink3); font-size: 22px; transform: rotate(90deg); }
.tfam[open] > summary::after { transform: rotate(-90deg); }
.tfam > .tgrid { padding: 2px 0 12px; }
.shopmore { margin-top: 4px; }
.fmtlist + .shopmore { margin-top: 10px; }
.fstrip { display: flex; width: 56px; height: 28px; border-radius: 2px; overflow: hidden; flex: none; }
.fstrip i { flex: 1; display: block; background: var(--tbg); position: relative; }
.fstrip i::after { content: ""; position: absolute; left: 25%; right: 25%; top: 62%; height: 18%; background: var(--tacc); }
.tchip { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 6px; border-radius: 4px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; text-align: center; }
.tchip input { display: none; }
.tchip .sw { display: block; height: 58px; border-radius: 4px; background: var(--tbg); position: relative; overflow: hidden; }
.tchip .sw::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22%; height: 22%; border-radius: 4px; background: var(--tpanel); }
.tchip .sw::after { content: ""; position: absolute; left: 10%; right: 10%; top: 56%; height: 22%; border-radius: 4px; background: var(--tpanel); border-left: 14px solid var(--tacc); }
.tchip .sw b { position: absolute; left: 12%; top: 26%; font-size: 8px; line-height: 1; color: var(--tink); letter-spacing: .5px; z-index: 1; }
.tchip.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.progress { padding: 14px; color: var(--ink2); text-align: center; }
.saveall { margin: 8px 0 12px; } .saveall .btn { width: 100%; margin-bottom: 6px; }
.thumbs figure { margin: 0 0 16px; }
.thumbs img { width: 100%; border-radius: 4px; display: block; border: 1px solid var(--line); cursor: zoom-in; }
.thumbs figcaption .btn { flex: none; white-space: nowrap; }
.thumbs figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); margin-top: 6px; word-break: break-all; }
.thumbs .err figcaption { color: var(--danger); }

/* ---- leagues */
.stand { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.stand th { color: var(--ink3); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; text-align: right; padding: 10px 6px; }
.stand td { text-align: right; padding: 11px 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stand .l { text-align: left; padding-left: 12px; } .stand td.acc { font-weight: 700; font-size: 17px; color: var(--green); padding-right: 12px; }
.stand tr.acc td { background: var(--green-soft); }
.stand td.pos { color: var(--ink3); font-weight: 700; padding-left: 12px; text-align: left; }

.vscard { padding: 16px; }
.vsverdict { text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; color: var(--ink3); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; margin-top: 12px; }
.vsside { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.vsdisc { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-family: "Oswald", sans-serif; font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.vsdisc.a { background: var(--green); color: var(--green-ink); } .vsdisc.b { background: var(--ink); color: var(--on-ink); }
.vsname { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
.vsnum { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px; padding: 0 4px; }
.vsnum b { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; font-size: 46px; line-height: .95; font-weight: 600; }
.vsnum b:first-child { color: var(--green); } .vsnum b:nth-child(3) { color: var(--ink); }
.vsnum s { text-decoration: none; color: var(--ink3); font-size: 26px; font-weight: 300; }
.vsnum small { flex: 1 0 100%; text-align: center; color: var(--ink3); font-size: 11px; margin-top: 2px; }
.tug { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--card2); margin-top: 14px; }
.tug.big { height: 14px; margin-top: 2px; }
.tug i { display: block; }
.tug .a { background: var(--green); } .tug .t { background: var(--line2); } .tug .b { background: var(--ink); }
.vsline { text-align: center; color: var(--ink3); font-size: 13px; margin-top: 8px; }
.vsform { display: flex; flex-wrap: wrap; gap: 5px; }
.fdot { width: 34px; height: 34px; flex: none; border-radius: 3px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.fdot.a { background: var(--green); color: var(--green-ink); } .fdot.b { background: var(--ink); color: var(--on-ink); }
.fdot.tie { background: var(--card2); color: var(--ink3); border: 1px solid var(--line); }
.tapes { padding: 6px 16px 14px; }
.tape { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 12px 0 0; border-top: 1px solid var(--line); margin-top: 12px; }
.tape:first-child { border-top: 0; margin-top: 0; }
.tape b { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 500; color: var(--ink3); }
.tape b.win { color: var(--ink); font-weight: 600; }
.tape b:first-child.win { color: var(--green); }
.tape span { text-align: center; color: var(--ink3); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.tbar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--ink); margin-top: 8px; overflow: hidden; }
.tbar i { display: block; height: 100%; background: var(--green); border-right: 2px solid var(--card); }
.holeskey { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 13px; color: var(--ink2); }
.holeskey b { font-family: "Oswald", sans-serif; font-size: 17px; font-weight: 600; }
.holeskey span:first-child b { color: var(--green); } .holeskey span:last-child b { color: var(--ink); }
.h2hrow .when { min-width: 0; } .h2hrow .when b { font-size: 14px; font-weight: 600; } .h2hrow .when small { display: block; font-size: 12px; }
.h2hrow .sc { display: flex; align-items: baseline; gap: 5px; flex: none; }
.h2hrow .sc b { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; font-size: 20px; font-weight: 500; color: var(--ink3); }
.h2hrow .sc b.wa { color: var(--green); font-weight: 600; } .h2hrow .sc b.wb { color: var(--ink); font-weight: 600; }
.h2hrow .sc s { text-decoration: none; color: var(--line2); }
.merge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.merge span { text-align: center; color: var(--ink3); }

/* ---- sub tabs inside a screen */
.tabrow { position: relative; margin: 4px 0 12px; }
.subtabs { display: flex; gap: 4px; margin: 0; background: var(--card2); padding: 4px; border-radius: 3px; overflow-x: auto; scrollbar-width: none; }
.cue { position: absolute; top: 4px; bottom: 4px; width: 34px; display: none; align-items: center; pointer-events: none; color: var(--ink3); font-size: 19px; line-height: 1; border-radius: 3px; }
.cue.l { left: 4px; justify-content: flex-start; padding-left: 6px; background: linear-gradient(90deg, var(--card2) 45%, transparent); }
.cue.r { right: 4px; justify-content: flex-end; padding-right: 6px; background: linear-gradient(270deg, var(--card2) 45%, transparent); }
.tabrow.more-l .cue.l, .tabrow.more-r .cue.r { display: flex; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: 1 0 auto; min-height: 38px; padding: 0 14px; border-radius: 3px; border: 0; background: transparent; color: var(--ink2); font-weight: 600; font-size: 14px; white-space: nowrap; }
.subtabs button.on { background: var(--card); color: var(--ink); }
.subtabs.small button { min-height: 34px; font-size: 13px; padding: 0 12px; }
.fmtlist { margin-top: 6px; }
.fmtlist label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink); }
.fmtlist label:last-child { border-bottom: 0; }
.fmtlist input[type=checkbox] { margin: 2px 0 0; transform: scale(1.15); }
.fmtlist b { font-weight: 600; font-size: 15px; display: block; }
.fmtlist small { color: var(--ink3); font-size: 13px; display: block; margin-top: 1px; }

/* ---- rounds */
.rround { display: block; padding: 13px 16px; }
.rround .d { font-size: 12px; color: var(--ink3); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.rround .name { margin-top: 2px; }
.loop { margin-top: 1px; font-size: 13px; color: var(--ink3); }
.rround .who { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.rround .who span { background: var(--card2); border-radius: 2px; padding: 3px 10px; font-size: 13px; color: var(--ink2); }
.rround .who span.me { background: var(--green-soft); color: var(--green); font-weight: 600; }
.rround .tag { float: right; }
.res { display: flex; align-items: baseline; gap: 14px; margin-top: 6px; flex-wrap: wrap; }
.res .big { font-size: 44px; font-weight: 600; line-height: 1; }
.res .big small { font-size: 15px; font-weight: 600; color: var(--ink3); margin-left: 4px; font-family: inherit; }
.h2row { display: flex; align-items: baseline; gap: 10px; }
.h2row h2 { flex: 1; }
.nines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nines span { background: var(--card2); border-radius: 2px; padding: 3px 10px; font-size: 13px; color: var(--ink2); }
.nines b { color: var(--ink); font-weight: 600; }
.rround.card { padding: 13px 16px; }
.rround.card .res .big { font-size: 34px; }
.rround.card .btn.small { margin-top: 10px; }
.mecard .lg { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0 0; margin-top: 9px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.mecard .lg b { color: var(--green); }

/* ---- a league's Players tab */
.dkeywrap { padding: 0 4px; }
.plcard.mine { border-color: var(--green); }
.plcard .dbar { margin-top: 10px; }
.pfoot { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 8px; font-size: 12px; color: var(--ink3); }
.pickline { margin: 2px 4px 4px; color: var(--ink3); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }

/* ---- an explanation behind an "i" */
.tiphead { display: flex; align-items: center; margin: 22px 0 8px; }
.tiphead:first-child { margin-top: 6px; }
.tiphead h2 { flex: 1; margin: 0; }
.tiphead.solo { justify-content: flex-end; gap: 0; margin: 2px 0 6px; color: var(--ink3); font-size: 13px; font-weight: 600; }
.ibtn { flex: none; width: 40px; height: 40px; margin: -10px -10px -10px 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink3); display: grid; place-items: center; cursor: pointer; }
.ibtn > i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; font: italic 700 11px/1 Georgia, "Times New Roman", serif; }
.ibtn:active > i, .ibtn:focus-visible > i { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.ibtn:focus-visible { outline: none; }
.ibtn.corner { position: absolute; top: 2px; right: 2px; margin: 0; }
.hasi { position: relative; }
.tipbody { color: var(--ink2); font-size: 15px; }
.tipbody p { margin: 0 0 10px; } .tipbody p:last-child { margin-bottom: 0; }
.tipbody b { color: var(--ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.modeline { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; color: var(--ink3); font-size: 13px; }
.modeline.mid { justify-content: center; text-align: center; margin: 0 0 6px; }
.modetag { flex: none; background: var(--green-soft); color: var(--green); border-radius: 2px; padding: 3px 9px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }

/* ---- updates */
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: left; width: 100%; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; }
.note:first-child { border-top: 0; }
.note.unread { background: var(--green-soft); }
.note .ic { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; }
.note.unread .ic { background: var(--card); }
.note .ic svg { width: 20px; height: 20px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.note .body { flex: 1; min-width: 0; }
.note .body p { margin: 0; font-size: 15px; line-height: 1.35; }
.note .body small { color: var(--ink3); font-size: 12px; }
.note .body .btnrow { margin-top: 8px; }
.note .body .btnrow .btn { flex: 0 1 auto; }
.daylabel { margin: 16px 4px 6px; }

/* ---- people */
.person { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.person .who { min-width: 0; flex: 1; }
.person .who .name { font-size: 20px; }
.person .who .handle { color: var(--ink3); font-size: 14px; }
.qr { display: block; margin: 12px auto; background: #fff; padding: 10px; border-radius: 4px; width: 220px; height: 220px; }
.linkbox { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--ink2); background: var(--card2); border-radius: var(--r-xs); padding: 8px 10px; margin: 8px 0; }

/* ---- misc */
#toast { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); transform: translateX(-50%) translateY(12px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; opacity: 0; transition: all .2s; z-index: 40; max-width: 90vw; text-align: center; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
#toast.show { opacity: 1; transform: translateX(-50%); }
.toastbtn { margin-left: 10px; background: var(--gold); color: var(--on-gold); border: 0; border-radius: 3px; padding: 6px 12px; font-weight: 700; pointer-events: auto; }
#toast.show.action { pointer-events: auto; }
details > summary { list-style: none; } details > summary::-webkit-details-marker { display: none; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv .muted { text-align: right; }
.kv > span:first-child { white-space: nowrap; }
a.kv:active { background: var(--card2); }
.foot { color: var(--ink3); font-size: 12px; text-align: center; margin: 24px 0 8px; }
.prose { font-size: 15px; color: var(--ink2); }
.prose h3 { color: var(--ink); margin-top: 18px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 4px 0; }
.skeleton { height: 14px; border-radius: 2px; background: linear-gradient(90deg, var(--card2), var(--line), var(--card2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin: 8px 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- scorecard scanning */
.scan-row { margin: 10px 0; padding: 12px; border-radius: var(--r-s); background: var(--card); border: 1px solid var(--line); }
.scan-row .row { align-items: baseline; }
.scan-row .whorow { margin-top: 8px; }
.scan-row .whorow select { margin: 0; }
.scan-row .rownew { margin-top: 6px; }
.scan-row .rownew .plus { font-weight: 800; margin-right: 3px; }
.scan-row .picked { margin-top: 6px; }
.scan-row .picked + .rownew { margin-top: 8px; }
.scan-row .two select, .scan-row .two input { margin-top: 4px; }
.scan-row .rowhcp { margin-top: 8px; }
.cells { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 8px; }
.cells input { padding: 6px 0; text-align: center; font-size: 15px; margin: 0; border-radius: 3px; }
.cells input.unsure { border-color: var(--gold); background: var(--gold-soft); }
.cells small { display: block; text-align: center; color: var(--ink3); font-size: 10px; }
.scan-prev { width: 100%; border-radius: 4px; margin: 8px 0; max-height: 40vh; object-fit: contain; background: var(--card2); }

/* ---- stats: one diverging scale from eagle to blow-up */
.statcard { padding: 16px; }
.dwrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.donut { width: 150px; height: 150px; flex: none; }
.dseg { fill: none; stroke-linecap: butt; }
.dseg.eagle { stroke: var(--sc-eagle); } .dseg.birdie { stroke: var(--sc-birdie); } .dseg.par { stroke: var(--sc-par); }
.dseg.bogey { stroke: var(--sc-bogey); } .dseg.double { stroke: var(--sc-double); } .dseg.triple { stroke: var(--sc-triple); }
.dbig { text-anchor: middle; font-family: "Oswald", sans-serif; font-size: 30px; font-weight: 600; fill: var(--ink); }
.dsmall { text-anchor: middle; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; fill: var(--ink3); }
.dkey { flex: 1 1 250px; list-style: none; margin: 0; padding: 0; min-width: 0; }
.dkey li { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: 13px; }
.dkey li.off { opacity: .7; }
.dkey i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.dkey span { flex: 1; color: var(--ink2); min-width: 0; }
.dkey b { font-family: "Oswald", sans-serif; font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; }
.dkey small { color: var(--ink3); font-size: 11px; white-space: nowrap; }
.dkey i.eagle, .dbar i.eagle, .dkeyline i.eagle { background: var(--sc-eagle); }
.dkey i.birdie, .dbar i.birdie, .dkeyline i.birdie { background: var(--sc-birdie); }
.dkey i.par, .dbar i.par, .dkeyline i.par { background: var(--sc-par); }
.dkey i.bogey, .dbar i.bogey, .dkeyline i.bogey { background: var(--sc-bogey); }
.dkey i.double, .dbar i.double, .dkeyline i.double { background: var(--sc-double); }
.dkey i.triple, .dbar i.triple, .dkeyline i.triple { background: var(--sc-triple); }
.dkeyline { display: flex; flex-wrap: wrap; gap: 3px 12px; padding: 4px 0 8px; font-size: 11px; color: var(--ink3); }
.dkeyline i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.dists { padding: 4px 16px 12px; }
.drow { padding: 10px 0; border-top: 1px solid var(--line); }
.drow:first-child { border-top: 0; }
.dname { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; font-weight: 600; }
.dname small { font-weight: 500; font-size: 12px; white-space: nowrap; }
.dbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--card2); margin-top: 7px; }
.dbar i { display: block; border-right: 2px solid var(--card); }
.dbar i:last-child { border-right: 0; }
.fchart { display: flex; justify-content: center; align-items: flex-end; gap: 6px; overflow-x: auto; padding: 4px 0 0; scrollbar-width: none; }
.fchart::-webkit-scrollbar { display: none; }
.fcol { flex: 1 1 34px; max-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink3); }
.fplot { position: relative; width: 100%; height: 112px; }
.fghost { position: absolute; bottom: 0; left: 2%; right: 2%; background: var(--card2); border-radius: 4px 4px 0 0; }
.fbar { position: absolute; bottom: 0; left: 22%; right: 22%; background: var(--green); border-radius: 4px 4px 0 0; }
.fval { position: absolute; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink2); }
.fcol small { font-size: 10px; white-space: nowrap; }
/* The season: one line a player over every card, with the one being followed picked out and the rest left
   as context behind it. Nine colours and a key do not fit a phone; one line and a name do. */
.season { display: block; width: 100%; height: auto; overflow: visible; }
.season .sgrid { stroke: var(--line); stroke-width: 1; }
.season .sline { fill: none; stroke: var(--line2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.season .sline.on { stroke: var(--green); stroke-width: 2.6; }
.season .sfield { fill: none; stroke: var(--ink3); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linecap: round; }
.season .sonly { fill: var(--line2); stroke: none; }
.season .sonly.on { fill: var(--green); }
.season .sdot { fill: var(--green); }
.season text { font-size: 9px; fill: var(--ink3); }
/* The extras table carries what each figure is out of under it, because a rate over four holes and one over
   four hundred are not the same claim and a column head cannot footnote a cell. */
.xtab td b { display: block; font-size: 16px; line-height: 1.15; }
.xtab td small { display: block; font-size: 10px; color: var(--ink3); }
.stand.nowrap th, .stand.nowrap td { white-space: nowrap; }
/* A table with more columns than a phone is wide scrolls sideways rather than breaking every name over
   three lines; it bleeds into the page gutter so the edge of it is visibly there to be pushed. */
.tscroll { overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.tscroll::-webkit-scrollbar { display: none; }
.tscroll .stand { width: auto; min-width: 100%; }
.stand tr.tot td { border-top: 2px solid var(--line2); font-weight: 600; }
.partab th, .partab td.l { white-space: nowrap; }
.tapes.mine b:first-child { color: var(--green); }
.tapes.mine b:first-child.win { color: var(--green); }
.tapes.mine .tbar { background: var(--ink2); }
.partab td.l .muted { white-space: normal; }
.rival { padding: 14px 16px 16px; }
.rhead b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.rhead span { display: block; margin-top: 2px; }
.rival .tapes { padding: 6px 0 0; }
.rival .tape b { font-size: 26px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sside { background: var(--card2); border-radius: var(--r-s); padding: 10px 12px; }
.sside.up { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.sside small { display: block; color: var(--ink2); font-size: 12px; font-weight: 600; }
.sside small i { display: block; font-style: normal; font-weight: 500; font-size: 11px; color: var(--ink3); }
.sside b { font-size: 22px; font-weight: 600; line-height: 1.3; }
.sside.up b { color: var(--green); }
.chips-wrap.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
.chips-wrap.scroll::-webkit-scrollbar { display: none; }
.chips-wrap.scroll .pchip { flex: none; }

/* ---- the shop: every item shown working on your own round before it is bought */
.shopintro { margin: 4px 4px 10px; }
.shopline { margin: 3px 4px 0; }
/* the only money talk on the page: one line, the rest behind it */
.shopwhy { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.shopwhy span { color: var(--green); font-weight: 600; white-space: nowrap; }
.now.pass { margin: 10px 0 6px; }
.now button.cta { border: 0; color: inherit; cursor: pointer; font-family: inherit; }
.shopitem { padding: 0; overflow: hidden; }
.shopitem .body { padding: 12px 16px 14px; }
.shopitem .body > .plain { background: none; border: 0; padding: 0; margin: 0; text-align: left; color: inherit; font: inherit; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.shopitem .peek { color: var(--green); font-size: 13px; font-weight: 600; margin-top: 6px; }
.shopthumb { display: block; width: 100%; aspect-ratio: 16 / 7; padding: 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--card2); position: relative; overflow: hidden; cursor: pointer; }
.shopthumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.shopthumb .skeleton { position: absolute; inset: 0; margin: 0; border-radius: 0; height: auto; }
.shopthumb.swrow { display: flex; aspect-ratio: auto; height: 64px; }
.swrow i { flex: 1; display: block; background: var(--tbg); position: relative; }
.swrow i::after { content: ""; position: absolute; left: 20%; right: 20%; top: 36%; height: 26%; border-radius: 2px; background: var(--tpanel); border-left: 5px solid var(--tacc); }
.shopthemes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 10px; }
.shopthemes.colls { grid-template-columns: 1fr; gap: 0; }
.collrows { display: grid; gap: 6px; margin: 8px 0; }
.collrow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.collrow > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.collrow small { font-size: 12px; }
.collrow i { color: var(--ink3); font-size: 22px; font-style: normal; }
.tchip.theme { width: 100%; padding-bottom: 8px; }
.tchip.theme .sw { height: 72px; }
.tchip small { display: block; color: var(--ink3); font-size: 12px; font-weight: 500; margin-top: -2px; }
.prevs { margin-top: 6px; }
.prev { margin: 0 0 14px; }
.prev .ph { display: block; aspect-ratio: 2 / 1; border-radius: 4px; margin: 0; height: auto; }
.prev img { display: block; width: 100%; border-radius: 4px; border: 1px solid var(--line); cursor: zoom-in; }
.prev figcaption { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.prev.err figcaption { color: var(--danger); }
.thememock { background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: 6px; padding: 8px 12px 0; margin: 8px 0 14px; overflow: hidden; }
.thememock .mtop { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.thememock .brand { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: .5px; color: var(--green); }
.thememock svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.thememock .mbell { color: var(--ink2); display: flex; gap: 10px; }
.thememock .now { margin: 8px 0; }
.thememock h2 { margin: 12px 4px 6px; }
.thememock .card { margin: 0; padding: 0; }
.thememock .pl + .pl { border-top: 1px solid var(--line); }
.thememock .mtabs { display: flex; justify-content: space-around; margin: 12px -12px 0; padding: 6px 4px 8px; background: var(--card); border-top: 1px solid var(--line); }
.thememock .mtabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--ink3); }
.thememock .mtabs span.on { color: var(--green); }
.thememock.tiny { zoom: .5; margin: 0; pointer-events: none; }
.themegrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.themegrid button { padding: 0; border: 0; background: none; text-align: center; font: inherit; font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; }
.themegrid button span { display: block; margin-top: 4px; }
.themegrid .board { position: relative; aspect-ratio: 2.2 / 1; margin-top: 6px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card2); }
.themegrid .board img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.themegrid .board .skeleton { position: absolute; inset: 0; margin: 0; border-radius: 4px; height: auto; }

/* ---- which images: a tile a kind, each with an example of it */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 8px; }
.gtile { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 6px 6px 8px; border-radius: 4px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.25; font-family: inherit; text-align: left; cursor: pointer; }
.gtile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.gtile .gimg { display: grid; place-items: center; aspect-ratio: 2 / 1; border-radius: 3px; overflow: hidden; background: #f4f7f4; }
.gtile .gimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gtile .gname { padding: 0 2px; }
.gtile .gname small { color: var(--ink3); font-weight: 500; }
.gtile .gcheck { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: none; place-items: center; }
.gtile svg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.gtile .gcheck svg { width: 14px; height: 14px; stroke-width: 3; }
.gtile.on { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.gtile.on .gcheck { display: grid; }
.gtile:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.gtile.locked { color: var(--ink2); }
.gtile.locked .gimg img { opacity: .5; }
.gtile .glock { display: flex; align-items: center; gap: 4px; padding: 0 2px; color: var(--ink3); font-size: 12px; font-weight: 600; }
.gtile .glock svg { width: 13px; height: 13px; }
.gmore { margin-top: 8px; }

/* ---------------------------------------------------------------- a league, as ruled rows
   Three things across: where they are, who they are, and the one number the league is decided on.
   Everything that used to be a column is the muted line under the name. Nothing here names a colour. */
.lboard .lrow { align-items: flex-start; gap: 10px; }
.lrow .lp { flex: none; width: 22px; padding-top: 2px; font-family: "Oswald", sans-serif; font-size: 15px; font-weight: 500; color: var(--ink3); }
.lrow .t b { font-weight: 600; }
.lrow .t span { color: var(--ink2); }
.lrow .v { align-self: center; text-align: right; }
.lrow .v .u { display: block; margin-top: 1px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink3); }
.lboard .lrow:first-child .v { color: var(--green); }
/* the podium is a block of three, told from the field by one stronger hairline, not by three medals */
.lboard .lrow.pod + .lrow:not(.pod) { border-top-color: var(--line2); }
/* your own line is marked on its edge rather than filled: a tint turns the name to a smudge in sunlight */
.lrow.me { box-shadow: inset 3px 0 0 var(--green); padding-left: 8px; }
.mv { flex: none; align-self: center; width: 30px; text-align: right; font-size: 11px; font-weight: 700; font-style: normal; color: var(--ink3); }
.mv.up { color: var(--green); }
.mv.new { font-size: 10px; letter-spacing: .4px; text-transform: uppercase; }
.youline { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 2px; margin-top: 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.youline .caps { flex: none; }
.youline .t { flex: 1; min-width: 0; font-size: 15px; }
.youline:active { background: var(--card2); }
.story { margin: 0 2px 4px; color: var(--ink2); font-size: 15px; }
.bnotes { margin: 10px 4px 0; }
a.dayl { display: block; padding: 13px 0; margin-top: -2px; color: var(--ink3); }
a.dayl:active { color: var(--green); }
/* the board's heading is its own format switch, so the switch costs no page at all */
.lfmt { border: 0; background: none; font: inherit; color: var(--ink3); cursor: pointer; padding: 13px 4px; margin: -13px -4px; }
.lfmt i { font-style: normal; font-size: 13px; }
.lfmt:active { color: var(--green); }
.alsorow { margin: 10px 0 0; }
.alsol { display: block; width: 100%; padding: 11px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.alsol b { color: var(--ink); font-weight: 600; }
.alsol:active { background: var(--card2); }
.fmtpicks { margin: 4px 0 2px; }
.fmtpick { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 13px 2px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.fmtpick:first-child { border-top: 0; }
.fmtpick b { display: block; font-size: 16px; font-weight: 600; }
.fmtpick small { display: block; margin-top: 2px; color: var(--ink3); font-size: 13px; line-height: 1.35; }
.fmtpick i { flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink3); white-space: nowrap; }
.fmtpick.on b { color: var(--green); }
.fmtpick.on i { color: var(--green); }
.arow { gap: 10px; }
.arow .btn { flex: none; align-self: center; }
.arow > a.t { display: block; min-width: 0; color: var(--ink); }
.arow > a.t b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow > a.t span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink3); }
.fold { padding: 0 16px; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 600; color: var(--ink2); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "›"; margin-left: auto; color: var(--ink3); font-size: 22px; transform: rotate(90deg); }
.fold[open] > summary::after { transform: rotate(-90deg); }
.fold > summary .ibtn { margin-left: 2px; }
.pickrow { display: block; width: 100%; padding: 13px 2px; margin: 4px 0 2px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--ink2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.pickrow b { color: var(--ink); font-weight: 600; }
.pickrow i { font-style: normal; color: var(--ink3); }
.pickrow:active { background: var(--card2); }
