/* MindRack — site. Cores das peças vêm do Aurora (src/styleTokens.ts). */

:root {
  --orange: #f7a531;
  --blue: #5b5bf0;
  --teal: #19c2b0;
  --pink: #d42a6f;

  --night: #07080f;
  --night-2: #0d0f1c;
  --night-line: rgba(255, 255, 255, 0.09);
  --on-night: #f5f5f7;
  --on-night-2: #a5a7bb;

  --paper: #f5f5f7;
  --white: #ffffff;
  --ink: #111218;
  --ink-2: #5d5f6e;
  --line: #e2e2e8;

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --text: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*,
*::before,
*::after { 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(--night);
  color: var(--on-night);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(247, 165, 49, 0.36); color: inherit; }
html { scrollbar-color: #2a2c44 var(--night); accent-color: var(--orange); caret-color: var(--orange); }
.light ::selection { background: rgba(91, 91, 240, 0.22); }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--white); color: var(--ink);
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { --wrap: 820px; }


.display { font-size: clamp(44px, 7.4vw, 96px); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
.display--sm { font-size: clamp(34px, 4.6vw, 56px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--on-night-2); max-width: 40ch; margin-top: 24px; }

.hl { color: var(--hl); }
/* No fundo escuro o azul e o rosa das peças não chegam a 4,5:1; clareados, chegam. */
.download .hl, .offline .hl, .daily .hl { color: color-mix(in srgb, var(--hl) 72%, #fff); }
.soft { color: var(--on-night-2); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 12px 12px auto; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  width: min(100%, 980px); height: 56px; padding: 0 8px 0 16px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 20px;
  background: rgba(13, 15, 28, 0.62);
  border: 1px solid var(--night-line);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.nav[data-theme='light'] .nav__inner { background: rgba(255, 255, 255, 0.72); border-color: rgba(17, 18, 24, 0.08); color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); letter-spacing: -0.02em; }
.brand img { border-radius: 8px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 600; opacity: 0.78;
  transition: opacity 0.2s, background 0.2s;
}
.nav__links a:hover { opacity: 1; background: rgba(127, 127, 160, 0.14); }
.nav__cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 13px;
  background: var(--on-night); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14); transition: transform 0.2s var(--ease), background 0.2s;
}
.nav[data-theme='light'] .nav__cta { background: var(--ink); color: var(--white); box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.12); }
.nav__cta:hover { transform: translateY(-1px); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Botões das lojas ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  text-decoration: none; font: 700 17px/1.05 var(--display); letter-spacing: -0.01em;
  color: var(--on-night); background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.stores-ready .store { transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s; }
.store small { display: block; font: 500 11px/1.3 var(--text); letter-spacing: 0.02em; opacity: 0.75; }
.store:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.12); }
.store--primary {
  background: var(--on-night); color: var(--ink); border-color: transparent;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14), 0 10px 30px -10px rgba(255, 255, 255, 0.35);
}
.store--primary:hover { background: var(--white); }
.light .store { color: var(--ink); background: var(--white); border-color: var(--line); }
.light .store--primary { background: var(--ink); color: var(--white); box-shadow: inset 0 -4px 0 rgba(255, 255, 255, 0.1); }
.stores--lg { justify-content: center; }
.stores--lg .store { height: 64px; padding: 0 26px 0 22px; font-size: 19px; }
/* Só no francês e no alemão: o app não tem esses idiomas, e o aviso fica junto das lojas. */
.lang-note { margin-top: 14px; max-width: 46ch; font-size: 14px; line-height: 1.45; color: var(--on-night-2); }
.hero .lang-note, .download .lang-note { margin-inline: auto; text-align: center; }

/* ---------- Tour: o celular que gira ---------- */

.tour { position: relative; background: var(--night); }
.tour__stage {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; place-items: center; padding: 120px var(--gutter) 80px;
}
.tour__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 40%, rgba(91, 91, 240, 0.32), transparent 70%),
    radial-gradient(35% 35% at 70% 55%, rgba(212, 42, 111, 0.26), transparent 70%),
    radial-gradient(30% 30% at 50% 80%, rgba(247, 165, 49, 0.16), transparent 70%);
  filter: blur(20px);
  opacity: var(--glow, 1);
}

