/* ══════════════════════════════════════════════════════════════
   ShelfBridge — Source Builder
   Premium dark library aesthetic. Deep ink, warm gold, echo rings.
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg-deep:       #07050a;
  --bg:            #0d0b10;
  --bg-panel:      #13101a;
  --bg-surface:    rgba(16, 12, 20, 0.92);
  --bg-surface-hi: rgba(24, 20, 32, 0.97);

  --border:        rgba(212, 175, 55, 0.10);
  --border-bright: rgba(212, 175, 55, 0.40);

  --gold:          #c9a227;
  --gold-bright:   #f0d060;
  --gold-hover:    #f9e596;
  --gold-dim:      #6b5010;

  --text:          #ede8f5;
  --text-dim:      #b4aabb;
  --text-white:    #ffffff;

  --step-inactive: rgba(255, 255, 255, 0.04);
  --radius-card:   14px;
  --radius-sm:     10px;
  --space-card:    24px;
  --shadow-glow:   0 0 40px rgba(180, 130, 0, 0.07), 0 20px 60px rgba(0, 0, 0, 0.7);
  --glass-blur:    blur(24px);
  --transition:    220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 0%,    rgba(180, 130, 20, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%,   rgba(120,  80, 10, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 75%,   rgba(100,  60,  0, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 100% 40% at 50% 100%,  rgba(160, 100, 10, 0.08) 0%, transparent 70%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.quill-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 99999;
  width: 34px;
  height: 34px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-80px, -80px, 0) rotate(-22deg) translate(-17%, -92%);
  transform-origin: 0 0;
  transition: opacity 160ms ease;
  color: var(--gold-hover);
  filter:
    drop-shadow(0 0 7px rgba(240,208,96,0.55))
    drop-shadow(0 8px 14px rgba(0,0,0,0.55));
}
.quill-cursor.is-visible { opacity: 0.92; }
.quill-cursor svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ink-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 99997;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.92;
}

@media (pointer: fine) and (min-width: 801px) {
  body.quill-active,
  body.quill-active * {
    cursor: none !important;
  }
}

em, i { font-family: 'Newsreader', serif; font-style: italic; }
::selection { background: rgba(180, 130, 20, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.pick-card:has(input:focus-visible) .pick-inner { outline: 2px solid var(--gold); outline-offset: 4px; }
.step-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(180, 130, 20, 0.22); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(180, 130, 20, 0.44); }

/* ── Ambient Glows ── */
.glow {
  position: fixed; border-radius: 44% 56% 60% 40%;
  filter: blur(90px); z-index: 0; pointer-events: none;
  mix-blend-mode: screen;
  animation: floatGlow 20s ease-in-out infinite alternate, breathGlow 9s ease-in-out infinite;
}
.glow-tl {
  width: min(700px, 88vw); height: min(500px, 70vw);
  background: conic-gradient(from 120deg, rgba(180,130,20,0.09), rgba(255,255,255,0.015), rgba(100,70,0,0.06), rgba(180,130,20,0.09));
  top: -200px; left: -200px;
}
.glow-br {
  width: min(800px, 86vw); height: min(600px, 76vw);
  background: conic-gradient(from 260deg, rgba(120,80,0,0.07), rgba(180,130,20,0.07), rgba(255,255,255,0.012), rgba(120,80,0,0.07));
  bottom: -220px; right: -160px; animation-delay: -7s;
}
.glow-center {
  width: 140vw; height: 140vh;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(120, 85, 10, 0.13) 0%,
    rgba(90,  60,  5, 0.05) 35%,
    transparent 65%);
  animation: breathCenter 16s ease-in-out infinite alternate;
}

/* ── Library Dust (floating ink motes) ── */
.library-dust { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dust-mote {
  position: absolute; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle, #f0d060, rgba(180, 130, 20, 0));
  box-shadow: 0 0 14px 3px rgba(180, 130, 20, 0.18);
  filter: blur(0.8px);
  opacity: 0;
  animation: inkDustRise var(--rise, 22s) ease-in-out infinite;
}
.dust-mote.d1 { left: 9%;  width: 5px;  height: 5px;  --rise: 24s; animation-delay: 1s;  }
.dust-mote.d2 { left: 26%; width: 3px;  height: 3px;  --rise: 20s; animation-delay: 5s;  }
.dust-mote.d3 { left: 44%; width: 7px;  height: 7px;  --rise: 28s; animation-delay: 2s;  }
.dust-mote.d4 { left: 64%; width: 4px;  height: 4px;  --rise: 22s; animation-delay: 9s;  }
.dust-mote.d5 { left: 81%; width: 5px;  height: 5px;  --rise: 26s; animation-delay: 4s;  }
.dust-mote.d6 { left: 55%; width: 3px;  height: 3px;  --rise: 18s; animation-delay: 12s; }

/* ── Echo Rings ── */
.echo-rings { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.echo-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(180, 130, 20, 0.12);
  box-shadow: 0 0 20px rgba(180, 130, 20, 0.04);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.05);
  opacity: 0;
  animation: ringEcho var(--t, 15s) cubic-bezier(0.08, 0.4, 0.9, 0.1) infinite;
}
.echo-ring.r1 { width: 600px; height: 600px; --t: 16s; animation-delay: 0s;    }
.echo-ring.r2 { width: 600px; height: 600px; --t: 16s; animation-delay: 5.3s;  }
.echo-ring.r3 { width: 600px; height: 600px; --t: 16s; animation-delay: 10.6s; }

