:root {
  color-scheme: dark;
  --ink: #140d0a;
  --velvet: #4d0f18;
  --wine: #7e1f27;
  --gold: #d8aa46;
  --gold-bright: #f4d783;
  --parchment: #f0dfbd;
  --bone: #fff6df;
  --marble: #d8d1c5;
  --shadow: rgba(0, 0, 0, 0.42);
  --line: rgba(244, 215, 131, 0.24);
  --paper: #fbf4e4;
  --paper-ink: #1a100b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--bone);
  background:
    radial-gradient(circle at 72% 10%, rgba(244, 215, 131, 0.2), transparent 30rem),
    radial-gradient(circle at 18% 24%, rgba(126, 31, 39, 0.32), transparent 26rem),
    linear-gradient(135deg, #120907 0%, #2a0b10 45%, #090605 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.gate {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(126, 31, 39, 0.92), rgba(10, 6, 5, 0.98) 72%);
}

.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, transparent 30%, rgba(10, 6, 5, 0.55) 65%, rgba(10, 6, 5, 0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

.gate__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.gate__bg-row {
  white-space: nowrap;
  display: inline-block;
  padding: 6px 0;
  color: rgba(244, 215, 131, 0.07);
  letter-spacing: 0.04em;
  will-change: transform;
}

@keyframes gate-scroll-l { from { transform: translateX(0); }   to { transform: translateX(-50%); } }
@keyframes gate-scroll-r { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.gate__bg-row--a { font-size: clamp(2.4rem, 6vw, 4.8rem); animation: gate-scroll-l 38s linear infinite; }
.gate__bg-row--b {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-style: italic;
  text-transform: none;
  color: rgba(255, 246, 223, 0.085);
  animation: gate-scroll-r 46s linear infinite;
}
.gate__bg-row--c {
  font-size: clamp(4rem, 11vw, 9rem);
  color: rgba(126, 31, 39, 0.32);
  -webkit-text-stroke: 1px rgba(244, 215, 131, 0.08);
  animation: gate-scroll-l 56s linear infinite;
}
.gate__bg-row--d {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-style: italic;
  text-transform: none;
  color: rgba(255, 246, 223, 0.075);
  animation: gate-scroll-r 52s linear infinite;
}
.gate__bg-row--e { font-size: clamp(2rem, 5vw, 3.6rem); animation: gate-scroll-l 44s linear infinite; }
.gate__bg-row--f {
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-style: italic;
  text-transform: none;
  color: rgba(255, 246, 223, 0.08);
  animation: gate-scroll-r 50s linear infinite;
}
.gate__bg-row--g {
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  color: rgba(244, 215, 131, 0.11);
  animation: gate-scroll-l 32s linear infinite;
}

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

.gate.is-hidden {
  display: none;
}

.gate__panel {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 13, 10, 0.86);
  box-shadow: 0 30px 90px var(--shadow);
  text-align: center;
}

.crest {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  color: var(--gold-bright);
  background: radial-gradient(circle, #5e1320, #160806);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.gate h1 {
  margin: 0 auto 22px;
  max-width: 560px;
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  line-height: 1.05;
}

.captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 14px;
  transition: opacity 220ms ease;
}
.captcha-grid.is-loading {
  opacity: 0.35;
  pointer-events: none;
}

/* Captcha loader: ring + count + slow-connection countdown */
.captcha-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 12px auto 14px;
  color: var(--gold-bright, #f4d783);
  transition: opacity 200ms ease, transform 200ms ease;
}
.captcha-loader.is-done {
  opacity: 0;
  transform: translateY(-4px);
}
.captcha-loader__ring {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.captcha-loader__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.captcha-loader__ring svg circle {
  fill: none;
  stroke: rgba(244, 215, 131, 0.18);
  stroke-width: 3;
}
.captcha-loader__ring svg .captcha-loader__progress {
  stroke: var(--gold-bright, #f4d783);
  stroke-linecap: round;
  transition: stroke-dashoffset 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 0 6px rgba(244, 215, 131, 0.55));
}
.captcha-loader__count {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-bright, #f4d783);
}
.captcha-loader__label {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(244, 215, 131, 0.85);
  font-style: italic;
}
.captcha-loader__hint {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(244, 215, 131, 0.55);
  font-variant-numeric: tabular-nums;
}

.captcha-tile {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 215, 131, 0.28);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(244, 215, 131, 0.92) 0 7%, transparent 8%),
    radial-gradient(circle at 50% 48%, rgba(255, 246, 223, 0.92) 0 29%, transparent 30%),
    linear-gradient(145deg, #5c1420, #1d0c08);
  color: var(--bone);
}

.captcha-crown {
  position: absolute;
  top: 8%;
  width: 44%;
  height: 18%;
  background: var(--gold-bright);
  clip-path: polygon(0 100%, 0 35%, 22% 68%, 36% 0, 50% 68%, 66% 0, 80% 68%, 100% 35%, 100% 100%);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.25));
}

.captcha-face {
  position: relative;
  width: 62%;
  height: 62%;
  display: grid;
  place-items: center;
  border-radius: 45% 45% 38% 38%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 8vw, 3rem);
  font-weight: 800;
  color: #2a1008;
  background:
    radial-gradient(circle at 35% 34%, #2a1008 0 4%, transparent 5%),
    radial-gradient(circle at 65% 34%, #2a1008 0 4%, transparent 5%),
    linear-gradient(135deg, rgba(255, 246, 223, 0.98), rgba(216, 170, 70, 0.92)),
    var(--parchment);
  box-shadow: inset 0 -12px 22px rgba(0, 0, 0, 0.18);
}

.captcha-caption {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 6px;
  color: var(--gold-bright);
  background: rgba(20, 13, 10, 0.72);
  font-size: clamp(0.58rem, 2vw, 0.78rem);
  font-weight: 900;
  text-transform: uppercase;
}

.captcha-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid transparent;
  border-radius: 8px;
}

.captcha-tile.is-selected::after {
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 999px rgba(244, 215, 131, 0.14);
}

.gate__error,
.quiz-result {
  min-height: 1.4em;
  color: #ffb4a8;
  font-weight: 800;
}

.gate__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.audio-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  color: #170b06;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  font-weight: 900;
  text-decoration: none;
}

.secondary-btn,
.audio-toggle {
  color: var(--bone);
  background: rgba(255, 255, 255, 0.08);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid rgba(244, 215, 131, 0.18);
  background: rgba(20, 13, 10, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-bright);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  line-height: 0;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(244, 215, 131, 0.18));
  transition: transform 200ms ease;
}

.brand:hover img {
  transform: scale(1.05);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

nav a {
  color: var(--bone);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(38px, 6vw, 82px) clamp(16px, 5vw, 72px) clamp(132px, 18vw, 210px);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 7, 5, 0.04), rgba(13, 7, 5, 0.74)),
    radial-gradient(circle at 72% 38%, rgba(244, 215, 131, 0.26), transparent 30rem),
    radial-gradient(circle at 30% 72%, rgba(126, 31, 39, 0.28), transparent 25rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: clamp(150px, 21vw, 260px);
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(20, 13, 10, 0.92) 7% 13%, transparent 13% 18%, rgba(20, 13, 10, 0.92) 18% 24%, transparent 24% 76%, rgba(20, 13, 10, 0.92) 76% 82%, transparent 82% 87%, rgba(20, 13, 10, 0.92) 87% 93%, transparent 93%),
    linear-gradient(180deg, transparent 0 38%, rgba(20, 13, 10, 0.96) 38% 100%);
  border-top: 1px solid rgba(244, 215, 131, 0.22);
}

.kingdom-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.banner {
  position: absolute;
  top: clamp(36px, 8vw, 82px);
  width: clamp(80px, 10vw, 140px);
  height: clamp(180px, 24vw, 300px);
  transform-origin: top center;
  background: url("banner.webp") center top / contain no-repeat;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
  animation: bannerWave 3.4s ease-in-out infinite;
}

.banner--left {
  left: auto;
  right: calc(clamp(12px, 5vw, 72px) + clamp(160px, 20vw, 280px));
  top: clamp(10px, 2vw, 24px);
  z-index: 3;
  translate: -888px 8px;
  scale: 1;
}

.banner--right {
  right: clamp(12px, 5vw, 72px);
  top: clamp(10px, 2vw, 24px);
  animation-delay: -1.1s;
  z-index: 3;
  translate: -823px 15px;
  scale: 1;
}

.crown-stage {
  translate: 31px -579px;
  scale: 1;
}

.spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 18px 7px rgba(244, 215, 131, 0.32);
  animation: floatSpark 4.8s ease-in-out infinite;
}

.spark--one {
  left: 18%;
  top: 32%;
}

.spark--two {
  right: 22%;
  top: 18%;
  animation-delay: -1.6s;
}

.spark--three {
  right: 44%;
  top: 64%;
  animation-delay: -3s;
}

.hero__copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--gold-bright);
  text-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 38px rgba(244, 215, 131, 0.18);
}

