/* Malad Golf League: dark cards, orange accent. */
:root {
  --bg: #0b0b0c;
  --side: #111113;
  --card: #161618;
  --card-2: #1e1e21;
  --line: #2a2a2f;
  --line-2: #36363c;
  --ink: #f3f3f4;
  --ink-2: #c4c4ca;
  --muted: #8d8d96;
  --accent: #ff7a1a;       /* UI: active nav, buttons, links */
  --accent-ink: #1a0d03;
  --accent-soft: rgba(255, 122, 26, .14);
  --mark: #e85d10;         /* data marks: bars, lines (validated for dark surface) */
  --mark-soft: rgba(232, 93, 16, .22);
  --good: #3ecf8e;
  --good-soft: rgba(62, 207, 142, .14);
  --bad: #ff5d5d;
  --bad-soft: rgba(255, 93, 93, .14);
  --radius: 18px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.icon { flex: none; display: block; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 650; margin: 2rem 0 .8rem; }
h3 { font-size: .95rem; font-weight: 650; }
p { line-height: 1.5; }
code { background: var(--card-2); border-radius: 6px; padding: .1rem .35rem; font-size: .88em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num-font, .stat-value, table.board td { font-variant-numeric: tabular-nums; }

/* ---------- shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 1.3rem .9rem; display: flex; flex-direction: column; gap: 1.2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); padding: 0 .5rem .4rem; }
.brand:hover { text-decoration: none; }
.logo { width: 38px; height: 38px; display: block; flex: none; }
.brand-text { font-weight: 750; font-size: 1.05rem; line-height: 1.05; }
.brand-text small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.nav { display: flex; flex-direction: column; gap: .2rem; }
.nav a, .nav-btn { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 12px; color: var(--ink-2); font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav-btn:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.nav-head { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .2rem .75rem .35rem; }
.nav-btn { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.nav.foot { margin-top: auto; }
.admin-nav { border-top: 1px solid var(--line); padding-top: 1rem; }
main { padding: 2rem 2.2rem 4rem; max-width: 1280px; width: 100%; min-width: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head .sub { margin: .35rem 0 0; color: var(--muted); }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- cards & grids */
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; color: inherit; }
a.card:hover { border-color: var(--line-2); background: var(--card-2); text-decoration: none; }
.card + .card { margin-top: 1rem; }
.grid > .card + .card, .tiles > .card + .card, .grid2 > .card + .card, .weeks > .card + .card, .player-grid > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; }
.card-head .link { font-size: .85rem; color: var(--muted); }
.card-head .link:hover { color: var(--accent); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(12, 1fr); }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.row { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: .8rem; }

