/* Sidera Games — site styles.
   The hero is the concept (assets/design/site_ref.png)
   rebuilt: a painted backdrop with everything live placed on it in the
   concept's own pixels. One "design pixel" is --u (the stage's width over
   1376), so every place and size below reads like the concept. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --night: #0b1036;
  --ink: #3a2312;
  --cream: #ebdcbc;
  --gold: #c99a4c;
  --gold-light: #f3d79c;
  --gold-deep: #8a5a22;
  --brown: #4a3220;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--brown);
  font-family: var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }

.sr, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 10px 16px; background: #fff; color: #000; border-radius: 8px; }

/* ---------- The stage ---------- */

.hero {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1376 / 768;
  background: var(--night) url("../assets/img/hero.webp") top left / 100% auto no-repeat;
  --u: calc(100cqw / 1376);
  --vx: 0;
  --vy: 0;
  overflow: hidden;
}

/* A sprite (or anything else) at its rect in the concept. */
.place {
  position: absolute;
  left: calc((var(--x) - var(--vx)) * var(--u));
  top: calc((var(--y) - var(--vy)) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
}

.topbar { display: none; }

/* The header's words, centred where the concept has them. */
.nav-link {
  position: absolute;
  left: calc(var(--cx) * var(--u));
  top: calc(var(--cy) * var(--u));
  transform: translate(-50%, -50%);
  font: 600 calc(18.5 * var(--u)) / 1.06 var(--serif);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 250, 238, 0.6);
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-link:hover, .nav-link:focus-visible {
  color: #7a4a14;
  text-shadow: 0 0 calc(10 * var(--u)) rgba(240, 190, 90, 0.75);
}

/* The concept's gold buttons, their words written live. */
.pill {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(1 * var(--u));
  font: 600 calc(18 * var(--u)) / 1 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
  background: center / 100% 100% no-repeat;
  transition: filter 0.2s, transform 0.2s;
}
.pill-header { background-image: url("../assets/img/pill_header.webp"); }
.pill-hero { background-image: url("../assets/img/pill_hero.webp"); font-size: calc(17 * var(--u)); }
.pill:hover, .pill:focus-visible {
  filter: brightness(1.08) drop-shadow(0 0 calc(9 * var(--u)) rgba(255, 205, 110, 0.65));
}
.pill:active { transform: translateY(1px); }

.logo-link { --x: 592; --y: 8; --w: 210; --h: 100; border-radius: 30px; }

/* ---------- The scene: tiles, twinkles ---------- */

.scene {
  position: absolute;
  inset: 0;
  container-type: inline-size;
  pointer-events: none;
}
.tile img { display: block; width: 100%; height: 100%; }
.tile {
  will-change: transform;
  animation: float var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(calc(var(--amp, 5) * -1 * var(--u))) rotate(calc(var(--sway, 1) * -1deg)); }
  50% { transform: translateY(calc(var(--amp, 5) * var(--u))) rotate(calc(var(--sway, 1) * 1deg)); }
}
.sp-sun { --amp: 4; --sway: 1.2; --dur: 6.2s; }
.sp-crystal { --amp: 5; --sway: 1.5; --dur: 5.4s; --delay: -2.1s; }
.sp-fire { --amp: 4; --sway: 2.2; --dur: 4.6s; --delay: -1s; }
.sp-moon { --amp: 5; --sway: 3; --dur: 5.8s; --delay: -3.2s; }
.sp-water { --amp: 4; --sway: 3; --dur: 4.2s; --delay: -1.6s; }

/* The crystal's aura: its own silhouette, softened, in violet light. */
.glow.place {
  left: calc((var(--x) - var(--glow-pad) - var(--vx)) * var(--u));
  top: calc((var(--y) - var(--glow-pad) - var(--vy)) * var(--u));
  width: calc((var(--w) + 2 * var(--glow-pad)) * var(--u));
  height: calc((var(--h) + 2 * var(--glow-pad)) * var(--u));
  background: url("../assets/img/crystal_glow.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
  animation: float var(--dur) ease-in-out var(--delay) infinite, aura 3.6s ease-in-out infinite;
}
@keyframes aura {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}
/* The drop's and the moon's light, as in the concept. */
.sp-water img { filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(130, 235, 255, 0.9)) drop-shadow(0 0 calc(12 * var(--u)) rgba(60, 200, 255, 0.65)); }
.sp-moon img { filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 215, 130, 0.6)) drop-shadow(0 0 calc(12 * var(--u)) rgba(255, 190, 90, 0.4)); }