/* ── Click Ink Splat ── */
.ink-splat {
  position: fixed; pointer-events: none; z-index: 99998;
  border-radius: 50%;
  width: var(--splat-size, 72px);
  height: var(--splat-size, 72px);
  background:
    radial-gradient(circle at 48% 48%, rgba(255, 246, 184, 0.72) 0 8%, rgba(240, 208, 96, 0.48) 18%, rgba(180, 130, 20, 0.0) 68%),
    radial-gradient(circle at 28% 32%, rgba(240, 208, 96, 0.42) 0 7%, transparent 25%),
    radial-gradient(circle at 72% 38%, rgba(240, 208, 96, 0.30) 0 6%, transparent 23%);
  filter: drop-shadow(0 0 14px rgba(240,208,96,0.38));
  transform: translate(-50%, -50%) scale(0);
  animation: inkSplat 0.66s cubic-bezier(0.2, 0.8, 0.4, 1) forwards;
}
.ink-splat.is-small {
  --splat-size: 22px;
  animation-duration: 0.5s;
}
@keyframes inkSplat {
  0%   { transform: translate(-50%,-50%) scale(0);   opacity: 1; }
  40%  { transform: translate(-50%,-50%) scale(1.4); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

/* ── Animations ── */
@keyframes inkDustRise {
  0%   { opacity: 0; transform: translateY(0)     translateX(0)   scale(0.7); }
  18%  { opacity: 0.7; }
  50%  { opacity: 0.9; transform: translateY(-45vh) translateX(20px) scale(1.1); }
  82%  { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-105vh) translateX(-10px) scale(0.5); }
}
@keyframes ringEcho {
  0%   { transform: translate(-50%,-50%) scale(0.05); opacity: 0;   border-width: 3px; }
  15%  { opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.6);  opacity: 0;   border-width: 1px; }
}
@keyframes floatGlow {
  0%   { transform: translateY(0)    scale(1)    rotate(0deg);   }
  50%  { transform: translateY(28px) scale(1.07) rotate(4deg);   }
  100% { transform: translateY(0)    scale(1)    rotate(-2deg);  }
}
@keyframes breathGlow {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1;    }
}
@keyframes breathCenter {
  0%   { opacity: 0.5; transform: translate(-50%, -50%) scale(1);   }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.25); }
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes stepFadeIn { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes loadLine { from { width: 0; } to { width: 100%; } }
@keyframes activeStepPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(180,130,20,0.10), 0 0 20px rgba(180,130,20,0.40); }
  50%       { box-shadow: 0 0 0 9px rgba(180,130,20,0.05), 0 0 34px rgba(180,130,20,0.55); }
}
@keyframes gemPulse {
  from { filter: drop-shadow(0 0 4px rgba(180,130,20,0.55)); opacity: 0.7; }
  to   { filter: drop-shadow(0 0 14px rgba(240,208,96,0.95)); opacity: 1;  }
}
@keyframes inkDropFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-7px) scale(0.95); }
}
@keyframes inkRipple {
  0%   { transform: scale(0.15) translate(-50%,-50%); opacity: 0;   stroke-width: 5; }
  20%  { opacity: 0.9; }
  100% { transform: scale(1.6) translate(-30.5%, -31.25%); opacity: 0; stroke-width: 1; }
}
@keyframes neonCardPulse {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(240,208,96,0.55), 0 0 16px rgba(180,130,20,0.22),
                inset 0 0 12px rgba(180,130,20,0.06);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(240,208,96,0.90), 0 0 36px rgba(180,130,20,0.42),
                inset 0 0 26px rgba(180,130,20,0.16);
  }
}
@keyframes neonSwitchPulse {
  0%,20%,22%,100% { filter: brightness(1); }
  21% { filter: brightness(0.78); }
}
@keyframes edgeTrace {
  from { background-position: 220% 0; }
  to   { background-position: -220% 0; }
}
@keyframes buttonSheen {
  0%, 60%, 100% { transform: translateX(-140%); }
  80%            { transform: translateX(140%); }
}
@keyframes infoPulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 12px rgba(180,130,20,0.35)); }
  50%       { transform: scale(1.14); filter: drop-shadow(0 0 26px rgba(240,208,96,0.95)); }
}
@keyframes svgDropBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
@keyframes flagWave {
  0%   { transform: translate3d(-5%, 2%, 0) rotate(-6deg) skewX(-8deg) scale(1.05); opacity: 0.045; }
  50%  { transform: translate3d(5%, -2%, 0) rotate(5deg) skewX(8deg) scale(1.12); opacity: 0.085; }
  100% { transform: translate3d(-5%, 2%, 0) rotate(-6deg) skewX(-8deg) scale(1.05); opacity: 0.045; }
}

/* ── Site Header ── */
.site-header {
  position: relative; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  min-height: 58px;
  padding: 10px clamp(18px, 3vw, 42px);
  background:
    radial-gradient(circle at 8% 50%, rgba(240,208,96,0.07), transparent 24%),
    rgba(7, 5, 10, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(180, 130, 20, 0.10);
  box-shadow: 0 1px 0 rgba(180,130,20,0.06), 0 8px 32px rgba(0,0,0,0.5);
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Cinzel', 'Newsreader', serif;
  font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.42rem); letter-spacing: 0.06em;
  color: var(--gold-hover);
  filter: drop-shadow(0 2px 12px rgba(180,130,20,0.42));
  text-decoration: none;
}
.logo em {
  background: linear-gradient(to bottom, #fff4b8 0%, #f0d060 36%, #c9a227 68%, #7a5a0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(240,208,96,0.10);
}
.logo-sub {
  font-size: 0.72rem; color: var(--text-dim); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-left: 1px solid rgba(255,255,255,0.08); padding-left: 16px;
}
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  color: var(--gold-hover);
  background:
    radial-gradient(circle at 44% 34%, rgba(255,250,210,0.28), rgba(240,208,96,0.16) 36%, rgba(180,130,20,0.08) 62%, rgba(0,0,0,0.34) 100%);
  border: 1px solid rgba(240,208,96,0.26);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(180,130,20,0.10),
    0 0 24px rgba(240,208,96,0.20),
    inset 0 0 18px rgba(240,208,96,0.08);
  filter: drop-shadow(0 0 10px rgba(240,208,96,0.32));
}
.logo-icon svg {
  width: 29px;
  height: 29px;
  display: block;
  overflow: visible;
  transform: rotate(-16deg);
}
.logo-quill-body {
  fill: #f9e596;
  filter: drop-shadow(0 0 5px rgba(240,208,96,0.56));
}
.logo-quill-cut,
.logo-quill-nib {
  stroke: #4b3508;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-quill-nib {
  fill: #f9e596;
  stroke-width: 1.5;
}

/* ── Main ── */
.main {
  position: relative; z-index: 10;
  width: min(100%, 1280px); margin: 0 auto;
  padding: clamp(10px, 1.4vw, 18px) clamp(16px, 2.4vw, 30px) 96px;
}

/* ── Hero ── */
.hero {
  text-align: center; margin-bottom: 28px;
  animation: fadeDown 0.8s ease backwards;
  user-select: none; -webkit-user-select: none; cursor: default;
}
.hero * { cursor: default; }
.hero a { cursor: pointer !important; }

/* Hero eyebrow */
.hero-eyebrow {
  display: flex; align-items: center;
  justify-content: center; gap: 12px;
  margin-bottom: 12px;
}

