:root {
  color-scheme: light;
  --paper: #f6f3e9;
  --surface: #fffdf7;
  --navy: #121e2d;
  --ink: #182435;
  --muted: #55616c;
  --line: #dedbd0;
  --accent: #ee692d;
  --accent-dark: #a33914;
  --green: #26714f;
  --radius: 15px;
  --body-font: "Avenir Next", Avenir, system-ui, sans-serif;
  --display-font: "Avenir Next", Avenir, system-ui, sans-serif;
  font-family: var(--body-font);
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #176c9e;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, dl, ul { margin: 0; }
a { color: inherit; }
.frame { width: min(1230px, calc(100% - 64px)); margin-inline: auto; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.muted { color: var(--muted); }
.eyebrow { font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.orange-text { color: var(--accent-dark); }
.skip-link { position: absolute; top: .5rem; left: 1rem; z-index: 10; padding: .75rem; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead { background: var(--navy); color: #fffcf2; border-top: 4px solid var(--accent); }
.masthead-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { color: #fa814b; flex: none; }
.brand strong { font-size: 1.17rem; line-height: 1.04; font-weight: 850; letter-spacing: -.035em; display: block; }
.brand-sub { display: block; color: #bec8cd; font-size: .64rem; text-transform: uppercase; letter-spacing: .13em; margin-top: 3px; }
#masthead-actions { display: flex; align-items: center; gap: 15px; }
#masthead-actions a, .sign-out { font-size: .8rem; font-weight: 750; text-decoration: none; color: #f9f4e9; }
#masthead-actions a:hover, #masthead-actions a[aria-current] { color: #ff9a68; }
.sign-out { border: 1px solid #626a70; border-radius: 8px; background: transparent; padding: 8px 10px; white-space: nowrap; }
.sign-out:hover { border-color: #ffc2a6; }

#app { min-height: 65vh; }
#app:focus, [tabindex="-1"]:focus { outline: none; }
#app .square:focus-visible { outline: 3px solid #176c9e; outline-offset: 1px; z-index: 1; }
.startup { padding-block: 70px; text-align: center; color: var(--muted); }
.site-footer { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-block: 38px 18px; padding-top: 17px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.footer-brand { font-weight: 800; color: var(--ink); }
.footer-brand strong { color: var(--accent-dark); }
.failure { padding: 26px; margin-block: 24px; }
.failure h1 { font-size: 1.75rem; margin-block: .35rem 1rem; }
.failure .button { margin-top: .75rem; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; border: 1px solid transparent; border-radius: 8px; padding: .63rem .9rem; font-weight: 800; font-size: .86rem; text-decoration: none; }
.button.primary { color: var(--navy); background: #fb824a; border-color: #f47a44; }
.button.primary:hover { background: #ff9b6f; }
.button.secondary { color: var(--ink); background: transparent; border-color: #c6c6be; }
.button.secondary:hover { background: #f0eee4; }
.button.quiet { color: var(--muted); background: transparent; }
.button.quiet:hover { background: #f0eee4; }
.button:disabled { background: #eeece4; color: #686c6d; border-color: #e1ded1; }
.button:disabled:hover { background: #eeece4; }
.text-button { border: 0; background: none; padding: .25rem 0; color: var(--accent-dark); font-size: .81rem; font-weight: 800; text-align: left; }
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .65; }
.notice { padding: .72rem .86rem; background: #f4ead6; border: 1px solid #e1c994; border-radius: 8px; font-size: .86rem; }
.notice.error { background: #fff0ed; border-color: #f1c4bc; color: #862f20; }
.pill { display: inline-flex; align-items: center; width: max-content; gap: .4rem; border-radius: 999px; padding: .25rem .57rem; background: #f0ebe0; color: #4b5358; font-size: .69rem; font-weight: 800; white-space: nowrap; }
.pill.live { color: #19573b; background: #e1f0e7; }
.pill.live::before { content: ""; width: .4rem; height: .4rem; background: #2e7957; border-radius: 50%; }

.welcome { display: grid; grid-template-columns: 1.15fr 1fr; max-width: 1010px; margin: clamp(28px, 7vh, 80px) auto 0; border: 1px solid #d9d6c7; border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 18px 44px #1523350e; }
.welcome-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 50px; min-height: 480px; overflow: hidden; padding: clamp(27px, 5.5vw, 70px); background: var(--navy); color: #fffaf0; isolation: isolate; }
.welcome-art::after { content: ""; position: absolute; z-index: -1; inset: 42% -40% -60% 3%; background: repeating-linear-gradient(90deg, #b8c1b417 0 1px, transparent 1px 52px), repeating-linear-gradient(0deg, #b8c1b417 0 1px, transparent 1px 52px); transform: rotate(-17deg); mask-image: linear-gradient(155deg, transparent 0%, #000 38%); }
.art-eyebrow { display: flex; align-items: center; gap: .6rem; color: #d5d9d8; }
.art-eyebrow > span { width: .7rem; height: .7rem; border: 2px solid #fa814b; transform: rotate(45deg); }
.welcome-art h1 { font-size: clamp(3rem, 6.4vw, 5.6rem); font-weight: 850; line-height: .97; letter-spacing: -.085em; margin-block: 26px 19px; }
.welcome-art h1 em { color: #ff8f5b; }
.welcome-art .art-content > p:last-child { color: #d6dedf; max-width: 300px; font-size: 1.05rem; line-height: 1.55; }
.yard-lines { display: flex; align-items: center; gap: 14px; letter-spacing: .12em; font-size: .62rem; color: #c4d0d4; font-weight: 800; }
.yard-lines span:first-child { display: block; padding: .35rem .48rem; border: 1px solid #708293; color: #fffaf0; border-radius: 5px; }
.welcome-entry { padding: clamp(27px, 5vw, 57px); align-self: center; }
.welcome-entry h2 { margin-block: .2rem .35rem; font-size: clamp(1.85rem, 3.5vw, 2.55rem); font-weight: 850; letter-spacing: -.065em; }
.welcome-entry .muted { font-size: .96rem; max-width: 32ch; }
.role-switch { display: flex; gap: 3px; border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin: 25px 0 19px; background: #eeece2; }
.role-switch button { flex: 1; padding: .65rem .4rem; border: 1px solid transparent; border-radius: 6px; font-size: .85rem; font-weight: 800; background: none; color: var(--muted); }
.role-switch button[aria-pressed="true"] { background: var(--surface); border-color: #e1ded3; color: var(--ink); }
.gate-form, #reserve-form { display: grid; gap: 8px; }
.gate-form label, #reserve-form label { font-size: .82rem; font-weight: 800; }
.gate-form input, #reserve-form input {
  width: 100%; min-height: 44px; padding: .65rem .72rem; border: 1px solid #c9c9bf; border-radius: 7px;
  background: #fffefa; color: var(--ink); font-size: 1rem;
}
.gate-form button, #reserve-form button { margin-top: .3rem; justify-content: space-between; }
.demo-help { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font-size: .8rem; }
.demo-help strong { color: var(--ink); }
.demo-help p { margin-block: .2rem; }

.demo-banner { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: .56rem .75rem; background: #f5ead7; color: #5b4733; border: 1px solid #e7d6b7; border-radius: 9px; margin-top: 17px; font-size: .79rem; }
.demo-banner .pill { background: #ecd7b0; color: #5c3e1f; }
.board-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-block: 35px 26px; }
.board-intro h1 { font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: .99; margin-block: 9px 11px; font-weight: 860; letter-spacing: -.085em; }
.board-intro h1 em { color: var(--accent-dark); }
.board-intro > div > p:last-child { color: var(--muted); }
.season-stamp { display: grid; grid-template-columns: auto auto; align-items: center; gap: .65rem; border: 1px solid #c4b4a3; border-radius: 11px; padding: .38rem .75rem .4rem .53rem; transform: rotate(4deg); color: #855138; }
.season-stamp strong { font-size: 2rem; line-height: 1.2; letter-spacing: -.1em; }
.season-stamp span { font-size: .59rem; font-weight: 850; line-height: 1.35; letter-spacing: .12em; }
.section-heading { display: flex; align-items: baseline; gap: .65rem; justify-content: space-between; margin-bottom: 8px; }
.section-heading h2 { font-size: .88rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.section-heading span { color: var(--muted); font-size: .77rem; }
.game-rail { display: flex; gap: 8px; overflow-x: auto; padding: 3px 3px 8px; margin-inline: -3px; scroll-padding: 3px; }
.game-link { flex: 1 0 128px; display: grid; gap: 3px; text-decoration: none; background: #fffcf4; border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; transition: background .12s; }
.game-link:hover { background: #efece0; }
.game-link.active { background: var(--navy); color: #fffcf4; border-color: var(--navy); }
.game-link strong { font-size: .86rem; font-weight: 850; }
.game-link > span { font-size: .68rem; color: var(--muted); white-space: nowrap; }
.game-link .game-group { text-transform: uppercase; font-size: .61rem; letter-spacing: .09em; color: var(--accent-dark); font-weight: 850; }
.game-link.active > span { color: #c9d2d6; }
.game-link.active .game-group { color: #ffa172; }

.play-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(255px, 1fr); gap: 16px; align-items: start; margin-top: 13px; }
.board-card, .reservation, .prize-card { padding: clamp(14px, 2.6vw, 30px); }
.play-side { display: grid; gap: 14px; min-width: 0; }
.board-card-heading, .board-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.board-card-heading > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.board-card-heading h2 { font-weight: 860; letter-spacing: -.055em; line-height: 1.08; font-size: clamp(1.55rem, 3.7vw, 2.45rem); margin-top: .2rem; }
.board-card-heading h2 span { font-size: .55em; color: var(--muted); font-weight: 700; letter-spacing: -.02em; }
.board-price { padding-left: 13px; border-left: 1px solid var(--line); flex: none; }
.board-price strong { display: block; font-size: 1.33rem; font-weight: 850; line-height: 1.13; }
.board-price span { color: var(--muted); font-size: .67rem; white-space: nowrap; }
.board-meta { border-bottom: 1px solid var(--line); padding-bottom: 13px; margin-top: 14px; }
.board-meta p { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--muted); font-size: .75rem; }
.board-meta .pill { margin-right: .18rem; }
.board-meta .text-button { white-space: nowrap; }
#refresh-error:empty { display: none; }
#refresh-error { margin-top: 8px; }

.board-figure { margin: 13px 0 0; }
.board-top-axis { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-left: 13%; color: var(--ink); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .15em; white-space: nowrap; }
.board-top-axis span { width: min(7%, 30px); height: 1px; background: #c6c4bb; }
.board-axis-layout { display: grid; grid-template-columns: min-content minmax(0, 1fr); align-items: center; gap: 5px; margin-top: 8px; }
.board-side-axis { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .61rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; white-space: nowrap; }
.square-grid { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(2px, .35vw, 5px); }
.axis, .square { aspect-ratio: 1; border: 1px solid #dcded8; border-radius: 6px; display: flex; align-items: center; justify-content: center; min-width: 0; }
.axis { background: #e9ebe7; color: #28394a; font-size: clamp(.6rem, 1.4vw, .9rem); font-weight: 900; }
.axis.corner { background: var(--navy); border-color: var(--navy); color: #ff9361; }
.square { padding: 0 2px; font-size: clamp(.54rem, 1.45vw, .9rem); color: #53616a; font-weight: 780; line-height: 1; background: #fcfbf6; font-variant-numeric: tabular-nums; }
.square span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) {
  .square[data-available="true"]:not(.selected):hover { border-color: #bf5b30; background: #ffe9d9; }
  .square[data-available="false"]:hover { border-color: #647686; }
}
.square.held { color: #5e452e; background: #f0dfbd; border-color: #e5d2aa; }
.square.paid { color: #245540; background: #dfede3; border-color: #c5decf; }
.square.winner { box-shadow: inset 0 0 0 2px #c36f26; }
.square.selected { color: var(--navy); border-color: #a64119; background: #ff905a; }
.board-figure figcaption { color: var(--muted); font-size: .71rem; margin: 8px 0 0 20px; }
.square-detail { margin: 6px 0 0 20px; min-height: 1.2rem; color: var(--ink); font-size: .73rem; font-weight: 700; overflow-wrap: anywhere; }
.legend { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 15px; margin-top: 16px; color: var(--muted); font-size: .73rem; }
.legend li { display: flex; align-items: center; gap: 5px; }
.key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; border: 1px solid #c6c6bb; background: #fcfbf6; }
.key.selected { background: #ff905a; border-color: #a64119; }
.key.held { background: #f0dfbd; border-color: #d5bc90; }
.key.paid { background: #dfede3; border-color: #a6ccba; }
.review-picks { display: none; margin-top: 12px; width: 100%; }

.play-side h3 { margin: 4px 0 9px; font-size: 1.45rem; font-weight: 850; letter-spacing: -.045em; line-height: 1.1; }
.selection-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 8px; background: #f1eee4; margin-top: 12px; padding: .68rem .75rem; font-size: .83rem; font-weight: 800; }
.selection-summary strong { font-size: 1.05rem; white-space: nowrap; }
.pick-list { margin-block: .58rem .85rem; color: var(--muted); font-size: .77rem; min-height: 1.2rem; }
#reserve-form label:not(:first-child) { margin-top: .18rem; }
#reserve-form label small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
#claim-error:empty, #gate-error:empty { display: none; }
.fine-print { color: var(--muted); font-size: .73rem; margin-top: 10px; }
.prize-card ul { list-style: none; padding: 0; }
.prize-card li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .87rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.prize-card li:last-child { border: 0; padding-bottom: 0; }
.prize-card small { color: var(--muted); display: block; font-size: .73rem; }
.receipt dl { background: #eaf1e8; border: 1px solid #cbdcc9; border-radius: 8px; padding: .55rem .75rem; margin: 14px 0; }
.receipt dl > div { display: flex; justify-content: space-between; gap: .5rem; padding-block: .26rem; font-size: .83rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 800; text-align: right; }
.receipt .reference { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.payment-instructions { white-space: pre-line; color: var(--muted); font-size: .85rem; margin-bottom: 14px; }

@media (max-width: 850px) {
  .frame { width: calc(100% - 36px); }
  .welcome-art { min-height: 410px; }
}
@media (max-width: 760px) {
  .play-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .review-picks { display: inline-flex; }
}
@media (max-width: 670px) {
  .frame { width: calc(100% - 24px); }
  .masthead-inner { min-height: 61px; gap: 6px; }
  .brand { gap: 5px; }
  .brand-icon { width: 28px; height: 28px; }
  .brand strong { font-size: 1rem; }
  .brand-sub { font-size: .52rem; }
  #masthead-actions { gap: .45rem; }
  #masthead-actions a, .sign-out { font-size: .7rem; }
  .sign-out { min-height: 44px; padding: .35rem .43rem; }
  .welcome { grid-template-columns: 1fr; margin-top: 17px; }
  .welcome-art { min-height: 0; padding: 26px 24px; gap: 22px; }
  .welcome-art h1 { margin-block: 14px 9px; }
  .welcome-art h1 br { display: none; }
  .welcome-art h1 em::before { content: " "; }
  .welcome-art .art-content > p:last-child { font-size: .91rem; }
  .welcome-entry { padding: 24px; }
  .board-intro { margin-block: 26px 21px; }
  .board-intro > div > p:last-child { font-size: .87rem; }
  .season-stamp { display: none; }
  .game-link { flex-basis: 132px; }
  .board-card, .reservation, .prize-card { padding: 12px; }
  .square-grid { grid-template-columns: 1rem repeat(10, minmax(0, 1fr)); }
  .square-grid > .axis:nth-child(11n + 1) { aspect-ratio: auto; }
  .axis, .square { border-radius: 4px; }
  .square { touch-action: manipulation; }
  .board-meta { margin-top: 10px; padding-bottom: 10px; }
  .board-meta .text-button { min-height: 44px; }
  .board-card-heading h2 { font-size: 1.55rem; }
  .board-figure figcaption, .square-detail { margin-left: 0; }
  .site-footer { margin-top: 25px; }
}
@media (max-width: 360px) {
  .frame { width: calc(100% - 16px); }
  .board-card { padding-inline: 6px; }
  .board-axis-layout { gap: 3px; }
  .board-side-axis { font-size: .52rem; }
  .square-grid { grid-template-columns: 14px repeat(10, minmax(0, 1fr)); }
  .brand-sub { letter-spacing: .055em; }
  #masthead-actions { gap: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

