:root {
  --ink: #17112f;
  --violet: #4b2bad;
  --orchid: #c962d8;
  --lavender: #e3d8ff;
  --sky: #99e6f2;
  --sun: #ffcf5a;
  --paper: #f7f4ff;
  --white: #ffffff;
  --line: rgba(23, 17, 47, 0.16);
  --radius: 30px;
  --display: Georgia, "Times New Roman", serif;
  --body: "Trebuchet MS", "Avenir Next", Avenir, sans-serif;
  --utility: "Arial Narrow", "Avenir Next Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--white);
}
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: .9; }
.brand b { display: block; font-family: var(--display); font-size: 20px; font-style: italic; font-weight: 600; }
.brand small { display: block; margin-top: 6px; font: 700 10px/1 var(--utility); letter-spacing: .22em; text-transform: uppercase; }
.brand-orchid { position: relative; display: inline-block; width: 38px; height: 38px; transform: rotate(-8deg); }
.brand-orchid i { position: absolute; top: 4px; left: 14px; width: 12px; height: 19px; border-radius: 100% 10% 100% 40%; background: var(--orchid); transform-origin: 6px 15px; }
.brand-orchid i:nth-child(2) { transform: rotate(72deg); }
.brand-orchid i:nth-child(3) { transform: rotate(144deg); }
.brand-orchid i:nth-child(4) { transform: rotate(216deg); }
.brand-orchid i:nth-child(5) { transform: rotate(288deg); }
.brand-orchid::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--sun); }
nav { display: flex; align-items: center; gap: 34px; font: 700 12px/1 var(--utility); letter-spacing: .12em; text-transform: uppercase; }
nav a { position: relative; padding: 10px 0; }
nav a::after { content: ""; position: absolute; left: 0; bottom: 3px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s ease; }
nav a:hover::after { transform: scaleX(1); }
.nav-play { padding: 13px 20px; color: var(--ink); background: var(--sun); border: 0; border-radius: 999px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.nav-play:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); }

.hero {
  position: relative;
  min-height: 850px;
  padding: 190px max(32px, calc((100vw - 1440px) / 2)) 150px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 32%, rgba(201, 98, 216, .35), transparent 25%),
    radial-gradient(circle at 30% 115%, rgba(108, 226, 235, .16), transparent 36%),
    linear-gradient(135deg, #110c31 0%, #24115b 52%, #342071 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to right, black, transparent 70%);
}
.hero-copy { position: relative; z-index: 3; width: min(620px, 48vw); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font: 800 11px/1 var(--utility); letter-spacing: .22em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.045em; }
h1 { margin-bottom: 30px; font-size: clamp(66px, 7vw, 116px); line-height: .84; }
h1 em { color: var(--sun); font-weight: 500; }
.hero-lede { max-width: 540px; margin-bottom: 38px; color: rgba(255,255,255,.76); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 54px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font: 800 12px/1 var(--utility); letter-spacing: .11em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--ink); background: var(--sun); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.button-ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.3); }
.button-ghost:hover { background: rgba(255,255,255,.1); }
.button-dark { margin-top: 22px; color: var(--white); background: var(--ink); }