/* SVG ink emblems in eyebrow */
.hero-emblem {
  width: clamp(34px, 4.4vw, 54px);
  height: clamp(46px, 6vw, 72px);
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(240,208,96,0.30)) drop-shadow(0 18px 30px rgba(0,0,0,0.55));
  animation: svgDropBob 3.8s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.hero-emblem:last-child { animation-delay: -1.6s; }
.hero-inkdrop-svg {
  width: 22px; height: 44px; flex-shrink: 0; overflow: visible;
  filter: drop-shadow(0 0 8px rgba(240,208,96,0.60)) drop-shadow(0 0 3px rgba(255,255,255,0.25));
  animation: svgDropBob 3.4s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.hero-inkdrop-svg.delay { animation-delay: -1.4s; }

.powered-by {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-hover); font-weight: 800;
  padding: 8px 18px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(180,130,20,0.13), rgba(120,80,0,0.03));
  border: 1px solid rgba(180,130,20,0.28);
  box-shadow: 0 0 20px rgba(180,130,20,0.10), inset 0 0 10px rgba(180,130,20,0.05);
}
.powered-by .sparkle { color: var(--gold); animation: gemPulse 2.4s infinite alternate; }
.powered-by a {
  color: var(--gold-hover); font-weight: 800;
  text-decoration: underline; text-decoration-color: rgba(180,130,20,0.4);
  text-underline-offset: 4px; transition: all var(--transition);
}
.powered-by a:hover { color: #fff; text-shadow: 0 0 10px var(--gold); }

/* Hero H1 */
.hero h1 {
  font-family: 'Cinzel', 'Newsreader', serif;
  font-size: clamp(2.15rem, 5.2vw, 3.85rem);
  font-weight: 900; line-height: 1.0;
  letter-spacing: 0.02em; margin-bottom: 18px;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Ink text (main word) */
.text-parchment {
  background: linear-gradient(180deg, #ffffff 0%, #fff2bc 26%, #e6c85d 64%, #8d6818 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
  filter: drop-shadow(0 5px 22px rgba(0,0,0,0.9)) drop-shadow(0 0 16px rgba(240,208,96,0.10));
}
.text-ink {
  background: linear-gradient(
    180deg,
    #ffffff 0%, #f9e596 20%,
    #d4af37 45%, #8a6b1c 72%,
    #4a3600 100%
  );
  background-size: 100% 200%; background-position: 0% 0%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline; font-weight: 900;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

/* Echo text (italic word — silver moonlight, echo of the gold) */
.text-echo {
  background: linear-gradient(
    160deg,
    #ffffff 0%, #e8e2d8 25%,
    #bfb8a8 55%, #8a8070 80%, #4a443c 100%
  );
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block; font-style: italic; font-weight: 900;
  filter: drop-shadow(0 2px 18px rgba(255,255,255,0.15)) drop-shadow(0 4px 24px rgba(0,0,0,0.8));
}

/* Hero divider */
.hero-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin: 0 auto 18px; max-width: 420px;
}
.hero-divider span:not(.hero-divider-gem) {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(180,130,20,0.5), transparent);
}
.hero-divider-gem {
  color: var(--gold); font-size: 0.95rem;
  filter: drop-shadow(0 0 6px rgba(180,130,20,0.8));
  animation: gemPulse 2.6s ease-in-out infinite alternate;
}

.hero-sub {
  font-size: 1.12rem; color: var(--text-dim);
  width: min(100%, 660px); margin: 0 auto 8px; font-weight: 400; line-height: 1.65;
  overflow-wrap: break-word;
}

/* ── Wizard Card ── */
.wizard-card {
  position: relative; z-index: 10; overflow: hidden;
  background: rgba(10, 8, 13, 0.985);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(180,130,20,0.20);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(180,130,20,0.05), 0 30px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(180,130,20,0.07);
  animation: fadeUp 0.8s ease 0.2s backwards;
}
.wizard-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240,208,96,0.55), rgba(180,130,20,0.30), rgba(240,208,96,0.55), transparent);
  background-size: 220% 100%;
  animation: edgeTrace 5s linear infinite;
}
.wizard-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(180,130,20,0.05), inset 0 80px 120px rgba(255,255,255,0.010);
}