.hero__copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0;
  color: rgba(255, 246, 223, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero__stats span,
.leaderboard,
.quiz-card,
.forum-post,
.product-card {
  border: 1px solid rgba(244, 215, 131, 0.18);
  border-radius: 8px;
  background: rgba(255, 246, 223, 0.065);
}

.hero__stats span {
  padding: 14px;
  color: rgba(255, 246, 223, 0.72);
  backdrop-filter: blur(12px);
}

.hero__stats strong {
  display: block;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
}

.crown-stage {
  position: relative;
  height: min(70vh, 680px);
  min-height: 390px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 32%, rgba(244, 215, 131, 0.38), transparent 16rem),
    radial-gradient(circle at 50% 78%, rgba(224, 0, 47, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(255, 246, 223, 0.045), rgba(0, 0, 0, 0.18));
  box-shadow:
    inset 0 0 120px rgba(244, 215, 131, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

/* Glowing orbit ring behind the crown */
.crown-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: min(72%, 460px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 215, 131, 0.22) 0%, transparent 62%),
    conic-gradient(from 0deg, rgba(244, 215, 131, 0.0) 0deg, rgba(244, 215, 131, 0.35) 80deg, rgba(244, 215, 131, 0) 180deg, rgba(244, 215, 131, 0.28) 260deg, rgba(244, 215, 131, 0) 360deg);
  filter: blur(14px);
  opacity: 0.9;
  animation: crown-orbit 18s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Pedestal of light at the bottom */
.crown-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 70%;
  height: 34%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(244, 215, 131, 0.28), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  animation: crown-pedestal 5s ease-in-out infinite alternate;
}

@keyframes crown-orbit {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes crown-pedestal {
  from { opacity: 0.55; transform: translateX(-50%) scale(0.95); }
  to   { opacity: 1;    transform: translateX(-50%) scale(1.05); }
}

.castle-silhouette {
  position: absolute;
  inset: auto 8% 3%;
  height: 22%;
  display: flex;
  justify-content: space-between;
  align-items: end;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.castle-silhouette span {
  width: 26%;
  height: 70%;
  background:
    linear-gradient(180deg, transparent 0 16%, rgba(20, 13, 10, 0.74) 16%),
    repeating-linear-gradient(90deg, rgba(244, 215, 131, 0.16) 0 10px, transparent 10px 18px);
  clip-path: polygon(0 18%, 15% 18%, 15% 0, 32% 0, 32% 18%, 48% 18%, 48% 0, 65% 0, 65% 18%, 82% 18%, 82% 0, 100% 0, 100% 100%, 0 100%);
}

#crownCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.crown-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(20, 13, 10, 0.74);
  font-weight: 800;
}

.crown-audio {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold-bright);
  background: rgba(20, 13, 10, 0.74);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.crown-audio:hover {
  border-color: var(--gold-bright);
  background: rgba(20, 13, 10, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(244, 215, 131, 0.18);
}

.crown-audio svg {
  width: 22px;
  height: 22px;
  display: block;
}

.crown-audio .crown-audio__off { display: none; }
.crown-audio.is-muted .crown-audio__on { display: none; }
.crown-audio.is-muted .crown-audio__off { display: block; }

.royal-procession {
  position: absolute;
  inset: auto clamp(12px, 5vw, 72px) 0;
  height: clamp(116px, 15vw, 170px);
  display: grid;
  grid-template-columns: 180px minmax(180px, 1fr) 180px;
  align-items: end;
  gap: 18px;
  pointer-events: none;
}

.gatehouse {
  height: 100%;
  display: grid;
  grid-template-columns: 90px minmax(120px, 1fr) 90px;
  align-items: end;
  opacity: 0.94;
}

.gatehouse .tower,
.gatehouse .arch {
  display: block;
  background:
    linear-gradient(180deg, rgba(244, 215, 131, 0.16), transparent 18%),
    #1b0d09;
  border: 1px solid rgba(244, 215, 131, 0.18);
}

.gatehouse .tower {
  height: 100%;
  clip-path: polygon(0 18%, 20% 18%, 20% 0, 40% 0, 40% 18%, 60% 18%, 60% 0, 80% 0, 80% 18%, 100% 18%, 100% 100%, 0 100%);
}

.gatehouse .arch {
  height: 68%;
  border-radius: 110px 110px 0 0;
  box-shadow: inset 0 44px 0 rgba(244, 215, 131, 0.06);
}

.knight {
  position: relative;
  width: clamp(120px, 16vw, 220px);
  height: auto;
  justify-self: center;
  object-fit: contain;
  transform-origin: bottom center;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.55));
  animation: knightBreathe 2.6s ease-in-out infinite;
  -webkit-user-drag: none;
  user-select: none;
}

.knight--right {
  scale: -1 1;
  animation-delay: -1.2s;
}

.helmet {
  position: absolute;
  left: 39px;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 40% 40%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.35), transparent 30%),
    linear-gradient(135deg, #f6e6ad, #7f7a66);
  box-shadow: inset -10px -8px 0 rgba(0, 0, 0, 0.16);
}

.helmet::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 20px;
  height: 5px;
  background: rgba(20, 13, 10, 0.72);
  box-shadow: 0 9px 0 rgba(20, 13, 10, 0.55);
}

.plume {
  position: absolute;
  left: 49px;
  top: 0;
  width: 24px;
  height: 42px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #e0002f, #7e1f27);
  transform-origin: bottom center;
  animation: plumeWave 1.8s ease-in-out infinite;
}

.shield {
  position: absolute;
  left: 24px;
  top: 74px;
  width: 72px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold-bright);
  border-radius: 38% 38% 48% 48%;
  color: var(--gold-bright);
  background:
    linear-gradient(135deg, rgba(255, 246, 223, 0.12), transparent),
    #7e1f27;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.spear {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 138px;
  border-radius: 999px;
  background: #caa24d;
  transform: rotate(9deg);
}

.spear::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -16px;
  width: 18px;
  height: 24px;
  background: #f4d783;
  clip-path: polygon(50% 0, 100% 100%, 50% 82%, 0 100%);
}

@keyframes bannerWave {
  0%,
  100% {
    transform: rotate(-3deg) skewX(0deg);
  }
  50% {
    transform: rotate(3deg) skewX(-4deg);
  }
}

@keyframes floatSpark {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-22px) scale(1.5);
    opacity: 1;
  }
}

@keyframes knightBreathe {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

@keyframes plumeWave {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

.newsletter {
  padding-top: clamp(36px, 6vw, 80px);
}

.newsletter-card {
  position: relative;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 56px) clamp(28px, 5vw, 56px);
  border-radius: 4px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 240, 200, 0.04) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 0% 0%, rgba(244, 215, 131, 0.18), transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(244, 215, 131, 0.14), transparent 55%),
    linear-gradient(165deg, #2c0f12 0%, #1a0708 55%, #0f0405 100%);
  border: 2px solid rgba(244, 215, 131, 0.85);
  box-shadow:
    inset 0 0 0 6px rgba(10, 6, 5, 0.4),
    inset 0 0 0 7px rgba(244, 215, 131, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.55),
    0 28px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

/* Gold filigree corner ornaments */
.newsletter-card::before,
.newsletter-card::after {
  content: "❦";
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  color: rgba(244, 215, 131, 0.85);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(244, 215, 131, 0.4));
  pointer-events: none;
}
.newsletter-card::before { top: 14px; left: 18px; }
.newsletter-card::after  { bottom: 14px; right: 18px; }

.newsletter-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4d783;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.newsletter-card .eyebrow::before,
.newsletter-card .eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f4d783, transparent);
}

.newsletter-card h2 {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--gold-bright, #f4d783);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 215, 131, 0.25);
}

.newsletter-card p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 14px;
  color: rgba(255, 246, 223, 0.85);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Form: parchment-on-velvet panel with wax-seal accent */
.newsletter-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px 22px 22px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 215, 131, 0.06), transparent 60%),
    linear-gradient(180deg, #1a0a07 0%, #0c0403 100%);
  border: 1px solid rgba(244, 215, 131, 0.55);
  box-shadow:
    inset 0 0 0 4px rgba(10, 6, 5, 0.5),
    inset 0 0 0 5px rgba(244, 215, 131, 0.3),
    0 18px 36px rgba(0, 0, 0, 0.5);
}
.newsletter-form::before {
  content: "♛";
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #f4d783, #c89a2e 60%, #6f4a12);
  color: #2a1008;
  font-size: 1.3rem;
  border: 2px solid #2c0f12;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6), inset 0 1px 2px rgba(255, 246, 223, 0.6);
}

.newsletter-form label {
  display: grid;
  gap: 6px;
  color: #f4d783;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.newsletter-form input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 246, 223, 0.06);
  border: 1px solid rgba(244, 215, 131, 0.4);
  border-radius: 3px;
  color: #f5ecd4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.newsletter-form input:focus {
  border-color: #f4d783;
  background: rgba(255, 246, 223, 0.1);
  box-shadow: 0 0 0 3px rgba(244, 215, 131, 0.15);
}
.newsletter-form input::placeholder {
  color: rgba(244, 215, 131, 0.45);
  font-style: italic;
}

