/* Self-hosted Google Fonts (SIL Open Font License): Readex Pro, Big Shoulders Display, Reem Kufi. Arabic + Latin subsets only. */
@font-face {font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/readex-pro-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face {font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/readex-pro-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Readex Pro'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(/assets/fonts/readex-pro-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Big Shoulders Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url(/assets/fonts/big-shoulders-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face {font-family: 'Reem Kufi'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/reem-kufi-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;}
@font-face {font-family: 'Reem Kufi'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/reem-kufi-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face {font-family: 'Reem Kufi'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/reem-kufi-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
/* Bacode Games — the site's whole design (2026-11-20). No framework; English + Arabic (logical properties throughout).
   Palette from the game itself: the night sky over the corniche, the theater's limestone, the logo red, the kerb yellow, the dusk lilac. */

:root {
  --night: #0c1029;          /* the night sky over the corniche (police-chase shot) */
  --night-2: #151b3d;        /* raised night surfaces */
  --asphalt: #17171d;        /* the road */
  --stone: #ede6da;          /* the theater's limestone */
  --stone-2: #c9c2b8;
  --ink: #17151b;            /* text on stone */
  --brand: #d50000;          /* the Arab Roleplay logo red, exactly */
  --brand-2: #a90000;
  --dusk: #a59ae6;           /* the lilac dusk sky */
  --kerb: #f2b705;           /* kerb yellow */
  --kerb-dark: #141414;
  --muted: #a7a5b5;
  --line: rgba(237, 230, 218, .15);
  --font-text: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-sign-ar: "Reem Kufi", "Readex Pro", Tahoma, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --shell: 1320px;
  --edge: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  --header-h: 72px;
  --space-section: clamp(88px, 12vw, 168px);
  --ease-cut: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --start: left;
}
:root:lang(ar) { --font-display: "Reem Kufi", "Readex Pro", Tahoma, sans-serif; --start: right; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--night); }
body { margin: 0; background: var(--night); color: var(--stone); font: 400 1.0625rem/1.65 var(--font-text); font-synthesis: none; -webkit-font-smoothing: antialiased; overflow-x: clip; }
:lang(ar) body { line-height: 1.85; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
img.lq { background-size: cover; background-position: center; background-color: var(--night-2); }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: rgba(242, 183, 5, .16); }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; line-height: .92; letter-spacing: -.005em; text-wrap: balance; }
:lang(en) :is(h1, h2, h3) { text-transform: uppercase; }
:lang(ar) :is(h1, h2, h3) { font-weight: 700; line-height: 1.22; letter-spacing: 0; }
.shell { width: min(var(--shell), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section-title { font-size: clamp(2.75rem, 6.6vw, 5.5rem); }
:lang(ar) .section-title { font-size: clamp(2.1rem, 4.8vw, 3.9rem); }
:focus-visible { outline: 3px solid var(--kerb); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -80px; z-index: 200; padding: 12px 18px; background: var(--stone); color: var(--ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
html.menu-open body { overflow: hidden; }

/* ---------------------------------------------------------------- the kerb (the city's yellow and black kerbstones) */
.kerb { height: 12px; background: repeating-linear-gradient(90deg, var(--kerb) 0 48px, var(--kerb-dark) 48px 96px); }

/* ---------------------------------------------------------------- header + menu */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); border-bottom: 1px solid transparent; transition: background-color .45s, border-color .45s; view-transition-name: site-header; }
.site-header.is-solid, .page-plain .site-header { background: rgba(12, 16, 41, .94); border-color: var(--line); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-solid, .page-plain .site-header { background: rgba(12, 16, 41, .86); backdrop-filter: blur(14px) saturate(1.2); } }
.header-bar { height: 100%; display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); }
.wordmark { flex: none; display: block; }
.wordmark img { height: 21px; width: auto; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-inline-start: auto; }
.nav a { position: relative; padding: 6px 0; font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .88; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: var(--start); transition: transform .5s var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color .3s, color .3s; }
.lang:hover { background: var(--stone); color: var(--ink); }
.menu-toggle, .menu-close { display: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: none; color: var(--stone); font: 500 .9375rem/1 var(--font-text); cursor: pointer; }
.menu-close { display: inline-flex; align-items: center; }
.menu { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--night); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-cut), visibility 0s linear .7s; }
html.menu-open .menu { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease-cut), visibility 0s; }
html:not(.js) .menu { display: none; }
.menu-top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu-links { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.menu-links a { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.5rem, 11.5vw, 4.5rem); line-height: 1.04; text-decoration: none; }
:lang(en) .menu-links a { text-transform: uppercase; }
:lang(ar) .menu-links a { font-weight: 700; line-height: 1.4; font-size: clamp(2.1rem, 9vw, 3.4rem); }
html.menu-open .menu-links a { animation: rise .7s var(--ease-out) both; }
html.menu-open .menu-links a:nth-child(2) { animation-delay: .06s; } html.menu-open .menu-links a:nth-child(3) { animation-delay: .12s; } html.menu-open .menu-links a:nth-child(4) { animation-delay: .18s; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 28px; flex: none; }
.menu-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.menu .kerb { flex: none; }