/* hero card (next league night) */
.hero { background: radial-gradient(120% 140% at 100% 0%, rgba(255,122,26,.35), transparent 55%), linear-gradient(160deg, #1f1a16, var(--card)); border: 1px solid #3a2a1d; }
.hero .eyebrow { color: var(--accent); }
.hero h2 { font-size: 1.6rem; margin: .3rem 0 .2rem; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; }
.countdown { display: flex; gap: .6rem; margin-top: 1rem; }
.countdown div { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 12px; padding: .5rem .8rem; min-width: 64px; text-align: center; }
.countdown b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* stat tiles */
.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat .label { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: .5rem; }
.stat .label .icon { color: var(--accent); }
.stat-value { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; }
.stat .foot { color: var(--muted); font-size: .8rem; }

/* pills & badges */
.badge, .pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 650; border-radius: 99px; padding: .22rem .6rem; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge { text-transform: uppercase; letter-spacing: .05em; }
.badge.live { background: var(--bad-soft); color: #ff8a8a; border-color: transparent; }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
.badge.final { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.scheduled { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
@keyframes pulse { 50% { opacity: .3; } }
.pill.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* settings chips */
dl.settings { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0 0; }
dl.settings div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .75rem; }
dl.settings dt { font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; }
dl.settings dd { margin: .1rem 0 0; font-weight: 600; font-size: .92rem; }
.notes { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; padding: .7rem 1rem; color: var(--ink-2); }

/* ---------- tables */
.table-wrap { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-size: .93rem; }
.card > table.board, .card > .table-wrap { margin: 0 -.25rem; width: calc(100% + .5rem); }
table.board th, table.board td { padding: .7rem .6rem; text-align: center; border-bottom: 1px solid var(--line); }
table.board th { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
table.board .left { text-align: left; }
table.board .right { text-align: right; }
table.board tbody tr:last-child td { border-bottom: 0; }
table.board tbody tr:hover td { background: rgba(255,255,255,.02); }
table.board a { color: var(--ink); font-weight: 550; }
table.board a:hover { color: var(--accent); text-decoration: none; }
tr.excluded td { opacity: .45; text-decoration: line-through; }
.pos { display: inline-grid; place-items: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .3rem; border-radius: 9px; background: var(--card-2); font-weight: 650; font-size: .82rem; }
.pos.p1 { background: var(--accent); color: var(--accent-ink); }
.under { color: var(--good); } .over { color: var(--ink-2); } .even { color: var(--ink); }
.who { display: flex; align-items: center; gap: .65rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); color: var(--ink-2); font-size: .75rem; font-weight: 700; flex: none; }
.avatar.lg { width: 72px; height: 72px; font-size: 1.5rem; background: var(--accent); color: var(--accent-ink); border: 0; }

/* bars (magnitude): one hue, thin, rounded data end */
.bar { position: relative; height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; min-width: 60px; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--mark); border-radius: 0 4px 4px 0; }
.barrow { display: grid; grid-template-columns: minmax(110px, 9rem) 1fr 3.2rem; gap: .8rem; align-items: center; padding: .45rem 0; }
.barrow .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: .9rem; }
.barrow .lab { color: var(--ink-2); font-size: .9rem; }
.pts-cell { display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: center; min-width: 140px; }
.pts-cell b { text-align: right; }

/* sparkline */
.spark { width: 100%; height: auto; display: block; overflow: visible; }
.spark .grid-line { stroke: var(--line); stroke-width: 1; }
.spark .zero { stroke: var(--line-2); stroke-dasharray: 3 4; }
.spark .area { fill: url(#sparkfill); }
.spark .line { fill: none; stroke: var(--mark); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { fill: var(--mark); stroke: var(--card); stroke-width: 2; }
.spark .hit { fill: transparent; cursor: default; }
.spark .hit:hover + .dot, .spark g:hover .dot { r: 6; }
.spark text { fill: var(--muted); font-size: 11px; }
#tip { position: fixed; z-index: 50; pointer-events: none; background: #26262b; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: .4rem .6rem; font-size: .8rem; box-shadow: 0 8px 24px rgba(0,0,0,.45); max-width: 240px; }

/* scorecards */
.scorecard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; overflow-x: auto; }
.scorecard h4 { margin: 0 0 .7rem; font-size: 1rem; }
.scorecard table { border-collapse: separate; border-spacing: 0; font-size: .88rem; margin-bottom: .5rem; }
.scorecard th, .scorecard td { min-width: 2.3rem; padding: .3rem .2rem; text-align: center; border-bottom: 1px solid var(--line); }
.scorecard th { color: var(--muted); font-weight: 600; font-size: .78rem; }
.scorecard td:first-child, .scorecard th:first-child { text-align: left; color: var(--muted); padding-right: .6rem; }
.scorecard tr.par td { color: var(--muted); }
.sc { display: inline-block; width: 1.75rem; height: 1.75rem; line-height: 1.5rem; border: 2px solid transparent; }
.sc.birdie { border-color: var(--good); border-radius: 50%; }
.sc.eagle { border-color: var(--good); border-radius: 50%; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--good); }
.sc.bogey { border-color: var(--line-2); border-radius: 4px; }
.sc.double { border-color: var(--line-2); border-radius: 4px; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--line-2); }

/* lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: .9rem; padding: .75rem 0; border-bottom: 1px solid var(--line); color: inherit; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { text-decoration: none; }
a.list-item:hover .title { color: var(--accent); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; color: var(--ink); }
.list-item .meta { color: var(--muted); font-size: .84rem; margin-top: .1rem; }
.datebox { width: 50px; height: 54px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.datebox b { font-size: 1.15rem; line-height: 1; }
.datebox span { font-size: .64rem; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-top: .2rem; }
.datebox.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.datebox.on span { color: var(--accent-ink); opacity: .75; }
.empty { color: var(--muted); padding: 1rem 0; }

/* schedule weeks */
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.week { display: flex; flex-direction: column; gap: .5rem; }
.week .row.between { align-items: flex-start; }
.week.done { opacity: .78; }
.week .winner { color: var(--ink-2); font-size: .88rem; }

/* ---------- booking */
.days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1rem; }
.day { flex: none; width: 74px; padding: .6rem .3rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; color: var(--ink-2); }
.day:hover { text-decoration: none; border-color: var(--line-2); }
.day small { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { display: block; font-size: 1.35rem; color: var(--ink); margin: .1rem 0; }
.day .dots { font-size: .7rem; color: var(--muted); }
.day.on { background: var(--accent); border-color: var(--accent); }
.day.on, .day.on small, .day.on b, .day.on .dots { color: var(--accent-ink); }
.day.league:not(.on) { border-color: #5a3a20; }
.timeline { display: flex; flex-direction: column; }
.slot { display: grid; grid-template-columns: 5.2rem 1fr; gap: .8rem; align-items: stretch; min-height: 34px; }
.slot .t { color: var(--muted); font-size: .78rem; padding-top: .45rem; font-variant-numeric: tabular-nums; }
.slot .cell { border-top: 1px solid var(--line); padding: .25rem 0; }
.slot.hour .cell { border-top-color: var(--line-2); }
.slot.past .cell { opacity: .4; }
.slot .free { display: block; height: 100%; min-height: 26px; border-radius: 8px; color: transparent; font-size: .8rem; padding: .25rem .6rem; }
.slot .free:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.slot .busy { background: var(--accent-soft); border-left: 3px solid var(--accent); border-radius: 8px; padding: .35rem .7rem; font-size: .88rem; display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.slot .busy.held { background: rgba(255,255,255,.05); border-left-color: var(--muted); }
.slot .busy .who-b { font-weight: 600; }
.slot .busy .when { color: var(--ink-2); font-size: .8rem; }
.slot.cont .cell { border-top-color: transparent; }
.slot.cont .busy { visibility: hidden; height: 0; padding: 0; }
.booking-form { position: sticky; top: 1.5rem; }
details.cancel summary { cursor: pointer; color: var(--muted); font-size: .8rem; list-style: none; }
details.cancel summary::-webkit-details-marker { display: none; }
details.cancel[open] summary { color: var(--ink-2); }
details.cancel form { margin-top: .4rem; }

/* ---------- player profile */
.profile-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.profile-head h1 { font-size: 2rem; }
.profile-head .chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .45rem; }
.player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.player-card { display: flex; align-items: center; gap: .9rem; }
.player-card .avatar { width: 46px; height: 46px; font-size: .95rem; }
.player-card .name { font-weight: 650; color: var(--ink); }
.player-card .meta { color: var(--muted); font-size: .84rem; }

/* ---------- forms */
form.inline { display: inline; }
.stack label, .grid2 label, .field { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--ink-2); }
label.check { flex-direction: row; align-items: center; gap: .5rem; }
.rowform { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0; }
.rowform.tight { gap: .3rem; margin: .15rem 0; }
input, select, textarea { font: inherit; font-size: .93rem; color: var(--ink); padding: .55rem .7rem; border: 1px solid var(--line-2); border-radius: 10px; background: #101012; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); padding: 0; }
input.num { width: 5.5rem; }
input.pin { width: 6rem; letter-spacing: .2em; }
textarea { min-height: 4.5rem; }
button, .btn { font: inherit; font-size: .9rem; font-weight: 650; padding: .55rem 1rem; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: default; }
button.ghost, .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
button.ghost:hover, .btn.ghost:hover { background: var(--card-2); }
button.current { background: var(--accent-soft); border-color: transparent; color: var(--accent); opacity: 1; }
button.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 500; }
button.danger { background: transparent; color: #ff8a8a; border-color: #5c2a2a; }
.rowform.tight button { padding: .3rem .6rem; font-size: .8rem; }
form.danger { margin-top: 2rem; }
.callout { background: var(--accent-soft); border: 1px solid #4a2e18; color: var(--ink); border-radius: 12px; padding: .8rem 1rem; }
.callout.warn, .warn { background: rgba(255, 200, 60, .08); border-color: #4d4020; }
.callout.ok { background: var(--good-soft); border-color: #1f4a37; }
.error { color: #ff8a8a; }
.callout.error { background: var(--bad-soft); border-color: #5c2a2a; color: #ffb0b0; }
.narrow { max-width: 380px; margin: 3rem auto; }
.holegrid { display: grid; grid-template-columns: 2rem 6rem 6rem; gap: .3rem .5rem; align-items: center; }
.subnav { display: none; } /* admin pages use the sidebar now */
.admin-tag { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- small screens: sidebar becomes a top bar */
@media (max-width: 900px) {
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 10; height: auto; flex-direction: row; align-items: center; padding: .6rem .7rem; gap: .6rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-text { display: none; }
  .nav { flex-direction: row; gap: .15rem; }
  .nav a, .nav-btn { padding: .5rem .6rem; white-space: nowrap; }
  .nav a span, .nav-btn span { display: none; }
  .nav a.on span { display: inline; }
  .nav-head { display: none; }
  .admin-nav { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 .5rem; }
  .nav.foot { margin: 0 0 0 auto; }
  main { padding: 1.2rem 1rem 3rem; }
  h1 { font-size: 1.45rem; }
  table.board th, table.board td { padding: .55rem .35rem; font-size: .88rem; }
  .hide-sm { display: none; }
  .barrow { grid-template-columns: 7rem 1fr 2.6rem; }
}
main > h1, main > .row > h1 { margin-bottom: 1rem; }
main > .row { margin-bottom: 1rem; }
.pargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.2rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.pargrid label { display: flex; flex-direction: column; gap: .25rem; font-size: .8rem; color: var(--muted); }
.mt { margin-top: 1rem; }
.shell { background: linear-gradient(to right, var(--side) 236px, var(--line) 236px, var(--line) 237px, transparent 237px); }
.side { border-right: 0; }
.hero { display: flex; flex-direction: column; }
.hero-actions { margin-top: auto; padding-top: 1.2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.slot .busy { align-items: flex-start; }
@media (max-width: 760px) {
  .shell { background: none; }
  .side { border-bottom: 1px solid var(--line); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .tiles .card { padding: .9rem; }
  .stat-value { font-size: 1.4rem; overflow-wrap: anywhere; }
  .pts-cell { min-width: 96px; grid-template-columns: 2.2rem 1fr; }
  .bar { min-width: 40px; }
  .page-head { align-items: flex-start; }
}

/* ---------- landing */
body.landing { background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; padding: .9rem 2rem; background: rgba(11, 11, 12, .82); backdrop-filter: blur(10px); border-bottom: 1px dashed var(--line-2); }
.top-links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.top-links a { color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.top-links a:hover { color: var(--ink); text-decoration: none; }
.top-actions { margin-left: auto; display: flex; gap: .5rem; }
.btn.big { padding: .8rem 1.4rem; font-size: 1rem; border-radius: 12px; }

/* the word-texture background with a glow that follows the cursor */
.field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; --x: 50%; --y: 40%;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 45%, transparent 85%); mask-image: radial-gradient(120% 90% at 50% 45%, #000 45%, transparent 85%); }
.field-glow { position: absolute; width: 640px; height: 640px; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, .22), rgba(255, 122, 26, .07) 40%, transparent 70%); filter: blur(10px); }
.field-words { position: absolute; inset: -20px -60px; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 0; }
.field-row { display: flex; gap: 2.2rem; white-space: nowrap; transform: translateX(calc(var(--shift) * -1)); }
.field-row span { font: 500 12px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; color: #2c2c31; transition: color .5s ease, text-shadow .5s ease; --g: 0;
  color: color-mix(in srgb, var(--accent) calc(var(--g) * 100%), #2c2c31); text-shadow: 0 0 calc(var(--g) * 12px) rgba(255, 122, 26, calc(var(--g) * .6)); }
.field-row span.hot { transition-duration: .12s; }

.hero-land { position: relative; min-height: min(78vh, 720px); display: grid; place-items: center; text-align: center; padding: 5rem 1.5rem; border-bottom: 1px dashed var(--line-2); overflow: hidden; }
.hero-inner { position: relative; max-width: 760px; }
.hero-inner h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; margin: .9rem 0 1.1rem; font-weight: 750; }
.hero-inner .accent { color: var(--accent); }
.hero-inner .eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: .3rem .6rem; font-family: ui-monospace, Menlo, monospace; }
.lede { color: var(--ink-2); font-size: 1.12rem; max-width: 600px; margin: 0 auto; }
.hero-cta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.land-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px dashed var(--line-2); }
.land-stats div { padding: 1.6rem 2rem; border-right: 1px dashed var(--line-2); }
.land-stats div:last-child { border-right: 0; }
.land-stats b { display: block; font-size: 2.2rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.land-stats span { color: var(--muted); font-size: .88rem; }
.land-section { max-width: 1180px; margin: 0 auto; padding: 3rem 2rem 0; }
.section-title { font-size: 1.6rem; margin: 0 0 1.2rem; letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps > .card + .card { margin-top: 0; }
.step h3 { font-size: 1.1rem; margin: .9rem 0 .3rem; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; background: radial-gradient(100% 160% at 100% 50%, rgba(255,122,26,.25), transparent 60%), var(--card); }
.cta-card h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.cta-card p { margin: 0; }
.landing-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 3rem 2rem 2.5rem; max-width: 1180px; margin: 3rem auto 0; border-top: 1px dashed var(--line-2); font-size: .9rem; }
.landing-foot a { color: var(--muted); }
.list-item > b { font-variant-numeric: tabular-nums; }

/* join / log in */
.auth { position: relative; min-height: calc(100vh - 6rem); display: grid; place-items: center; padding: 2rem 0; }
.auth-card { position: relative; width: min(440px, 100%); padding: 1.8rem; background: rgba(22, 22, 24, .92); backdrop-filter: blur(6px); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .5rem; }
.field-static { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.03); }

@media (max-width: 760px) {
  .topbar { padding: .7rem 1rem; gap: .6rem; }
  .topbar .brand-text, .top-links { display: none; }
  .land-stats { grid-template-columns: repeat(2, 1fr); }
  .land-stats div { padding: 1.1rem 1rem; border-bottom: 1px dashed var(--line-2); }
  .land-stats div:nth-child(2n) { border-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .land-section { padding: 2rem 1rem 0; }
  .field-row { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .field-row span { transition: none; }
}
.hero-inner { max-width: 940px; }
.hero-inner::before { content: ""; position: absolute; inset: -12% -8%; z-index: -1; background: radial-gradient(closest-side, rgba(11,11,12,.92), rgba(11,11,12,.75) 55%, transparent); }
.hero-inner { z-index: 0; }
.hero-inner h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
.lede { text-shadow: 0 1px 12px #0b0b0c; }
/* golf symbols in the landing background */
.field-row { gap: 30px; }
.field-row span { display: block; width: 22px; height: 22px; flex: none; }
.field-row span svg { width: 100%; height: 100%; display: block; overflow: visible;
  filter: drop-shadow(0 0 calc(var(--g) * 6px) rgba(255, 122, 26, calc(var(--g) * .7))); }
.field-row span { color: color-mix(in srgb, var(--accent) calc(var(--g) * 100%), #2e2e33); transform: scale(calc(1 + var(--g) * .18)); transition: color .5s ease, transform .5s ease; text-shadow: none; }
@media (max-width: 760px) { .field-row { gap: 22px; } .field-row span { width: 18px; height: 18px; } }
/* lighter on the GPU: no per-symbol filters */
.field-row span svg { filter: none; }

/* Home page login screen: just the brand, the card and a way to join. */
body:has(.login-home) .top-links, body:has(.login-home) .top-actions, body:has(.login-home) .landing-foot .muted { display: none; }
.login-home .auth-card .eyebrow { display: block; margin-bottom: .3rem; }
.join-cta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

/* Booking form: who else is playing */
.party { border: 0; padding: 0; margin: 0; min-width: 0; }
.party legend { font-size: .85rem; color: var(--ink-2); margin-bottom: .4rem; padding: 0; }
.party-list { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 9.5rem; overflow-y: auto; }
.chip { display: inline-flex; align-items: center; cursor: pointer; font-size: .85rem; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: .3rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip input:disabled + span { opacity: .4; cursor: not-allowed; }

/* Week page: edit panel opens from the Edit buttons (#edit) */
.edit-week { margin: 1rem 0 1.5rem; }
.edit-week > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .8rem; }
.edit-week > summary::-webkit-details-marker { display: none; }
.edit-week > summary h2 { margin: 0; }
.edit-week > summary::after { content: 'Open'; margin-left: auto; font-size: .85rem; color: var(--accent); }
.edit-week[open] > summary::after { content: 'Close'; }
.edit-week[open] > summary { margin-bottom: 1rem; }
.danger-row { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); gap: .8rem; align-items: center; }
.btn.small, button.small { padding: .3rem .75rem; font-size: .82rem; }
.week-actions { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
.week-actions form { margin: 0; display: flex; }
.week-actions .btn, .week-actions button { margin: 0; }

/* Themed confirm pop-up */
.confirm-dialog { width: min(420px, calc(100vw - 2rem)); padding: 1.4rem 1.5rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.confirm-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(3px); }
.confirm-dialog[open] { animation: cd-in .16s ease-out; }
@keyframes cd-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.confirm-dialog h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.confirm-dialog p { margin: 0 0 1.3rem; color: var(--ink-2); }
.cd-actions { display: flex; justify-content: flex-end; gap: .5rem; }
button.danger-solid { background: #e5484d; border-color: #e5484d; color: #fff; }
@media (prefers-reduced-motion: reduce) { .confirm-dialog[open] { animation: none; } }

/* Password box with a show/hide eye */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 2.6rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: var(--muted); padding: .35rem; border-radius: 8px; }
.pw-eye:hover { color: var(--ink); background: var(--card-2); filter: none; }
.pw-eye .eye-shut { display: none; }
.pw-eye[aria-pressed="true"] .eye-open { display: none; }
.pw-eye[aria-pressed="true"] .eye-shut { display: block; }
