:root {
  --black: #080809;
  --panel: #121216;
  --panel-2: #17171b;
  --off-white: #e8e6d6;
  --dim: rgba(232, 230, 214, 0.7);
  --faint: rgba(232, 230, 214, 0.12);
  --yellow: #f7c727;
  --red: #e6141f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --green-zone: #4ca46d;
  --pink-zone: #f26ca7;
  --orange-zone: #f59f3a;
  --blue-zone: #5c89ff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--off-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

a {
  color: inherit;
}

.section-rail {
  position: fixed;
  left: 16px;
  top: 50%;
  z-index: 24;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  pointer-events: auto;
}

.section-rail-socials {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.section-rail-link {
  position: relative;
  display: block;
  width: 30px;
  height: 18px;
  text-decoration: none;
  transition: background 180ms ease, opacity 180ms ease;
}

.section-rail-link::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 4px;
  border-radius: 0;
  transform: translate(-50%, -50%);
  background: rgba(232, 230, 214, 0.28);
  transition: background 180ms ease, opacity 180ms ease;
}

.section-rail-link.is-active::before,
.section-rail-link:hover::before {
  background: rgba(247, 199, 39, 0.8);
}

.rail-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  box-shadow: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.rail-social-pill:hover {
  border-color: rgba(255, 255, 255, 1);
  color: rgba(255, 255, 255, 1);
  transform: translateX(1px);
}

.rail-social-pill svg {
  width: 15px;
  height: 15px;
  display: block;
}

.rail-social-pill svg rect,
.rail-social-pill svg circle,
.rail-social-pill svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-social-pill svg .social-fill {
  fill: currentColor;
  stroke: none;
}

.rail-social-pill .social-mark {
  width: 15px;
  height: 15px;
}

.rail-social-pill .social-mark path {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  min-height: 100vh;
}

.snap-section {
  position: relative;
  min-height: 100vh;
  padding: 92px 24px 110px 88px;
  display: grid;
  align-items: center;
  color: var(--section-text, var(--off-white));
}

.feature {
  --section-text: var(--off-white);
  --section-dim: rgba(232, 230, 214, 0.72);
  --section-accent: var(--yellow);
  --section-frame: rgba(232, 230, 214, 0.08);
  --section-surface: rgba(18, 18, 22, 0.9);
  --section-surface-border: rgba(232, 230, 214, 0.12);
  --section-surface-glow: rgba(247, 199, 39, 0.08);
  background: var(--section-background, var(--black));
}

.feature-shell {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  justify-items: center;
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  align-content: center;
  order: 2;
  width: min(760px, 100%);
}

.feature-shell > .hero-art,
.feature-shell > .carousel-card {
  position: relative;
  z-index: 2;
  order: 1;
  width: min(960px, 100%);
}

.hero-shell {
  align-items: center;
}

.hero-copy {
  gap: 24px;
  justify-self: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 188px;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--yellow);
  border-radius: 0;
  background: var(--yellow);
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.hero-button:hover {
  transform: translateY(-1px);
  border-color: var(--yellow);
  color: var(--black);
}

.hero-button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

.hero-button-primary:hover {
  color: var(--black);
}

.hero-button-disabled {
  border-color: rgba(247, 199, 39, 0.42);
  background: rgba(247, 199, 39, 0.24);
  color: rgba(247, 199, 39, 0.62);
  cursor: default;
  pointer-events: none;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.demo-panel {
  width: min(620px, 100%);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.demo-hud,
.demo-caption {
  display: none;
}

.demo-hud {
  min-height: 0;
  margin: 0;
  color: transparent;
}

.demo-caption {
  min-height: 0;
  margin: 0;
  color: transparent;
}

.demo-board-wrap {
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.checkfall-board {
  --tile: calc(100% / 8);
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #050506;
  image-rendering: pixelated;
}

.tile,
.piece,
.danger-fill,
.legal-square,
.capture-target,
.crack,
.collapse-flash {
  position: absolute;
  left: calc(var(--file) * var(--tile));
  bottom: calc(var(--rank) * var(--tile));
  width: var(--tile);
  aspect-ratio: 1;
}

.tile {
  border: 1px solid rgba(232, 230, 214, 0.18);
  background: #050506;
  z-index: 1;
  overflow: hidden;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--tile-sheet);
  background-repeat: no-repeat;
  background-size: calc(var(--tile-columns, 1) * 100%) 100%;
  background-position: var(--tile-frame-offset, 0%) 0;
  image-rendering: pixelated;
}

.tile.light::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: rgba(184, 184, 174, 0.12);
  pointer-events: none;
}

.tile.shrink-warning {
  z-index: 8;
  animation: warningPulse 0.72s ease-in-out infinite;
}

.tile.shrink-warning::after {
  content: "";
  position: absolute;
  inset: 1px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(247, 199, 39, 0.92) 0 8px,
      rgba(5, 5, 6, 0.92) 8px 16px
    );
  opacity: 0.72;
  pointer-events: none;
}

.tile.removed {
  opacity: 1;
  border-color: transparent;
  background: #000;
}

.tile.collapsed-void::before {
  display: none;
}

.tile.removed::after {
  display: none;
}

.danger-fill {
  z-index: 5;
  background: rgba(230, 20, 31, 0.72);
  animation: dangerPulse 0.72s ease-in-out infinite alternate;
}

.legal-square {
  z-index: 18;
  border: 3px solid var(--off-white);
  transform: scale(0.7);
  opacity: 0.78;
}

.capture-target {
  z-index: 6;
  background:
    linear-gradient(rgba(230, 20, 31, 0.24), rgba(230, 20, 31, 0.24)),
    radial-gradient(circle at 50% 50%, rgba(230, 20, 31, 0.14), transparent 72%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.piece {
  display: grid;
  place-items: center;
  z-index: 30;
  transition:
    left 0.42s steps(6, end),
    bottom 0.42s steps(6, end),
    transform 0.22s steps(3, end);
}

.piece.player {
  z-index: 38;
}

.piece.enemy.moving .sprite {
  animation: enemyMovePulse 0.46s steps(4, end);
}

.piece.enemy.slow.moving .sprite {
  animation-duration: 0.68s;
}

.piece.enemy.capturer {
  z-index: 98;
}

.piece.enemy::after {
  content: "";
  position: absolute;
  inset: 5%;
  border: 2px solid rgba(230, 20, 31, 0.82);
  opacity: 0.82;
  clip-path: polygon(0 0, 28% 0, 28% 0, 0 0);
  animation: enemySquareTrace 1.2s linear infinite;
}

.piece.slow {
  transition-duration: 0.62s;
}

.piece .sprite,
.transform-ghost .sprite,
.crack-sprite {
  width: 86%;
  height: 86%;
  background-repeat: no-repeat;
  background-position: var(--frame-position, 0%) 0;
  image-rendering: pixelated;
}

.piece .sprite,
.transform-ghost .sprite {
  background-image: var(--sprite);
  background-size: 300% 100%;
}

.piece.player .sprite,
.transform-ghost.player.old .sprite,
.transform-ghost.new .sprite,
.transform-ghost.enemy.old .sprite,
.transform-ghost.enemy.new .sprite {
  filter:
    drop-shadow(-2px 0 0 var(--black))
    drop-shadow(2px 0 0 var(--black))
    drop-shadow(0 -2px 0 var(--black))
    drop-shadow(0 2px 0 var(--black));
}

.piece.enemy .sprite {
  position: relative;
  background-image: none;
}

.piece.enemy .sprite::before,
.piece.enemy .sprite::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: var(--frame-position, 0%) 0;
  image-rendering: pixelated;
}

.piece.enemy .sprite::before {
  filter:
    brightness(0)
    drop-shadow(-2px 0 0 var(--black))
    drop-shadow(2px 0 0 var(--black))
    drop-shadow(0 -2px 0 var(--black))
    drop-shadow(0 2px 0 var(--black));
}

.piece.enemy .sprite::after {
  filter: grayscale(0.62) brightness(0.64) contrast(1.28);
}

.piece.powerup {
  z-index: 26;
}

.piece.powerup::before {
  content: "";
  position: absolute;
  inset: 17%;
  border: 2px solid rgba(22, 18, 8, 0.9);
  background: #f4c13a;
  box-shadow:
    0 0 0 1px rgba(255, 243, 188, 0.48),
    inset 0 -2px 0 rgba(146, 98, 16, 0.34);
  animation: pickupPulse 2.1s ease-in-out infinite;
}

.piece.powerup::after {
  content: "";
  position: absolute;
  inset: 10%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 252, 222, 0.62) 0 5%, transparent 7%),
    radial-gradient(circle at 76% 70%, rgba(247, 199, 39, 0.24) 0 9%, transparent 11%),
    linear-gradient(135deg, transparent 14%, rgba(255, 244, 205, 0.28) 18% 26%, transparent 30% 100%);
  opacity: 0.42;
  animation: powerupShine 2.6s ease-in-out infinite;
  z-index: 1;
}