/* A four-pointed sparkle over a painted star. */
.star {
  position: absolute;
  left: calc((var(--cx) - var(--vx)) * var(--u));
  top: calc((var(--cy) - var(--vy)) * var(--u));
  width: calc(var(--size, 56) * var(--u));
  height: calc(var(--size, 56) * var(--u));
  translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff8e0'/%3E%3Cstop offset='.25' stop-color='%23ffd77a' stop-opacity='.7'/%3E%3Cstop offset='1' stop-color='%23ffb440' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle r='30' fill='url(%23g)'/%3E%3Cpath fill='%23fff3cf' d='M0-50 4-4 50 0 4 4 0 50-4 4-50 0-4-4Z'/%3E%3Cpath fill='%23fff3cf' opacity='.6' d='M0-22 2-2 22 0 2 2 0 22-2 2-22 0-2-2Z' transform='rotate(45)'/%3E%3C/svg%3E") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: twinkle var(--t, 2.8s) ease-in-out var(--d, 0s) infinite;
}
.star-logo { --size: 62; }
.star-phone { --size: 40; --t: 3.4s; --d: -1.2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; scale: 0.7; }
  50% { opacity: 1; scale: 1.1; }
}
.tw {
  position: absolute;
  left: calc((var(--cx) - var(--vx)) * var(--u));
  top: calc((var(--cy) - var(--vy)) * var(--u));
  width: calc(var(--s) * var(--u));
  height: calc(var(--s) * var(--u));
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 236, 190, 0.6) 40%, transparent);
  mix-blend-mode: screen;
  animation: twinkle var(--t) ease-in-out var(--d) infinite;
}

