/* Goals Goals Goals — brand tokens below. Mobile-first, no bottom tab bar. */
:root {
  /* GGG brand: Forest Green #00482F, Mint #41D7A0, Off White #F5F6F0, Ink #08291F */
  --forest: #00482F;
  --mint: #41D7A0;
  --offwhite: #F5F6F0;
  --ink: #08291F;
  --bg: var(--offwhite);
  --surface: #ffffff;
  --surface-2: #e6ebe4;
  --muted: #4d6359;
  --line: #d3dcd5;
  --head: var(--forest);
  --head-ink: var(--offwhite);
  --accent: var(--mint);        /* High Goals / primary actions */
  --accent-ink: var(--ink);
  --low: var(--forest);         /* Low Goals */
  --low-ink: var(--offwhite);
  --jackpot: var(--ink);        /* nil-nil jackpot */
  --jackpot-ink: var(--mint);
  --good: #00804f; --good-bg: #d6f5e8;
  --bad: #b8321b;  --bad-bg: #fbe0d9;
  --link: var(--forest);
  --font-display: "Unbounded", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 15px/1.5 var(--font-body); }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; margin: 0; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 7.4vw, 2.7rem); letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0; max-width: 65ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-data); }
.eyebrow { font: 700 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* masthead */
.masthead { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); }
.masthead-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; flex: none; }
.brand-mark { width: 36px; height: 36px; display: block; }
.wordmark { display: block; font: 900 .62rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .01em; color: var(--offwhite); }
.wordmark span { display: block; color: var(--mint); font-size: 1rem; line-height: .95; }
@media (max-width: 560px) { .wordmark { display: none; } }
.nav { display: flex; gap: 0; flex-wrap: nowrap; justify-content: flex-end; min-width: 0; }
.nav a { color: var(--head-ink); text-decoration: none; font-weight: 600; font-size: .85rem; padding: 8px 8px; border-radius: 999px; white-space: nowrap; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); }

/* ticker */
.ticker { display: block; overflow: hidden; white-space: nowrap; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: .85rem; padding: 7px 0; }
.ticker-track { display: inline-flex; animation: ticker 50s linear infinite; }
.ticker-copy { display: inline-flex; }
.ticker-item { padding: 0 14px; }
.ticker-item::after { content: "•"; margin-left: 28px; opacity: .6; }
.ticker-item b { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* page */
.page { max-width: 720px; margin: 0 auto; padding: 20px 16px 120px; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }

/* hero */
.hero-banner { background: linear-gradient(135deg, var(--forest) 0%, var(--ink) 100%); color: var(--head-ink); border-radius: var(--radius); padding: 26px 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.hero-banner h1 { color: var(--head-ink); }
.hero-banner h1 span { color: var(--mint); }
.hero-banner .eyebrow { color: rgba(255,255,255,.7); }
.hero-banner p { color: rgba(255,255,255,.88); }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .95rem var(--font-body); text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: rgba(245,246,240,.45); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-small { min-height: 34px; padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 700 .72rem/1 var(--font-body); text-transform: uppercase; letter-spacing: .05em; padding: 5px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip-good { background: var(--good-bg); color: var(--good); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-high { background: var(--accent); color: var(--accent-ink); }
.chip-low { background: var(--low); color: var(--low-ink); }
.chip-jp { background: var(--jackpot); color: var(--jackpot-ink); }
.chip-live { background: var(--bad); color: #fff; }

/* three-pot strip */
.pots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pot { border-radius: 12px; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.pot b { font: 800 .82rem/1.1 var(--font-display); text-transform: uppercase; }
.pot span { font-size: .78rem; line-height: 1.3; }
.pot-high { background: var(--accent); color: var(--accent-ink); }
.pot-low { background: var(--low); color: var(--low-ink); }
.pot-jp { background: var(--jackpot); color: var(--jackpot-ink); }

/* round banner on home */
.round-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; }
.round-card h3 { font-size: 1.2rem; }
.big-figure { font: 800 1.7rem/1 var(--font-display); }

/* card picker */
.filters { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; position: sticky; top: var(--mh, 64px); z-index: 5; background: var(--bg); padding-top: 6px; margin-top: -6px; }
.filters::-webkit-scrollbar { display: none; }
.filters button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 12px; font: 600 .85rem var(--font-body); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--head); color: var(--head-ink); border-color: var(--head); }
.filters button small { font-family: var(--font-data); opacity: .7; margin-left: 4px; }
.day-head { font: 700 .78rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 2px 0; }
.fx-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fx { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; min-height: 56px; }
.fx:first-child { border-top: 0; }
.fx input { position: absolute; opacity: 0; pointer-events: none; }
.fx .ko { font: 500 .8rem var(--font-data); color: var(--muted); }
.fx .teams { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fx .teams b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx .teams small { color: var(--muted); font-size: .75rem; }
.fx .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; color: transparent; }
.fx.picked { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.fx.picked .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fx.full:not(.picked) { opacity: .5; }
.score { font: 500 1rem var(--font-data); white-space: nowrap; }

.submit-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--head); color: var(--head-ink); padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.submit-bar-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.dots { display: flex; gap: 4px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dots span.on { background: var(--accent); }

/* entry form */
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
input, select, textarea { font: 400 1rem var(--font-body); padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; }
textarea { min-height: 160px; font-family: var(--font-data); font-size: .85rem; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { width: 20px; min-height: 20px; margin-top: 2px; flex: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }

/* live */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font: 800 1.4rem/1 var(--font-display); }
.stat.high { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.stat.low { border-color: var(--forest); box-shadow: inset 0 3px 0 var(--forest); }
.stat.jp { border-color: var(--ink); box-shadow: inset 0 3px 0 var(--ink); }
.nn-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.nn-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--forest); }
.nn-dots span.on { background: var(--mint); border-color: var(--mint); }

.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; overflow-x: auto; }
.tabs button { flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 999px; font: 700 .85rem var(--font-body); color: var(--ink); cursor: pointer; white-space: nowrap; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; }
thead th { border-top: 0; font: 700 .72rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.r { text-align: right; }
tr.me td { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); font-weight: 700; }

/* admin results grid */
.res-grid { display: grid; grid-template-columns: 1fr 64px 64px; gap: 6px 8px; align-items: center; }
.res-grid .h { font: 700 .7rem var(--font-body); text-transform: uppercase; color: var(--muted); }
.res-row { display: contents; }
.res-row input, .res-row select { min-height: 38px; padding: 6px 8px; }
.res-meta { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-top: 1px solid var(--line); }
.res-meta small { color: var(--muted); }
.off { opacity: .5; text-decoration: line-through; }

/* guide */
.guide dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.guide dt { font-weight: 700; }
.guide dd { margin: 0; }

/* footer, toast */
.site-foot { border-top: 1px solid var(--line); padding: 16px; }
.site-foot-inner { max-width: 720px; margin: 0 auto; display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.toast { font-family: var(--font-body); position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; max-width: calc(100% - 32px); font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.err { background: var(--bad); }

/* brand notch: the diagonal cut from the G mark, used on hero and cards */
.hero-banner::after { content: ""; position: absolute; top: -12px; right: -12px; width: 72px; height: 72px;
  background: linear-gradient(135deg, transparent 46%, var(--mint) 46%, var(--mint) 58%, transparent 58%, transparent 66%, var(--mint) 66%, var(--mint) 78%, transparent 78%); opacity: .9; pointer-events: none; }
.hero-banner > * { position: relative; z-index: 1; }
