/* Design tokens (palette, type, spacing, motion) come from the shared
   tokens.css, loaded before this file. This is a Mode C field tool — see
   STYLE.md: thumb-first, big targets, readable in sun. Site-specific only below. */

/* Playing-card faces are the one thing here that isn't a UI surface. */
:root {
    --card-face: #ebe7de;
    --card-ink:  #1a1f28;
    --card-red:  #b0442a;
    --card-edge: transparent;
    --bar-h: 76px;
    --col: 540px;
}
:root[data-scheme="light"] { --card-face: #ffffff; --card-edge: rgba(17, 22, 28, 0.18); }
@media (prefers-color-scheme: light) {
    :root[data-scheme="auto"] { --card-face: #ffffff; --card-edge: rgba(17, 22, 28, 0.18); }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-ui);
    font-size: var(--text-base);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    min-height: 100dvh;
}

button, input, a { font: inherit; color: inherit; }
button {
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}
button:disabled { cursor: default; opacity: 0.4; }
a { -webkit-tap-highlight-color: transparent; }

:focus { outline: none; }
:focus-visible { box-shadow: var(--focus-ring); }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app {
    max-width: var(--col);
    margin: 0 auto;
    padding: env(safe-area-inset-top) var(--space-4) calc(var(--bar-h) + var(--space-6) + env(safe-area-inset-bottom));
}

.noscript { padding: var(--space-6) var(--space-4); text-align: center; }

/* ---------- Shared type ---------- */
.eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}
.section-title {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.hint { font-size: var(--text-sm); color: var(--text-secondary); margin-top: var(--space-2); }
.detail { color: var(--text-primary); }
.field-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin: var(--space-4) 0 var(--space-2);
}

.amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amt.up   { color: var(--success); }
.amt.down { color: var(--danger); }
.amt.even { color: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    padding: 0 var(--space-5);
    border-radius: var(--radius-sm);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast);
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.primary   { background: var(--accent); color: var(--on-accent); }
.btn.secondary { background: var(--bg-elevated); color: var(--text-heading); border: 1px solid var(--border-light); }
.btn.danger    { background: var(--bg-elevated); color: var(--danger); border: 1px solid var(--border-light); }
.btn.ghost     { color: var(--accent); padding: 0 var(--space-3); }
.btn.sm        { min-height: var(--tap-min); font-size: var(--text-sm); }
.btn.grow      { flex: 1; }
.btn.square    { width: 52px; padding: 0; }
.btn.block     { display: flex; width: 100%; margin-top: var(--space-5); }
.btn.add       { margin-top: var(--space-1); padding-left: var(--space-2); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.icon-btn:active:not(:disabled) { background: var(--bg-hover); }
.icon-btn-spacer { width: var(--tap-min); }

.link {
    min-height: var(--tap-min);
    color: var(--accent);
    font-weight: 600;
    text-align: left;
}

/* ---------- Bottom action bar (thumb zone) ---------- */
.bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
}
.bar-inner { max-width: calc(var(--col) - 2 * var(--space-4)); margin: 0 auto; display: flex; gap: var(--space-2); }

/* ---------- Top bars ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: var(--tap-min) 1fr var(--tap-min);
    align-items: center;
    margin: 0 calc(-1 * var(--space-4));
    padding: calc(var(--space-2) + env(safe-area-inset-top)) var(--space-3) var(--space-2);
    margin-top: calc(-1 * env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.topbar-title {
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-heading);
}

/* ---------- Surfaces ---------- */
.card, .panel {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-top: var(--space-3);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.panel-title { font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); }
.panel-head .panel-title { margin-top: 2px; }

/* ---------- Home ---------- */
.masthead { padding: var(--space-7) 0 var(--space-5); }
.masthead h1 {
    font-size: var(--text-3xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: var(--text-heading);
    margin-top: var(--space-2);
}
.lede { margin-top: var(--space-3); font-size: var(--text-lg); color: var(--text-secondary); max-width: 36ch; }

.resume-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-2); }
.resume-hole { font-size: var(--text-xl); font-weight: 700; color: var(--text-heading); }
.resume-hole span { font-size: var(--text-sm); font-weight: 500; color: var(--text-secondary); }
.games-line { margin-top: var(--space-3); font-size: var(--text-sm); color: var(--text-secondary); }

