/* Reed Arcade, "Center Court": the Brackets & Banners arena at night.
   Navy ground, ivory felt, gold trim, the store art carries the colour. */
:root {
  --ground: #0A1222;
  --felt: #1B2B4B;
  --ivory: #F1E7D0;
  --ivory-dim: #C9C0AE;
  --muted: #A6A08F;
  --gold: #E0AC45;
  --gold-bright: #F5C86A;
  --gold-deep: #C9962F;
  --line: rgba(241, 231, 208, 0.14);

  --display: 'Graduate', Georgia, serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 3px solid var(--ivory); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 10;
  padding: 10px 14px; border-radius: 6px;
  background: var(--ivory); color: var(--ground);
  font-family: var(--label); font-weight: 700; letter-spacing: 0.08em; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.label {
  margin: 0;
  font-family: var(--label); font-weight: 600; font-size: 16px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
h2 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.125rem);
  line-height: 1.2; text-wrap: balance;
}

/* ---- Top bar ---- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px max(28px, env(safe-area-inset-right, 0px)) 20px max(28px, env(safe-area-inset-left, 0px));
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ivory); text-decoration: none;
  font-family: var(--label); font-weight: 700; font-size: 19px; letter-spacing: 0.18em;
}
.brand:hover { color: var(--ivory); }
.top nav { display: flex; align-items: center; gap: 28px; }
.top nav a {
  font-family: var(--label); font-weight: 600; font-size: 16px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ivory); text-decoration: none;
}
.top nav a:hover { color: var(--gold-bright); }
.top nav .pill {
  padding: 9px 16px; border: 1.5px solid var(--gold); border-radius: 6px;
  color: var(--gold); font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.top nav .pill:hover { background: var(--gold); color: var(--ground); }

/* ---- Hero ----
   The art is as wide as the screen allows while the wishlist button still
   fits in the first screen: its width follows the screen's height. */
.hero {
  position: relative;
  container-type: inline-size;
  --art-w: min(100cqw, calc((100svh - 170px) * 1.745), 1600px);
}
.hero-backdrop {
  position: absolute; inset: 0 0 auto;
  height: calc(var(--art-w) / 1.745);
  background: url("assets/bb-arena-soft.jpg") center 45% / cover no-repeat;
  opacity: 0.5;
}
.hero-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10, 18, 34, 0.5), rgba(10, 18, 34, 0.15) 30%, rgba(10, 18, 34, 0.6) 72%, var(--ground));
}
.hero-art {
  position: relative;
  width: var(--art-w);
  aspect-ratio: 1232 / 706;
  margin: 0 auto;
}
/* The art fades into the arena behind it on both sides and at the floor,
   so no edge of the picture shows on any screen shape. */
.hero-art img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, #000 58%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, #000 58%, transparent 97%);
  mask-composite: intersect;
}
.pitch {
  position: relative; z-index: 1;
  margin-top: calc(var(--art-w) / 1.745 * -0.13);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  text-align: center;
}
.pitch h1 {
  margin: 0; max-width: 22em;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.25rem);
  line-height: 1.15; letter-spacing: 0.01em; text-wrap: balance;
  text-shadow: 0 2px 18px rgba(10, 18, 34, 0.8);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 14px 28px; border-radius: 8px;
  font-family: var(--label); font-weight: 700; font-size: 22px;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-wish {
  background: var(--gold); color: var(--ground);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 160, 0.6), 0 12px 40px rgba(224, 172, 69, 0.32);
}
.btn-wish:hover {
  background: var(--gold-bright); color: var(--ground);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 190, 0.7), 0 14px 46px rgba(224, 172, 69, 0.45);
}
.btn-ghost {
  border: 1.5px solid rgba(241, 231, 208, 0.45); color: var(--ivory);
  font-weight: 600; font-size: 20px;
}
.btn-ghost:hover { border-color: var(--ivory); color: var(--ivory); }
.pitch .about { margin: 12px 0 0; max-width: 36em; font-size: 19px; color: var(--ivory-dim); }
.pitch .platforms { margin: 0; font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }

/* ---- Sections ---- */
.block { padding-top: clamp(80px, 9vw, 128px); }
.block-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px 40px; margin-bottom: 36px;
}
.block-head p { margin: 0; font-size: 17px; color: var(--ivory-dim); }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot a { display: block; border-radius: 6px; overflow: hidden; }
.shot img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid rgba(241, 231, 208, 0.16); border-radius: 6px;
  transition: transform 0.3s ease, border-color 0.2s ease;
}
.shot a:hover img { transform: scale(1.03); border-color: rgba(224, 172, 69, 0.6); }
.shot figcaption { display: flex; flex-direction: column; gap: 4px; }
.shot strong {
  font-family: var(--label); font-weight: 700; font-size: 21px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.shot figcaption span { font-size: 17px; line-height: 1.55; color: var(--ivory-dim); }

/* ---- Wishlist banner: a felt banner cut like the logo's ---- */
.banner {
  --point: 76%;
  padding: 6px;
  background: var(--gold-deep);
  clip-path: polygon(0 0, 100% 0, 100% var(--point), 50% 100%, 0 var(--point));
}
.banner-felt {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 52px 24px 120px;
  background: radial-gradient(ellipse at 50% 15%, #22365C 0%, var(--felt) 55%, #15223D 100%);
  clip-path: polygon(0 0, 100% 0, 100% var(--point), 50% 100%, 0 var(--point));
  text-align: center;
}
.banner-felt::before {
  content: ""; position: absolute; inset: 0; opacity: 0.07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.banner-felt .stitch {
  position: absolute; top: 12px; left: 12px;
  width: calc(100% - 24px); height: calc(100% - 24px);
  pointer-events: none;
}
.banner-felt > :not(.stitch) { position: relative; }
.banner-felt p { margin: 0; color: var(--ivory-dim); }

/* ---- Small games: pennants on a rod ---- */
.games {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px 72px;
  padding-bottom: clamp(80px, 9vw, 120px);
}
.games-copy { flex: 1 1 360px; min-width: 0; max-width: 480px; display: flex; flex-direction: column; gap: 16px; }
.games-copy > p { margin: 0; color: var(--ivory-dim); }
.game {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line);
}
.game .where {
  margin: 0;
  font-family: var(--label); font-weight: 600; font-size: 15px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.game h3 { margin: 0; font-family: var(--label); font-weight: 700; font-size: 30px; line-height: 1.1; }
.game p { margin: 0; font-size: 17px; color: var(--ivory-dim); }
.game .when {
  font-family: var(--label); font-weight: 700; font-size: 19px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold);
}
.text-link {
  align-self: flex-start;
  font-family: var(--label); font-weight: 700; font-size: 19px;
  letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 5px;
}

.rafter { flex: 1 1 520px; min-width: 0; padding-top: 8px; }
.rod {
  position: relative; height: 12px; margin: 0 14px; border-radius: 6px;
  background: linear-gradient(#F0C766, #A97A22);
}
.rod::before, .rod::after {
  content: ""; position: absolute; top: -5px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE2A0, #B8862B 70%);
}
.rod::before { left: -14px; }
.rod::after { right: -14px; }
.pennants { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 48px; }
.pennant { margin: 0; width: 260px; display: flex; flex-direction: column; align-items: center; }
.strings { width: 200px; height: 30px; border-inline: 1.5px solid rgba(241, 231, 208, 0.5); }
.strings.dashed { border-inline-style: dashed; border-color: rgba(241, 231, 208, 0.35); }
.pennant > a { display: block; border-radius: 4px; }
.pennant-cloth {
  width: 260px; padding: 6px 6px 8px;
  background: #D7A443;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
  transform-origin: top center;
  transition: transform 0.5s ease;
}
.pennant > a:hover .pennant-cloth { transform: rotate(-1.5deg); }
.pennant-cloth img {
  width: 100%; height: 340px; object-fit: cover; object-position: 50% 12%;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 50% 100%, 0 84%);
}
.pennant figcaption {
  margin-top: 14px; text-align: center;
  font-family: var(--label); font-weight: 600; font-size: 15px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim);
}
.pennant-next { position: relative; width: 260px; height: 354px; }
.pennant-next p {
  position: absolute; left: 0; right: 0; top: 196px; margin: 0; text-align: center;
  font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

/* ---- Footer ---- */
.foot { border-top: 1px solid rgba(241, 231, 208, 0.12); }
.foot .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 28px; padding-bottom: 36px;
}
.foot small { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.foot nav a { color: var(--ivory-dim); }

/* ---- Phones ---- */
@media (max-width: 640px) {
  .top { position: relative; padding: 14px 16px; }
  .top nav .nav-link { display: none; }
  .brand { font-size: 17px; }
  .cta-row { width: 100%; max-width: 420px; flex-direction: column; }
  .btn { width: 100%; }
  .pitch .about { font-size: 17px; }
  .banner { --point: 84%; }
  .banner-felt { padding: 44px 20px 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .shot img, .pennant-cloth, .top nav .pill { transition: none; }
  .btn:hover, .shot a:hover img, .pennant > a:hover .pennant-cloth { transform: none; }
}
