/* 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: #000000;
  --bg-raised: #0f0d0a;
  --card: #13100c;
  --text: #f7f2e8;
  --muted: #b7ad9c;
  --cyan: #d9b97c;
  --violet: #b8857a;
  --pink: #e8c58a;
  --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, #3a2c1255, 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: #000000d9;
  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: #140e04; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px #d9b97c33; transition: transform .25s var(--ease), box-shadow .25s;
}
.pill-button:hover { transform: translateY(-2px); box-shadow: 0 14px 40px #b8857a55; }
.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 #d9b97c22; }

.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, #2a1f0e99); }
.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 #000000; }
.games-intro .lead { position: relative; z-index: 1; color: var(--text); text-shadow: 0 2px 16px #000000; }
.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%, #000000f2, #00000099 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 #d9b97c55; background: #1c1710; }
.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: #d9b97c;
  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: #b8857a; }
.detail-feature.mint { --tint: #cdb184; }
.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%, #00000088); }
.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: #0a0907; 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%, #000000bb, transparent), linear-gradient(#00000033, #00000055 40%, #2a1f0ecc); }
.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: #0a0907; }
.tile-image img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.tile-city { background: linear-gradient(150deg, #d9b97c, #b8857a); color: #140e04; }
.tile-city span, .tile-city p { color: #140e04cc; }
.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: #1f1911; 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, #1f1911cc, #0b0907f2);
  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: #d9b97c88; 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: #d9b97c; }
.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: #ddd5c6; 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: #8a8170; 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; }
}

/* Kontra identity: black and gold, taken from the logo. */
:root {
  --bg: #000000;
  --bg-raised: #0f0d0a;
  --card: #13100c;
  --text: #f7f2e8;
  --muted: #b7ad9c;
  --gold: #d9b97c;
  --gold-light: #f0dcae;
  --rose-gold: #b8857a;
  --cyan: #d9b97c;
  --violet: #b8857a;
  --pink: #e8c58a;
  --spark: #f0dcae;
  --accent: linear-gradient(100deg, #f0dcae 0%, #d4b07a 48%, #b8857a 100%);
  --line: #d9b97c1f;
  --glow-a: #3a2b10;
  --glow-b: #2b1a14;
}
body[data-section="games"] { --glow-a: #3d2f12; --glow-b: #24190e; }
body[data-section="company"] { --glow-a: #33240f; --glow-b: #321c18; }
body[data-section="careers"] { --glow-a: #3b2c14; --glow-b: #1f1a12; }

/* Every route has its own quiet black-and-gold world. The artwork keeps its
   centre dark so copy remains readable at every viewport size. */
body {
  --page-background: url('/assets/backgrounds/home.webp');
  background: var(--bg);
  isolation: isolate;
}
body[data-page="home"] { --page-background: url('/assets/backgrounds/home.webp'); }
body[data-page="games"] { --page-background: url('/assets/backgrounds/games.webp'); }
body[data-page="company"] { --page-background: url('/assets/backgrounds/company.webp'); }
body[data-page="company-history"] { --page-background: url('/assets/backgrounds/history.webp'); }
body[data-page="company-culture"] { --page-background: url('/assets/backgrounds/culture.webp'); }
body[data-page="careers"] { --page-background: url('/assets/backgrounds/careers.webp'); }
body[data-page="careers-jobs"] { --page-background: url('/assets/backgrounds/jobs.webp'); }
body[data-page="privacypolicy"] { --page-background: url('/assets/backgrounds/privacy.webp'); }
body[data-page="termsandconditions"] { --page-background: url('/assets/backgrounds/terms.webp'); }
body[data-page="404"] { --page-background: url('/assets/backgrounds/404.webp'); }
body[data-page="games-words-of-paradise"] { --page-background: url('/assets/backgrounds/game-words-of-paradise.webp'); }
body[data-page="games-calming-crosswords"] { --page-background: url('/assets/backgrounds/game-calming-crosswords.webp'); }
body[data-page="games-words-freestyle"] { --page-background: url('/assets/backgrounds/game-words-freestyle.webp'); }
body[data-page="games-word-explorer"] { --page-background: url('/assets/backgrounds/game-word-explorer.webp'); }
body[data-page="games-calming-words"] { --page-background: url('/assets/backgrounds/game-calming-words.webp'); }
body[data-page="games-calming-word-tour"] { --page-background: url('/assets/backgrounds/game-calming-word-tour.webp'); }
body[data-page="games-wordmonger"] { --page-background: url('/assets/backgrounds/game-wordmonger.webp'); }
body[data-page="games-bubble-word-match"] { --page-background: url('/assets/backgrounds/game-bubble-word-match.webp'); }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, #0000001f 0%, #0000004a 56%, #00000073 100%),
    var(--page-background) center top / cover no-repeat;
  opacity: .68;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 46% at 50% 42%, transparent 20%, #00000035 76%, #00000080 100%),
    linear-gradient(180deg, transparent 0 68%, #00000038 100%);
}

/* At the top of the page the header is transparent so the page artwork runs behind it;
   once the page scrolls it turns into dark glass so the links stay readable over content. */
.site-header {
  /* No border or shade at the top: a transparent border would repaint the background
     as a 1px stripe, and a gradient leaves a visible edge where the header ends. */
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* The frost builds up gradually as the page scrolls: --frost runs from 0 at the top
   to 1 after about 180 px (set in app.js). A very light tint keeps the links readable. */
.site-header {
  --frost: 0;
  background: rgb(0 0 0 / calc(var(--frost) * .12));
  backdrop-filter: blur(calc(var(--frost) * 18px)) saturate(calc(1 + var(--frost) * .5));
  -webkit-backdrop-filter: blur(calc(var(--frost) * 18px)) saturate(calc(1 + var(--frost) * .5));
  transition: none;
}
/* The open mobile menu sits over page content, so it keeps a darker glass. */
.site-header:has(.menu-toggle[aria-expanded="true"]) {
  background: #00000099;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.brand img { width: auto; height: 58px; }
#navigation a:hover, #navigation [aria-current="page"] { color: var(--gold-light); }
#navigation [aria-current="page"] { text-shadow: 0 0 14px #d9b97c55; }
.electric-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .24em; }
.electric-eyebrow::before, .electric-eyebrow::after { content: ''; width: 34px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.kicker, .tile-subhead { color: var(--gold); }
.info-tile .tile-subhead { margin-top: 12px; }
:focus-visible { outline-color: var(--gold-light); }
.pill-button { color: #140e04; box-shadow: 0 10px 30px #d9b97c26; }
.pill-button:hover { box-shadow: 0 14px 40px #d9b97c44; }
.pill-button.ghost { color: var(--text); border-color: #d9b97c55; }
.arrow-link, .game-card-body .platforms, .quick-links span { color: var(--gold); }
.arrow-dot, .round-arrow { background: var(--gold); color: #000; }
.tile-city { background: linear-gradient(150deg, #f0dcae, #c79a6c); }

/* A thin gold current runs between sections, with a spark travelling along it. */
.centered-block:not(.home-intro)::before {
  content: ''; display: block; width: min(260px, 50%); height: 1px; margin: 0 auto clamp(44px, 5vw, 72px);
  background: linear-gradient(90deg, transparent, #b8857a 30%, #fff1cf 50%, #b8857a 70%, transparent) 0 0 / 200% 100%;
  box-shadow: 0 0 12px #d9b97c55;
  animation: current-run 4.5s linear infinite;
}
@keyframes current-run { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.wide-media, .photo-hero, .game-card, .detail-feature { border: 1px solid #d9b97c22; box-shadow: 0 26px 90px #000c, 0 0 44px #d9b97c08; }
.wide-media::after { background: linear-gradient(transparent, #000000aa); }
.photo-hero::after { background: radial-gradient(45% 45% at 50% 50%, #000000bb, transparent), linear-gradient(#00000033, #00000055 40%, #000000cc); }
.detail-feature { background: radial-gradient(circle at 20% 30%, #d9b97c14, transparent 60%), var(--card); }
.game-card:hover, .game-card:focus-visible { box-shadow: 0 28px 60px #000c, 0 0 0 1px #d9b97c66; background: #1c1710; }
/* Hovering a card sends a sweep of gold light across it. */
.game-card::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, #f0dcae22 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
  transition: background-position .8s ease-out;
}
.game-card:hover::after, .game-card:focus-visible::after { background-position: 150% 0; }
.mail-menu { background: linear-gradient(160deg, #1a1610e6, #0b0907f2); border-color: #d9b97c33; }

.finale-games { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(12px, 2vw, 24px); margin: 48px auto 0; }
.finale-games img { width: clamp(62px, 9vw, 112px); aspect-ratio: 1; border-radius: 24%; box-shadow: 0 18px 36px #000c, 0 0 24px #d9b97c1a; transform: translateY(var(--lift, 0)); }
.finale-games img:nth-child(even) { --lift: 18px; }
.games-intro-band { opacity: .44; }
.games-intro-band::after { background: radial-gradient(50% 55% at 50% 52%, #000000f0, #000000aa 60%, transparent); }
.games-intro .big-title, .games-intro .lead { text-shadow: 0 4px 30px #000; }

/* Kontra's store screenshots: mostly landscape (1052×592), a few portrait. */
.game-card-media { aspect-ratio: 16 / 9; }
.game-card-media img { object-position: center; }
.game-card-text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-track img { height: clamp(220px, 24vw, 340px); border-radius: 18px; }
.carousel-button { background: #f0dcaee6; color: #000; }
.carousel-button[disabled] { opacity: 0; pointer-events: none; }
.detail-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.detail-media { position: sticky; top: 140px; }
.detail-media img { width: auto; max-width: 100%; max-height: 520px; margin: 0 auto; border-radius: 18px; border: 1px solid #d9b97c22; box-shadow: 0 24px 60px #000c; }
.chapter-media { width: 240px; }
.not-found-art { max-width: min(360px, 60vw); }
.highlights li::before { background: var(--accent); }

@media (max-width: 900px) {
  .detail-feature { grid-template-columns: 1fr; }
  .detail-media { position: static; }
}
@media (max-width: 720px) {
  .brand img { height: 44px; }
  .carousel-track img { height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, body::after, .centered-block::before { animation: none !important; }
}

/* Gold borders everywhere, in the logo's gold. */
:root { --line: #d9b97c33; --gold-border: #d9b97c59; --gold-border-strong: #e7cb92; }
.wide-media, .photo-hero, .game-card, .detail-feature, .game-cover, .info-tile, .quick-links a, .job-empty,
.notice, .policy-toc, .policy-table, .submenu, .mail-menu, .carousel-track img {
  border: 1px solid var(--gold-border);
}
.mail-option-icon, .job-filters button { border-color: var(--gold-border); }
.pill-button.ghost { border-color: var(--gold-border-strong); }
.pill-button.ghost:hover, .quick-links a:hover, .mail-option:hover .mail-option-icon { border-color: var(--gold-border-strong); }
.game-card:hover, .game-card:focus-visible { box-shadow: 0 28px 60px #000c, 0 0 0 1px var(--gold-border-strong); }
.icon-tile img, .finale-games img, .games-submenu img, .game-card-title img { outline: 1px solid var(--gold-border); outline-offset: -1px; }
.game-cover + .detail-intro .detail-intro-icon { border-color: #000; outline: 1px solid var(--gold-border-strong); }

/* Phone frame: a gold bezel around real phone screenshots. */
.phone {
  display: inline-block; padding: 5px; border-radius: 26px;
  background: linear-gradient(145deg, #f0dcae, #c79c6a 38%, #6d4d2c 62%, #e2c38c);
  box-shadow: 0 22px 50px #000c, 0 0 28px #d9b97c22;
}
.phone img { display: block; border-radius: 21px; border: 0; background: #000; }

/* Catalogue cards: the game's cover as a dark backdrop with its phone screen rising from below. */
.game-card-media {
  aspect-ratio: 4 / 3; display: flex; justify-content: center; align-items: flex-start;
  background: #000 var(--cover) center / cover no-repeat;
}
.game-card-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(#00000033, #000000aa); }
.game-card-media .phone { position: relative; margin-top: 9%; height: 108%; transition: transform .45s ease-out; }
.game-card-media .phone img { width: auto; height: 100%; object-fit: cover; }
.game-card:hover .game-card-media img { transform: none; }
.game-card:hover .game-card-media .phone { transform: translateY(-10px); }

/* Card copy reads left to right; long titles wrap next to their icon instead of drifting to the centre. */
.game-card-body { text-align: left; justify-items: start; padding: 22px 24px 64px; }
.game-card-title { justify-content: flex-start; align-items: center; text-align: left; }
.game-card-title img { flex: none; }
.game-card-title strong { line-height: 1.2; }

/* Inside the game: the phone screen in the same gold frame. */
.detail-media { display: flex; justify-content: center; }
.detail-media img { max-height: 540px; width: auto; max-width: 100%; border: 0; box-shadow: none; }

/* Galleries with fewer screenshots than the width can hold sit in the middle. */
.carousel-track { display: flex; }
.carousel-strip { margin-inline: auto; }
.carousel-track img { border-color: var(--gold-border); }

/* The header floats over the page instead of pushing it down, so the top artwork runs behind it. */
:root { --header-h: 108px; }
.site-header { margin-bottom: calc(-1 * var(--header-h)); }
main { padding-top: var(--header-h); }
/* The Games banner reaches up behind the transparent header. */
main > .games-intro:first-child { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(60px, 8vw, 120px)); }
@media (max-width: 700px) { :root { --header-h: 76px; } }
@media (max-width: 700px) {
  /* The open mobile menu is frosted glass too, dark enough to read over any content. */
  #navigation { background: #000000b8; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 0; }
}

/* Catalogue cards: a clearly visible gold frame, with a gold line between artwork and copy. */
.game-card { border: 1.5px solid #d9b97c; box-shadow: 0 26px 90px #000c, 0 0 22px #d9b97c1f; }
.game-card-media { border-bottom: 1px solid #d9b97c99; }
.game-card:hover, .game-card:focus-visible { border-color: #f0dcae; box-shadow: 0 28px 60px #000c, 0 0 30px #d9b97c40; }

/* Inside the game: the phone stays put next to the copy instead of following the scroll. */
.detail-media { position: static; align-self: center; }

/* Screenshot galleries on game pages: the same clearly visible gold frame as the catalogue cards. */
.carousel-track img, .carousel-strip > img { border: 1.5px solid #d9b97c; box-shadow: 0 18px 44px #000c, 0 0 18px #d9b97c1f; }

/* The gallery scrolls sideways only: a slightly diagonal two-finger swipe must not
   nudge the screenshots up or down inside the strip. */
.carousel-track { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }

/* Footer: head office and branch, each on its own line with a gold label. */
.footer-address + .footer-address { margin-top: 6px; }
.footer-address span { margin-right: 6px; color: var(--gold); font-weight: 700; }

/* Mobile menu: an opaque panel that scrolls on its own, so a long Games list never pushes
   Company and Careers off screen and the page never shows through behind the links. */
@media (max-width: 700px) {
  #navigation {
    background: #050403; backdrop-filter: none; -webkit-backdrop-filter: none;
    max-height: calc(100dvh - 76px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  #navigation .submenu { background: #13100c; border: 1px solid var(--gold-border); box-shadow: none; padding: 6px; }
  #navigation .games-submenu a { gap: 10px; padding: 8px 10px; }
  #navigation .games-submenu img { width: 30px; height: 30px; border-radius: 8px; }
  #navigation .games-submenu strong { font-size: 15px; }
  #navigation .games-submenu small { font-size: 11px; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}
@media (max-width: 700px) {
  /* With the menu open, the header bar is solid too, so the panel reads as one surface. */
  .site-header:has(.menu-toggle[aria-expanded="true"]) { background: #050403; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ===================================================================================
   Light section theme (11 November 2026). The page artwork backgrounds read as too dark
   and busy. Pages now sit on plain light bands: white and soft grey sections alternate,
   each grey band with gently curved edges; photo heroes run full width with a curved
   bottom; the footer is a dark band. Gold stays as the accent, in a deeper tone so it
   reads on white. Everything below overrides the black theme above.
   =================================================================================== */
:root {
  --bg: #ffffff;
  --band: #f4f3f0;
  --bg-raised: #ffffff;
  --card: #ffffff;
  --text: #181818;
  --muted: #5d5850;
  --gold: #a67c3d;
  --gold-ink: #8a6630;
  --cyan: #a67c3d;
  --accent: linear-gradient(100deg, #c39552 0%, #a67c3d 50%, #8e5d48 100%);
  --button: linear-gradient(100deg, #e9cf9c 0%, #d9b97c 50%, #c79c6a 100%);
  --line: #0000001a;
  --gold-border: #d9b97c99;
  --gold-border-strong: #c49a5c;
  --soft-shadow: 0 14px 40px #2a1f0e14, 0 2px 8px #2a1f0e0d;
  --curve: 90px;
}
body { background: var(--bg); color: var(--text); }
body::before, body::after { content: none; display: none; }
:focus-visible { outline-color: var(--gold); }

/* Header: a solid white bar, as on a clean light site. */
.site-header,
.site-header:has(.menu-toggle[aria-expanded="true"]) {
  background: #ffffffeb;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 #0000000f;
}
#navigation a:hover, #navigation [aria-current="page"] { color: var(--gold-ink); text-shadow: none; }
.submenu { background: #fff; box-shadow: 0 20px 50px #0000001f; }
.submenu a:hover { background: var(--band); }
.submenu .submenu-all { color: var(--gold-ink); }
main > .games-intro:first-child { margin-top: 0; padding-top: clamp(60px, 8vw, 120px); }

/* Type and links */
.kicker, .tile-subhead, .electric-eyebrow, .arrow-link, .game-card-body .platforms, .quick-links span,
.highlights strong, details a, .policy a, .policy .policy-kicker, .mail-option.is-done .mail-option-label { color: var(--gold-ink); }
.electric-eyebrow::before, .electric-eyebrow::after { box-shadow: none; }
.arrow-dot, .round-arrow { background: var(--gold); color: #fff; }
summary::after { color: var(--gold); }
.pill-button { background: var(--button); color: #1d1408; box-shadow: 0 10px 26px #a67c3d33; }
.pill-button:hover { box-shadow: 0 14px 34px #a67c3d4d; }
.pill-button.ghost { background: transparent; color: var(--text); border-color: #18181840; box-shadow: none; }
.pill-button.ghost:hover { border-color: var(--text); box-shadow: none; }
.games-intro .big-title, .games-intro .lead, .photo-hero h1 { text-shadow: none; }
.chapter-number { -webkit-text-stroke-color: #00000033; }
.policy { color: #3b3730; }

/* Sections: alternating light bands. The gold divider line is replaced by the band itself. */
.centered-block:not(.home-intro)::before { content: none; display: none; }
main > section { position: relative; isolation: isolate; }
main > section:nth-of-type(even):is(.centered-block, .game-gallery, .quick-links, .values, .jobs) {
  padding-bottom: clamp(70px, 9vw, 130px);
}
main > section:nth-of-type(even):is(.game-gallery, .quick-links, .values, .jobs) { padding-top: clamp(60px, 8vw, 110px); margin-top: clamp(50px, 6vw, 90px); }
main > section:nth-of-type(even):is(.centered-block, .game-gallery, .quick-links, .values, .jobs)::after {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%);
  background: var(--band);
  border-radius: 50% 50% 50% 50% / var(--curve) var(--curve) var(--curve) var(--curve);
}
/* The section after a grey band starts with its own breathing room. */
main > section:nth-of-type(even):is(.centered-block, .game-gallery, .quick-links, .values, .jobs) + section.centered-block { padding-top: clamp(80px, 10vw, 140px); }

/* Full-width photo heroes with a curved bottom edge. */
.photo-hero {
  max-width: none; margin: 0; border: 0; box-shadow: none;
  border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve);
  min-height: min(72vh, 660px); color: #fff;
}
.photo-hero::after { background: linear-gradient(#00000059, #00000073 60%, #0000008c); }
.photo-hero h1 { color: #fff; }
.photo-hero em { background: linear-gradient(100deg, #f0dcae, #d9b97c 55%, #e3b9a4); -webkit-background-clip: text; background-clip: text; }

/* Games landing: the banner becomes a full-width image hero with a curved bottom. */
.games-intro { color: #fff; min-height: 460px; padding-bottom: 90px; }
.games-intro .lead { color: #ffffffe6; }
.games-intro-band { opacity: 1; min-height: 0; -webkit-mask-image: none; mask-image: none; clip-path: none; border-radius: 0 0 50% 50% / 0 0 var(--curve) var(--curve); overflow: hidden; }
.games-intro-band::after { background: linear-gradient(#00000066, #00000080); }
.games-intro em { background: linear-gradient(100deg, #f0dcae, #d9b97c 55%, #e3b9a4); -webkit-background-clip: text; background-clip: text; }
.game-cards { padding-top: clamp(60px, 7vw, 100px); }

/* Cards and tiles: white surfaces with a fine gold edge and a soft shadow. */
.wide-media, .detail-feature, .game-cover, .info-tile, .quick-links a, .job-empty, .notice, .policy-toc, .policy-table {
  box-shadow: var(--soft-shadow);
}
.wide-media::after { background: linear-gradient(transparent, #00000040); }
.game-card { background: #fff; border: 1.5px solid var(--gold-border); box-shadow: var(--soft-shadow); }
.game-card:hover, .game-card:focus-visible { background: #fff; border-color: var(--gold-border-strong); box-shadow: 0 24px 50px #2a1f0e26; }
.game-card::after { background: linear-gradient(105deg, transparent 35%, #ffffff55 50%, transparent 65%) -150% 0 / 250% 100% no-repeat; }
.game-card-media { border-bottom: 1px solid var(--gold-border); }
.detail-feature { background: #fff; }
.info-tile, .quick-links a, .job-empty, .notice, .policy-toc { background: #fff; }
.quick-links a:hover { background: #fffaf1; }
.info-tile.tile-city { background: linear-gradient(150deg, #f0dcae, #c79a6c); }
.tile-image { background: #eee; }
.policy-table th { background: var(--band); }
.icon-tile img, .finale-games img, .detail-intro-icon, .game-card-title img, .games-submenu img { box-shadow: 0 12px 28px #2a1f0e26; }
.phone { box-shadow: 0 18px 40px #2a1f0e33; }
.carousel-track img, .carousel-strip > img { border-color: var(--gold-border); box-shadow: 0 14px 34px #2a1f0e1f; }
.carousel-button { background: #fff; color: var(--text); box-shadow: 0 8px 24px #0000002e; }
.game-cover + .detail-intro .detail-intro-icon { border-color: #fff; }
.mail-menu { background: #fff; border-color: var(--gold-border); box-shadow: 0 30px 80px #00000026; }
.mail-option-icon { background: var(--band); border-color: var(--gold-border); color: var(--gold-ink); }
.mail-option:hover .mail-option-icon, .mail-option:focus-visible .mail-option-icon { background: #fffaf1; }
.job-filters button[aria-pressed="true"] { background: var(--text); color: #fff; }

/* Footer: a dark band, as the closing section. */
.site-footer {
  --text: #f4f1ea; --muted: #b3ab9d;
  margin-top: clamp(80px, 10vw, 140px); padding-top: 56px;
  background: #181818; color: var(--text); border-top: 0;
}
.site-footer em { background: linear-gradient(100deg, #f0dcae, #d9b97c 50%, #c79c6a); -webkit-background-clip: text; background-clip: text; }
.site-footer .footer-links a:hover { color: #f0dcae; }
.site-footer .footer-address span { color: #d9b97c; }
.site-footer .footer-copy { color: #8f887c; }

/* Mobile menu: white panel. */
@media (max-width: 700px) {
  #navigation, .site-header:has(.menu-toggle[aria-expanded="true"]) { background: #fff; }
  #navigation .submenu { background: var(--band); }
  :root { --curve: 40px; }
}

/* Home: the hero artwork runs wider than the text column. */
.home-intro .wide-media {
  --hero-w: min(calc(100vw - 2 * var(--gutter)), 1440px);
  width: var(--hero-w); max-width: none;
  margin-left: calc((100% - var(--hero-w)) / 2);
}
/* The grey band under the hero rises behind the artwork: its curve passes about 15 px
   behind the artwork's lower corners. The lift follows how far the curve has dropped
   at the artwork's edges, which depends on the screen width. */
main > section.home-intro { z-index: 1; }
main > section.home-intro + section.centered-block:nth-of-type(even)::after { top: -75px; }
@media (min-width: 1700px) { main > section.home-intro + section.centered-block:nth-of-type(even)::after { top: -50px; } }
@media (max-width: 700px) { main > section.home-intro + section.centered-block:nth-of-type(even)::after { top: -50px; } }
