:root {
  --blue: #00529d;
  --blue-deep: #00366e;
  --blue-night: #001f48;
  --red: #cb2619;
  --red-bright: #e63225;
  --ice: #f2f6fb;
  --ink: #071b38;
  --muted: #63748a;
  --line: #dce4ee;
  --white: #fff;
  --shadow: 0 20px 55px rgba(0, 49, 102, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e9eff6; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at 50% 0, #fff 0, #e8eef5 65%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

.install-gate { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; color: #fff; background: radial-gradient(circle at 75% 18%, rgba(0,82,157,.85), transparent 38%), linear-gradient(145deg, #001b40, #003d79 62%, #00529d); overflow-y: auto; }
.install-gate::before { content: ""; position: fixed; width: 430px; height: 92px; right: -115px; top: 16%; background: var(--red); transform: rotate(-13deg); opacity: .92; }
.install-gate::after { content: ""; position: fixed; width: 410px; height: 410px; left: -260px; bottom: -230px; border: 68px solid rgba(255,255,255,.055); border-radius: 50%; }
.is-installed .install-gate, .install-gate[hidden] { display: none; }
.install-gate-card { position: relative; z-index: 1; width: min(100%, 520px); padding: 30px 24px 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 28px; background: rgba(0,25,60,.72); box-shadow: 0 32px 90px rgba(0,0,0,.34); backdrop-filter: blur(14px); text-align: center; }
.install-gate-brand { width: 132px; height: 82px; margin: 0 auto 15px; display: grid; place-items: center; padding: 8px; border-radius: 19px; background: #fff; box-shadow: 0 16px 32px rgba(0,0,0,.22); }
.install-gate-brand img { width: 116px; max-height: 68px; object-fit: contain; }
.install-gate-kicker { margin: 0 0 10px; color: #b9d8f6; font-size: .75rem; font-weight: 950; letter-spacing: .14em; }
.install-gate h1 { margin: 0; font-size: clamp(2.25rem, 9vw, 3.5rem); line-height: .97; letter-spacing: -.055em; text-transform: uppercase; }
.install-gate-lead { max-width: 390px; margin: 18px auto 22px; color: #d8e7f5; font-size: 1rem; line-height: 1.55; }
.install-gate-primary { width: 100%; min-height: 61px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 0 20px; border: 0; border-radius: 17px; color: #fff; background: linear-gradient(135deg, var(--red-bright), var(--red)); box-shadow: 0 16px 34px rgba(203,38,25,.36); font-size: 1.05rem; font-weight: 950; }
.install-gate-primary svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.install-help { margin: 14px 0 0; padding: 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; text-align: left; font-size: .92rem; line-height: 1.5; }
.install-help strong { color: #fff; }
.install-gate-secondary { margin-top: 13px; padding: 10px 14px; border: 0; color: #d9e8f6; background: transparent; font-size: .9rem; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.install-gate-note { margin: 15px auto 0; color: #9fbedc; font-size: .75rem; }

.offline-bar { display: none; position: fixed; inset: 0 0 auto; z-index: 100; padding: 9px; text-align: center; color: #fff; background: var(--red); font-size: .8rem; font-weight: 800; }
body.offline .offline-bar { display: block; }
.app-shell { width: min(100%, 820px); min-height: 100vh; margin: 0 auto; background: var(--ice); overflow: hidden; box-shadow: 0 0 90px rgba(0, 35, 75, .12); padding-bottom: 90px; }

.topbar { min-height: 82px; padding: max(11px, env(safe-area-inset-top)) 18px 10px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; width: 110px; height: 58px; align-items: center; text-decoration: none; overflow: hidden; }
.brand img { width: 108px; height: 58px; object-fit: contain; }
.season-pill { padding: 7px 10px; border: 1px solid #ccd8e6; border-radius: 999px; color: var(--blue-deep); background: #f5f8fc; font-size: .7rem; font-weight: 900; letter-spacing: .07em; white-space: nowrap; }
.icon-button { position: relative; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 14px; color: #fff; background: var(--blue); box-shadow: 0 9px 20px rgba(0,82,157,.2); }
.icon-button svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.notification-dot { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
.notification-dot.on { background: #24b66b; }

.hero { position: relative; isolation: isolate; min-height: 620px; padding: 38px 20px 24px; color: #fff; background: linear-gradient(152deg, var(--blue-night) 0%, var(--blue-deep) 42%, var(--blue) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: repeating-linear-gradient(116deg, transparent 0 66px, rgba(255,255,255,.026) 66px 68px); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 360px; height: 78px; right: -115px; top: 78px; background: var(--red); transform: rotate(-12deg); opacity: .95; }
.hero-lines { position: absolute; z-index: -1; width: 430px; height: 430px; right: -190px; bottom: 10px; border: 58px solid rgba(255,255,255,.055); border-radius: 50%; }
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; background: rgba(255,255,255,.05); }
.hero-lines::before { width: 2px; height: 200%; left: 50%; top: -50%; }
.hero-lines::after { width: 200%; height: 2px; top: 50%; left: -50%; }
.hero-logo-watermark { position: absolute; z-index: -1; width: 340px; right: -115px; top: 155px; opacity: .08; mix-blend-mode: screen; transform: rotate(-8deg); }
.hero-copy { position: relative; z-index: 2; }
.live-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: #fff; font-size: .75rem; font-weight: 900; letter-spacing: .11em; }
.live-label span { width: 9px; height: 9px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 5px rgba(230,50,37,.18); }
.eyebrow { margin: 0 0 8px; color: #fff; font-size: .74rem; font-weight: 900; letter-spacing: .15em; }
.eyebrow.dark { color: var(--red); }
.hero h1 { margin: 0; max-width: 560px; font-size: clamp(3.25rem, 15vw, 6.4rem); line-height: .84; letter-spacing: -.065em; text-transform: uppercase; text-wrap: balance; }
.hero h1 em { position: relative; display: inline-block; color: #fff; font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; left: -6px; right: -15px; bottom: 3px; height: 30%; background: var(--red); transform: skewX(-15deg); }
.match-meta { display: flex; gap: 28px; margin: 27px 0 24px; }
.match-meta div { padding-left: 12px; border-left: 3px solid var(--red); }
.match-meta span, .match-meta strong { display: block; }
.match-meta span { margin-bottom: 3px; color: #a9bfda; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.match-meta strong { font-size: 1rem; }

.score-card { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 9px; padding: 19px 13px; border-radius: 20px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: 0 22px 48px rgba(0,17,40,.3); }
.score-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 20px 0 0 20px; background: var(--red); }
.team { display: flex; align-items: center; gap: 9px; justify-content: flex-end; text-align: right; }
.team:last-child { justify-content: flex-start; text-align: left; }
.team strong { font-size: .75rem; line-height: 1.2; letter-spacing: .025em; }
.team-logo, .guest-mark { display: grid; flex: 0 0 49px; width: 49px; height: 49px; place-items: center; border-radius: 15px; overflow: hidden; }
.team-logo { padding: 4px; background: #fff; border: 1px solid var(--line); }
.team-logo img { width: 100%; height: 100%; object-fit: contain; }
.guest-mark { padding: 5px; color: #fff; background: #fff; border: 1px solid var(--line); font-size: 1rem; font-weight: 950; }
.guest-mark img { width: 100%; height: 100%; object-fit: contain; }
.guest-mark b { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #5c6f84, #28384b); }
.guest-mark b[hidden] { display: none; }
.versus { min-width: 48px; text-align: center; }
.versus span, .versus small { display: block; color: var(--muted); font-size: .58rem; font-weight: 850; letter-spacing: .09em; }
.versus b { display: block; margin: 2px 0; color: var(--red); font-size: 1.35rem; line-height: 1; }
.primary-button { width: 100%; min-height: 55px; margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--red-bright), var(--red)); font-weight: 900; box-shadow: 0 13px 30px rgba(203,38,25,.34); transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(203,38,25,.38); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { margin: 12px 4px 0; color: #a9bfda; font-size: .76rem; }

.quick-grid { position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 16px 14px 10px; margin-top: -1px; background: var(--ice); }
.schedule-section { padding-top: 28px; }
.source-link { color: var(--blue); font-size: .8rem; font-weight: 800; text-decoration: none; }
.schedule-list { display: grid; gap: 10px; }
.schedule-game { display: grid; grid-template-columns: 64px 52px 1fr; align-items: center; gap: 13px; padding: 14px; border: 1px solid #dce5ef; border-radius: 15px; background: #fff; }
.schedule-game .game-date { display: grid; place-items: center; min-height: 58px; border-radius: 12px; background: var(--blue-night); color: #fff; text-align: center; }
.schedule-game .game-date b { font-size: 1.25rem; line-height: 1; }
.schedule-game .game-date span { margin-top: 4px; font-size: .66rem; font-weight: 900; }
.schedule-game h3 { margin: 0 0 4px; font-size: 1rem; }
.schedule-game p { margin: 0; color: #68778b; font-size: .82rem; }
.schedule-team-logo { width: 50px; height: 50px; display: grid; place-items: center; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.schedule-team-logo img { width: 100%; height: 100%; object-fit: contain; }
.schedule-team-logo.fallback { color: #fff; background: var(--blue-deep); font-weight: 950; }
.quick-card { position: relative; min-height: 132px; padding: 17px; border: 1px solid #dce5ef; border-radius: 18px; background: #fff; text-align: left; overflow: hidden; box-shadow: 0 8px 22px rgba(0,45,94,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick-card::after { content: ""; position: absolute; width: 58px; height: 58px; right: -25px; bottom: -27px; border: 10px solid #edf3f9; border-radius: 50%; }
.quick-card:hover { transform: translateY(-3px); border-color: #b8cce0; box-shadow: var(--shadow); }
.quick-card strong, .quick-card small { display: block; position: relative; z-index: 1; }
.quick-card strong { margin-top: 12px; font-size: 1rem; }
.quick-card small { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.quick-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.12); }
.quick-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-icon.red { background: var(--red); }
.quick-icon.navy { background: var(--blue-deep); }
.quick-icon.gold { background: #f2a900; }
.quick-icon.blue { background: var(--blue); }

.content-section { padding: 38px 20px; scroll-margin-top: 18px; background: #fff; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.text-button { padding: 7px 0; border: 0; color: var(--blue); background: none; font-size: .84rem; font-weight: 900; }
.featured-news { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 15px 38px rgba(0,45,94,.1); overflow: hidden; }
.news-visual { min-height: 205px; position: relative; display: grid; place-items: center; padding: 30px; background: linear-gradient(140deg, var(--blue-night), var(--blue)); overflow: hidden; }
.news-visual::before { content: ""; position: absolute; width: 260px; height: 68px; right: -70px; top: 20px; background: var(--red); transform: rotate(-14deg); }
.news-visual::after { content: ""; position: absolute; width: 290px; height: 290px; left: -160px; bottom: -210px; border: 46px solid rgba(255,255,255,.08); border-radius: 50%; }
.news-visual img { position: relative; z-index: 1; width: min(75%, 250px); padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.22); transform: rotate(-2deg); }
.news-visual i { position: absolute; z-index: 2; left: 18px; bottom: 14px; color: #fff; font-size: .75rem; font-style: normal; font-weight: 900; letter-spacing: .08em; }
.news-copy { padding: 20px; }
.tag { display: inline-block; color: var(--red); font-size: .7rem; font-weight: 950; letter-spacing: .11em; }
.news-copy time { margin-left: 8px; color: var(--muted); font-size: .75rem; }
.news-copy h3, .news-list h3, .promo-card h3 { margin: 8px 0 7px; font-size: 1.08rem; line-height: 1.3; }
.news-copy p, .news-list p, .promo-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.news-list { margin-top: 17px; border-top: 1px solid var(--line); }
.news-list article { display: grid; grid-template-columns: 58px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.date-tile { width: 54px; height: 61px; display: grid; place-items: center; align-content: center; border-radius: 13px; color: #fff; background: var(--blue-deep); box-shadow: 0 8px 17px rgba(0,54,110,.18); }
.date-tile.accent { background: var(--red); }
.date-tile b { font-size: 1.3rem; line-height: 1; }
.date-tile span { margin-top: 3px; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }

.dark-section { position: relative; color: #fff; background: linear-gradient(145deg, var(--blue-night), var(--blue-deep)); overflow: hidden; }
.dark-section::after { content: ""; position: absolute; width: 300px; height: 300px; right: -190px; top: -150px; border: 48px solid rgba(255,255,255,.05); border-radius: 50%; }
.contest-card { position: relative; z-index: 1; padding: 25px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,.1), rgba(255,255,255,.025)); backdrop-filter: blur(8px); }
.contest-card h3 { margin: 12px 0; font-size: 1.75rem; line-height: 1.08; letter-spacing: -.03em; }
.contest-card p { margin: 0; color: #b8c8dc; font-size: .87rem; }
.contest-badge { display: inline-block; padding: 6px 9px; border-radius: 6px; color: #fff; background: var(--red); font-size: .67rem; font-weight: 950; letter-spacing: .08em; }
.light-button { width: 100%; min-height: 50px; margin-top: 21px; border: 0; border-radius: 14px; color: var(--blue-deep); background: #fff; font-weight: 900; }
.promo-card { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg, #fff, #f6f9fc); box-shadow: 0 14px 36px rgba(0,45,94,.08); }
.promo-value { display: grid; place-items: center; width: 94px; height: 94px; border-radius: 24px 8px 24px 8px; color: #fff; background: linear-gradient(145deg, var(--red-bright), var(--red)); font-size: 1.8rem; font-weight: 950; transform: rotate(-3deg); box-shadow: 0 12px 24px rgba(203,38,25,.25); }
.install-banner { margin: 0 14px 26px; padding: 15px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid #cfddea; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(0,45,94,.08); }
.install-icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.install-icon img { width: 46px; height: 46px; object-fit: contain; }
.install-banner strong { display: block; font-size: .84rem; }
.install-banner p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.install-banner button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-size: .76rem; font-weight: 900; }

.bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; width: min(100%, 820px); min-height: 72px; margin: auto; padding: 7px 10px max(7px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); box-shadow: 0 -10px 30px rgba(0,40,80,.08); }
.bottom-nav button { position: relative; border: 0; color: #79889a; background: transparent; font-size: .67rem; font-weight: 800; }
.bottom-nav span { display: block; margin-bottom: 4px; font-size: 1.16rem; line-height: 1; }
.bottom-nav button.active { color: var(--blue); }
.bottom-nav button.active::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 24px; height: 3px; border-radius: 3px; background: var(--red); transform: translateX(-50%); }

dialog { width: min(calc(100% - 28px), 510px); padding: 0; border: 0; border-radius: 24px; color: var(--ink); box-shadow: 0 32px 100px rgba(0,20,50,.42); overflow: hidden; }
dialog::backdrop { background: rgba(0,19,45,.76); backdrop-filter: blur(4px); }
dialog form { position: relative; padding: 29px 23px 23px; }
.close-button { position: absolute; right: 13px; top: 12px; width: 37px; height: 37px; border: 0; border-radius: 50%; color: var(--muted); background: #eef3f8; font-size: 1.45rem; }
.modal-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: #eaf3fc; font-size: 1.45rem; }
dialog h2 { margin: 15px 0 6px; font-size: 1.75rem; letter-spacing: -.04em; }
dialog > form > p { margin: 0 0 20px; color: var(--muted); font-size: .88rem; }
.preference { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.preference strong, .preference small { display: block; }
.preference strong { font-size: .88rem; }
.preference small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.preference input { width: 43px; height: 25px; accent-color: var(--blue); }
.primary-button.full { margin-top: 14px; }
.privacy-note { margin: 10px 0 0 !important; text-align: center; font-size: .7rem !important; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 90px; width: min(calc(100% - 32px), 440px); padding: 14px 17px; border-radius: 14px; color: #fff; background: var(--blue-night); opacity: 0; transform: translate(-50%, 12px); transition: .25s; pointer-events: none; font-size: .82rem; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.admin-link { display: block; margin: 2px auto 24px; width: max-content; color: #7b899a; font-size: .72rem; font-weight: 800; text-decoration: none; }
.admin-link:hover { color: var(--blue); }

@media (min-width: 700px) {
  .app-shell { margin: 28px auto; min-height: calc(100vh - 56px); border-radius: 28px; }
  .topbar { padding-inline: 34px; }
  .brand { width: 132px; }.brand img { width: 128px; }
  .hero { min-height: 630px; padding: 54px 50px 34px; }
  .hero-logo-watermark { width: 470px; right: -120px; top: 115px; }
  .score-card { max-width: 610px; padding: 21px 24px; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); padding: 20px 24px 14px; }
  .quick-card { min-height: 142px; }
  .content-section { padding: 50px; }
  .featured-news { display: grid; grid-template-columns: 1.08fr 1fr; }
  .news-visual { min-height: 270px; }
  .news-copy { padding: 30px; align-self: center; }
  .contest-card { display: flex; align-items: end; justify-content: space-between; gap: 35px; padding: 30px; }
  .contest-card .light-button { width: auto; min-width: 155px; padding: 0 24px; }
}

@media (max-width: 390px) {
  .install-gate { padding: 12px; }
  .install-gate-card { padding: 23px 17px 19px; border-radius: 23px; }
  .install-gate-brand { width: 112px; height: 70px; margin-bottom: 12px; }
  .install-gate-brand img { width: 98px; max-height: 58px; }
  .install-gate h1 { font-size: 2.15rem; }
  .install-gate-lead { margin: 14px auto 17px; font-size: .93rem; }
  .season-pill { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .hero { min-height: 600px; }
  .match-meta { gap: 20px; }
  .team-logo, .guest-mark { flex-basis: 43px; width: 43px; height: 43px; }
  .team strong { font-size: .7rem; }
  .promo-card { grid-template-columns: 82px 1fr; }
  .promo-value { width: 82px; height: 82px; font-size: 1.55rem; }
  .schedule-game { grid-template-columns: 56px 44px 1fr; gap: 9px; padding: 11px; }
  .schedule-team-logo { width: 43px; height: 43px; border-radius: 11px; }
  .schedule-game h3 { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
