/* Home page (home-redesign). Hand-written like presentation.css: the Tailwind build in app.css is
   precompiled, so new home classes live here with the h- prefix. Brand tokens only. */
.h-home {
  --h-ink: #070605;
  --h-ink-2: #0c0a08;
  --h-ink-3: #12100c;
  --h-gold: #c6a15b;
  --h-gold-2: #e8d5a3;
  --h-cream: #f4ead0;
  --h-text: #c4b79a;
  --h-mute: #9a8f7a;
  --h-line: rgba(198, 161, 91, 0.18);
  --h-wrap: 1440px;
  background: var(--h-ink);
  color: #ede6d6;
}
.h-home *,
.h-home *::before,
.h-home *::after { box-sizing: border-box; }
.h-wrap { width: 100%; max-width: var(--h-wrap); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .h-wrap { padding-inline: 32px; } }
.h-home a:focus-visible,
.h-home button:focus-visible { outline: 2px solid var(--h-gold-2); outline-offset: 3px; }
.h-pic,
.h-pic img { display: block; width: 100%; height: 100%; }
.h-pic img { object-fit: cover; }
.h-kicker { display: flex; align-items: center; gap: 12px; color: var(--h-gold); font-size: 11px; letter-spacing: 0.42em; text-transform: uppercase; }
.h-kicker svg { width: 26px; height: 26px; flex: none; }
.h-title { margin: 14px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1.05; color: var(--h-cream); }
.h-lead { margin: 16px 0 0; max-width: 40rem; font-size: 15px; line-height: 1.85; color: var(--h-text); }
.h-head-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.h-head-center .h-kicker { justify-content: center; }
.h-section { position: relative; padding-block: 88px; }
@media (min-width: 1024px) { .h-section { padding-block: 120px; } }
/* Empty photo slot (HOME_SLOTS): branded frame with the file name to drop in. */
.h-ph { position: relative; display: grid; place-items: center; padding: 14px; color: var(--h-gold); background:
  radial-gradient(ellipse at 50% 35%, rgba(198, 161, 91, 0.16), transparent 62%),
  repeating-linear-gradient(135deg, rgba(198, 161, 91, 0.045) 0 1px, transparent 1px 14px),
  linear-gradient(160deg, #15110b, #080705); }
.h-ph::before { content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(198, 161, 91, 0.32); pointer-events: none; }
.h-ph-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 26rem; text-align: center; }
.h-ph-in svg { width: 46px; height: 46px; opacity: 0.75; }
.h-ph-in b { font-family: "Cinzel", serif; font-weight: 500; font-size: 12px; letter-spacing: 0.08em; color: var(--h-gold-2); word-break: break-all; }
.h-ph-in small { font-size: 11px; line-height: 1.5; color: var(--h-mute); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h-hero-bg .h-ph { place-items: end; padding: 0 32px 120px; }
.h-hero-bg .h-ph-in { align-items: flex-end; text-align: right; }
@media (max-width: 767px) { .h-hero-bg .h-ph { place-items: center; padding: 20px 20px 18svh; } .h-hero-bg .h-ph-in { align-items: center; text-align: center; } }
.h-boss .h-ph { place-items: start center; padding-top: 34px; }
.h-band .h-ph { place-items: end; padding: 0 24px 22px; }
.h-band .h-ph-in { align-items: flex-end; text-align: right; }
.h-shot-tag { position: absolute; z-index: 3; right: 12px; bottom: 12px; padding: 5px 10px; border: 1px solid rgba(232, 213, 163, 0.25); background: rgba(7, 6, 5, 0.72); color: var(--h-gold-2); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }

/* Hero */
.h-hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--h-ink); }
.h-hero-bg { position: absolute; inset: 0; z-index: -2; }
.h-hero-bg img { object-position: 50% 45%; animation: h-drift 28s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes h-drift { from { transform: scale(1.02); } to { transform: scale(1.09) translateX(-1.2%); } }
.h-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.66) 34%, rgba(7, 6, 5, 0.08) 68%, rgba(7, 6, 5, 0.25) 100%),
  linear-gradient(0deg, var(--h-ink) 0%, rgba(7, 6, 5, 0.55) 22%, transparent 48%),
  linear-gradient(180deg, rgba(7, 6, 5, 0.75) 0%, transparent 18%); }
