/* HFSC mobile UX — single stylesheet. No inline styles (production CSP: style-src 'self'). */
:root {
  color-scheme: dark;
  --text-scale: 1;
  --bg: #0B0E13; --surface: #141921; --raised: #1B212C; --line: #262D39; --line-strong: #343C4A;
  --text: #EDF0F5; --soft: #C3CAD6; --muted: #A3ACBA;
  --gold: #C8A44D; --gold-light: #E9D08A; --gold-ink: #17130A;
  --silver: #BCC3CE; --bronze: #C99067; --platinum: #D7E1E8; --ok: #A5CDB7; --danger: #EAB4A7;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --r: 14px; --pad: 20px; --tap: 44px; --tabbar: 64px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
html { font-size: calc(100% * var(--text-scale)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@supports (font: -apple-system-body) { html.ios-dynamic { font: -apple-system-body; } }
html, body { margin: 0; height: 100%; background: #000; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.45; color: var(--text); -webkit-font-smoothing: antialiased; overflow: hidden; }
* { box-sizing: border-box; }
a { color: var(--gold-light); text-decoration: none; }
a:hover { color: #F3E2AE; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; border-radius: 6px; }
[data-screen-title]:focus { outline: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 10px 14px; }
.skip:focus { left: 8px; top: 8px; }
.i { width: 1.375rem; height: 1.375rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 2rem; height: 2rem; }

/* Splash: full black, logo, loading indicator only while loading. */
.startup { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: #000; padding: 24px; text-align: center; }
.startup-logo { width: 208px; height: auto; display: block; }
.startup-progress { width: 132px; height: 3px; background: #C8A44D2B; border-radius: 4px; overflow: hidden; }
.startup-progress::after { content: ''; display: block; width: 42%; height: 100%; background: var(--gold); border-radius: 4px; animation: startup 1.15s ease-in-out infinite; }
.startup-error { max-width: 22rem; color: var(--soft); margin: 0; }
@keyframes startup { 0% { transform: translateX(-115%); } 100% { transform: translateX(350%); } }

/* Shell */
#app { position: fixed; inset: 0; display: flex; justify-content: center; background: #000; }
.shell { position: relative; width: 100%; max-width: 520px; height: 100%; overflow: hidden; background: var(--bg); }
.stage { position: absolute; inset: 0; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.screen.pushed.current, .screen.under { box-shadow: -12px 0 28px rgba(0, 0, 0, .45); }
.screen.under { z-index: 0; transform: translate3d(-30%, 0, 0); box-shadow: none; }
.screen.under::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--shade, .45); pointer-events: none; }
.screen.current { z-index: 1; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.content { padding: 4px calc(var(--pad) + var(--safe-r)) calc(var(--tabbar) + var(--safe-b) + 32px) calc(var(--pad) + var(--safe-l)); display: flex; flex-direction: column; gap: 20px; }
.no-tabbar .content { padding-bottom: calc(var(--safe-b) + 32px); }
.in-right { animation: in-right .28s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
.out-left { animation: out-left .28s cubic-bezier(.2, .8, .2, 1) both; z-index: 0; }
.in-left { animation: in-left .28s cubic-bezier(.2, .8, .2, 1) both; z-index: 0; }
.out-right { animation: out-right .28s cubic-bezier(.2, .8, .2, 1) both; z-index: 2; }
@keyframes in-right { from { transform: translate3d(100%, 0, 0); } }
@keyframes out-left { to { transform: translate3d(-30%, 0, 0); opacity: .6; } }
@keyframes in-left { from { transform: translate3d(-30%, 0, 0); opacity: .6; } }
@keyframes out-right { to { transform: translate3d(100%, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .in-right, .out-left, .in-left, .out-right { animation: none; } .startup-progress::after { animation: none; width: 100%; opacity: .7; } }

/* Bars */
.bar { flex: none; padding: calc(var(--safe-t) + 6px) calc(12px + var(--safe-r)) 6px calc(12px + var(--safe-l)); background: var(--bg); border-bottom: 1px solid transparent; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: var(--tap); }
.bar-title { margin: 0 0 0 8px; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.bar-sub { margin: 0 0 4px 8px; color: var(--muted); font-size: .9375rem; }
.bar-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.25rem; letter-spacing: .04em; padding: 0 8px 0 4px; min-height: var(--tap); }
.brand img { width: 34px; height: 34px; }
.back-btn { display: flex; align-items: center; gap: 2px; min-height: var(--tap); max-width: 70%; padding: 0 12px 0 2px; background: none; border: 0; color: var(--gold-light); font-size: 1.0625rem; cursor: pointer; border-radius: 10px; }
.back-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-btn .i { width: 1.6rem; height: 1.6rem; stroke-width: 2.2; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); border-radius: 999px; background: none; border: 0; color: var(--soft); cursor: pointer; }
.icon-btn:hover { color: var(--text); background: var(--surface); }
.avatar-btn span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--raised); color: var(--gold-light); font-size: .875rem; font-weight: 700; }

/* Tab bar */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px calc(4px + var(--safe-r)) calc(6px + var(--safe-b)) calc(4px + var(--safe-l)); background: rgba(11, 14, 19, .94); border-top: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.tabbar[hidden] { display: none; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; color: var(--muted); font-size: clamp(11px, .75rem, 13px); font-weight: 600; line-height: 1.1; text-align: center; border-radius: 10px; min-width: 0; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tabbar a[aria-current="page"] { color: var(--gold-light); }
.tabbar .i { width: 1.5rem; height: 1.5rem; }
@media (max-width: 340px) { .tabbar a { font-size: 11px; } }
.tabbar .i { max-width: 26px; max-height: 26px; }

/* Type */
.page-head { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.title { margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
.title-sm { margin: 0; font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
.page-sub { margin: 0; color: var(--soft); font-size: 1rem; }
.h-sec { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.h-sub { margin: 8px 0 0; font-size: 1.0625rem; font-weight: 650; color: var(--soft); }
.h3 { margin: 0; font-size: 1.1875rem; line-height: 1.25; font-weight: 700; }
.big { font-size: 1.125rem; font-weight: 650; }
.kicker { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.kicker .i { width: 1rem; height: 1rem; }
.caption { margin: 0; color: var(--muted); font-size: .9375rem; line-height: 1.4; text-wrap: pretty; }
.caption .i { width: 1rem; height: 1rem; vertical-align: -2px; }
.muted { color: var(--muted); margin: 0; font-size: 1rem; }
.gold-text { color: var(--gold-light); }
.footnote { margin: 8px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.45; text-wrap: pretty; }
.footnote .i { width: 1rem; height: 1rem; vertical-align: -3px; }
p { margin: 0; text-wrap: pretty; }
.section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.sec-link { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); font-size: 1rem; font-weight: 600; }
.sec-link .i { width: 1.1rem; height: 1.1rem; }

/* Buttons & controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--text); font-size: 1.0625rem; font-weight: 650; cursor: pointer; text-align: center; line-height: 1.2; }
.btn:hover { border-color: #4A5363; color: var(--text); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.primary:hover { background: var(--gold-light); color: var(--gold-ink); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: var(--tap); padding: 6px 14px; font-size: 1rem; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .i { width: 1.2rem; height: 1.2rem; }
.link-btn { background: none; border: 0; padding: 6px 0; min-height: var(--tap); color: var(--gold-light); font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: 12px; }
.seg button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; color: var(--soft); font-size: 1rem; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--raised); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.seg-icons { flex: none; }
.seg-icons button { flex: none; width: 44px; padding: 0; display: flex; align-items: center; justify-content: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters > .seg:not(.seg-icons) { flex: 1 1 14rem; }
.content > * { flex-shrink: 0; }
.search-field { flex: 1 1 10rem; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search-field:focus-within { border-color: var(--gold); }
.search-field input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; color: var(--text); font-size: 1.0625rem; padding: 10px 0; }
.search-field.big { min-height: 52px; }
.select-field { flex: 1 1 9rem; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: .9375rem; color: var(--muted); }
.select-field select { width: 100%; min-height: 48px; padding: 0 40px 0 14px; border-radius: 12px; background-color: var(--surface); background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; border: 1px solid var(--line); color: var(--text); font-size: 1.0625rem; appearance: none; -webkit-appearance: none; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 650; display: flex; justify-content: space-between; gap: 8px; }
.field-label small { color: var(--gold); font-weight: 600; font-size: .875rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.0625rem; line-height: 1.4; }
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea::placeholder, .search-field input::placeholder { color: #8A93A2; }
.check { display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 4px 0; cursor: pointer; }
.check > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.check small { color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0 12px; }
.fieldset legend { padding: 0; margin-bottom: 4px; }
.form > * { flex: none; }
.form .select-field { flex: none; }
.field textarea[readonly] { word-break: break-all; color: var(--soft); }
.band > .check { flex: 1 1 14rem; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--gold); }
.form { display: flex; flex-direction: column; gap: 16px; }
.inline-error { color: var(--danger); font-size: 1rem; margin: 0; }
.inline-error:empty { display: none; }
.alert { padding: 14px 16px; border-radius: 12px; background: #2A1E1B; color: #F4D3CA; display: flex; flex-direction: column; gap: 6px; }
.alert-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.alert:focus { outline: none; }
.alert .i { width: 1.1rem; height: 1.1rem; vertical-align: -3px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .02em; background: var(--raised); color: var(--soft); text-transform: none; white-space: nowrap; }
.pill .i { width: .95rem; height: .95rem; }
.pill-preview { background: #2A2412; color: var(--gold-light); }
.pill-gold { background: #2A2412; color: var(--gold-light); }
.pill-muted { background: var(--raised); color: var(--muted); }
.pill-ok { background: #18271F; color: var(--ok); font-size: .9375rem; padding: 8px 12px; }
.chips-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); scrollbar-width: none; touch-action: pan-x pan-y; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--soft); font-size: 1rem; font-weight: 600; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--gold); }

/* Lists */
.list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 14px; color: var(--text); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.list > .row + .row { border-top: 1px solid var(--line); }
a.row:hover, button.row:hover { background: var(--raised); color: var(--text); }
.row-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--raised); color: var(--gold); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.row-main b { font-weight: 650; font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.row-main small { color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.chev { color: #6C7585; display: flex; }
.chev .i { width: 1.15rem; height: 1.15rem; }
.date-tile { width: 48px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 0; border-radius: 10px; background: var(--raised); line-height: 1.05; }
.date-tile small { color: var(--gold); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.date-tile b { font-size: 1.3rem; font-weight: 700; }
.date-tile b.yr { font-size: 1rem; color: var(--muted); font-weight: 600; }
.date-tile b.yr::before { content: '’'; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group-head { margin: 8px 0 0; font-size: 1.125rem; font-weight: 700; color: var(--soft); }
.result-line { margin: -6px 0 0; color: var(--muted); font-size: .9375rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 32px 16px; color: var(--muted); }
.empty h2 { margin: 0; color: var(--text); font-size: 1.25rem; }
.empty p { max-width: 24rem; font-size: 1rem; }
.empty .btn { margin-top: 6px; }

/* Medals */
.medal { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: .875rem; font-weight: 800; flex: none; color: #111; letter-spacing: .02em; }
.medal-gold { background: linear-gradient(160deg, #EBCB72, #B48A2E); }
.medal-silver { background: linear-gradient(160deg, #E3E7EE, #9AA2AF); }
.medal-bronze { background: linear-gradient(160deg, #DCA57A, #9E6536); }
.medal-platinum { background: none; color: var(--platinum); border: 1.5px solid #7E8C97; }
.medal-line { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1rem; }
.mstat { display: inline-flex; align-items: center; gap: 5px; }
.grinder { width: 1.15rem; height: 1.15rem; flex: none; fill: currentColor; }
.grinder-gold { color: #D6B25A; } .grinder-silver { color: #C9D0DA; } .grinder-bronze { color: #C98A56; }
.grinder-platinum { color: #E4ECF1; stroke: #7E8C97; stroke-width: .9; paint-order: stroke; }
.grinder-lg { width: 1.6rem; height: 1.6rem; } .grinder-sm { width: 1rem; height: 1rem; margin-right: -4px; }
.medal-wrap { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.medal-wrap .grinder { width: 1.5rem; height: 1.5rem; }
.medal-mini { display: inline-flex; flex: none; }

/* Portraits */
.ph { position: relative; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: none; background: linear-gradient(160deg, #222937, #151A23); color: var(--gold-light); font-weight: 700; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.ph-xs { width: 32px; height: 32px; border-radius: 50%; font-size: .75rem; }
.ph-sm { width: 44px; height: 44px; border-radius: 50%; font-size: .9rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.ph-md { width: 64px; height: 64px; border-radius: 50%; }
.ph-grid { width: 100%; aspect-ratio: 4 / 5; border-radius: 12px; font-size: 1.6rem; }
.ph-card { width: 100%; aspect-ratio: 1 / 1; border-radius: 16px 16px 0 0; font-size: 2.4rem; }
.ph-hero { width: 100%; aspect-ratio: 4 / 5; border-radius: 16px; font-size: 2.4rem; }

/* Home */
.greet { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.greeting { margin: 0; font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.hero { border-radius: 18px; overflow: hidden; background: var(--surface); }
.hero-img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hero-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.hero-date { margin: 0; font-size: 1.625rem; line-height: 1.15; font-weight: 750; }
.hero-venue { color: var(--soft); font-size: 1.0625rem; }
.hero-rsvp { font-size: 1rem; color: var(--soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.hero-rsvp b { color: var(--text); }
.hosts { display: flex; flex-direction: column; gap: 4px; }
.host-line { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 4px 0; color: var(--text); }
.host-line > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.host-line small { color: var(--muted); font-size: .9375rem; }
.host-line b { font-size: 1.0625rem; font-weight: 650; }
.host-line:hover { color: var(--text); }
.band { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); color: var(--text); flex-wrap: wrap; }
.band-main { flex: 1 1 12rem; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.band-link:hover { background: var(--raised); color: var(--text); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); }
.facts li { display: flex; gap: 14px; align-items: baseline; padding: 12px 16px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { flex: none; min-width: 2.2ch; font-size: 1.5rem; font-weight: 750; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.facts span { font-size: 1rem; color: var(--soft); }
.facts small { font-size: .875rem; }

/* Awards */
.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; background: var(--surface); border-radius: var(--r); }
.award-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.award-row + .award-row { border-top: 1px solid var(--line); }
.award-row .medal { min-width: 5.4rem; }
.award-row .medal-wrap { align-self: flex-start; }
.award-names { display: flex; flex-direction: column; gap: 6px; padding-top: 3px; font-size: 1.0625rem; line-height: 1.35; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.award-names a { color: var(--text); }
.award-names a:hover { color: var(--gold-light); }
.awards.platinum { margin-top: 10px; background: none; border: 1px solid var(--line); }
.awards.platinum .caption { padding: 0 16px 14px; font-size: .875rem; }
.awards.compact .award-row { padding: 12px 14px; }
.season { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.season + .season { border-top: 1px solid var(--line); padding-top: 22px; }
.season-year { margin: 0; font-size: 1.75rem; font-weight: 750; color: var(--gold-light); font-variant-numeric: tabular-nums; }

/* Dinner detail */
.facts-dl { margin: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); }
.facts-dl div { display: flex; gap: 12px; padding: 12px 16px; align-items: center; flex-wrap: wrap; }
.facts-dl div + div { border-top: 1px solid var(--line); }
.facts-dl dt { flex: 0 0 5.5rem; color: var(--muted); font-size: .9375rem; }
.facts-dl dd { margin: 0; flex: 1 1 10rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Members */
.deck { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--pad)); box-sizing: border-box; padding: 12px var(--deck-edge, 13%) 20px; scroll-padding: 0; align-items: center; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.deck::-webkit-scrollbar { display: none; }
.pcard { flex: 0 0 var(--deck-card-width, 74%); scroll-snap-align: center; transform: scale(.88); opacity: .65; transform-origin: center; transition: transform 180ms ease, opacity 180ms ease; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; color: var(--text); overflow: hidden; }
.pcard.is-focused { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .pcard { transition: none; } }
.pcard:hover { color: var(--text); }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard-role { color: var(--gold); font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.pcard-name { font-size: 1.375rem; line-height: 1.2; font-weight: 700; }
.deck-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; margin-top: -6px; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.25rem, 1fr)); gap: 16px 12px; }
.gcard { display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.gcard b { margin-top: 6px; font-size: 1.0625rem; line-height: 1.25; }
.gcard small { color: var(--muted); font-size: .9375rem; }
.gcard:hover { color: var(--gold-light); }
.player { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); gap: 16px; align-items: end; }
.player-id { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }
@media (max-width: 360px) { .player { grid-template-columns: 1fr; } .player-ph { max-width: 60%; } }
.platinum-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1rem; }
.tiles { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles div { padding: 14px; border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.tiles dt { color: var(--muted); font-size: .9375rem; }
.tiles dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.tiles b { font-size: 1.75rem; line-height: 1.1; font-weight: 750; font-variant-numeric: tabular-nums; }
.tiles small { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(6rem, 38%) minmax(0, 1fr) 2.2rem; gap: 10px; align-items: center; font-size: 1rem; }
.bars li > span:first-child { overflow-wrap: anywhere; }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 10px; border-radius: 6px; background: var(--raised); overflow: hidden; }
.bar-track i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pager-btn { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--surface); color: var(--soft); font-size: .9375rem; line-height: 1.25; }
.pager-btn.next { justify-content: flex-end; text-align: right; }
.pager-btn span { overflow-wrap: anywhere; }
.method, .records, .preview-ctl { border-radius: 12px; background: var(--surface); }
.method summary, .records summary, .preview-ctl summary { min-height: var(--tap); display: flex; align-items: center; padding: 10px 16px; cursor: pointer; color: var(--soft); font-weight: 600; font-size: 1rem; }
.method p { padding: 0 16px 16px; color: var(--muted); font-size: .9375rem; }
.records .list { border-radius: 0 0 12px 12px; background: none; border-top: 1px solid var(--line); }
.preview-ctl { border: 1px dashed #5A4D27; background: none; margin-top: 8px; }
.preview-ctl .select-field { padding: 0 16px 16px; }

/* Insights */
.rank { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); }
.rank li + li { border-top: 1px solid var(--line); }
.rank li > a, .rank li > span { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; color: var(--text); }
.rank-name { flex: 1; min-width: 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.rank-val { display: flex; flex-direction: column; align-items: flex-end; font-weight: 750; font-size: 1.25rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rank-val small { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.month-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.month-bars li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .9375rem; }
.mb-name { color: var(--soft); font-weight: 600; }
.mb-track { position: relative; height: 14px; border-radius: 7px; background: transparent; }
.mb-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; width: 0; }
.mb-total { background: var(--raised); }
.mb-pod { background: #6C5A2B; }
.mb-gold { background: var(--gold); }
.mb-val { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.legend { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; margin: 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; }
.lg-gold { background: var(--gold); } .lg-pod { background: #6C5A2B; } .lg-total { background: var(--raised); border: 1px solid var(--line-strong); }
.fact { padding: 14px 16px; background: var(--surface); border-radius: var(--r); display: flex; flex-direction: column; gap: 6px; }
.fact h3 { margin: 0; font-size: 1.125rem; }

/* Voting */
.progress { list-style: none; margin: -8px 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 0; }
.progress button { width: 100%; height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.progress button::before { content: ''; display: block; width: 100%; height: 6px; border-radius: 4px; background: var(--raised); }
.progress button.done::before { background: #8A7335; }
.progress button.now::before { background: var(--gold-light); height: 8px; }
.progress .review-dot::before { background: var(--line-strong); }
.question { display: flex; flex-direction: column; gap: 16px; }
.q-kicker { display: flex; gap: 10px; align-items: baseline; color: var(--gold); font-weight: 700; font-size: 1rem; }
.q-kicker span { color: var(--muted); font-weight: 600; }
.q-text { margin: 0; font-size: 1.5rem; line-height: 1.25; font-weight: 700; text-wrap: balance; }
.ends { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ends div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 1rem; line-height: 1.3; color: var(--soft); }
.ends div:last-child { text-align: right; align-items: flex-end; }
.ends b { color: var(--gold-light); font-size: 1.125rem; }
.pad { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; touch-action: manipulation; }
.pad button { min-height: 56px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 1.375rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.pad button:hover { border-color: var(--gold); }
.pad button[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.score-word { text-align: center; color: var(--soft); font-size: 1.0625rem; min-height: 1.6em; margin: 0; }
.score-word b { color: var(--gold-light); font-size: 1.25rem; margin-right: 6px; }
.task-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding-top: 4px; }
.review-list { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.review-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 64px; background: none; border: 0; text-align: left; cursor: pointer; width: 100%; }
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row:hover { background: var(--raised); }
.review-row .row-main b { font-size: 1rem; font-weight: 550; color: var(--soft); }
.review-row .row-main small { color: var(--gold); font-weight: 700; }
.review-score { font-size: 1.5rem; font-weight: 750; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
.review-row.missing .review-score { color: var(--danger); }
.edit-ic { color: var(--muted); display: flex; }
.edit-ic .i { width: 1.1rem; height: 1.1rem; }
.success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 40px 8px 8px; }
.medallion { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); }
.medallion .i { width: 2.6rem; height: 2.6rem; stroke-width: 2.4; }
.success-title { margin: 0; font-size: 2.25rem; line-height: 1.1; font-weight: 800; color: var(--gold-light); letter-spacing: .01em; }

/* Media */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; }
.gtile { display: flex; flex-direction: column; padding: 0; border: 0; background: var(--surface); border-radius: var(--r); overflow: hidden; text-align: left; cursor: pointer; }
.gtile img, .gtile-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--raised); color: var(--gold); }
.gtile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.gtile-body b { font-size: 1rem; line-height: 1.3; }
.gtile-body small { color: var(--muted); font-size: .875rem; }
.notice { padding: 16px; border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }

/* Dialog & toast */
dialog { width: min(100% - 24px, 480px); max-height: calc(100% - 48px); margin: auto auto calc(12px + var(--safe-b)); padding: 20px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin: 0 0 8px; font-size: 1.3rem; }
dialog p { color: var(--soft); font-size: 1rem; margin-bottom: 12px; }
.dlg-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: -6px -6px 0 0; }
.sheet-head h2 { margin: 0; }
.choices { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.choice { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); font-size: 1.0625rem; font-weight: 600; cursor: pointer; text-align: left; }
.choice .tick { visibility: hidden; color: var(--gold-ink); display: flex; }
.choice[aria-checked="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.choice[aria-checked="true"] .tick { visibility: visible; }
.viewer { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -20px; padding: 0 20px; touch-action: pan-x pan-y; }
.viewer img { flex: 0 0 100%; scroll-snap-align: center; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 20px); transform: translateX(-50%); z-index: 20; width: max-content; max-width: min(92vw, 440px); padding: 12px 16px; border-radius: 12px; background: #2A303B; color: var(--text); font-size: 1rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
#toast[hidden] { display: none; }

@media (min-width: 521px) { .shell { border-left: 1px solid #1A1F28; border-right: 1px solid #1A1F28; } }
@media (forced-colors: active) { .btn, .seg button, .pad button, .choice { border: 1px solid ButtonText; } }

/* Garryisms */
.garry-banner { padding: 16px; margin-bottom: 20px; background: var(--surface, #151A23); border-left: 3px solid var(--gold, #D6B25A); border-radius: 12px; }
.garry-banner blockquote { margin: 12px 0; font-size: 1.15rem; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 4.5em; overflow-wrap: anywhere; }
.garry-banner-link { color: inherit; text-decoration: none; }
.garry-banner .link-btn { min-height: 44px; min-width: 44px; }
.garry-quote { padding: 20px 0; border-bottom: 1px solid var(--line); }
.garry-quote blockquote { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Consistent award labels; allow larger text to grow without clipping. */
.medal { box-sizing: border-box; width: 6.25rem; min-width: 6.25rem; text-align: center; justify-content: center; }
.award-row .medal { min-width: 6.25rem; }
.mstat { min-width: 3rem; font-variant-numeric: tabular-nums; }

/* Mobile polish: small club mark, separated controls and a themed score wheel. */
.header-logo { flex: none; width: 44px; height: 44px; padding: 3px; border: 0; background: transparent; cursor: pointer; }
.header-logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.bar-title { flex: 1; min-width: 0; margin-left: 0; font-size: 1.55rem; overflow-wrap: anywhere; }
.back-btn { min-width: 0; flex: 1; }
.seg.role-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; background: transparent; padding: 0; }
.seg.role-options button { background: var(--surface); min-height: 48px; border: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.profile-tabs .seg { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; background: transparent; }
.profile-tabs .seg button { min-height: 48px; background: var(--surface); border: 1px solid var(--line-strong); }
.profile-tabs .seg button[aria-pressed="true"], .seg.role-options button[aria-pressed="true"] { border-color: var(--gold); background: var(--raised); }
.contribute-actions { display: grid; gap: 10px; }
.insight-jumps { display: flex; align-items: center; gap: 4px; min-width: 0; }
.insight-jumps .chips { flex: 1; min-width: 0; margin: 0; padding: 4px 0; }
.insight-jumps .icon-btn { flex: none; }
.garry-inline { font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.garry-inline a { color: inherit; }
.garry-credit { font-weight: 400; }
.garry-inline .link-btn { margin-left: 8px; font-size: .875rem; min-height: 44px; }
.score-picker { position: relative; width: min(100%, 230px); margin: 20px auto; }
.score-wheel { height: 220px; padding: 88px 0; overflow-y: auto; overscroll-behavior-y: contain; scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y; border-radius: 18px; background: var(--surface); }
.score-wheel::-webkit-scrollbar { display: none; }
.score-wheel button { display: block; width: 100%; height: 44px; min-height: 44px; padding: 0; scroll-snap-align: center; border: 0; background: transparent; color: var(--muted); font-size: 1.65rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.score-wheel button[aria-selected="true"] { color: var(--gold-light); font-weight: 700; }
.score-window { position: absolute; pointer-events: none; top: 88px; left: 12px; right: 12px; height: 44px; border-block: 1px solid var(--gold); border-radius: 6px; background: #C8A44D0A; }
.success-title { font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif; font-weight: 700; letter-spacing: .045em; }

/* Whole-word cuisine labels determine the label column; narrow screens put the
   bar on its own row instead of sacrificing the last letters of a word. */
.bars li { grid-template-columns: minmax(min-content, 44%) minmax(0, 1fr) 2.2rem; }
.bars li > span:first-child { max-width: none; overflow-wrap: normal; word-break: normal; hyphens: none; }
@media (max-width: 374px) {
  .bars li { grid-template-columns: minmax(0,1fr) 2.2rem; gap: 5px 10px; }
  .bars li > span:first-child { grid-column: 1; grid-row: 1; max-width: none; }
  .bars li > .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .bars li > b { grid-column: 2; grid-row: 1; }
}
.award-row { align-items: center; }
.award-row .medal-wrap, .award-row .medal-mini { align-self: center; }
.award-names { flex: 1; padding-top: 0; }
.tie-label { flex: none; margin-left: auto; align-self: center; font-size: .8125rem; color: var(--gold-light); }
.mb-val { white-space: normal; }
.garry-inline { padding: 10px 2px; background: radial-gradient(ellipse at center, #C8A44D16 0%, transparent 74%); text-shadow: 0 2px 10px #0008; }
.video-embed { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 12px 0; background: #000; }
.member-next { animation: member-next 180ms ease-out; }
.member-prev { animation: member-prev 180ms ease-out; }
@keyframes member-next { from { transform: translateX(10%); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
@keyframes member-prev { from { transform: translateX(-10%); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .member-next, .member-prev { animation: none; } }

/* Club branding and quick access. Allow controls to wrap at narrow/enlarged sizes. */
:root { --club-serif: 'Times New Roman', Times, serif; }
.bar-row { flex-wrap: wrap; row-gap: 4px; }
.bar-actions { margin-left: auto; }
.bar-title { flex: 1 1 min-content; overflow-wrap: normal; }
.club-brand { flex: 1 1 10rem; min-width: 0; }
.club-brand span { font-family: var(--club-serif); font-size: 1.0625rem; font-weight: 400; line-height: 1.16; letter-spacing: .025em; }
.header-insights { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 60px; min-height: 48px; color: var(--gold-light); }
.header-insights span { font-size: .875rem; line-height: 1.15; }
.success-title { font-family: var(--club-serif); font-weight: 400; }
.search-field { flex: 0 0 auto; }
.filters > .search-field { flex: 1 1 10rem; }
.global-search-field { min-height: 48px; }
dialog.search-popover { margin: calc(var(--safe-t) + 64px) auto auto; padding: 10px; max-height: calc(100% - 100px); }
.floating-search { display: flex; align-items: center; gap: 4px; }
.floating-search .search-field { flex: 1; min-width: 0; padding-right: 2px; }
.floating-search input { font-size: 1rem; }
.floating-search .icon-btn { flex: none; }
.garry-inline { display: flex; align-items: center; gap: 2px; touch-action: pan-y; }
.garry-inline > a { flex: 1; min-width: 0; }
.garry-step { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--gold-light); cursor: pointer; }
#garry-banner-quote { display: block; }
.quote-next { animation: quote-next 200ms ease-out; }
.quote-prev { animation: quote-prev 200ms ease-out; }
@keyframes quote-next { from { opacity: .35; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes quote-prev { from { opacity: .35; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
.facts li { align-items: center; }
.facts b, .bars b, .mb-val, .rank-val { align-self: center; }
.month-bars .mb-track { display: flex; }
.month-bars .mb-track i { position: static; flex: 0 0 auto; }
.mb-silver { background: var(--silver); }
.mb-bronze { background: var(--bronze); }
.month-bars li { grid-template-columns: 2.2rem minmax(24px,1fr) minmax(7rem,46%); }
@media (prefers-reduced-motion: reduce) { .quote-next, .quote-prev { animation: none; } }

/* 0.1.4 — quieter controls, six roots, and compact voting endpoints */
:root { --accent: #C3CCD7; --accent-ink: #11151C; }
a, .back-btn, .link-btn, .avatar-btn span, .row-ic { color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: #E1E6EE; color: var(--accent-ink); }
:focus-visible { outline-color: var(--accent); }
.tabbar { grid-template-columns: repeat(6,minmax(0,1fr)); }
.tabbar a { min-width: 0; font-size: clamp(11px,.75rem,13px); }
.tabbar a[aria-current="page"] { color: var(--text); background: #FFFFFF08; }
.tabbar a span { text-overflow: clip; overflow-wrap: normal; }
.tiles div { justify-content: center; }
.pager-btn, .pager-btn.next { justify-content: center; text-align: center; }
.tie-gold { color: #D6B25A; } .tie-silver { color: #C9D0DA; } .tie-bronze { color: #C98A56; } .tie-platinum { color: #A6CED5; }
.source-text { white-space: pre-line; }
.venue-address { font-size: 1rem; line-height: 1.45; margin: 8px 0; }
.venue-address a { display: flex; gap: 8px; align-items: center; }
.venue-address .i { flex: none; }
.home-notices { margin-top: 8px; }
.home-notices .notice { padding: 14px; margin-top: 10px; }
.home-notices h3, .home-notices p { margin: 0; }
.home-notices p { margin-top: 8px; white-space: pre-line; }
.ends { gap: 8px; }
.ends div, .ends div:last-child { flex-direction: row; align-items: center; gap: 8px; padding: 8px 10px; font-size: .9375rem; }
.ends div:last-child { justify-content: flex-end; }
.ends b { flex: none; color: var(--text); }
.ends span { min-width: 0; }
.score-wheel { box-sizing: content-box; height: 44px; padding: 88px 0; background: #141A22; }
.score-wheel button { display: flex; align-items: center; justify-content: center; line-height: 1; color: #94A0AE; }
.score-wheel button[aria-selected="true"] { color: #F0F4F8; }
.score-window { border: 1px solid #778A9F; background: #9AAFC31A; border-radius: 10px; }
.score-word b, .q-kicker, .progress button.now::before { color: var(--accent); }
.progress button.now::before { background: var(--accent); }
.garry-inline { display: block; margin: 12px 0 22px; padding: 24px 16px; text-align: center; font-size: 1rem; line-height: 1.6; color: var(--soft); overflow: hidden; background: radial-gradient(ellipse at center,#FFFFFF12 0%,#FFFFFF05 42%,transparent 74%); }
.garry-inline > a { display: block; }
.garry-inline > a::before { content: '\201C'; display: block; margin-bottom: 10px; font-family: Georgia, serif; font-size: 2.75rem; line-height: .65; color: var(--muted); opacity: .55; }
.garry-inline .garry-credit { display: block; margin-top: 10px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
#garry-banner-quote { display: block; max-width: 36ch; margin-inline: auto; }
.quote-out { animation: garry-out .55s ease-in forwards; }
.quote-in { animation: garry-in .85s ease-out both; }
@keyframes garry-out { from { opacity:1;transform:translateY(0); } to { opacity:0;transform:translateY(-8px); } }
@keyframes garry-in { from { opacity:0;transform:translateY(8px); } to { opacity:1;transform:translateY(0); } }
.video-dialog { width: min(96vw,960px); max-width: 96vw; }
@media (prefers-reduced-motion:reduce) { .quote-out,.quote-in {animation:none;} }
.tiles dd { order: -1; }
.row-main b, .bar-title, .player-id h1 { white-space: pre-line; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.notice-actions .btn { flex: 1 1 100px; }

/* Consistent top and bottom alignment within member statistics. */
.tiles div { min-height: 116px; justify-content: space-between; align-items: flex-start; text-align: left; }
.tiles dd { align-items: flex-start; }
.rank-val small.gold-count { color: #d6b25a; }
.h-sub .i { width: 20px; height: 20px; vertical-align: middle; }
#charity .facts li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
#charity .facts b, #charity .facts span { min-width: 0; overflow-wrap: anywhere; }

/* Voting and RSVP readability refinements. */
.q-text { font-size: 1.3125rem; line-height: 1.35; }
.score-wheel button { font-size: 1.5rem; }
.task-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
dialog.rsvp-dialog { margin: auto; }
.skull-emoji { display: inline-block; font-size: 1.5rem; line-height: 1; vertical-align: middle; margin-left: 4px; }

.facts-dl .address-note { flex-basis:100%; color:var(--muted); font-size:.875rem; }

/* Keep each result together and centred beside its dinner or award text. */
.result-marker { display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center; align-self: center; gap: 4px; min-width: 44px; }
.result-marker .tie-label { margin: 0; align-self: center; }

/* ---------- Awards Home (awards.js) ----------
   A ceremonial Home for the awards period: the same shell, tabs and type scale, with a quieter, richer hero.
   Club serif for the event title only; gold reserved for small accents; no inline styles (CSP). */
.aw-home { display: flex; flex-direction: column; gap: 20px; }
.aw-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -4px calc(-1 * (var(--pad) + var(--safe-r))) 0 calc(-1 * (var(--pad) + var(--safe-l))); padding: 26px calc(var(--pad) + 4px) 24px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, #222B37 0%, #151B24 52%, var(--bg) 100%); border-bottom: 1px solid var(--line); overflow: hidden; }
.aw-hero::before { content: ''; position: absolute; left: 50%; top: 18px; width: 220px; height: 220px; transform: translateX(-50%); background: radial-gradient(circle, #C8A44D1F 0%, transparent 68%); pointer-events: none; }
.aw-hero > * { position: relative; }
.aw-hero.has-art { padding-top: 0; }
.aw-hero-art { display: block; width: calc(100% + 2 * (var(--pad) + 4px)); max-width: none; margin: 0 calc(-1 * (var(--pad) + 4px)) 6px; aspect-ratio: 16 / 7; object-fit: cover; }
.aw-crest { width: 76px; height: 76px; filter: drop-shadow(0 6px 18px #0009); }
.aw-hero.has-art .aw-crest { margin-top: -46px; }
.aw-chip { margin: 2px 0 0; padding: 5px 12px; border-radius: 999px; background: #2A2412; color: var(--gold-light); font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.aw-chip-after { background: var(--raised); color: var(--soft); letter-spacing: .04em; text-transform: none; font-size: .9375rem; }
.aw-title { margin: 2px 0 0; font-family: var(--club-serif); font-weight: 400; font-size: 2.5rem; line-height: 1.05; letter-spacing: .01em; text-wrap: balance; overflow-wrap: break-word; }
.aw-title:focus { outline: none; }
.aw-tagline { color: var(--soft); font-size: 1.0625rem; }
.aw-when { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 4px; font-size: 1.0625rem; font-weight: 650; }
.aw-venue { color: var(--soft); font-size: 1rem; max-width: 30ch; }
.aw-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 10px; }
.aw-actions.aw-n1 > :first-child, .aw-actions.aw-n3 > :first-child { grid-column: 1 / -1; }
.aw-rsvp-by { color: var(--soft); font-size: .9375rem; }
.aw-more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; min-height: var(--tap); font-weight: 600; }
.aw-more .i { width: 1.1rem; height: 1.1rem; }
.aw-actions .btn { padding: 10px 12px; flex-wrap: wrap; row-gap: 2px; }
.aw-demo-btn { position: relative; }
.aw-demo-tag { padding: 1px 6px; border-radius: 6px; background: #0000002E; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.aw-season-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: var(--r); background: var(--surface); color: var(--text); }
.aw-season-link > span { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aw-season-link > span > .i { color: var(--accent); flex: none; }
.aw-season-link b { display: block; font-weight: 650; }
.aw-season-link small { display: block; color: var(--muted); font-size: .9375rem; }
.aw-season-link:hover { background: var(--raised); color: var(--text); }
.aw-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); color: var(--soft); font-size: .9375rem; line-height: 1.4; }
.aw-note .i { width: 1.1rem; height: 1.1rem; flex: none; margin-top: 2px; color: var(--muted); }
.aw-note-draft { border-style: solid; border-color: #6B5A2A; background: #2A2412; color: var(--gold-light); }
.aw-note-draft .i { color: var(--gold-light); }
.aw-note + .aw-hero { margin-top: 0; }
.aw-glance ul { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); }
.aw-glance li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; }
.aw-glance li + li { border-top: 1px solid var(--line); }
.aw-glance .i { color: var(--gold); flex: none; }
.aw-glance span { display: flex; flex-direction: column; min-width: 0; }
.aw-glance b { font-weight: 650; overflow-wrap: anywhere; }
.aw-glance small { color: var(--muted); font-size: .9375rem; overflow-wrap: anywhere; }
.aw-nownext { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid #C8A44D40; }
.aw-nn-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aw-nn-k { color: var(--gold); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.aw-nn-t { color: var(--soft); font-size: 1rem; font-variant-numeric: tabular-nums; }
.aw-nn-title { font-size: 1.125rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.aw-nn-link { grid-column: 1 / -1; justify-self: start; }
.aw-sec { scroll-margin-top: 12px; border-radius: var(--r); }
.aw-aud { vertical-align: 2px; margin-left: 6px; }
.aw-card-quiet { padding: 16px; background: var(--surface); }
.aw-rt { display: flex; flex-direction: column; gap: 10px; color: var(--soft); font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere; }
.aw-rt strong { color: var(--text); }
.aw-rt ul, .aw-rt ol { margin: 0; padding-left: 1.3rem; display: flex; flex-direction: column; gap: 4px; }
.aw-rt-h { margin: 6px 0 0; font-size: 1.125rem; color: var(--text); }
.aw-rt-img { margin: 4px 0; }
.aw-rt-img img { display: block; width: 100%; height: auto; border-radius: 12px; }
.aw-letter { font-size: 1.125rem; }
.aw-signoff { font-family: var(--club-serif); font-style: italic; font-size: 1.125rem; color: var(--soft); }
.aw-dl dd small { display: block; flex-basis: 100%; color: var(--muted); font-size: .9375rem; }
.aw-dl dd { flex-direction: column; align-items: flex-start; gap: 2px; }
.aw-prog { list-style: none; margin: 0; padding: 4px 0; background: var(--surface); border-radius: var(--r); }
.aw-prog li { display: grid; grid-template-columns: 5.4rem minmax(0, 1fr); gap: 14px; padding: 12px 16px; align-items: baseline; }
.aw-prog li + li { border-top: 1px solid var(--line); }
.aw-prog time { color: var(--gold-light); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.aw-prog div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aw-prog b { font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.aw-prog small { color: var(--muted); font-size: .9375rem; line-height: 1.4; overflow-wrap: anywhere; }
.aw-charity { display: flex; gap: 14px; align-items: center; }
.aw-charity-logo { width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: contain; background: var(--raised); }
.aw-charity-name { font-size: 1.1875rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.aw-raised { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.aw-raised b { font-size: 1.375rem; color: var(--text); }
.aw-raised small { color: var(--muted); font-size: .9375rem; }
.aw-bar { display: block; height: 8px; border-radius: 8px; background: var(--raised); overflow: hidden; }
.aw-bar i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 8px; }
.aw-dest { display: flex; gap: 6px; align-items: center; justify-content: center; text-align: center; }
.aw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 10px; margin: 0; }
.aw-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); min-width: 0; }
.aw-stats dt { color: var(--muted); font-size: .9375rem; line-height: 1.3; }
.aw-stats dd { margin: 0; font-size: 1.75rem; font-weight: 750; line-height: 1.1; overflow-wrap: anywhere; }
.aw-stats dd small { display: block; font-size: .9375rem; font-weight: 500; color: var(--muted); }
.aw-video { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.aw-video:hover { background: var(--raised); }
.aw-video-play { display: grid; place-items: center; width: 92px; aspect-ratio: 16 / 10; flex: none; border-radius: 10px; background: radial-gradient(circle at 50% 40%, #2B3442, #11161D); color: var(--text); }
.aw-video-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.aw-video-body small { color: var(--muted); font-size: .9375rem; }
.aw-video-src { font-size: .875rem !important; }
.aw-faq { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); }
.aw-faq details + details { border-top: 1px solid var(--line); }
.aw-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 16px; cursor: pointer; list-style: none; font-weight: 650; }
.aw-faq summary::-webkit-details-marker { display: none; }
.aw-faq summary .i { width: 1.1rem; height: 1.1rem; color: #6C7585; transition: transform .15s; flex: none; }
.aw-faq details[open] summary .i { transform: rotate(90deg); }
.aw-faq .aw-rt { padding: 0 16px 16px; font-size: 1rem; }
.aw-thanks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.aw-thanks li > a, .aw-thanks li > img, .aw-thanks li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.aw-thanks img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.aw-thanks span { display: flex; flex-direction: column; min-width: 0; }
.aw-thanks small { color: var(--muted); font-size: .9375rem; }
.aw-thanks a { min-height: var(--tap); }
.aw-admin small { display: block; margin-top: 2px; }
.aw-detail .aw-sec { gap: 14px; }
.aw-flash { animation: aw-flash 1.4s ease-out; }
@keyframes aw-flash { 0% { box-shadow: 0 0 0 3px var(--gold-light); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (prefers-reduced-motion: reduce) { .aw-flash { animation: none; outline: 2px solid var(--gold-light); } .aw-faq summary .i { transition: none; } }
@media (max-width: 360px) { .aw-title { font-size: 2.15rem; } .aw-crest { width: 64px; height: 64px; } .aw-prog li { grid-template-columns: 1fr; gap: 2px; } }
.aw-demo-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