.newsletter-form .primary-btn {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.newsletter-status {
  min-height: 1.4em;
  margin: 0;
  text-align: center;
  color: var(--gold-bright, #f4d783);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.section {
  padding: clamp(52px, 8vw, 110px) clamp(16px, 5vw, 72px);
}

.section__heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section__heading h2 {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.98;
}

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

.product-card,
.quiz-card,
.leaderboard {
  padding: 18px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.14);
}

.product-card h3,
.leaderboard h3 {
  margin: 0 0 8px;
  color: var(--bone);
}

.product-card p {
  margin: 0 0 14px;
  color: rgba(255, 246, 223, 0.76);
  line-height: 1.55;
}

.post-meta,
.sold-out,
.price {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.forum {
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.04), transparent 28rem),
    rgba(0, 0, 0, 0.06);
}

.subreddit-bar {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 215, 131, 0.18);
  border-radius: 8px;
  background: rgba(20, 13, 10, 0.8);
}

.subreddit-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #170b06;
  background: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.subreddit-bar h3 {
  margin: 0;
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.subreddit-bar p {
  margin: 3px 0 0;
  color: rgba(255, 246, 223, 0.66);
}

.forum-list {
  width: min(980px, 100%);
  display: grid;
  gap: 12px;
}

.reddit-post {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(244, 215, 131, 0.15);
  border-radius: 8px;
  background: rgba(255, 246, 223, 0.955);
  color: #170b06;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
}

.vote-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 3px;
  padding: 12px 6px;
  background: rgba(20, 13, 10, 0.08);
}

.vote-rail button {
  width: 28px;
  height: 26px;
  border: 0;
  border-radius: 4px;
  color: rgba(23, 11, 6, 0.62);
  background: transparent;
  font-weight: 900;
}

.vote-rail button:first-child {
  color: #c04b1d;
}

.vote-rail strong {
  color: #170b06;
  font-size: 0.82rem;
}

.reddit-post__content {
  min-width: 0;
  padding: 13px 16px 14px;
}

.reddit-meta,
.reddit-actions,
.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: rgba(23, 11, 6, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.subreddit-dot {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8aa46, #7e1f27);
}

.reddit-meta strong {
  color: #170b06;
}

.flair {
  border-radius: 999px;
  padding: 3px 8px;
  color: #170b06;
  background: rgba(216, 170, 70, 0.36);
}

.reddit-post h3 {
  margin: 8px 0 7px;
  color: #170b06;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  line-height: 1.2;
}

.reddit-post__content > p {
  margin: 0 0 12px;
  color: rgba(23, 11, 6, 0.82);
  line-height: 1.5;
}

.reddit-actions {
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(23, 11, 6, 0.1);
}

.comment-thread {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.comment {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.comment-line {
  width: 2px;
  min-height: 100%;
  margin: 3px auto 0;
  background: rgba(23, 11, 6, 0.16);
}

.comment-meta strong {
  color: #170b06;
}

.comment p {
  margin: 4px 0 0;
  color: rgba(23, 11, 6, 0.78);
  line-height: 1.45;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.quiz-card__top,
.quiz-actions {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-mode-label {
  display: block;
  color: var(--bone);
  font-size: 1.1rem;
}

label {
  display: grid;
  gap: 7px;
  color: rgba(255, 246, 223, 0.75);
  font-weight: 800;
}

input {
  width: min(280px, 100%);
  border: 1px solid rgba(244, 215, 131, 0.28);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--bone);
  background: rgba(0, 0, 0, 0.22);
}

select {
  min-height: 42px;
  border: 1px solid rgba(244, 215, 131, 0.28);
  border-radius: 8px;
  padding: 8px 36px 8px 12px;
  color: var(--bone);
  background: rgba(20, 13, 10, 0.9);
}

.timer {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-bright);
  font-size: 2rem;
  font-weight: 800;
}

.question {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(244, 215, 131, 0.14);
}

.question p {
  margin: 0 0 10px;
  font-weight: 900;
}

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

.answer {
  min-height: 42px;
  border: 1px solid rgba(244, 215, 131, 0.2);
  border-radius: 8px;
  color: var(--bone);
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
}

.answer.is-picked {
  border-color: var(--gold-bright);
  background: rgba(216, 170, 70, 0.2);
}

.answer.is-correct {
  border-color: #a8f0bf;
  background: rgba(74, 170, 92, 0.2);
}

.answer.is-wrong {
  border-color: #ff9a86;
  background: rgba(180, 20, 45, 0.22);
}

.leaderboard ol {
  margin: 0;
  padding-left: 22px;
}

.leaderboard li {
  margin: 10px 0;
  color: rgba(255, 246, 223, 0.84);
}

.product-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #2a1008;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 246, 223, 0.7), transparent 26%),
    linear-gradient(135deg, #d8aa46, #7e1f27);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 800;
}

.quotes-disclaimer {
  text-align: center;
  color: rgba(244, 215, 131, 0.7);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 0.96rem;
}

.quote-hall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.quote-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 30px 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(244, 215, 131, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 215, 131, 0.08), transparent 60%),
    linear-gradient(165deg, rgba(30, 16, 10, 0.92), rgba(10, 6, 5, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(244, 215, 131, 0.1);
  overflow: hidden;
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}
.quote-panel::before {
  content: "\201C";
  position: absolute;
  top: -22px;
  right: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8rem;
  line-height: 1;
  color: rgba(244, 215, 131, 0.14);
  pointer-events: none;
}
.quote-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 215, 131, 0.45);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(244, 215, 131, 0.18);
}

/* Variants */
.quote-panel--gold {
  background:
    radial-gradient(circle at 0% 100%, rgba(244, 215, 131, 0.12), transparent 55%),
    linear-gradient(165deg, #2b1a0c, #120906);
}
.quote-panel--marble {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 246, 223, 0.07), transparent 55%),
    linear-gradient(165deg, #1d1612, #0d0906);
  border-color: rgba(230, 220, 200, 0.2);
}
.quote-panel--crimson {
  background:
    radial-gradient(circle at 20% 100%, rgba(139, 26, 26, 0.28), transparent 60%),
    linear-gradient(165deg, #2c0f0f, #120505);
  border-color: rgba(200, 80, 80, 0.25);
}

.portrait {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(244, 215, 131, 0.55);
  color: rgba(20, 13, 10, 0.82);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 246, 223, 0.95), transparent 40%),
    linear-gradient(145deg, var(--parchment, #e8c97a), var(--gold, #c89a2e), #81442f);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}

.quote-panel blockquote {
  margin: 0;
  color: var(--bone, #f5ecd4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.quote-panel cite {
  display: block;
  color: var(--gold-bright, #f4d783);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border-top: 1px solid rgba(244, 215, 131, 0.18);
  padding-top: 14px;
}

.inner-page {
  min-height: 100vh;
}

nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) 0;
}

.quiz-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 22px;
}

.quiz-hero h1,
.shop-hero h1 {
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(2.45rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.quiz-hero p:not(.eyebrow),
.shop-hero p {
  max-width: 720px;
  color: rgba(255, 246, 223, 0.76);
  font-size: 1.08rem;
  line-height: 1.6;
}

.quiz-scorecard {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 1px solid rgba(244, 215, 131, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 246, 223, 0.09), rgba(126, 31, 39, 0.18));
}

.quiz-scorecard span,
.quiz-scorecard small {
  color: rgba(255, 246, 223, 0.7);
  font-weight: 800;
}

.quiz-scorecard strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.quiz-layout--focused {
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
}

.quiz-card--runner {
  min-height: 560px;
  padding: clamp(18px, 4vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 246, 223, 0.09), rgba(255, 246, 223, 0.045)),
    rgba(20, 13, 10, 0.72);
}

.quiz-progress {
  display: grid;
  gap: 12px;
  margin: 4px 0 28px;
}

.quiz-progress div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 246, 223, 0.75);
  font-weight: 900;
}

.quiz-progress strong {
  color: var(--gold-bright);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(244, 215, 131, 0.24);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 240ms ease;
}

.quiz-stage {
  min-height: 310px;
  display: grid;
}

.quiz-start {
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(244, 215, 131, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(244, 215, 131, 0.13), transparent 22rem),
    rgba(0, 0, 0, 0.16);
}

.quiz-start span {
  color: var(--gold-bright);
  font-weight: 900;
  text-transform: uppercase;
}

.quiz-start h2 {
  max-width: 720px;
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.quiz-start p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 246, 223, 0.76);
  line-height: 1.55;
}

.score-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  max-width: 620px;
  margin-top: 24px;
}

.score-submit input {
  width: 100%;
}