.h-hero-inner { padding-top: 120px; padding-bottom: 36px; }
.h-hero-logo { width: min(100%, 22rem); }
.h-hero-logo img { width: 100% !important; height: auto !important; }
/* logo-full.webp has ~12% glow padding on the left: pull the lettering onto the text edge. */
.h-hero-logo img { transform: translateX(max(-11%, -20px)); } /* never past the 20px page padding */
.h-hero-tag { margin: 18px 0 0; font-family: "Cormorant Garamond", serif; font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: var(--h-gold-2); }
.h-hero-body { margin: 14px 0 0; max-width: 31rem; font-size: 15px; line-height: 1.85; color: #d4c7a8; }
.h-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.h-hero-stores { margin-top: 18px; }
.h-stats { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--h-line); }
.h-stats div { padding: 18px 0 4px; }
.h-stats b { display: block; font-family: "Cinzel", serif; font-weight: 500; font-size: 2rem; letter-spacing: 0.1em; color: var(--h-gold-2); }
.h-stats span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--h-mute); }
@media (min-width: 768px) { .h-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Below lg the fixed bottom tab bar (64px) covers the hero foot: keep the stats above it, and the
   in-game tag on the image (top right, under the header) instead of in the stats row. */
@media (min-width: 768px) and (max-width: 1023px) { .h-hero-inner { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } }
@media (max-width: 767px) {
  .h-hero { justify-content: flex-start; }
  .h-hero-bg { bottom: auto; height: 62svh; }
  .h-hero-bg img { object-position: 62% 50%; }
  .h-hero::before { background: linear-gradient(0deg, var(--h-ink) 38%, rgba(7, 6, 5, 0.35) 62%, rgba(7, 6, 5, 0.55) 100%); }
  .h-hero-inner { padding-top: 38svh; }
  .h-hero-logo { width: min(70%, 15rem); }
}

/* EpinSultan (new feature) */
.h-epin { background: radial-gradient(ellipse at 80% 40%, rgba(198, 161, 91, 0.12), transparent 55%), var(--h-ink-2); border-block: 1px solid var(--h-line); }
.h-epin-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .h-epin-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.h-epin .h-kicker span { padding: 3px 10px; border: 1px solid var(--h-gold); color: var(--h-gold-2); letter-spacing: 0.3em; }
.h-epin-points { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.h-epin-points li { padding-left: 18px; border-left: 1px solid rgba(198, 161, 91, 0.45); }
.h-epin-points b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.3rem; color: var(--h-cream); }
.h-epin-points span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--h-text); }
.h-epin-note { margin: 22px 0 0; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h-mute); }
.h-epin-shots { position: relative; }
.h-epin-pc { aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(198, 161, 91, 0.35); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); }
.h-phone.h-epin-phone { margin: -12% 0 0 auto; width: 70%; }
@media (min-width: 1024px) { .h-epin-shots { padding-bottom: 20%; } .h-phone.h-epin-phone { position: absolute; right: -3%; bottom: 0; width: 60%; margin: 0; } }