.piece.powerup .sprite {
  width: 62%;
  height: 62%;
  filter: brightness(0);
  z-index: 2;
}

.player-corners {
  position: absolute;
  inset: 9%;
  z-index: 35;
  color: var(--yellow);
  pointer-events: none;
}

.player-corners::before,
.player-corners::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(currentColor, currentColor) left top / 28% 4px no-repeat,
    linear-gradient(currentColor, currentColor) left top / 4px 28% no-repeat,
    linear-gradient(currentColor, currentColor) right top / 28% 4px no-repeat,
    linear-gradient(currentColor, currentColor) right top / 4px 28% no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 28% 4px no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 4px 28% no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 28% 4px no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 4px 28% no-repeat;
}

.piece.interlace .sprite {
  animation: interlaceOut 0.58s steps(8, end) forwards;
}

.piece.hit {
  animation: pieceHit 0.28s steps(3, end);
}

.transform-ghost {
  z-index: 88;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.transform-ghost.old .sprite {
  animation: transformOldOut 0.34s steps(7, end) forwards;
}

.transform-ghost.enemy.old .sprite {
  filter:
    grayscale(1)
    brightness(0.58)
    contrast(1.16)
    drop-shadow(-2px 0 0 var(--black))
    drop-shadow(2px 0 0 var(--black))
    drop-shadow(0 -2px 0 var(--black))
    drop-shadow(0 2px 0 var(--black));
}

.transform-ghost.new .sprite {
  filter:
    sepia(1)
    saturate(2.2)
    brightness(1.22)
    drop-shadow(-2px 0 0 var(--black))
    drop-shadow(2px 0 0 var(--black))
    drop-shadow(0 -2px 0 var(--black))
    drop-shadow(0 2px 0 var(--black));
  animation: transformNewIn 0.42s steps(8, end) 0.16s forwards;
}

.transform-ghost.enemy.new .sprite {
  animation-name: transformNewEnemyIn;
}

.crack {
  z-index: 14;
  display: grid;
  place-items: center;
  overflow: visible;
  opacity: 0.92;
  pointer-events: none;
  transform: rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
}

.crack-sprite {
  width: 72%;
  height: 72%;
  background-image: url("assets/telegraphs/telegraph_crack_overlay.png");
  background-size: 100% 100%;
  filter: brightness(0) invert(100%);
}

.tile.falling-column {
  z-index: 16;
  transform-origin: left center;
  animation: collapseColumnTile 0.3s ease-in forwards;
}

.collapse-flash {
  z-index: 52;
  pointer-events: none;
  background:
    linear-gradient(rgba(232, 230, 214, 0.16), rgba(232, 230, 214, 0.16)),
    repeating-linear-gradient(
      135deg,
      transparent 0 3px,
      rgba(232, 230, 214, 0.34) 3px 5px,
      transparent 5px 8px
    );
  outline: 2px solid rgba(232, 230, 214, 0.82);
  animation: collapseFlash 0.26s steps(4, end) forwards;
}

.collapse-gap {
  position: absolute;
  z-index: 58;
  background: #050506;
}

.collapse-jagged-edge {
  position: absolute;
  z-index: 60;
  pointer-events: none;
}

.collapse-jagged-edge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.collapse-jagged-edge.reveal-bottom {
  animation: edgeRevealBottom var(--edge-duration, 440ms) steps(8, end) forwards;
}

.collapse-jagged-edge.reveal-top {
  animation: edgeRevealTop var(--edge-duration, 440ms) steps(8, end) forwards;
}

.collapse-jagged-edge.reveal-left {
  animation: edgeRevealLeft var(--edge-duration, 440ms) steps(8, end) forwards;
}

.collapse-jagged-edge.reveal-right {
  animation: edgeRevealRight var(--edge-duration, 440ms) steps(8, end) forwards;
}

.jagged-fill {
  fill: #050506;
}

.jagged-line {
  fill: none;
  stroke: rgba(232, 230, 214, 0.88);
  stroke-width: 3;
  stroke-linejoin: bevel;
  vector-effect: non-scaling-stroke;
}

.pixel {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--size, 6px);
  height: var(--size, 6px);
  background: var(--color, var(--off-white));
  z-index: 70;
  image-rendering: pixelated;
  animation: pixelBurst var(--duration, 0.7s) steps(8, end) forwards;
}