.hero { position: relative; z-index: 3; text-align: center; max-width: 1100px; }
.hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -0.04em; line-height: 0.96; }
.hero__sub { margin: 26px auto 0; max-width: 34ch; font-size: clamp(18px, 1.7vw, 22px); color: var(--on-night-2); }
.hero .stores { justify-content: center; }

.tour__phone { position: relative; z-index: 2; perspective: 1800px; margin-top: 64px; }
.tour__captions { display: grid; gap: 40px; margin-top: 56px; max-width: 520px; }
.caption h2 { font-size: clamp(34px, 4.2vw, 58px); font-weight: 800; letter-spacing: -0.035em; }
.caption p:last-child { margin-top: 16px; font-size: 19px; color: var(--on-night-2); max-width: 32ch; }
.tour__progress, .tour__hint { display: none; }

/* O celular. --w define tudo; a espessura vem das camadas empilhadas em Z.
   A traseira é vidro fosco dentro de uma moldura de titânio; o bloco da câmera
   é uma pilha própria em Z, então ele se projeta de verdade quando o celular
   gira. --glare (definido pelo main.js a partir do giro) move os reflexos. */
.tour__phone::after {
  content: ''; position: absolute; left: 50%; top: 100%; width: 120%; height: 60px; z-index: -1;
  translate: -50% -20px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(8px); pointer-events: none; opacity: var(--floor, 0.9);
}
.phone {
  --w: clamp(250px, 24vw, 330px);
  --h: calc(var(--w) * 2.05);
  --t: calc(var(--w) * 0.08);
  --r: calc(var(--w) * 0.17);
  --ti-1: #43454f; --ti-2: #8c8f9b; --ti-3: #d9dbe3;
  position: relative; width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--s, 1));
  will-change: transform;
}
.phone > * { position: absolute; inset: 0; border-radius: var(--r); backface-visibility: hidden; }

/* Laterais em titânio escovado; --b vem do build.mjs. */
.phone__layer {
  backface-visibility: visible;
  transform: translateZ(calc((var(--i) / 19 - 0.5) * var(--t)));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.25)),
    linear-gradient(90deg, var(--ti-1), var(--ti-2) 14%, var(--ti-3) 50%, var(--ti-2) 86%, var(--ti-1));
  filter: brightness(var(--b, 1));
}

.phone__front {
  transform: translateZ(calc(var(--t) / 2 + 0.5px));
  background: #050507;
  padding: calc(var(--w) * 0.035);
  box-shadow: inset 0 0 0 1.5px #6a6c78, inset 0 0 0 3px #0b0b0f;
}
.phone__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--r) - var(--w) * 0.035); background: #0d0f1c;
}
.phone__shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.phone__shot.is-active { opacity: 1; transform: none; }
.phone__glare {
  position: absolute; inset: -40%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%);
  transform: translateX(var(--glare, 0%));
}

/* Traseira: moldura de titânio e o painel de vidro fosco por dentro. */
.phone__back {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2 + 0.5px));
  background: linear-gradient(135deg, var(--ti-3), var(--ti-2) 30%, var(--ti-1) 60%, var(--ti-2));
  overflow: hidden;
}
.phone__back::before {
  content: ''; position: absolute; inset: calc(var(--w) * 0.012);
  border-radius: calc(var(--r) - var(--w) * 0.012);
  background:
    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 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90% 60% at 30% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(170deg, #3a3d58 0%, #2a2c44 40%, #22233a 70%, #2c2e48 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 2px 6px rgba(255, 255, 255, 0.06);
}
.phone__sheen {
  position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.1) 47%, rgba(255, 255, 255, 0.03) 53%, transparent 60%);
  transform: translateX(calc(var(--glare, 0%) * -1));
}
.phone__mark { position: absolute; left: 50%; top: 50%; width: 22%; translate: -50% -50%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.35)); }
.phone__mark svg { display: block; width: 100%; height: auto; }

