:root {
  --void: #160733;
  --deep: #1F0B45;
  --tunnel: #2A0F5C;
  --violet: #7A3FE0;
  --ring: #C93BF2;
  --gold: #FFD45C;
  --ember: #F2994A;
  --text: #EFE8FF;
  --muted: #B9A8E6;
  --display: "Bowlby One", "Arial Black", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #2A1200; padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* ---------- top bar ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1320px; margin: 0 auto; padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 1.2rem/1 var(--display); letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { border: 1px solid #4A2A8C; border-radius: 999px; padding: 2px 10px; }

/* ---------- hero: the title is the logo ---------- */
.hero { text-align: center; padding: 18px 20px 6px; }
.title {
  margin: 0;
  font: clamp(2.6rem, 8vw, 5.4rem)/0.95 var(--display);
  color: var(--gold);
  letter-spacing: .01em;
  text-shadow: 0 .06em 0 #8E2BB8, 0 .12em 0 #4C1680, 0 .2em .35em rgba(0,0,0,.45);
}
.tagline { margin: 14px auto 0; max-width: 46ch; color: var(--muted); font-size: 1.1rem; }

/* ---------- play area: game portal + ad rails ---------- */
.stage {
  display: grid; gap: 20px; align-items: start;
  grid-template-columns: 160px minmax(0, 1fr) 300px;
  max-width: 1320px; margin: 22px auto 0; padding: 0 20px;
}
.rail { position: sticky; top: 16px; display: grid; gap: 16px; justify-items: center; }

.portal {
  position: relative; isolation: isolate;
  border-radius: 26px; padding: 10px;
  background: var(--tunnel);
  box-shadow: 0 0 0 2px #5B2BB5, 0 0 60px rgba(201, 59, 242, .28);
}
.portal::before {
  /* the tunnel: rings that echo the game's cylinder */
  content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(201,59,242,.16) 47px 49px);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  animation: rings 2.4s ease-out 1 both;
}
@keyframes rings { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.screen {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden; background: #0C0420;
}
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.play {
  position: absolute; inset: 0; margin: auto; width: max-content; height: max-content;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 34px; border: 0; border-radius: 999px; cursor: pointer;
  font: 1.6rem/1 var(--display); color: #2A1200; background: var(--gold);
  box-shadow: 0 6px 0 #B9792A, 0 14px 40px rgba(0,0,0,.45);
}
.play:hover { background: #FFE07F; }
.play:active { transform: translateY(3px); box-shadow: 0 3px 0 #B9792A; }
.play svg { width: 26px; height: 26px; }
.screen-actions { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px 2px; color: var(--muted); font-size: .92rem; }
.screen-actions button { background: none; border: 1px solid #5B2BB5; color: var(--text); border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }

/* ---------- ad slots ---------- */
.ad { display: grid; justify-items: center; gap: 4px; }
.ad small { color: #8C7BB8; font-size: .72rem; }
.ad iframe { border: 0; display: block; background: var(--deep); border-radius: 6px; }
.ad-leader { margin: 22px auto 0; padding: 0 20px; }
.ad-native { width: 100%; }

/* ---------- content ---------- */
main.content, .content { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0 8px; }
.section h2 { font: clamp(1.7rem, 3.6vw, 2.4rem)/1.1 var(--display); color: var(--text); margin: 0 0 18px; }
.section h3 { font-size: 1.2rem; margin: 26px 0 8px; color: var(--gold); }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: #DCD2F7; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 18px 20px 20px; background: var(--deep); border-left: 4px solid var(--ring); border-radius: 4px 14px 14px 4px; }
.steps b { display: block; font: 1.25rem/1.2 var(--display); color: var(--gold); margin-bottom: 6px; }
.steps span { color: #DCD2F7; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid #3A1B78; }
.facts dt { font-weight: 700; color: var(--text); }
.facts dd { margin: 4px 0 0; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.shots img { border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

.faq details { border-bottom: 1px solid #3A1B78; padding: 14px 0; max-width: var(--measure); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq details p { margin: 10px 0 0; color: #DCD2F7; }

.page-head { padding: 34px 0 6px; }
.page-head h1 { font: clamp(2rem, 5vw, 3.2rem)/1.05 var(--display); margin: 0; color: var(--gold); text-shadow: 0 .06em 0 #8E2BB8; }
.page-head p { color: var(--muted); max-width: 60ch; }
.cta-row { margin: 26px 0; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--gold); color: #2A1200; font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 #B9792A; }
.btn:hover { background: #FFE07F; color: #2A1200; }

.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }

/* ---------- footer ---------- */
.foot { margin-top: 72px; border-top: 1px solid #3A1B78; padding: 28px 20px 90px; }
.foot-in { max-width: 1320px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .95rem; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .stage { grid-template-columns: minmax(0, 1fr) 300px; }
  .rail-left { display: none; }
}
@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
  .rail-right { position: static; }
  .steps, .shots { grid-template-columns: minmax(0, 1fr); }
  .with-aside { grid-template-columns: minmax(0, 1fr); }
  .bar { flex-wrap: wrap; padding: 12px 16px 6px; gap: 8px 16px; }
  .nav { width: 100%; gap: 6px 16px; font-size: .95rem; }
  .lang { margin-left: auto; padding: 0 10px; }
  .content, main.content { padding: 0 16px; }
  .play { font-size: 1.25rem; padding: 14px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal::before { animation: none; }
}