.pixel.death-pixel {
  z-index: 92;
}

.move-pixel {
  position: absolute;
  left: var(--x);
  bottom: var(--y);
  width: var(--size, 5px);
  height: var(--size, 5px);
  background: var(--color, var(--off-white));
  z-index: 24;
  opacity: 0;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  animation: moveTrail 0.36s linear var(--delay, 0ms) forwards;
}

.eyebrow {
  margin: 0;
  color: var(--section-accent, var(--yellow));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.92;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(34px, 5.5vw, 72px);
}

.description {
  margin: 0;
  max-width: 34rem;
  color: var(--section-dim, var(--dim));
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.sprite-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.sprite-ribbon.wide {
  gap: 12px;
}

.sprite-chip {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(232, 230, 214, 0.12);
  background:
    linear-gradient(180deg, rgba(247, 199, 39, 0.08), rgba(247, 199, 39, 0)),
    rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(247, 199, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.sprite-chip::before {
  content: "";
  position: absolute;
  inset: 10px;
  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: 300% auto;
  background-position: var(--frame-position, 0%) center;
  image-rendering: pixelated;
}

.sprite-chip.accent-red {
  background: linear-gradient(180deg, rgba(230, 20, 31, 0.12), rgba(230, 20, 31, 0)), rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(230, 20, 31, 0.12);
}

.sprite-chip.accent-yellow {
  background: linear-gradient(180deg, rgba(247, 199, 39, 0.15), rgba(247, 199, 39, 0)), rgba(255, 255, 255, 0.02);
}

.carousel-card {
  background: transparent;
  border: 0;
  border-radius: 32px;
  padding: 0;
  box-shadow: none;
}

.carousel-viewport {
  position: relative;
  min-height: min(72vh, 720px);
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  touch-action: pan-y;
}

.screenshot-carousel .carousel-viewport {
  min-height: min(74vh, 760px);
  background: transparent;
}

.carousel-slide {
  display: block;
  margin: 0;
  background: transparent;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050506;
  display: block;
}

.phone-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 20px 18px 10px;
  background: transparent;
}

.phone-shell {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 390 / 820;
  padding: 16px;
  border-radius: 42px;
  background: #121216;
  box-shadow: none;
}

.phone-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.phone-shell::after {
  content: "";
  position: absolute;
  top: 140px;
  right: -3px;
  width: 4px;
  height: 124px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
  display: none;
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 28px;
  border-radius: 999px;
  background: #050506;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  z-index: 2;
}

.phone-notch::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: none;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-screen img.phone-screen-contain {
  object-fit: contain;
  background: #000;
}

.arcade-showcase {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 42px 18px 24px;
  background: #050506;
  color: var(--off-white);
}

.arcade-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.arcade-back-button {
  width: 18px;
  height: 18px;
  border-left: 6px solid var(--off-white);
  border-bottom: 6px solid var(--off-white);
  transform: rotate(45deg);
  margin-left: 4px;
}

.arcade-pause-button {
  display: inline-flex;
  gap: 8px;
  margin-right: 2px;
}

.arcade-pause-button span {
  width: 8px;
  height: 34px;
  border-radius: 2px;
  background: var(--off-white);
}

.arcade-score-block {
  text-align: center;
  margin-top: 14px;
}

.arcade-score {
  font-size: clamp(44px, 14vw, 84px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.arcade-score-label,
.arcade-turn-card span,
.arcade-plus,
.arcade-loot span:last-child,
.arcade-ranks,
.arcade-files {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.arcade-score-label {
  margin-top: 10px;
}

.arcade-turn-card {
  width: 92px;
  margin: 52px auto 52px;
  padding: 12px 0 10px;
  border: 1px solid rgba(232, 230, 214, 0.24);
  text-align: center;
}

.arcade-turn-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.arcade-board-shell {
  margin-top: 18px;
}

.arcade-gauge {
  position: relative;
  width: calc(100% - 24px);
  height: 14px;
  margin: 0 auto 10px;
}

.arcade-gauge::before,
.arcade-gauge::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 14px;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--off-white), var(--off-white)) center / 62% 72% no-repeat,
    linear-gradient(var(--off-white), var(--off-white)) left center / 16% 100% no-repeat,
    linear-gradient(var(--off-white), var(--off-white)) right center / 16% 100% no-repeat;
  opacity: 0.72;
}

.arcade-gauge::before {
  left: -10px;
}

.arcade-gauge::after {
  right: -10px;
}

.arcade-gauge-core {
  width: 100%;
  height: 8px;
  margin: 3px auto 0;
  background: var(--off-white);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.32);
}

.arcade-board-layout {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.arcade-ranks {
  display: grid;
  grid-template-rows: repeat(8, 1fr);
  gap: 0;
  height: 100%;
  align-items: center;
  padding: 6px 0 26px;
  color: rgba(232, 230, 214, 0.9);
  font-size: 14px;
}

.arcade-board-column {
  display: grid;
  gap: 10px;
}

.arcade-checkfall-board {
  width: 100%;
}

.arcade-files {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  text-align: center;
  color: rgba(232, 230, 214, 0.9);
  font-size: 14px;
}

.arcade-inventory {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 0 8px;
  margin-top: 8px;
}

.arcade-plus {
  font-size: 16px;
}

.arcade-loot {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  flex-direction: column;
}

.arcade-mini-sprite {
  width: 28px;
  height: 28px;
  background-image: var(--sprite);
  background-repeat: no-repeat;
  background-size: 300% 100%;
  background-position: var(--frame-position, 0%) 0;
  image-rendering: pixelated;
  filter:
    drop-shadow(-2px 0 0 var(--black))
    drop-shadow(2px 0 0 var(--black))
    drop-shadow(0 -2px 0 var(--black))
    drop-shadow(0 2px 0 var(--black));
}

.arcade-badge {
  position: absolute;
  top: 12%;
  right: 12%;
  min-width: 18px;
  padding: 2px 3px 1px;
  border: 1px solid rgba(22, 18, 8, 0.9);
  background: rgba(232, 230, 214, 0.9);
  color: rgba(22, 18, 8, 1);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  z-index: 4;
}

.feature-hero {
  --section-background:
    linear-gradient(rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    var(--black);
  background-size: 100% 4px, auto;
}

.feature-daily {
  --section-background:
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%),
    var(--green-zone);
  background-size: 100% 4px, auto;
  --section-text: #08110c;
  --section-dim: rgba(8, 17, 12, 0.74);
  --section-accent: #efff79;
  --section-frame: rgba(8, 17, 12, 0.14);
  --section-surface: rgba(8, 17, 12, 0.18);
  --section-surface-border: rgba(8, 17, 12, 0.16);
  --section-surface-glow: rgba(239, 255, 121, 0.2);
}

.feature-battle {
  --section-background:
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%),
    var(--pink-zone);
  background-size: 100% 4px, auto;
  --section-text: #260714;
  --section-dim: rgba(38, 7, 20, 0.76);
  --section-accent: #fff2a7;
  --section-frame: rgba(38, 7, 20, 0.15);
  --section-surface: rgba(38, 7, 20, 0.18);
  --section-surface-border: rgba(38, 7, 20, 0.16);
  --section-surface-glow: rgba(255, 242, 167, 0.18);
}

.feature-arcade {
  --section-background:
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%),
    var(--orange-zone);
  background-size: 100% 4px, auto;
  --section-text: #241205;
  --section-dim: rgba(36, 18, 5, 0.78);
  --section-accent: #fff3bc;
  --section-frame: rgba(36, 18, 5, 0.14);
  --section-surface: rgba(36, 18, 5, 0.18);
  --section-surface-border: rgba(36, 18, 5, 0.16);
  --section-surface-glow: rgba(255, 243, 188, 0.2);
}