.net-list { list-style: none; }
.net-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: var(--space-2) 0;
    border-top: 1px solid var(--border);
    font-size: var(--text-lg);
}
.net-name { color: var(--text-heading); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { font-variant-numeric: tabular-nums; color: var(--text-secondary); }

.past { margin-top: var(--space-6); }
.past .section-title { margin-bottom: var(--space-2); }
.past-list { list-style: none; }
.past-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "date amt" "names amt";
    column-gap: var(--space-3);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    margin-top: var(--space-2);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
}
.past-date { grid-area: date; font-size: var(--text-sm); color: var(--text-secondary); }
.past-names { grid-area: names; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past-row .amt { grid-area: amt; font-size: var(--text-sm); }

.foot { margin-top: var(--space-7); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.foot .field-label { margin: 0 0 var(--space-2); }

/* ---------- Segmented control ---------- */
.seg {
    display: flex;
    gap: 3px;
    padding: 3px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.seg-btn {
    flex: 1;
    min-height: var(--tap-min);
    padding: 0 var(--space-2);
    border-radius: 8px;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.seg-btn:active { transform: scale(0.95); }
.seg-btn.on { background: var(--bg-elevated); color: var(--text-heading); box-shadow: 0 0 0 1px var(--border-light); }
.seg-btn.on.good { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.seg-btn.on.bad  { background: var(--danger); color: var(--on-accent); box-shadow: none; }
.seg.small { width: auto; }
.seg.small .seg-btn { min-height: 36px; font-size: var(--text-sm); padding: 0 var(--space-3); }
.seg.wrap .seg-btn { font-size: var(--text-sm); line-height: 1.2; min-height: 52px; padding: var(--space-1) var(--space-2); }

/* ---------- Chips (toggle facts; tap again to undo) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: var(--tap-min);
    padding: 0 var(--space-4);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.chip:active { transform: scale(0.95); }
.chip.on { background: var(--accent-muted); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.chip.neg.on {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    border-color: var(--danger);
    color: var(--danger);
}
.chip-pts { font-size: var(--text-xs); font-weight: 600; color: var(--text-secondary); }
.chip.on .chip-pts { color: inherit; }

/* ---------- Switch ---------- */
.switch {
    position: relative;
    width: 46px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    transition: background var(--dur) var(--ease-out), border-color var(--dur);
}
.switch::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--text-secondary);
    transition: transform var(--dur) var(--ease-out), background var(--dur);
}
[aria-checked="true"] > .switch { background: var(--accent); border-color: var(--accent); }
[aria-checked="true"] > .switch::after { transform: translateX(18px); background: var(--on-accent); }

.toggle-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    min-height: 48px;
    margin-top: var(--space-3);
    text-align: left;
    color: var(--text-primary);
}

/* ---------- Setup ---------- */
.group { margin-top: var(--space-6); }
.group > .section-title { margin-bottom: var(--space-3); }
.group-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-2); }

.player-inputs { list-style: none; }
.player-input { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.ord { width: 18px; font-size: var(--text-sm); color: var(--text-muted); font-variant-numeric: tabular-nums; text-align: right; }
.name-input {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    padding: 0 var(--space-4);
    font-size: 17px;
    color: var(--text-heading);
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--dur-fast);
}
.name-input::placeholder { color: var(--text-muted); }
.name-input:focus { border-color: var(--accent); }

