@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: #e9f5fb;
  --landing-surface: rgba(255, 255, 255, 0.82);
  --landing-border: rgba(39, 66, 85, 0.12);
  --landing-text: #163042;
  --landing-muted: rgba(22, 48, 66, 0.72);
  --landing-magenta: #c82285;
  --landing-teal: #009ba4;
  --landing-lime: #c7d540;
  --landing-shadow: 0 24px 60px rgba(47, 94, 127, 0.14);
}

*,
*::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(255, 255, 255, 0.16), rgba(235, 246, 251, 0.74)),
    radial-gradient(circle at top left, rgba(200, 34, 133, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 155, 164, 0.12), 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(255, 255, 255, 0.82);
  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: #ffffff;
}

.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.14), transparent 24%),
    radial-gradient(circle at top right, rgba(0, 155, 164, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(233, 245, 251, 0.72)),
    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(39, 66, 85, 0.12);
  box-shadow: 0 28px 72px rgba(47, 94, 127, 0.16);
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.12));
}

.landing-game-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(232, 243, 248, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.12) 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(39, 66, 85, 0.12);
  background: rgba(255, 255, 255, 0.72);
  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 24px 36px rgba(47, 94, 127, 0.18));
  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 10px 24px rgba(255, 255, 255, 0.35);
}

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

.landing-character-band {
  width: min(640px, 100%);
  margin-top: 28px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.landing-character-chip {
  width: 148px;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.landing-character-chip img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 24px rgba(47, 94, 127, 0.12));
}

.landing-character-chip figcaption {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--landing-text);
}

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

.landing-boot-panel {
  position: absolute;
  right: 32px;
  bottom: 28px;
  z-index: 3;
  width: min(360px, calc(100% - 64px));
  padding: 16px 18px 14px;
  border-radius: 20px;
  border: 1px solid rgba(39, 66, 85, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 36px rgba(47, 94, 127, 0.12);
  transition: opacity 420ms ease, transform 420ms ease;
}

.landing-boot-panel__head,
.landing-boot-panel__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-boot-panel__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(200, 34, 133, 0.18);
  color: #ffd5ef;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-boot-panel__status {
  font-size: 14px;
  color: var(--landing-text);
  text-align: right;
}

.landing-boot-panel__track {
  position: relative;
  margin-top: 12px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-boot-panel__bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--landing-lime), var(--landing-teal));
  transition: width 220ms ease;
}

.landing-boot-panel__meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--landing-muted);
}

.landing-boot-panel__meta span:first-child {
  color: var(--landing-text);
  font-weight: 700;
}

.landing-boot-panel.is-ready .landing-boot-panel__badge {
  background: rgba(0, 155, 164, 0.22);
  color: #d7fbff;
}

.landing-boot-panel.is-fading-out {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.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 18px 34px rgba(47, 94, 127, 0.14);
}

.landing-game .landing-button.alt {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(39, 66, 85, 0.12);
  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(214, 236, 246, 0.48), rgba(255, 255, 255, 0.24)),
    #dff0f8;
}

.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(208, 242, 244, 0.5), rgba(255, 255, 255, 0.24)),
    #dcf4f4;
}

.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(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.12) 44%, rgba(232, 243, 248, 0.22) 100%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 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-character-band {
    width: min(100%, 520px);
    margin-top: 20px;
    gap: 12px;
  }

  .landing-character-chip {
    width: 96px;
  }

  .landing-character-chip img {
    height: 112px;
  }

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

  .landing-boot-panel {
    left: 14px;
    right: 14px;
    bottom: 78px;
    width: auto;
    padding: 14px 16px 12px;
  }

  .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%;
  }
}