/* Botões laterais: placas no plano da lateral, um pouco para fora dela. */
.phone__btn {
  position: absolute; inset: auto; left: 0; width: calc(var(--t) * 0.56); border-radius: 3px;
  transform-origin: left center; backface-visibility: visible;
  transform: translateX(-1.2px) translateZ(calc(var(--t) * 0.28)) rotateY(90deg);
  background: linear-gradient(90deg, var(--ti-1), var(--ti-3) 50%, var(--ti-1));
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4);
}
.phone__btn--action { top: 17%; height: 4.2%; }
.phone__btn--vol-up { top: 24.5%; height: 7.5%; }
.phone__btn--vol-down { top: 34%; height: 7.5%; }
.phone__btn--side { left: 100%; top: 27%; height: 11%; transform: translateX(1.2px) translateZ(calc(var(--t) * 0.28)) rotateY(90deg); }

/* Bloco da câmera: visto de costas fica no canto superior esquerdo, que na
   frente é o direito. */
.bump {
  inset: auto; top: 3.4%; right: 6.5%; left: auto; width: 43%; aspect-ratio: 1;
  border-radius: 26%; transform-style: preserve-3d; backface-visibility: visible;
}
.bump > * { position: absolute; inset: 0; border-radius: inherit; }
.bump__layer {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2 + 1px + var(--j) * 1.1px));
  background: linear-gradient(135deg, #5b5e78, #34364f);
}
.bump__top {
  transform: rotateY(180deg) translateZ(calc(var(--t) / 2 + 6px));
  backface-visibility: hidden;
  background:
    radial-gradient(80% 60% at 25% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #3f425e, #2b2d45 60%, #33354f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 -2px 4px rgba(0, 0, 0, 0.35);
}
.lens {
  position: absolute; width: 43%; aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 37% 33%, rgba(255, 255, 255, 0.85) 0 2.5%, rgba(255, 255, 255, 0) 6%),
    radial-gradient(circle at 60% 64%, rgba(150, 110, 255, 0.5), transparent 18%),
    radial-gradient(circle at 44% 40%, rgba(90, 140, 255, 0.35), transparent 26%),
    radial-gradient(circle at 50% 50%, #020308 0 18%, #10163a 25%, #05060d 31%, #1c1e2b 39%, #07080e 42%, #1a1b25 60%, #0c0d14 71%, transparent 72%),
    conic-gradient(from 200deg, #b9bcc7, #3c3e48 20%, #8d909c 38%, #2c2e37 58%, #c3c5ce 76%, #4b4d57 90%, #b9bcc7);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 0 0 0.75px rgba(255, 255, 255, 0.35);
}
.lens--a { top: 6%; left: 6%; }
.lens--b { bottom: 6%; left: 6%; }
.lens--c { top: 28.5%; right: 6%; }
.flash { position: absolute; top: 9%; right: 13%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff7df, #e6d6a6 60%, #b8a978); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.lidar { position: absolute; bottom: 10%; right: 13%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #2a2c38, #050508 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mic { position: absolute; top: 47%; right: 39%; width: 3%; aspect-ratio: 1; border-radius: 50%; background: #0a0a10; }

/* Com JS e movimento liberado, o tour vira uma cena presa que o scroll conduz. */
.js-tour .tour { height: 640vh; }
.js-tour .tour__stage {
  position: sticky; top: 0; height: 100svh; min-height: 0; padding: 0;
  display: block;
}
.js-tour .hero {
  position: absolute; left: 50%; top: max(104px, 12vh); width: min(100% - 2 * var(--gutter), 1100px);
  transform: translate(-50%, var(--hero-y, 0px)); opacity: var(--hero-o, 1);
}
.js-tour .tour__phone {
  position: absolute; left: 50%; top: 50%; margin: 0;
  transform: translate(calc(-50% + var(--px, 0px)), calc(-50% + var(--py, 0px)));
}
.js-tour .tour__captions { position: absolute; inset: 0; margin: 0; max-width: none; pointer-events: none; }
.js-tour .caption {
  position: absolute; top: 50%; width: min(36vw, 460px);
  opacity: 0; transform: translateY(calc(-50% + 30px));
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.js-tour .caption--right { right: max(var(--gutter), calc(50% - 560px)); }
.js-tour .caption--left { left: max(var(--gutter), calc(50% - 560px)); }
.js-tour .caption.is-active { opacity: 1; transform: translateY(-50%); }
.js-tour .tour__progress {
  display: flex; gap: 8px; position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%);
  opacity: var(--prog-o, 0); transition: opacity 0.4s;
}
.tour__progress i { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.24); transition: width 0.4s var(--ease), background 0.4s; }
.tour__progress i.is-active { width: 28px; background: var(--on-night); }
.js-tour .tour__hint {
  display: block; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-2);
  opacity: var(--hint-o, 1);
}
.js-tour .tour__hint::after {
  content: ''; display: block; width: 1.5px; height: 28px; margin: 10px auto 0;
  background: linear-gradient(var(--on-night-2), transparent);
  animation: hint 1.8s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 860px) {
  .js-tour .tour { height: 600vh; }
  .phone { --w: min(58vw, 34svh); }
  .js-tour .caption,
  .js-tour .caption--left,
  .js-tour .caption--right {
    left: var(--gutter); right: var(--gutter); top: auto; bottom: 64px; width: auto; text-align: center;
    transform: translateY(24px);
  }
  .js-tour .caption.is-active { transform: none; }
  .caption h2 { font-size: clamp(28px, 7.4vw, 40px); }
  .caption p:last-child { font-size: 16px; margin-inline: auto; margin-top: 10px; }
  .js-tour .tour__progress { bottom: 26px; }
}

/* ---------- Offline ---------- */

.offline { position: relative; padding: clamp(120px, 18vw, 220px) 0; text-align: center; background: var(--night); }
.offline__inner { display: grid; justify-items: center; }
.offline .lead { margin-inline: auto; }
.airplane {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 44px;
  padding: 12px 14px 12px 12px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--night-line);
}
.airplane__icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--orange); color: #3a2300;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}
.airplane__label { font-weight: 700; font-size: 17px; }
.airplane__toggle {
  position: relative; width: 52px; height: 32px; border-radius: 16px; margin-left: 22px;
  background: rgba(255, 255, 255, 0.18); transition: background 0.5s var(--ease) 0.3s;
}
.airplane__toggle i {
  position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.5s var(--ease) 0.3s;
}
.airplane.is-in .airplane__toggle { background: #34c759; }
.airplane.is-in .airplane__toggle i { transform: translateX(20px); }

/* ---------- Seções claras ---------- */

.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.light--white { background: var(--white); }
.light .lead { color: var(--ink-2); }
.light :focus-visible { outline-color: var(--blue); }

.section-head { margin-bottom: clamp(48px, 6vw, 80px); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 60px; }
.section-head--row .lead { margin-top: 0; max-width: 36ch; }

.games, .styles, .features, .faq, .more, .howto { padding: clamp(96px, 12vw, 160px) 0; }

.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.game-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 26px; border-radius: var(--radius); background: var(--white);
  text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 rgba(17, 18, 24, 0.04), 0 0 0 1px rgba(17, 18, 24, 0.04);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
a.game-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(17, 18, 24, 0.28), 0 0 0 1px rgba(17, 18, 24, 0.05); }
.game-card h3 { margin-top: 22px; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.game-card p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.game-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px;
  font-size: 14px; font-weight: 700; color: var(--ink);
}
.game-card__more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
a.game-card:hover .game-card__more svg { transform: translateX(4px); }

