:root {
  --bg-top: #05111b;
  --bg-mid: #0a2030;
  --bg-bottom: #0d2a37;
  --panel: rgba(6, 20, 31, 0.76);
  --line: rgba(118, 206, 255, 0.16);
  --text: #eff8ff;
  --muted: #a8c3d2;
  --accent: #c99b03;
  --accent-2: #67d6ff;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 68% 22%, rgba(103, 214, 255, 0.16), transparent 28%),
    radial-gradient(circle at 34% 78%, rgba(201, 155, 3, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.webgl-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#webgl {
  display: block;
  width: 100%;
  height: 100%;
}

/* Mobile Static Hero ------------------------------------------------------
   Auf Mobile wird keine Three.js-Hero-Szene geladen. Stattdessen liegt hier
   ein leichter Screenshot. Empfohlenes Ersatzbild: 1080 x 1920 px, WebP. */
@media (max-width: 860px), (pointer: coarse) {
  .webgl-wrap {
    background:
      linear-gradient(180deg, rgba(3, 10, 16, 0.18), rgba(3, 10, 16, 0.54)),
      url("../images/aegir-hero-mobile.webp") center center / cover no-repeat;
  }

  #webgl {
    display: none;
  }
}

html.static-hero .webgl-wrap {
  background:
    linear-gradient(180deg, rgba(3, 10, 16, 0.18), rgba(3, 10, 16, 0.54)),
    url("../images/aegir-hero-mobile.webp") center center / cover no-repeat;
}

html.static-hero #webgl {
  display: none;
}

.page {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px clamp(18px, 4vw, 48px);
  z-index: 5;
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.75), transparent);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__eyebrow,
.eyebrow,
.game-card__tag {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.brand__title {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(18px, 5vw, 70px) 80px;
}

.hero__content {
  width: min(720px, 100%);
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(6, 20, 31, 0.38), rgba(6, 20, 31, 0.18));
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(2px);
}

h1 {
  margin: 14px 0 18px;
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.hero__lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  margin: 0 0 28px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  display: block;
  min-height: 170px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(118, 206, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.game-card--active {
  background: linear-gradient(135deg, rgba(103, 214, 255, 0.14), rgba(201, 155, 3, 0.12));
}

.game-card h2 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 0 clamp(18px, 5vw, 70px) 26px;
  color: rgba(239, 248, 255, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .hero {
    align-items: flex-end;
    padding-top: 110px;
  }

  .hero__content {
    width: 100%;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 16px;
  }

  .hero {
    padding: 96px 14px 60px;
  }

  .hero__content {
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.7rem, 17vw, 4.5rem);
  }

  .game-card {
    min-height: auto;
  }
}

.top-actions {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(118, 206, 255, 0.22);
  background: rgba(6, 20, 31, 0.46);
  color: #eff8ff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 520px) {
  .top-actions {
    top: 14px;
    right: 14px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
}

/* Aegir Story Teaser ----------------------------------------------------- */
.game-card--featured {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 155, 3, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(6, 20, 31, 0.22));
}

.game-card--featured::after {
  content: "Æ";
  position: absolute;
  right: 18px;
  bottom: -34px;
  font-family: Georgia, serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(201, 155, 3, 0.13);
  pointer-events: none;
}

.game-card__button {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 11px 16px;
  border: 1px solid rgba(201, 155, 3, 0.5);
  border-radius: 999px;
  background: rgba(27, 15, 8, 0.54);
  color: #ffe9b2;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.story-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.story-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(201, 155, 3, 0.36);
  border-radius: 28px;
  background:
    radial-gradient(circle at 74% 18%, rgba(201, 155, 3, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(9, 24, 36, 0.96), rgba(3, 10, 16, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.55);
}

.story-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

.story-stage {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr);
}

.story-art {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 225, 128, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(8, 30, 48, 0.55), rgba(0, 0, 0, 0.2));
  position: relative;
  overflow: hidden;
}

.story-art::before,
.story-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(72%, 360px) auto;
  opacity: 0.94;
}