/* ---------------------------------------------------------------- buttons + links */
/* The buttons lean like the logo's red parallelogram (the same lean in both languages: it is the brand shape). */
.btn { --cut: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 calc(24px + var(--cut)); background: var(--brand); color: #fff; font: 600 1rem/1 var(--font-text); text-decoration: none; clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); transition: background-color .3s, color .3s, transform .3s var(--ease-out); }
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 21px; height: 21px; flex: none; }
.btn--stone { background: var(--stone); color: var(--ink); }
.btn--stone:hover { background: #fff; }
.btn--small { --cut: 9px; min-height: 40px; padding: 0 calc(14px + var(--cut)); font-size: .875rem; gap: 8px; }
.btn--small svg { width: 18px; height: 18px; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--kerb); }
/* A short red bar under the link that runs the full width on hover (the logo red again). */
.link-cta { display: inline-block; padding-bottom: 6px; font-weight: 600; text-decoration: none; background: linear-gradient(var(--brand), var(--brand)) no-repeat var(--start) 100% / 28px 3px; transition: background-size .55s var(--ease-out); }
.link-cta:hover { background-size: 100% 3px; }
.band-stone .link-cta { color: var(--ink); }
/* The official Google Play badge. Its clear space is part of the picture (41 px of 250 on every side), so the negative margin
   lets the visible black badge stand exactly --bh tall: the same height as the buttons next to it. */