.piece {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px;
  background: var(--piece); color: var(--piece-ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -5px 0 rgba(0, 0, 0, 0.16), 0 10px 20px -10px rgba(17, 18, 24, 0.35);
}
.piece svg { width: 62%; height: 62%; overflow: visible; }
.piece.piece--xl { width: min(60vw, 260px); height: min(60vw, 260px); border-radius: 64px; box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.35), inset 0 -12px 0 rgba(0, 0, 0, 0.16), 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.piece--xl svg { width: 58%; height: 58%; }

/* ---------- Desafio do Dia ---------- */

.daily { padding: clamp(110px, 14vw, 180px) 0; background: radial-gradient(60% 60% at 80% 50%, rgba(212, 42, 111, 0.16), transparent 70%), var(--night); overflow: clip; }
.daily__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(48px, 7vw, 100px); align-items: center; }
.ticks { display: grid; gap: 14px; margin-top: 36px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23053B35' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.daily__board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; justify-self: center; width: 100%; }
.dtile {
  display: flex; flex-direction: column; min-height: 168px; padding: 20px 20px 18px; border-radius: 26px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}
.dtile small { font: 700 12px/1 var(--text); letter-spacing: 0.1em; text-transform: uppercase; }
.dtile strong { font: 800 clamp(24px, 2.6vw, 32px)/1.05 var(--display); letter-spacing: -0.02em; margin-top: 8px; }
.dtile span { margin-top: auto; font-weight: 700; font-size: 15px; }
.dtile--orange { background: var(--orange); color: #3a2300; }
.dtile--blue { background: var(--blue); color: #fff; text-align: right; align-items: flex-end; }
.dtile--teal { background: var(--teal); color: #053b35; }
.dtile--pink { background: var(--pink); color: #fff; text-align: right; align-items: flex-end; }
.bar { display: block; width: 80%; height: 8px; border-radius: 4px; background: rgba(5, 59, 53, 0.22); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #053b35; transition: width 1.4s var(--ease) 0.4s; }
.is-in .bar i { width: 21%; }
.streak {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; align-content: center;
  background: var(--pink); color: #fff;
  border: 8px solid var(--night);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
  scale: 0.6; opacity: 0; transition: scale 0.8s var(--ease) 0.25s, opacity 0.5s 0.25s;
}
.is-in .streak { scale: 1; opacity: 1; }
.streak strong { font: 800 clamp(34px, 4vw, 48px)/0.9 var(--display); letter-spacing: -0.04em; }
.streak small { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.streak__flame { color: var(--orange); margin-bottom: 2px; }
.streak__flame svg { width: 22px; height: 22px; fill: var(--orange); stroke: none; }

/* ---------- Estilos (trilho) ---------- */

.rail__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 10px max(var(--gutter), calc((100% - var(--wrap)) / 2)) 30px;
  scroll-padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.style-card { flex: 0 0 auto; width: clamp(230px, 24vw, 290px); scroll-snap-align: start; }
.style-card figcaption { display: grid; gap: 4px; margin-top: 22px; }
.style-card strong { font: 750 24px/1.1 var(--display); letter-spacing: -0.02em; }
.style-card figcaption > span:last-child { color: var(--ink-2); font-size: 15px; }
.style-card figure { margin: 0; }
.tag {
  justify-self: start; margin-bottom: 6px; padding: 5px 10px; border-radius: 8px;
  background: rgba(17, 18, 24, 0.06); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink-2);
}
.mini-phone {
  position: relative; border-radius: 15% / 7%; padding: 3.5%; background: #0b0b10;
  box-shadow: inset 0 0 0 1.5px #5a5c68, 0 30px 60px -30px rgba(17, 18, 24, 0.45);
  transition: transform 0.5s var(--ease);
}
.mini-phone img { border-radius: 12% / 5.6%; width: 100%; aspect-ratio: 720 / 1565; object-fit: cover; object-position: top; }
.style-card:hover .mini-phone { transform: translateY(-6px) rotate(-1deg); }
.rail__controls { display: flex; justify-content: flex-end; gap: 10px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(17, 18, 24, 0.07); color: var(--ink); transition: background 0.2s, opacity 0.2s;
}
.round-btn:hover { background: rgba(17, 18, 24, 0.13); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Recursos ---------- */

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(32px, 5vw, 72px); }
.feature { padding: 32px 0 44px; border-top: 1px solid var(--line); }
.feature__icon { display: block; width: 28px; height: 28px; margin-bottom: 20px; color: var(--ink); }
.feature__icon svg { width: 100%; height: 100%; }
.feature:nth-child(4n + 1) .feature__icon { color: #b06a00; }
.feature:nth-child(4n + 2) .feature__icon { color: var(--blue); }
.feature:nth-child(4n + 3) .feature__icon { color: #0b8579; }
.feature:nth-child(4n + 4) .feature__icon { color: var(--pink); }
.feature h3 { font-size: 23px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.feature p { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }

/* ---------- FAQ ---------- */

.faq { padding-top: 0; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font: 650 clamp(19px, 1.8vw, 22px)/1.3 var(--text); letter-spacing: -0.01em; }
.faq__item p { padding: 0 0 28px; color: var(--ink-2); max-width: 64ch; font-size: 17px; }
.faq__plus { position: relative; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; background: var(--paper); transition: background 0.2s, transform 0.4s var(--ease); }
.faq__plus::before, .faq__plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 1px; background: var(--ink); translate: -50% -50%; }
.faq__plus::after { rotate: 90deg; transition: rotate 0.4s var(--ease); }
.faq__item[open] .faq__plus { transform: rotate(180deg); background: var(--ink); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--white); }
.faq__item[open] .faq__plus::after { rotate: 0deg; }
.faq__item summary:hover .faq__plus { background: var(--line); }
.faq__item[open] summary:hover .faq__plus { background: var(--ink); }

/* ---------- Download ---------- */

.download { position: relative; padding: clamp(120px, 16vw, 200px) 0; text-align: center; overflow: clip; background: var(--night); }
.download::before {
  content: ''; position: absolute; inset: 20% 10% -40%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(91, 91, 240, 0.35), rgba(212, 42, 111, 0.16) 50%, transparent 75%);
  filter: blur(30px);
}
.download__inner { position: relative; display: grid; justify-items: center; }
.download__icon { width: 112px; border-radius: 26px; margin-bottom: 40px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7); }
.download .lead { margin-inline: auto; }

/* ---------- Footer ---------- */

.footer { background: var(--night); border-top: 1px solid var(--night-line); padding: 64px 0 40px; color: var(--on-night-2); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__brand .brand { color: var(--on-night); margin-bottom: 14px; }
.footer__brand p { max-width: 30ch; }
.footer h2 { font: 700 12px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-night); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer__games ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer a { text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--on-night); }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 12px; }
.footer__langs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 20px; font-size: 14px; }
.footer__langs h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.footer__langs h2 svg { width: 16px; height: 16px; }
.footer__langs ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer__langs [aria-current] { color: var(--on-night); font-weight: 700; }

/* ---------- Página de jogo ---------- */

.game-hero { position: relative; padding: 150px 0 110px; overflow: clip; }
.tour__glow--piece { background: radial-gradient(40% 50% at 72% 45%, color-mix(in srgb, var(--piece) 45%, transparent), transparent 70%), radial-gradient(30% 30% at 20% 30%, rgba(91, 91, 240, 0.2), transparent 70%); }
.game-hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.game-hero .display { font-size: clamp(40px, 5.6vw, 72px); margin-top: 26px; }
.game-hero__phone { justify-self: center; width: min(100%, 320px); }
.game-hero__phone--icon { width: auto; }
.mini-phone--lg { box-shadow: inset 0 0 0 1.5px #5a5c68, 0 50px 100px -40px rgba(0, 0, 0, 0.8); transform: rotate(3deg); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; font-size: 14px; color: var(--on-night-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-night); }
.steps { display: grid; gap: 14px; margin-top: 40px; }
.steps li { display: flex; gap: 20px; align-items: center; padding: 22px 24px; border-radius: 22px; background: var(--paper); }
.steps__n {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px;
  background: var(--piece); color: var(--piece-ink); font: 800 20px/1 var(--display);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}
.steps p { font-size: 18px; font-weight: 550; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.facts div { padding: 26px 24px; border-radius: 22px; border: 1px solid var(--line); }
.facts strong { display: block; font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.facts span { color: var(--ink-2); font-size: 15px; }
.more .display { margin-bottom: 48px; }
.game-grid--compact { grid-template-columns: repeat(5, 1fr); gap: 12px; }
.game-grid--compact .game-card { padding: 20px; }
.game-grid--compact .piece { width: 52px; height: 52px; border-radius: 15px; }
.game-grid--compact h3 { font-size: 19px; margin-top: 16px; }
.game-grid--compact p { font-size: 14px; }


/* ---------- Política de privacidade ---------- */

.legal { padding: 140px 0 120px; }
.legal__head { margin-bottom: 40px; }
.legal__date { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.legal__toc a {
  padding: 8px 14px; border-radius: 999px; background: var(--paper); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: background 0.2s;
}
.legal__toc a:hover { background: var(--line); }
.legal section { scroll-margin-top: 96px; }
.legal h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 750; letter-spacing: -0.02em; }
.legal .legal__head h2 { margin: 0; font-size: clamp(34px, 4.6vw, 56px); }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; max-width: 68ch; }
.legal p { margin-bottom: 16px; }
.legal ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; display: grid; gap: 8px; }
.legal b { color: var(--ink); font-weight: 650; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.legal a:hover { color: var(--blue); }
.legal code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--paper); color: var(--ink); }
.legal__intro { font-size: 19px; }
.legal__table { margin: 24px 0 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.legal__table table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 15px; }
.legal__table th:first-child, .legal__table td:first-child { width: 58%; }
.legal__table th { padding: 14px 18px; text-align: left; background: var(--paper); font-weight: 700; color: var(--ink); }
.legal__table td { padding: 14px 18px; vertical-align: top; color: var(--ink-2); border-top: 1px solid var(--line); line-height: 1.55; }
.legal__en { margin-top: 80px; padding-top: 64px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.contact-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 32px; padding: 28px; border-radius: 22px; background: var(--ink); color: var(--white);
}
.legal .legal__head .contact-card h2 { margin: 0; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; color: var(--white); }
.legal .contact-card p { margin: 8px 0 0; color: rgba(255, 255, 255, 0.72); max-width: 44ch; }
.legal .contact-card__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 15px;
  background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12); transition: transform 0.2s var(--ease);
}
.legal .contact-card__btn:hover { color: var(--ink); transform: translateY(-1px); }
.contact-card__btn svg { width: 20px; height: 20px; }
.legal__note { margin-top: 56px; padding: 22px 24px; border-radius: 18px; background: var(--paper); font-size: 15px; }

/* ---------- Responsivo ---------- */

@media (max-width: 1080px) {
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .game-grid--compact { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .daily__grid, .game-hero__grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr 1fr; }
  .game-grid--compact { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .game-hero { padding-top: 120px; }
  .game-hero__phone { width: min(70%, 280px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-card { padding: 20px; border-radius: 22px; }
  .game-card h3 { font-size: 19px; margin-top: 16px; letter-spacing: -0.03em; }
  .game-card p { font-size: 14px; }
  .piece { width: 52px; height: 52px; border-radius: 15px; }
  .game-grid--compact { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature { padding: 26px 0 30px; }
  .facts { grid-template-columns: 1fr; }
  .dtile { min-height: 140px; padding: 16px; border-radius: 22px; }
  .stores { justify-content: center; }
  .lang-note { margin-inline: auto; text-align: center; }
  /* No celular o aparelho cobre a dica; em inglês, francês e alemão ela é mais longa e as pontas apareciam. */
  .js-tour .tour__hint { display: none; }
  .store { height: 54px; padding: 0 18px 0 14px; font-size: 16px; }
  .stores--lg .store { height: 58px; font-size: 17px; }
  .footer__games ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
