/* Legacy: Bowl Legends! website. Bright on purpose: gold, white and the game's navy, with the game's own bowl
   colors, and dark only in the footer. It stays bright when the phone is in dark mode. No web fonts and nothing
   loaded from anyone else, so the site tracks nobody, like the game. */

:root {
  color-scheme: light;
  --ink: #13213d;
  --muted: #4d5872;
  --line: #e4e8f0;
  --paper: #ffffff;
  --sky: #eef3fa;
  --cream: #fff7e0;
  --navy: #0f2140;
  --navy-2: #1c3563;
  /* The gold of the game's Play button, light to deep. */
  --gold: #f8d164;
  --gold-mid: #ecbc52;
  --gold-deep: #d8a03b;
  --gold-dark: #a8741f;
  --link: #1d56b3;
  /* The tiles on the game's first screen: Bowl Game, Playoff, Career. */
  --bronze: #94703b;
  --steel: #447596;
  --teal: #417d75;
  --blue: #2b5fb8;
  --mud: #7a5a3a;
  --radius: 20px;
  --wide: 1120px;
  --head: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --lift: 0 1px 2px rgba(15, 33, 64, 0.06), 0 12px 32px rgba(15, 33, 64, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
:focus-visible { outline: 3px solid #287ee4; outline-offset: 4px; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(calc(-100% - 20px));
  padding: 10px 16px;
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 700;
}
.skip-link:focus { transform: none; }

/* A column, so the footer sits at the bottom of the screen even on a short page. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { flex: 1 0 auto; }

a { color: var(--link); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.wrap { width: min(var(--wide), 100% - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.4em;
  color: var(--navy);
}
h1 { font-size: clamp(2.8rem, 7.5vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.8vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; }

/* A small label above a heading: a gold tag, like a team's patch. */
.kicker {
  display: inline-block;
  font-family: var(--head);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 5px 12px 4px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.muted { color: var(--muted); }

/* The bar at the top. */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--head); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand:hover { text-decoration: none; }
/* The icon is the artist's picture as it is. Only its corners are rounded here, the way the phone rounds it. */
.brand img { width: 38px; height: 38px; border-radius: 19%; box-shadow: 0 2px 6px rgba(15, 33, 64, 0.25); }
.brand .name { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.brand .name small { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em; color: var(--bronze); }
/* The tabs: pills in the top bar on a computer, an app's tab bar at the bottom on a phone. */
.tabs { display: flex; gap: 4px; }
.tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
}
.tabs a:hover { background: var(--cream); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--gold); color: var(--navy); }
.tabs svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs svg .solid { fill: currentColor; stroke: none; }

/* Buttons: round ends, like the game's. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 0;
}
.button.gold { background: linear-gradient(180deg, #ffe08a, var(--gold) 45%, var(--gold-deep)); color: var(--navy); box-shadow: 0 6px 0 var(--gold-dark), 0 14px 30px rgba(15, 33, 64, 0.2); }
.button.navy { background: linear-gradient(180deg, var(--navy-2), var(--navy)); color: #fff; box-shadow: 0 6px 0 #071228, 0 14px 30px rgba(15, 33, 64, 0.25); }
.button.white { background: #fff; color: var(--navy); box-shadow: 0 6px 0 rgba(15, 33, 64, 0.18), 0 14px 30px rgba(15, 33, 64, 0.16); }
.button:hover { text-decoration: none; filter: brightness(1.06); }

/* The opening: a gold field with white yard lines. */
.hero {
  position: relative;
  padding: 60px 0 0;
  color: var(--navy);
  background:
    radial-gradient(900px 380px at 50% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 4px, transparent 4px 240px),
    linear-gradient(180deg, #ffe596, var(--gold) 45%, var(--gold-mid));
  background-position: 0 0, 118px 0, 0 0;
}
.hero-words { text-align: center; max-width: 880px; }
.hero h1 { color: var(--navy); font-size: clamp(3rem, 9vw, 6.4rem); line-height: 0.95; margin-bottom: 0.3em; }
.hero h1 .pre { display: block; font-size: 0.42em; letter-spacing: 0.32em; color: var(--navy-2); margin-bottom: 0.14em; padding-left: 0.32em; }
/* "Legends!" in gold on a navy plate, like the game's title. */
.hero h1 em { display: inline-block; font-style: normal; color: var(--gold); background: var(--navy); line-height: 1; padding: 0.08em 0.18em 0.04em; border-radius: 0.18em; box-shadow: 0 6px 0 rgba(15, 33, 64, 0.25); }
.hero p.lead { font-size: 1.24rem; margin: 0 auto 28px; max-width: 640px; color: var(--navy); font-weight: 500; }
.hero .kicker { background: var(--navy); color: var(--gold); }
.hero .buttons { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.hero .release-status { margin: 22px 0 0; font-size: 0.95rem; font-weight: 700; color: var(--navy); }

/* The game's first screen, standing on the hero's bottom edge. */
.hero-shot { position: relative; z-index: 2; width: min(920px, 100% - 32px); margin: 40px auto -130px; }

/* A phone on its side, the way the game is played. */
.phone {
  position: relative;
  border-radius: 34px;
  padding: 11px;
  background: linear-gradient(145deg, #3a4052, #12151e);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 30px 70px rgba(15, 33, 64, 0.35), 0 8px 20px rgba(15, 33, 64, 0.25);
}
.phone img { border-radius: 24px; width: 100%; height: auto; aspect-ratio: 1688 / 780; object-fit: cover; }

section { padding: 72px 0; }
.hero + section { padding-top: 178px; }
.section-head { max-width: 720px; margin-bottom: 30px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p:not(.kicker) { color: var(--muted); margin: 0; font-size: 1.08rem; }
section.tight { padding-bottom: 28px; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--lift);
}
.card p { margin: 0; color: var(--muted); }

/* The three ways to play, each in its tile color from the game. */
.mode { padding: 0; overflow: hidden; border: 0; }
.mode .band { background: var(--c); color: #fff; padding: 16px 24px 14px; font-family: var(--head); font-weight: 800; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.mode .body { padding: 20px 24px 26px; }
.c-bronze { --c: var(--bronze); }
.c-steel { --c: var(--steel); }
.c-teal { --c: var(--teal); }
.c-blue { --c: var(--blue); }
.c-mud { --c: var(--mud); }
.c-navy { --c: var(--navy); }
.c-gold { --c: var(--gold-deep); }

/* The bowls, as steps up. */
.climb { background: var(--sky); }
.ladder { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: end; }
.rung {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 14px;
  border-radius: 16px 16px 8px 8px;
  background: var(--c);
  color: #fff;
  box-shadow: var(--lift);
}
.rung b { display: block; font-family: var(--head); font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; }
.rung span { font-size: 0.9rem; opacity: 0.95; margin-top: 4px; }
.rung:nth-child(1) { height: 110px; }
.rung:nth-child(2) { height: 145px; }
.rung:nth-child(3) { height: 180px; }
.rung:nth-child(4) { height: 215px; }
.rung:nth-child(5) { height: 260px; }
/* The top step: the Legends Bowl, in gold. */
.rung.legends { background: linear-gradient(180deg, #ffe08a, var(--gold) 45%, var(--gold-deep)); color: var(--navy); box-shadow: 0 6px 0 var(--gold-dark), var(--lift); }

/* What is in it: white cards, each with a strip of color. */
.feature { border-top: 6px solid var(--c); }
.feature h3 { margin-bottom: 0.3em; }
.features .card { width: min(300px, 78vw); }

/* Coming next, on cream. */
.next .card { max-width: 760px; background: var(--cream); border-color: #f3e2b0; }
.next h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.next .card p:not(.kicker) { color: var(--ink); }

/* A season in pictures: each card a bowl color, with yard lines, a headline and the screen. */
.posters .poster { width: min(340px, 82vw); }
.poster {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 20px 20px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 255, 255, 0.26), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 56px),
    linear-gradient(165deg, var(--c), color-mix(in srgb, var(--c) 78%, #000));
  box-shadow: var(--lift);
  overflow: hidden;
}
.poster h3 { color: #fff; font-size: 2rem; text-transform: uppercase; margin: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); }
.poster p { margin: 0 0 16px; color: rgba(255, 255, 255, 0.95); font-size: 1rem; line-height: 1.4; }
.poster .phone { margin-top: auto; padding: 7px; border-radius: 20px; transform: rotate(-1.5deg); }
.poster:nth-child(even) .phone { transform: rotate(1.5deg); }
.poster .phone img { border-radius: 14px; }
.poster.legends { background:
    radial-gradient(circle at 15% 0%, rgba(248, 209, 100, 0.35), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 56px),
    linear-gradient(165deg, var(--navy-2), var(--navy)); }
.poster.legends h3 { color: var(--gold); }

/* Screens, on a light band, in rows by what they show. */
.shots { background: var(--sky); }
.row + .row { margin-top: 52px; }
.row h2 { display: inline-block; font-size: 1.7rem; margin: 0 0 4px; }
/* A capsule under each row's name, like the game's tab underline. */
.row h2::after { content: ""; display: block; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--c); }
.row > p { margin: 6px 0 18px; color: var(--muted); max-width: 640px; }
.strip figure { margin: 0; width: min(400px, 80vw); }
.strip figcaption { margin-top: 10px; color: var(--navy); font-size: 0.95rem; font-weight: 600; line-height: 1.35; }
.strip .phone { padding: 6px; border-radius: 18px; }
.strip .phone img { border-radius: 13px; }

/* The ten app icons, each the artist's picture as it is, with the phone's round corners. */
.icons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px 18px; max-width: 860px; margin-inline: auto; }
.icons figure { margin: 0; text-align: center; }
.icons img { width: min(128px, 100%); height: auto; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 19%; box-shadow: 0 2px 4px rgba(15, 33, 64, 0.14), 0 12px 24px rgba(15, 33, 64, 0.18); }
.icons figcaption { font-weight: 700; color: var(--navy); font-size: 0.98rem; line-height: 1.3; }
.icons-note { text-align: center; margin: 30px 0 0; color: var(--muted); }

/* Rows that slide sideways, edge to edge, like the App Store. Each card snaps into place. */
.swipe {
  --edge: max(16px, calc((100vw - var(--wide)) / 2));
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  margin-inline: calc(50% - 50vw);
  padding: 8px var(--edge) 18px;
  scrollbar-width: none;
}
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { flex: 0 0 auto; scroll-snap-align: start; }
.swipe-hint { margin: 2px 0 0; font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.swipe-hint span { display: inline-block; margin-left: 4px; }
.phone-only { display: none; }

/* Pages of words: privacy and support. Each opens with a short gold field. */
.page-head {
  color: var(--navy);
  padding: 48px 0 40px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 4px, transparent 4px 240px),
    linear-gradient(180deg, #ffe596, var(--gold) 55%, var(--gold-mid));
  background-position: 118px 0, 0 0;
}
.page-head h1 { color: var(--navy); font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0; }
.page-head .kicker { background: var(--navy); color: var(--gold); }
.page-head + section { padding-top: 56px; }
.page { padding: 0 0 72px; }
.page .page-head { margin-bottom: 36px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.6rem; margin-top: 1.8em; text-transform: none; }
.page p, .page li { color: #2c3550; }
.page .updated { color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--steel); border-radius: 14px; padding: 16px 20px; margin: 12px 0; box-shadow: var(--lift); }
.faq details:nth-child(3n+2) { border-left-color: var(--gold-deep); }
.faq details:nth-child(3n) { border-left-color: var(--teal); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details p { margin: 10px 0 0; }

/* The only dark part of the site. */
footer { background: var(--navy); color: #c9d0e3; padding: 34px 0 48px; font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: #fff; }
footer a:hover { color: var(--gold); }

@media (max-width: 899px) {
  .ladder { gap: 8px; }
  .rung { padding: 14px 10px; }
  .rung b { font-size: 1.1rem; }
  .rung span { font-size: 0.82rem; }
}

/* On a phone the tabs sit at the bottom, where a thumb reaches them, like an app. */
@media (max-width: 720px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  .top { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .top .wrap { height: 58px; }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    gap: 0;
    justify-content: space-around;
    padding: 6px max(6px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabs a { flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 0 2px; border-radius: 14px; font-size: 0.72rem; color: var(--muted); }
  .tabs a:hover { background: none; }
  .tabs svg { width: 24px; height: 24px; box-sizing: content-box; padding: 3px 14px; border-radius: 999px; }
  /* The open tab: navy words under a gold capsule. */
  .tabs a[aria-current="page"] { background: none; color: var(--navy); }
  .tabs a[aria-current="page"] svg { background: var(--gold); stroke-width: 2.3; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 40px; }
  .hero-shot { margin: 30px auto -56px; }
  .hero + section { padding-top: 96px; }
  .phone { padding: 7px; border-radius: 22px; }
  .phone img { border-radius: 15px; }
  .ladder { grid-template-columns: 1fr; gap: 8px; }
  .rung, .rung:nth-child(n) { height: auto; border-radius: 14px; padding: 12px 16px; }
  .rung:nth-child(1) { margin-right: 40%; }
  .rung:nth-child(2) { margin-right: 30%; }
  .rung:nth-child(3) { margin-right: 20%; }
  .rung:nth-child(4) { margin-right: 10%; }
  .rung b { font-size: 1.2rem; }
  .rung span { font-size: 0.88rem; margin-top: 2px; }
  /* The three ways to play, and the icons, slide sideways on a phone too. */
  .swipe-small { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 6px 16px 18px; scrollbar-width: none; }
  .swipe-small::-webkit-scrollbar { display: none; }
  .swipe-small > * { flex: 0 0 82%; scroll-snap-align: start; }
  .icons.swipe-small { max-width: none; gap: 16px; }
  .icons.swipe-small > * { flex-basis: 28%; }
  .swipe { gap: 14px; }
  .phone-only { display: block; }
  .row > p { display: none; }
  .row h2 { margin-bottom: 12px; }
  .row + .row { margin-top: 34px; }
  .page-head { padding: 32px 0 28px; }
  .page-head + section { padding-top: 40px; }
  .poster h3 { font-size: 1.7rem; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