/* The phone screen's subtitle (the concept's was garbled). */
.phone-plaque {
  position: absolute;
  left: calc((989 - var(--vx)) * var(--u));
  top: calc((281.5 - var(--vy)) * var(--u));
  width: calc(112 * var(--u));
  height: calc(15 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 calc(8.2 * var(--u)) / 1 var(--serif);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #f2d08b;
}

/* The "coming soon" card's plaque, tilted with it. */
.soon-plaque {
  position: absolute;
  left: calc((1245.5 - var(--vx)) * var(--u));
  top: calc((261.5 - var(--vy)) * var(--u));
  translate: -50% -50%;
  rotate: 2.6deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 600 calc(14.5 * var(--u)) / 1 var(--serif);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #3a2412;
}
.soon-plaque:lang(en) { font-size: calc(12.5 * var(--u)); }


/* ---------- The hero's words ---------- */

.copy {
  position: absolute;
  inset: 0;
  --vx: 0;
  --vy: 0;
  pointer-events: none;
}
.copy > * { pointer-events: auto; }
.copy h1 {
  position: absolute;
  left: calc(189 * var(--u));
  top: calc(192 * var(--u));
  margin: 0;
  font: 650 calc(48.4 * var(--u)) / calc(47 * var(--u)) var(--serif);
  letter-spacing: -0.005em;
  color: #f0cf95;
  background: linear-gradient(180deg, #f8e0b0 10%, #e7bf82 55%, #cd9858 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter: drop-shadow(0 calc(2 * var(--u)) calc(2 * var(--u)) rgba(8, 6, 30, 0.85));
}
.copy h1, .copy .pill-hero { position: absolute; }
.copy p {
  position: absolute;
  left: calc(195 * var(--u));
  width: calc(500 * var(--u));
  margin: 0;
  font: 400 calc(18.4 * var(--u)) / calc(22 * var(--u)) var(--sans);
  color: var(--cream);
  text-shadow: 0 1px 3px rgba(5, 5, 25, 0.8);
}
.copy .lead-1 { top: calc(297 * var(--u)); }
.copy .lead-2 { top: calc(359 * var(--u)); }
.stores {
  position: absolute;
  left: calc(201 * var(--u));
  top: calc(517 * var(--u));
  display: flex;
  gap: calc(13 * var(--u));
}
.store { display: block; line-height: 0; border-radius: 8px; transition: transform 0.2s, filter 0.2s; }
.store svg { width: calc(165 * var(--u)); height: calc(44 * var(--u)); font-family: var(--sans); }
.store:hover, .store:focus-visible { transform: translateY(-1px); filter: drop-shadow(0 0 8px rgba(255, 220, 150, 0.45)); }

/* ---------- Sections ---------- */

main, .doc-page {
  background:
    linear-gradient(rgba(251, 245, 233, 0.58), rgba(251, 245, 233, 0.58)),
    url("../assets/img/marble.webp") center top / 720px repeat;
  box-shadow: inset 0 14px 18px -12px rgba(70, 45, 20, 0.35);
}
.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 28px;
  scroll-margin-top: 0;
}
.section + .section { padding-top: 24px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section h2 {
  margin: 0 0 18px;
  font: 700 clamp(34px, 4vw, 48px) / 1.1 var(--serif);
  color: var(--gold-deep);
  background: linear-gradient(180deg, #a87132, #6d4318);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section h2::after {
  content: "";
  display: block;
  width: 220px;
  height: 18px;
  margin: 14px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cg fill='none' stroke='%23c3923f' stroke-width='1.4'%3E%3Cpath d='M0 9h90M130 9h90'/%3E%3Ccircle cx='96' cy='9' r='2' fill='%23c3923f'/%3E%3Ccircle cx='124' cy='9' r='2' fill='%23c3923f'/%3E%3C/g%3E%3Cpath fill='%23c3923f' d='M110 0l2.2 6.8L119 9l-6.8 2.2L110 18l-2.2-6.8L101 9l6.8-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-head p { margin: 0; font-size: 18px; line-height: 1.6; color: #5b4630; }

/* A night panel framed in gold, its sky the hero's own. */
.night {
  position: relative;
  color: var(--cream);
  background:
    linear-gradient(rgba(9, 12, 46, 0.35), rgba(9, 12, 46, 0.6)),
    url("../assets/img/sky.webp") center / cover no-repeat,
    var(--night);
  border: 2px solid var(--gold);
  border-radius: 26px;
  box-shadow: inset 0 0 0 6px rgba(9, 12, 46, 0.6), inset 0 0 0 7px rgba(243, 215, 156, 0.45), 0 22px 44px -18px rgba(60, 36, 12, 0.55);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 60px;
}
/* Three phones fanned out: the title screen in front, the Journey and the
   puzzle behind it on either side. */
.game-shot { --spread: 134px; position: relative; display: flex; justify-content: center; padding: 10px 0; }
.device {
  margin: 0;
  width: min(250px, 100%);
  padding: 7px;
  border-radius: 38px;
  background: linear-gradient(145deg, #f6e1ac, #b98a45 45%, #f0d394 70%, #9c6c30);
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, 0.6);
}
.device img { display: block; width: 100%; height: auto; border-radius: 31px; }
.game-shot .device { position: relative; z-index: 1; width: min(236px, 100%); transform: rotate(-3deg); }
.game-shot .device.back { position: absolute; z-index: 0; width: min(206px, 80%); left: 50%; top: 52px; filter: brightness(0.82); }
.game-shot .device.left { transform: translateX(calc(-50% - var(--spread))) rotate(-11deg); }
.game-shot .device.right { transform: translateX(calc(-50% + var(--spread))) rotate(8deg); }
.kicker {
  margin: 0 0 6px;
  font: 600 13px / 1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.game-body h3 {
  margin: 0 0 16px;
  font: 700 clamp(28px, 3vw, 38px) / 1.1 var(--serif);
  color: #f6dba6;
}
.game-body > p { margin: 0 0 20px; font-size: 17px; line-height: 1.65; }
.features { margin: 0 0 28px; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 28px; margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.features li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--gold-light); }
.features strong { color: #f6dba6; font-weight: 600; }
.stores.small { position: static; gap: 12px; flex-wrap: wrap; }
.stores.small .store svg { width: 165px; height: 44px; }

.soon-card {
  margin: 36px auto 0;
  max-width: 760px;
  padding: 64px 48px 44px;
  text-align: center;
  color: #ead9b8;
  background:
    radial-gradient(circle at 50% 120%, rgba(240, 190, 100, 0.25), transparent 60%),
    linear-gradient(rgba(38, 28, 20, 0.84), rgba(30, 22, 16, 0.9)),
    url("../assets/img/sky.webp") center / cover no-repeat,
    #251b14;
  border: 2px solid #b58a4a;
  border-radius: 20px;
  box-shadow: inset 0 0 0 6px rgba(30, 22, 16, 0.7), inset 0 0 0 7px rgba(200, 160, 90, 0.4), 0 22px 44px -18px rgba(60, 36, 12, 0.5);
  position: relative;
}
.soon-seal {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 8px 30px 7px;
  font: 700 17px / 1.1 var(--serif);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  background: linear-gradient(180deg, #fbf1db, #e7d3ab);
  border: 2px solid #b58a4a;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
}
.soon-card h3 { margin: 0 0 12px; font: 600 clamp(22px, 2.4vw, 28px) / 1.25 var(--serif); color: #f3d79c; }
.soon-card p { margin: 0 auto; max-width: 520px; font-size: 16px; line-height: 1.65; }

.chart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 56px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.chapters { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.chapters li {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 24px 18px 18px;
  background: rgba(255, 251, 242, 0.78);
  border: 1px solid rgba(201, 154, 76, 0.65);
  border-radius: 18px;
  box-shadow: 0 10px 24px -14px rgba(90, 60, 20, 0.45), inset 0 1px 0 #fff;
}
.chapters img { width: 84px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(90, 60, 20, 0.3)); }
.chapters span { font: 600 12px / 1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: #a87735; }
.chapters h3 { margin: 6px 0 4px; font: 700 24px / 1.15 var(--serif); color: var(--ink); }
.chapters p { margin: 0; font-size: 16px; line-height: 1.5; color: #5b4630; }
.device.solo { width: 100%; justify-self: center; transform: rotate(2deg); }
.note { margin: 40px auto 0; max-width: 640px; text-align: center; font-size: 15px; line-height: 1.6; color: #6e583a; }

.studio { max-width: 760px; margin: 0 auto; text-align: center; }
.studio p { margin: 0 0 18px; font-size: 19px; line-height: 1.75; color: #4f3b27; }

/* ---------- The footer ---------- */

.site-footer {
  position: relative;
  color: #e9dcc2;
  background:
    linear-gradient(rgba(9, 12, 46, 0.72), rgba(7, 9, 34, 0.94)),
    url("../assets/img/sky.webp") center / cover no-repeat,
    var(--night);
  border-top: 3px solid var(--gold);
  box-shadow: inset 0 1px 0 rgba(243, 215, 156, 0.5), inset 0 5px 0 rgba(9, 12, 46, 0.9), inset 0 6px 0 rgba(201, 154, 76, 0.45);
}
/* The gold star at the top edge's middle, like the section titles'. */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 240px;
  height: 22px;
  translate: -50% -50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 18'%3E%3Cg fill='none' stroke='%23c99a4c' stroke-width='1.4'%3E%3Cpath d='M0 9h90M130 9h90'/%3E%3Ccircle cx='96' cy='9' r='2' fill='%23c99a4c'/%3E%3Ccircle cx='124' cy='9' r='2' fill='%23c99a4c'/%3E%3C/g%3E%3Cpath fill='%23f3d79c' stroke='%23c99a4c' d='M110 0l2.2 6.8L119 9l-6.8 2.2L110 18l-2.2-6.8L101 9l6.8-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.5));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 28px 44px;
}
.footer-brand img { display: block; width: 190px; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.footer-brand .games {
  display: block;
  margin: 4px 0 0 78px;
  font: 600 15px / 1 var(--serif);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-brand p { margin: 18px 0 0; max-width: 300px; font-size: 15px; line-height: 1.6; color: #cbbd9f; }
.site-footer h2 {
  margin: 6px 0 16px;
  font: 600 13px / 1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-nav a, .footer-legal a {
  color: #e9dcc2;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a { font: 500 17px / 1.3 var(--serif); }
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-legal a:hover, .footer-legal a:focus-visible { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.footer-get .stores { position: static; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-get .store svg { width: 165px; height: 44px; }
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 28px 30px;
  border-top: 1px solid rgba(201, 154, 76, 0.3);
  font-size: 14px;
  color: #b9ab8d;
}
.footer-legal p { margin: 0; }

/* The age rating, in the style of Brazil's classificação indicativa. */
.rating {
  --r: 1.25px;
  display: flex;
  flex-direction: column;
  flex: none;
  width: calc(145 * var(--r));
  height: calc(59 * var(--r));
  padding: calc(2.5 * var(--r));
  gap: calc(2 * var(--r));
  background: #0c0c0c;
  border: calc(1.5 * var(--r)) solid #d9d9d9;
  border-radius: calc(4 * var(--r));
  color: #fff;
  text-transform: uppercase;
}
.rating-head { font: 700 calc(7.4 * var(--r)) / 1 var(--sans); letter-spacing: 0.02em; text-align: center; }
.rating-body { flex: 1; display: flex; gap: calc(2 * var(--r)); }
.rating-body b {
  display: grid;
  place-items: center;
  width: calc(24 * var(--r));
  background: #0c9447;
  font: 800 calc(17 * var(--r)) / 1 var(--sans);
  border-radius: calc(1.5 * var(--r));
}
.rating-body span {
  flex: 1;
  display: grid;
  place-items: center;
  background: #fff;
  color: #111;
  font: 700 calc(7.6 * var(--r)) / 1.12 var(--sans);
  text-align: center;
  text-transform: none;
}
.rating-foot { font: 500 calc(4.6 * var(--r)) / 1 var(--sans); letter-spacing: 0.01em; text-align: center; opacity: 0.85; }

/* ---------- The language switch ---------- */

.langs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(201, 154, 76, 0.55);
  border-radius: 999px;
  font: 600 13px / 1 var(--serif);
  letter-spacing: 0.06em;
}
.langs a {
  padding: 6px 9px 5px;
  border-radius: 999px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, background-color 0.2s;
}
.langs a:hover, .langs a:focus-visible { opacity: 1; }
.langs a[aria-current] {
  opacity: 1;
  color: var(--ink);
  background: linear-gradient(180deg, #f6e2b0, #d9ad62);
}
/* On the hero: a little glass chip on the sky, under the frame's corner. */
.hero > .langs {
  position: absolute;
  left: calc(1258 * var(--u));
  top: calc(146 * var(--u));
  translate: -50% -50%;
  padding: calc(2 * var(--u));
  font-size: calc(11.5 * var(--u));
  color: var(--gold-light);
  background: rgba(11, 16, 54, 0.55);
  box-shadow: 0 0 calc(10 * var(--u)) rgba(0, 0, 0, 0.35);
}
.hero > .langs a { padding: calc(5 * var(--u)) calc(8 * var(--u)) calc(4 * var(--u)); }
.footer-legal .langs { color: var(--gold-light); }
.page-top .langs {
  position: absolute;
  right: 24px;
  top: 50%;
  translate: 0 -50%;
  color: var(--ink);
  background: rgba(255, 250, 238, 0.45);
}

/* ---------- A document page (the privacy policy) ---------- */

.doc-page main { background: none; box-shadow: none; }
.page-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  background:
    linear-gradient(rgba(251, 245, 233, 0.5), rgba(251, 245, 233, 0.5)),
    url("../assets/img/marble.webp") center / 600px;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 2px 0 rgba(120, 80, 30, 0.35), 0 8px 18px rgba(60, 40, 20, 0.25);
}
.page-top-logo { display: block; line-height: 0; }
.page-top-logo img, .topbar-logo img { height: 100%; width: auto; filter: drop-shadow(0 3px 3px rgba(90, 55, 15, 0.35)); }
.page-top-logo { height: 82px; }
.page-back {
  position: absolute;
  left: 24px;
  top: 50%;
  translate: 0 -50%;
  font: 600 15px / 1 var(--serif);
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.page-back:hover, .page-back:focus-visible { color: #7a4a14; }
.page-back .short { display: none; }
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 88px;
  font-size: 17px;
  line-height: 1.7;
  color: #46331f;
}
.doc h1 { margin: 0 0 6px; font: 700 clamp(32px, 4vw, 44px) / 1.15 var(--serif); color: var(--gold-deep); }
.doc-date { margin: 0 0 28px; font-size: 14px; color: #8a6a40; }
.doc h2 { margin: 40px 0 10px; font: 700 26px / 1.2 var(--serif); color: var(--ink); }
.doc h3 { margin: 22px 0 4px; font: 600 19px / 1.3 var(--serif); color: #6d4318; }
.doc p { margin: 0 0 14px; }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 820px) {
  .hero {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    background: var(--night);
    overflow: visible;
  }

  .topbar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    background:
      linear-gradient(rgba(251, 245, 233, 0.5), rgba(251, 245, 233, 0.5)),
      url("../assets/img/marble.webp") center / 520px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 2px 0 rgba(120, 80, 30, 0.35), 0 8px 18px rgba(0, 0, 0, 0.35);
  }
  .topbar-logo { display: block; height: 58px; line-height: 0; }
  .menu-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    translate: 0 -50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-content: center;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle > span:not(.sr) { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--gold-deep); transition: transform 0.25s, opacity 0.25s; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .nav {
    position: absolute;
    z-index: 4;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 16px 22px;
    background:
      linear-gradient(rgba(251, 245, 233, 0.66), rgba(251, 245, 233, 0.66)),
      url("../assets/img/marble.webp") center / 520px;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  }
  .nav.open { display: flex; }
  .nav-link {
    position: static;
    transform: none;
    padding: 12px;
    font-size: 17px;
  }
  .nav-link br { display: none; }
  .nav .pill { position: static; width: 230px; height: 57px; margin-top: 8px; font-size: 17px; }
  .logo-link { display: none; }
  .hero > .langs {
    z-index: 6;
    left: 12px;
    top: 38px;
    translate: 0 -50%;
    padding: 2px;
    font-size: 13px;
    color: var(--ink);
    background: rgba(255, 250, 238, 0.45);
    box-shadow: none;
  }
  .hero > .langs a { padding: 6px 9px 5px; }

  .copy {
    position: relative;
    order: 2;
    inset: auto;
    padding: 44px 22px 36px;
    background:
      linear-gradient(rgba(9, 12, 46, 0.1), rgba(9, 12, 46, 0.45)),
      url("../assets/img/sky.webp") 0% 50% / cover no-repeat,
      var(--night);
  }
  .copy h1, .copy p, .copy .pill-hero, .stores { position: static; }
  .br-wide { display: none; }
  .copy h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.1; margin-bottom: 16px; filter: drop-shadow(0 2px 2px rgba(8, 6, 30, 0.85)); }
  .copy p { width: auto; font-size: 17px; line-height: 1.55; margin-bottom: 14px; }
  .copy .pill-hero { width: 232px; height: 46px; margin: 26px 0 22px; font-size: 16px; }
  .stores { flex-wrap: wrap; gap: 12px; }
  .store svg { width: 150px; height: 40px; }

  /* The scene: the concept's right side (the phone, the tiles, the balcony). */
  .scene {
    position: relative;
    order: 3;
    inset: auto;
    width: 100%;
    aspect-ratio: 676 / 628;
    overflow: hidden;
    --vx: 700;
    --vy: 140;
    --u: calc(100cqw / 676);
    background: url("../assets/img/hero.webp") no-repeat;
    background-size: calc(1376 * var(--u)) auto;
    background-position: calc(-700 * var(--u)) calc(-140 * var(--u));
  }
  .star-logo { display: none; }

  .section { padding: 64px 18px; }
  .section + .section { padding-top: 8px; }
  .game-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 22px 32px; }
  .game-shot { --spread: 78px; }
  .game-shot .device { width: min(210px, 62%); }
  .game-shot .device.back { width: min(180px, 52%); top: 40px; }
  .chart-layout { grid-template-columns: 1fr; gap: 36px; }
  .device.solo { width: min(250px, 72%); }
  .chapters li { grid-template-columns: 64px 1fr; padding: 14px 16px 14px 12px; gap: 14px; }
  .chapters img { width: 64px; height: 56px; }
  .soon-card { padding: 56px 22px 32px; }

  .footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 56px 22px 32px; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand .games { margin-left: 0.42em; }
  .footer-get .stores { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .footer-get .store svg { width: 150px; height: 40px; }
  .footer-legal { flex-direction: column; text-align: center; padding: 22px 18px 30px; }

  .page-top { height: 96px; }
  .page-top-logo { height: 60px; }
  .page-back { left: 16px; font-size: 14px; }
  .page-back .long { display: none; }
  .page-back .short { display: inline; }
  .page-top .langs { right: 14px; }
  .doc { padding: 44px 20px 64px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .glow.place, .star, .tw { animation: none; }
}
