/* Realm page theme: pixel display type, gold and ember on stone blocks. */

.realm-page {
  --bg: #121316;
  --accent: #ffcc4d;
  --accent-deep: #a8740a;
  --accent-ink: #1a1203;
  --display: "Pixelify Sans", "Courier New", monospace;
  background: var(--bg) url("img/tex/stone.webp") repeat;
  background-size: 128px;
}
.realm-page h1, .realm-page h2, .realm-page h3 { font-weight: 700; line-height: 1; letter-spacing: 0; }
.realm-page h1 span, .realm-page h2 span { color: var(--accent); }
.realm-page .copy { margin-top: 18px; max-width: 600px; color: #d6d0c4; font-weight: 500; }

.realm-page .btn { clip-path: none; box-shadow: inset 0 -5px 0 var(--accent-deep), inset 0 4px 0 rgba(255, 255, 255, 0.35), 0 0 0 3px var(--accent-ink); }
.realm-page .btn-ghost { box-shadow: inset 0 0 0 3px var(--ink); }
.realm-page .wl input { border-width: 3px; background: rgba(18, 19, 22, 0.85); }

.realm-page .brand { font-family: var(--display); font-weight: 700; font-size: 26px; text-transform: uppercase; }
.realm-page .brand em { font-style: normal; color: var(--accent); }
.realm-mark { position: relative; width: 22px; height: 22px; display: inline-block; background: var(--accent); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.realm-mark::after { content: ""; position: absolute; inset: 7px; background: var(--bg); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }

/* ── Hero ────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--pad) clamp(56px, 7vw, 100px);
}
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 19, 22, 0.88) 0%, rgba(18, 19, 22, 0.5) 36%, rgba(18, 19, 22, 0) 62%),
    linear-gradient(180deg, rgba(18, 19, 22, 0.5) 0%, rgba(18, 19, 22, 0) 20%, rgba(18, 19, 22, 0) 70%, rgba(18, 19, 22, 0.95) 100%);
}
.hero-inner { width: 100%; max-width: 1400px; margin: 0 auto; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--accent); box-shadow: 18px 0 0 #7fdc6a, 36px 0 0 #ff8a3d; margin-right: 36px; }
.hero h1 { font-size: clamp(54px, 7vw, 112px); max-width: 15ch; text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55); }
.hero h1 span { display: block; }
.lede { margin-top: 22px; max-width: 540px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; color: #efe9dc; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); }

/* ── World ───────────────────────────────────────────── */

.world { max-width: 1400px; margin: 0 auto; padding: clamp(90px, 11vw, 150px) var(--pad); }
.world-head { max-width: 820px; }
.world h2, .gate h2 { font-size: clamp(42px, 5.6vw, 84px); margin-top: 14px; }
.world h2 span, .gate h2 span { display: block; }
.map-frame { position: relative; margin-top: clamp(40px, 6vw, 72px); padding: 10px; background: #2a2219; box-shadow: 0 0 0 4px #0b0c0e, inset 0 0 0 4px #4a3a26, 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.map-frame img { width: 100%; height: auto; }
.map-frame figcaption { padding: 12px 6px 4px; font: 600 15px/1.4 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: #cdbb9b; }

/* ── Dungeon band ────────────────────────────────────── */

.band { position: relative; isolation: isolate; overflow: hidden; min-height: min(90vh, 900px); display: flex; align-items: flex-end; padding: clamp(110px, 14vw, 200px) var(--pad) clamp(60px, 8vw, 110px); }
.band-art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 19, 22, 0.85) 0%, rgba(18, 19, 22, 0.4) 40%, rgba(18, 19, 22, 0) 60%), linear-gradient(0deg, rgba(18, 19, 22, 0.95) 0%, rgba(18, 19, 22, 0.4) 40%, rgba(18, 19, 22, 0) 65%); }
.band .art-label { top: 18px; bottom: auto; }
.band-inner { width: 100%; max-width: 1400px; margin: 0 auto; }
.gate .label { color: #ff8a3d; }
.gate h2 span { color: #ff8a3d; }
.gate .copy { color: #efe9dc; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9); }

/* ── Closing ─────────────────────────────────────────── */

.closing { padding: clamp(90px, 11vw, 150px) var(--pad); text-align: center; display: flex; flex-direction: column; align-items: center; background: radial-gradient(60% 80% at 50% 100%, rgba(255, 204, 77, 0.14), transparent 70%); }
.closing h2 { font-size: clamp(48px, 7vw, 108px); max-width: 11ch; }
.closing h2 span { display: block; }
.closing .wl { width: 100%; }
.closing-note { margin-top: 20px; color: var(--soft); }
.closing-note a { color: var(--ink); }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 700px) {
  .hero { padding-top: 96px; padding-bottom: 34px; }
  .realm-page .nav .brand { font-size: 19px; white-space: nowrap; gap: 8px; }
  .hero-art img { object-position: center top; }
  .hero-art::after { background: linear-gradient(180deg, rgba(18, 19, 22, 0.55) 0%, rgba(18, 19, 22, 0) 14%, rgba(18, 19, 22, 0.1) 36%, rgba(18, 19, 22, 0.82) 58%, rgba(18, 19, 22, 0.97) 76%); }
  .hero > .art-label { top: 74px; bottom: auto; }
  .hero h1 { font-size: clamp(44px, 12.5vw, 60px); }
  .kicker { font-size: 13px; margin-bottom: 12px; }
  .lede { margin-top: 14px; }
  .band { min-height: 0; }
}
