/* Padelino "Liquid Court" at night: colours from Shared/Theme/SmashTheme.swift. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/HankenGrotesk-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --night: #060A14;
  --navy-deep: #0A2138;
  --navy: #123A5E;
  --navy-low: #0D2A46;
  --chartreuse: #CFE94D;
  --terracotta: #E0632C;
  --terracotta-text: #F0804F; /* terracotta lifted to 4.5:1 on navy for type */
  --ink: #FFFFFF;
  --muted: #9DB9D1;
  --line: rgba(255, 255, 255, .08);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));
  --glass-edge: rgba(255, 255, 255, .1);
  /* Layered depth: a tight contact shadow, a soft mid shadow and a wide ambient one, plus a hairline of light on the top edge. */
  --lift: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .22), 0 10px 24px -10px rgba(0, 0, 0, .4), 0 40px 80px -32px rgba(0, 0, 0, .6);
  --lift-control: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(0, 0, 0, .25), 0 8px 18px -8px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: clip; scrollbar-color: var(--navy) var(--night); }
body {
  margin: 0;
  font: 400 18px/1.55 "Hanken Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--night) 0, var(--navy-deep) 900px, var(--navy-low) 100%) var(--night);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break the sticky bar */
}
::selection { background: var(--chartreuse); color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--chartreuse); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; color: var(--chartreuse); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 9; background: var(--chartreuse); color: var(--navy-deep); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 16px; }

/* Nav */
/* The bar stays on top while scrolling; its content lines up with the 1440px page column. */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 20px max(var(--gutter), calc((100% - 1440px) / 2 + var(--gutter))); background: rgba(6, 10, 20, .72); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border-bottom: 1px solid var(--line); }
/* Where supported, the bar starts clear over the hero and turns to glass once the page scrolls. */
@supports (animation-timeline: scroll()) {
  .nav { animation: bar linear both; animation-timeline: scroll(); animation-range: 0 120px; }
  @keyframes bar { from { background: rgba(6, 10, 20, 0); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } }
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 22px; letter-spacing: .01em; text-decoration: none; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; gap: 32px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 16px; transition: color .2s; }
.nav nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--glass-edge); border-radius: 999px; padding: 3px; }
.lang button { font: 700 13px/1 "Hanken Grotesk", system-ui, sans-serif; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }
.lang [aria-pressed="true"] { background: var(--ink); color: var(--navy-deep); }

/* Shared */
main > section { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
h2 { font-weight: 900; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -.035em; text-transform: uppercase; max-width: 16ch; }
h3 { font-weight: 900; font-size: clamp(26px, 3vw, 36px); line-height: 1.05; letter-spacing: -.02em; text-transform: uppercase; }
/* The two store buttons share one width: a grid whose columns are as wide as the widest button. */
.cta { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; align-items: stretch; max-width: 100%; }
/* Badge-style buttons: a small lead line above the store name, as on the official store badges. */
.store { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: var(--chartreuse); color: var(--navy-deep); border: 1px solid transparent; border-radius: 999px; padding: 15px 36px 15px 30px; text-decoration: none; box-shadow: var(--lift-control); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.store .label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store small { font-size: 13px; font-weight: 600; opacity: .8; }
.store b { font-size: 23px; font-weight: 900; letter-spacing: -.01em; white-space: nowrap; }
.store svg { flex: none; width: 40px; height: 40px; fill: currentColor; }
.store.play svg { width: 46px; height: 46px; margin: 0 -3px; } /* the Android head is a wide, short glyph, so it needs more room to read as large as the Apple logo */
.store:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, .25), 0 16px 32px -12px rgba(0, 0, 0, .6); }
.store:active { transform: translateY(0); }
/* Google Play sits beside the App Store as a glass capsule; the long labels shorten on phones so both fit on one row. */
.store.play { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-edge); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--lift); }
.meta { margin-top: 24px; font-size: 14px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(calc(100svh - 104px), 820px); padding-block: 32px 72px !important; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -16%; top: -10%; width: 40vw; max-width: 560px; aspect-ratio: 1; border-radius: 50%; background: var(--chartreuse); opacity: .16; filter: blur(120px); mix-blend-mode: screen; pointer-events: none; }
h1 { font-weight: 900; font-size: clamp(56px, 6.6vw, 96px); line-height: .92; letter-spacing: -.035em; text-transform: uppercase; }
h1 span, h1 em { display: block; }
.lede { margin: 28px 0 40px; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 32ch; }