/* ── Step Bar ── */
.step-bar {
  display: flex; align-items: center;
  padding: 28px 48px; border-bottom: 1px solid rgba(180,130,20,0.08);
  background: linear-gradient(180deg, rgba(180,130,20,0.04), transparent);
}
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; cursor: default; }
.step-dot span {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
  background: var(--step-inactive); color: var(--text-dim);
  transition: all var(--transition); border: 1px solid transparent;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.step-dot label {
  font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--text-dim); transition: var(--transition); white-space: nowrap; font-weight: 600;
}
.step-dot.active span {
  background: linear-gradient(145deg, #c9a227, #8a6b1c);
  color: #fff; border-color: rgba(240,208,96,0.30);
  box-shadow: 0 0 0 6px rgba(180,130,20,0.10), 0 0 24px rgba(180,130,20,0.50);
  transform: scale(1.08); animation: activeStepPulse 3s ease-in-out infinite;
}
.step-dot.active label { color: var(--text-white); }
.step-dot.done span {
  background: rgba(180,130,20,0.14); color: var(--gold);
  border-color: rgba(180,130,20,0.28); cursor: pointer;
}
.step-dot.done label { color: var(--text); cursor: pointer; }
.step-line {
  flex: 1; height: 2px; background: rgba(255,255,255,0.04);
  margin: 0 16px 24px; border-radius: 2px; position: relative; overflow: hidden;
}
.step-dot.done + .step-line::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 100%;
  background: linear-gradient(to right, #8a6b1c, #c9a227);
  animation: loadLine 0.6s ease forwards;
}

/* ── Steps ── */
.step { display: none; padding: clamp(24px, 3vw, 36px); position: relative; z-index: 11; overflow: hidden; }
.step.active { display: block; animation: stepFadeIn 0.5s cubic-bezier(0.16,1,0.3,1) forwards; }
.step h2 {
  font-family: 'Cinzel', 'Newsreader', serif; font-size: 1.85rem; font-weight: 700;
  background: linear-gradient(to bottom, #fff8f0 0%, #f5dc7a 52%, #c9a227 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: 0.04em; margin-bottom: 14px; line-height: 1.2;
  text-align: center;
}
.step-sub {
  color: rgba(230,224,236,0.76);
  font-size: 1rem;
  margin: 0 auto 32px;
  max-width: 650px;
  line-height: 1.65;
  text-align: center;
}

/* ── Grids ── */
.card-grid { display: grid; gap: 18px; margin-bottom: 16px; }
.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  width: min(100%, 1120px);
  margin: 0 auto;
  justify-content: center;
}

/* ── Pick Cards ── */
.pick-card {
  cursor: pointer;
  display: block;
  position: relative;
  border-radius: calc(var(--radius-card) + 8px);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.pick-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pick-inner {
  border: 1px solid rgba(180,130,20,0.16); border-radius: var(--radius-card); padding: var(--space-card);
  background: linear-gradient(160deg, rgba(180,130,20,0.07), rgba(10,7,12,0.74));
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  height: 100%; text-align: left; display: flex; flex-direction: column;
  overflow: hidden; position: relative;
  min-width: 0;
}
.pick-inner::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mx, 75%) var(--my, 0%), rgba(240,208,96,0.12), transparent 48%);
  opacity: 0; transition: var(--transition);
}
.pick-inner::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 35%);
  transition: opacity var(--transition);
}
.pick-card:hover .pick-inner {
  border-color: rgba(180,130,20,0.26);
  background: linear-gradient(160deg, rgba(180,130,20,0.09), rgba(0,0,0,0.30));
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(180,130,20,0.18), 0 14px 38px rgba(0,0,0,0.35), inset 0 0 20px rgba(180,130,20,0.05);
}
.pick-card:hover .pick-inner::before { opacity: 1; }
.pick-card:hover .pick-inner::after  { opacity: 1; }
.pick-card input:checked + .pick-inner {
  border-color: rgba(249,229,150,0.92);
  background:
    radial-gradient(circle at 30% 0%, rgba(249,229,150,0.12), transparent 34%),
    linear-gradient(160deg, rgba(180,130,20,0.13), rgba(0,0,0,0.34));
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(249,229,150,0.78),
    0 0 0 7px rgba(180,130,20,0.08),
    0 18px 48px rgba(0,0,0,0.48),
    0 0 42px rgba(180,130,20,0.22),
    inset 0 0 0 1px rgba(255,245,190,0.20),
    inset 0 0 34px rgba(180,130,20,0.10);
}
.pick-card input:checked + .pick-inner::before { opacity: 1; }
.pick-card input:checked + .pick-inner::after  { opacity: 1; }

.content-card,
#step-2 .pick-card {
  padding: clamp(8px, 1vw, 12px);
  border: 1px solid rgba(180,130,20,0.13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 35% 0%, rgba(255,255,255,0.022), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.010), rgba(0,0,0,0.38));
  box-shadow:
    inset 0 0 0 1px rgba(255,245,190,0.018),
    0 18px 48px rgba(0,0,0,0.28);
}
.content-card:has(input:checked),
#step-2 .pick-card:has(input:checked),
.content-card.is-selected,
#step-2 .pick-card.is-selected {
  border-color: rgba(249,229,150,0.78);
  background:
    radial-gradient(circle at 26% 8%, rgba(249,229,150,0.17), transparent 34%),
    linear-gradient(150deg, rgba(180,130,20,0.18), rgba(0,0,0,0.24));
  box-shadow:
    0 0 0 1px rgba(249,229,150,0.72),
    0 0 44px rgba(240,208,96,0.24),
    0 28px 76px rgba(0,0,0,0.50),
    inset 0 0 46px rgba(180,130,20,0.12);
}
.content-card:has(input:checked) .pick-inner,
#step-2 .pick-card:has(input:checked) .pick-inner,
.content-card.is-selected .pick-inner,
#step-2 .pick-card.is-selected .pick-inner {
  transform: none;
  border-color: rgba(249,229,150,0.84);
  box-shadow:
    0 0 0 1px rgba(249,229,150,0.42),
    inset 0 0 0 1px rgba(255,245,190,0.16),
    inset 0 0 34px rgba(180,130,20,0.12);
}

.pick-icon {
  font-size: 2rem; display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: rgba(180, 130, 20, 0.10); border: 1px solid rgba(180, 130, 20, 0.18);
  color: var(--gold-bright);
  transition: transform var(--transition), filter var(--transition), background var(--transition);
  flex-shrink: 0;
}
.pick-icon svg { width: 26px; height: 26px; display: block; }
.card-symbol svg {
  width: 58%;
  height: 58%;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbol-book svg,
.symbol-comic svg,
.symbol-bolt svg,
.symbol-rd svg {
  fill: currentColor;
  stroke-width: 0;
}
.symbol-book svg path:nth-child(n+2),
.symbol-comic svg path:nth-child(2),
.symbol-square svg path:nth-child(2) {
  fill: none;
  stroke: rgba(8, 5, 10, 0.72);
  stroke-width: 4;
}
.symbol-square svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
}
.symbol-quill svg {
  width: 64%;
  height: 64%;
  fill: currentColor;
  stroke: rgba(8, 5, 10, 0.72);
  stroke-width: 3;
}
.symbol-quill svg path:nth-child(2) {
  fill: none;
  stroke: rgba(8, 5, 10, 0.82);
}
.symbol-rd {
  color: #e65a70;
}
.symbol-dl svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.symbol-rd svg {
  filter: drop-shadow(0 8px 14px rgba(230, 90, 112, 0.28));
}
.pick-card:hover .pick-icon {
  transform: translateY(-2px);
  background: rgba(180, 130, 20, 0.18);
  filter: drop-shadow(0 6px 16px rgba(180,130,20,0.30));
}
.pick-card input:checked ~ .pick-inner .pick-icon,
.pick-card input:checked + .pick-inner .pick-icon {
  background: rgba(180, 130, 20, 0.22);
  border-color: rgba(240, 208, 96, 0.45);
  color: var(--gold-hover);
  filter: drop-shadow(0 0 12px rgba(240,208,96,0.50));
}
.pick-inner h3 {
  font-family: 'Cinzel', 'Newsreader', serif;
  font-size: 1.05rem; font-weight: 700; color: var(--text-white); margin-bottom: 8px; line-height: 1.2;
}
.pick-inner p { font-size: 0.88rem; color: var(--text-dim); line-height: 1.6; }
.pick-badge {
  display: inline-block; margin-top: auto; padding: 5px 14px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 6px; background: transparent;
  color: var(--gold-bright); border: 1px solid var(--gold-bright);
  align-self: flex-start;
}
.pick-badge.good { background: transparent; color: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(240,208,96,0.15); }