/* Empires */
.h-empires { background: radial-gradient(circle at 50% 0%, rgba(198, 161, 91, 0.08), transparent 55%), var(--h-ink); }
.h-levels { margin: 44px auto 0; max-width: 44rem; display: flex; align-items: center; gap: 18px; }
.h-levels p { margin: 0; font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--h-mute); }
.h-levels b { display: block; margin-top: 4px; font-family: "Cinzel", serif; font-weight: 500; font-size: 2rem; color: var(--h-gold-2); }
.h-levels i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--h-gold), var(--h-gold-2), var(--h-gold)); }
.h-empire-list { margin: 48px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
@media (min-width: 900px) { .h-empire-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-empire { position: relative; overflow: hidden; border: 1px solid var(--h-line); background: var(--h-ink-2); transition: border-color 0.3s; }
.h-empire:hover { border-color: rgba(198, 161, 91, 0.45); }
.h-empire::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 3px; background: var(--tone); }
.h-empire-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.h-empire-img img { transition: transform 0.6s; }
.h-empire:hover .h-empire-img img { transform: scale(1.04); }
.h-empire-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--h-ink-2) 0%, transparent 55%); }
.h-empire-body { position: relative; padding: 0 26px 30px; margin-top: -34px; }
.h-empire-body p:first-child { margin: 0; font-size: 11px; letter-spacing: 0.32em; color: var(--tone); }
.h-empire h3 { margin: 6px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 2rem; color: var(--h-cream); }
.h-empire-body p:last-child { margin: 10px 0 0; font-size: 14px; line-height: 1.75; color: var(--h-text); }

/* Classes */
.h-classes { background: var(--h-ink-3); }
.h-class-grid { margin-top: 48px; display: grid; gap: 22px; }
@media (min-width: 1024px) { .h-class-grid { grid-template-columns: 210px minmax(0, 1fr) 300px; align-items: stretch; } }
.h-class-tabs { margin: 0; padding: 0; list-style: none; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
@media (min-width: 1024px) { .h-class-tabs { flex-direction: column; overflow: visible; } }
.h-class-tabs button { width: 100%; min-width: 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--h-line); background: rgba(7, 6, 5, 0.5); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.h-class-tabs button:hover { border-color: rgba(198, 161, 91, 0.45); }
.h-class-tabs button[aria-pressed="true"] { border-color: var(--h-gold); background: rgba(198, 161, 91, 0.1); }
.h-class-tabs b { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.3rem; color: var(--h-cream); }
.h-class-tabs small { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--h-mute); }
.h-class-stage { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--h-line); background: var(--h-ink); }
@media (min-width: 1024px) { .h-class-stage { aspect-ratio: auto; min-height: 520px; } }
.h-class-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 6, 5, 0.6) 0%, transparent 35%); pointer-events: none; }
.h-class-info { padding: 26px; border: 1px solid var(--h-line); background: rgba(7, 6, 5, 0.55); }
.h-class-info h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 2.2rem; color: var(--h-cream); }
.h-class-info .h-role { margin: 6px 0 0; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--h-gold); }
.h-class-info .h-blurb { margin: 16px 0 0; font-size: 14px; line-height: 1.8; color: var(--h-text); }
.h-bars { margin-top: 26px; display: grid; gap: 14px; }
.h-bars p { margin: 0 0 6px; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--h-gold); }
.h-bar span { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--h-mute); }
.h-bar i { display: block; margin-top: 5px; height: 2px; background: rgba(198, 161, 91, 0.15); }
.h-bar i::before { content: ""; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--h-gold), var(--h-gold-2)); }
.h-class-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--h-line); font-size: 13px; line-height: 1.7; color: var(--h-mute); }

