/* The landing page's look, shared by / and its language versions /fi/, /sv/, /es/, /it/, /pt/, /fr/, /nl/, /da/, /no/ (PA-1126, PA-1127, PA-1158, PA-1159, PA-1160, PA-1162); the logged-in home's cards are here too, since / holds both. */
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.muted { color: var(--muted); }
.err { color: var(--bad); }

/* ---------- logged-in home: My matches ---------- */
#home main { max-width: 880px; margin: 0 auto; padding: 16px; }
#home h1 { font-size: 22px; margin: 8px 0 4px; }
#home .legal { margin-top: 32px; font-size: 13px; }
#home .legal a { color: inherit; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 12px 0; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.title { font-weight: 600; font-size: 16px; }
.players span { margin-inline-end: 10px; }
.players .me { color: var(--accent); font-weight: 600; }
/* PA-1130: the typed result on a card, as Match history drew it, and the list's filters. */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.filters select { max-width: 100%; }
.result { margin-top: 8px; }
.result .line { display: flex; align-items: center; gap: 12px; }
.result .wl { flex: none; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: .9em; background: var(--panel2); color: var(--muted); }
.result .wl.W { background: #d7ff3c; color: #121400; } .result .wl.L { background: #3a2a26; color: #ff6a3d; }
.result .what { flex: 1; min-width: 0; } .result .who { overflow-wrap: anywhere; }
.result .score { flex: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
.result .score.none { font-weight: 400; font-size: .85em; }
.result .small { font-size: .8em; }
.result-form { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0 38px; }
.result-form[hidden] { display: none; }
.result-form input { width: 10em; }
.linkbtn { background: none; border: 0; padding: 0; color: #6aa8f0; font: inherit; font-size: inherit; cursor: pointer; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); margin-inline-start: 6px; }
.badge.ready { border-color: var(--good); color: var(--good); }
.badge.wait { border-color: var(--warn); color: var(--warn); }
.badge.bad { border-color: var(--bad); color: var(--bad); }
.links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
a.btn, button.btn { background: var(--panel2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 12px; text-decoration: none; font: inherit; cursor: pointer; }
a.btn.primary, button.btn.primary { background: var(--accent); border-color: var(--accent); }
button.btn:disabled { opacity: .5; cursor: default; }   /* PA-1499: e.g. Analyse with no analyses left */
/* PA-1293: My free times */
.home-actions { margin-top: 0; }
#freeTimes .row { justify-content: flex-start; flex-wrap: nowrap; padding: 4px 0; border-top: 1px solid var(--border); }
#freeTimes .title + .row { border-top: 0; }
#freeTimes .day { flex: none; width: 7.5em; font-weight: 600; }
#freeTimes .times { flex: 1; min-width: 0; color: var(--muted); }

/* ---------- landing page (logged out) ---------- */
#landing, dialog#auth {
  --ink: #0b0d10; --ink2: #12151a; --line: rgba(255,255,255,.09); --soft: #b7bcc5;
  --ball: #d7ff3c; --ballInk: #121400; --sky: #4c9bff; --heat: #ff6a3d;
}
#landing {
  background: var(--ink); color: #f4f5f2; overflow-x: hidden;
  overflow-x: clip;   /* PA-1146: hidden made it a box that focus could scroll sideways by the hero glow's bleed */
}
#landing a { color: inherit; }
#landing .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
#landing h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 800; }
#landing h3 { font-size: 20px; letter-spacing: -.01em; margin: 0 0 6px; }
:where(#landing) p { margin: 0; }
#landing .lede { font-size: 18px; color: var(--soft); max-width: 640px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ball); margin-bottom: 14px; }
.eyebrow.sky { color: var(--sky); }
.hl { color: var(--ball); }
.cta { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font: 700 16px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; white-space: nowrap; }
.cta:hover { transform: translateY(-1px); }
.cta.lime { background: var(--ball); color: var(--ballInk); }
.cta.lime:hover { background: #e4ff74; }
.cta.ghost { background: rgba(255,255,255,.04); color: #f4f5f2; border-color: rgba(255,255,255,.22); }
.cta.ghost:hover { border-color: rgba(255,255,255,.5); }
.cta.small { padding: 9px 16px; font-size: 14px; }
.cta:focus-visible, .tab:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
/* PA-1147: the first Tab stop, shown only while focused; it moves focus to the landing's <main> */
#landing a.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: #fff; color: #000; font-weight: 700; text-decoration: none; }
#landing a.skip:focus { top: 12px; outline: 3px solid var(--sky); outline-offset: 2px; }
#main:focus { outline: none; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.pill.free { background: rgba(215,255,60,.12); color: var(--ball); }
.pill.pro { background: rgba(76,155,255,.15); color: var(--sky); }
.pill.soon { background: rgba(255,106,61,.15); color: var(--heat); }
.example { position: absolute; inset-inline-end: 12px; bottom: 10px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.38); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11,13,16,.72); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo svg { flex: none; }
.nav nav { display: flex; gap: 22px; font-size: 14px; color: var(--soft); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: #fff; }
.nav nav a, .nav .right > * { white-space: nowrap; }
@media (max-width: 1040px) { .nav nav a.sub { display: none; } }   /* Plans leads to them; room for the hub links */
.nav .right { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.nav .login { background: none; border: 0; color: var(--soft); font: 600 14px system-ui, sans-serif; cursor: pointer; padding: 8px; }
.nav .login:hover { color: #fff; }
.nav .lang { display: flex; color: var(--soft); font-size: 13px; }   /* PA-1127: EN FI SV ES IT PT FR NL DA NO, this page's own in white */
.nav .lang > * { text-decoration: none; padding: 8px 4px; }
#landing .nav .lang a:hover, .nav .lang [aria-current] { color: #fff; }
/* PA-1146: narrower, the sections and the languages by their own names sit in a menu (shared/menu.js), and on a phone Log in too */
.nav .menu { display: none; }
@media (max-width: 900px) { .nav .wrap > nav, .nav .lang { display: none; } .nav .menu { display: block; } }
.nav .menu summary { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  color: #f4f5f2; font: 600 13px system-ui, sans-serif; cursor: pointer; list-style: none; }
.nav .menu summary::-webkit-details-marker { display: none; }
.nav .menu[open] summary { border-color: rgba(255,255,255,.5); }
.nav .menu summary:focus-visible, .menu-panel :is(a, button):focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.menu-panel { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; padding: 8px 16px 18px;
  background: var(--ink); border-bottom: 1px solid var(--line); display: grid; }
.nav .menu-panel nav { display: grid; gap: 0; color: #f4f5f2; }   /* its links inherit (#landing a) */
.nav .menu-panel :is(a, button) { display: block; padding: 12px 4px; font: 600 16px system-ui, sans-serif; color: #f4f5f2; text-decoration: none; text-align: start; }
.nav .menu-panel button { background: none; border: 0; cursor: pointer; }
.menu-panel .langs { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--soft); }
.nav .menu-panel .langs > * { padding: 12px 4px; font-size: 15px; font-weight: 500; }
.menu-panel .langs [aria-current] { color: #fff; font-weight: 700; }
@media (min-width: 721px) { .nav .menu-panel > .login { display: none; } }   /* the header still shows it */

/* hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background: radial-gradient(600px 380px at 78% 30%, rgba(76,155,255,.20), transparent 70%),
              radial-gradient(520px 340px at 12% 10%, rgba(215,255,60,.10), transparent 70%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
/* PA-1165: the line offering the visitor's own language, across the hero's columns. */
.hero .lang-suggest { grid-column: 1 / -1; margin: 0 0 -24px; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); }
#landing .hero .lang-suggest a { color: var(--ball); }
.hero .lang-suggest button { background: none; border: 0; color: var(--soft); font: inherit; cursor: pointer; padding: 4px 6px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 72px); line-height: .98; letter-spacing: -.04em; margin: 0 0 22px; font-weight: 800; }
.hero .lede { margin-bottom: 36px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero .assure { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.hero .assure span::before { content: "✓ "; color: var(--ball); font-weight: 700; }

.player { position: relative; border-radius: 18px; overflow: hidden; background: #06080b; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px -30px rgba(76,155,255,.45), 0 24px 60px -20px rgba(0,0,0,.8); }
.player svg { display: block; width: 100%; height: auto; }
.player { direction: ltr; }   /* a video player reads left to right in every language, Arabic too */
.player .bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0f1216; border-top: 1px solid var(--line); font-size: 12px; color: var(--soft); }
.player .bar .play { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: 11px; flex: none; }
.player .speed { display: flex; gap: 4px; }
.player .speed b { padding: 3px 7px; border-radius: 6px; font-weight: 600; background: rgba(255,255,255,.06); }
.player .speed b.on { background: var(--ball); color: var(--ballInk); }
.player .track { position: relative; flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.14); }
.player .track i { position: absolute; top: -3px; width: 4px; height: 10px; border-radius: 2px; }
.player .track .done { position: absolute; inset: 0 62% 0 0; background: rgba(255,255,255,.7); border-radius: 4px; }
.float { position: absolute; background: rgba(18,21,26,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 12px 14px; font-size: 12px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.7); }
.float b { display: block; font-size: 22px; letter-spacing: -.02em; color: #fff; }
/* PA-1147: the hero moves once and is still within five seconds (WCAG 2.2.2), so it needs no pause button */
.float.f1 { inset-inline-start: -26px; top: 18%; animation: bob 4.5s ease-in-out; }
.float.f2 { inset-inline-end: -22px; bottom: 74px; animation: bob 4.5s ease-in-out -1.5s; }
.float.f2 svg { display: block; width: 132px; height: auto; margin: 6px 0 4px; border-radius: 4px; }
.float .tagrow { display: flex; gap: 5px; margin-top: 6px; }
.float .tagrow span { padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.08); }
.float .tagrow span.on { background: var(--heat); color: #fff; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
.ball { offset-path: path("M 226 206 Q 300 40 406 133 Q 412 70 418 6"); animation: settle .4s ease 2.8s backwards, fly 2.8s cubic-bezier(.35,.1,.65,.9); }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0 } 8% { opacity: 1 } 92% { opacity: 1 } 100% { offset-distance: 100%; opacity: 0 } }
@keyframes settle { from { opacity: 0 } }   /* after its flight the ball fades in at the start of the trail, where reduced motion shows it */

/* sections */
section.block { padding: 110px 0; position: relative; }
section.block.tint { background: var(--ink2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: 54px; max-width: 760px; }
.head.center { margin-inline-start: auto; margin-inline-end: auto; text-align: center; }
.head.center .lede { margin: 0 auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: 18px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ball); color: var(--ballInk); font-weight: 800; margin-bottom: 18px; }
.step p { color: var(--soft); }
.guides .step { text-decoration: none; transition: border-color .2s, transform .2s; }
.guides .step::before { content: "→"; }
/* PA-1218: What Padelapu is — four unnumbered cards, two by two */
.steps.pillars, .steps.four { grid-template-columns: repeat(2, 1fr); }
.pillars .step::before { display: none; }
.pillars ul { margin: 0; padding-inline-start: 18px; color: var(--soft); }
.pillars li + li { margin-top: 10px; }
.pillars li b { color: #f4f5f2; }
.guides .step:hover { border-color: rgba(255,255,255,.24); transform: translateY(-2px); }
.guides .step:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(180deg, #161a20, #111418); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.tile p { color: var(--soft); }
.tile > .pill { align-self: flex-start; }
.tile .art { margin-top: auto; }
.tile .art svg { display: block; width: 100%; height: auto; }
/* PA-1143: real screenshots, each with its caption */
.shot { margin: 0; }
.shot img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; border: 1px solid var(--line); }
.shot.mobile img { max-width: min(100%, 300px); }
.shot.tall img { width: auto; max-height: 440px; }
.shot figcaption { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--soft); }
.step .shot { margin-top: 20px; }
.tile .shot { margin-top: auto; }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; } .span4 { grid-column: span 4; } .span6 { grid-column: span 6; }

.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; padding: 46px 0; }
.feature.flip > .copy { order: 2; }
.feature .copy p { color: var(--soft); font-size: 17px; margin-bottom: 18px; }
.feature ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature li { padding-inline-start: 28px; position: relative; color: #e6e8e4; }
.feature li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(76,155,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%234c9bff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.feature .visual { position: relative; border-radius: 22px; overflow: hidden; background: radial-gradient(120% 90% at 70% 0%, rgba(76,155,255,.16), transparent 60%), #10141a;
  border: 1px solid var(--line); padding: 26px; }
.feature .visual svg { display: block; width: 100%; height: auto; }
.feature h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.tip { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; display: flex; gap: 12px; }
.tip .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.tip b { display: block; margin-bottom: 2px; }
.tip span { color: var(--soft); font-size: 14px; }
.mcard { background: rgba(10,12,15,.6); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 18px; }
.mcard .kick { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.mcard .mhead { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 16px; }
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mstats div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mstats b { display: block; font-size: 28px; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.mstats span { font-size: 12px; color: var(--muted); }
@media (max-width: 480px) { .mstats div { padding: 10px 8px; } .mstats b { font-size: 22px; } }   /* PA-1522: "31 s", "42 %" stay on one line at 375 px */
@media (max-width: 360px) { .mstats div { padding: 8px 6px; } .mstats b { font-size: 18px; } .mstats span { font-size: 11px; overflow-wrap: anywhere; hyphens: auto; } }
.msec { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
/* PA-1522: the Match summary card's Pro items, shown locked with no number */
.feature .mlocked { display: flex; flex-wrap: wrap; gap: 8px; }
.feature .mlocked li { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--soft); font-size: 13px; }
.feature .mlocked li::before { content: "\1F512"; position: static; display: inline; width: auto; height: auto; background: none; margin-inline-end: 6px; font-size: 11px; }
.pipeline { display: grid; gap: 10px; }
.pipeline div { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 14px; }
.pipeline div::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--sky); color: #04111f; }
.pipeline div.now::before { content: ""; background: conic-gradient(var(--sky) 0 70%, rgba(255,255,255,.12) 0); }
.pipeline div small { margin-inline-start: auto; color: var(--muted); }

/* scouting */
.scout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.scout .cards { display: grid; gap: 12px; margin-top: 26px; }
.scard { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.scard .n { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,106,61,.14); color: var(--heat); font-size: 20px; }
.scard b { display: block; }
.scard span { color: var(--soft); font-size: 14px; }

/* highlights + social */
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.social .cards { display: grid; gap: 12px; margin-top: 26px; }
.scard .n.lime { background: rgba(215,255,60,.12); color: var(--ball); font-size: 16px; }
.phones { position: relative; height: 520px; }
.phone { position: absolute; width: 230px; aspect-ratio: 9 / 18.5; border-radius: 36px; padding: 9px; background: #050608;
  border: 1px solid rgba(255,255,255,.16); box-shadow: 0 40px 80px -24px rgba(0,0,0,.9), 0 0 0 6px #1a1d22; }
.phone.p1 { inset-inline-start: 6%; top: 0; transform: rotate(-6deg); z-index: 2; }
.phone.p2 { inset-inline-start: 46%; top: 54px; transform: rotate(5deg); }
.screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; }
.screen svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ov { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; display: flex; flex-direction: column; font-size: 11px; color: #fff; }
.ov.top { top: 26px; } .ov.top b { font-size: 15px; letter-spacing: .02em; } .ov.top span { opacity: .8; }
.ov.bot { bottom: 14px; flex-direction: row; justify-content: space-between; align-items: center; }
.ov .logo-s { font-weight: 800; background: var(--ball); color: var(--ballInk); padding: 3px 8px; border-radius: 999px; }
.ov.stat { flex-direction: column; align-items: flex-start; background: linear-gradient(transparent, rgba(0,0,0,.7)); inset-inline-start: 0; inset-inline-end: 0; bottom: 0; padding: 40px 14px 16px; }
.ov.stat b { font-size: 40px; line-height: 1; color: var(--ball); }
.share-sheet { position: absolute; z-index: 3; inset-inline-start: 18%; bottom: 0; inset-inline-end: 4%; padding: 14px 16px; border-radius: 18px;
  background: rgba(18,21,26,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 50px -12px rgba(0,0,0,.8); }
.share-sheet small { display: block; color: var(--muted); margin-bottom: 10px; font-size: 12px; }
.nets { display: flex; flex-wrap: wrap; gap: 8px; }
.nets span { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.08); }
.nets span:first-child { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }


#landing [id] { scroll-margin-top: 84px; }
html { scroll-behavior: smooth; }

/* faq + final */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ball); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); margin-top: 10px; }
.final { text-align: center; padding: 120px 0; background: radial-gradient(700px 360px at 50% 100%, rgba(215,255,60,.14), transparent 70%); }
.final h2 { font-size: clamp(36px, 5.6vw, 68px) !important; }
.final .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
footer.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer.foot .wrap > :last-child { margin-inline-start: auto; }

/* auth dialog */
dialog#auth { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 22px;
  background: #12161b; color: #f4f5f2; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
dialog#auth::backdrop { background: rgba(4,6,9,.72); backdrop-filter: blur(6px); }
.auth-in { padding: 28px; }
.auth-in .x { position: absolute; inset-inline-end: 14px; top: 12px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.tabs { display: flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.05); border-radius: 999px; margin: 18px 0 22px; }
.tab { flex: 1; border: 0; background: none; color: var(--soft); font: 600 14px system-ui, sans-serif; padding: 9px; border-radius: 999px; cursor: pointer; }
.tab.on { background: #fff; color: #000; }
#auth label { display: block; font-size: 13px; color: var(--soft); margin: 10px 0 4px; }
#auth input { font: inherit; padding: 12px 14px; width: 100%; box-sizing: border-box; background: #0b0d10; color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; }
#auth input:focus { outline: none; border-color: var(--sky); }
#auth input::placeholder { color: var(--muted); opacity: 1; }   /* PA-1147: 7.3:1 on the field; the browser's grey was 4.2:1 */
#auth label.keep { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; cursor: pointer; }
#auth .keep input { width: 20px; height: 20px; margin: 0; padding: 0; accent-color: var(--ball); flex: none; }
#auth .cta { width: 100%; justify-content: center; margin-top: 18px; }
/* after the link is sent: only the message stays, large enough to read at a glance */
#login-form.sent > :not(#login-msg) { display: none; }
/* PA-1119: for bots only. Clipped in place, not pushed 10,000 px to the left, which made the dialog scroll sideways
   in Arabic (right to left). aria-hidden and tabindex="-1" keep it from screen readers and the keyboard. */
#auth .hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#ts:not(:empty) { margin-top: 14px; }
#login-form.sent #login-msg { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; margin: 8px 0 0; }
#login-form.sent #login-msg small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); margin-top: 10px; }
#login-form.sent #login-msg small.junk { color: #ff6b6b; font-weight: 700; }   /* red, 6.5:1 on the dialog */
#auth .fine { font-size: 12px; color: var(--muted); margin-top: 14px; }
#auth .fine a { color: inherit; }
#auth .demo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
#auth .demo button { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #fff; border-radius: 10px; padding: 7px; font: inherit; font-size: 13px; cursor: pointer; }
#demo-box { margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(255,255,255,.14); font-size: 13px; }
#login-msg { min-height: 1.5em; margin-top: 12px; font-size: 14px; }
/* the emailed code, for a browser the link does not open in, such as an iPhone's home-screen app */
#code-form { margin-top: 18px; }
#auth #code { font: 700 24px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .3em; text-align: center; }
#code-msg { min-height: 1.5em; margin-top: 10px; font-size: 14px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ball, .float.f1, .float.f2 { animation: none; }
  .cta, .tile { transition: none; }
}

@media (max-width: 980px) {
  .hero .wrap, .feature, .scout, .social { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip > .copy { order: 0; }
  .social .phones { order: 2; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span2, .span3, .span4, .span6 { grid-column: span 1; }
  .bento .wide { grid-column: span 2; }
  .float.f1 { inset-inline-start: 10px; } .float.f2 { inset-inline-end: 10px; }
}
@media (max-width: 720px) {
  #landing .wrap { padding: 0 16px; }
  .nav .right > .login { display: none; }   /* in the menu, so Start free fits beside it in every language */
  .nav .wrap { gap: 10px; }
  .cta { white-space: normal; text-align: center; line-height: 1.2; }   /* PA-1146: a translated label wraps instead of running off the screen */
  .hero { padding-top: 40px; }
  section.block { padding: 72px 0; }
  .steps, .steps.pillars, .steps.four { grid-template-columns: 1fr; gap: 16px; }
  .bento { grid-template-columns: 1fr; }
  .bento .wide { grid-column: span 1; }
  .float { display: none; }
  .phones { height: 440px; }
  .phone { width: 180px; }
  .phone.p1 { inset-inline-start: 0; } .phone.p2 { inset-inline-start: auto; inset-inline-end: 4px; }   /* its tilted corner inside the screen (PA-1146) */
  .share-sheet { inset-inline-start: 0; inset-inline-end: 0; }
  footer.foot .wrap > :last-child { margin-inline-start: 0; }
}
@media (max-width: 379px) {   /* PA-1146 */
  .nav .logo { font-size: 0; }   /* the ball alone, so the Swedish and Spanish Start free fit at 320 px */
}
/* The gift shop row after the guides, until 20 December (shared/landing.js) */
section.shop-row { padding-top: 0; }
.shop-row a { display: flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: 16px; color: var(--ink, #f4f5f2);
  text-decoration: none; background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: border-color .2s; }
.shop-row a:hover { border-color: rgba(255,255,255,.24); }
.shop-row a:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.shop-row .shirts { display: flex; gap: 6px; flex: none; }
.shop-row .shirts span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: #111111; }
.shop-row .shirts .white { background: #ffffff; } .shop-row .shirts .navy { background: #14213d; }
.shop-row .shirts img { height: 46px; width: auto; max-width: 46px; object-fit: contain; }
.shop-row .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shop-row .txt span { color: var(--soft); font-size: 15px; }
.shop-row .go { color: var(--lime, #d7ff3c); font-size: 26px; }

/* PA-1453: the Pro beta note at the end of the Pro section, and the phone's sign-up bar */
.beta { margin: 40px auto 0; max-width: 720px; text-align: center; padding: 34px 28px; border-radius: 22px;
  border: 1px solid rgba(76,155,255,.45); background: linear-gradient(160deg, rgba(76,155,255,.16), rgba(76,155,255,.02) 60%), #12161b; }
.beta h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.02em; }
.beta p { color: var(--soft); margin: 0 0 22px; }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(11,13,16,.92); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .sticky-cta.show { transform: none; visibility: visible; transition: transform .25s ease; }
  .sticky-cta .cta { width: 100%; justify-content: center; }
  footer.foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta, .sticky-cta.show { transition: none; } }
/* PA-1492: games near you under the hero (shared/landing_games.js) */
section.block.near { padding: 56px 0; border-top: 1px solid var(--line); }
.ng-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ng-head h2 { margin: 0; }
.ng-status { min-height: 1.3em; margin: 8px 0; }
.ng-list { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.ng-ev { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.ng-tm { font-weight: 700; font-variant-numeric: tabular-nums; }
.ng-what { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ng-t { font-weight: 600; overflow-wrap: anywhere; }
.ng-meta { font-size: 14px; color: var(--muted); }
.ng-meta a { color: inherit; }
#nearGames .cta.lime { color: var(--ballInk); }   /* #landing a would win otherwise */
.ng-side { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--soft); }
@media (max-width: 600px) {
  .ng-ev { grid-template-columns: 1fr; }
  .ng-side { justify-content: space-between; }
}