/* Scoreboard: the signature interaction */
.board { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 36px; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 44px); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--lift); }
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 30px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pill { background: rgba(224, 99, 44, .18); color: #FFB08A; border-radius: 999px; padding: 6px 12px; }
.pill[hidden] { display: none; }
.board[data-done="true"] .board-status { color: var(--chartreuse); }
.score { width: 100%; margin-top: 18px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.score thead th { font-weight: 700; font-size: 12px; letter-spacing: .06em; white-space: nowrap; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: 6px; }
.score thead th:last-child { text-align: right; }
.score tbody tr + tr { border-top: 1px solid var(--line); }
.score tbody th { text-align: left; font-weight: 900; font-size: clamp(18px, 2vw, 26px); text-transform: uppercase; white-space: nowrap; }
.score tbody th i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 12px; vertical-align: 1px; }
.score td { text-align: center; font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); color: var(--muted); width: 13%; }
.score .pts { text-align: right; font-weight: 900; font-size: clamp(64px, 7vw, 104px); line-height: 1.1; width: 28%; }
.a i { background: var(--chartreuse); } .a .pts { color: var(--chartreuse); }
.b i { background: var(--terracotta); } .b .pts { color: var(--terracotta); }
.bump { animation: bump .55s var(--ease); }
@keyframes bump { from { transform: translateY(18%); filter: blur(6px); opacity: .3; } }
.taps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.tap { font: 900 clamp(15px, 1.5vw, 20px)/1 "Hanken Grotesk", system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; border: 0; border-radius: 999px; padding: 22px 12px; cursor: pointer; box-shadow: var(--lift-control); transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .2s; }
.tap:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 4px rgba(0, 0, 0, .25), 0 14px 26px -10px rgba(0, 0, 0, .6); }
.tap:active { transform: scale(.97); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .3); }
.tap:disabled { opacity: .35; cursor: default; }
.ta { background: var(--chartreuse); color: var(--navy-deep); }
.tb { background: var(--terracotta); color: var(--night); }
.hint { margin-top: 20px; text-align: center; font-size: 15px; color: var(--muted); }
.link { font: inherit; color: var(--ink); background: none; border: 0; padding: 4px; margin-left: 6px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link:disabled { opacity: .4; cursor: default; }

/* How it works */
.how { padding-block: clamp(80px, 12vw, 160px) !important; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { padding: 24px 0; }
.steps li + li { border-top: 1px solid var(--line); }
.steps h3 { font-size: 22px; color: var(--chartreuse); }
.steps p { margin-top: 14px; color: var(--muted); max-width: 34ch; }

/* Features */
.features { display: grid; gap: clamp(96px, 12vw, 160px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { margin-top: 20px; color: var(--muted); font-size: 19px; max-width: 40ch; }
.feature-copy .small { font-size: 16px; }

/* Device renders keep their soft shadow inside the image, so they show at their natural size. */
.shot { margin: 0; justify-self: center; max-width: 100%; }
.shot img { display: block; max-width: 100%; height: auto; }

/* Scoring explainer */
.scoring { padding-block: clamp(120px, 14vw, 200px) 0 !important; }
.section-lede { margin-top: 24px; font-size: 20px; color: var(--muted); max-width: 46ch; }
.ladder { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); font-variant-numeric: tabular-nums; }
.ladder li { position: relative; padding-top: 28px; background: linear-gradient(var(--rail), var(--rail)) top / 100% 3px no-repeat; --rail: var(--navy); }
.ladder li::before { content: ""; position: absolute; top: -10px; left: 0; width: 17px; height: 17px; border-radius: 50%; background: var(--navy); }
.ladder b { display: block; font-weight: 900; font-size: clamp(48px, 7vw, 104px); line-height: 1; letter-spacing: -.04em; }
.ladder span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; padding-right: 12px; }
.ladder .win { --rail: var(--chartreuse); }
.ladder .win::before { background: var(--chartreuse); }
.ladder .win b { color: var(--chartreuse); text-transform: uppercase; }
.rules { margin: 80px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rules div { padding: 28px 28px 0 0; }
.rules div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.rules dt { font-weight: 900; font-size: 20px; text-transform: uppercase; }
.rules div:first-child dt { color: var(--terracotta-text); }
.rules dd { margin: 12px 0 0; color: var(--muted); font-size: 16px; }

/* How: the heading runs the full measure instead of leaving an empty right half. */
.how h2 { max-width: 22ch; }

/* Privacy */
.privacy { padding-block: clamp(96px, 10vw, 140px) !important; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.facts { list-style: none; margin: 0; padding: 12px 32px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 36px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--lift); }
.facts li { display: grid; gap: 4px; padding: 22px 0; }
.facts li + li { border-top: 1px solid var(--line); }
.facts b { font-weight: 900; font-size: 22px; text-transform: uppercase; color: var(--chartreuse); }
.facts span, .facts a { color: var(--muted); font-size: 16px; }
.facts a { justify-self: start; }
.facts a:hover { color: var(--ink); }
.privacy h2 { max-width: 18ch; }
.privacy p { margin-top: 28px; font-size: 20px; color: var(--muted); max-width: 52ch; }

/* Close */
.close { padding-block: clamp(80px, 10vw, 140px) clamp(96px, 12vw, 160px) !important; border-top: 1px solid var(--line); }
.close h2 { max-width: none; margin-bottom: 40px; }
.close h2 span, .close h2 em { display: block; }
/* These lines read as sentences, so they stay in normal case; uppercase is for short labels. */
.close .meta, .hero .meta, .doc-head .meta { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; max-width: 60ch; }

.foot { max-width: 1440px; margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.foot span { margin-right: auto; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* Document pages (support, privacy): title and summary stay beside the text on wide screens. */
.doc { max-width: 1440px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(96px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc-head { position: sticky; top: 32px; }
.doc-head h1 { font-size: clamp(48px, 5.6vw, 80px); }
.doc-head .meta { margin-top: 16px; }
.summary { margin-top: 40px; background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 36px; padding: 28px 32px; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--lift); color: var(--muted); font-size: 17px; }
.summary ul { margin: 0; padding: 0; list-style: none; }
.summary li { padding: 14px 0; }
.summary li + li { border-top: 1px solid var(--line); }
.summary li:first-child { padding-top: 0; } .summary li:last-child { padding-bottom: 0; }
.contact { display: inline-block; margin-top: 18px; color: var(--chartreuse); font-weight: 700; font-size: 19px; }
.prose { max-width: 68ch; color: var(--muted); }
.prose h2 { font-size: clamp(28px, 3vw, 40px); color: var(--ink); margin: 72px 0 8px; max-width: none; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: 0; text-transform: none; font-weight: 700; color: var(--ink); margin: 36px 0 8px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0; padding-left: 20px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--chartreuse); }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); }

/* Narrow screens */
@media (max-width: 1000px) {
  .hero, .feature, .privacy, .doc, .how { grid-template-columns: 1fr; }
  .doc-head { position: static; }
  .hero { min-height: 0; gap: 0; }
  /* On narrow screens the download action sits under the headline and the board follows, partly in the first screen. */
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero .cta { order: 2; margin-top: 28px; }
  .board { order: 3; margin-top: 28px; }
  .lede { order: 4; margin: 36px 0 20px; }
  .hero .meta { order: 5; }
  .feature.flip .feature-copy { order: 0; }
  .rules { grid-template-columns: 1fr; }
  .rules div { padding: 28px 0 !important; border-left: 0 !important; }
  .rules div + div { border-top: 1px solid var(--line); }
  .ladder { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ladder span { font-size: 13px; }
}
@media (max-width: 720px) {
  h1 { font-size: clamp(44px, 13vw, 56px); }
  .hero { padding-top: 8px !important; }
  .hero .cta { gap: 10px; }
  .cta { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .store { gap: 8px; padding: 10px 8px; }
  .store svg { width: 30px; height: 30px; }
  .store.play svg { width: 34px; height: 34px; margin: 0 -2px; }
  .store small { font-size: 11px; }
  .store b { font-size: 18px; }
  .board { padding: 20px 18px; }
  .score { margin-top: 10px; }
  .taps { margin-top: 18px; }
  .tap { padding: 18px 10px; }
  .score .pts { font-size: 56px; }
  .nav { flex-wrap: wrap; gap: 12px 16px; padding-block: 14px; }
  html { scroll-padding-top: 128px; }
  .nav nav { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; }
  .lang { margin-left: auto; }
  .ladder { grid-template-columns: 1fr; gap: 28px; padding-left: 24px; background: linear-gradient(var(--navy), var(--navy)) left / 3px 100% no-repeat; }
  .ladder li { background: none; padding-top: 0; }
  .ladder li::before { top: 18px; left: -34px; }
  .ladder .win::before { background: var(--chartreuse); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shot, .feature-copy, .how-copy, .ladder, .rules, .facts, .close h2 { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(32px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bump { animation: none; }
  .store, .tap { transition: none; }
}