/* Content cards */
.content-card .pick-inner {
  min-height: clamp(235px, 22vw, 290px);
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: clamp(18px, 1.8vw, 24px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 28% 0%, rgba(255,255,255,0.04), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(8,6,10,0.72));
}
.content-card .pick-badge { margin-top: 16px; }
.content-kicker { display: block; color: var(--gold-bright); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.17em; text-transform: uppercase; margin-bottom: 18px; text-align: center; }
.content-card small { color: rgba(230,224,236,0.68); display: block; font-size: 0.72rem; margin-top: 8px; margin-bottom: 10px; }
.content-card .pick-badge.good { margin-top: auto; align-self: center; }
#card-both .pick-badge.good {
  align-self: center;
  margin-top: 18px;
}
.content-card .pick-icon {
  width: clamp(50px, 4.6vw, 60px);
  height: clamp(50px, 4.6vw, 60px);
  border-radius: 15px;
  margin-bottom: 22px;
  font-size: 1.7rem;
}
.content-card .pick-inner h3 {
  font-size: clamp(1.15rem, 1.35vw, 1.45rem);
  line-height: 1.12;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}
.content-card .pick-inner p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(236,230,242,0.70);
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}
#step-2 .card-grid {
  gap: 20px;
  align-items: stretch;
  width: min(100%, 1060px);
  margin-left: auto;
  margin-right: auto;
}
#step-2 .col-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
#step-2 .col-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}
#step-2 .pick-card {
  min-height: clamp(300px, 26vw, 360px);
}
#step-2 .pick-inner {
  min-height: 100%;
  padding: 24px 20px;
  border-radius: 20px;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 28% 0%, rgba(255,255,255,0.04), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(8,6,10,0.72));
}
#step-2 .pick-card input:checked + .pick-inner {
  background:
    radial-gradient(circle at 30% 0%, rgba(249,229,150,0.16), transparent 38%),
    linear-gradient(150deg, rgba(180,130,20,0.18), rgba(12,9,5,0.64) 58%, rgba(0,0,0,0.42));
}
#step-2 .pick-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-size: 1.75rem;
}
#step-2 .pick-inner h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  line-height: 1.18;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
#step-2 .pick-inner p {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(236,230,242,0.70);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
#step-2 .feature-list {
  gap: 14px;
  padding-top: 24px;
  padding-bottom: 18px;
  align-items: center;
  width: 100%;
}
#step-2 .feature-list li {
  font-size: 1.02rem;
  width: fit-content;
  max-width: 100%;
  text-align: center;
  padding-left: 20px;
  padding-right: 4px;
}
#step-2 .pick-badge {
  margin-top: 0;
  align-self: center;
}

/* ── Features ── */
.feature-list { list-style: none; margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 0.84rem; padding-left: 22px; position: relative; color: var(--text-dim); font-weight: 500; }
.feature-list li.yes { color: var(--text); font-weight: 600; }
.feature-list li.no  { color: var(--text-dim); opacity: 0.55; }
.feature-list li::before { position: absolute; left: 0; font-weight: bold; }
.feature-list li.yes::before { content: '✦'; color: var(--gold-bright); font-size: 0.65rem; top: 3px; filter: drop-shadow(0 0 4px rgba(240,208,96,0.7)); }
.feature-list li.no::before  { content: '—'; color: var(--text-dim); opacity: 0.6; font-size: 0.9rem; top: 0; }

/* ── Coverage ── */
.coverage-layout { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.55fr); gap: 18px; align-items: stretch; }
.coverage-hero .pick-inner { min-height: 100%; padding: 28px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(180,130,20,0.11), rgba(0,0,0,0.44)); border-color: rgba(180,130,20,0.30); }
.coverage-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.coverage-hero .pick-icon { margin-bottom: 0; background: rgba(180,130,20,0.18); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--gold-bright); }
.coverage-hero small { margin-top: auto; padding-top: 18px; color: var(--text-dim); font-size: 0.84rem; line-height: 1.5; }
.coverage-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coverage-option {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px;
  border: 1px solid rgba(180,130,20,0.09); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.26));
  padding: 16px; min-height: 110px; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.coverage-option:hover { border-color: rgba(180,130,20,0.28); background: rgba(180,130,20,0.05); transform: translateY(-2px); }
.coverage-option input { display: none; }
.coverage-option:has(input:checked) {
  border-color: rgba(240,208,96,0.88);
  background: radial-gradient(circle at 18% 12%, rgba(240,200,80,0.10), transparent 34%), linear-gradient(180deg, rgba(180,130,20,0.11), rgba(0,0,0,0.18));
  box-shadow: 0 0 0 1px rgba(240,208,96,0.65), 0 0 10px rgba(180,130,20,0.28), 0 0 26px rgba(180,130,20,0.14), inset 0 0 14px rgba(180,130,20,0.07);
  animation: neonCardPulse 4.2s ease-in-out infinite;
}
.coverage-option-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-bright); background: rgba(180,130,20,0.10); font-size: 1.4rem; flex-shrink: 0;
}
.coverage-option-icon svg { width: 22px; height: 22px; }
.coverage-option strong { display: block; color: var(--text-white); font-size: 0.93rem; font-weight: 600; margin-bottom: 4px; }
.coverage-option small { display: block; color: var(--text-dim); font-size: 0.78rem; line-height: 1.4; }
.coverage-summary { margin-top: 22px; border: 1px solid rgba(180,130,20,0.28); border-radius: var(--radius-sm); background: linear-gradient(to right, rgba(180,130,20,0.09), rgba(0,0,0,0.26)); padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 14px; }
.coverage-summary strong { color: var(--gold-bright); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.coverage-summary span { color: var(--text); font-size: 0.88rem; line-height: 1.5; }
.coverage-extra { margin-top: 12px; border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-sm); background: rgba(0,0,0,0.22); padding: 14px 16px; }
.coverage-extra summary { color: var(--text-dim); cursor: pointer; font-size: 0.88rem; font-weight: 700; list-style-position: outside; transition: var(--transition); }
.coverage-extra summary:hover { color: var(--gold-bright); }
.coverage-extra-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 14px; }

