/* Last Chance Cup — shared tokens & primitives */
/* Self-hosted fonts (Anton, Oswald, Inter, Graduate — SIL Open Font License; Yellowtail — Apache 2.0) */
@font-face { font-family: 'Anton'; src: url('/fonts/anton.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('/fonts/oswald-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('/fonts/oswald-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('/fonts/oswald-600.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Yellowtail'; src: url('/fonts/yellowtail.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Graduate'; src: url('/fonts/graduate.woff2') format('woff2'); font-weight: 400; font-display: swap; }
:root {
  --ink: #050b1a;
  --navy-900: #060d20;
  --navy-800: #0a1633;
  --navy-700: #10214a;
  --navy-600: #183066;
  --royal: #2356d6;
  --royal-2: #3a74ff;
  --ice: #cfe6ff;
  --ice-2: #eaf4ff;
  --gold: #f2bf4a;
  --gold-2: #ffd978;
  --gold-deep: #c8912a;
  --red: #ff4a4a;
  --green: #36d399;
  --text: #eef4ff;
  --muted: #9fb2d6;
  --faint: #6b7fa8;
  --line: rgba(160, 190, 255, .14);
  --line-2: rgba(160, 190, 255, .24);
  --card: rgba(18, 36, 78, .55);
  --card-solid: #0f1f45;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  /* old-time hockey: felt pennants, cream sweater stripes, ticket stock, rink-board amber */
  --cream: #f4e8cc;
  --cream-2: #e6d3a6;
  --cream-ink: #2b1d10;
  --cream-muted: #6f5a3e;
  --barn: #c7362b;
  --barn-2: #e2483c;
  --amber: #ffb52e;
  --stripe: linear-gradient(180deg, var(--cream) 0 3px, transparent 3px 6px, var(--gold) 6px 9px, transparent 9px 12px, var(--cream) 12px 15px);
  --stripe-thin: linear-gradient(180deg, var(--cream) 0 2px, transparent 2px 3px, var(--gold) 3px 5px);
  --script: 'Yellowtail', 'Brush Script MT', 'Segoe Script', cursive;
  --varsity: 'Graduate', 'Rockwell', 'Courier New', serif;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --display: 'Anton', 'Oswald', Impact, 'Arial Narrow', sans-serif;
  --cond: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy-900); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.02; font-weight: 400; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.display { font-family: var(--display); text-transform: uppercase; letter-spacing: .01em; }
.eyebrow {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .22em; font-size: 13px;
  color: var(--gold); font-weight: 600; display: inline-block; line-height: 1.5;
}
.eyebrow::before { content: ''; display: inline-block; vertical-align: middle; width: 28px; height: 2px; margin: -2px 10px 0 0; background: currentColor; border-radius: 2px; }
.gold-text {
  background: linear-gradient(180deg, #fff3c9 0%, var(--gold-2) 35%, var(--gold) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  --bg: var(--gold); --fg: #1a1203;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-family: var(--cond); font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em; font-size: 15px; line-height: 1;
  box-shadow: 0 10px 30px -10px rgba(242, 191, 74, .6), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .15s ease, box-shadow .2s ease, background .2s; text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(242, 191, 74, .75); }
.btn:active { transform: translateY(0); }
.btn.ghost { --bg: rgba(255,255,255,.06); --fg: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { --bg: rgba(255,255,255,.1); }
.btn.blue { --bg: var(--royal); --fg: #fff; box-shadow: 0 10px 30px -10px rgba(35, 86, 214, .8); }
.btn.danger { --bg: #3a1020; --fg: #ffb3b3; box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .35); }
.btn.sm { padding: 10px 16px; font-size: 13px; }
.btn.lg { padding: 19px 34px; font-size: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Background: ice sheet + arena lights */
.arena-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(58, 116, 255, .28), transparent 60%),
    radial-gradient(900px 600px at 100% 10%, rgba(242, 191, 74, .10), transparent 60%),
    radial-gradient(1000px 800px at 50% 120%, rgba(35, 86, 214, .25), transparent 60%),
    linear-gradient(180deg, #071029 0%, #060d20 100%);
}
.arena-bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(160,190,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,190,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  background: linear-gradient(180deg, rgba(6,13,32,.92), rgba(6,13,32,.72)); }
.nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: var(--stripe-thin); pointer-events: none; }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand img { width: 44px; height: 44px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand span { font-family: var(--display); text-transform: uppercase; font-size: 20px; letter-spacing: .03em; line-height: 1; }
.brand small { display: block; font-family: var(--cond); font-size: 10.5px; letter-spacing: .24em; color: var(--gold); margin-top: 3px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .btn { color: var(--fg); }
@media (max-width: 820px) { .nav-links a:not(.btn) { display: none; } .brand small { display: none; } }
.nav-sub { display: none; }
@media (max-width: 820px) {
  .nav-sub { display: block; border-top: 1px solid rgba(160,190,255,.09); }
  .nav-sub .wrap { display: flex; gap: 6px; height: 40px; align-items: center; }
  .nav-sub a { flex: 1; text-align: center; color: var(--muted); font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 500; padding: 7px 4px; border-radius: 999px; white-space: nowrap; }
  .nav-sub a:hover { color: var(--text); text-decoration: none; }
  .nav-sub a[aria-current] { color: var(--gold-2); background: rgba(242,191,74,.1); }
  .nav-sub a .s { display: none; }
}
@media (max-width: 370px) { .nav-sub .wrap { gap: 2px; } .nav-sub a { letter-spacing: .07em; font-size: 12px; padding: 7px 2px; } }
@media (max-width: 300px) { .nav-sub a .l { display: none; } .nav-sub a .s { display: inline; } }
/* in-page jumps land below the sticky bar */
:where(section[id]) { scroll-margin-top: 84px; }
@media (max-width: 820px) { :where(section[id]) { scroll-margin-top: 124px; } }
@media (max-width: 380px) { .brand span { font-size: 17px; } .brand img { width: 38px; height: 38px; } .nav .wrap { gap: 10px; } .nav-links .btn.sm { padding: 9px 12px; } }

/* ---------- Old-time hockey kit ---------- */
/* Felt pennant: pole on the left, tapering to a point */
.pennant { --pc: var(--barn); position: relative; display: inline-block; vertical-align: middle; max-width: 100%; overflow: hidden; text-overflow: ellipsis; height: 30px; line-height: 31px; padding: 0 54px 0 16px;
  font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .2em; font-size: 12.5px; color: var(--cream); white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(0,0,0,.14)), repeating-linear-gradient(45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px), var(--pc);
  clip-path: polygon(0 0, calc(100% - 42px) 13%, 100% 50%, calc(100% - 42px) 87%, 0 100%);
  box-shadow: inset 4px 0 0 var(--cream-2); text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.pennant.gold { --pc: var(--gold-deep); color: #1a1203; text-shadow: none; }
@media (max-width: 420px) { .pennant { letter-spacing: .14em; font-size: 11.5px; padding-right: 46px; } }
.pennant.navy { --pc: #1d3a7a; }
/* Script tagline — sweater-crest lettering */
.script-tag { font-family: var(--script); font-size: clamp(34px, 4.6vw, 62px); line-height: 1; color: var(--cream); margin: 0; transform: rotate(-4deg); transform-origin: left center; display: inline-block;
  text-shadow: 0 3px 0 var(--barn), 0 6px 18px rgba(0,0,0,.55); letter-spacing: .01em; }
/* Sweater stripes — cream / gold / cream on navy */
.jersey-stripe { height: 15px; background: var(--stripe); opacity: .95; }
/* Scoreboard amber */
.led { font-family: var(--display); color: var(--amber); text-shadow: 0 0 6px rgba(255,170,40,.85), 0 0 22px rgba(255,120,0,.45); }
/* Ticket stub (details, entry fee) */
.ticket { position: relative; display: grid; grid-template-columns: 38px 1fr; border-radius: 10px; background: var(--cream); color: var(--cream-ink); overflow: hidden;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,.9), inset 0 0 0 1px rgba(43,29,16,.15);
  -webkit-mask: radial-gradient(circle 10px at 100% 50%, transparent 97%, #000) ; mask: radial-gradient(circle 10px at 100% 50%, transparent 97%, #000); }
.ticket .stub { background: var(--barn); color: var(--cream); display: grid; place-items: center; position: relative;
  background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 5px); }
.ticket .stub span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--cond); font-weight: 600; text-transform: uppercase; letter-spacing: .3em; font-size: 11px; white-space: nowrap; }
.ticket .stub::after { content: ''; position: absolute; top: 6px; bottom: 6px; right: -1px; border-right: 2px dashed rgba(43,29,16,.35); }
.ticket .tk-body { padding: 16px 20px 16px 18px; position: relative; min-width: 0; background:
  radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.45), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.12), rgba(120,90,40,.08)); }
.ticket .tk-body::before { content: ''; position: absolute; inset: 7px 8px 7px 8px; border: 1px dashed rgba(43,29,16,.28); border-radius: 6px; pointer-events: none; }
.ticket .tba { color: var(--cream-muted) !important; }

/* Cards / forms */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(8px); }
.field { display: grid; gap: 8px; }
.field > label, .label { font-family: var(--cond); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: rgba(4, 10, 28, .65); color: var(--text); font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #5f729b; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,191,74,.15); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239fb2d6' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
select.input option { background: #0a1633; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-family: var(--cond); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.07); color: var(--muted); border: 1px solid var(--line); }
.pill.gold { background: rgba(242,191,74,.14); color: var(--gold-2); border-color: rgba(242,191,74,.35); }

.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { padding: 14px 18px; border-radius: 14px; background: #13244f; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 15px; animation: toastIn .3s ease; }
.toast.err { background: #3a1020; border-color: rgba(255,90,90,.4); color: #ffd0d0; }
.toast.ok { border-color: rgba(54,211,153,.45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

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

/* Reduced motion: calm the decorative stuff, but never the reader board or the draft-night show
   (Windows Server turns animations off by default, which would otherwise freeze them). */
@media (prefers-reduced-motion: reduce) {
  body:not(.force-motion) *:not(.rb-track):not(.ily-pwr):not(.ily-pwr-shine),
  body:not(.force-motion) *:not(.rb-track)::before, body:not(.force-motion) *:not(.rb-track)::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* "Powered by iLync Consulting" footer button (matches garsonarena site) */
@keyframes ilyPwrSpin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ilyPwrShine { 0%, 55% { left: -45%; } 100% { left: 120%; } }
@keyframes ilyPwrGlow { 0%, 100% { filter: drop-shadow(0 0 3px rgba(127,200,255,0.5)); } 50% { filter: drop-shadow(0 0 9px rgba(127,200,255,0.95)); } }
.ily-pwr { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: 999px; color: #FFFFFF; text-decoration: none !important; isolation: isolate; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(127,200,255,0.18), 0 6px 20px rgba(61,107,255,0.28); transition: transform .25s ease, box-shadow .25s ease; }
.ily-pwr::before { content: ""; position: absolute; left: 50%; top: 50%; width: 140%; aspect-ratio: 1; z-index: -2;
  background: conic-gradient(from 0deg, #34D1FF, #3D6BFF, rgba(10,16,36,0) 30%, rgba(10,16,36,0) 55%, #B8863A, #FFC72C 70%, rgba(10,16,36,0) 80%, #34D1FF);
  transform: translate(-50%, -50%); animation: ilyPwrSpin 5s linear infinite; }
.ily-pwr::after { content: ""; position: absolute; inset: 1.5px; border-radius: inherit; z-index: -1; background: linear-gradient(135deg, #10204A 0%, #0A1024 55%, #0D1733 100%); }
.ily-pwr-shine { position: absolute; top: 0; bottom: 0; left: -45%; width: 35%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.22), transparent); animation: ilyPwrShine 4s ease-in-out infinite; }
.ily-pwr img { position: relative; height: 26px; width: auto; display: block; animation: ilyPwrGlow 3s ease-in-out infinite; }
.ily-pwr-t { position: relative; display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.ily-pwr-t small { color: #7FC8FF; font-family: var(--body); font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.ily-pwr-t b { font-family: var(--cond); font-weight: 600; font-style: italic; font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase; color: #FFFFFF; }
.ily-pwr svg { position: relative; color: #34D1FF; transition: transform .25s ease; }
.ily-pwr:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(127,200,255,0.45), 0 10px 28px rgba(61,107,255,0.5); }
.ily-pwr:hover svg { transform: translateX(4px); }
.ily-pwr:focus-visible { outline: 2px solid #34D1FF; outline-offset: 3px; }
.pwr-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }


/* sponsor strip (home, schedule, draft board) */
.sponsors { display: grid; justify-items: center; gap: 16px; padding: 36px 0 30px; }
.sponsors .sp-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; width: 100%; }
.sponsors .sp { width: 168px; height: 76px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px 12px; box-shadow: 0 12px 28px -16px rgba(0,0,0,.9), inset 0 0 0 3px var(--cream-2); transition: transform .2s; text-decoration: none !important; }
.sponsors a.sp:hover { transform: translateY(-3px); }
.sponsors .sp img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; }
.sponsors .sp.ph { background: rgba(8,16,38,.5); box-shadow: none; border: 2px dashed rgba(242,191,74,.55); }
.sponsors .sp.ph b { color: var(--gold-2); font-size: 17px; }
.sponsors .sp-cta { max-width: 560px; margin: 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.55; padding: 0 16px; }
.sponsors .sp b { font-family: var(--display); font-weight: 400; text-transform: uppercase; color: #0a1633; font-size: 18px; text-align: center; line-height: 1; }
@media (max-width: 520px) { .sponsors .sp { width: calc(50% - 7px); height: 64px; } .sponsors .sp img { max-height: 48px; } }

/* committee practice run in progress (test players loaded) */
.practice-badge { position: fixed; left: 14px; bottom: 14px; z-index: 60; display: grid; gap: 1px; padding: 8px 14px 8px 12px; border-radius: 12px; pointer-events: none;
  background: repeating-linear-gradient(135deg, #f2bf4a 0 10px, #e6ad2c 10px 20px); color: #1a1203; box-shadow: 0 10px 26px -8px rgba(0,0,0,.7); border: 2px solid #1a1203; }
.practice-badge b { font-family: var(--cond); text-transform: uppercase; letter-spacing: .16em; font-size: 12.5px; }
.practice-badge span { font-size: 11.5px; font-weight: 600; }
@media (max-width: 520px) { .practice-badge { left: 10px; bottom: 10px; padding: 6px 10px; } .practice-badge span { display: none; } }