.feature-customization {
  --section-background:
    linear-gradient(rgba(255, 255, 255, 0.05) 50%, transparent 50%),
    var(--blue-zone);
  background-size: 100% 4px, auto;
  --section-text: #081326;
  --section-dim: rgba(8, 19, 38, 0.78);
  --section-accent: #eef3ff;
  --section-frame: rgba(8, 19, 38, 0.16);
  --section-surface: rgba(8, 19, 38, 0.18);
  --section-surface-border: rgba(8, 19, 38, 0.18);
  --section-surface-glow: rgba(238, 243, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}
.faq-section {
  padding: 92px 24px 110px 88px;
}

.faq-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.faq-heading {
  width: min(1240px, 100%);
  margin: 0 auto clamp(24px, 4vw, 48px);
}

.faq-list {
  display: grid;
  gap: 14px;
  width: 100%;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid rgba(232, 230, 214, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  color: var(--dim);
  line-height: 1.55;
}

.policy-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 0 72px;
}

.policy-shell h1 {
  margin: 36px 0 8px;
  font-size: clamp(42px, 9vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.policy-shell h2 {
  margin: 34px 0 10px;
  color: var(--yellow);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-shell p {
  color: var(--dim);
  font-size: clamp(15px, 2.4vw, 18px);
  line-height: 1.65;
}

.policy-shell .updated {
  margin: 0 0 36px;
  color: rgba(232, 230, 214, 0.55);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(232, 230, 214, 0.18);
  color: var(--off-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgba(247, 199, 39, 0.55);
  color: var(--yellow);
  outline: none;
}

.site-footer {
  padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)) 88px;
}

.site-footer-links {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.site-footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(232, 230, 214, 0.14);
  border-radius: 0;
  color: rgba(232, 230, 214, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer-links a:hover {
  color: var(--off-white);
  border-color: rgba(247, 199, 39, 0.4);
}

.language-nav {
  width: min(1240px, 100%);
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.language-nav-label {
  color: rgba(232, 230, 214, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
}

.language-nav a {
  color: rgba(232, 230, 214, 0.68);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.language-nav a:hover,
.language-nav a:focus-visible,
.language-nav a[aria-current="page"] {
  color: var(--yellow);
}

@media (min-width: 768px) {
  .hero-actions {
    display: flex;
    justify-content: flex-start;
  }
}

@media (min-width: 860px) {
  .snap-section {
    min-height: clamp(720px, 90svh, 940px);
    padding: clamp(40px, 5svh, 72px) 40px clamp(56px, 7svh, 86px) 88px;
  }

  .feature-shell {
    grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.05fr);
    align-items: center;
    justify-items: stretch;
    column-gap: clamp(40px, 6vw, 96px);
  }

  .feature-shell > .hero-art,
  .feature-shell > .carousel-card {
    order: 2;
    width: 100%;
    align-self: center;
  }

  .feature-copy {
    order: 1;
    width: min(560px, 100%);
    justify-self: start;
    align-content: center;
  }

  .reverse .feature-shell > .carousel-card,
  .reverse .feature-shell > .hero-art {
    order: 1;
  }

  .reverse .feature-copy {
    order: 2;
    justify-self: end;
  }

  .hero-shell {
    grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1fr);
  }

  .hero-shell > .hero-art {
    order: 2;
  }

  .hero-shell > .hero-copy {
    order: 1;
  }

  .phone-stage {
    padding: 0;
  }

  .screenshot-carousel .carousel-viewport {
    min-height: clamp(520px, 62svh, 700px);
  }
}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 92px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(232, 230, 214, 0.16);
  border-radius: 20px;
  background: rgba(18, 18, 22, 0.94);
  box-shadow: var(--shadow);
  pointer-events: auto;
  touch-action: manipulation;
  isolation: isolate;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
}

.cookie-banner p {
  margin: 0;
  color: var(--dim);
  line-height: 1.5;
}

.cookie-banner a {
  display: inline-block;
  margin-top: 10px;
  color: var(--yellow);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-actions button {
  border: 1px solid rgba(232, 230, 214, 0.16);
  border-radius: 0;
  background: transparent;
  color: var(--off-white);
  min-height: 46px;
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
}

.cookie-actions button:last-child {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

body.consent-banner-open .cookie-banner,
body.consent-banner-open .cookie-banner * {
  pointer-events: auto;
}

@keyframes warningPulse {
  0% { opacity: 0.76; }
  100% { opacity: 1; }
}

@keyframes dangerPulse {
  0% { opacity: 0.58; }
  100% { opacity: 0.9; }
}

@keyframes pickupPulse {
  50% {
    box-shadow: 0 0 0 3px rgba(247, 199, 39, 0.48);
    filter: brightness(1.03);
  }
}

@keyframes powerupShine {
  0% {
    opacity: 0.24;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.04);
  }
  100% {
    opacity: 0.24;
    transform: scale(0.96);
  }
}

@keyframes transformOldOut {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(12px);
    opacity: 0.02;
  }
  100% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(16px);
    opacity: 0;
  }
}

@keyframes transformNewIn {
  0% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(14px) scale(0.94);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes transformNewEnemyIn {
  0% {
    clip-path: inset(100% 0 0 0);
    transform: translateY(14px) scale(0.94);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes interlaceOut {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(100% 0 0 0);
    opacity: 0;
  }
}

@keyframes pieceHit {
  33% { transform: translate(-3px, 2px); }
  66% { transform: translate(3px, -2px); }
}

@keyframes enemyMovePulse {
  0% { transform: translate(0, 0) scale(1); filter: brightness(1); }
  25% { transform: translate(-2px, 1px) scale(1.03); filter: brightness(1.18); }
  50% { transform: translate(2px, -1px) scale(0.97); filter: brightness(0.92); }
  75% { transform: translate(-1px, 0) scale(1.02); filter: brightness(1.08); }
  100% { transform: translate(0, 0) scale(1); filter: brightness(1); }
}

@keyframes enemySquareTrace {
  0% {
    clip-path: polygon(0 0, 30% 0, 30% 0, 0 0);
    opacity: 0.6;
  }
  24% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    opacity: 0.9;
  }
  25% {
    clip-path: polygon(100% 0, 100% 0, 100% 32%, 100% 32%);
  }
  49% {
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    opacity: 0.84;
  }
  50% {
    clip-path: polygon(100% 100%, 68% 100%, 68% 100%, 100% 100%);
  }
  74% {
    clip-path: polygon(100% 100%, 0 100%, 0 100%, 100% 100%);
    opacity: 0.9;
  }
  75% {
    clip-path: polygon(0 100%, 0 68%, 0 68%, 0 100%);
  }
  100% {
    clip-path: polygon(0 100%, 0 0, 0 0, 0 100%);
    opacity: 0.6;
  }
}

@keyframes pixelBurst {
  0% { transform: translate(0, 0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

@keyframes collapseColumnTile {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-18%) scale(0.08);
    opacity: 0;
  }
}

@keyframes collapseFlash {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.82); }
}

@keyframes edgeRevealBottom {
  0% { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes edgeRevealTop {
  0% { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes edgeRevealLeft {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes edgeRevealRight {
  0% { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes moveTrail {
  0% { transform: translate(0, 0) scale(0.86); opacity: var(--trail-opacity, 0.42); }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.08); opacity: 0; }
}

@media (max-width: 980px) {
  .hero-actions {
    justify-content: flex-start;
  }

  h1,
  h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .section-rail {
    left: 8px;
    gap: 6px;
  }

  .section-rail-socials {
    gap: 6px;
    margin-top: 10px;
  }

  .section-rail-link {
    width: 24px;
    height: 16px;
  }

  .section-rail-link::before {
    width: 24px;
    height: 3px;
  }

  .rail-social-pill {
    width: 24px;
    height: 24px;
  }

  .rail-social-pill svg {
    width: 12px;
    height: 12px;
  }

  .snap-section {
    padding: 72px 16px 108px 52px;
  }

  .carousel-card {
    padding: 16px;
    border-radius: 24px;
  }

  .carousel-viewport {
    min-height: 620px;
  }

  .screenshot-carousel .carousel-viewport {
    min-height: 760px;
  }

  .hero-actions {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-button {
    flex: 1 1 100%;
  }

  .faq-section,
  .site-footer {
    padding-right: 16px;
    padding-left: 52px;
  }

  .faq-shell {
    grid-template-columns: 1fr;
  }

  .faq-item {
    padding: 16px;
  }

  .site-footer-links {
    justify-content: flex-start;
  }

  .language-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-nav-links {
    justify-content: flex-start;
  }

  .sprite-chip {
    width: 74px;
    height: 74px;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 16px;
    padding: 14px 16px;
    z-index: 90;
  }

  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-actions button {
    flex: 1 1 0;
  }

  .phone-stage {
    padding: 8px 6px 2px;
  }

  .phone-shell {
    width: min(100%, 324px);
  }

  .feature-copy {
    margin-top: 8px;
  }

  .demo-panel {
    padding: 16px;
    border-radius: 24px;
  }
}

@media (min-width: 721px) {
  .faq-section .faq-heading,
  .faq-section .faq-shell > .faq-list {
    width: 100%;
    justify-self: stretch;
  }
}