.question--single {
  margin: 0;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid rgba(244, 215, 131, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.question--single p {
  margin-bottom: 22px;
  color: var(--bone);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.answers--single {
  grid-template-columns: 1fr;
}

.answers--single .answer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  font-weight: 900;
}

.answers--single .answer span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #170b06;
  background: var(--gold-bright);
}

.leaderboard--polished {
  position: sticky;
  top: 90px;
  background: rgba(20, 13, 10, 0.76);
}

.leaderboard--polished li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.leaderboard--polished span,
.leaderboard--polished em {
  color: var(--gold-bright);
  font-style: normal;
  font-weight: 900;
}

.shop-page {
  background:
    radial-gradient(circle at 80% 4%, rgba(216, 170, 70, 0.22), transparent 25rem),
    linear-gradient(180deg, #21100c 0, #120907 30rem, #f7efe0 30rem, #f7efe0 100%);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: 24px;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 5vw, 72px) 38px;
}

.shop-hero__copy {
  max-width: 900px;
}

.shop-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.shop-hero__pills span {
  border: 1px solid rgba(244, 215, 131, 0.24);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gold-bright);
  background: rgba(255, 246, 223, 0.08);
  font-weight: 900;
}

.shop-hero__drop {
  padding: 22px;
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 8px;
  background: rgba(255, 246, 223, 0.075);
}

.shop-hero__drop span,
.shop-hero__drop small {
  color: rgba(255, 246, 223, 0.7);
  font-weight: 900;
  text-transform: uppercase;
}

.toolbar-label {
  color: rgba(26, 16, 11, 0.62);
  font-weight: 900;
  text-transform: uppercase;
}

.shop-hero__drop strong {
  display: block;
  margin: 8px 0;
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
}

.shop-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 clamp(16px, 5vw, 72px) 22px;
  padding: 16px 0;
  border-top: 1px solid rgba(26, 16, 11, 0.12);
  border-bottom: 1px solid rgba(26, 16, 11, 0.12);
  color: var(--paper-ink);
}

.collection-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.collection-tabs button {
  min-height: 40px;
  border: 1px solid rgba(26, 16, 11, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--paper-ink);
  background: rgba(255, 255, 255, 0.58);
  font-weight: 900;
}

.collection-tabs .is-active {
  color: var(--bone);
  background: #170b06;
}

.sort-label {
  min-width: 190px;
  color: rgba(26, 16, 11, 0.62);
}

.shop-page select {
  color: var(--paper-ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(26, 16, 11, 0.14);
}

.shop-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  padding: 0 clamp(16px, 5vw, 72px) clamp(52px, 7vw, 92px);
}

.shop-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  padding: 20px;
  border: 1px solid rgba(26, 16, 11, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--paper-ink);
  box-shadow: 0 18px 44px rgba(26, 16, 11, 0.08);
}

.shop-sidebar h2 {
  margin: 0 0 10px;
  color: var(--paper-ink);
}

.shop-sidebar p {
  color: rgba(26, 16, 11, 0.68);
  line-height: 1.5;
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(26, 16, 11, 0.1);
}

.sidebar-stat span {
  color: rgba(26, 16, 11, 0.6);
  font-weight: 900;
}

.sidebar-stat strong {
  color: #7e1f27;
}

.product-grid--shop {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 22px;
}

.product-card--premium {
  display: grid;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(26, 16, 11, 0.1);
  background: #fffaf0;
  color: var(--paper-ink);
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 18px 42px rgba(26, 16, 11, 0.08);
}

.product-card--premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.product-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eadcc4;
}

.product-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.product-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card--premium:hover .product-photo img {
  transform: scale(1.045);
}

.product-art--shop {
  margin: 0;
  border-radius: 0;
  min-height: 240px;
  color: rgba(23, 11, 6, 0.76);
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 246, 223, 0.92), transparent 8rem),
    linear-gradient(135deg, #f0dfbd, #d8aa46 52%, #7e1f27);
}

.product-art--shop span {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(23, 11, 6, 0.16);
  border-radius: 50%;
  background: rgba(255, 246, 223, 0.5);
  font-size: 1.4rem;
}

.product-card__body {
  display: grid;
  gap: 10px;
  padding: 18px 18px 20px;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(23, 11, 6, 0.62);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card--premium h3 {
  margin: 0;
  color: var(--paper-ink);
  font-size: 1.2rem;
  line-height: 1.15;
}

.product-card--premium p {
  min-height: 3.1em;
  color: rgba(26, 16, 11, 0.66);
}

.product-card--premium .price,
.product-card--premium .sold-out {
  color: #7e1f27;
}

.reddit-post__image {
  margin: 10px 0 14px;
  border: 1px solid rgba(244, 215, 131, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(20, 13, 10, 0.5);
  max-width: 520px;
}

.reddit-post__image img {
  display: block;
  width: 100%;
  height: auto;
}

.product-reviews {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 16, 11, 0.12);
  display: grid;
  gap: 10px;
}

.product-reviews h4 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7e1f27;
}

.review {
  background: rgba(244, 215, 131, 0.22);
  border: 1px solid rgba(26, 16, 11, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
}

.review__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.review__meta strong {
  color: var(--paper-ink);
  font-size: 0.85rem;
}

.review__stars {
  color: #c48a1a;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.review p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(26, 16, 11, 0.78);
}

.sold-out-tag {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  font-family: Georgia, serif;
  background: linear-gradient(135deg, #7e1f27, #4a0606);
  color: #f4d783;
  border: 1px solid rgba(244, 215, 131, 0.6);
  border-radius: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}
.sold-out-btn {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(244, 215, 131, 0.5);
  border-radius: 8px;
  background: linear-gradient(135deg, #2a1008, #140a05);
  color: #f4d783;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: not-allowed;
}

.sold-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 246, 223, 0.76);
  background: #170b06;
  font-weight: 900;
}

@media (max-width: 900px) {
  /* Mobile header: clean horizontal row, nav can wrap below if needed */
  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px !important;
  }

  .hero,
  .quiz-layout,
  .quiz-hero,
  .quote-panel,
  .shop-hero,
  .newsletter-card,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-bottom: 150px;
  }

  .forum-list,
  .product-grid,
  .product-grid--shop {
    grid-template-columns: 1fr;
  }

  .leaderboard--polished,
  .shop-sidebar {
    position: static;
  }

  .shop-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .crown-stage {
    min-height: 340px;
    height: 48vh;
  }

  .royal-procession {
    grid-template-columns: 92px minmax(120px, 1fr) 92px;
    height: 108px;
  }

  .knight {
    width: 84px;
    height: 112px;
    transform: scale(0.78);
  }

  .gatehouse {
    grid-template-columns: 54px minmax(72px, 1fr) 54px;
  }

  .banner {
    opacity: 0.7;
  }
}

@media (max-width: 560px) {
  .hero__stats,
  .answers {
    grid-template-columns: 1fr;
  }

  .captcha-grid {
    gap: 7px;
  }

  .gate__actions {
    flex-direction: column;
  }

  .royal-procession {
    opacity: 0.82;
    grid-template-columns: 1fr;
  }

  .knight,
  .gatehouse {
    display: none;
  }

  .quiz-card__top,
  .quiz-actions,
  .score-submit {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .timer {
    font-size: 1.55rem;
  }
}

/* ---- Photo captcha tiles ---- */
.captcha-tile--photo {
  overflow: hidden;
  padding: 0;
  background: #170b06;
}

.captcha-tile--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.captcha-tile--photo .captcha-caption {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 7px;
  font-size: 0.6rem;
  background: rgba(20, 13, 10, 0.78);
  color: var(--gold-bright);
  border-radius: 4px;
  z-index: 2;
}

.captcha-tile--photo.is-selected img {
  filter: saturate(1.2) brightness(1.05);
}

/* ---- Royal Decree ---- */
.decree {
  display: grid;
  place-items: center;
}

.decree__scroll {
  position: relative;
  max-width: 780px;
  padding: 48px clamp(28px, 5vw, 64px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 215, 131, 0.25), transparent 60%),
    linear-gradient(180deg, #fdf3d6, #f5e3b2);
  color: #1a100b;
  border: 1px solid rgba(26, 16, 11, 0.2);
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.decree__scroll::before,
.decree__scroll::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background: repeating-linear-gradient(90deg, #c48a1a 0 10px, #7e1f27 10px 20px);
}

.decree__scroll::before { top: 0; border-radius: 12px 12px 0 0; }
.decree__scroll::after { bottom: 0; border-radius: 0 0 12px 12px; }

.decree__scroll h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 10px 0 18px;
  color: #3a1d0a;
}

.decree__scroll p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(26, 16, 11, 0.82);
}

