@font-face {
  font-family: 'Innogy';
  src: url('/ui/fonts/Innogy-Regular.otf') format('opentype');
  font-weight: 400;
}

@font-face {
  font-family: 'Innogy';
  src: url('/ui/fonts/Innogy-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: 'Innogy';
  src: url('/ui/fonts/Innogy-Bold.otf') format('opentype');
  font-weight: 700;
}

:root {
  --landing-bg: #07111d;
  --landing-surface: rgba(6, 16, 25, 0.78);
  --landing-border: rgba(255, 255, 255, 0.16);
  --landing-text: #f4f8fb;
  --landing-muted: rgba(244, 248, 251, 0.78);
  --landing-magenta: #c82285;
  --landing-teal: #009ba4;
  --landing-lime: #c7d540;
  --landing-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.landing-page {
  margin: 0;
  min-height: 100vh;
  font-family: 'Innogy', Arial, sans-serif;
  color: var(--landing-text);
  background:
    linear-gradient(180deg, rgba(3, 9, 15, 0.28), rgba(3, 9, 15, 0.84)),
    radial-gradient(circle at top left, rgba(200, 34, 133, 0.24), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 155, 164, 0.24), transparent 28%),
    var(--landing-bg-image) center/cover no-repeat,
    var(--landing-bg);
}

.landing-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.landing-hero {
  padding: 32px;
  border: 1px solid var(--landing-border);
  border-radius: 28px;
  background: var(--landing-surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--landing-shadow);
}

.landing-badge {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--landing-lime);
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 88px);
  font-style: italic;
  line-height: 0.94;
}

.landing-subtitle {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
  color: var(--landing-muted);
}

.landing-grid,
.landing-feature {
  margin-top: 28px;
  display: grid;
  gap: 22px;
}

.landing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.landing-card,
.landing-feature {
  padding: 28px;
  border-radius: 26px;
  border: 1px solid var(--landing-border);
  background: rgba(6, 16, 25, 0.72);
  box-shadow: var(--landing-shadow);
}

.landing-card h2,
.landing-feature h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

.landing-card p,
.landing-feature p {
  margin: 0;
  color: var(--landing-muted);
  line-height: 1.6;
  font-size: 18px;
}

.landing-card.accent-blitzy {
  outline: 1px solid rgba(200, 34, 133, 0.28);
}

.landing-card.accent-aqua {
  outline: 1px solid rgba(0, 155, 164, 0.28);
}

.landing-link,
.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 22px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.landing-link,
.landing-button {
  background: var(--landing-magenta);
  color: #fff;
}

.landing-card.accent-aqua .landing-link,
.landing-aqua .landing-button {
  background: var(--landing-teal);
  color: #041319;
}

.landing-button.secondary {
  background: transparent;
  color: var(--landing-text);
  border: 1px solid var(--landing-border);
}

.landing-link:hover,
.landing-button:hover {
  transform: translateY(-1px);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: start;
}

.landing-feature {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.landing-page.landing-game {
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(199, 213, 64, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 155, 164, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(3, 9, 15, 0.34), rgba(3, 9, 15, 0.9)),
    var(--landing-bg-image) center/cover no-repeat,
    var(--landing-bg);
}

.landing-game .landing-shell {
  width: min(1400px, calc(100% - 24px));
  padding: 12px 0;
}

.landing-game-stage {
  position: relative;
  min-height: calc(100vh - 24px);
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(6, 16, 25, 0.04), rgba(6, 16, 25, 0.16));
}

.landing-game-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 29, 0.04) 0%, rgba(7, 17, 29, 0.16) 40%, rgba(7, 17, 29, 0.9) 100%),
    linear-gradient(90deg, rgba(7, 17, 29, 0.78) 0%, rgba(7, 17, 29, 0.18) 46%, rgba(7, 17, 29, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.landing-back-link {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 16, 25, 0.5);
  color: var(--landing-text);
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.landing-back-link:hover {
  transform: translateY(-1px);
}

.landing-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.landing-scene__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.22), transparent 18%),
    radial-gradient(circle at 68% 16%, rgba(255, 255, 255, 0.12), transparent 14%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  z-index: 0;
}

