/* Twoble website: one stylesheet for every page, light and dark. */
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --bg: #f7f5fb;
  --bg-2: #efebf7;
  --surface: #ffffff;
  --fg: #16122b;
  --muted: #5a5675;
  --line: rgba(22, 18, 43, .1);
  --red: #e2304b;
  --blue: #1677d6;
  --red-soft: rgba(226, 48, 75, .12);
  --blue-soft: rgba(22, 119, 214, .12);
  --sunset: linear-gradient(110deg, #ffb35c 0%, #ff5fa2 45%, #8a4bff 100%);
  --shadow: 0 1px 2px rgba(22, 18, 43, .06), 0 12px 32px rgba(22, 18, 43, .08);
  --device: #101018;
  --radius: 22px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090c1a;
    --bg-2: #0e1328;
    --surface: #121834;
    --fg: #eef1ff;
    --muted: #9ba4c9;
    --line: rgba(255, 255, 255, .09);
    --red: #ff4d6d;
    --blue: #38c6ff;
    --red-soft: rgba(255, 77, 109, .14);
    --blue-soft: rgba(56, 198, 255, .13);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .35);
    --device: #05060c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 var(--text); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6.2vw, 64px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 1em; }
b, strong { font-weight: 700; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); margin-right: auto; }
.logo img { width: 34px; height: 34px; }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: -.03em; }
.wordmark span:first-child { color: var(--red); }
.wordmark span:last-child { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 99px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-2); }
.nav .lang { border: 1px solid var(--line); font-size: 13px; letter-spacing: .04em; }
@media (max-width: 760px) {
  .nav .hide-sm { display: none; }
  .nav a { padding: 8px 9px; }
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 8px; }
  .logo { gap: 8px; }
  .logo img { width: 30px; height: 30px; }
  .wordmark { font-size: 21px; }
  .nav { gap: 2px; }
  .nav a { font-size: 14px; padding: 6px 7px; }
}