.decree__seal {
  width: 96px;
  height: 96px;
  margin: 26px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffd87a, #a8410f 70%);
  color: #fff7dc;
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 2px;
  box-shadow:
    0 10px 22px rgba(126, 31, 39, 0.45),
    inset 0 2px 6px rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.decree__sign {
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: rgba(26, 16, 11, 0.6);
}

/* ---- Pillars ---- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.pillar {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(244, 215, 131, 0.08), rgba(20, 13, 10, 0.2));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 215, 131, 0.55);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #c48a1a, #7e1f27);
}

.pillar__num {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 2.2rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.pillar h3 {
  margin: 0 0 8px;
  color: var(--bone);
  font-size: 1.15rem;
}

.pillar p {
  margin: 0;
  color: rgba(255, 246, 223, 0.72);
  line-height: 1.55;
}

/* ---- Royal Chronicle timeline ---- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 16px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(244, 215, 131, 0.35), transparent);
}

.timeline li {
  position: relative;
  padding: 16px 18px 16px 54px;
  border: 1px solid rgba(244, 215, 131, 0.18);
  border-radius: 10px;
  background: rgba(255, 246, 223, 0.045);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffd87a, #7e1f27 75%);
  box-shadow: 0 0 0 4px rgba(20, 13, 10, 0.9), 0 6px 14px rgba(126, 31, 39, 0.45);
}

.timeline__year {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.timeline h3 {
  margin: 0 0 6px;
  color: var(--bone);
  font-size: 1.1rem;
}

.timeline p {
  margin: 0;
  color: rgba(255, 246, 223, 0.72);
  line-height: 1.55;
}

/* ---- Gallery cards ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 28px 24px 26px;
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 12px;
  text-decoration: none;
  color: var(--bone);
  background:
    linear-gradient(180deg, rgba(244, 215, 131, 0.12), rgba(20, 13, 10, 0.25));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(244, 215, 131, 0.6);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.gallery-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--gold-bright);
}

.gallery-card p {
  margin: 0;
  color: rgba(255, 246, 223, 0.78);
  line-height: 1.55;
}

.gallery-cta {
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold-bright);
}

.gallery-card--forum    { background-image: linear-gradient(135deg, rgba(224, 0, 47, 0.18), rgba(20, 13, 10, 0.3)); }
.gallery-card--quiz     { background-image: linear-gradient(135deg, rgba(244, 215, 131, 0.22), rgba(20, 13, 10, 0.3)); }
.gallery-card--shop     { background-image: linear-gradient(135deg, rgba(196, 138, 26, 0.22), rgba(20, 13, 10, 0.3)); }
.gallery-card--quotes   { background-image: linear-gradient(135deg, rgba(126, 31, 39, 0.28), rgba(20, 13, 10, 0.3)); }

/* ---- Final Bow ---- */
.final-bow {
  text-align: center;
}

.final-bow__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 56px);
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(244, 215, 131, 0.18), transparent 70%),
    linear-gradient(180deg, rgba(255, 246, 223, 0.04), rgba(20, 13, 10, 0.2));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.final-bow__inner h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--bone);
  margin: 10px 0 14px;
}

.final-bow__inner p {
  color: rgba(255, 246, 223, 0.76);
  margin: 0 0 22px;
  line-height: 1.6;
}

.final-bow__inner .hero__actions {
  justify-content: center;
}

/* ---- Quotes disclaimer ---- */
.quotes-disclaimer {
  text-align: center;
  font-style: italic;
  color: rgba(255, 246, 223, 0.6);
  margin: -10px 0 22px;
  letter-spacing: 0.04em;
}

/* ---- Crown rain easter egg ---- */
@keyframes crown-fall {
  0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0.95; }
}

.crown-drop {
  position: fixed;
  top: -10vh;
  z-index: 9999;
  pointer-events: none;
  animation: crown-fall linear forwards;
  filter: drop-shadow(0 4px 8px rgba(244, 215, 131, 0.45));
}

/* ---- Toast easter egg ---- */
.tk-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 30px);
  z-index: 10000;
  padding: 12px 22px;
  background: linear-gradient(135deg, #170b06, #3a1d0a);
  color: var(--gold-bright);
  border: 1px solid rgba(244, 215, 131, 0.55);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
}

.tk-toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---- TK MODE (konami) ---- */
@keyframes tk-mode-pulse {
  0%, 100% { box-shadow: inset 0 0 120px rgba(244, 215, 131, 0.25); }
  50%      { box-shadow: inset 0 0 220px rgba(224, 0, 47, 0.45); }
}

body.tk-mode {
  animation: tk-mode-pulse 1.4s ease-in-out infinite;
}

body.tk-mode .brand img {
  animation: tk-mode-spin 2s linear infinite;
}

@keyframes tk-mode-spin {
  to { transform: rotate(360deg); }
}

/* ---- Cabo mode console toggle ---- */
body.cabo-mode {
  filter: hue-rotate(-12deg) saturate(1.15) brightness(1.04);
}

body.cabo-mode::before {
  content: "🌴  CABO MODE  🌴";
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 9998;
  padding: 6px 12px;
  background: rgba(20, 13, 10, 0.85);
  color: var(--gold-bright);
  border: 1px solid rgba(244, 215, 131, 0.45);
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  pointer-events: none;
}

/* ---- Spinning seal easter egg ---- */
@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

.decree__seal.seal--spinning {
  animation: seal-spin 3s linear infinite;
}

.decree__seal {
  cursor: pointer;
  transition: transform 200ms ease;
}

.decree__seal:hover {
  transform: scale(1.06);
}

/* ---- Crown hint pointer ---- */
.crown-hint {
  cursor: pointer;
  user-select: none;
}

/* ---- Gold sparkle trail ---- */
@keyframes tk-trail-fade {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

.tk-trail {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #f4d783 40%, rgba(244, 215, 131, 0) 75%);
  box-shadow: 0 0 12px rgba(244, 215, 131, 0.7);
  transform: translate(-50%, -50%);
  animation: tk-trail-fade 700ms ease-out forwards;
}

/* ---- Simplified shop hero ---- */
.shop-hero--simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid rgba(244, 215, 131, 0.18);
  margin-bottom: 28px;
}

.shop-hero--simple h1 {
  margin: 6px 0 6px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--bone);
}

.shop-hero--simple p {
  margin: 0;
  color: rgba(255, 246, 223, 0.74);
}

/* ---- Cart button ---- */
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #c48a1a, #7e1f27);
  color: var(--bone);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(126, 31, 39, 0.4);
  cursor: pointer;
  transition: transform 200ms ease;
}

.cart-button strong {
  background: rgba(20, 13, 10, 0.55);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.95rem;
}

.cart-button:hover { transform: translateY(-2px); }

@keyframes cart-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.cart-button.is-pulse { animation: cart-pulse 360ms ease; }

/* ---- Product card refinements ---- */
.product-rating {
  color: #c48a1a;
  font-weight: 800;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #7e1f27;
  margin: 0 0 10px;
  font-family: Georgia, serif;
}

.size-picker {
  display: flex;
  gap: 8px;
  margin: 4px 0 12px;
}

.size-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-picker label {
  cursor: pointer;
}

.size-picker span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(26, 16, 11, 0.18);
  border-radius: 8px;
  font-weight: 800;
  background: #fff;
  color: #1a100b;
  transition: all 160ms ease;
}

.size-picker input:checked + span {
  background: #1a100b;
  color: #f4d783;
  border-color: #1a100b;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(26, 16, 11, 0.85);
}

.buy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.buy-row .primary-btn,
.buy-row .secondary-btn {
  padding: 12px 14px;
  font-size: 0.92rem;
}

/* ---- Cart drawer ---- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(20, 13, 10, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms;
}

.cart-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: linear-gradient(180deg, #fff8e6, #f5e3b2);
  color: #1a100b;
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 280ms ease;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(26, 16, 11, 0.12);
}

.cart-drawer__panel h2 {
  margin: 0;
  font-family: Georgia, serif;
  color: #3a1d0a;
}

.cart-close {
  border: 0;
  background: transparent;
  font-size: 1.8rem;
  cursor: pointer;
  color: #3a1d0a;
  line-height: 1;
}

.cart-items {
  overflow-y: auto;
  padding: 14px 18px;
  display: grid;
  gap: 12px;
}

.cart-empty {
  text-align: center;
  padding: 30px 10px;
  color: rgba(26, 16, 11, 0.6);
  font-style: italic;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(26, 16, 11, 0.08);
  border-radius: 8px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item strong {
  display: block;
  font-size: 0.95rem;
  color: #1a100b;
  line-height: 1.25;
}

.cart-item span {
  display: block;
  font-size: 0.78rem;
  color: rgba(26, 16, 11, 0.6);
  margin-top: 2px;
}

.cart-item__right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #7e1f27;
}

.cart-remove {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: rgba(26, 16, 11, 0.5);
  line-height: 1;
}

.cart-remove:hover { color: #7e1f27; }

.cart-drawer__panel footer {
  padding: 18px 22px;
  border-top: 1px solid rgba(26, 16, 11, 0.12);
  display: grid;
  gap: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a100b;
}

.cart-total strong {
  color: #7e1f27;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.cart-note {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(26, 16, 11, 0.55);
  font-style: italic;
}

/* ---- Checkout modal ---- */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 10005;
  background: rgba(20, 13, 10, 0.7);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 280ms ease;
}

