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

:root {
  --obsidian: #090c10;
  --obsidian-deep: #05070b;
  --obsidian-surface: #121824;
  --obsidian-card: #161e2e;
  --obsidian-card-hover: #1c263a;
  
  --gold: #e5b352;
  --gold-light: #fef08a;
  --gold-glow: rgba(229, 179, 82, 0.35);
  --gold-subtle: rgba(229, 179, 82, 0.12);
  --gold-border: rgba(229, 179, 82, 0.22);
  
  --ice-blue: #38bdf8;
  --ice-glow: rgba(56, 189, 248, 0.3);
  --mystic-purple: #c084fc;
  --shadow-red: #e11d48;
  --emerald: #10b981;
  
  --fg: #f3f4f6;
  --fg-secondary: #d1d5db;
  --muted: #9ca3af;
  --border: rgba(255, 255, 255, 0.08);

  --font-rune: 'Cinzel Decorative', 'Cinzel', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-myth: 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Merriweather', 'Cormorant Garamond', Georgia, serif;

  --toolbar-bg: rgba(9, 12, 16, 0.94);
  --toolbar-border: rgba(229, 179, 82, 0.18);
  --toolbar-fg: #f3f4f6;
  --toolbar-muted: #9ca3af;
  --toolbar-accent: #e5b352;
  --toolbar-badge-bg: linear-gradient(135deg, #e5b352, #b8860b);
  --toolbar-badge-fg: #090c10;
  --toolbar-hover-bg: rgba(229, 179, 82, 0.08);
  --toolbar-active-bg: rgba(229, 179, 82, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--obsidian);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(229, 179, 82, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(56, 189, 248, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(192, 132, 252, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
}

/* ── Typography & Links ── */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 8px var(--gold-glow);
}

/* ── Header ── */
header {
  padding: 1.15rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 46px;
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  transition: border-color 0.3s ease;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(229, 179, 82, 0.2), rgba(19, 24, 34, 0.9));
  border: 1px solid var(--gold-border);
  box-shadow: 0 0 15px rgba(229, 179, 82, 0.2);
}

.brand-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo span {
  color: var(--gold);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--gold);
  text-shadow: none;
}

.btn {
  background: linear-gradient(135deg, #e5b352 0%, #ca8a04 100%);
  color: #090c10 !important;
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--gold-light);
  box-shadow: 0 4px 18px rgba(229, 179, 82, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(229, 179, 82, 0.45);
  background: linear-gradient(135deg, #fef08a 0%, #e5b352 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg) !important;
  padding: 0.55rem 1.3rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--gold-border);
  color: var(--gold) !important;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5.5rem 2.5rem 5rem;
  position: relative;
}

.hero::before {
  content: "ᚠ ᚢ ᚦ ᚨ ᚱ ᚲ ᚷ ᚹ ᚺ ᚾ ᛁ ᛃ ᛇ ᛈ ᛉ ᛋ ᛏ ᛒ ᛖ ᛗ ᛚ ᛜ ᛞ ᛟ";
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-rune);
  font-size: 1.2rem;
  letter-spacing: 0.8rem;
  color: rgba(229, 179, 82, 0.08);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 179, 82, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.35rem;
  color: #ffffff;
}

.hero h1 span {
  background: linear-gradient(135deg, #fef08a 10%, #e5b352 60%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--font-myth);
}

.hero p {
  font-size: 1.125rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin-bottom: 2.2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #11141d;
  color: white !important;
  padding: 0.65rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.app-badge:hover {
  background: #181f2c;
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 179, 82, 0.2);
}

.app-badge svg {
  width: 24px;
  height: 24px;
  fill: white;
  flex-shrink: 0;
}

.app-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.app-badge-text small {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-badge-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.metric-lbl {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ── Phone mockups ── */
.hero-phones {
  display: flex;
  justify-content: center;
  position: relative;
  height: 500px;
}

.phone-wrap {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-wrap:nth-child(1) {
  transform: rotate(-9deg) translateX(-76px);
  z-index: 1;
  top: 35px;
}

.phone-wrap:nth-child(2) {
  transform: rotate(0deg);
  z-index: 3;
  top: 0;
}

.phone-wrap:nth-child(3) {
  transform: rotate(9deg) translateX(76px);
  z-index: 2;
  top: 35px;
}

.hero-phones:hover .phone-wrap:nth-child(1) {
  transform: rotate(-12deg) translateX(-95px) scale(0.98);
}

.hero-phones:hover .phone-wrap:nth-child(2) {
  transform: translateY(-8px) scale(1.02);
}

.hero-phones:hover .phone-wrap:nth-child(3) {
  transform: rotate(12deg) translateX(95px) scale(0.98);
}

.phone {
  width: 178px;
  height: 386px;
  border: 7px solid #232734;
  border-radius: 38px;
  overflow: hidden;
  background: #090c10;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(229, 179, 82, 0.12);
  flex-shrink: 0;
  position: relative;
}

.phone::after {
  display: none;
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #090c10;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Section Label ── */
.section-label {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '—';
  margin: 0 0.75rem;
  opacity: 0.5;
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3.5rem;
}

/* ── Features List ── */
.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4.5rem;
}

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

.feature.rev .fp {
  order: 2;
}

.feature.rev .ft {
  order: 1;
}

.fp {
  display: flex;
  justify-content: center;
}

.fp .phone {
  width: 220px;
  height: 478px;
  border-width: 8px;
  border-radius: 42px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 30px rgba(229, 179, 82, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fp .phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 45px rgba(229, 179, 82, 0.25);
}

.ft h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #ffffff;
}

.ft > p {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.flist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.flist li {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.5;
  padding-left: 1.6rem;
  position: relative;
}

.flist li::before {
  content: 'ᚲ';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-rune);
  color: var(--gold);
  font-size: 1rem;
}

/* ── Interactive Live Cast Section (Screenshots 1 & 3) ── */
.live-cast-section {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.altar-experience-card {
  background: radial-gradient(circle at 50% 0%, #151c2c 0%, #0c101a 70%, #06080d 100%);
  border: 1px solid rgba(229, 179, 82, 0.3);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(229, 179, 82, 0.1), inset 0 1px 0 rgba(229, 179, 82, 0.35);
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
}

/* ── Ritual Stage View (Screenshot 3) ── */
.altar-stage-view {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

.ritual-stage {
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem 2rem;
  overflow: hidden;
}

/* Cosmos background with starry depth */
.stage-cosmos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 80px, #fef08a, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 220px 140px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 40px, #38bdf8, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 450px 180px, #fef08a, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 580px 70px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 700px 130px, #e5b352, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 840px 90px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 960px 170px, #38bdf8, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 1000px 300px;
  opacity: 0.85;
}

.stage-cosmos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(229, 179, 82, 0.15) 0%, rgba(192, 132, 252, 0.05) 40%, transparent 75%);
}

/* Pouch Assembly */
.ritual-pouch-assembly {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
  margin-top: 0.5rem;
}

.pouch-halo {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(229, 179, 82, 0.28) 0%, rgba(245, 158, 11, 0.1) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pouchBreathe 4s ease-in-out infinite alternate;
}

@keyframes pouchBreathe {
  0% { transform: translateX(-50%) scale(0.92); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.08); opacity: 0.95; }
}

.ritual-pouch-img {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(229, 179, 82, 0.45);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(229, 179, 82, 0.35);
  transition: transform 0.4s ease;
}

.ritual-pouch-assembly:hover .ritual-pouch-img {
  transform: translateY(-4px) scale(1.02);
}

/* Radiant celestial beam flowing from pouch */
.pouch-light-beam {
  position: absolute;
  top: 145px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 230px;
  background: linear-gradient(180deg, 
    rgba(254, 240, 138, 0.45) 0%, 
    rgba(229, 179, 82, 0.25) 35%, 
    rgba(229, 179, 82, 0.08) 75%, 
    transparent 100%);
  clip-path: polygon(32% 0%, 68% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 6;
  opacity: 0.85;
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.pouch-light-beam.casting-pulse {
  animation: beamFlash 0.8s ease-in-out infinite alternate;
}

@keyframes beamFlash {
  0% { opacity: 0.7; filter: brightness(1); }
  100% { opacity: 1; filter: brightness(1.4); }
}

/* Floating golden ember particles */
.ember-particles {
  position: absolute;
  top: 150px;
  width: 220px;
  height: 160px;
  pointer-events: none;
  z-index: 7;
}

.ember-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fef08a;
  border-radius: 50%;
  box-shadow: 0 0 8px #e5b352, 0 0 14px rgba(245, 158, 11, 0.9);
  animation: emberFall 2.4s linear infinite;
}

@keyframes emberFall {
  0% { transform: translateY(0) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 0.8; }
  100% { transform: translateY(140px) translateX(var(--drift, 10px)) scale(1.2); opacity: 0; }
}

/* Tumbling Staves Chamber (in mid-air between pouch and altar) */
.tumbling-staves-chamber {
  position: absolute;
  top: 175px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  z-index: 10;
  pointer-events: none;
}

.tumbling-stave {
  width: 58px;
  height: 76px;
  background: radial-gradient(circle at 35% 25%, #3e4758, #1a202c);
  border: 1.5px solid rgba(229, 179, 82, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 18px rgba(229, 179, 82, 0.4);
  animation: tumbleFloat 1.8s ease-in-out infinite alternate;
}

.tumbling-stave:nth-child(2) {
  animation-delay: -0.6s;
  transform: translateY(12px) rotate(-6deg);
}

.tumbling-stave:nth-child(3) {
  animation-delay: -1.2s;
  transform: translateY(6px) rotate(8deg);
}

@keyframes tumbleFloat {
  0% { transform: translateY(-4px) rotate(-3deg); }
  100% { transform: translateY(8px) rotate(4deg); }
}

.tumbling-stave-glyph {
  font-family: var(--font-rune);
  font-size: 2.2rem;
  color: #ffd166;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}

/* Royal Purple Velvet Altar Cloth (Screenshot 3) */
.velvet-altar-cloth {
  position: relative;
  width: 90%;
  max-width: 640px;
  margin-top: 5.5rem;
  background: radial-gradient(ellipse at 50% 30%, #3e1258 0%, #250937 60%, #150420 100%);
  border: 2px solid rgba(229, 179, 82, 0.45);
  border-radius: 20px;
  padding: 1.5rem 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), inset 0 0 35px rgba(192, 132, 252, 0.15), 0 0 30px rgba(229, 179, 82, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}

.cloth-border-runes {
  font-family: var(--font-rune);
  font-size: 0.95rem;
  letter-spacing: 0.6em;
  color: rgba(229, 179, 82, 0.7);
  text-shadow: 0 0 8px rgba(229, 179, 82, 0.4);
  text-align: center;
  margin-bottom: 0.75rem;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.cloth-center-vegvisir {
  width: 80px;
  height: 80px;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(229, 179, 82, 0.5));
}

.altar-vegvisir-svg {
  width: 100%;
  height: 100%;
}

.cloth-fringe {
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(229, 179, 82, 0.5), transparent);
  margin-top: 0.75rem;
}

/* ── Floating Action Panel (Screenshot 3) ── */
.altar-floating-panel {
  background: rgba(14, 18, 27, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(229, 179, 82, 0.25);
  padding: 1.25rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  z-index: 20;
}

.panel-handle-bar {
  width: 48px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.action-buttons-row {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  max-width: 540px;
  justify-content: center;
}

/* Primary Cast Runes button */
.btn-cast-action {
  flex: 1;
  background: rgba(229, 179, 82, 0.1);
  border: 1.8px solid var(--gold);
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(229, 179, 82, 0.25), inset 0 0 10px rgba(229, 179, 82, 0.15);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cast-action:hover {
  background: rgba(229, 179, 82, 0.22);
  box-shadow: 0 0 30px rgba(229, 179, 82, 0.45);
  transform: translateY(-2px);
}

.btn-cast-action.pulse-glow {
  animation: goldPulse 2.5s infinite;
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(229, 179, 82, 0.25); }
  50% { box-shadow: 0 0 28px rgba(229, 179, 82, 0.5); }
}

/* Manual Altar Select button */
.btn-manual-action {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1.2px solid rgba(229, 179, 82, 0.35);
  border-radius: 100px;
  padding: 0.9rem 1.5rem;
  color: var(--fg-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-manual-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* Spread Selector Pill (Screenshot 3) */
.spread-selector-pill {
  width: 100%;
  max-width: 540px;
  background: rgba(20, 26, 38, 0.85);
  border: 1px solid rgba(229, 179, 82, 0.28);
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.spread-selector-pill:hover {
  border-color: var(--gold);
  background: rgba(25, 33, 48, 0.95);
  box-shadow: 0 6px 20px rgba(229, 179, 82, 0.2);
}

.triquetra-icon {
  color: var(--gold);
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(229, 179, 82, 0.5));
}

.spread-pill-label {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

.spread-options-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.spread-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.spread-opt-btn:hover {
  color: #fff;
  border-color: rgba(229, 179, 82, 0.4);
}

.spread-opt-btn.active {
  background: rgba(229, 179, 82, 0.18);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Manual Selection Drawer (Screenshot 3) ── */
.altar-manual-view {
  padding: 2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #0d121c;
}

.manual-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.manual-title-row h4 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold);
}

.btn-close-manual {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.manual-subtext {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  margin-top: 0.25rem;
}

.manual-shelf-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  min-height: 110px;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 1px dashed rgba(229, 179, 82, 0.3);
  align-items: center;
  flex-wrap: wrap;
}

.manual-shelf-stave {
  width: 72px;
  height: 94px;
  background: radial-gradient(circle at 35% 25%, #3e4758, #1a202c);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
  transition: transform 0.2s ease;
}

.manual-shelf-stave:hover {
  transform: scale(1.05);
}

.manual-shelf-stave.flipped {
  transform: rotate(180deg);
}

.manual-shelf-stave .m-glyph {
  font-family: var(--font-rune);
  font-size: 2rem;
  color: #ffd166;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.7);
}

.manual-shelf-stave .m-orient {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
}

.manual-shelf-stave.flipped .m-orient {
  color: var(--shadow-red);
}

.manual-action-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-consecrate-manual {
  background: var(--gold);
  color: #000;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(229, 179, 82, 0.4);
  transition: all 0.25s ease;
}

.btn-consecrate-manual.disabled,
.btn-consecrate-manual:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.manual-staves-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding: 0.5rem;
}

.picker-stave-btn {
  background: rgba(25, 32, 46, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.picker-stave-btn:hover {
  border-color: var(--gold);
  background: rgba(35, 45, 65, 0.9);
}

.picker-stave-btn.selected {
  border-color: var(--gold);
  background: rgba(229, 179, 82, 0.15);
  box-shadow: 0 0 12px rgba(229, 179, 82, 0.3);
}

.picker-stave-btn .p-glyph {
  font-family: var(--font-rune);
  font-size: 1.8rem;
  color: var(--gold-light);
}

.picker-stave-btn .p-name {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* ── Divination Results / The Loom of Fate (Screenshot 1) ── */
.altar-results-view {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 2rem 2.5rem;
  position: relative;
  background: radial-gradient(circle at 50% 20%, #171f2f 0%, #0d121c 70%, #080a10 100%);
}

/* Top Nav Bar (Screenshot 1) */
.results-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 1rem;
}

.results-back-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.results-back-btn:hover {
  background: rgba(229, 179, 82, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

.results-nav-title {
  text-align: center;
}

.results-nav-title h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.results-nav-title .res-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: #e5b352;
  display: block;
  margin-top: 2px;
}

.results-share-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.results-share-btn:hover {
  background: rgba(229, 179, 82, 0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* Staves on Gold Shelf (Screenshot 1) */
.results-staves-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
}

.results-staves-shelf {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;
  padding-bottom: 1.25rem;
}

.stave-stone-slab {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-width: 90px;
}

.stave-stone-slab:hover {
  transform: translateY(-4px);
}

/* Realistic stone tablet */
.slab-stone {
  width: 92px;
  height: 122px;
  background: radial-gradient(130% 120% at 30% 25%, #475267 0%, #29303e 60%, #1a1e28 100%);
  border: 1.5px solid rgba(229, 179, 82, 0.35);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.18),
    inset 0 -2px 6px rgba(0, 0, 0, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(229, 179, 82, 0.25);
  margin-bottom: 0.75rem;
  transition: all 0.3s ease;
}

.slab-stone.flipped {
  transform: rotate(180deg);
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.15),
    inset 0 -2px 6px rgba(0, 0, 0, 0.8),
    0 12px 28px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(225, 29, 72, 0.25);
}

.slab-stone::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 40%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.slab-glyph {
  font-family: var(--font-rune);
  font-size: 3.5rem;
  color: #ffe082;
  text-shadow: 
    0 0 12px rgba(245, 158, 11, 0.9),
    0 0 24px rgba(234, 88, 12, 0.6),
    0 0 36px rgba(229, 179, 82, 0.4);
  z-index: 2;
}

.slab-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.slab-meaning {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #e5b352;
}

.slab-orient {
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Thin Gold Horizontal Shelf Line (Screenshot 1) */
.golden-shelf-line {
  width: 90%;
  max-width: 680px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #e5b352 20%, #fef08a 50%, #e5b352 80%, transparent 100%);
  box-shadow: 0 0 12px rgba(229, 179, 82, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

/* Results Carousel Slides */
.results-carousel-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  min-height: 380px;
}

.carousel-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.carousel-slide.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dedicated Vegvisir Talisman Card (Screenshot 1) */
.talisman-card-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.talisman-card {
  width: 154px;
  height: 196px;
  border-radius: 18px;
  border: 1.5px solid rgba(229, 179, 82, 0.4);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(229, 179, 82, 0.25);
  background: #101520;
}

.talisman-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.talisman-glow-halo {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(229, 179, 82, 0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Ornamental Divider (Screenshot 1) */
.ornamental-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 80%;
  max-width: 440px;
  margin-bottom: 1.5rem;
}

.div-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 179, 82, 0.4), transparent);
}

.div-flourish {
  color: #e5b352;
  font-size: 0.95rem;
  text-shadow: 0 0 8px rgba(229, 179, 82, 0.5);
}

/* The Loom of Fate Narrative Typography (Screenshot 1: Merriweather 24pt, Garamond 16pt #E0DBCF) */
.loom-synthesis-body {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 600px;
}

.loom-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.loom-narrative {
  font-family: 'Cormorant Garamond', Garamond, Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #E0DBCF;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Slide 2: Harmony & Bindrune */
.harmony-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(14, 19, 29, 0.85);
  border: 1px solid rgba(229, 179, 82, 0.2);
  border-radius: 20px;
}

.bindrune-archetype-box {
  text-align: center;
  padding: 1rem;
  background: rgba(229, 179, 82, 0.06);
  border-radius: 14px;
}

.bindrune-badge {
  font-family: var(--font-rune);
  font-size: 2.2rem;
  color: var(--gold-light);
  letter-spacing: 0.3em;
  text-shadow: 0 0 14px var(--gold-glow);
  margin-bottom: 0.4rem;
}

.bindrune-title {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.bindrune-desc {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.harmony-subhead {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.elemental-chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.elem-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.82rem;
  color: #fff;
}

.elemental-summary {
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.counsel-quote {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  font-family: var(--font-myth);
  font-size: 1.2rem;
  font-style: italic;
  color: #fef08a;
  line-height: 1.65;
}

/* Slide 3: Discernment Cards Grid */
.discernment-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.discernment-card {
  background: rgba(14, 19, 29, 0.85);
  border: 1px solid rgba(229, 179, 82, 0.2);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discernment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.disc-rune-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.disc-glyph {
  font-family: var(--font-rune);
  font-size: 1.8rem;
  color: var(--gold-light);
}

.disc-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
}

.disc-pos {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
}

.disc-orient-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
}

.disc-text {
  font-size: 0.92rem;
  color: var(--fg-secondary);
  line-height: 1.6;
}

/* Pagination Dots (Screenshot 1) */
.carousel-dots-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dot-btn.active {
  background: #ffffff;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.results-actions-bar {
  display: flex;
  justify-content: center;
}

.btn-cast-anew {
  background: rgba(229, 179, 82, 0.15);
  border: 1.5px solid var(--gold);
  color: #fff;
  font-family: var(--font-heading);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(229, 179, 82, 0.2);
  transition: all 0.25s ease;
}

.btn-cast-anew:hover {
  background: rgba(229, 179, 82, 0.3);
  box-shadow: 0 0 30px rgba(229, 179, 82, 0.45);
  transform: translateY(-2px);
}

/* ── Interactive Codex Section (Screenshot 2) ── */
.codex-section {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

/* Codex Header Bar (Screenshot 2) */
.codex-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.codex-main-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #e5b352;
  letter-spacing: -0.01em;
}

.codex-header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.codex-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(229, 179, 82, 0.25);
  border-radius: 100px;
  padding: 0.3rem 0.75rem;
  transition: all 0.25s ease;
}

.codex-search-wrap:focus-within {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(229, 179, 82, 0.2);
}

.tool-btn {
  background: none;
  border: none;
  color: #e5b352;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.codex-search-input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  padding: 0.25rem 0.5rem;
  width: 180px;
  transition: width 0.3s ease;
}

.codex-search-input::placeholder {
  color: var(--muted);
}

@media (min-width: 768px) {
  .codex-search-input:focus {
    width: 260px;
  }
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Segmented Control Bar (Screenshot 2) */
.codex-segmented-bar {
  display: flex;
  background: #141a27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 2.25rem;
  gap: 2px;
  overflow-x: auto;
}

.codex-seg-tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.codex-seg-tab.active {
  background: #2a3447;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* 3-Column Stone Grid (Screenshot 2) */
.codex-stone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 650px) {
  .codex-stone-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}

@media (min-width: 1024px) {
  .codex-stone-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 880px;
    margin: 0 auto;
    gap: 1.5rem;
  }
}

/* Realistic Slate Stone Slab Card (Screenshot 2) */
.codex-stone-card {
  background: radial-gradient(130% 120% at 30% 20%, #3e485c 0%, #242c3b 55%, #151a24 100%);
  border: 1.5px solid rgba(229, 179, 82, 0.25);
  border-radius: 20px;
  padding: 1.5rem 1rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  box-shadow: 
    inset 0 2px 3px rgba(255, 255, 255, 0.15),
    inset 0 -2px 5px rgba(0, 0, 0, 0.7),
    0 10px 25px rgba(0, 0, 0, 0.55),
    0 0 15px rgba(229, 179, 82, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.codex-stone-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 45%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.codex-stone-card:hover {
  transform: translateY(-5px);
  border-color: rgba(229, 179, 82, 0.55);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -2px 6px rgba(0, 0, 0, 0.8),
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 30px rgba(229, 179, 82, 0.25);
}

.codex-stone-card .stone-glyph {
  font-family: var(--font-rune);
  font-size: 3.4rem;
  line-height: 1.1;
  color: #ffe082;
  text-shadow: 
    0 0 10px rgba(245, 158, 11, 0.85),
    0 0 22px rgba(234, 88, 12, 0.5);
  margin-bottom: 0.6rem;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.codex-stone-card:hover .stone-glyph {
  transform: scale(1.06);
  text-shadow: 
    0 0 14px rgba(245, 158, 11, 1),
    0 0 28px rgba(234, 88, 12, 0.7),
    0 0 40px rgba(229, 179, 82, 0.5);
}

.codex-stone-card .stone-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

/* Elemental Pill Badges (Screenshot 2) */
.codex-stone-card .stone-elem-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.15rem 0.65rem;
  border-radius: 100px;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

/* Distinct elemental colors */
.elem-fire {
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(234, 88, 12, 0.45);
  color: #fb923c;
}

.elem-earth {
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
}

.elem-air {
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.elem-water {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: #60a5fa;
}

.elem-ice {
  background: rgba(147, 197, 253, 0.2);
  border: 1px solid rgba(147, 197, 253, 0.45);
  color: #93c5fd;
}

.elem-void {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #c084fc;
}

.codex-stone-card .stone-meaning {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", var(--font-body);
  font-size: 0.88rem;
  color: #e5b352;
  font-weight: 500;
}

@media (max-width: 650px) {
  .codex-stone-card {
    padding: 1rem 0.5rem 0.9rem;
    border-radius: 14px;
  }
  .codex-stone-card .stone-glyph {
    font-size: 2.5rem;
  }
  .codex-stone-card .stone-name {
    font-size: 0.85rem;
  }
  .codex-stone-card .stone-elem-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
  }
  .codex-stone-card .stone-meaning {
    font-size: 0.72rem;
  }
}

/* Toast notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(22, 28, 42, 0.95);
  border: 1.5px solid var(--gold);
  border-radius: 100px;
  padding: 0.75rem 1.6rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 179, 82, 0.35);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast-notice.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Specifications Table ── */
.specs-section {
  max-width: 900px;
  margin: 0 auto 6rem;
  padding: 0 2.5rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--obsidian-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: 35%;
}

.specs-table td {
  color: var(--fg);
  font-size: 0.95rem;
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* ── Contact ── */
.contact {
  text-align: center;
  padding: 4rem 2rem 5rem;
  border-top: 1px solid var(--border);
  background: rgba(9, 12, 16, 0.5);
}

.contact h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.contact a {
  font-size: 1.15rem;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--obsidian-deep);
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold);
}

/* ── Modal for Rune Detail ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1.5rem;
}

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

.modal-card {
  background: #141a27;
  border: 1px solid var(--gold-border);
  border-radius: 22px;
  max-width: 500px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 179, 82, 0.15);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ── App Screenshots Gallery Section ── */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

.gallery-subhead {
  text-align: center;
  max-width: 680px;
  margin: -2.5rem auto 2.5rem;
  color: var(--fg-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.gallery-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.75rem;
}

.gallery-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1.15rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.gallery-tab-btn:hover {
  color: var(--fg);
  border-color: rgba(229, 179, 82, 0.3);
  background: rgba(229, 179, 82, 0.06);
}

.gallery-tab-btn.active {
  background: linear-gradient(135deg, rgba(229, 179, 82, 0.2), rgba(18, 24, 36, 0.8));
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 15px rgba(229, 179, 82, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background: var(--obsidian-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(229, 179, 82, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(229, 179, 82, 0.15);
}

.gallery-card:hover::before {
  opacity: 1;
}

.gallery-phone-thumb {
  width: 160px;
  height: 348px;
  border: 6px solid #232734;
  border-radius: 34px;
  overflow: hidden;
  background: #090c10;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-phone-thumb {
  transform: scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 179, 82, 0.2);
}

.gallery-phone-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-card-info {
  width: 100%;
  text-align: center;
}

.gallery-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(229, 179, 82, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.gallery-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Screenshot Lightbox Modal ── */
.screenshot-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 11, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1.5rem;
}

.screenshot-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.screenshot-modal-card {
  background: var(--obsidian-card);
  border: 1px solid var(--gold-border);
  border-radius: 28px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(229, 179, 82, 0.2);
  align-items: center;
  overflow-y: auto;
}

.modal-phone-view {
  width: 240px;
  height: 522px;
  border: 9px solid #232734;
  border-radius: 46px;
  overflow: hidden;
  background: #090c10;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(229, 179, 82, 0.25);
  flex-shrink: 0;
}

.modal-phone-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-screen-details {
  display: flex;
  flex-direction: column;
}

.modal-screen-category {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.modal-screen-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-screen-desc {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.modal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.modal-specs-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-specs-list strong {
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .screenshot-modal-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .modal-screen-details {
    align-items: center;
  }
  .modal-phone-view {
    width: 190px;
    height: 413px;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 3.5rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .feature,
  .feature.rev {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .feature.rev .fp {
    order: 1;
  }

  .feature.rev .ft {
    order: 2;
  }

  .flist li {
    text-align: left;
  }

  nav {
    display: none;
  }
}
