/* Chinook Bengals Cricket Club website ("Stadium" design).
   Same fonts as the club app, served from this site. No inline styles anywhere:
   the security headers only allow styles from this file. */

@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800.woff") format("woff"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("../fonts/barlow-condensed-800-italic.woff") format("woff"); }

/* ---------- colours (dark is the default look; light is chosen with the moon button) ---------- */
:root {
  --bg: #0B0809; --bg2: #120B0D; --card: #160E11; --line: rgba(255, 255, 255, .1);
  --ink: #F4ECEE; --mute: #B9ACB1; --accent: #E3264F; --label: #F2B33D;
  --glow: rgba(227, 38, 79, .3); --outline: #F4ECEE; --field: #0F0A0C;
  --gold: #F2B33D; --gold-ink: #1A0E12;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F3EF; --bg2: #EFE6E0; --card: #FFFFFF; --line: rgba(42, 30, 34, .13);
  --ink: #22171B; --mute: #65555B; --accent: #8D2540; --label: #8D2540;
  --glow: rgba(242, 179, 61, .35); --outline: #22171B; --field: #FFFFFF;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--text); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1340px; margin: 0 auto; }
.band { padding: 60px var(--gutter); }
.band.tight { padding-top: 20px; }
.band.alt { background: var(--bg2); }
.h { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: .9; letter-spacing: 0; }
.it { font-style: italic; }
.accent { color: var(--accent); }
.eyebrow { display: block; font-weight: 700; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--label); }
.lead { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.65; color: var(--mute); }
.title-xl { margin: 0; font-style: italic; font-size: clamp(60px, 8vw, 120px); }
.title-l { margin: 0; font-size: clamp(38px, 5vw, 56px); }
.title-m { margin: 0; font-size: 44px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row-between { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; padding: 14px 24px; font-size: 16px; transition: transform .25s cubic-bezier(.2, .9, .3, 1.4); background: transparent; }
.btn:hover { transform: translateY(-3px); }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.line { border-color: var(--line); color: var(--ink); }
.btn.big { padding: 18px 30px; font-size: 18px; }
.btn.sm { padding: 11px 18px; font-size: 14px; }
.btn svg { flex: none; }
.link { font-weight: 700; color: var(--label); }
.links { display: flex; flex-wrap: wrap; gap: 10px 28px; }

/* ---------- header and menu ---------- */
.top { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 11px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 90px; height: 90px; flex: none; object-fit: contain; }
.brand .h { font-size: 20px; letter-spacing: .04em; }
.brand small { display: block; color: var(--label); font-size: 13px; letter-spacing: .22em; }
.navwrap { display: contents; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 24px; flex: 1 1 380px; justify-content: center; }
.nl { color: var(--mute); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nl:hover, .nl[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.tools { display: contents; }
.mode { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.top .btn { padding: 12px 22px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; margin-left: auto; border-radius: 14px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.burger span { position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; transition: transform .25s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .navwrap { display: none; width: 100%; flex-direction: column; gap: 14px; padding: 6px 0 4px; }
  .navwrap.open { display: flex; }
  .nav { flex-direction: column; flex: none; gap: 0; }
  .nl { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .nl[aria-current="page"] { color: var(--accent); border-bottom-color: var(--line); }
  .tools { display: flex; gap: 12px; align-items: center; }
  .tools .btn { flex: 1; padding: 15px 22px; font-size: 17px; }
}

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 30px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 15px; color: var(--mute); }
.foot .name { display: flex; flex-direction: column; gap: 4px; }
.foot .name .h { font-size: 20px; color: var(--ink); }
.foot .chant { font-size: 18px; font-style: italic; color: var(--accent); }
.foot .flinks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .copy { width: 100%; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) var(--gutter) 0; }
.beam { position: absolute; left: 8%; top: -260px; width: 260px; height: 1000px; background: linear-gradient(180deg, var(--glow), rgba(0, 0, 0, 0) 75%); transform-origin: top center; filter: blur(10px); opacity: .7; pointer-events: none; }
.hero-grid { position: relative; display: flex; flex-wrap: wrap; gap: 44px; align-items: center; max-width: 1340px; margin: 0 auto; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-title { margin: 0; font-style: italic; font-size: clamp(64px, 9vw, 140px); line-height: .84; }
.hero-title .nowrap { white-space: nowrap; }
.hollow { color: transparent; -webkit-text-stroke: 2px var(--outline); }
.hero-copy .lead { max-width: 500px; font-size: 19px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-media { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.clip { position: relative; width: min(420px, 100%); height: 560px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 120px var(--glow); }
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; }
.next { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(11, 8, 9, .72); backdrop-filter: blur(10px); color: #F4ECEE; border-radius: 18px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; }
.next small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.next .h { font-size: 22px; }
.next .when { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #E3264F; }
.track { position: relative; height: 60px; margin-top: 16px; max-width: 1340px; margin-left: auto; margin-right: auto; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.ball { position: absolute; top: 13px; left: 0; }
.ball i { display: block; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF6B6B, #C8102E 55%, #7A0A1C); position: relative; overflow: hidden; }
.ball i::after { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 7px); }
.ticker-wrap { overflow: hidden; padding: 6px 0 14px; }
.ticker { background: var(--accent); color: #fff; overflow: hidden; transform: rotate(-1.5deg); margin: 10px -20px 0; padding: 12px 0; }
.ticker .mq { display: flex; width: max-content; gap: 40px; font-style: italic; font-size: 32px; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.tile { position: relative; height: 360px; border-radius: 26px; overflow: hidden; text-decoration: none; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; transition: transform .45s cubic-bezier(.2, .9, .3, 1.2); }
.tile:hover { transform: translateY(-8px); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.tile:hover img { transform: scale(1.07); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 8, 9, 0) 35%, rgba(11, 8, 9, .88)); }
.tile small, .tile .h { position: relative; z-index: 1; }
.tile small { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tile .h { font-size: 44px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; max-width: 1020px; margin: 14px auto 0; }
.post { aspect-ratio: 1; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--mute); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; transition: transform .3s; }
.post:hover { transform: translateY(-4px); }
.sponsors { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sponsors .title-l { text-align: center; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }
.logo-card { flex: 0 1 320px; height: 170px; background: #fff; border-radius: 22px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 18px 24px; transition: transform .35s; }
a.logo-card:hover { transform: translateY(-6px); }
.logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- about us ---------- */
.split { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.split > div { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > img { flex: 1 1 520px; min-width: 0; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats div { border-top: 2px solid var(--accent); padding-top: 10px; }
.stats .h { font-size: clamp(30px, 7vw, 46px); }
.stats small { font-size: 13px; color: var(--mute); }
.btn.bylaws { align-self: flex-start; }
.soon { font-size: 13px; color: var(--mute); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv > img { width: 100%; height: 100%; min-height: 320px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.mv-text { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.mv-text h2 { margin: 0; }
.mv-text p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--mute); }
@media (max-width: 860px) {
  .mv { grid-template-columns: 1fr; }
  .mv > img { min-height: 0; }
  .mv > img:last-child { order: 3; }
}
.huddle { background: var(--accent); color: #fff; padding: clamp(44px, 6vw, 80px) var(--gutter); margin-bottom: 40px; }
.huddle .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 60px; }
.huddle .wrap > div { flex: 1 1 520px; min-width: 0; }
.huddle .wrap > div + div { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; font-size: 18px; line-height: 1.6; }
.huddle .eyebrow { color: var(--gold); margin-bottom: 12px; }
.huddle h2 { margin: 0; font-style: italic; font-size: clamp(56px, 8vw, 128px); line-height: .86; }
.huddle p { margin: 0; } .huddle .meaning { opacity: .85; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 12px; }
.mosaic a { border-radius: 22px; overflow: hidden; }
.mosaic a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic a:nth-child(2) { grid-column: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.mosaic a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr; } .mosaic a:nth-child(n) { grid-column: auto; grid-row: auto; } }

/* ---------- teams ---------- */
.tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tab { cursor: pointer; background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--ink); text-align: left; transition: transform .3s, border-color .3s; }
.tab:hover { transform: translateY(-4px); }
.tab[aria-selected="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent) inset; }
.tab img { width: 54px; height: 51px; object-fit: contain; }
.tab .h { display: block; font-size: 24px; }
.tab small { font-size: 12px; font-weight: 700; color: var(--label); }
.team-head { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; background: var(--bg2); border-radius: 28px; padding: clamp(22px, 3vw, 40px); }
.team-head > img { width: 190px; height: 181px; object-fit: contain; }
.team-head > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.team-head .eyebrow { letter-spacing: .2em; }
.team-name { font-size: clamp(44px, 6vw, 96px); overflow-wrap: anywhere; }
.next-card { flex: 0 1 300px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.next-card .h { font-size: 26px; margin-top: 6px; }
.next-card small { display: block; font-size: 14px; color: var(--mute); }
.next-card .eyebrow { font-size: 12px; letter-spacing: .18em; }
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.player { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3); }
.player:hover { transform: translateY(-6px); }
.player .ph { width: 84px; height: 84px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 12px; font-weight: 700; }
.player b { font-weight: 700; }
.player small { font-size: 13px; color: var(--mute); }
.team-panel[hidden] { display: none; }
.note { margin: 0; font-size: 14px; color: var(--mute); }

/* ---------- fixtures ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { cursor: pointer; font: 600 14px var(--text); padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--mute); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip span { opacity: .7; }
.fx { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; border: 1px solid var(--line); border-radius: 20px; padding: 16px 22px; transition: transform .3s, border-color .3s; }
.fx.up { background: var(--card); }
.fx:hover { transform: translateX(8px); border-color: var(--accent); }
.fx-date { flex: 0 0 74px; text-align: center; border-right: 1px solid var(--line); padding-right: 16px; }
.fx-date .h { font-size: 32px; color: var(--accent); }
.fx-date small, .fx .res-date { font-size: 12px; font-weight: 700; color: var(--mute); }
.fx .res-date { flex: 0 0 74px; font-size: 13px; }
.fx-main { flex: 1 1 260px; min-width: 0; }
.fx-main .h { font-size: 26px; }
.fx-main .vs, .fx .vs { color: var(--mute); font-size: 20px; }
.fx-main small { display: block; font-size: 14px; color: var(--mute); }
.fx .cal { font-size: 13px; font-weight: 700; color: var(--label); }
.fx .res { flex: 1 1 260px; font-size: 24px; }
.outcome { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--bg2); }
.fx[hidden] { display: none; }
.empty { border: 1.5px dashed var(--line); border-radius: 22px; padding: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.empty .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--bg2); color: var(--label); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.empty > div { flex: 1 1 300px; min-width: 0; }
.empty .h { font-size: 28px; }
.empty p { margin: 6px 0 0; color: var(--mute); }

/* ---------- events ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.ev { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), border-color .3s; }
.ev:hover { transform: translateY(-6px); border-color: var(--accent); }
.ev .poster { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in; background: var(--bg2); }
.ev .poster img { width: 100%; height: 100%; object-fit: cover; }
.ev .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--bg2); color: var(--label); }
.ev h3 { margin: 0; font-size: 28px; line-height: 1; }
.ev .when { font-size: 14px; font-weight: 600; }
.ev .where { font-size: 14px; color: var(--mute); }
.ev p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--mute); flex: 1; }
.ev .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- gallery ---------- */
.grid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.grid-photos .big { grid-column: span 2; grid-row: span 2; }
.grid-photos .wide { grid-column: span 2; }
.grid-photos.filtered .big, .grid-photos.filtered .wide { grid-column: auto; grid-row: auto; }
.grid-photos [hidden] { display: none; }
@media (max-width: 620px) { .grid-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }
.ph-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: zoom-in; background: var(--bg2); }
.ph-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.ph-btn:hover img { transform: scale(1.05); }
.ph-btn .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(180deg, rgba(11, 8, 9, 0), rgba(11, 8, 9, .82)); color: #F4ECEE; font-size: 13px; font-weight: 600; text-align: left; opacity: 0; transition: opacity .3s; }
.ph-btn:hover .cap, .ph-btn:focus-visible .cap { opacity: 1; }
.pos-top { object-position: center 30%; } .pos-left { object-position: 60% 40%; } .pos-right { object-position: 72% 40%; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; background: var(--card); }
.callout .h { font-size: 30px; }
.callout p { margin: 6px 0 0; color: var(--mute); }
.callout strong { color: var(--ink); user-select: all; }

/* ---------- viewer (photos and event posters) ---------- */
dialog.viewer { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); overflow: auto; }
dialog.viewer::backdrop { background: rgba(8, 5, 6, .9); }
.viewer .vbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 12px 0 20px; }
.viewer .vimg { padding: 12px 20px; }
.viewer .vimg img { margin: 0 auto; max-height: 72vh; object-fit: contain; border-radius: 14px; }
.viewer .vnav { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px 20px; font-size: 14px; font-weight: 600; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.evd { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; padding: 20px; }
.evd img { flex: 1 1 300px; min-width: 0; width: 100%; max-width: 440px; border-radius: 16px; }
.evd > div { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.evd .top-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.evd h3 { margin: 0; font-size: 40px; }
.evd p { margin: 6px 0 0; line-height: 1.6; color: var(--mute); }

/* ---------- contact ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.steps .n { font-size: 40px; color: var(--accent); flex: 0 0 44px; }
.steps strong { display: block; font-size: 18px; }
.steps span span { color: var(--mute); }
.form { flex: 1 1 440px; min-width: 0; background: var(--bg2); border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 16px var(--text); padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field); color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 15px; font-weight: 600; }
.form-msg.ok { color: var(--label); }
.form small { font-size: 14px; color: var(--mute); }
.form small a { color: var(--label); font-weight: 700; }

/* ---------- 404 ---------- */
.lost { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .beam { animation: sweep 9s ease-in-out infinite alternate; }
  .rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; } .d1 { animation-delay: .1s; } .d2 { animation-delay: .22s; } .d3 { animation-delay: .34s; }
  .mq { animation: mq 26s linear infinite; }
  .ball { animation: roll 7s linear infinite; } .ball i { animation: spin .6s linear infinite; }
  .dot { animation: tick 1s steps(1) infinite; }
}
@keyframes sweep { from { transform: rotate(-14deg); } to { transform: rotate(8deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes mq { to { transform: translateX(-50%); } }
@keyframes roll { from { transform: translateX(-60px); } to { transform: translateX(calc(100vw - 40px)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tick { 50% { opacity: .35; } }

/* Photo placeholders always centre the camera icon */
img[src$="placeholder-photo.svg"] { object-position: 50% 50% !important; }

/* ---------- Phase 2: content from the club app ---------- */
.post.has-img { position: relative; padding: 0; overflow: hidden; }
.post.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .vid { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.outcome.won { background: var(--accent); color: #fff; }
.outcome.lost { background: var(--bg2); }
.outcome.tied, .outcome.washout { background: var(--card); border: 1px solid var(--line); }
.xs .split > img { aspect-ratio: 4 / 3; }
.xs-narrow { max-width: 820px; }
.xs-text { display: flex; flex-direction: column; gap: 14px; }
.xs-text p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--mute); }
.xs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.xs-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; display: block; }
.player .ph.h { font-size: 26px; color: var(--mute); }
.sponsor-note { margin: 0; text-align: center; }
.cf-turnstile { min-height: 65px; }
.ph-btn .cap:empty, .vcap:empty { display: none; }
img.ph { object-fit: cover; display: block; }
/* Bigger player cards, smaller team header (21 Nov 2026) */
.team-head { gap: 18px 24px; padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 30px); border-radius: 24px; }
.team-head > img { width: 110px; height: 105px; }
.team-head > div { gap: 4px; justify-content: center; }
.team-name { font-size: clamp(34px, 4vw, 58px); line-height: .95; margin: 2px 0; }
.team-head .note { font-size: 14px; }
.next-card { flex: 0 1 260px; padding: 14px 16px; border-radius: 16px; }
.next-card .h { font-size: 21px; margin-top: 4px; }
.squad { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.player { padding: 26px 20px 28px; gap: 12px; border-radius: 26px; }
.player .ph { width: 190px; height: 190px; }
.player .ph.h { font-size: 54px; }
.player b { font-size: 21px; line-height: 1.25; }
.player small { font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) {
  .team-head > img { width: 84px; height: 80px; }
  .squad { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .player { padding: 16px 10px 18px; }
  .player .ph { width: 120px; height: 120px; }
  .player .ph.h { font-size: 36px; }
  .player b { font-size: 16px; }
}
.team-head .eyebrow, .team-head .note { margin: 0; }

/* Header logo same size as the app (90px, 75px on phones) */
@media (max-width: 600px) { .brand img { width: 75px; height: 75px; } }
@media (max-width: 600px) { .posts { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
/* Footer in the club colours (21 Nov 2026) */
.foot .name .h .gold, .foot .name .chant { color: var(--label); }
.foot .name .chant .red { color: var(--accent); }
.foot .flinks a { color: var(--label); text-decoration-color: var(--line); text-underline-offset: 4px; transition: color .2s; }
.foot .flinks a:hover { color: var(--accent); }
