/* Brudvig Hockey: the look of everything that isn't the rink (internal name: the bubble hockey design). One set of
   tokens and components for the site, the menus and the game's overlays: red, white and blue first, finished with
   gloss like a table dome, brushed steel for rails and rims, black for scoreboard panels and outlines. Team colours
   only on team things (logos, jerseys, a team's own plate). Nothing here touches the 3D rink or the players.
   Tokens: --bh-*. Components: .bh-panel .bh-btn (.red .blue .white .steel .black) .bh-board .bh-tabs .bh-seg
   .bh-tog .bh-range .bh-table .bh-kick .bh-title .bh-stripe .bh-chip .bh-input */
@font-face { font-family: "Bungee"; src: url("/fonts/bungee-latin.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bungee"; src: url("/fonts/bungee-latin-ext.woff2") format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bh-red: #d6182a; --bh-red-hi: #ff5a5f; --bh-red-lo: #8c0c17;
  --bh-blue: #1d4fd6; --bh-blue-hi: #5b8cff; --bh-blue-lo: #0b2470;
  --bh-white: #ffffff; --bh-ice: #f4f7fc; --bh-ice2: #e2e8f2; --bh-line: #c8d0dc;
  --bh-ink: #0e1524; --bh-ink2: #44506a; --bh-black: #0a0c11; --bh-black2: #1a1e27;
  --bh-steel: linear-gradient(180deg, #fbfcfd 0%, #d3d8df 38%, #a9b1bc 52%, #c9ced6 70%, #eef0f3 100%);
  --bh-brushed: repeating-linear-gradient(90deg, #ffffff22 0 1px, #00000008 1px 2px, #ffffff00 2px 4px), linear-gradient(180deg, #eef1f5 0%, #c3c9d2 50%, #dfe3e9 100%);
  --bh-rim: #8d96a4;
  --bh-font: "Bungee", Impact, "Arial Black", system-ui, sans-serif;
  --bh-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bh-shadow: 0 14px 34px #0b1a4a38, 0 2px 0 #0b1a4a14;
  --bh-r: 20px;
}
/* a white table top, faintly lit from above like the inside of a dome */
.bh-ice { background: radial-gradient(120% 70% at 50% -10%, #ffffff 0%, #ffffff00 60%), linear-gradient(180deg, var(--bh-ice) 0%, #e9eef6 100%); color: var(--bh-ink); }
/* red, white and blue stripes: a rail, a header, a divider */
.bh-stripe { height: 10px; background: linear-gradient(180deg, var(--bh-red) 0 33%, #fff 33% 66%, var(--bh-blue) 66% 100%); }
/* ---------- panels: white, steel rim, a dome highlight ---------- */
.bh-panel { position: relative; background: linear-gradient(180deg, #ffffff 0%, var(--bh-ice) 100%); color: var(--bh-ink); border-radius: var(--bh-r); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--bh-rim), 0 0 0 5px #e7eaef, var(--bh-shadow); }
.bh-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(90% 46% at 50% 0%, #ffffffd0 0%, #ffffff00 70%), linear-gradient(115deg, #ffffff00 58%, #ffffff66 64%, #ffffff00 70%); }
.bh-panel > * { position: relative; }
/* ---------- buttons: glossy domes ---------- */
.bh-btn { --c: var(--bh-blue); --hi: var(--bh-blue-hi); --lo: var(--bh-blue-lo); --tx: #fff;
  appearance: none; position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .45em; min-height: 48px; padding: 12px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 3px solid #fff; color: var(--tx); font: 400 17px/1 var(--bh-font); letter-spacing: .03em; text-transform: uppercase; text-shadow: 0 2px 0 #0005;
  background: radial-gradient(140% 120% at 50% 0%, var(--hi) 0%, var(--c) 52%, var(--lo) 100%);
  box-shadow: 0 0 0 2px var(--bh-rim), 0 5px 0 var(--bh-black), 0 10px 18px #0b1a4a40; transition: transform .1s, filter .12s, box-shadow .1s; -webkit-tap-highlight-color: transparent; }
.bh-btn::before { content: ""; position: absolute; left: 7%; right: 7%; top: 3px; height: 46%; border-radius: 999px; background: linear-gradient(180deg, #ffffffd9 0%, #ffffff30 100%); pointer-events: none; }
.bh-btn > * { position: relative; }
.bh-btn:hover, .bh-btn:focus-visible { filter: brightness(1.08) saturate(1.05); outline: none; }
.bh-btn:focus-visible { box-shadow: 0 0 0 2px var(--bh-rim), 0 0 0 5px #ffd84a, 0 5px 0 var(--bh-black); }
.bh-btn:active { transform: translateY(4px); box-shadow: 0 0 0 2px var(--bh-rim), 0 1px 0 var(--bh-black), 0 3px 8px #0b1a4a40; }
.bh-btn:disabled { filter: grayscale(.7) brightness(.95); cursor: default; }
.bh-btn.red { --c: var(--bh-red); --hi: var(--bh-red-hi); --lo: var(--bh-red-lo); }
.bh-btn.blue { --c: var(--bh-blue); --hi: var(--bh-blue-hi); --lo: var(--bh-blue-lo); }
.bh-btn.white { --c: #f1f4f8; --hi: #ffffff; --lo: #c6cdd8; --tx: var(--bh-ink); text-shadow: 0 1px 0 #fff; }
.bh-btn.steel { --c: #c4cad3; --hi: #f6f7f9; --lo: #8e97a5; --tx: var(--bh-ink); text-shadow: 0 1px 0 #fff8; }
.bh-btn.black { --c: #22262f; --hi: #4a505c; --lo: #07080b; }
.bh-btn.big { min-height: 64px; font-size: 26px; padding: 14px 30px; }
.bh-btn.sm { min-height: 38px; font-size: 13px; padding: 8px 14px; }
/* ---------- the scoreboard: black panel, steel frame, lit digits ---------- */
.bh-board { background: linear-gradient(180deg, #23272f, var(--bh-black) 60%); color: #fff; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bh-rim), inset 0 0 0 2px #000, inset 0 10px 18px #ffffff12, 0 8px 18px #0006; font-family: var(--bh-font); }
.bh-led { font-family: var(--bh-font); color: #ff4d4d; text-shadow: 0 0 6px #ff2a2a99, 0 0 1px #fff; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.bh-led.w { color: #fff; text-shadow: 0 0 6px #ffffff88; } .bh-led.b { color: #7fb0ff; text-shadow: 0 0 6px #3f7dff99; }
/* ---------- labels and headings ---------- */
.bh-kick { display: inline-block; padding: 6px 12px 5px; border-radius: 999px; background: var(--bh-black); color: #fff; font: 400 11px/1 var(--bh-font); letter-spacing: .2em; text-transform: uppercase; box-shadow: 0 0 0 2px var(--bh-rim); }
.bh-kick.red { background: var(--bh-red); } .bh-kick.blue { background: var(--bh-blue); }
.bh-title { font: 400 clamp(26px, 6vw, 44px)/1 var(--bh-font); text-transform: uppercase; letter-spacing: .01em; color: var(--bh-blue); text-shadow: 0 2px 0 #fff, 0 4px 0 var(--bh-red), 0 7px 10px #0b1a4a33; margin: 0; }
.bh-h { font: 400 15px/1.1 var(--bh-font); letter-spacing: .06em; text-transform: uppercase; color: var(--bh-ink); }
/* ---------- tabs and segmented controls ---------- */
.bh-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--bh-brushed); box-shadow: inset 0 2px 4px #0003, 0 0 0 2px var(--bh-rim); overflow-x: auto; scrollbar-width: none; }
.bh-tabs::-webkit-scrollbar { display: none; }
.bh-tabs button { appearance: none; flex: 1 0 auto; border: 0; border-radius: 999px; padding: 10px 14px; min-height: 40px; background: transparent; color: var(--bh-ink2); font: 400 13px/1 var(--bh-font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.bh-tabs button[aria-selected="true"] { color: #fff; background: radial-gradient(140% 120% at 50% 0%, var(--bh-red-hi), var(--bh-red) 55%, var(--bh-red-lo)); box-shadow: 0 0 0 2px #fff, 0 2px 0 var(--bh-black); text-shadow: 0 1px 0 #0006; }
.bh-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bh-brushed); box-shadow: inset 0 2px 4px #0003, 0 0 0 2px var(--bh-rim); }
.bh-seg button { appearance: none; border: 0; border-radius: 999px; padding: 9px 13px; min-height: 38px; background: transparent; color: var(--bh-ink2); font: 800 14px/1 var(--bh-body); cursor: pointer; white-space: nowrap; }
.bh-seg button[aria-pressed="true"] { color: #fff; background: radial-gradient(140% 120% at 50% 0%, var(--bh-blue-hi), var(--bh-blue) 55%, var(--bh-blue-lo)); box-shadow: 0 0 0 2px #fff, 0 2px 0 var(--bh-black); }
/* ---------- a switch and a slider ---------- */
.bh-tog { appearance: none; position: relative; flex: none; width: 58px; height: 32px; border-radius: 999px; cursor: pointer; background: var(--bh-brushed); box-shadow: inset 0 2px 5px #0004, 0 0 0 2px var(--bh-rim); transition: background .15s; }
.bh-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #cfd5de); box-shadow: 0 2px 4px #0006; transition: transform .15s; }
.bh-tog:checked { background: radial-gradient(140% 120% at 50% 0%, var(--bh-blue-hi), var(--bh-blue) 60%, var(--bh-blue-lo)); } .bh-tog:checked::after { transform: translateX(26px); }
.bh-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; }
.bh-range::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--bh-red), var(--bh-blue)); box-shadow: inset 0 2px 3px #0005, 0 0 0 2px var(--bh-rim); }
.bh-range::-moz-range-track { height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--bh-red), var(--bh-blue)); box-shadow: inset 0 2px 3px #0005, 0 0 0 2px var(--bh-rim); }
.bh-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -9px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 40% 30%, #fff, #b8c0cc); box-shadow: 0 0 0 2px var(--bh-rim), 0 3px 6px #0006; }
.bh-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #fff; background: radial-gradient(circle at 40% 30%, #fff, #b8c0cc); box-shadow: 0 0 0 2px var(--bh-rim), 0 3px 6px #0006; }
/* ---------- tables (box scores, stats) ---------- */
.bh-table { width: 100%; border-collapse: separate; border-spacing: 0; font: 700 14px/1.2 var(--bh-body); color: var(--bh-ink); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 2px var(--bh-rim); }
.bh-table th { background: var(--bh-black); color: #fff; font: 400 11px/1 var(--bh-font); letter-spacing: .06em; padding: 8px 6px; text-align: right; white-space: nowrap; }
.bh-table th:first-child, .bh-table td:first-child { text-align: left; }
.bh-table td { padding: 7px 6px; text-align: right; border-top: 1px solid var(--bh-ice2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-table tr:nth-child(even) td { background: var(--bh-ice); }
.bh-table, .bh-tl { background: #fff; border-radius: 10px; overflow: hidden; color: var(--bh-ink); } /* (over any page's own table look) */
.bh-tl th, .bh-tl td { border-bottom: 0; vertical-align: middle; text-align: center; color: inherit; background: transparent; }
.bh-table tfoot td { background: var(--bh-ice2); font-weight: 900; }
/* ---------- small bits ---------- */
.bh-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--bh-ink); font: 800 13px/1 var(--bh-body); box-shadow: 0 0 0 2px var(--bh-rim); }
.bh-input { font: 800 16px var(--bh-body); padding: 10px 12px; border-radius: 12px; border: 2px solid var(--bh-rim); background: #fff; color: var(--bh-ink); box-shadow: inset 0 2px 4px #0002; }
.bh-input:focus { outline: none; border-color: var(--bh-blue); box-shadow: inset 0 2px 4px #0002, 0 0 0 3px #1d4fd633; }
@media (prefers-reduced-motion: reduce) { .bh-btn { transition: none; } }