/* Language suggestion */
.lang-hint { display: none; background: var(--sunset); color: #fff; font-weight: 600; font-size: 15px; }
.lang-hint.show { display: block; }
.lang-hint .wrap { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.lang-hint a { color: #fff; margin-right: auto; }
.lang-hint button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* Sections */
section { padding: 72px 0; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.band { background: var(--bg-2); }

/* Hero */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero::before { background: var(--blue-soft); top: -260px; right: -120px; opacity: 1; }
.hero::after { background: var(--red-soft); bottom: -300px; left: -180px; opacity: 1; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .wrap > *, .split > * { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; background: var(--surface);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.chips li:nth-child(odd)::before { background: var(--red); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 14px; text-decoration: none;
  background: var(--fg); color: var(--bg); flex: 0 1 210px; min-width: 0; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 12px; opacity: .8; line-height: 1.2; }
.store strong { display: block; font-family: var(--display); font-size: 19px; font-weight: 800; line-height: 1.2; }
.store.soon { background: var(--surface); color: var(--fg); border: 1.5px dashed color-mix(in srgb, var(--fg) 35%, transparent); }
.store-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
@media (max-width: 520px) {
  .stores { gap: 10px; }
  .store { flex: 1 1 0; gap: 10px; padding: 9px 12px; }
  .store svg { width: 24px; height: 24px; }
  .store strong { font-size: 17px; }
}

/* Devices */
.devices { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.phone { position: relative; width: 250px; padding: 9px; border-radius: 42px; background: var(--device); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .07) inset; flex: none; }
.phone img { border-radius: 33px; width: 100%; aspect-ratio: 430 / 932; object-fit: cover; }
.phone.sm { width: 200px; border-radius: 36px; padding: 7px; }
.phone.sm img { border-radius: 29px; }
.duo { position: relative; width: min(400px, 100%); padding: 11px; border-radius: 40px; background: var(--device); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .07) inset; flex: none; }
.duo img { border-radius: 30px; width: 100%; aspect-ratio: 669 / 951; object-fit: cover; }
.duo::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 2px; transform: translateY(-1px);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28) 12%, rgba(255, 255, 255, .28) 88%, transparent); pointer-events: none; }
.duo.outer { width: 230px; border-radius: 36px; padding: 9px; }
.duo.outer img { aspect-ratio: 466 / 678; border-radius: 28px; }
.duo.outer::after { display: none; }
.hero .devices .duo { width: min(400px, 78vw); }
.hero .devices .phone { position: absolute; right: -6px; bottom: -28px; width: min(190px, 36vw); padding: 7px; border-radius: 34px; transform: rotate(5deg); }
.hero .devices .phone img { border-radius: 27px; }
@media (max-width: 900px) { .hero .devices .phone { right: 0; } }
.pair { display: flex; gap: 20px; justify-content: center; align-items: flex-start; }
.pair .phone { width: min(250px, calc(50% - 10px)); }
.pair .phone:only-child { width: min(280px, 70%); }
.pair .phone:nth-child(2) { margin-top: 40px; }
@media (max-width: 600px) {
  .pair .phone { width: calc(50% - 10px); padding: 6px; border-radius: 30px; }
  .pair .phone img { border-radius: 24px; }
  .pair .phone:nth-child(2) { margin-top: 28px; }
}
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; margin-top: 40px; padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 16px;
  font-family: var(--display); font-weight: 900; font-size: 22px; color: #fff; background: var(--sunset); }
.steps p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Game cards */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.game { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; padding: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.game.red { background: linear-gradient(160deg, var(--red-soft), transparent 55%), var(--surface); }
.game.blue { background: linear-gradient(160deg, var(--blue-soft), transparent 55%), var(--surface); }
.game .phone { width: 170px; padding: 6px; border-radius: 30px; }
.game .phone img { border-radius: 24px; }
.game h3 { font-size: 28px; font-weight: 900; margin-bottom: 4px; }
.game .tag { font-weight: 700; color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.game ul { margin: 0 0 18px; padding-left: 18px; color: var(--muted); font-size: 16px; }
.game ul li { margin-bottom: 4px; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }
.game .more::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 960px) { .games { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .game { grid-template-columns: 1fr; }
  .game .phone { width: 150px; margin: 0 auto; }
}
/* Small game cards (the games without a page of their own) */
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.mini { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.mini .phone { width: 110px; padding: 5px; border-radius: 22px; }
.mini .phone img { border-radius: 17px; }
.mini h3 { font-size: 21px; font-weight: 900; margin-bottom: 2px; }
.mini .tag { font-weight: 700; color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.mini p { margin: 0; color: var(--muted); font-size: 15px; }
.mini .new { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: var(--sunset); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .02em; }
@media (max-width: 1100px) { .minis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .minis { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .mini { grid-template-columns: 90px 1fr; gap: 14px; padding: 14px; } .mini .phone { width: 90px; } }

/* Split feature (text + image) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--sunset); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: var(--blue-soft); color: var(--blue); }
.feature:nth-child(odd) .ico { background: var(--red-soft); color: var(--red); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 32px auto 0; max-width: 1120px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.gallery figure { flex: none; width: 240px; scroll-snap-align: center; }
.gallery > :first-child { margin-left: auto; }
.gallery > :last-child { margin-right: auto; }
.gallery img { border-radius: 26px; box-shadow: var(--shadow); aspect-ratio: 1290 / 2796; object-fit: cover; }
@media (min-width: 1100px) { .gallery figure { width: 200px; } }

/* Theme grid (air hockey tables) */
.themes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; margin-top: 32px; }
.themes figure { text-align: center; }
.themes img { border-radius: 18px; box-shadow: var(--shadow); aspect-ratio: 430 / 932; object-fit: cover; border: 4px solid var(--device); }
.themes figcaption { margin-top: 10px; color: var(--fg); font-weight: 700; font-size: 15px; }
.themes figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; line-height: 1.35; margin-top: 2px; }
.mode-label { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg-2); color: var(--muted); margin-top: 6px; }
@media (max-width: 1000px) { .themes { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .themes { grid-template-columns: repeat(2, 1fr); } }

/* Rules */
.rules { counter-reset: rule; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.rules li { counter-increment: rule; position: relative; padding: 16px 18px 16px 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.rules li::before { content: counter(rule); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; background: var(--bg-2); color: var(--red); }
.rules li:nth-child(even)::before { color: var(--blue); }

/* Option tables */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.option { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.option h3 { font-size: 18px; }
.option dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 15px; }
.option dt { font-weight: 700; white-space: nowrap; }
.option dd { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .options { grid-template-columns: 1fr; } }

.sounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.sounds li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 15px; color: var(--muted); }
.sounds b { display: block; color: var(--fg); font-family: var(--display); font-weight: 800; font-size: 17px; }

.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 28px; }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.tip h3 { font-size: 18px; margin-bottom: 6px; }
.tip p { margin: 0; color: var(--muted); font-size: 15px; }

/* Volte-Face diagram */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px 20px; margin-top: 28px; }
.diagram svg { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; }
.diagram .cell { fill: var(--bg-2); stroke: var(--line); }
.diagram .r { fill: var(--red); }
.diagram .b { fill: var(--blue); }
.diagram .ghost { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 6 5; }
.diagram .arrow { stroke: var(--muted); stroke-width: 3; fill: none; }
.diagram .label { fill: var(--muted); font: 700 15px var(--text); }
.diagram .frame { fill: none; stroke: var(--red); stroke-width: 3; }

/* Breadcrumb */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--muted); }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 800; font-size: 18px; padding: 18px 32px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 600; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 18px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 48px; }
.faq-group h2 { font-size: clamp(24px, 3vw, 30px); }

/* Prose pages */
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; background: var(--sunset); color: #fff; border-radius: 28px; padding: 28px; margin-top: 28px; }
.contact-card h2 { margin: 0; font-size: 26px; color: #fff; }
.contact-card p { margin: 4px 0 0; opacity: .92; }
.contact-card .btn { margin-left: auto; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 99px; background: #fff; color: #2a1a40; font-weight: 800;
  text-decoration: none; font-family: var(--display); font-size: 17px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }

/* CTA */
.cta { text-align: center; background: var(--sunset); color: #fff; border-radius: 36px; padding: 56px 24px; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { opacity: .95; max-width: 560px; margin: 0 auto 8px; font-size: 18px; }
.cta .stores { justify-content: center; }
.cta .store.soon { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta .store-note { color: rgba(255, 255, 255, .9); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 15px; font-family: var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--fg); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .about { grid-column: 1 / -1; } }
.split.top { align-items: start; }