.story-art::after {
  background-image:
    radial-gradient(circle at 22% 16%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 26%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 58% 68%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 82% 78%, #fff 0 1px, transparent 2px);
  background-size: auto;
  opacity: 0.38;
}

.story-art[data-art="aegir"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M88 260c35-88 209-90 244 0'/%3E%3Cpath d='M126 250c5-82 28-132 84-132s79 50 84 132'/%3E%3Cpath d='M158 142c10-42 94-42 104 0'/%3E%3Cpath d='M142 288h136'/%3E%3Cpath d='M126 314h168'/%3E%3C/g%3E%3Cpath fill='%23f6d27a' opacity='.18' d='M82 274c45-105 211-106 256 0v70H82z'/%3E%3C/svg%3E");
}

.story-art[data-art="horn"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M88 254c96 6 169-40 231-122 18 70-8 142-68 186-48 34-117 29-163-64z'/%3E%3Cpath d='M93 250c-20 2-32 15-30 30 3 20 29 31 58 18'/%3E%3Cpath d='M154 256c34-10 72-35 116-82'/%3E%3Cpath d='M292 150l52-37'/%3E%3C/g%3E%3C/svg%3E");
}

.story-art[data-art="barbarossa"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M122 336c15-75 41-112 88-112s73 37 88 112'/%3E%3Cpath d='M148 178c18-54 106-54 124 0'/%3E%3Cpath d='M148 178c-18 21-22 59 4 86 29 31 87 31 116 0 26-27 22-65 4-86'/%3E%3Cpath d='M124 156c50-46 122-46 172 0'/%3E%3Cpath d='M164 242c26 30 66 30 92 0'/%3E%3Cpath d='M112 102c44 28 148 28 196 0'/%3E%3C/g%3E%3C/svg%3E");
}

.story-art[data-art="castle"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='10' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M96 330h228V170l-42-42-42 42v-54h-60v54l-42-42-42 42z'/%3E%3Cpath d='M168 330v-62c0-24 84-24 84 0v62'/%3E%3Cpath d='M122 204h36M262 204h36M122 246h36M262 246h36'/%3E%3Cpath d='M180 116l30-58 30 58'/%3E%3C/g%3E%3C/svg%3E");
}

.story-art[data-art="portal"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%23f6d27a' stroke-width='12' stroke-linecap='round'%3E%3Ccircle cx='210' cy='210' r='126'/%3E%3Ccircle cx='210' cy='210' r='84' opacity='.55'/%3E%3Cpath d='M210 55v45M210 320v45M55 210h45M320 210h45M102 102l32 32M286 286l32 32M318 102l-32 32M134 286l-32 32'/%3E%3C/g%3E%3C/svg%3E");
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.story-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  margin-bottom: 14px;
}

.story-copy h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.95;
  color: #fff2c7;
}

.story-copy p {
  margin: 0;
  color: rgba(239, 248, 255, 0.82);
  font-size: clamp(1.05rem, 2.3vw, 1.34rem);
  line-height: 1.65;
}

.story-controls {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.story-nav,
.story-start {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.story-nav--primary,
.story-start {
  border-color: rgba(201, 155, 3, 0.55);
  background: rgba(201, 155, 3, 0.16);
  color: #ffe9b2;
}

.story-start {
  display: none;
}

.story-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.story-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.story-dots button.is-active {
  background: var(--accent);
}

body.story-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .story-modal {
    padding: 10px;
  }

  .story-modal__panel {
    border-radius: 22px;
  }

  .story-stage {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .story-art {
    min-height: 210px;
  }

  .story-art::before {
    background-size: min(58%, 260px) auto;
  }

  .story-copy {
    padding: 24px 22px 28px;
  }

  .story-controls {
    grid-template-columns: 1fr 1fr;
  }

  .story-dots {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 4px 0 8px;
  }

  .story-start {
    grid-column: 1 / -1;
  }
}

/* Layout Update: ein Spiel pro Zeile ------------------------------------- */
.hero__content {
  width: min(980px, 100%);
}

.game-grid,
.game-list {
  grid-template-columns: 1fr;
}

.game-card {
  min-height: 140px;
}

.game-list .game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.game-card--featured {
  min-height: 230px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
}

.game-card--featured::after {
  display: none;
}

.game-card__copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.game-card__visual {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 155, 3, 0.18);
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 230, 150, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(6, 20, 31, 0.22), rgba(0, 0, 0, 0.42));
}

.game-card__visual--horn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(82%, 420px) auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.48));
  opacity: 0.96;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 360'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop stop-color='%23fff0bb'/%3E%3Cstop offset='.42' stop-color='%238d7a58'/%3E%3Cstop offset='1' stop-color='%23f7d887'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M76 207c96 18 211-28 321-128 22 84-16 167-96 211-69 38-163 10-225-83z' fill='rgba(255,238,185,.13)' stroke='url(%23g)' stroke-width='18'/%3E%3Cpath d='M82 207c-27 0-45 16-45 38 0 27 38 45 78 21' stroke='%23f8d989' stroke-width='18'/%3E%3Cpath d='M163 214c64-18 127-61 194-130' stroke='%23fff2c7' stroke-width='8' opacity='.55'/%3E%3Cpath d='M367 88l70-48' stroke='%23f8d989' stroke-width='22'/%3E%3Cpath d='M104 250c50 24 122 32 184 7' stroke='%23645542' stroke-width='8' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
}

.game-card__visual--horn::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.65) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 25%, rgba(255,255,255,.55) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 80%, rgba(255,255,255,.45) 0 1px, transparent 2px);
  opacity: 0.45;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(239, 248, 255, 0.78);
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff2c7;
}

.legal-page {
  min-height: 100vh;
  padding: 130px clamp(18px, 5vw, 70px) 70px;
  position: relative;
  z-index: 2;
}