.checkout-modal.is-shown { opacity: 1; }

.checkout-modal__panel {
  width: min(440px, 92vw);
  padding: 36px 30px;
  text-align: center;
  background: linear-gradient(180deg, #fff8e6, #f5e3b2);
  color: #1a100b;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 280ms ease;
}

.checkout-modal.is-shown .checkout-modal__panel { transform: scale(1); }

.checkout-modal__seal {
  font-size: 3rem;
  margin-bottom: 6px;
}

.checkout-modal h2 {
  margin: 0 0 10px;
  font-family: Georgia, serif;
  color: #3a1d0a;
}

.checkout-modal__fine {
  margin: 14px 0 22px;
  font-size: 0.85rem;
  color: rgba(26, 16, 11, 0.65);
  line-height: 1.5;
}

/* ---- Duolingo-style quiz ---- */
.quiz-hero--duo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.quiz-hero--duo h1 {
  font-family: Georgia, serif;
  margin: 6px 0 6px;
  color: var(--bone);
}

.quiz-scorecard--duo {
  background: linear-gradient(135deg, #c48a1a, #7e1f27);
  border: 0;
  border-radius: 14px;
  padding: 18px 22px;
  color: var(--bone);
  text-align: center;
  box-shadow: 0 16px 36px rgba(126, 31, 39, 0.4);
}

.quiz-scorecard--duo strong {
  display: block;
  font-size: 2rem;
  font-family: Georgia, serif;
  margin: 4px 0;
}

.duo-start {
  text-align: center;
  padding: 20px 10px;
}

.duo-mascot {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.duo-mascot img {
  width: 110px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(244, 215, 131, 0.35));
  animation: duo-bounce 2.4s ease-in-out infinite;
}

@keyframes duo-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.duo-speech {
  position: absolute;
  left: 110%;
  top: 30%;
  white-space: nowrap;
  background: var(--bone);
  color: #1a100b;
  padding: 8px 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.duo-speech::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: var(--bone);
}

.duo-start h2 {
  font-family: Georgia, serif;
  color: var(--bone);
  font-size: 1.7rem;
  margin: 8px 0 8px;
}

.duo-start p {
  color: rgba(255, 246, 223, 0.78);
  margin: 0 auto 18px;
  max-width: 460px;
  line-height: 1.55;
}

.duo-features {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.duo-features div {
  background: rgba(255, 246, 223, 0.06);
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 14px;
  padding: 14px 22px;
  min-width: 92px;
  display: grid;
  gap: 2px;
}

.duo-features strong {
  font-family: Georgia, serif;
  font-size: 1.7rem;
  color: var(--gold-bright);
}

.duo-features span {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 246, 223, 0.6);
}

/* Big duo-style answer buttons */
.answer {
  position: relative;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 18px 22px !important;
  border: 2px solid rgba(244, 215, 131, 0.28) !important;
  border-bottom-width: 5px !important;
  border-radius: 14px !important;
  transition: transform 120ms ease, border-color 160ms, background 160ms;
  background: rgba(255, 246, 223, 0.05) !important;
}

.answer:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--gold-bright) !important;
  background: rgba(244, 215, 131, 0.08) !important;
}

.answer:active:not(:disabled) {
  transform: translateY(0);
  border-bottom-width: 2px !important;
}

.answer.is-correct {
  background: rgba(88, 204, 2, 0.18) !important;
  border-color: #58cc02 !important;
  color: #d2f8a8 !important;
}

.answer.is-wrong {
  background: rgba(255, 75, 75, 0.18) !important;
  border-color: #ff4b4b !important;
  color: #ffd0d0 !important;
  animation: shake 0.4s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.primary-btn--duo {
  background: linear-gradient(180deg, #f4d783, #c48a1a);
  color: #1a100b !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 4px solid #7e1f27;
  border-radius: 14px;
  padding: 14px 28px;
  transition: transform 100ms ease;
}

.primary-btn--duo:hover { transform: translateY(-2px); }
.primary-btn--duo:active { transform: translateY(0); border-bottom-width: 2px; }

.duo-finish {
  text-align: center;
  padding: 18px 10px;
}

.duo-trophy {
  font-size: 4rem;
  margin-bottom: 6px;
  animation: duo-bounce 1.6s ease-in-out infinite;
}

.duo-finish h2 {
  font-family: Georgia, serif;
  color: var(--gold-bright);
  font-size: 2rem;
  margin: 0 0 6px;
}

.duo-finish__score {
  font-size: 1.2rem;
  color: var(--bone);
  margin: 0 0 4px;
}

.duo-finish__score strong { color: var(--gold-bright); }

.duo-finish__tier {
  margin: 0 0 22px;
  color: rgba(255, 246, 223, 0.7);
}

.duo-finish__tier span {
  display: inline-block;
  margin-left: 6px;
  background: rgba(244, 215, 131, 0.12);
  border: 1px solid rgba(244, 215, 131, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.85rem;
}

/* ===== Royal Polish Layer ===== */

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Section divider ornament */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 40px auto;
  width: min(720px, 92%);
  color: var(--gold);
  opacity: 0.7;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 131, 0.6), transparent);
}
.section-divider span {
  font-size: 1.3rem;
  color: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(244, 215, 131, 0.4));
  animation: divider-pulse 4s ease-in-out infinite;
}
@keyframes divider-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 1; }
}

/* Hero giant background text */
.hero { position: relative; overflow: hidden; }
.hero__bigtext {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: rgba(244, 215, 131, 0.045);
  -webkit-text-stroke: 1px rgba(244, 215, 131, 0.05);
  user-select: none;
  mix-blend-mode: screen;
}
.hero__bigtext span {
  display: inline-block;
  animation: hero-bigtext-scroll 60s linear infinite;
}
.hero__bigtext span:nth-child(2) { animation-direction: reverse; animation-duration: 80s; }
@keyframes hero-bigtext-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero copy + crown stay above */
.hero__copy, .crown-stage, .royal-procession, .kingdom-sky { position: relative; z-index: 2; }

/* Hero ambient particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, #f4d783 50%, transparent 70%);
  box-shadow: 0 0 8px rgba(244, 215, 131, 0.6);
  animation: hero-particle-rise linear infinite;
}
@keyframes hero-particle-rise {
  0%   { transform: translateY(20vh) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}

/* Tilt cards */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--shine-x, 50%) var(--shine-y, 50%),
    rgba(244, 215, 131, 0.18),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 220ms ease;
  border-radius: inherit;
  z-index: 1;
}
.tilt-card:hover::before { opacity: 1; }

/* Magnetic buttons (transform set inline; smooth via transition) */
.primary-btn,
.secondary-btn,
.cart-button { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), background 200ms, box-shadow 200ms; }

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: radial-gradient(circle at center, #3a1d0a 0%, #0a0605 80%);
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  transition: opacity 480ms ease;
}
.page-transition__crest {
  font-size: 4rem;
  filter: drop-shadow(0 6px 14px rgba(244, 215, 131, 0.6));
  animation: crest-spin 1.4s linear infinite;
  opacity: 0.95;
}
@keyframes crest-spin {
  to { transform: rotate(360deg) scale(1.05); }
}
.page-transition.is-leaving { opacity: 0; }
.page-transition.is-entering { opacity: 0; pointer-events: all; }
.page-transition.is-entering.is-on { opacity: 1; }

/* Back to top — emoji crown button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(244, 215, 131, 0.5);
  background: radial-gradient(circle at 50% 40%, rgba(244, 215, 131, 0.18), rgba(58, 29, 10, 0.9) 60%, rgba(10, 6, 5, 0.95));
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 280ms ease, transform 280ms ease, box-shadow 280ms;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.back-to-top.is-shown { opacity: 1; transform: translateY(0) scale(1); }
.back-to-top:hover {
  box-shadow: 0 14px 40px rgba(244, 215, 131, 0.35);
  transform: translateY(-2px) scale(1.05) !important;
}
.back-to-top span {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
  animation: crownBob 2.4s ease-in-out infinite;
}
@keyframes crownBob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-4px) rotate(6deg); }
}


/* Ambient whispers */
.ambient-whisper {
  position: fixed;
  z-index: 9500;
  pointer-events: none;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 800;
  color: rgba(244, 215, 131, 0.7);
  text-shadow: 0 2px 12px rgba(244, 215, 131, 0.4);
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  opacity: 0;
  animation: whisper-flow 3.2s ease-in-out forwards;
}
@keyframes whisper-flow {
  0%   { opacity: 0; transform: translateY(0) scale(0.9); filter: blur(4px); }
  20%  { opacity: 1; transform: translateY(-6px) scale(1); filter: blur(0); }
  80%  { opacity: 1; transform: translateY(-22px); }
  100% { opacity: 0; transform: translateY(-40px); filter: blur(2px); }
}

/* ===================================================== */
/* ============= MOBILE OPTIMIZATION =================== */
/* ===================================================== */

