@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/space-grotesk.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07131e;
  --panel: #0b1c29;
  --line: #263c4a;
  --ink: #f1f9fc;
  --muted: #aec2ce;
  --accent: #51e4f3;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --site-width: 1232px;
  --gutter: clamp(20px, 5.5vw, 80px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.wrapper { width: min(calc(100% - 2 * var(--gutter)), var(--site-width)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-200%); z-index: 5; padding: 10px 16px; background: var(--accent); color: #041119; border-radius: 6px; }
.skip-link:focus { transform: none; }

.site-header { background: #061019; border-bottom: 1px solid #193140; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 74px; gap: 24px; }
.wordmark { width: max-content; display: inline-flex; align-items: center; gap: 9px; font-family: var(--heading); font-size: 1.35rem; line-height: 1; font-weight: 800; letter-spacing: .055em; white-space: nowrap; }
.wordmark b { color: var(--accent); font-weight: inherit; }
.site-nav { display: flex; gap: clamp(20px, 3.7vw, 56px); color: var(--muted); font-weight: 600; font-size: .9375rem; }
.site-nav a, .footer-admin { transition: color .18s ease; }
.site-nav a:hover, .footer-admin:hover { color: var(--accent); }
.admin-link { justify-self: end; }

.button { width: max-content; max-width: 100%; min-height: 48px; padding: 10px 19px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; line-height: 1.2; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.button svg, .carousel-step svg, .game-icon svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .play-path { fill: currentColor; stroke: none; }
.button-primary { background: var(--accent); color: #04151c; }
.button-primary:hover { background: #9af4fc; }
.button-outline { border-color: #76b3c477; background: #071621ad; }
.button-outline:hover { color: var(--accent); border-color: var(--accent); }
.button-quiet { border-color: var(--line); color: var(--muted); background: #10212b55; font-size: .875rem; min-height: 42px; padding: 8px 13px; }
.button-quiet:hover { border-color: #63acb9; color: var(--accent); }
.button-quiet svg { width: 16px; height: 16px; }

.hero { min-height: clamp(530px, 45.5vw, 690px); isolation: isolate; display: grid; align-items: center; background-color: #03101e; background-image: linear-gradient(90deg, #040e18f5 0%, #040e18ae 32%, #040e1849 57%, transparent 76%), linear-gradient(0deg, var(--bg), transparent 26%), url("/assets/shark-tank-poster.webp"); background-size: cover; background-position: center, center, 57% 46%; position: relative; }
.hero-inner { padding-block: clamp(64px, 6.5vw, 118px); }
.eyebrow { color: var(--accent); font-size: .8125rem; font-weight: 700; line-height: 1.4; letter-spacing: .17em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px #51e4f37a; }
.hero h1 { margin-block: 12px 22px; font: 800 clamp(5.4rem, 9.9vw, 10rem)/.81 var(--heading); letter-spacing: -.018em; text-transform: uppercase; }
.hero h1 span { color: var(--accent); display: block; }
.hero-description { color: #cbdae3; font-size: clamp(1rem, 1.55vw, 1.2rem); line-height: 1.58; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }

.section { padding-block: 42px 52px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 21px; }
.eyebrow-line::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section h2, .access-page h1 { font: 800 clamp(2.6rem, 5.7vw, 4.75rem)/.92 var(--heading); letter-spacing: -.01em; text-transform: uppercase; margin-top: 9px; }
.section-description { color: var(--muted); margin-bottom: 24px; }

.carousel-actions { display: flex; align-items: center; gap: 8px; }
.carousel-position { color: var(--muted); min-width: 48px; text-align: right; margin-right: 6px; font-size: .85rem; white-space: nowrap; }
.carousel-step { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #385a69; background: #102430; color: var(--accent); padding: 0; }
.carousel-step:hover:not(:disabled) { background: #174151; border-color: var(--accent); }
.carousel-step:disabled { color: #718994; background: transparent; border-color: #253946; }
.trailer-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 18px) / 1.86); gap: 18px; overflow-x: auto; padding: 1px 1px 12px; scroll-padding-inline: 1px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #2d5d6c transparent; touch-action: pan-x pan-y; }
.trailer-card { scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.trailer-media { display: block; position: relative; isolation: isolate; aspect-ratio: 16/8; width: 100%; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); background: #0c2534; overflow: hidden; text-align: left; }
.trailer-media:focus-visible { outline-offset: -4px; }
.teaser-media { background-image: linear-gradient(0deg, #020b15b8, transparent 42%), url("/assets/shark-tank-poster.webp"); background-size: cover; background-position: center 45%; }
.trailer-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 70% 32%, #0f5367, #091b2b 67%); }
.media-label, .media-duration { position: absolute; z-index: 1; background: #06141ee8; border: 1px solid #59819780; color: #e2f4fa; border-radius: 5px; padding: 5px 8px; font-size: .75rem; font-weight: 700; line-height: 1.1; }
.media-label { top: 12px; left: 12px; }
.media-duration { right: 12px; bottom: 12px; font-variant-numeric: tabular-nums; }
.play-disc { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 59px; height: 59px; border-radius: 50%; border: 1px solid #b5f7ffb0; background: #061b28b9; color: var(--accent); box-shadow: 0 2px 16px #020b17a3; transition: background-color .18s, color .18s; }
.play-disc svg { height: 28px; width: 28px; }
.trailer-media:hover .play-disc { color: #07131e; background: var(--accent); }
.upcoming-media { background: repeating-radial-gradient(ellipse at 52% 65%, transparent 0 25px, #57b6d017 27px 28px, transparent 30px 41px), radial-gradient(ellipse at 63% 56%, #0b4859 2%, #0a2838 43%, #091a27 85%); }
.upcoming-mark { display: grid; position: absolute; inset: 0; place-items: center; }
.upcoming-mark img { opacity: .28; filter: drop-shadow(0 0 20px #51e4f378); }
.trailer-copy { padding: 17px 18px 19px; display: flex; gap: 14px; align-items: start; justify-content: space-between; flex: 1; }
.trailer-copy h3, .game-card h3 { font-size: clamp(1.03rem, 2.1vw, 1.28rem); line-height: 1.2; }
.trailer-copy p, .game-card p, .game-members { color: var(--muted); font-size: .9375rem; margin-top: 6px; line-height: 1.5; }
.card-link { flex: none; }
.carousel-hint { color: var(--muted); font-size: .875rem; display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.carousel-hint span { color: var(--accent); font-size: 1.05rem; }
.load-message { color: var(--muted); font-size: .9375rem; padding-top: 9px; }

.game-access { background: #091925; border-block: 1px solid #1a3444; padding-block: 50px 62px; }
.games-empty { border: 1px solid var(--line); border-radius: 10px; padding: 22px 24px; background: var(--panel); color: var(--muted); }
.game-grid:not(:empty) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr)); gap: 16px; }
.game-card { display: grid; grid-template-rows: auto 1fr auto; align-items: start; gap: 12px; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.game-meta { color: var(--accent); font-size: .875rem; font-weight: 700; }
.game-icon { width: 40px; height: 40px; display: grid; place-items: center; background: #103344; color: var(--accent); border-radius: 8px; }
.game-members { padding-left: 1.2rem; }
.game-card .game-availability, .access-page .game-availability, .bundle-game .game-availability { color: var(--accent); font-size: .875rem; font-weight: 700; }
.game-card .game-availability { margin-top: 12px; }
.access-page { min-height: 65vh; padding-block: 76px; }
.access-page > p:not(.eyebrow) { color: var(--muted); margin-block: 16px 23px; }

.bundle-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bundle-prices li { display: grid; gap: 3px; padding: 10px 11px; border: 1px solid #316071; border-radius: 8px; background: #0a2431; }
.bundle-prices strong { color: var(--ink); font-size: 1.16rem; line-height: 1.1; }
.bundle-prices span { color: var(--muted); font-size: .875rem; line-height: 1.24; }

.bundle-page { min-height: 65vh; padding-block: clamp(26px, 5vw, 58px) clamp(52px, 7vw, 92px); }
.bundle-back { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 3px; color: var(--muted); font-weight: 700; text-decoration: underline; text-underline-offset: .27em; }
.bundle-back:hover { color: var(--accent); }
.bundle-hero {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 360px;
  padding: clamp(24px, 5vw, 58px);
  border: 1px solid #275465;
  border-radius: 16px;
  background: linear-gradient(90deg, #05121c 0%, #05121cde 38%, #05121c12 83%), url("/assets/shark-tank-controller.webp") right 46% / cover, #071b27;
}
.bundle-hero h1 { max-width: 19ch; margin-top: 9px; color: var(--ink); font: 800 clamp(3.3rem, 7.4vw, 6.8rem)/.92 var(--heading); text-transform: uppercase; }
.bundle-hero .bundle-description { max-width: 42ch; margin-top: 16px; color: #dbeaf0; }
.bundle-hero .bundle-prices { width: min(100%, 350px); margin-top: 22px; }
.bundle-hero .bundle-prices li { padding: 13px 15px; background: #0a2431eb; }
.bundle-hero .bundle-prices strong { font-size: 1.5rem; }
.bundle-hero > .button { margin-top: 14px; }
.bundle-collection { margin-top: clamp(32px, 5vw, 58px); }
.bundle-collection h2 { margin-bottom: 18px; font: 800 clamp(2.4rem, 4.6vw, 4rem)/.95 var(--heading); text-transform: uppercase; }
.bundle-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: clamp(12px, 2vw, 20px); }
.bundle-game { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.bundle-game-art { position: relative; isolation: isolate; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #0b2838; }
.bundle-game-art::before { content: ""; position: absolute; inset: 0; background: url("/assets/shark-tank-controller.webp") right 40% / 151% auto; }
.bundle-game-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #06131e8c, transparent 65%); }
.bundle-game:nth-child(4n + 2) .bundle-game-art::before { filter: hue-rotate(67deg); background-position: 92% 51%; }
.bundle-game:nth-child(4n + 3) .bundle-game-art::before { filter: hue-rotate(280deg); background-position: 82% 44%; }
.bundle-game:nth-child(4n) .bundle-game-art::before { filter: hue-rotate(125deg); background-position: 86% 53%; }
.bundle-game-content { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 150px; padding: 17px; overflow-wrap: anywhere; }
.bundle-game h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.2; }
.bundle-game .button { min-height: 44px; margin-top: auto; }

.site-footer { background: #061019; color: var(--muted); }
.footer-inner { min-height: 94px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer .wordmark { color: var(--ink); font-size: 1.18rem; }
.footer-inner p, .footer-admin { font-size: .875rem; }

.player-dialog { width: min(90vw, 920px); max-height: 90dvh; padding: 18px; border: 1px solid #3f6271; border-radius: 12px; background: #0a1b27; color: var(--ink); }
.player-dialog::backdrop { background: #000b; }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.player-top h2 { font-size: 1.25rem; line-height: 1.25; }
.player-top .carousel-step { font-size: 26px; }
.player-dialog video { display: block; width: 100%; max-height: 66dvh; aspect-ratio: 16/9; background: #020a10; }
.player-dialog p { margin-top: 9px; font-size: .95rem; color: var(--muted); }

@media (max-width: 780px) {
  .trailer-track { grid-auto-columns: 78%; }
  .hero { min-height: 550px; background-position: center, center, 65% 50%; }
  .trailer-copy { flex-direction: column; gap: 10px; }
}

@media (max-width: 570px) {
  .header-inner { min-height: 64px; grid-template-columns: 1fr auto; gap: 12px; }
  .site-nav { display: none; }
  .wordmark { font-size: 1.2rem; }
  .footer-inner { flex-wrap: wrap; padding-block: 17px; }
  .footer-inner p { display: none; }
  .hero { align-items: end; min-height: 570px; background-image: linear-gradient(0deg, var(--bg) 4%, #07131ef0 24%, #05132173 57%, #05132124 76%), url("/assets/shark-tank-poster.webp"); background-size: cover, auto 74%; background-repeat: no-repeat; background-position: center, 75% top; }
  .hero-inner { padding-top: 215px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(4.2rem, 16.5vw, 5.8rem); }
  .hero-actions { gap: 8px; margin-top: 21px; }
  .hero-actions .button { font-size: .875rem; padding-inline: 12px; }
  .section { padding-block: 34px 42px; }
  .section-heading { gap: 8px; align-items: start; }
  .section-heading h2 { font-size: clamp(2rem, 9vw, 3.8rem); }
  .carousel-actions { flex-wrap: wrap; justify-content: end; gap: 5px; padding-top: 4px; }
  .carousel-position { display: none; }
  .carousel-step { width: 39px; height: 39px; }
  .trailer-track { grid-auto-columns: 86%; gap: 12px; }
  .trailer-copy { padding: 13px; }
  .media-label, .media-duration { padding: 4px 6px; font-size: .75rem; }
  .footer-admin { white-space: nowrap; }
  .bundle-hero { min-height: 0; background-position: center, 67% center; background-image: linear-gradient(90deg, #05121cf8 0%, #05121cba 75%, #05121c85), url("/assets/shark-tank-controller.webp"); }
  .bundle-hero h1 { font-size: clamp(2.65rem, 11.5vw, 4.5rem); }
}

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