.landing-scene__layer {
  position: absolute;
  left: 50%;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform: translateX(-50%);
}

.landing-scene__hero {
  position: absolute;
  left: auto;
  right: max(3vw, 28px);
  bottom: -10px;
  z-index: 3;
  width: min(56vw, 760px);
  max-height: 94%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
  transform: none;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.32));
  animation: landing-hero-float 4.8s ease-in-out infinite;
}

.landing-stage-copy,
.landing-stage-actions {
  position: relative;
  z-index: 3;
}

.landing-stage-copy {
  max-width: min(540px, calc(100% - 32px));
  padding: 86px 32px 0;
}

.landing-stage-copy h1 {
  margin: 0;
  font-size: clamp(68px, 11vw, 170px);
  line-height: 0.88;
  font-style: italic;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.landing-game .landing-subtitle {
  margin-top: 18px;
  max-width: 520px;
  font-size: clamp(18px, 2.5vw, 28px);
  line-height: 1.45;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.landing-feature-note {
  width: min(420px, 100%);
  margin-top: 26px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(6, 16, 25, 0.42);
  backdrop-filter: blur(12px);
}

.landing-feature-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(199, 213, 64, 0.18);
  color: var(--landing-lime);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-feature-note p {
  margin: 12px 0 0;
  color: var(--landing-muted);
  line-height: 1.55;
  font-size: 17px;
}

.landing-stage-actions {
  position: absolute;
  left: 32px;
  bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.landing-game .landing-button {
  min-width: 170px;
  min-height: 56px;
  margin-top: 0;
  padding: 0 28px;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.landing-game .landing-button.alt {
  background: rgba(6, 16, 25, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--landing-text);
  backdrop-filter: blur(10px);
}

.landing-game .landing-button:hover,
.landing-back-link:hover {
  transform: translateY(-2px);
}

.landing-blitzy .landing-game-stage {
  background:
    linear-gradient(180deg, rgba(132, 186, 224, 0.2), rgba(33, 95, 128, 0.08)),
    #0b1720;
}

.landing-blitzy .landing-scene__hero {
  width: min(58vw, 820px);
  right: max(2vw, 22px);
  bottom: -14px;
}

.landing-blitzy .layer-bg {
  width: max(110%, 1600px);
  bottom: -1%;
  z-index: 0;
  animation: landing-bg-drift 18s ease-in-out infinite alternate;
}

.landing-blitzy .layer-sun {
  width: min(28vw, 430px);
  top: 8%;
  left: 18%;
  z-index: 1;
  animation: landing-sun-glow 8s ease-in-out infinite;
}

.landing-blitzy .layer-mid {
  width: max(112%, 1640px);
  bottom: 7%;
  z-index: 1;
  animation: landing-mid-drift 12s ease-in-out infinite alternate;
}

.landing-blitzy .layer-fg {
  width: max(114%, 1680px);
  bottom: -2%;
  z-index: 2;
  animation: landing-fg-drift 9s ease-in-out infinite alternate;
}

.landing-aqua {
  --landing-teal: #52bbb5;
}

.landing-aqua .landing-game-stage {
  background:
    linear-gradient(180deg, rgba(73, 145, 178, 0.22), rgba(7, 63, 88, 0.12)),
    #08131b;
}

.landing-aqua .landing-scene__wash {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 16%),
    radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(103, 201, 228, 0.08), rgba(6, 16, 25, 0));
}

.landing-aqua .landing-scene__hero {
  width: min(42vw, 560px);
  right: max(6vw, 36px);
  bottom: -8px;
}

.landing-aqua .layer-bg {
  width: max(112%, 1640px);
  bottom: -2%;
  z-index: 0;
  animation: landing-bg-drift 18s ease-in-out infinite alternate;
}

.landing-aqua .layer-sun {
  width: min(22vw, 300px);
  top: 10%;
  left: 21%;
  opacity: 0.92;
  z-index: 1;
  animation: landing-sun-glow 9s ease-in-out infinite;
}

.landing-aqua .layer-mid {
  width: max(112%, 1640px);
  bottom: 10%;
  z-index: 1;
  animation: landing-mid-drift 13s ease-in-out infinite alternate;
}

.landing-aqua .layer-accent {
  width: min(20vw, 290px);
  left: 67%;
  bottom: 19%;
  z-index: 2;
  animation: landing-submarine-drift 11s ease-in-out infinite alternate;
}

.landing-aqua .layer-fg {
  width: max(114%, 1680px);
  bottom: -1%;
  z-index: 2;
  animation: landing-fg-drift 10s ease-in-out infinite alternate;
}

@keyframes landing-hero-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(1.2deg); }
}