@media (max-width: 860px) {
  /* Mobile header: centered crown logo on top row, polished pill nav below */
  .site-header {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: center !important;
    gap: 10px 8px;
    padding: 10px 14px 12px !important;
    background:
      radial-gradient(ellipse at 50% 0%, rgba(244, 215, 131, 0.16), transparent 70%),
      linear-gradient(180deg, rgba(20, 13, 10, 0.96), rgba(20, 13, 10, 0.82));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(244, 215, 131, 0.22);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  }
  .brand {
    justify-self: center;
    margin: 0 !important;
  }
  .brand img {
    height: 64px !important;
    filter: drop-shadow(0 4px 14px rgba(244, 215, 131, 0.35));
  }
  .site-header .audio-toggle { display: none !important; }
  .site-header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 4px;
    flex-wrap: nowrap;
    padding: 4px 0 2px;
  }
  .site-header nav a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    font-size: clamp(0.62rem, 2.6vw, 0.78rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 8px 4px;
    border-radius: 999px;
    border: 1px solid rgba(244, 215, 131, 0.28);
    background: rgba(255, 246, 223, 0.04);
    color: var(--bone);
    white-space: nowrap;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  }
  .site-header nav a[aria-current="page"] {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    background: rgba(244, 215, 131, 0.12);
    box-shadow: 0 0 0 1px rgba(244, 215, 131, 0.25), 0 4px 12px rgba(244, 215, 131, 0.15);
  }

  /* Hero: stack vertically, figure up top, text below */
  .hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 28px 18px 80px !important;
    gap: 16px !important;
    text-align: center;
  }
  .hero__copy { order: 2; }
  .crown-stage {
    order: 1;
    translate: 0 0 !important;
    height: clamp(320px, 50vh, 420px) !important;
    min-height: 0 !important;
    margin: 0 auto;
    width: 100%;
    max-width: 440px;
  }
  .hero__copy h1 {
    font-size: clamp(2.2rem, 10vw, 3.4rem) !important;
    text-align: center;
  }
  .hero__copy p:not(.eyebrow) {
    margin: 14px auto;
    font-size: 1rem !important;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
    margin: 0 auto;
    gap: 6px;
  }
  .hero__stats span { padding: 10px 6px; font-size: 0.78rem; }
  .hero__stats strong { font-size: 1.3rem; }

  /* Flags: reset desktop translates, make them smaller and flank the figure */
  .banner {
    width: clamp(56px, 16vw, 80px) !important;
    height: clamp(130px, 36vw, 180px) !important;
  }
  .banner--left {
    left: clamp(6px, 3vw, 16px) !important;
    right: auto !important;
    top: clamp(76px, 20vw, 100px) !important;
    translate: 0 0 !important;
  }
  .banner--right {
    right: clamp(6px, 3vw, 16px) !important;
    left: auto !important;
    top: clamp(76px, 20vw, 100px) !important;
    translate: 0 0 !important;
  }

  /* Hide heavy decorative pieces on mobile */
  .hero__bigtext { font-size: clamp(5rem, 32vw, 10rem); opacity: 0.5; }
  .royal-procession { display: none; }
  .castle-silhouette { display: none; }
  .hero::before { display: none; }
  .hero__particles { opacity: 0.6; }

  /* Sections: tighter padding */
  .section, section.section {
    padding: 40px 18px !important;
  }
  .section__heading h2,
  .decree__scroll h2,
  .final-bow h2 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
    line-height: 1.15;
  }
  .eyebrow { font-size: 0.7rem; }

  /* Decree */
  .decree__scroll { padding: 24px 18px; }
  .decree__seal { width: 70px; height: 70px; font-size: 1.3rem; }

  /* Gallery: 1 column */
  .gallery-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .gallery-card { padding: 22px 18px; }
  .gallery-card h3 { font-size: 1.3rem; }

  /* Shop */
  .shop-hero--simple { padding: 18px 16px; }
  .shop-hero--simple h1 { font-size: 1.6rem; }
  .product-grid { grid-template-columns: 1fr !important; gap: 16px; padding: 0 14px; }
  .product-card { padding: 16px; }
  .product-card h3 { font-size: 1.05rem; }
  .size-picker span { width: 36px; height: 36px; font-size: 0.9rem; }
  .cart-drawer__panel { width: 100vw !important; }
  .cart-button { padding: 10px 14px; font-size: 0.75rem; }

  /* Quiz */
  .quiz-hero,
  .quiz-hero--duo {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .quiz-hero h1 { font-size: 1.6rem !important; }
  .quiz-scorecard--duo { width: 100%; padding: 14px; }
  .quiz-layout,
  .quiz-layout--focused {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .quiz-card { padding: 20px 16px !important; }
  .quiz-card__top { flex-direction: column; align-items: flex-start; gap: 8px; }
  .duo-mascot img { width: 80px; }
  .duo-speech {
    position: static;
    display: block;
    margin: 8px auto 0;
    max-width: fit-content;
  }
  .duo-speech::before { display: none; }
  .answer {
    font-size: 0.95rem !important;
    padding: 14px 16px !important;
  }
  .duo-features { gap: 8px; }
  .duo-features div { padding: 10px 14px; min-width: 74px; }
  .duo-features strong { font-size: 1.3rem; }

  /* Forum */
  .forum-layout { grid-template-columns: 1fr !important; gap: 16px; }
  .forum-post, .post { padding: 16px !important; }
  .forum-post h3, .post h3 { font-size: 1.05rem; }
  .forum-stats { grid-template-columns: repeat(2, 1fr); }

  /* Quotes */
  .quotes-grid { grid-template-columns: 1fr !important; gap: 14px; }
  .quote-panel { padding: 20px 18px; }
  .quote-panel blockquote { font-size: 1rem; }

  /* Captcha gate */
  .gate__panel {
    padding: 22px 18px !important;
  }
  .gate h1 {
    font-size: 1.25rem !important;
  }
  .captcha-grid { gap: 6px; }
  .gate__actions { flex-direction: column; }
  .gate__actions button { width: 100%; }

  /* Disable tilt on touch (looks wobbly without steady pointer) */
  .tilt-card {
    transform: none !important;
  }
  .tilt-card::before { display: none; }

  /* Bigger back-to-top on mobile for tap targets */
  .back-to-top { width: 64px; height: 64px; right: 18px; bottom: 18px; }
  .back-to-top span { font-size: 2rem; }

  /* Section dividers: smaller */
  .section-divider { margin: 24px auto; width: 88%; }

  /* Primary/Secondary buttons: larger tap targets */
  .primary-btn, .secondary-btn {
    padding: 14px 20px;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* Kill sparkle cursor on mobile */
  .tk-trail { display: none; }
}

/* Extra small phones */
@media (max-width: 420px) {
  .hero__copy h1 { font-size: 2rem !important; }
  .crown-stage { height: 280px !important; }
  .banner { width: 52px !important; height: 120px !important; }
  .duo-features div { padding: 8px 12px; min-width: 62px; }
}

/* =========================================================
   TK's Worst Moments — ironic evidence gallery
   ========================================================= */
.worst-moments { position: relative; }
.worst-moments__subhead {
  text-align: center;
  max-width: 720px;
  margin: 8px auto 0;
  color: rgba(244, 215, 131, 0.78);
  font-style: italic;
  font-size: 1rem;
}
.worst-moments__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.worst-card {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 215, 131, 0.22);
  background: linear-gradient(165deg, rgba(30, 16, 10, 0.92), rgba(10, 6, 5, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}
.worst-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  border-color: rgba(244, 215, 131, 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65);
}
.worst-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 600ms ease;
}
.worst-card:hover img { transform: scale(1.03); }
.worst-card figcaption {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(10, 6, 5, 0) 0%, rgba(10, 6, 5, 0.6) 100%);
}
.worst-card__tag {
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f4d783;
  border: 1px solid rgba(244, 215, 131, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  width: fit-content;
}
.worst-card figcaption p {
  margin: 0;
  color: var(--bone, #f5ecd4);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
}
.worst-moments__verdict {
  text-align: center;
  margin: 28px auto 0;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  color: #f4d783;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* =========================================================
   Renaissance Carousel Banner — scrolling royal proclamation
   ========================================================= */
.renaissance-banner {
  position: relative;
  margin-top: -480px;
  margin-bottom: 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 26px 0 22px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
  z-index: 5;
}
.renaissance-banner__rope {
  position: absolute;
  top: 0;
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, rgba(244, 215, 131, 0.9), rgba(244, 215, 131, 0.25));
  box-shadow: 0 0 6px rgba(244, 215, 131, 0.7);
}
.renaissance-banner__rope--left  { left: 10%; }
.renaissance-banner__rope--right { right: 10%; }

.renaissance-banner__cloth {
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(255, 240, 200, 0.04) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #8b1a1a 0%, #6a0f0f 42%, #4a0606 100%);
  border-top: 2px solid rgba(244, 215, 131, 0.85);
  border-bottom: 2px solid rgba(244, 215, 131, 0.85);
  box-shadow:
    inset 0 0 0 6px rgba(10, 6, 5, 0.4),
    inset 0 0 0 7px rgba(244, 215, 131, 0.5),
    inset 0 4px 14px rgba(0, 0, 0, 0.6),
    inset 0 -4px 14px rgba(0, 0, 0, 0.6);
  padding: 18px 48px;
}

.renaissance-banner__tassel {
  position: absolute;
  top: -6px;
  width: 34px;
  height: 44px;
  background:
    radial-gradient(circle at 50% 18%, #f4d783 0%, #c89a2e 60%, #6f4a12 100%);
  border-radius: 50% 50% 30% 30% / 40% 40% 60% 60%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.renaissance-banner__tassel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 18px;
  height: 22px;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(90deg, #f4d783 0 2px, #a77923 2px 4px);
  border-radius: 0 0 40% 40%;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,0.6));
}
.renaissance-banner__tassel--left  { left: -6px;  }
.renaissance-banner__tassel--right { right: -6px; }

.renaissance-banner__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.renaissance-banner__marquee {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: renaissanceScroll 44s linear infinite;
}
.renaissance-banner:hover .renaissance-banner__marquee { animation-play-state: paused; }

.renaissance-banner__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.04em;
  color: #f9e7b3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 14px rgba(244, 215, 131, 0.18);
  white-space: nowrap;
}
.renaissance-banner__item .fleur {
  font-size: 1.3em;
  color: #f4d783;
  filter: drop-shadow(0 0 6px rgba(244, 215, 131, 0.5));
  font-style: normal;
}

@keyframes renaissanceScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Special Thanks page
   ========================================================= */
.thanks {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 90px) clamp(18px, 5vw, 40px) !important;
}
.thanks__heading {
  text-align: center;
  margin-bottom: 38px;
}
.thanks__heading h1 {
  margin: 8px 0 14px;
  color: var(--gold-bright, #f4d783);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.2rem);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 215, 131, 0.25);
}
.thanks__lede {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 246, 223, 0.85);
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.6;
}