/* ── Control Panel ── */
.control-panel { border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.20)); padding: 26px; margin-bottom: 30px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.4); }
.control-panel-head { margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 18px; }
.control-panel-head span, .subhead { color: var(--text-white); font-family: 'Cinzel','Newsreader',serif; font-size: 1.3rem; font-weight: 700; }
.control-panel-head p { color: var(--text-dim); font-size: 0.88rem; margin-top: 6px; }
.subhead { margin-bottom: 8px; }
.tighter { margin-bottom: 22px; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { color: var(--text); font-size: 0.83rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.field small { color: var(--text-dim); font-size: 0.78rem; line-height: 1.5; }

/* Selects */
select {
  -webkit-appearance: none; appearance: none; width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.5) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--text-white); border-radius: var(--radius-sm); padding: 13px 16px;
  font-family: 'Manrope', sans-serif; font-size: 0.93rem; font-weight: 500;
  cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition);
}
select option { background: #0d0b10; color: #fff; }
select:hover { border-color: rgba(255,255,255,0.18); }
select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,130,20,0.18); }

/* Segmented */
.segmented { display: flex; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius-sm); overflow: hidden; padding: 4px; gap: 4px; }
.segmented label { flex: 1; }
.segmented input { display: none; }
.segmented span { display: block; text-align: center; padding: 10px; color: var(--text-dim); font-size: 0.83rem; font-weight: 600; border-radius: 7px; cursor: pointer; transition: background var(--transition), color var(--transition), box-shadow var(--transition); }
.segmented input:checked + span { background: rgba(180,130,20,0.14); color: var(--gold-bright); box-shadow: 0 0 0 1px rgba(180,130,20,0.22), 0 0 18px rgba(180,130,20,0.10), inset 0 0 12px rgba(180,130,20,0.07); text-shadow: 0 0 10px rgba(180,130,20,0.30); }