.legal-card {
  width: min(920px, 100%);
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(6, 20, 31, 0.78);
  box-shadow: 0 24px 80px var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-card h1 {
  max-width: none;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
}

.legal-card h2 {
  margin-top: 28px;
  color: #fff2c7;
}

.legal-card p,
.legal-card li {
  color: rgba(239, 248, 255, 0.82);
  line-height: 1.7;
}

.legal-card a {
  color: #ffe9b2;
}

.legal-note {
  border-left: 3px solid rgba(201, 155, 3, 0.65);
  padding: 12px 16px;
  background: rgba(201, 155, 3, 0.08);
  border-radius: 0 14px 14px 0;
}

@media (max-width: 760px) {
  .game-card--featured {
    grid-template-columns: 1fr;
  }

  .game-card__visual {
    min-height: 170px;
    order: -1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Story-Overlay Fix: Mobile Querformat / geringe Höhe -------------------- */
.story-modal__panel {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-height: 560px) and (orientation: landscape) {
  .story-modal {
    padding: 8px;
    place-items: start center;
  }

  .story-modal__panel {
    width: min(980px, 100%);
    max-height: calc(100dvh - 16px);
    border-radius: 18px;
  }

  .story-modal__close {
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .story-stage {
    min-height: 0;
    grid-template-columns: minmax(180px, 0.75fr) minmax(320px, 1.25fr);
  }

  .story-art {
    min-height: 220px;
  }

  .story-art::before {
    background-size: min(60%, 240px) auto;
  }

  .story-copy {
    justify-content: center;
    padding: 20px 56px 20px 22px;
  }

  .story-kicker {
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .story-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 8vh, 3.35rem);
    line-height: 0.95;
  }

  .story-copy p {
    font-size: clamp(0.92rem, 3.4vh, 1.02rem);
    line-height: 1.42;
  }

  .story-controls {
    grid-template-columns: auto 1fr auto auto;
    padding: 10px;
    gap: 8px;
  }

  .story-nav,
  .story-start {
    min-height: 40px;
    padding: 0 14px;
  }

  .story-dots {
    grid-column: auto;
    grid-row: auto;
    padding: 0;
  }
}


/* Featured-Cover-Karte: großes 1600x900-Bild vollständig anzeigen -------- */
.game-card--cover {
  display: block;
  padding: 0;
  overflow: hidden;
}

.game-card--cover .game-card__cover {
  margin: 0;
  width: 100%;
  border-bottom: 1px solid rgba(201, 155, 3, 0.18);
  background: rgba(0, 0, 0, 0.24);
}

.game-card--cover .game-card__cover img {
  display: block;
  width: 100%;
  height: auto;
}

.game-card--cover .game-card__copy {
  padding: clamp(18px, 3vw, 28px);
}

.game-card--cover .game-card__copy p {
  max-width: 68ch;
}

.game-card--cover .game-card__button {
  margin-top: 18px;
}

/* Die alte Horn-DIV-Grafik bleibt für Notfälle vorhanden, wird hier aber nicht mehr benutzt. */

/* Story-Bilder: echte 1200x900-WebP statt SVG-Platzhalter -------------- */
.story-modal__panel {
  width: min(1180px, calc(100vw - 36px));
  max-height: min(820px, calc(100dvh - 28px));
  overflow: hidden;
}

.story-stage {
  min-height: 0;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.story-art {
  margin: 0;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
}

.story-art::before,
.story-art::after {
  display: none;
}

.story-art img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: calc(100dvh - 190px);
  object-fit: contain;
  border-radius: 20px;
}

.story-copy {
  min-width: 0;
  overflow: hidden;
  padding: clamp(26px, 4vw, 54px);
}

.story-copy h2 {
  font-size: clamp(2.4rem, 5vw, 4.45rem);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.story-copy p {
  font-size: clamp(1rem, 1.65vw, 1.25rem);
  line-height: 1.58;
}

@media (min-width: 1000px) {
  .story-copy h2 {
    font-size: clamp(3rem, 4.4vw, 4.8rem);
  }
}

@media (max-width: 720px) {
  .story-modal__panel {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .story-stage {
    grid-template-columns: 1fr;
  }

  .story-art {
    padding: 18px 18px 0;
  }

  .story-art img {
    max-width: 100%;
    max-height: 34dvh;
    border-radius: 16px;
  }

  .story-copy {
    padding: 20px 22px 26px;
  }

  .story-copy h2 {
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .story-modal__panel {
    width: min(1040px, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
  }

  .story-stage {
    grid-template-columns: minmax(210px, 0.78fr) minmax(300px, 1.22fr);
  }

  .story-art {
    padding: 14px;
  }

  .story-art img {
    max-height: calc(100dvh - 104px);
    border-radius: 14px;
  }

  .story-copy {
    padding: 18px 56px 18px 20px;
  }

  .story-copy h2 {
    font-size: clamp(2rem, 8vh, 3.35rem);
  }

  .story-copy p {
    font-size: clamp(0.9rem, 3.4vh, 1.02rem);
    line-height: 1.42;
  }
}