.thanks-card {
  position: relative;
  padding: 44px clamp(22px, 4vw, 44px) 36px;
  border-radius: 6px;
  border: 2px solid rgba(244, 215, 131, 0.7);
  background:
    repeating-linear-gradient(45deg, rgba(255, 240, 200, 0.04) 0 10px, transparent 10px 20px),
    radial-gradient(circle at 0% 0%, rgba(244, 215, 131, 0.16), transparent 50%),
    linear-gradient(165deg, #2c0f12 0%, #1a0708 55%, #0f0405 100%);
  box-shadow:
    inset 0 0 0 6px rgba(10, 6, 5, 0.4),
    inset 0 0 0 7px rgba(244, 215, 131, 0.5),
    inset 0 0 60px rgba(0, 0, 0, 0.5),
    0 24px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.thanks-card::before,
.thanks-card::after {
  content: "❦";
  position: absolute;
  font-family: Georgia, serif;
  color: rgba(244, 215, 131, 0.85);
  font-size: 1.3rem;
}
.thanks-card::before { top: 12px; left: 16px; }
.thanks-card::after  { bottom: 12px; right: 16px; }

.thanks-card__crest {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 800;
  font-size: 2rem;
  color: #2a1008;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 246, 223, 0.95), transparent 40%),
    linear-gradient(145deg, #f4d783, #c89a2e, #6f4a12);
  border: 3px solid rgba(244, 215, 131, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 246, 223, 0.6);
}
.thanks-card--tyler .thanks-card__crest {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.thanks-card__role {
  margin: 0;
  color: rgba(244, 215, 131, 0.7);
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.thanks-card h2 {
  margin: 6px 0 18px;
  color: var(--gold-bright, #f4d783);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 18px rgba(244, 215, 131, 0.2);
}
.thanks-card__body {
  max-width: 580px;
  margin: 0 auto 14px;
  color: rgba(255, 246, 223, 0.88);
  font-family: Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.6;
}
.thanks-card__body strong {
  color: #f4d783;
  font-weight: 700;
}
.thanks-card__body em {
  color: #f4d783;
  font-style: italic;
}
.thanks-card__quiet {
  font-style: italic;
  color: rgba(255, 246, 223, 0.7);
  font-size: 0.96rem;
}
.thanks-card__sign {
  margin: 18px 0 0;
  color: rgba(244, 215, 131, 0.78);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.thanks-divider {
  text-align: center;
  margin: 32px auto;
  color: rgba(244, 215, 131, 0.5);
  font-size: 1.2rem;
}
.thanks-divider::before,
.thanks-divider::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 80px;
  height: 1px;
  margin: 0 12px;
  background: linear-gradient(90deg, transparent, rgba(244, 215, 131, 0.6), transparent);
}

.thanks__footer {
  text-align: center;
  margin: 36px auto 22px;
  color: rgba(244, 215, 131, 0.7);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
}
.thanks__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .thanks-card { padding: 36px 18px 28px; }
  .thanks-card__crest { width: 76px; height: 76px; font-size: 1.6rem; }
  .thanks-card--tyler .thanks-card__crest { font-size: 1.3rem; }
  .thanks-divider::before,
  .thanks-divider::after { width: 40px; }
}

/* =========================================================
   404 page
   ========================================================= */
.not-found {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 8vw, 100px) clamp(18px, 5vw, 32px) !important;
}
.not-found__crest {
  display: inline-grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 0 auto 22px;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 800;
  font-size: 3rem;
  color: #2a1008;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 246, 223, 0.95), transparent 40%),
    linear-gradient(145deg, #f4d783, #c89a2e, #6f4a12);
  border: 3px solid rgba(244, 215, 131, 0.85);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 246, 223, 0.6);
}
.not-found h1 {
  margin: 8px 0 14px;
  color: var(--gold-bright, #f4d783);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5), 0 0 24px rgba(244, 215, 131, 0.25);
}
.not-found__lede {
  color: rgba(255, 246, 223, 0.85);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  margin: 0 auto 24px;
  max-width: 540px;
}
.not-found__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 28px;
  max-width: 520px;
  display: grid;
  gap: 10px;
  text-align: left;
}
.not-found__list li {
  position: relative;
  padding: 12px 16px 12px 38px;
  border: 1px solid rgba(244, 215, 131, 0.22);
  border-radius: 6px;
  background: rgba(20, 13, 10, 0.55);
  color: rgba(255, 246, 223, 0.85);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.45;
}
.not-found__list li::before {
  content: "♛";
  position: absolute;
  left: 14px;
  top: 12px;
  color: #f4d783;
}
.not-found__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.not-found__sign {
  color: rgba(244, 215, 131, 0.7);
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* =========================================================
   Mobile: renaissance banner + newsletter + worst-moments
   ========================================================= */
@media (max-width: 860px) {
  /* Reset desktop margin-pull (which compensated for crown-stage translate). On mobile crown isn't translated. */
  .renaissance-banner {
    margin-top: 0 !important;
  }
  .renaissance-banner { padding: 18px 0 14px; }
  .renaissance-banner__cloth { padding: 14px 28px; }
  .renaissance-banner__marquee { gap: 34px; animation-duration: 34s; }
  .renaissance-banner__tassel { width: 24px; height: 32px; }

  /* Newsletter: stack, shrink ornaments */
  .newsletter-card {
    grid-template-columns: 1fr !important;
    padding: 30px 20px !important;
    gap: 22px !important;
    text-align: center;
  }
  .newsletter-card .eyebrow {
    justify-content: center;
  }
  .newsletter-card h2 {
    font-size: clamp(1.4rem, 5vw, 1.9rem) !important;
    margin: 10px auto 0 !important;
  }
  .newsletter-card p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.98rem;
  }
  .newsletter-card::before { top: 8px; left: 12px; font-size: 1rem; }
  .newsletter-card::after  { bottom: 8px; right: 12px; font-size: 1rem; }
  .newsletter-form { padding: 28px 16px 18px; }
  .newsletter-form::before { width: 38px; height: 38px; font-size: 1.1rem; top: -19px; }

  /* Worst Moments: 1 column on small phones, 2 on tablets */
  .worst-moments__grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 24px;
  }
  .worst-card img { aspect-ratio: 1 / 1; }
  .worst-moments__verdict { font-size: 1rem; padding: 0 8px; }
  .worst-moments__subhead { font-size: 0.95rem; }

  /* Hero bigtext: don't let it overflow horizontally */
  .hero { overflow: hidden; }
  .hero__bigtext { white-space: nowrap; }

  /* Final bow: tighten */
  .final-bow__inner { padding: 20px 6px; }
  .final-bow .hero__actions { justify-content: center; }

  /* iMessage / iOS safe-area awareness */
  .site-header { padding-top: max(10px, env(safe-area-inset-top)) !important; }
}

/* Tablets: 2-col worst moments */
@media (min-width: 561px) and (max-width: 860px) {
  .worst-moments__grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