.games { display: flex; flex-direction: column; gap: var(--space-3); }
.game {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--dur);
}
.game.on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.game-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
    text-align: left;
    border-radius: var(--radius);
}
.game-head:disabled { opacity: 1; }
.game.blocked .game-title, .game.blocked .switch { opacity: 0.45; }
.game-text { display: flex; flex-direction: column; gap: 2px; }
.game-title { font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); }
.game-desc { font-size: var(--text-sm); color: var(--text-secondary); }
.game-body { padding: 0 var(--space-4) var(--space-4); border-top: 1px solid var(--border); }
.game-body .chips { margin-top: 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.fields .field-label { margin-top: var(--space-4); }
.stepper {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.step {
    width: var(--tap-min);
    height: var(--tap-min);
    font-size: 22px;
    font-weight: 500;
    color: var(--text-heading);
    border-radius: var(--radius-sm);
}
.step:active:not(:disabled) { background: var(--bg-hover); }
.step-val {
    flex: 1;
    text-align: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-heading);
    font-variant-numeric: tabular-nums;
}

/* ---------- Round: header ---------- */
.round-top {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(-1 * var(--space-4));
    margin-top: calc(-1 * env(safe-area-inset-top));
    padding: calc(var(--space-1) + env(safe-area-inset-top)) var(--space-3) var(--space-3);
    background: color-mix(in srgb, var(--bg-primary) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.round-top-row {
    display: grid;
    grid-template-columns: var(--tap-min) 1fr var(--tap-min);
    align-items: center;
}
.hole-btn {
    justify-self: center;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-height: var(--tap-min);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}
.hole-btn:active { background: var(--bg-hover); }
.hole-num { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -0.02em; color: var(--text-heading); }
.hole-of { font-size: var(--text-sm); color: var(--text-secondary); }
.hole-btn svg { width: 16px; height: 16px; color: var(--text-secondary); align-self: center; }

.strip {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--space-1);
    width: 100%;
    margin-top: var(--space-1);
    padding: var(--space-2) var(--space-1);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.strip-cell { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.strip-name {
    max-width: 100%;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.strip .amt { font-size: var(--text-lg); }

/* ---------- Round: body ---------- */
.round-body { padding-top: var(--space-1); }

.wolf .chips { margin-top: 0; }
.wolf-pick { margin-top: var(--space-3); padding: var(--space-3); background: var(--bg-secondary); border-radius: var(--radius-sm); }

.status {
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}
.status-item {
    display: flex;
    flex-direction: column;
    padding: var(--space-3);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 0;
}
.status-item.live { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.status-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.status-val { font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-sub { font-size: var(--text-sm); color: var(--text-secondary); }

.notice {
    margin-top: var(--space-3);
    padding: var(--space-3) var(--space-4) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--warning) 50%, transparent);
    background: color-mix(in srgb, var(--warning) 8%, transparent);
    border-radius: var(--radius-sm);
}
.notice p { font-weight: 500; color: var(--text-heading); margin-bottom: var(--space-3); }

.player.has-snake { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.player-head { display: flex; align-items: center; gap: var(--space-2); }
.player-name {
    flex: 1;
    min-width: 0;
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--text-heading);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-head .amt { font-size: var(--text-lg); }

.putts { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.putts .field-label { margin: 0; width: 40px; flex-shrink: 0; }
.putts .seg { flex: 1; }
.putt-seg .seg-btn { min-height: 48px; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    background: var(--accent-muted);
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Dots sit in an even keypad grid so a player card stays compact. */
.chips.dots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 6px;
    margin-top: var(--space-3);
}
.chips.dots .chip {
    justify-content: center;
    padding: 0 6px;
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
}

/* ---------- Playing cards ---------- */
.hand { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.pcards { display: flex; flex-wrap: wrap; gap: 5px; }
.pcard {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 44px;
    border-radius: 5px;
    background: var(--card-face);
    box-shadow: inset 0 0 0 1px var(--card-edge);
    color: var(--card-ink);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.pcard.red { color: var(--card-red); }
.pcard-r { font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.pcard-s { font-size: 14px; margin-top: 2px; }
.pcard.dealt { animation: deal var(--dur-slow) var(--ease-out) both; }
@keyframes deal {
    from { opacity: 0; transform: translateY(-10px) rotateY(80deg) scale(0.9); }
    to   { opacity: 1; transform: none; }
}
.hand-name { font-size: var(--text-sm); color: var(--text-secondary); }
.hand-name.leads { color: var(--accent); font-weight: 600; }

/* ---------- Settle ---------- */
.settle { margin-top: var(--space-2); }
.payments { list-style: none; }
.payments li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
    font-size: var(--text-lg);
    color: var(--text-secondary);
}
.pay-from, .pay-to { color: var(--text-heading); font-weight: 600; }
.pay-amt { font-size: var(--text-2xl); font-weight: 700; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.square { padding: var(--space-5) 0; font-size: var(--text-xl); font-weight: 600; color: var(--text-heading); }

.table-wrap { overflow-x: auto; margin-top: var(--space-2); }
.by-game { width: 100%; border-collapse: collapse; font-size: 15px; }
.by-game th, .by-game td { padding: var(--space-2) var(--space-1); border-top: 1px solid var(--border); }
.by-game thead th {
    border-top: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.by-game tbody th { text-align: left; font-weight: 500; color: var(--text-heading); max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.by-game .num { text-align: right; }
.by-game .total { font-weight: 700; }

.pot { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-top: 4px; }
.hands { list-style: none; margin-top: var(--space-2); }
.hands li { padding: var(--space-3) 0; border-top: 1px solid var(--border); }
.hands li:first-child { border-top: 0; }
.hands-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.hands-head .hand-name { margin-left: auto; }
.hands li.won .hand-name { color: var(--accent); font-weight: 600; }
.hands .hint { margin-top: var(--space-2); }

/* ---------- Sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 13, 0.5); }
.sheet {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-width: var(--col);
    max-height: 88vh;
    margin: 0 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    padding: 0 var(--space-4) calc(var(--space-5) + env(safe-area-inset-bottom));
}
.sheet-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0 var(--space-2);
    background: var(--bg-primary);
}
.sheet-title { font-size: var(--text-xl); font-weight: 600; color: var(--text-heading); }
.sheet-body > .panel:first-child { margin-top: 0; }
.sheet-actions { display: flex; gap: var(--space-2); margin-top: var(--space-5); }

.sheet-wrap.opening .sheet-backdrop { animation: fade var(--dur) var(--ease-out) both; }
.sheet-wrap.opening .sheet { animation: rise var(--dur-slow) var(--ease-out) both; }
.sheet-wrap.closing .sheet-backdrop { animation: fade var(--dur) var(--ease-in-out) reverse both; }
.sheet-wrap.closing .sheet { animation: rise var(--dur) var(--ease-in-out) reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }

.hole-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); padding-top: var(--space-2); }
.hole-cell {
    min-height: 52px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.hole-cell.seen { color: var(--text-heading); background: var(--bg-surface); }
.hole-cell.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.rules section { margin-top: var(--space-5); }
.rules section:first-child { margin-top: var(--space-2); }
.rules h3 { font-size: var(--text-lg); font-weight: 600; color: var(--text-heading); margin-bottom: var(--space-2); }
.rules p { color: var(--text-secondary); line-height: 1.55; }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    left: 50%;
    bottom: calc(var(--bar-h) + var(--space-4) + env(safe-area-inset-bottom));
    z-index: 60;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--text-heading);
    color: var(--bg-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
