@font-face {
  font-family: Rajdhani;
  src: url('assets/fonts/rajdhani-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url('assets/fonts/rajdhani-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Rajdhani;
  src: url('assets/fonts/rajdhani-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #101124;
  --text: #f4eff7;
  --soft: #c8c6dc;
  --cyan: #8ce6ed;
  --violet: #a685ed;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--night); color: var(--text); font: 500 22px/1.5 Rajdhani, sans-serif; -webkit-font-smoothing: antialiased; }
body, main { min-width: 320px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, p { margin: 0; }
h1, h2 { font-size: clamp(34px, 3.1vw, 46px); font-weight: 700; line-height: 1.13; letter-spacing: -.025em; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, iframe:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
::selection { color: #111124; background: var(--cyan); }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 20; background: var(--text); color: var(--night); padding: 10px 20px; }
.skip-link:focus { top: 15px; }

/* One continuous illustrated opening, with the trailer inside the scene. */
.opening { position: relative; isolation: isolate; overflow: hidden; min-height: 1180px; }
.opening-world { position: absolute; inset: 0; z-index: -2; background: #252043; }
.opening-city { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; opacity: .9; }
.opening-world::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night) 0%, #101124d9 8%, transparent 33%), linear-gradient(90deg, transparent 36%, #15112620 52%, #1011248c 100%); }
.opening-cast { position: absolute; width: 1800px; height: 1013px; top: 0; left: calc(50% - 1580px); mask-image: linear-gradient(transparent, #000 4%, #000 78%, transparent); }
.opening-character, .opening-hand { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.opening-character { filter: drop-shadow(0 0 45px #27043d35); }
.opening-hand { z-index: 1; transform-origin: 58% 90%; }
.opening-inner { width: min(1300px, calc(100% - 100px)); margin: auto; padding: 105px 0 100px; }
.opening-content { width: 570px; max-width: 48%; margin-left: auto; text-align: center; }
.game-logo { width: 94%; margin: 0 auto; filter: drop-shadow(0 5px 10px #17132c); }
.game-tagline { margin-top: 17px; font-size: 18px; font-weight: 600; letter-spacing: .06em; text-shadow: 0 2px 8px #090917; }
.trailer { margin-top: 34px; }
.trailer-frame { position: relative; aspect-ratio: 16/9; background: #0c0b1c; border: 2px solid #b4a5e4; box-shadow: 0 0 0 4px #332944, 0 12px 45px #05041670; }
.trailer-frame::before, .trailer-frame::after { content: ''; position: absolute; width: 22px; height: 22px; border: 3px solid var(--cyan); pointer-events: none; z-index: 3; }
.trailer-frame::before { top: -5px; left: -5px; border-right: 0; border-bottom: 0; }
.trailer-frame::after { bottom: -5px; right: -5px; border-left: 0; border-top: 0; }
.trailer-poster { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; }
.trailer-poster:focus-visible { outline-offset: -7px; }
.trailer-poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s; }
.trailer-poster:hover img { opacity: 1; }
.play-disc { position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; display: grid; place-items: center; padding-left: 4px; background: #241339cf; border: 2px solid #f4eff7b3; border-radius: 50%; font-size: 23px; box-shadow: 0 0 28px #14122499; transition: background .2s, transform .2s; }
.trailer-poster:hover .play-disc { background: #623a8b; transform: scale(1.06); }
.trailer-label { position: absolute; inset: auto 0 0; padding: 18px 12px 10px; background: linear-gradient(transparent, #080918e6); font-size: 17px; font-weight: 600; }
.video-link { display: inline-block; margin-top: 10px; font-size: 15px; color: #ded6ef; }
.video-link:hover { color: var(--cyan); text-decoration: underline; }
.trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-frame.is-playing { min-height: 220px; }
.trailer-feedback { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 17px; background: linear-gradient(#151226c9, #101124ee), url('assets/kleptomagia/city-960.webp') center/cover; }
.trailer-feedback p { font-size: 20px; }
.trailer-feedback a { padding: 9px 21px; border: 1px solid var(--cyan); font-size: 19px; background: #252139; }
.trailer-feedback a:hover { background: #443366; }

.steam-button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-width: 295px; min-height: 83px; padding: 10px 24px; margin-top: 26px; color: #f3eef9; background: linear-gradient(135deg, #66518a, #27263e 57%, #22263a); border: 2px solid #c5b4e6; box-shadow: inset 0 0 0 3px #251e36, 0 6px 20px #0a091c50; transition: filter .2s, transform .2s; }
.steam-button::before, .steam-button::after { content: ''; position: absolute; width: 12px; height: 12px; background: var(--cyan); clip-path: polygon(0 0,100% 0,0 100%); }
.steam-button::before { top: -2px; left: -2px; }
.steam-button::after { right: -2px; bottom: -2px; transform: rotate(180deg); }
.steam-button:hover { filter: brightness(1.2); transform: translateY(-2px); }
.steam-button svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.steam-button span:not(.steam-arrow) { text-align: left; }
.steam-button small { display: block; font-size: 16px; line-height: 1.2; }
.steam-button strong { display: block; font-size: 33px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.steam-arrow { color: var(--cyan); font-size: 25px; }
.release-note { margin-top: 12px; color: #d8ccec; font-size: 17px; }
.intro { text-align: left; padding-top: 68px; max-width: 500px; margin-inline: auto; }
.intro h1 { text-shadow: 0 2px 10px #101124aa; }
.intro p { margin-top: 24px; color: #e3dcec; font-size: 22px; line-height: 1.5; }
.motion-control { position: absolute; bottom: 25px; left: 35px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: #10112488; border: 1px solid #b9b2d452; color: #dad5e7; font-size: 13px; }
.motion-ready .opening-hand { animation: card-float 8s ease-in-out infinite alternate; }
@keyframes card-float { to { transform: translateY(-10px) rotate(-.8deg); } }
.motion-paused, .motion-paused * { scroll-behavior: auto !important; animation-play-state: paused !important; }

/* A second painted scene rather than a sequence of boxed feature rows. */
.features { position: relative; isolation: isolate; overflow: hidden; padding: 70px 0 20px; }
.feature-light { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 65% 55%, #54398799, #28264475 46%, transparent 73%); }
.features-inner { width: min(1200px, calc(100% - 120px)); margin: auto; display: grid; grid-template-columns: 1fr 1.12fr; gap: 45px; align-items: center; }
.features-copy { padding: 35px 0; }
.features-copy h2 { margin-bottom: 31px; }
.feature-list { margin: 0; padding-left: 21px; }
.feature-list li { padding-left: 7px; margin-bottom: 23px; font-size: 21px; line-height: 1.5; color: var(--soft); }
.feature-list li::marker { color: var(--violet); }
.feature-list strong { color: var(--text); }
.character-pair { position: relative; height: 690px; }
.pair-mira { position: absolute; height: 81%; width: 73%; object-fit: contain; object-position: bottom; right: -8%; top: 0; filter: drop-shadow(0 10px 22px #0c0b2170); mask-image: linear-gradient(#000 85%, transparent); }
.pair-sera { position: absolute; height: 97%; width: 94%; object-fit: contain; object-position: bottom; left: -9%; bottom: 0; filter: drop-shadow(10px 8px 20px #12112675); mask-image: linear-gradient(#000 93%, transparent); }
.story { width: min(780px, calc(100% - 50px)); margin: auto; padding: 80px 0 85px; text-align: center; }
.story h2 { color: #eee5fa; margin-bottom: 26px; }
.story p { color: var(--soft); margin-top: 18px; font-size: 22px; }

.gallery-section { padding: 20px 24px 60px; text-align: center; background: radial-gradient(ellipse at 50% 65%, #2b214955, transparent 70%); }
.gallery-section h2 { margin-bottom: 37px; }
.gallery-shell { max-width: 1020px; margin: auto; }
.gallery-track { position: relative; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #a38bc4 #17152d; }
.gallery-enhanced { scrollbar-width: none; }
.gallery-enhanced::-webkit-scrollbar { display: none; }
.gallery-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.gallery-slide a { display: block; border: 2px solid #ae9acb; background: #100f1c; padding: 5px; }
.gallery-slide a:focus-visible { outline-offset: -7px; }
.gallery-slide img { width: 100%; }
.gallery-slide figcaption { padding: 15px 10px 10px; font-size: 17px; color: var(--soft); }
.gallery-controls { display: flex; justify-content: center; gap: 22px; align-items: center; margin-top: 18px; }
.gallery-controls button { width: 44px; height: 42px; border: 1px solid #9387b6; background: #242039; font-size: 23px; line-height: 1; }
.gallery-controls button:hover { border-color: var(--cyan); background: #393055; }
.gallery-controls span { color: var(--soft); font-size: 17px; min-width: 42px; }
.art-credit { margin: 52px auto 0; color: #d9d0e7; font-size: 19px; }
.art-credit span { font-size: 17px; color: #aaa5c3; }
.steam-button-small { margin-top: 33px; min-width: 310px; }
.steam-button-small strong { font-size: 24px; letter-spacing: 0; text-transform: none; }
.site-footer { text-align: center; padding: 25px 24px 38px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 32px; font-size: 17px; margin-bottom: 28px; }
.site-footer nav a:hover { color: var(--cyan); }
.site-footer img { width: 115px; height: 50px; object-fit: contain; margin: 0 auto 15px; }
.site-footer p { font-size: 14px; color: #a09cb5; }

@media (min-width: 1800px) {
  .opening-cast { left: calc(50% - 1610px); width: 1900px; height: 1069px; }
}
@media (max-width: 1150px) {
  .opening { min-height: 1120px; }
  .opening-inner { width: calc(100% - 64px); padding-top: 85px; }
  .opening-content { max-width: 50%; }
  .opening-cast { width: 1500px; height: 844px; left: calc(50% - 1330px); top: 0; }
  .game-tagline { font-size: 16px; letter-spacing: 0; }
  .intro { padding-top: 55px; }
  .intro p { font-size: 21px; }
  .features-inner { width: calc(100% - 80px); gap: 18px; }
  .character-pair { height: 610px; }
  .feature-list li { font-size: 20px; }
}
@media (max-width: 850px) {
  .opening-inner { width: calc(100% - 44px); padding-top: 70px; }
  .opening-content { max-width: 52%; }
  .opening-cast { width: 1350px; height: 760px; left: calc(50% - 1210px); top: 0; }
  .game-logo { width: 100%; }
  .intro h1 { font-size: 33px; }
  .intro p { font-size: 20px; }
  .steam-button { min-width: 250px; gap: 15px; padding-inline: 18px; }
  .steam-button strong { font-size: 28px; }
  .features-inner { width: calc(100% - 48px); grid-template-columns: 1.05fr 1fr; gap: 10px; }
  .character-pair { height: 560px; }
  .feature-list li { font-size: 19px; }
}
@media (max-width: 700px) {
  h1, h2 { font-size: 34px; }
  .opening { min-height: 0; padding-bottom: 60px; }
  .opening-inner { width: calc(100% - 40px); padding: 44px 0 0; }
  .opening-content { width: 100%; max-width: none; }
  .game-logo { width: min(420px, 100%); }
  .game-tagline { font-size: 17px; margin-top: 13px; }
  .opening-city { height: 850px; object-position: 72% center; }
  .opening-cast { width: 1050px; height: 591px; left: calc(50% - 770px); top: 120px; opacity: .9; }
  .opening-world::after { background: linear-gradient(0deg, var(--night) 5%, #101124f0 40%, #10112415 78%); }
  .trailer { margin-top: 270px; }
  .trailer-label { font-size: 15px; }
  .play-disc { width: 58px; height: 58px; font-size: 20px; }
  .steam-button { min-width: 270px; min-height: 80px; margin-top: 24px; }
  .release-note { font-size: 16px; }
  .intro { text-align: center; padding-top: 50px; max-width: 500px; }
  .intro h1 { font-size: 34px; }
  .intro p { font-size: 21px; margin-top: 22px; }
  .motion-control { display: none; }
  .motion-ready .opening-hand { animation: none; }
  .features { padding-top: 0; }
  .features-inner { display: flex; flex-direction: column; width: calc(100% - 44px); gap: 0; }
  .features-copy { max-width: 500px; }
  .features-copy h2 { text-align: center; }
  .feature-list li { font-size: 20px; }
  .character-pair { width: min(100%, 470px); height: 490px; }
  .pair-mira { right: -2%; }
  .pair-sera { left: -4%; }
  .story { padding-block: 45px 65px; }
  .story p { font-size: 21px; }
  .gallery-section { padding-inline: 20px; padding-bottom: 45px; }
  .gallery-section h2 { margin-bottom: 26px; }
  .gallery-slide figcaption { font-size: 15px; }
  .gallery-slide a { padding: 2px; }
  .art-credit { font-size: 18px; margin-top: 40px; }
  .steam-button-small { min-width: 270px; }
  .steam-button-small strong { font-size: 23px; }
  .site-footer nav { gap: 12px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .motion-control { display: none; }
}