/* Switches */
.control-row { margin-top: 18px; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 16px 20px; background: rgba(0,0,0,0.22); transition: border-color var(--transition), background var(--transition); }
.control-row:hover { border-color: rgba(255,255,255,0.12); }
.switch-line { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; cursor: pointer; }
.switch-line input { -webkit-appearance: none; appearance: none; width: 40px; height: 24px; background: rgba(255,255,255,0.10); border-radius: 20px; position: relative; cursor: pointer; outline: none; transition: var(--transition); grid-row: 1/3; }
.switch-line input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--text-dim); border-radius: 50%; transition: var(--transition); box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.switch-line input:checked { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); box-shadow: 0 0 0 1px rgba(240,208,96,0.50), 0 0 16px rgba(180,130,20,0.24); animation: neonSwitchPulse 7.5s linear infinite; }
.switch-line input:checked::after { left: 18px; background: #fff; }
.switch-line span { color: var(--text-white); font-size: 0.93rem; font-weight: 600; grid-column: 2; grid-row: 1; }
.switch-line small { color: var(--text-dim); font-size: 0.83rem; line-height: 1.5; grid-column: 2; grid-row: 2; margin-top: 4px; }

/* Lang Grid */
.lang-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.lang-card .pick-inner {
  padding: 14px 12px;
  text-align: center;
  min-height: 90px;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.lang-card .pick-inner > :not(.flag-wave) {
  position: relative;
  z-index: 2;
}
.flag-wave {
  position: absolute;
  inset: -36% -14%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-size: 0;
  opacity: 0.16;
  filter: blur(0.45px) saturate(0.74) contrast(0.92);
  transform-origin: center;
  animation: flagWave 8s ease-in-out infinite;
}
.flag-wave::before {
  content: '';
  position: absolute;
  inset: 10% 4%;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(240,208,96,0.14), transparent 45%),
    linear-gradient(90deg, rgba(80,80,90,0.34), rgba(180,130,20,0.12));
  box-shadow: inset 0 0 42px rgba(255,255,255,0.05), 0 0 42px rgba(180,130,20,0.08);
  clip-path: polygon(0 14%, 13% 7%, 29% 12%, 45% 6%, 62% 13%, 80% 8%, 100% 15%, 100% 86%, 82% 92%, 64% 86%, 46% 93%, 28% 87%, 12% 93%, 0 87%);
}
.lang-card:nth-child(1) .flag-wave::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(70,135,255,0.50), transparent 36%),
    radial-gradient(circle at 38% 42%, rgba(80,205,120,0.42), transparent 18%),
    radial-gradient(circle at 62% 56%, rgba(65,185,100,0.34), transparent 16%),
    radial-gradient(circle at center, rgba(255,255,255,0.09), transparent 62%);
}
.lang-card:nth-child(2) .flag-wave::before {
  background:
    linear-gradient(33deg, transparent 42%, rgba(255,255,255,0.72) 43% 48%, #c8102e 49% 53%, rgba(255,255,255,0.72) 54% 58%, transparent 59%),
    linear-gradient(-33deg, transparent 42%, rgba(255,255,255,0.72) 43% 48%, #c8102e 49% 53%, rgba(255,255,255,0.72) 54% 58%, transparent 59%),
    linear-gradient(90deg, transparent 43%, rgba(255,255,255,0.78) 44% 56%, transparent 57%),
    linear-gradient(0deg, transparent 39%, rgba(255,255,255,0.78) 40% 60%, transparent 61%),
    linear-gradient(90deg, transparent 46%, #c8102e 47% 53%, transparent 54%),
    linear-gradient(0deg, transparent 44%, #c8102e 45% 55%, transparent 56%),
    #012169;
}
.lang-card:nth-child(3) .flag-wave::before {
  background: linear-gradient(180deg, #aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75% 100%);
}
.lang-card:nth-child(4) .flag-wave::before {
  background: linear-gradient(90deg, #0055a4 0 33%, #ffffff 33% 66%, #ef4135 66% 100%);
}
.lang-card:nth-child(5) .flag-wave::before {
  background: linear-gradient(180deg, #000000 0 33%, #dd0000 33% 66%, #ffce00 66% 100%);
}
.lang-card:nth-child(6) .flag-wave::before {
  background:
    radial-gradient(circle at 44% 50%, rgba(255,220,0,0.60), transparent 10%),
    linear-gradient(90deg, #006600 0 42%, #ff0000 42% 100%);
}
.lang-card:nth-child(7) .flag-wave::before {
  background: linear-gradient(180deg, #ffffff 0 33%, #0039a6 33% 66%, #d52b1e 66% 100%);
}
.lang-card:nth-child(8) .flag-wave::before {
  background:
    radial-gradient(circle at 27% 31%, #ffde00 0 7%, transparent 8%),
    radial-gradient(circle at 37% 20%, #ffde00 0 3%, transparent 4%),
    radial-gradient(circle at 44% 31%, #ffde00 0 3%, transparent 4%),
    radial-gradient(circle at 42% 44%, #ffde00 0 3%, transparent 4%),
    radial-gradient(circle at 34% 54%, #ffde00 0 3%, transparent 4%),
    #de2910;
}
.lang-card:nth-child(9) .flag-wave::before {
  background: radial-gradient(circle at 50% 50%, #bc002d 0 18%, transparent 19%), #ffffff;
}
.lang-card:nth-child(2n) .flag-wave { animation-delay: -2.2s; }
.lang-card:nth-child(3n) .flag-wave { animation-delay: -4.4s; }
.lang-card:has(input:checked) .flag-wave,
.lang-card.is-selected .flag-wave {
  opacity: 0.24;
  filter: blur(0.25px) saturate(0.88) contrast(1);
}
.lang-card .pick-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 8px;
  font-size: 0.85rem;
}
.lang-flag {
  font-family: 'Manrope', monospace; font-size: 0.75rem; font-weight: 800;
  letter-spacing: 0.08em; color: var(--gold-bright);
}
.lang-card .pick-inner h3 { font-size: 0.85rem; margin-bottom: 0; }
.lang-card .pick-inner p { display: none; }

/* ── Step Footer Buttons ── */
.step-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); position: relative; z-index: 20; }
.btn-primary {
  background: linear-gradient(145deg, #c9a227, #8a6b1c);
  color: #fff; border: none; overflow: hidden; position: relative;
  font-family: 'Cinzel','Manrope',sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em;
  box-shadow: 0 4px 20px rgba(180,130,20,0.40), 0 2px 0 rgba(240,208,96,0.28), inset 0 1px 0 rgba(255,230,150,0.32);
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 34px;
  border-radius: 999px; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.15), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 30px rgba(180,130,20,0.55), 0 2px 0 rgba(240,208,96,0.28), inset 0 1px 0 rgba(255,230,150,0.38); filter: saturate(1.15); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px;
  background: rgba(255,255,255,0.03); color: var(--text);
  font-family: 'Manrope',sans-serif; font-size: 0.92rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.10); border-radius: 999px; cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: rgba(180,130,20,0.09); border-color: rgba(180,130,20,0.28); color: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

/* ── Install Step ── */
.summary-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.pill { padding: 6px 16px; border-radius: 20px; font-size: 0.83rem; font-weight: 700; background: rgba(180,130,20,0.10); border: 1px solid rgba(180,130,20,0.28); color: var(--gold-bright); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.install-guide { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.install-card { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.24)); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-card); transition: transform var(--transition), border-color var(--transition); }
.install-card:hover { transform: translateY(-2px); border-color: rgba(180,130,20,0.20); }
.install-card.primary { background: linear-gradient(to right, rgba(180,130,20,0.06), rgba(0,0,0,0.3)); border-color: rgba(180,130,20,0.28); box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.install-step { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #c9a227, #8a6b1c); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; box-shadow: inset 0 2px 5px rgba(240,208,96,0.3), 0 4px 12px rgba(180,130,20,0.3); }
.install-card > div { min-width: 0; }
.install-card h3 { color: var(--text-white); font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.install-card p { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; }
.install-card .btn-primary, .install-card .btn-ghost { padding: 11px 22px; font-size: 0.86rem; }
.provider-link {
  display: block;
  margin-top: 10px;
  max-width: min(66vw, 760px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--gold-bright);
  background: rgba(180,130,20,0.08);
  border: 1px solid rgba(180,130,20,0.18);
  border-radius: 9px;
  padding: 9px 11px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

/* ── Test Panel ── */
.result-panel { margin-top: 30px; padding: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.20)); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-card); }
.result-panel h3 { font-family: 'Cinzel','Newsreader',serif; font-size: 1.2rem; font-weight: 700; color: var(--text-white); margin-bottom: 14px; }
.test-row { display: flex; gap: 12px; align-items: center; }
.test-row input { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.10); padding: 13px 18px; border-radius: 30px; color: #fff; font-family: 'Manrope',sans-serif; font-size: 0.93rem; outline: none; transition: var(--transition); cursor: text; }
.test-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180,130,20,0.18); }
#test-status { font-size: 0.83rem; color: var(--text-dim); font-weight: 600; min-width: 80px; text-align: right; }
.test-results { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.test-results li { background: rgba(255,255,255,0.03); padding: 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); animation: fadeUp 260ms ease both; }
.test-results strong { display: block; color: var(--text-white); font-size: 0.93rem; margin-bottom: 4px; }
.test-results span { color: var(--gold-dim); font-size: 0.78rem; font-weight: 600; }
.test-results li.source-chip-row { background: transparent; border: none; padding: 0 0 2px; display: flex; flex-wrap: wrap; gap: 6px; }
.source-chip { padding: 4px 11px; border-radius: 14px; font-size: 0.72rem; font-weight: 700; background: rgba(180,130,20,0.10); border: 1px solid rgba(180,130,20,0.25); color: var(--gold-bright); }
.source-chip-more { background: transparent; border-style: dashed; color: var(--gold-dim); }

/* JSON Toggle & Code Window */
.json-toggle { width: 100%; margin: 30px 0 14px; padding: 15px; background: transparent; border: 1px dashed rgba(180,130,20,0.35); color: var(--gold-bright); border-radius: var(--radius-sm); font-family: 'Manrope',sans-serif; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.json-toggle:hover { background: rgba(180,130,20,0.05); border-style: solid; }
.code-window { background: #060409; border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; overflow: hidden; animation: fadeDown 0.4s ease; }
.code-window.collapsed { display: none; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: rgba(255,255,255,0.022); border-bottom: 1px solid rgba(255,255,255,0.05); }
.code-dots { display: flex; gap: 8px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.code-filename { color: var(--text-dim); font-family: monospace; font-size: 0.83rem; }
.code-actions { display: flex; gap: 8px; }
.code-actions button { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); color: var(--text); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.78rem; transition: var(--transition); }
.code-actions button:hover { background: rgba(180,130,20,0.14); border-color: var(--gold); color: var(--gold-bright); }
#json-out { padding: 22px; font-family: 'Consolas',monospace; font-size: 0.83rem; color: #e8cc70; line-height: 1.7; overflow-x: auto; max-height: 400px; }

.jsonkeeper-callout { margin-top: 30px; padding: 26px 30px; background: linear-gradient(135deg, rgba(180,130,20,0.08), rgba(0,0,0,0.40)); border: 1px solid rgba(180,130,20,0.18); border-radius: var(--radius-card); display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 22px; }
.jsonkeeper-callout p { color: var(--text); font-size: 0.93rem; line-height: 1.6; margin: 0; }
.jsonkeeper-callout p strong { color: var(--gold-bright); font-weight: 700; }

/* ── Info Strip ── */
.info-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 60px; padding: 34px; background: rgba(4,2,9,0.75); border: 1px solid rgba(180,130,20,0.08); border-radius: 18px; backdrop-filter: var(--glass-blur); }
.info-col { text-align: center; }
.info-icon { font-size: 2.4rem; display: block; margin-bottom: 18px; filter: drop-shadow(0 4px 10px rgba(180,130,20,0.30)); animation: infoPulse 5.5s ease-in-out infinite; }
.info-col:nth-child(2) .info-icon { animation-delay: 1.8s; }
.info-col:nth-child(3) .info-icon { animation-delay: 3.6s; }
.info-col h4 { font-family: 'Cinzel','Newsreader',serif; font-size: 1.1rem; font-weight: 700; background: linear-gradient(to bottom, #f9e596, #c9a227); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.info-col p { font-size: 0.92rem; color: var(--text-dim); line-height: 1.6; }

/* ── Footer ── */
.site-footer { text-align: center; padding: 38px; color: var(--text-dim); font-size: 0.83rem; position: relative; z-index: 10; margin-top: 38px; border-top: 1px solid rgba(180,130,20,0.08); }
.site-footer em { font-family: 'Cinzel',serif; font-style: normal; background: linear-gradient(to right, #f0d060, #c9a227); -webkit-background-clip: text; background-clip: text; color: transparent; }
.personal-support {
  max-width: 720px;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.personal-support p {
  margin: 0 auto 10px;
  color: var(--text-dim);
  line-height: 1.55;
}
.personal-support div {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.personal-support a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(201,162,39,0.26);
  border-radius: 999px;
  padding: 7px 13px;
  color: #f0d060;
  background: rgba(201,162,39,0.08);
  text-decoration: none;
  font-weight: 800;
}

/* ── Ink-anim helper ── */
.ink-anim { animation: fadeUp 0.7s ease both; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 1ms !important; }
  .quill-cursor,
  .ink-trail-canvas { display: none; }
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 760px);
  }
}

/* ── Mobile ── */
@media (max-width: 800px) {
  * { cursor: auto !important; }
  a, button, label, [role="button"], .pick-card, .coverage-option, select { cursor: pointer !important; }
  input[type="text"], input[type="search"], textarea { cursor: text !important; }
  input[type="checkbox"], input[type="radio"] { cursor: pointer !important; }
  .quill-cursor,
  .ink-trail-canvas { display: none; }

  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero-sub { font-size: 0.95rem; }
  .step-bar { flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px 16px; }
  .step-line { display: none; }
  .step { padding: 30px 22px; overflow: visible; }
  .card-grid, .col-2, .col-3, .col-4, .content-grid, .coverage-layout, .control-grid, .info-strip, .lang-grid { grid-template-columns: 1fr; }
  .content-grid, #step-2 .card-grid { width: min(100%, 420px); margin-left: auto; margin-right: auto; }
  .coverage-options, .coverage-extra-grid { grid-template-columns: 1fr; }
  .install-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .install-card div { margin-bottom: 8px; }
  .install-card .btn-primary, .install-card .btn-ghost { width: 100%; justify-content: center; }
  .jsonkeeper-callout { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .content-card, #step-2 .pick-card { padding: 12px; border-radius: 22px; width: 100%; max-width: 100%; }
  .content-card .pick-inner, #step-2 .pick-inner { min-height: 0; padding: 24px; border-radius: 18px; }
  #step-2 .pick-card { min-height: 0; }
  .content-kicker { margin-bottom: 18px; }
  .content-card .pick-icon, #step-2 .pick-icon { width: 58px; height: 58px; margin-bottom: 20px; }
  .content-card .pick-inner h3, #step-2 .pick-inner h3 { font-size: 1.42rem; line-height: 1.15; }
  .content-card .pick-inner p, #step-2 .pick-inner p { font-size: 0.95rem; line-height: 1.55; }
  .test-row { display: grid; grid-template-columns: 1fr; }
  .test-row .btn-ghost { justify-content: center; }
  #test-status { min-width: 0; text-align: left; }
  .site-header { padding: 12px 18px; }
}
@media (max-width: 520px) {
  body { overflow-x: hidden; }
  .main { padding: 10px 8px 68px; }
  .hero { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(1.38rem, 7vw, 1.72rem); line-height: 1.04; padding: 0 8px; margin-bottom: 12px; }
  .hero-sub { width: min(100%, 340px); padding: 0 8px; font-size: 0.84rem; line-height: 1.45; margin-bottom: 0; }
  .hero-divider { margin-bottom: 12px; max-width: 280px; }
  .hero-eyebrow { gap: 8px; margin-bottom: 10px; }
  .hero-emblem { width: 24px; height: 34px; }
  .powered-by { font-size: 0.58rem; padding: 7px 12px; letter-spacing: 0.14em; }
  .logo-sub { display: none; }
  .wizard-card { border-radius: 16px; }
  .step-dot span { width: 30px; height: 30px; font-size: 0.76rem; }
  .step-dot label { font-size: 0.56rem; }
  .step { padding: 22px 14px; }
  .step h2 { font-size: 1.4rem; }
  .step-sub { font-size: 0.87rem; margin-bottom: 22px; }
  .pick-inner { padding: 18px; }
  .content-card, #step-2 .pick-card { padding: 10px; border-radius: 20px; }
  .content-card .pick-inner, #step-2 .pick-inner { min-height: 0; padding: 20px; }
  .content-grid, .card-grid { gap: 14px; }
  .pick-badge { max-width: 100%; white-space: normal; text-align: center; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .step-footer { flex-direction: column-reverse; gap: 12px; }
  .step-footer .btn-primary, .step-footer .btn-ghost { width: 100%; justify-content: center; }
}