.store-badge { --bh: 54px; display: inline-block; flex: none; line-height: 0; }
.store-badge img { width: auto; max-width: none; height: calc(var(--bh) * 250 / 168); margin: calc(var(--bh) * -41 / 168); transition: transform .3s var(--ease-out); }
.store-badge:hover img { transform: translateY(-2px); }
.store-badge:active img { transform: translateY(1px); }
.store-badge--small { --bh: 40px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; display: grid; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--night); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero--home .hero-img { object-position: var(--pos, 30% 58%); }
.hero--game .hero-img { object-position: 50% 74%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero--home .hero-scrim { background:
  linear-gradient(180deg, rgba(12, 16, 41, .55) 0, rgba(12, 16, 41, 0) 22%),
  linear-gradient(0deg, rgba(12, 16, 41, .95) 0, rgba(12, 16, 41, .62) 34%, rgba(12, 16, 41, 0) 66%),
  linear-gradient(90deg, rgba(12, 16, 41, .62) 0, rgba(12, 16, 41, 0) 58%); }
.hero--game .hero-scrim { --side: 90deg; background:
  linear-gradient(180deg, rgba(12, 16, 41, .85) 0, rgba(12, 16, 41, .4) 32%, rgba(12, 16, 41, 0) 58%),
  linear-gradient(var(--side), rgba(12, 16, 41, .78) 0, rgba(12, 16, 41, .45) 34%, rgba(12, 16, 41, 0) 62%),
  linear-gradient(0deg, rgba(12, 16, 41, .78) 0, rgba(12, 16, 41, 0) 30%); }
[dir="rtl"] .hero--game .hero-scrim { --side: 270deg; }   /* (the shade follows the reading side) */
.hero-inner { position: relative; display: flex; padding-block: calc(var(--header-h) + 32px) clamp(44px, 8vh, 88px); }
.hero--home .hero-inner { align-items: flex-end; }
.hero--game .hero-inner { align-items: flex-start; padding-top: calc(var(--header-h) + clamp(32px, 9vh, 112px)); }
.hero-copy { width: min(640px, 100%); }
.hero--home .hero-copy { margin-left: 0; margin-right: auto; }   /* (on the sunset side of the picture, in both languages) */
.hero-credit { margin-bottom: 16px; color: var(--stone-2); font-size: .9375rem; font-weight: 500; }
.hero-logo { margin-bottom: clamp(16px, 2.4vw, 26px); }
.hero-logo img { width: clamp(210px, 30vw, 400px); }
.hero--game .hero-logo img { width: clamp(230px, 32vw, 440px); }
.hero-line { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.7rem, 7vw, 6.25rem); line-height: .9; letter-spacing: -.01em; text-wrap: balance; }
:lang(en) .hero-line { text-transform: uppercase; }
:lang(ar) .hero-line { font-weight: 700; font-size: clamp(2.3rem, 5.6vw, 4.75rem); line-height: 1.18; letter-spacing: 0; }
.hero-sub { max-width: 36em; margin-top: 18px; color: #e6dfef; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 30px; }
.hero-status { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--stone-2); font-size: .9375rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--kerb); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 183, 5, .55); } 70%, 100% { box-shadow: 0 0 0 11px rgba(242, 183, 5, 0); } }