@keyframes landing-bg-drift {
  0% { transform: translateX(-50%) scale(1); }
  100% { transform: translateX(-48.5%) scale(1.015); }
}

@keyframes landing-mid-drift {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-51.4%) translateY(-8px); }
}

@keyframes landing-fg-drift {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-49.2%) translateY(8px); }
}

@keyframes landing-sun-glow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.88; }
  50% { transform: translateX(-50%) scale(1.04); opacity: 1; }
}

@keyframes landing-submarine-drift {
  0% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  100% { transform: translateX(-47%) translateY(-18px) rotate(2deg); }
}

@media (max-width: 820px) {
  .landing-shell {
    width: min(100% - 20px, 1120px);
    padding: 24px 0 28px;
  }

  .landing-hero,
  .landing-card,
  .landing-feature {
    padding: 22px;
    border-radius: 22px;
  }

  .landing-grid,
  .landing-feature {
    grid-template-columns: 1fr;
  }

  .landing-game .landing-shell {
    width: min(100% - 14px, 1400px);
    padding: 7px 0;
  }

  .landing-game-stage {
    min-height: calc(100vh - 14px);
    border-radius: 26px;
  }

  .landing-game-stage::after {
    background:
      linear-gradient(180deg, rgba(7, 17, 29, 0.14) 0%, rgba(7, 17, 29, 0.34) 44%, rgba(7, 17, 29, 0.92) 100%),
      linear-gradient(180deg, rgba(7, 17, 29, 0.12) 0%, rgba(7, 17, 29, 0) 20%);
  }

  .landing-back-link {
    top: 16px;
    right: 16px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .landing-stage-copy {
    max-width: calc(100% - 28px);
    padding: 72px 14px 0;
  }

  .landing-stage-copy h1 {
    font-size: clamp(54px, 18vw, 120px);
  }

  .landing-game .landing-subtitle {
    font-size: clamp(17px, 5vw, 24px);
    max-width: 100%;
  }

  .landing-feature-note {
    width: min(100%, 420px);
    margin-top: 18px;
    padding: 16px;
  }

  .landing-feature-note p {
    font-size: 15px;
  }

  .landing-stage-actions {
    left: 14px;
    right: 14px;
    bottom: 16px;
    gap: 10px;
  }

  .landing-game .landing-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 0 16px;
    font-size: 15px;
  }

  .landing-blitzy .landing-scene__hero {
    width: min(90vw, 620px);
    right: -14vw;
    bottom: 56px;
    opacity: 0.94;
  }

  .landing-aqua .landing-scene__hero {
    width: min(72vw, 420px);
    right: -4vw;
    bottom: 66px;
    opacity: 0.94;
  }

  .landing-blitzy .layer-bg,
  .landing-blitzy .layer-mid,
  .landing-blitzy .layer-fg,
  .landing-aqua .layer-bg,
  .landing-aqua .layer-mid,
  .landing-aqua .layer-fg {
    width: max(150%, 980px);
  }

  .landing-blitzy .layer-sun {
    width: min(34vw, 220px);
    left: 24%;
    top: 13%;
  }

  .landing-aqua .layer-sun {
    width: min(24vw, 150px);
    left: 26%;
    top: 16%;
  }

  .landing-aqua .layer-accent {
    width: min(28vw, 170px);
    left: 60%;
    bottom: 28%;
  }
}
