/* Shared prelander layout + three brand themes (data-brand on <html>).
   Layout contract: picture background, story copy on the left, big video/picture/playable stage on the right. */

@font-face { font-family: "HarmonyOS Sans"; src: url("fonts/HarmonyOS_Sans_Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HarmonyOS Sans"; src: url("fonts/HarmonyOS_Sans_Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Brand tokens ---------- */
/* Opera GX: measured on opera.com/gx. Headline font "underwave" is Opera's licensed face; Chakra Petch is the fallback. */
[data-brand="gx"] {
  --bg: #121019; --bg-2: #1b1825; --bg-3: #242031; --line: #484063; --raise: #36304a;
  --ink: #ffffff; --text: #bdb8d1; --mute: #8a80ac;
  --accent: #fa1e4e; --accent-2: #ff4d73; --on-accent: #000000; --accent-soft: rgba(250, 30, 78, .22);
  --glow: rgba(250, 30, 78, .5); --enemy: #8a80ac;
  --display: underwave, "Chakra Petch", Roboto, sans-serif; --display-weight: 700; --display-case: uppercase; --display-track: .01em;
  --body: Inter, Roboto, sans-serif; --mono: "Space Mono", ui-monospace, monospace;
  --radius: 2px; --cta-clip: none;
  --overlay: linear-gradient(90deg, rgba(18,16,25,.97) 0%, rgba(18,16,25,.88) 30%, rgba(18,16,25,.5) 52%, rgba(18,16,25,.2) 100%);
}
/* Project Entropy: measured on projectentropygame.com (HarmonyOS Sans, cyan on deep navy, orange alerts). */
[data-brand="entropy"] {
  --bg: #070e19; --bg-2: #0d1a26; --bg-3: #10242f; --line: rgba(72, 246, 242, .3); --raise: #0d3e47;
  --ink: #ffffff; --text: #c9e9ec; --mute: #71bebe;
  --accent: #48f6f2; --accent-2: #99dce2; --on-accent: #04121a; --accent-soft: rgba(72, 246, 242, .2);
  --glow: rgba(72, 246, 242, .5); --enemy: #ff5a00;
  --display: "HarmonyOS Sans", "Segoe UI", Roboto, sans-serif; --display-weight: 700; --display-case: uppercase; --display-track: .04em;
  --body: "HarmonyOS Sans", "Segoe UI", Roboto, sans-serif; --mono: "HarmonyOS Sans", ui-monospace, monospace;
  --radius: 0px; --cta-clip: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  --overlay: linear-gradient(90deg, rgba(7,14,25,.97) 0%, rgba(7,14,25,.86) 32%, rgba(7,14,25,.45) 55%, rgba(7,14,25,.15) 100%);
}
/* Arknights: measured on arknights.global (Oswald headlines, monochrome industrial UI, cyan logo #18d1ff). */
[data-brand="arknights"] {
  --bg: #0e0e10; --bg-2: #18181b; --bg-3: #232327; --line: rgba(255, 255, 255, .18); --raise: #2e2e2e;
  --ink: #ffffff; --text: #d6dcde; --mute: #a6b8bd;
  --accent: #18d1ff; --accent-2: #7fe4ff; --on-accent: #06141a; --accent-soft: rgba(24, 209, 255, .2);
  --glow: rgba(24, 209, 255, .45); --enemy: #e8434b;
  --display: Oswald, "Arial Narrow", sans-serif; --display-weight: 700; --display-case: uppercase; --display-track: .02em;
  --body: "Noto Sans", Roboto, sans-serif; --mono: Oswald, "Arial Narrow", sans-serif;
  --radius: 0px; --cta-clip: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
  --overlay: linear-gradient(90deg, rgba(14,14,16,.96) 0%, rgba(14,14,16,.84) 32%, rgba(14,14,16,.4) 56%, rgba(14,14,16,.12) 100%);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; cursor: pointer;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1520px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3.6vw, 64px); }

/* ---------- Top bar ---------- */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.lockup img { height: 34px; width: auto; }
.lockup b { font: var(--display-weight) 21px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.gx-mark { width: 30px; height: 30px; border: 3px solid var(--accent); border-radius: 50%; position: relative; flex: none; }
.gx-mark::after { content: ""; position: absolute; inset: 3px 7px; border: 2px solid var(--accent); border-radius: 50%; }
.bar-cta { display: inline-flex; align-items: center; gap: 10px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--radius); background: rgba(0,0,0,.3); }
.mini-cta { padding: 11px 18px; background: var(--accent); color: var(--on-accent); text-decoration: none; font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius); clip-path: var(--cta-clip); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 720px); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--bg-pos, 60% 50%); transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay), linear-gradient(to top, var(--bg) 0%, transparent 26%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(60vmax 46vmax at 72% 50%, var(--glow), transparent 62%); opacity: .3; mix-blend-mode: screen; }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 3.6vw, 64px); align-items: center; padding-top: 104px; padding-bottom: 72px; }