/* the entrance: one orchestrated moment (after the title card on a first visit) */
.hero-img { animation: push 2.8s var(--ease-out) both; animation-delay: var(--base, 0s); }
.hero-copy > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--base, .1s) + var(--d, 0) * 95ms); }
.hero-copy > .hero-logo { animation-name: logo-in; animation-duration: 1.2s; }
html.intro .hero { --base: 1.2s; }
@keyframes push { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes logo-in { from { opacity: 0; transform: scale(1.05); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }

/* the home slideshow: four moments in the city. The new picture fades in over the old one (no dip to black) while the camera
   drifts sideways; the caption gives the time in the game, and the kerb-yellow bar shows how long until the next one. */
.slide { position: absolute; inset: 0; opacity: 0; }
.slide.is-on { z-index: 2; opacity: 1; transition: opacity 1.6s cubic-bezier(.45, 0, .25, 1); }
.slide.was-on { z-index: 1; opacity: 1; }
.slide.is-on, .slide.was-on { animation: pan-a 11s linear both; }
.slide:nth-child(even).is-on, .slide:nth-child(even).was-on { animation-name: pan-b; }
.slide:first-child { animation-delay: var(--base, 0s); }
@keyframes pan-a { from { transform: scale(1.09) translate3d(-1.4%, 0, 0); } to { transform: scale(1.04) translate3d(1.4%, 0, 0); } }
@keyframes pan-b { from { transform: scale(1.09) translate3d(1.4%, 0, 0); } to { transform: scale(1.04) translate3d(-1.4%, 0, 0); } }
.slide-ui { position: absolute; z-index: 3; right: var(--edge); bottom: clamp(44px, 8vh, 88px); display: flex; align-items: flex-end; gap: 14px; width: min(360px, 30vw); }
.slide-ui > * { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--base, .1s) + 560ms); }
.slide-meta { flex: 1; min-width: 0; }
.slide-cap { display: flex; align-items: baseline; gap: 12px; color: var(--stone); font-size: .9375rem; line-height: 1.4; text-shadow: 0 1px 14px rgba(12, 16, 41, .9); }
.slide-cap time { flex: none; color: var(--kerb); font-size: 1.0625rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.slide-cap.tick { animation: tick .55s var(--ease-out); }
.slide-bar { position: relative; height: 2px; margin-top: 10px; overflow: hidden; background: rgba(237, 230, 218, .24); }
.slide-bar span { position: absolute; inset: 0; background: var(--kerb); transform: scaleX(0); transform-origin: var(--start); }
[data-slides]:not(.is-live) .slide-bar { display: none; }
.is-live .slide-bar span { animation: bar 7s linear both; }
.is-held :is(.slide, .slide-bar span) { animation-play-state: paused; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slide-toggle { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(237, 230, 218, .34); background: rgba(12, 16, 41, .4); color: var(--stone); cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; }
.slide-toggle:hover { border-color: var(--stone); background: var(--stone); color: var(--ink); }
.slide-toggle[hidden] { display: none; }
.i-pause { width: 12px; height: 13px; border-inline: 4px solid currentColor; }
.is-paused .i-pause { width: 12px; height: 14px; border: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* the title card: "Bacode Games presents", the kerb runs across, the curtain lifts (first visit of a session only) */
.title-card { display: none; }
html.intro:not(.intro-done) .title-card { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--night); cursor: pointer; animation: intro-lift 1s var(--ease-cut) 1s both; }
.title-card-credit { color: var(--stone-2); font-size: clamp(.95rem, 1.3vw, 1.1rem); font-weight: 500; letter-spacing: .04em; animation: credit .7s var(--ease-out) .1s both; }
:lang(ar) .title-card-credit { letter-spacing: 0; }
.title-card-kerb { position: absolute; inset-inline: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--kerb) 0 48px, var(--kerb-dark) 48px 96px); transform-origin: var(--start); animation: kerb-run .8s var(--ease-cut) .2s both; }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes credit { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes kerb-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------------------------------------------------------- home: statement, the three scenes, games, studio */
.statement { padding-block: var(--space-section); }
.statement p { max-width: 31ch; font-size: clamp(1.55rem, 3.3vw, 2.85rem); font-weight: 300; line-height: 1.32; letter-spacing: -.01em; }
:lang(ar) .statement p { max-width: 34ch; line-height: 1.75; letter-spacing: 0; }

.scenes { padding-bottom: var(--space-section); }
.triptych { display: flex; gap: 12px; height: clamp(460px, 72vh, 740px); margin-top: clamp(28px, 4vw, 48px); }
.panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; text-decoration: none; transition: flex-grow .9s var(--ease-cut); }
.triptych:hover .panel { flex-grow: .8; }
.triptych .panel:hover, .triptych .panel:focus-visible { flex-grow: 2.2; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.panel:hover img { transform: scale(1.04); }
.panel::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(12, 16, 41, .92) 0, rgba(12, 16, 41, 0) 58%); }
.panel:focus-visible { outline-offset: -3px; }
.panel-copy { position: absolute; inset-inline: 0; bottom: 0; z-index: 1; padding: clamp(18px, 2.4vw, 32px); }
.panel-time { color: var(--kerb); font-size: .9375rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.panel time { display: inline-block; }
.panel h3 { margin-top: 6px; font-size: clamp(1.9rem, 2.7vw, 2.8rem); }
:lang(ar) .panel h3 { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.panel-text { max-width: 30ch; margin-top: 10px; color: var(--stone-2); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s var(--ease-out); }
.panel:hover .panel-text, .panel:focus-visible .panel-text { opacity: 1; transform: none; }
.scenes-more { margin-top: 28px; }

.games-band { padding-bottom: var(--space-section); }
.game-list { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(14px, 1.8vw, 24px); margin-top: clamp(28px, 4vw, 48px); }
.game { display: flex; flex-direction: column; overflow: hidden; background: var(--night-2); text-decoration: none; transition: background-color .4s; }
.game:hover { background: #1c2350; }
.game-art { position: relative; height: clamp(260px, 30vw, 430px); overflow: hidden; background: var(--night); }
.game-art .cover { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform 1.4s var(--ease-out); }
.game:hover .cover { transform: scale(1.045); }
.game-logo { position: absolute; inset-inline-start: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); width: clamp(140px, 26%, 250px); }
.game-art--ribos { background: #ff3731; }
.ribos-fighter { position: absolute; bottom: -14%; inset-inline-end: 4%; height: 116%; width: auto; max-width: none; transform: rotate(8deg); transform-origin: 50% 100%; transition: transform 1s var(--ease-out); }
.game:hover .ribos-fighter { transform: rotate(3deg) translateY(-2%); }
.ribos-mark { position: absolute; inset-inline-start: 7%; bottom: 9%; width: 54%; }
.game-meta { padding: clamp(18px, 2vw, 26px) clamp(18px, 2vw, 28px) clamp(22px, 2.4vw, 30px); }
.game-status { color: var(--kerb); font-size: .875rem; font-weight: 500; }
.game :is(h2, h3) { margin-top: 6px; font-size: clamp(1.9rem, 3vw, 2.75rem); }
:lang(ar) .game :is(h2, h3) { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.game-meta p:last-child { margin-top: 8px; color: var(--muted); font-size: .98rem; }

.band-stone { background: var(--stone); color: var(--ink); }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 5vw, 80px); align-items: end; padding-block: var(--space-section); }
.studio h2 { color: var(--ink); font-size: clamp(3.2rem, 9vw, 8rem); line-height: .86; text-transform: uppercase; }
.studio-lead { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 300; line-height: 1.45; }
.studio-note { margin: 14px 0 26px; color: #4d4853; font-size: 1.0625rem; }

/* ---------------------------------------------------------------- join (shared) */
.join { position: relative; overflow: hidden; padding-block: var(--space-section); background: var(--brand); color: #fff; }
.join h2 { max-width: 12ch; font-size: clamp(3rem, 9vw, 8.25rem); line-height: .86; }
:lang(ar) .join h2 { max-width: min(14ch, 100%); font-size: clamp(2.4rem, 6.5vw, 5.75rem); line-height: 1.15; }
.join p { max-width: 40ch; margin-top: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.3rem); }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: clamp(26px, 3vw, 40px); }
.join-inner { position: relative; }
/* the crew, cut in with the logo's lean (top edge further along than the bottom) */
.join-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(48vw, 780px); clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
[dir="rtl"] .join-art { clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%); }
.join-art img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 62%; }
@media (min-width: 901px) { .join h2 { max-width: min(12ch, 48vw); } :lang(ar) .join h2 { max-width: min(14ch, 44vw); } .join p { max-width: min(40ch, 42vw); } }
@media (max-width: 900px) { .join-art { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--asphalt); color: var(--stone-2); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 64px 44px; }
.footer-brand img { height: 22px; width: auto; }
.footer-brand p { margin-top: 14px; }
.footer-col h2 { margin-bottom: 14px; color: var(--stone); font: 600 .9375rem/1.4 var(--font-text); text-transform: none; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-col a, .footer-base a { text-decoration: none; transition: color .3s; }
.footer-col a:hover, .footer-base a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 4px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding-block: 22px 34px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- the game page */
.what { padding-block: var(--space-section) clamp(24px, 4vw, 56px); }
.what-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); }
.lead { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 300; line-height: 1.45; }
.what-cols p:not(.lead) { color: #d8d2c8; }

.chapter { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 4.5vw, 72px); align-items: center; padding-block: clamp(44px, 7vw, 110px); padding-inline-end: var(--edge); }
.chapter--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); padding-inline: var(--edge) 0; }
.chapter--flip .chapter-media { order: 2; }
.chapter-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { max-width: 520px; }
.chapter-time { display: flex; align-items: baseline; gap: 14px; color: var(--kerb); font-size: .9375rem; font-weight: 500; }
.chapter-time time { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.chapter-time span { color: var(--stone-2); }
.chapter h2 { margin-top: 12px; font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
:lang(ar) .chapter h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
.chapter-copy > p:not(.chapter-time) { max-width: 40ch; margin-top: 18px; color: #d8d2c8; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }

.gallery { padding-block: var(--space-section); background: var(--asphalt); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.strip-nav { display: flex; gap: 10px; }
.strip-btn, .lb-btn { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--line); background: none; color: var(--stone); cursor: pointer; transition: background-color .3s, color .3s; }
.strip-btn:hover, .lb-btn:hover { background: var(--stone); color: var(--ink); }
.strip-btn svg, .lb-btn svg { width: 22px; height: 22px; }
.strip-btn--prev svg, .lb-prev svg { transform: scaleX(-1); }
[dir="rtl"] .strip-btn svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }
[dir="rtl"] .strip-btn--prev svg, [dir="rtl"] .lb-prev svg { transform: none; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: min(82vw, 640px); gap: clamp(12px, 1.4vw, 18px); margin: clamp(28px, 4vw, 44px) 0 0; padding: 0 var(--edge); list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: zoom-in; scroll-snap-align: start; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: filter .5s; }
.shot:hover img { filter: brightness(1.1); }
.shot-cap { display: block; margin-top: 12px; color: var(--stone-2); font-size: .9375rem; }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 9, 22, .97); color: var(--stone); overflow: hidden; }
.lightbox::backdrop { background: rgba(7, 9, 22, .6); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: fade .4s var(--ease-out); }
.lb-top, .lb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lb-bottom { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.lb-count { color: var(--stone-2); font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-stage img.swap { animation: fade .45s var(--ease-out); }
.lb-arrows { display: flex; gap: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-block: var(--space-section); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 500; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 16px; height: 16px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: transform .45s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 58ch; padding-bottom: 24px; color: #d6d0c6; }
.faq details a, .ribos-links a, .about-side a { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease-out), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* the city clock: follows the time of day of the chapter on screen */
.clock-hud { position: fixed; z-index: 40; inset-inline-end: clamp(12px, 2vw, 28px); bottom: clamp(12px, 2vw, 24px); display: flex; align-items: baseline; gap: 12px; padding: 10px 16px 11px; border: 1px solid var(--line); background: rgba(12, 16, 41, .9); pointer-events: none; opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.clock-hud.on { opacity: 1; transform: none; }
[data-clock-time] { display: inline-block; color: var(--kerb); font-size: 1.375rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
[data-clock-label] { color: var(--stone-2); font-size: .875rem; }
.clock-hud.tick [data-clock-time] { animation: tick .55s var(--ease-out); }
@keyframes tick { from { opacity: 0; transform: translateY(45%); } to { opacity: 1; transform: none; } }

/* the phone bar: once the first screen has scrolled away, Discord stays one tap away (and on the game page it carries the city clock) */
.dock { position: fixed; inset: auto 0 0; z-index: 45; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gutter) max(10px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(12, 16, 41, .96); transform: translateY(110%); transition: transform .5s var(--ease-out); }
@supports (backdrop-filter: blur(1px)) { .dock { background: rgba(12, 16, 41, .86); backdrop-filter: blur(14px) saturate(1.2); } }
.dock.on { transform: none; }
.dock-info { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--stone-2); font-size: .875rem; line-height: 1.3; }
.dock .status-dot { flex: none; }
.dock.has-time .status-dot { display: none; }
.dock-time { color: var(--kerb); font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.dock-time:empty { display: none; }
.dock.tick .dock-time { animation: tick .55s var(--ease-out); }
.dock .store-badge { flex: none; }
html:not(.js) .dock { display: none; }
@media (min-width: 901px) { .dock { display: none; } }

/* ---------------------------------------------------------------- plain pages: games, Ribos Rumble, studio, 404 */
.plain { padding-top: var(--header-h); }
.page-head { padding-block: clamp(64px, 10vw, 140px) clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(3.4rem, 12vw, 10rem); line-height: .84; }
:lang(ar) .page-head h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 1.15; }
.page-head p { margin-top: 18px; color: var(--stone-2); font-size: 1.25rem; font-weight: 300; }
.game-list--page { margin-top: 0; margin-bottom: var(--space-section); }

.ribos-page { padding-block: clamp(40px, 6vw, 80px) var(--space-section); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--stone-2); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.back:hover { color: var(--stone); }
.back svg { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="rtl"] .back svg { transform: none; }
.ribos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: 28px; }
.ribos-poster { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: #ff3731; }
.ribos-poster img { position: absolute; bottom: -8%; inset-inline-start: 12%; width: 76%; transform: rotate(8deg); transform-origin: 50% 100%; }
.ribos-title { width: min(440px, 100%); }
.ribos-platform { margin-top: 20px; color: var(--kerb); font-weight: 500; }
.ribos-text { max-width: 34ch; margin-top: 10px; font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 300; }
.play-badge { display: inline-block; margin-top: 26px; }
.play-badge img { height: 58px; width: auto; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 30px 0 0; border-block: 1px solid var(--line); }
.facts div { padding: 16px 0; }
.facts dt { color: var(--muted); font-size: .875rem; }
.facts dd { margin: 4px 0 0; font-size: 1.2rem; font-weight: 500; }
.ribos-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }

.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: end; padding-block: clamp(64px, 10vw, 140px) var(--space-section); }
.about h1 { font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .86; }
:lang(ar) .about h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 1.15; }
.about .lead { margin-top: 28px; }
.about-copy > p:not(.lead) { max-width: 52ch; margin-top: 18px; color: var(--stone-2); }
.about-copy .link-cta { margin-top: 28px; }
.about-side h2 { margin-top: 28px; color: var(--muted); font: 500 .9375rem/1.4 var(--font-text); text-transform: none; letter-spacing: 0; }
.about-side h2:first-child { margin-top: 0; }
.about-side p, .about-side ul { margin: 8px 0 0; font-size: 1.25rem; }
.about-side ul { display: grid; gap: 6px; padding: 0; list-style: none; }

.lost { padding-block: clamp(56px, 9vw, 120px) var(--space-section); }
.lost-code { color: var(--brand); font: 900 clamp(7rem, 30vw, 22rem)/.8 "Big Shoulders Display", Impact, sans-serif; }
.lost-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.lost :is(h1, h2) { font-size: clamp(2rem, 4vw, 3.4rem); }
.lost p:not(.lost-code) { margin-top: 12px; color: var(--stone-2); }
.lost .link-cta { margin-top: 20px; }

/* ---------------------------------------------------------------- motion tied to scrolling (supported browsers; otherwise the class fallback below) */
@supports (animation-timeline: view()) {
  .hero-media { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero-inner, .slide-ui { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 8vh 72vh; }
  [data-reveal] img { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  [dir="rtl"] [data-reveal] img { animation-name: wipe-rtl; }
  .chapter-copy { animation: copy-in linear both; animation-timeline: view(); animation-range: entry 5% cover 32%; }
}
@keyframes drift { to { transform: translate3d(0, 14%, 0); } }
@keyframes hero-out { to { opacity: 0; transform: translate3d(0, -8%, 0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }
@keyframes wipe-rtl { from { clip-path: inset(0 0 0 100%); transform: scale(1.12); } to { clip-path: inset(0); transform: none; } }
@keyframes copy-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
html.js:not(.sda) [data-reveal] img { clip-path: inset(0 100% 0 0); transform: scale(1.1); transition: clip-path 1.2s var(--ease-cut), transform 1.6s var(--ease-out); }
html.js:not(.sda)[dir="rtl"] [data-reveal] img { clip-path: inset(0 0 0 100%); }
html.js:not(.sda) [data-reveal].in img { clip-path: inset(0); transform: none; }

/* ---------------------------------------------------------------- page-to-page: the new page cuts in like a film wipe; the header stays put;
   the Arab Roleplay picture flies from its card into the game page; switching language wipes from the top instead */
@view-transition { navigation: auto; }
::view-transition-group(site-header) { animation-duration: .01s; }
::view-transition-old(root) { animation: vt-out .5s var(--ease-cut) both; }
::view-transition-new(root) { animation: vt-in .8s var(--ease-cut) both; }
html[dir="rtl"]::view-transition-new(root) { animation-name: vt-in-rtl; }
html:active-view-transition-type(lang)::view-transition-new(root) { animation: vt-lang .85s var(--ease-cut) both; }
::view-transition-group(arp-art) { animation-duration: .9s; animation-timing-function: var(--ease-cut); }
::view-transition-old(arp-art), ::view-transition-new(arp-art) { height: 100%; object-fit: cover; }
@keyframes vt-out { to { opacity: .3; transform: scale(.97); } }
@keyframes vt-in { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes vt-in-rtl { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes vt-lang { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav, .header-tools .btn--small { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-tools { margin-inline-start: auto; }
  html:not(.js) .nav { display: flex; flex-wrap: wrap; }
  /* the three scenes become a row you swipe through, the next one peeking in */
  .triptych { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 520px); gap: 10px; width: auto; height: auto; margin-inline: 0; padding-inline: var(--gutter); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .triptych::-webkit-scrollbar { display: none; }
  .panel, .triptych:hover .panel, .triptych .panel:hover { height: clamp(400px, 70vh, 560px); height: clamp(400px, 70svh, 560px); scroll-snap-align: start; }
  .panel:hover img { transform: none; }
  .panel-text { opacity: 1; transform: none; }
  .clock-hud { display: none; }
  .hero--home .hero-img { object-position: var(--pos-m, var(--pos, 50% 50%)); }   /* (portrait screens: crop on each picture's subject) */
  .slide-ui { top: calc(var(--header-h) + 4px); bottom: auto; left: var(--gutter); right: var(--gutter); width: auto; align-items: center; }
  .slide-cap { font-size: .875rem; }
  .hero--home .hero-scrim { background:
    linear-gradient(180deg, rgba(12, 16, 41, .72) 0, rgba(12, 16, 41, 0) 30%),
    linear-gradient(0deg, rgba(12, 16, 41, .95) 0, rgba(12, 16, 41, .66) 40%, rgba(12, 16, 41, 0) 72%); }
  .game-list, .studio, .what-cols, .faq, .about, .ribos, .lost-pair { grid-template-columns: minmax(0, 1fr); }
  .chapter, .chapter--flip { grid-template-columns: minmax(0, 1fr); padding-inline: 0; gap: 26px; }
  .chapter--flip .chapter-media { order: 0; }
  .chapter-copy { width: min(var(--shell), 100% - 2 * var(--gutter)); max-width: none; margin-inline: auto; }
  .game-art { height: auto; aspect-ratio: 16 / 10; }
  .studio { align-items: start; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .wordmark img { height: 17px; }
  .lang { min-height: 38px; padding: 0 10px; }
  .menu-toggle { min-height: 38px; }
  .hero--home .hero-credit { display: none; }   /* (the wordmark is right above it on a phone) */
  .hero-sub { font-size: 1rem; line-height: 1.58; }
  .hero-logo img { width: min(64vw, 300px); }
  .hero--game .hero-logo img { width: min(76vw, 360px); }
  .actions { gap: 14px 22px; }
  .store-badge { --bh: 50px; }
  .store-badge--small { --bh: 38px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .footer-base { flex-direction: column; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-head { align-items: center; }
  .strip-btn { width: 46px; height: 46px; }
  .clock-hud { padding: 8px 12px; }
  [data-clock-time] { font-size: 1.125rem; }
}

/* ---------------------------------------------------------------- reduced motion: everything arrives in place */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-media, .hero-inner, .slide-ui, .slide, [data-reveal] img, .chapter-copy { animation: none !important; }
  html.js:not(.sda) [data-reveal] img { clip-path: none; transform: none; }
  html.intro:not(.intro-done) .title-card { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