.hero-stage { position: absolute; z-index: 2; top: 135px; right: max(32px, calc((100vw - 1440px) / 2)); width: min(50vw, 690px); height: 595px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.orbit-one { inset: 5% 0 1% 8%; transform: rotate(-8deg); }
.orbit-two { inset: 15% 10% 12% -3%; transform: rotate(25deg); }
.stage-card { position: absolute; overflow: hidden; border: 6px solid rgba(255,255,255,.9); border-radius: 24px; box-shadow: 0 35px 75px rgba(5,2,24,.42); }
.stage-card img { width: 100%; height: 100%; object-fit: cover; }
.stage-card span { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; color: var(--ink); background: rgba(255,255,255,.92); border-radius: 999px; font: 800 10px/1 var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.stage-main { top: 116px; right: 10px; width: 78%; aspect-ratio: 2.05; transform: rotate(2.5deg); animation: float 7s ease-in-out infinite; }
.stage-top { top: 0; right: 23%; width: 42%; aspect-ratio: 2.2; transform: rotate(-7deg); animation: float 6s ease-in-out -2s infinite; }
.stage-bottom { right: 15%; bottom: 34px; width: 56%; aspect-ratio: 2.2; transform: rotate(-4deg); animation: float 8s ease-in-out -4s infinite; }
.stage-stamp { position: absolute; right: -18px; bottom: 125px; display: grid; place-content: center; width: 124px; height: 124px; color: var(--ink); background: var(--sun); border-radius: 50%; text-align: center; font: 900 12px/1.35 var(--utility); letter-spacing: .08em; text-transform: uppercase; transform: rotate(8deg); box-shadow: 0 0 0 8px rgba(255,207,90,.13); }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.marquee { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; overflow: hidden; color: var(--ink); background: var(--orchid); border-top: 1px solid rgba(255,255,255,.25); transform: rotate(-1deg) scale(1.02); }
.marquee div { display: flex; width: max-content; padding: 16px 0; animation: marquee 22s linear infinite; }
.marquee span { padding: 0 28px; font: italic 600 28px/1 var(--display); }
.marquee b { color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

.games { padding: 130px max(32px, calc((100vw - 1320px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1.7fr .9fr; align-items: end; gap: 48px; margin-bottom: 76px; }
.section-heading .eyebrow { align-self: start; margin-top: 16px; color: var(--violet); }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(52px, 6vw, 86px); line-height: .92; }
.section-heading > p:last-child { margin-bottom: 4px; color: #655e77; font-size: 15px; line-height: 1.7; }

.game-panel { display: grid; grid-template-columns: 42% 58%; min-height: 590px; margin-bottom: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 80px rgba(41, 25, 87, .08); }
.game-panel:nth-of-type(3) { grid-template-columns: 58% 42%; }
.game-panel:nth-of-type(3) .game-copy { order: 2; }
.game-panel:nth-of-type(3) .gallery { order: 1; }
.game-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 72px); }
.game-title-row { display: flex; align-items: center; gap: 20px; }
.game-icon { width: 78px; height: 78px; border: 4px solid var(--white); border-radius: 22px; box-shadow: 0 10px 28px rgba(23,17,47,.18); }
.game-genre { margin-bottom: 8px; color: var(--violet); font: 800 10px/1 var(--utility); letter-spacing: .17em; text-transform: uppercase; }
.game-panel h3 { margin: 0; font-size: clamp(48px, 4.4vw, 70px); line-height: .87; }
.game-description { max-width: 510px; margin: 32px 0 20px; color: #5d586b; font-size: 15px; line-height: 1.75; }
.game-notes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.game-notes li { padding: 8px 11px; color: #5a536c; border: 1px solid var(--line); border-radius: 999px; font: 700 10px/1 var(--utility); letter-spacing: .07em; text-transform: uppercase; }

.gallery { position: relative; min-width: 0; padding: 22px; background: var(--lavender); }
.game-sniper .gallery { background: var(--sky); }
.game-gatling .gallery { background: #d4f88e; }
.gallery-frame { position: relative; height: 100%; min-height: 510px; overflow: hidden; border-radius: calc(var(--radius) - 9px); background: var(--ink); }
.gallery-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); border-radius: inherit; }
.gallery-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .7s ease; }
.gallery-frame img.is-active { opacity: 1; transform: scale(1); }
.gallery-controls { position: absolute; z-index: 3; left: 42px; bottom: 42px; display: flex; gap: 5px; padding: 6px; background: rgba(17,12,49,.82); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; backdrop-filter: blur(10px); }
.gallery-controls button { width: 38px; height: 32px; padding: 0; color: rgba(255,255,255,.6); background: transparent; border: 0; border-radius: 99px; cursor: pointer; font: 700 10px/1 var(--utility); }
.gallery-controls button.is-active { color: var(--ink); background: var(--sun); }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10vw; align-items: center; padding: 120px max(32px, calc((100vw - 1180px) / 2)); color: var(--white); background: var(--violet); overflow: hidden; }
.about-mark { position: relative; height: 480px; }
.about-mark span { position: absolute; display: grid; place-content: center; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; font: italic 500 150px/1 var(--display); }
.about-mark span:nth-child(1) { top: 0; left: 0; color: var(--sun); background: rgba(255,207,90,.06); }
.about-mark span:nth-child(2) { top: 88px; left: 160px; color: var(--orchid); background: rgba(201,98,216,.08); }
.about-mark span:nth-child(3) { top: 190px; left: 45px; color: var(--sky); background: rgba(153,230,242,.06); }
.about-copy > p:not(.eyebrow) { max-width: 580px; margin: 32px 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 22px; align-items: center; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.45); font: 800 12px/1 var(--utility); letter-spacing: .12em; text-transform: uppercase; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 48px max(32px, calc((100vw - 1320px) / 2)); color: var(--white); background: var(--ink); }
footer > p { margin: 0; color: rgba(255,255,255,.58); font-size: 12px; }
.footer-brand { color: var(--white); }
.copyright { justify-self: end; }

.play-modal { width: min(1180px, calc(100vw - 36px)); height: min(780px, calc(100vh - 36px)); padding: 0; overflow: hidden; color: var(--white); background: #09071b; border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.play-modal::backdrop { background: rgba(7,4,23,.84); backdrop-filter: blur(12px); }
.modal-bar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 0 18px 0 22px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.12); }
.modal-bar > div { display: flex; align-items: center; gap: 10px; }
.modal-bar strong { font: 800 12px/1 var(--utility); letter-spacing: .1em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; background: #7ee05f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(126,224,95,.12); }
.modal-actions { display: flex; align-items: center; gap: 18px; }
.open-tab { color: rgba(255,255,255,.7); font: 700 10px/1 var(--utility); letter-spacing: .08em; text-transform: uppercase; }
.modal-close { width: 36px; height: 36px; color: var(--white); background: rgba(255,255,255,.1); border: 0; border-radius: 50%; cursor: pointer; font-size: 25px; line-height: 1; }
.play-modal iframe { position: relative; z-index: 2; display: block; width: 100%; height: calc(100% - 62px); opacity: 1; background: #09071b; border: 0; transition: opacity .45s ease; }
.play-modal.is-loading iframe { opacity: 0; }
.game-loader { position: absolute; z-index: 3; inset: 62px 0 0; display: grid; grid-template-columns: minmax(0, 340px); place-content: center; justify-items: center; padding: 30px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 42%, rgba(75,43,173,.34), transparent 34%), #09071b; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.game-loader::before, .game-loader::after { content: ""; position: absolute; width: min(58vw, 540px); aspect-ratio: 1; border: 1px solid rgba(201,98,216,.12); border-radius: 50%; animation: loader-ring 4s ease-out infinite; }
.game-loader::after { width: min(42vw, 390px); border-color: rgba(255,207,90,.1); animation-delay: -2s; }
.play-modal.is-loading .game-loader { opacity: 1; visibility: visible; }
.loader-orchid { position: relative; width: 76px; height: 76px; margin-bottom: 28px; animation: loader-breathe 1.8s ease-in-out infinite; }
.loader-orchid i { position: absolute; top: 4px; left: 27px; width: 22px; height: 39px; border-radius: 100% 12% 100% 45%; background: linear-gradient(150deg, #e797ef, var(--orchid)); box-shadow: 0 0 25px rgba(201,98,216,.26); transform-origin: 11px 31px; }
.loader-orchid i:nth-child(2) { transform: rotate(72deg); }
.loader-orchid i:nth-child(3) { transform: rotate(144deg); }
.loader-orchid i:nth-child(4) { transform: rotate(216deg); }
.loader-orchid i:nth-child(5) { transform: rotate(288deg); }
.loader-orchid b { position: absolute; z-index: 2; inset: 29px; background: var(--sun); border-radius: 50%; box-shadow: 0 0 20px rgba(255,207,90,.55); }
.loader-kicker { position: relative; z-index: 1; margin: 0 0 12px; color: var(--orchid); font: 800 10px/1 var(--utility); letter-spacing: .2em; text-transform: uppercase; }
.loader-message { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: -.025em; }
.loader-track { position: relative; z-index: 1; width: 100%; height: 4px; margin-top: 28px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 999px; }
.loader-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orchid), var(--sun)); border-radius: inherit; box-shadow: 0 0 14px rgba(255,207,90,.35); transition: width .45s ease; }
.loader-progress { position: relative; z-index: 1; justify-self: end; margin: 9px 0 0; color: rgba(255,255,255,.55); font: 700 10px/1 var(--utility); letter-spacing: .12em; }
.loader-slow { position: relative; z-index: 1; margin: 24px 0 0; color: rgba(255,255,255,.45); font-size: 11px; opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; }
.game-loader.is-slow .loader-slow { opacity: 1; transform: none; }
@keyframes loader-breathe { 50% { transform: scale(.88) rotate(8deg); filter: brightness(1.2); } }
@keyframes loader-ring { 0% { opacity: 0; transform: scale(.72); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.18); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { width: calc(100% - 40px); }
  nav a { display: none; }
  .hero { min-height: 1100px; padding: 170px 24px 120px; }
  .hero-copy { width: 100%; }
  .hero-stage { top: auto; right: 4%; bottom: 78px; width: 92%; height: 490px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading .eyebrow { margin-bottom: 12px; }
  .section-heading > p:last-child { max-width: 540px; }
  .game-panel, .game-panel:nth-of-type(3) { grid-template-columns: 1fr; }
  .game-panel:nth-of-type(3) .game-copy { order: 1; }
  .game-panel:nth-of-type(3) .gallery { order: 2; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-mark { height: 420px; max-width: 470px; }
}

@media (max-width: 640px) {
  :root { --radius: 22px; }
  .site-header { width: calc(100% - 32px); padding-top: 20px; }
  .brand b { font-size: 17px; }
  .brand-orchid { width: 32px; height: 32px; transform: scale(.84); transform-origin: left; }
  .nav-play { padding: 11px 15px; font-size: 10px; }
  .hero { min-height: 1040px; padding-top: 140px; }
  h1 { font-size: clamp(58px, 18vw, 82px); }
  .hero-lede { font-size: 16px; }
  .hero-stage { height: 390px; bottom: 72px; }
  .stage-main { width: 94%; right: -2%; }
  .stage-top { width: 50%; right: 35%; }
  .stage-bottom { width: 65%; right: 19%; bottom: 12px; }
  .stage-stamp { width: 90px; height: 90px; right: -8px; bottom: 84px; font-size: 9px; }
  .games { padding: 92px 16px; }
  .section-heading { margin-bottom: 50px; }
  .section-heading h2, .about h2 { font-size: 50px; }
  .game-panel { min-height: 0; margin-bottom: 24px; }
  .game-copy { padding: 38px 24px; }
  .game-title-row { gap: 14px; }
  .game-icon { width: 62px; height: 62px; border-radius: 18px; }
  .game-panel h3 { font-size: 44px; }
  .gallery { padding: 12px; }
  .gallery-frame { min-height: 330px; }
  .gallery-controls { left: 28px; bottom: 28px; }
  .about { padding: 88px 24px; }
  .about-mark { height: 330px; transform: scale(.78); transform-origin: left top; margin-bottom: -70px; }
  footer { grid-template-columns: 1fr; padding: 42px 24px; }
  footer > p, .copyright { justify-self: start; }
  .play-modal { width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 16px; }
  .open-tab { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