/* Left: story copy */
.copy { max-width: 600px; }
.chapter { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; font: 700 13px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.chapter::before { content: ""; width: 38px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
h1 {
  margin: 0 0 24px; color: var(--ink); text-wrap: balance;
  font: var(--display-weight) clamp(40px, 5vw, 78px)/.96 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case);
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
[data-brand="entropy"] h1 { font-size: clamp(36px, 4.2vw, 64px); letter-spacing: .02em; }
/* Highlighted words: brand color plus a marker stripe behind the text. */
h1 em {
  font-style: normal; color: var(--accent); text-shadow: 0 0 36px var(--glow);
  background: linear-gradient(transparent 64%, var(--accent-soft) 64%, var(--accent-soft) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em;
}
.story { margin: 0 0 14px; font-size: clamp(16px, 1.2vw, 18.5px); color: var(--text); max-width: 54ch; }
.story strong { color: var(--ink); font-weight: 700; }
.proof { list-style: none; margin: 22px 0 32px; padding: 0; display: grid; gap: 11px; }
.proof li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--text); }
.proof li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; background: var(--accent); clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
.proof b { color: var(--ink); }

/* CTA */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 74px; padding: 0 46px; border: 0; border-radius: var(--radius); clip-path: var(--cta-clip);
  background: linear-gradient(180deg, var(--accent-2), var(--accent) 55%); color: var(--on-accent); text-decoration: none; cursor: pointer;
  font: 800 18px/1 var(--body); letter-spacing: .05em; text-transform: uppercase;
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.cta svg { width: 22px; height: 22px; flex: none; }
.cta .arrow { width: 20px; height: 20px; transition: transform .2s ease; }
.cta:hover .arrow { transform: translateX(4px); }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 55%, 100% { transform: translateX(120%); } }
.cta-wrap { position: relative; display: inline-flex; filter: drop-shadow(0 0 22px var(--glow)) drop-shadow(0 10px 24px rgba(0,0,0,.5)); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { filter: drop-shadow(0 0 34px var(--glow)) drop-shadow(0 10px 24px rgba(0,0,0,.5)); } }
.micro { font: 600 12px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.micro b { color: var(--accent); }

/* Right: stage */
.stage { position: relative; }
.frame {
  position: relative; overflow: hidden; background: #000; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 50px 110px rgba(0,0,0,.65), 0 0 0 1px rgba(0,0,0,.4), 0 0 80px -12px var(--glow);
}
.frame video, .frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame.wide { aspect-ratio: 16 / 9; }
.frame.cine { aspect-ratio: 2.1 / 1; }
.frame.tall { aspect-ratio: 4 / 4.4; max-height: 78vh; margin-left: auto; }
.corners::before, .corners::after { content: ""; position: absolute; z-index: 3; width: 34px; height: 34px; border: 0 solid var(--accent); pointer-events: none; }
.corners::before { top: -1px; left: -1px; border-top-width: 3px; border-left-width: 3px; }
.corners::after { bottom: -1px; right: -1px; border-bottom-width: 3px; border-right-width: 3px; }
.hud { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(0,0,0,.62); backdrop-filter: blur(6px); border-left: 3px solid var(--accent); }
.hud.tl { top: 16px; left: 16px; } .hud.br { bottom: 16px; right: 16px; } .hud.bl { bottom: 16px; left: 16px; } .hud.tr { top: 16px; right: 16px; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font: 700 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.caption b { color: var(--ink); }

/* Stage collage (Opera GX picture variant) */
.collage { position: relative; aspect-ratio: 1.25 / 1; }
.collage .shot { position: absolute; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 34px 80px rgba(0,0,0,.65); background: var(--bg-2); animation: float 7s ease-in-out infinite alternate; }
.collage .shot img { width: 100%; height: 100%; object-fit: cover; }
.collage .shot:nth-child(2) { animation-delay: -2s; } .collage .shot:nth-child(3) { animation-delay: -4s; }
@keyframes float { to { transform: translateY(-12px); } }

/* Civilization lineup hover (Project Entropy picture variant): the screenshot already carries the names. */
.civs .civ { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--x); width: 20%; transition: background .25s ease, box-shadow .25s ease; }
.civs .civ b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.civs .civ:hover { background: linear-gradient(to top, rgba(72, 246, 242, .32), transparent 65%); box-shadow: inset 0 0 0 2px var(--accent); }

/* ---------- Playable demo ---------- */
.game { position: relative; cursor: default; user-select: none; -webkit-user-select: none; }
.game .frame { aspect-ratio: 16 / 10; background: var(--bg); touch-action: manipulation; }
.game canvas { width: 100%; height: 100%; cursor: crosshair; }
.game-hud { position: absolute; z-index: 3; inset: 14px 14px auto 14px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.game-hud .pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px); border-left: 3px solid var(--accent); color: var(--ink); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.game-hud .pill.warn { border-left-color: var(--enemy); }
.toolbar { display: grid; grid-template-columns: repeat(var(--tools, 4), minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.tool {
  position: relative; display: grid; gap: 4px; padding: 10px 12px; text-align: left; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  font: 700 13px/1.1 var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.tool small { font: 500 11px/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--mute); }
.tool .cost { position: absolute; top: 8px; right: 10px; color: var(--accent); }
.tool:hover { transform: translateY(-2px); border-color: var(--mute); }
.tool[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 20px var(--glow); background: var(--bg-3); }
.tool:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tool i.swatch { width: 14px; height: 14px; border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.game-tip { margin: 10px 0 0; min-height: 1.5em; font: 600 13px/1.5 var(--body); color: var(--text); }
.game-tip b { color: var(--accent); }
.overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(0,0,0,.55), rgba(0,0,0,.88)); backdrop-filter: blur(3px);
}
.overlay[hidden] { display: none; }
.overlay > div { max-width: 460px; }
.overlay .kicker { margin: 0 0 10px; font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.overlay h3 { margin: 0 0 12px; color: var(--ink); font: var(--display-weight) clamp(26px, 3vw, 42px)/1 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.overlay p { margin: 0 0 18px; font-size: 15px; }
.overlay .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.overlay .cta { min-height: 60px; padding: 0 30px; font-size: 16px; }
.ghost-btn { min-height: 60px; padding: 0 22px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); font: 700 14px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ghost-btn:hover { border-color: var(--accent); }
.choice-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; text-align: left; }
.choice-row button { padding: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line); color: var(--ink); cursor: pointer; font: 700 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; border-radius: var(--radius); }
.choice-row button small { display: block; margin-top: 5px; font: 400 11.5px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--mute); }
.choice-row button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--glow); }
.slider { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.slider input { width: 100%; accent-color: var(--accent); }
.slider output { min-width: 5.5ch; text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }

/* GX Control challenge (Opera GX playable) */
.gxc .frame { aspect-ratio: 16 / 9.4; }
.gxc video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .3s ease; }
.gxc .gx-chrome { position: absolute; z-index: 2; inset: 0 0 auto 0; display: flex; gap: 6px; align-items: flex-end; padding: 10px 10px 0; min-height: 52px; background: linear-gradient(rgba(12,11,20,.96), rgba(12,11,20,.75)); border-bottom: 1px solid var(--line); overflow: hidden; }
.gxc .gx-chrome .count { flex: none; align-self: center; margin-right: 4px; padding: 6px 8px; font: 700 11px/1 var(--mono); color: var(--ink); background: var(--raise); }
.gx-tab { position: relative; flex: 0 1 170px; min-width: 92px; display: grid; padding: 7px 26px 7px 10px; background: var(--bg-3); border-top: 2px solid var(--raise); animation: tabIn .35s ease both; }
.gx-tab.hot { border-top-color: var(--accent); background: linear-gradient(rgba(250,30,78,.22), var(--bg-3)); }
.gx-tab em { font: 600 11px/1.2 var(--body); font-style: normal; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-tab small { font: 400 10px/1.3 var(--mono); color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gx-tab.hot small { color: #ff9db1; }
.gx-tab button { position: absolute; top: 5px; right: 4px; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: var(--mute); font-size: 16px; line-height: 1; cursor: pointer; }
.gx-tab button:hover { color: #fff; background: var(--accent); }
@keyframes tabIn { from { opacity: 0; transform: translateY(-10px); } }
.gxc .fps { position: absolute; z-index: 2; right: 14px; top: 66px; padding: 10px 14px; text-align: right; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); border-right: 3px solid #3dff8f; transition: border-color .2s ease; }
.gxc .fps b { display: block; color: #fff; font: 700 clamp(30px, 3.6vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; }
.gxc .fps span { font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--mute); }
.gxc .fps.bad { border-right-color: var(--accent); }
.gxc .fps.bad b { color: var(--accent); }
.gxc .meters { position: absolute; z-index: 2; left: 14px; bottom: 12px; display: grid; gap: 4px; padding: 10px 12px; background: rgba(0,0,0,.66); backdrop-filter: blur(6px); font: 700 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.gxc .meters b { color: #fff; font-variant-numeric: tabular-nums; }
.gxc .graph { position: absolute; z-index: 2; right: 14px; bottom: 12px; width: 42%; height: 72px; background: rgba(0,0,0,.55); }
.gxc .lag-veil { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(250,30,78,.45)); }
.gxc .lag .lag-veil { opacity: 1; }
.gxc .lag video { filter: saturate(.6) blur(.6px); animation: stutter .45s steps(2) infinite; }
.gxc .lag-hard video { filter: saturate(.3) blur(1.4px) brightness(.8); animation-duration: .25s; }
@keyframes stutter { 50% { transform: translate(2px, -1px); } }
.gxc .controls { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.gxc .controls .slider { margin: 0; }

/* ---------- Story strip ---------- */
.chapters { position: relative; padding: clamp(64px, 10vh, 112px) 0; background: linear-gradient(var(--bg), var(--bg-2)); }
.chapters h2 { margin: 0 0 12px; color: var(--ink); font: var(--display-weight) clamp(30px, 3.4vw, 50px)/1.02 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.chapters .lead { margin: 0 0 38px; max-width: 62ch; font-size: 17px; }
.beats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: beat; }
.beat { position: relative; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s ease, border-color .25s ease; }
.beat:hover { transform: translateY(-4px); border-color: var(--accent); }
.beat figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.beat figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.beat:hover figure img { transform: scale(1.06); }
.beat div { padding: 22px 24px 26px; }
.beat h3 { margin: 0 0 8px; color: var(--ink); font: var(--display-weight) 22px/1.15 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.beat h3::before { counter-increment: beat; content: "0" counter(beat) " / "; color: var(--accent); }
.beat p { margin: 0; font-size: 15px; }

/* ---------- Final CTA band ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 13vh, 140px) 0; text-align: center; }
.final img.final-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.66), rgba(0,0,0,.84)), radial-gradient(60vmax 40vmax at 50% 50%, var(--glow), transparent 70%); }
.final h2 { margin: 0 auto 16px; max-width: 18ch; color: var(--ink); font: var(--display-weight) clamp(34px, 4.6vw, 66px)/1 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.final h2 em { font-style: normal; color: var(--accent); }
.final p { margin: 0 auto 32px; max-width: 52ch; font-size: 17px; }
.final .cta-row { justify-content: center; }

/* ---------- Sticky CTA bar (appears after the hero) ---------- */
.sticky {
  position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; transform: translateY(110%); transition: transform .35s ease;
  background: rgba(0,0,0,.82); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.sticky.show { transform: none; }
.sticky .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.sticky p { margin: 0; color: var(--ink); font: var(--display-weight) 18px/1.2 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.sticky p span { color: var(--accent); }
.sticky .cta { min-height: 54px; padding: 0 30px; font-size: 15px; }

/* ---------- Cloudflare verification dialog ---------- */
.verify {
  width: min(460px, calc(100vw - 32px)); padding: 30px 28px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); color: var(--text); text-align: center; cursor: default;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 60px -10px var(--glow);
}
.verify::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.verify-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--mute); font-size: 24px; cursor: pointer; }
.verify-x:hover { color: var(--ink); }
.verify-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--accent); font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.verify-kicker svg { width: 18px; height: 18px; }
.verify h2 { margin: 0 0 10px; color: var(--ink); font: var(--display-weight) 30px/1.05 var(--display); letter-spacing: var(--display-track); text-transform: var(--display-case); }
.verify-text { margin: 0 0 18px; font-size: 15px; }
.verify-widget { min-height: 65px; display: grid; place-items: center; }
.verify-widget[hidden], .verify-retry[hidden] { display: none; }
.verify-status { min-height: 1.4em; margin: 10px 0 0; font: 600 13px/1.4 var(--body); color: var(--mute); }
.verify-done { margin-top: 4px; }
.verify-done .cta-wrap, .verify-done .cta { width: 100%; }
.verify.ok .verify-kicker { color: #3dff8f; }
.verify-retry { margin-top: 10px; padding: 10px 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); font: 700 13px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.verify-retry:hover { border-color: var(--accent); }
.verify-fine { margin: 16px 0 0; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }

.foot { padding: 24px 0 96px; background: var(--bg); border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); cursor: default; }
.foot p { margin: 0 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 92px; }
  .hero::before { background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, var(--bg) 94%), var(--overlay); }
  .copy { max-width: 760px; }
  .beats { grid-template-columns: 1fr; }
  .frame.tall { margin: 0 auto; max-height: 70vh; }
}
@media (max-width: 600px) {
  .tag { display: none; }
  .cta-wrap, .cta { width: 100%; }
  .cta { padding: 0 22px; font-size: 16px; min-height: 66px; }
  .caption { flex-direction: column; }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-row { grid-template-columns: 1fr; }
  .sticky p { display: none; }
  .sticky .cta-wrap { width: 100%; }
  .hero .wrap { padding-top: 112px; }
  .mini-cta { padding: 10px 12px; font-size: 12px; }
  .game .frame { aspect-ratio: 4 / 4.3; }
  .gxc .frame { aspect-ratio: 4 / 4.6; }
  .overlay { padding: 14px; }
  .overlay h3 { font-size: 24px; }
  .overlay p { font-size: 13px; margin-bottom: 12px; }
  .overlay .cta, .ghost-btn { min-height: 50px; font-size: 14px; }
  .choice-row { gap: 6px; margin-bottom: 10px; }
  .choice-row button { padding: 8px 10px; }
  .gxc .fps { top: 60px; padding: 6px 10px; }
  .gxc .meters { padding: 6px 8px; font-size: 10px; }
  .gxc .controls { grid-template-columns: 1fr 1fr; }
  .gxc .controls .slider { grid-column: 1 / -1; }
  .gxc .graph { width: 46%; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =====================================================================
   One-screen prelanders (html.onepage): everything fits in the viewport,
   no scrolling, no extra sections. Two layouts:
   .split  = story left, video/picture right, picture background
   .cinema = full-screen video, text and CTA centered
   ===================================================================== */

/* Game cursors */
[data-brand="entropy"].onepage, [data-brand="entropy"].onepage body { cursor: url("cursors/entropy.svg") 18 18, crosshair; }
[data-brand="entropy"].onepage a, [data-brand="entropy"].onepage button { cursor: url("cursors/entropy-lock.svg") 18 18, pointer; }
[data-brand="arknights"].onepage, [data-brand="arknights"].onepage body { cursor: url("cursors/arknights.svg") 18 18, crosshair; }
[data-brand="arknights"].onepage a, [data-brand="arknights"].onepage button { cursor: url("cursors/arknights-deploy.svg") 18 18, pointer; }

.onepage body { min-height: 100svh; }
@media (min-width: 901px) and (min-height: 560px) {
  .onepage, .onepage body { height: 100%; overflow: hidden; }
}
.onepage .hero { height: 100svh; min-height: 560px; }
.onepage .tag b { color: var(--accent); }

/* ---------- Split layout ---------- */
.onepage .split .wrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding-top: clamp(76px, 11vh, 104px); padding-bottom: clamp(24px, 5vh, 56px); }
.onepage .split h1 { font-size: clamp(36px, min(4.6vw, 8vh), 76px); margin-bottom: clamp(12px, 2.4vh, 22px); }
.onepage .lede { margin: 0 0 clamp(16px, 3vh, 28px); max-width: 46ch; font-size: clamp(16px, min(1.3vw, 2.2vh), 19px); line-height: 1.55; color: var(--text); }
.onepage .lede b { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(18px, 3.4vh, 32px); padding: 0; list-style: none; }
.chips li { padding: 7px 12px; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: rgba(0,0,0,.42); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(4px); }
.chips li::before { content: "◆"; margin-right: 7px; color: var(--accent); font-size: 9px; vertical-align: 1px; }
.onepage .split .frame.wide, .onepage .split .frame.cine { max-height: 66vh; }
.onepage .split .frame.tall { max-height: 74vh; aspect-ratio: 4 / 4.6; }

/* ---------- Big inviting CTA ---------- */
.big-cta { position: relative; display: inline-flex; isolation: isolate; }
.big-cta .cta { min-height: clamp(66px, 9vh, 84px); padding: 0 clamp(36px, 4vw, 60px); font-size: clamp(17px, 1.5vw, 21px); letter-spacing: .07em; }
.big-cta::before, .big-cta::after {
  content: ""; position: absolute; z-index: -1; inset: -10px; border: 2px solid var(--accent); border-radius: var(--radius);
  clip-path: var(--cta-clip); opacity: 0; animation: ripple 2.4s ease-out infinite;
}
.big-cta::after { animation-delay: 1.2s; }
@keyframes ripple { 0% { transform: scale(.94); opacity: .8; } 100% { transform: scale(1.22, 1.5); opacity: 0; } }
.cta-note { display: block; margin-top: 12px; font: 700 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.cta-note b { color: var(--accent); }

/* ---------- Cinema layout ---------- */
.cinema { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; text-align: center; isolation: isolate; }
.cinema .bgv { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
.cinema::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(ellipse 70% 62% at 50% 52%, rgba(0,0,0,.25), rgba(0,0,0,.82) 100%), linear-gradient(to top, var(--bg) 0%, transparent 30%), linear-gradient(to bottom, rgba(0,0,0,.7), transparent 24%); }
.cinema::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.cinema .center { width: min(980px, 100% - 32px); padding-top: 40px; }
.cinema .chapter { justify-content: center; }
.cinema .chapter::after { content: ""; width: 38px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--glow); }
.cinema h1 { font-size: clamp(42px, min(7.4vw, 11vh), 112px); line-height: .94; margin: 0 auto clamp(14px, 2.6vh, 24px); text-shadow: 0 6px 40px rgba(0,0,0,.8); }
.cinema .lede { margin: 0 auto clamp(22px, 4vh, 38px); max-width: 44ch; font-size: clamp(16px, min(1.5vw, 2.4vh), 21px); color: #e8eef2; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.cinema .chips { justify-content: center; margin-top: clamp(20px, 3.6vh, 34px); margin-bottom: 0; }
.frame-corners span { position: absolute; z-index: 1; width: clamp(28px, 4vw, 54px); height: clamp(28px, 4vw, 54px); border: 0 solid var(--accent); opacity: .85; pointer-events: none; }
.frame-corners span:nth-child(1) { top: 18px; left: 18px; border-top-width: 3px; border-left-width: 3px; }
.frame-corners span:nth-child(2) { top: 18px; right: 18px; border-top-width: 3px; border-right-width: 3px; }
.frame-corners span:nth-child(3) { bottom: 18px; left: 18px; border-bottom-width: 3px; border-left-width: 3px; }
.frame-corners span:nth-child(4) { bottom: 18px; right: 18px; border-bottom-width: 3px; border-right-width: 3px; }
.cinema .hud-line { position: absolute; z-index: 1; left: 50%; bottom: 22px; transform: translateX(-50%); font: 700 11px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.6); white-space: nowrap; }

/* ---------- One-screen mobile ---------- */
@media (max-width: 900px) {
  .onepage .hero { height: auto; min-height: 100svh; }
  .onepage .split .wrap { grid-template-columns: 1fr; gap: 18px; padding-top: 84px; padding-bottom: 24px; }
  .onepage .split .stage { order: -1; }
  .onepage .split .frame.wide, .onepage .split .frame.cine { max-height: 30svh; }
  .onepage .split .frame.tall { aspect-ratio: 16 / 10; max-height: 30svh; }
  .onepage .split .frame.tall img { object-position: 50% 25%; }
  .onepage .caption { display: none; }
  .onepage .split h1 { font-size: clamp(30px, 8.6vw, 44px); }
  .onepage .lede { font-size: 15.5px; }
  .chips li { padding: 6px 9px; font-size: 10.5px; }
  .big-cta, .big-cta .cta { width: 100%; }
  .cinema h1 { font-size: clamp(36px, 11vw, 60px); }
}
@media (max-height: 700px) and (min-width: 901px) { .onepage .split .chips { display: none; } }
.mini-cta { white-space: nowrap; }
@media (max-width: 600px) { .onepage .lockup img { max-width: 52vw; height: auto; } }