/* World rail */
.h-world { background: var(--h-ink); }
.h-world-head { display: grid; gap: 22px; }
@media (min-width: 1024px) { .h-world-head { grid-template-columns: 1fr 1fr; align-items: end; } }
.h-world-head > p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--h-text); }
.h-rail { margin: 44px 0 0; padding: 0 0 14px; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--h-gold) transparent; scrollbar-width: thin; }
.h-rail li { scroll-snap-align: start; position: relative; border: 1px solid var(--h-line); background: var(--h-ink-2); }
.h-rail-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.h-rail li > div:last-child { padding: 16px 18px 20px; }
.h-lv { display: inline-block; padding: 3px 9px; border: 1px solid rgba(198, 161, 91, 0.4); font-family: "Cinzel", serif; font-size: 12px; letter-spacing: 0.1em; color: var(--h-gold-2); }
.h-rail h3 { margin: 10px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.45rem; line-height: 1.2; color: var(--h-cream); }
.h-rail-step { position: absolute; z-index: 2; top: 10px; left: 12px; font-family: "Cinzel", serif; font-size: 12px; color: var(--h-gold-2); text-shadow: 0 1px 6px #000; }

/* Bosses */
.h-bosses { background: radial-gradient(ellipse at 70% 20%, rgba(150, 40, 30, 0.12), transparent 55%), var(--h-ink-3); }
.h-boss-grid { margin-top: 48px; display: grid; gap: 14px; }
@media (min-width: 900px) { .h-boss-grid { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, 1fr)); } .h-boss:first-child { grid-row: span 2; } .h-boss:last-child { grid-column: span 2; } }
.h-boss { position: relative; overflow: hidden; min-height: 240px; border: 1px solid var(--h-line); background: var(--h-ink); margin: 0; }
.h-boss .h-pic { position: absolute; inset: 0; }
.h-boss img { transition: transform 0.7s; }
.h-boss:hover img { transform: scale(1.05); }
.h-boss::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 6, 5, 0.92) 0%, rgba(7, 6, 5, 0.1) 55%); }
.h-boss figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.h-boss figcaption small { display: block; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--h-gold); }
.h-boss figcaption b { display: block; margin-top: 6px; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.9rem; color: var(--h-cream); }

/* Systems */
.h-systems { background: var(--h-ink); }
.h-sys-grid { margin-top: 48px; display: grid; gap: 18px; }
@media (min-width: 1024px) { .h-sys-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-sys { border: 1px solid var(--h-line); background: var(--h-ink-2); }
.h-sys-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--h-line); }
.h-sys div:last-child { padding: 22px 24px 28px; }
.h-sys h3 { margin: 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.7rem; color: var(--h-cream); }
.h-sys p { margin: 10px 0 0; font-size: 14px; line-height: 1.8; color: var(--h-text); }
.h-mobile { margin-top: 64px; display: grid; gap: 34px; align-items: center; padding: 28px; border: 1px solid var(--h-line); background: linear-gradient(120deg, rgba(198, 161, 91, 0.07), transparent 60%), var(--h-ink-2); }
@media (min-width: 1024px) { .h-mobile { grid-template-columns: 1.25fr 1fr; padding: 44px; } }
.h-phone { position: relative; padding: 10px; border-radius: 28px; background: linear-gradient(145deg, #2b241a, #0b0907); box-shadow: 0 0 0 1px rgba(198, 161, 91, 0.35), 0 30px 60px rgba(0, 0, 0, 0.55); }
.h-phone .h-pic { aspect-ratio: 20 / 9; border-radius: 20px; overflow: hidden; }
.h-mobile ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.h-mobile li { padding-left: 18px; border-left: 1px solid rgba(198, 161, 91, 0.45); }
.h-mobile li b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.25rem; color: var(--h-cream); }
.h-mobile li span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--h-text); }

/* Download band */
.h-band { position: relative; isolation: isolate; overflow: hidden; padding-block: 120px; text-align: center; }
.h-band > .h-pic { position: absolute; inset: 0; z-index: -2; }
.h-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(7, 6, 5, 0.55), rgba(7, 6, 5, 0.9) 70%), linear-gradient(0deg, var(--h-ink), transparent 30%, transparent 70%, var(--h-ink)); }
.h-band .h-wrap { display: flex; flex-direction: column; align-items: center; max-width: 46rem; }
.h-band h2 { margin: 14px 0 0; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.05; color: var(--h-cream); }
.h-band p { margin: 16px 0 0; font-size: 15px; line-height: 1.85; color: var(--h-text); }
.h-band .h-soon { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--h-mute); }
.h-band-stores { margin-top: 30px; display: flex; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .h-hero-bg img { animation: none; }
  .h-home img { transition: none !important; }
}
