/* Outfit by The Outfit Project Authors, SIL Open Font License 1.1 (see /assets/fonts/OFL.txt). */
@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/Outfit-Variable.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --bg: #060b1d;
  --bg-raised: #0d1633;
  --card: #111c3f;
  --text: #f5f7ff;
  --muted: #a9b3d1;
  --cyan: #3fe0f0;
  --violet: #a77bff;
  --pink: #ff5aa8;
  --accent: linear-gradient(100deg, var(--cyan), var(--violet));
  --line: #ffffff17;
  --radius: 28px;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -200px, #1b2a6b55, transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  margin: 0;
  line-height: 1.14; letter-spacing: -.02em; font-weight: 750;
}
p { margin: 0; }
em {
  font-style: normal;
  text-shadow: none;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 12px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 99px;
  background: var(--cyan); color: var(--bg); font-weight: 700; text-decoration: none;
  transform: translateY(-200%); opacity: 0; pointer-events: none;
}
.skip:focus-visible { transform: none; opacity: 1; pointer-events: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 108px; padding: 0 clamp(16px, 4vw, 60px);
  background: #060b1dd9;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.brand img { width: auto; height: 92px; }
#navigation { display: flex; align-items: center; gap: clamp(20px, 3.4vw, 48px); }
#navigation a, .nav-group-heading a { text-decoration: none; font-weight: 600; font-size: 16px; transition: color .2s; }
#navigation a:hover, #navigation [aria-current="page"] { color: var(--cyan); }
.nav-group { position: relative; }
.nav-group-heading { display: flex; align-items: center; gap: 2px; }
.submenu-toggle {
  width: 22px; height: 22px; border: 0; padding: 0; background: none; color: inherit; cursor: pointer;
}
.submenu-toggle::before {
  content: ''; display: block; width: 7px; height: 7px; margin: 4px auto 0;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.nav-group.is-open .submenu-toggle::before { transform: rotate(-135deg) translate(-3px, -3px); }
.submenu {
  position: absolute; top: calc(100% + 14px); left: -18px; min-width: 170px;
  display: grid; padding: 10px; border-radius: 18px;
  background: var(--bg-raised); border: 1px solid var(--line); box-shadow: 0 20px 50px #0008;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s var(--ease);
}
.nav-group:last-child .submenu { left: auto; right: -10px; }
.submenu a { padding: 10px 12px; border-radius: 10px; }
.submenu a:hover { background: #ffffff0d; }
.games-submenu { min-width: 240px; }
.games-submenu a { display: flex; align-items: center; gap: 12px; }
.games-submenu img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.games-submenu span { display: grid; line-height: 1.25; }
.games-submenu strong { font-weight: 700; }
.games-submenu small { color: var(--muted); font-size: 12px; font-weight: 500; }
.submenu .submenu-all { white-space: nowrap; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--cyan); font-size: 14px; }
.nav-group.is-open .submenu { opacity: 1; visibility: visible; transform: none; }
.menu-toggle { display: none; }

/* Shared type */
.big-title { font-size: clamp(42px, 6.4vw, 92px); text-align: center; }
.section-title { font-size: clamp(36px, 5vw, 68px); }
.statement-title { font-size: clamp(30px, 3.8vw, 52px); max-width: 860px; margin: 0 auto; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 640px; margin: 16px auto 0; }
.muted { color: var(--muted); }
.kicker { display: block; margin-bottom: 14px; color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .16em; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  color: var(--cyan); font-weight: 700; text-decoration: none;
}
.arrow-dot, .round-arrow {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--cyan); color: var(--bg); transition: transform .25s var(--ease);
}
.arrow-dot svg, .round-arrow svg { width: 15px; height: 15px; }
.arrow-link:hover .arrow-dot { transform: translateX(4px); }
.pill-button {
  display: inline-block; margin-top: 28px; padding: 14px 30px; border-radius: 99px;
  background: var(--accent); color: #07102a; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px #3fe0f033; transition: transform .25s var(--ease), box-shadow .25s;
}
.pill-button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px #a77bff55; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 28px; }
.cta-row .pill-button, .cta-row .arrow-link { margin-top: 0; }
.pill-button.ghost { background: transparent; color: var(--text); border: 1.5px solid #ffffff40; box-shadow: none; padding: 12.5px 28.5px; }
.pill-button.ghost:hover { border-color: var(--cyan); box-shadow: 0 10px 30px #3fe0f022; }

.centered-block { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter) 0; text-align: center; }

/* Home */
.centered-block.home-intro { padding-top: clamp(40px, 6vw, 80px); }

/* Wide media panels */
.wide-media {
  position: relative; margin-top: clamp(32px, 4vw, 56px);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9;
}
.wide-media img { width: 100%; height: 100%; object-fit: cover; }
.wide-media::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #4b35b499); }
.wide-media + .arrow-link { margin-top: 28px; }

/* Icon row */
.icon-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(18px, 4vw, 60px); margin-top: clamp(30px, 4vw, 50px); }
.icon-tile { display: grid; justify-items: center; gap: 14px; width: 150px; text-decoration: none; font-weight: 700; }
.icon-tile img { width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 16px 40px #0008; transition: transform .35s var(--ease); }
.icon-tile:hover img { transform: translateY(-8px) rotate(-3deg); }
.icon-tile span { margin-top: -10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.icon-row.large .icon-tile { width: 210px; font-size: 19px; }
.icon-row.large .icon-tile img { width: 210px; height: 210px; border-radius: 46px; }
.icon-row + .arrow-link { margin-top: 36px; }

/* Home finale */
.finale { padding-bottom: 20px; }
.finale-art { width: min(100%, 980px); margin: 10px auto 0; }
.finale .cta-row { margin-bottom: 10px; }

/* Games landing */
.games-intro { position: relative; padding: clamp(60px, 8vw, 120px) var(--gutter) 0; text-align: center; }
.games-intro .big-title { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; text-shadow: 0 4px 30px #060b1d; }
.games-intro .lead { position: relative; z-index: 1; color: var(--text); text-shadow: 0 2px 16px #060b1d; }
.games-intro-band {
  position: absolute; left: 0; right: 0; top: 0; height: 100%; min-height: 520px; z-index: 0;
  clip-path: ellipse(85% 100% at 50% 0);
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
  mask-image: linear-gradient(#000 50%, transparent);
  opacity: .6;
}
.games-intro-band::after { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 55% at 50% 52%, #060b1df2, #060b1d99 60%, transparent); }
.games-intro-band img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.game-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 34px);
  max-width: 1040px; margin: 0 auto; padding: clamp(90px, 12vw, 180px) var(--gutter) 0;
}
.game-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; background: var(--card);
  text-decoration: none; transition: transform .3s ease-out, box-shadow .3s ease-out, background .3s ease-out;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-8px) scale(1.02); box-shadow: 0 28px 60px #000a, 0 0 0 1px #3fe0f055; background: #16244f; }
.game-card:hover .round-arrow, .game-card:focus-visible .round-arrow { transform: translateX(4px) scale(1.15); }
.game-card-media { position: relative; aspect-ratio: 1; overflow: hidden; }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease-out; }
.game-card:hover .game-card-media img { transform: scale(1.05); }
.game-card-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.game-card-title img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 16px #0008; }
.game-card-body { display: grid; gap: 8px; padding: 22px 26px 64px; text-align: center; }
.game-card-body strong { font-size: 22px; }
.game-card-body .kicker { margin-bottom: 4px; }
.game-card-body .platforms { margin-top: 6px; color: var(--cyan); font-size: 13px; font-weight: 600; }
.game-card-body span { color: var(--muted); font-size: 15px; }
.game-card .round-arrow { position: absolute; right: 20px; bottom: 20px; width: 30px; height: 30px; }

/* Game detail */
.detail-intro { padding: clamp(50px, 7vw, 100px) var(--gutter) 0; text-align: center; }
.detail-intro-icon { width: 128px; height: 128px; margin: 0 auto 26px; border-radius: 30px; box-shadow: 0 18px 50px #0009; }
.detail-intro .cta-row { margin-top: 28px; }
.detail-intro .big-title { max-width: 900px; margin: 0 auto; font-size: clamp(40px, 5.6vw, 80px); }
.detail-feature {
  --tint: #3fe0f0;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(30px, 6vw, 90px);
  max-width: 1080px; margin: clamp(60px, 8vw, 110px) auto 0; padding: clamp(30px, 5vw, 70px);
  border-radius: var(--radius);
  background: radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--tint) 30%, transparent), transparent 60%), var(--card);
}
.detail-feature.violet { --tint: #a77bff; }
.detail-feature.mint { --tint: #5de2b5; }
.detail-phone img { width: min(100%, 300px); margin: 0 auto; border-radius: 30px; border: 6px solid #ffffff1c; box-shadow: 0 24px 60px #000a; }
.detail-copy h2 { font-size: clamp(32px, 4vw, 54px); margin-bottom: 18px; }
.detail-feature { align-items: start; }
.detail-phone { position: sticky; top: 140px; }
.detail-copy > * + * { margin-top: 14px; }
.detail-copy p, .detail-copy li { font-size: 17px; }
.detail-copy .detail-intro-text { font-size: 19px; }
.highlights { display: grid; gap: 12px; margin-top: 24px; padding: 0; list-style: none; }
.highlights li { position: relative; padding-left: 26px; }
.highlights strong { display: block; color: var(--cyan); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.highlights li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.detail-copy .source-note { margin-top: 28px; color: var(--muted); font-size: 13px; }

/* Game cover and screenshot gallery */
.game-cover {
  position: relative; max-width: calc(var(--max) + 120px); aspect-ratio: 2.4;
  margin: clamp(10px, 2vw, 24px) var(--gutter) 0; border-radius: var(--radius); overflow: hidden; background: var(--card);
}
@media (min-width: 1440px) { .game-cover { margin-inline: auto; } }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #060b1d88); }
.game-cover + .detail-intro { padding-top: 0; }
.game-cover + .detail-intro .detail-intro-icon { position: relative; z-index: 1; margin-top: -64px; border: 4px solid var(--bg); box-sizing: content-box; }

.game-gallery { margin-top: clamp(60px, 8vw, 100px); }
.carousel { position: relative; max-width: calc(var(--max) + 120px); margin: 0 auto; }
.carousel-track {
  padding: 10px var(--gutter) 24px; overflow-x: auto; scroll-snap-type: none; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; contain: layout paint style;
}
.carousel-strip {
  display: flex; width: max-content; gap: clamp(14px, 1.8vw, 24px);
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 auto; width: auto; height: clamp(380px, 36vw, 540px); border-radius: 24px;
  box-shadow: 0 18px 44px #0009; background: var(--card); backface-visibility: hidden;
}
.carousel-button {
  position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px;
  border: 0; border-radius: 50%; cursor: pointer; background: #ffffffe6; color: var(--bg);
  box-shadow: 0 8px 30px #0008; transition: opacity .25s, transform .25s;
}
.carousel-button::before {
  content: ''; display: block; width: 11px; height: 11px; margin: auto;
  border: solid currentColor; border-width: 0 3px 3px 0; transform: translateX(-2px) rotate(-45deg);
}
.carousel-button.prev { left: 14px; }
.carousel-button.prev::before { transform: translateX(2px) rotate(135deg); }
.carousel-button.next { right: 14px; }
.carousel-button:hover { transform: scale(1.08); }

/* FAQ */
.faq-block { max-width: 860px; text-align: left; }
.faq-block h2 { font-size: clamp(32px, 4vw, 52px); text-align: center; margin-bottom: 30px; }
details { border-bottom: 1px solid var(--line); }
summary {
  display: flex; justify-content: space-between; gap: 20px; padding: 22px 0;
  font-size: 19px; font-weight: 700; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--cyan); font-size: 26px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); }
details a { color: var(--cyan); }

/* Company family */
.photo-hero {
  position: relative; display: grid; place-items: center;
  max-width: calc(var(--max) + 120px); min-height: min(68vh, 620px);
  margin: clamp(10px, 2vw, 24px) var(--gutter) 0; border-radius: var(--radius); overflow: hidden;
  background: #0a1128; text-align: center;
}
@media (min-width: 1440px) { .photo-hero { margin-inline: auto; } }
.photo-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(45% 45% at 50% 50%, #060b1dbb, transparent), linear-gradient(#060b1d33, #060b1d55 40%, #4b35b4cc); }
.photo-hero-copy { position: relative; z-index: 1; padding: 30px var(--gutter); }
.photo-hero h1 { max-width: 920px; font-size: clamp(40px, 6vw, 84px); text-shadow: 0 4px 30px #0008; }
.photo-hero p { margin-top: 16px; font-size: clamp(17px, 1.6vw, 21px); }

/* Clip only sideways: the drifting lines stay inside the page width, while tall letters keep room above and below. */
.marquee { padding: clamp(60px, 8vw, 110px) 0 0; overflow-x: clip; overflow-y: visible; }
.marquee p {
  padding: 0 var(--gutter); text-align: center;
  font-size: clamp(44px, 8vw, 128px); font-weight: 750; line-height: 1.14; letter-spacing: -.035em;
  white-space: nowrap; transform: translateX(var(--shift, 0)); will-change: transform;
}

.info-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
  max-width: 820px; margin: 40px auto 0; text-align: left;
}
.info-tile { min-height: 210px; border-radius: 22px; overflow: hidden; background: var(--card); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.info-tile span { color: var(--cyan); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.info-tile p { color: var(--muted); }
.info-tile a { color: var(--text); font-weight: 700; }
.tile-image { padding: 0; background: #0a1128; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.tile-city { background: linear-gradient(150deg, #3fe0f0, #a77bff); color: #07102a; }
.tile-city span, .tile-city p { color: #07102acc; }
.tile-city strong { font-size: 48px; line-height: 1; letter-spacing: -.03em; }

.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 40px auto 0; padding: 0 var(--gutter); }
.quick-links a { display: grid; gap: 4px; padding: 26px; border-radius: 22px; background: var(--card); text-decoration: none; transition: background .25s, transform .25s var(--ease); }
.quick-links a:hover { background: #18265a; transform: translateY(-4px); }
.quick-links strong { font-size: 26px; }
.quick-links span { color: var(--cyan); font-weight: 600; }

/* History */
.page-intro { max-width: 960px; margin: 0 auto; padding: clamp(50px, 8vw, 110px) var(--gutter) 0; text-align: center; }
.journey-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); max-width: 1080px; margin: clamp(60px, 8vw, 100px) auto 0; padding: 0 var(--gutter); }
.journey-nav { position: sticky; top: 140px; align-self: start; display: grid; gap: 6px; padding-left: 20px; }
.journey-progress { position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--line); }
.journey-progress span { display: block; height: calc(var(--journey-progress, 0) * 100%); border-radius: 3px; background: var(--accent); }
.journey-nav a { padding: 8px 0; color: var(--muted); text-decoration: none; font-weight: 600; }
.journey-nav a span { margin-right: 10px; font-size: 13px; }
.journey-nav a[aria-current] { color: var(--text); }
.journey-chapter { position: relative; min-height: 60vh; padding-bottom: 80px; }
.journey-chapter:last-child { min-height: 0; }
.chapter-number { display: block; font-size: 90px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px #ffffff40; }
.journey-chapter h2 { margin-top: 8px; font-size: clamp(36px, 4.6vw, 62px); }
.journey-chapter > p { max-width: 560px; margin-top: 18px; color: var(--muted); font-size: 18px; }
.journey-chapter .icon-row { justify-content: flex-start; }
.chapter-media { width: 260px; margin-top: 30px; }

/* Culture */
.values { max-width: 860px; margin: 0 auto; padding: clamp(50px, 7vw, 90px) var(--gutter) 0; }
.value { display: grid; grid-template-columns: 90px 1fr; gap: 6px 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.value-index { grid-row: span 2; font-size: 48px; font-weight: 800; line-height: 1; background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value h2 { font-size: clamp(28px, 3vw, 38px); }
.value p { color: var(--muted); font-size: 18px; }

/* Jobs */
.jobs { max-width: 960px; margin: 50px auto 0; padding: 0 var(--gutter); text-align: center; }
.job-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.job-filters button {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer;
}
.job-filters button span { color: var(--muted); margin-left: 4px; }
.job-filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.job-empty { margin-top: 36px; padding: 50px 24px; border-radius: var(--radius); background: var(--card); }
.job-empty h2 { font-size: 30px; }
.job-empty p { margin-top: 8px; color: var(--muted); }

/* Legal */
.legal p:not(.lead) { margin-top: 22px; color: var(--muted); }
.notice { margin-top: 32px; padding: 22px; border-radius: 18px; background: var(--card); text-align: left; }
.notice p { margin-top: 6px; }

/* Email chooser */
.mail-menu {
  position: fixed; z-index: 60; width: 340px; padding: 20px 18px 18px;
  border-radius: 24px; border: 1px solid #ffffff1f;
  background: linear-gradient(160deg, #18265acc, #0b1330f2);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px #000c, inset 0 1px 0 #ffffff14;
  animation: mail-in .22s var(--ease);
}
.mail-menu[hidden] { display: none; }
@keyframes mail-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.mail-menu-title { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; }
.mail-menu-address { margin-top: 4px; font-size: 17px; font-weight: 700; text-align: center; overflow-wrap: anywhere; }
.mail-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.mail-option {
  display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none;
  color: var(--text); font: inherit; text-decoration: none; cursor: pointer;
}
.mail-option-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px;
  background: #ffffff0d; border: 1px solid #ffffff14; color: var(--cyan);
  transition: transform .2s ease-out, border-color .2s, background .2s;
}
.mail-option-icon svg { width: 32px; height: 32px; }
.mail-option-label { color: var(--muted); font-size: 12px; font-weight: 600; transition: color .2s; }
.mail-option:hover .mail-option-icon, .mail-option:focus-visible .mail-option-icon { transform: translateY(-3px); border-color: #3fe0f088; background: #ffffff16; }
.mail-option:hover .mail-option-label, .mail-option:focus-visible .mail-option-label { color: var(--text); }
.mail-option:focus-visible { outline: none; }
.mail-option.is-done .mail-option-icon { border-color: #3fe0f0; }
.mail-option.is-done .mail-option-label { color: var(--cyan); }

/* Privacy policy */
.policy { max-width: 820px; margin: 40px auto 0; padding: 0 var(--gutter); color: #d6dcef; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.policy p, .policy ul { margin: 0 0 14px; }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy h2 { margin: 52px 0 16px; padding-top: 10px; color: var(--text); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.25; scroll-margin-top: 130px; }
.policy h3, .policy [id] { scroll-margin-top: 130px; }
.policy h3 { margin: 28px 0 10px; font-size: 19px; }
.policy .policy-kicker { color: var(--cyan); font-weight: 700; }
.policy .policy-label { margin-top: 18px; font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.policy a { color: var(--cyan); }
.policy-toc { display: grid; gap: 8px; margin: 0 0 14px; padding: 22px 22px 22px 46px; border-radius: 18px; background: var(--card); }
.policy-table { margin: 0 0 18px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); }
.policy-table table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.policy-table th:nth-child(1) { width: 34%; }
.policy-table th:nth-child(3) { width: 92px; }
.policy-table th, .policy-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { background: var(--card); color: var(--text); }
.policy-table td:last-child { font-weight: 700; color: var(--text); }

/* 404 */
.not-found { padding-top: clamp(30px, 5vw, 60px); }
.not-found-art { width: auto; max-width: min(620px, 70vw); max-height: 48vh; margin: 0 auto 28px; }

/* Footer */
.site-footer { margin-top: clamp(80px, 10vw, 140px); padding: 40px var(--gutter) 34px; text-align: center; border-top: 1px solid var(--line); }
.footer-motto { margin-bottom: 22px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.footer-links a { font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-address { margin-top: 18px; color: var(--muted); font-size: 14px; }
.footer-copy { margin-top: 8px; color: #6f7a9c; font-size: 13px; }

/* Motion: content is visible by default and only animates when the script opts in. */
.motion .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .carousel-strip > img.gallery-card {
  opacity: 0; transform: translateY(58px) scale(.9) rotate(1.5deg);
  transition: opacity .68s ease-out, transform var(--gallery-duration) cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--gallery-start) + var(--card-index) * var(--gallery-stagger));
}
.motion .carousel-strip > img.gallery-card:nth-child(even) { transform: translateY(58px) scale(.9) rotate(-1.5deg); }
.motion .gallery-visible .carousel-strip > img.gallery-card { opacity: 1; transform: none; }
/* Padding with matching negative margins gives descenders and overhanging letters room inside the mask without shifting layout. */
.motion .word-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: .18em .24em .42em; margin: -.18em -.24em -.42em; }
.motion .word { display: inline-block; padding: .18em .24em .42em; margin: -.18em -.24em -.42em; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: var(--delay, 0ms); }
.motion .words-in .word { transform: none; }
.motion em:has(.word) { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
.motion em .word {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
  .motion .game-card.reveal { opacity: 1; transform: none; transition: transform .3s ease-out, box-shadow .3s ease-out, background .3s ease-out; }
  .game-cards { grid-template-columns: 1fr; max-width: 460px; }
  .detail-feature { grid-template-columns: 1fr; }
  .detail-phone { position: static; }
  .game-cover { aspect-ratio: 16 / 10; }
  .game-cover + .detail-intro .detail-intro-icon { width: 92px; height: 92px; margin-top: -46px; border-radius: 22px; }
  .detail-copy h2 { text-align: center; }
  .journey-layout { grid-template-columns: 1fr; }
  .journey-nav { display: none; }
  .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .site-header { height: 76px; }
  .brand img { height: 64px; }
  .carousel-button { display: none; }
  .carousel-track img { height: 420px; }
  .mail-menu { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 22px 16px 18px; }
  .not-found-art { max-width: 88vw; max-height: 38vh; margin-bottom: 20px; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: var(--bg-raised); color: var(--text); cursor: pointer;
  }
  .burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: .25s; }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ''; position: absolute; left: 0; }
  .burger::before { top: -6px; }
  .burger::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .burger { background: transparent; }
  .menu-toggle[aria-expanded="true"] .burger::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .burger::after { top: 0; transform: rotate(-45deg); }
  #navigation {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s var(--ease);
  }
  #navigation.open { opacity: 1; visibility: visible; transform: none; }
  #navigation > a, .nav-group-heading { padding: 14px 0; font-size: 22px; border-bottom: 1px solid var(--line); }
  #navigation .nav-group-heading a { font-size: 22px; }
  .nav-group-heading { justify-content: space-between; }
  .submenu-toggle { width: 40px; height: 40px; }
  .nav-group:last-child .submenu, .submenu { position: static; display: none; min-width: 0; margin: 4px 0 8px; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
  .nav-group.is-open .submenu { display: grid; }
  .icon-tile, .icon-row.large .icon-tile { width: 96px; font-size: 15px; }
  .icon-tile img, .icon-row.large .icon-tile img { width: 96px; height: 96px; border-radius: 24px; }
  .wide-media { aspect-ratio: 4 / 5; }
  .wide-media img { object-position: var(--focus, 50%) 50%; }
  .photo-hero img { object-position: var(--focus, 50%) 50%; }
  .info-grid { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; }
  .value-index { grid-row: auto; font-size: 36px; }
  .photo-hero { min-height: 520px; }
  .marquee p { font-size: clamp(36px, 11vw, 60px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
  .marquee p { transform: none; }
}
