:root {
  --ink: #f6ead0;
  --muted: #cbbda0;
  --gold: #e0b65e;
  --gold-dark: #8d5c1c;
  --deep: #110c08;
  --panel: #251a10;
  --panel-2: #171008;
  --line: #6e4c25;
  --line-soft: rgba(224, 182, 94, .24);
  --red: #852b22;
  --teal: #168a8c;
  --green: #315f43;
  --shadow: rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--deep); color: var(--ink); font-family: Georgia, "Times New Roman", serif; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -10%, rgba(130, 76, 25, .5), transparent 38rem),
    radial-gradient(circle at 5% 40%, rgba(13, 91, 86, .12), transparent 30rem),
    linear-gradient(180deg, #23170e 0, #120d08 30rem, #0d0906 100%);
  position: relative;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
body::before {
  background-image:
    linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.018) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(255,255,255,.018) 50%, transparent 50.2%);
  background-size: 48px 48px;
  opacity: .3;
}
body::after {
  background: radial-gradient(ellipse at center, transparent 38%, rgba(0,0,0,.55) 100%);
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .07;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E");
}

img, video { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { touch-action: manipulation; }
a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 3;
}
.mini-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.mini-brand > span:last-child { display: grid; gap: 1px; }
.mini-brand strong { font-size: .95rem; letter-spacing: .045em; text-transform: uppercase; color: var(--gold); }
.mini-brand small { font: 500 .7rem/1.2 system-ui, sans-serif; color: var(--muted); }
.mini-crest {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px double var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
  background: rgba(0,0,0,.25);
  box-shadow: 0 0 0 4px rgba(224,182,94,.06);
}
.header-privacy { font-size: .84rem; }

.page-shell { width: min(1180px, calc(100% - 24px)); margin: 0 auto; position: relative; z-index: 1; }
.panel,
.panel-ornate {
  position: relative;
  background:
    linear-gradient(145deg, rgba(55,38,21,.97), rgba(25,17,10,.98)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.025);
  overflow: hidden;
}
.panel::before,
.panel-ornate::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(224,182,94,.12);
  border-radius: 12px;
  pointer-events: none;
}
.panel { padding: clamp(24px, 5vw, 48px); margin: 22px 0; }
.panel-ornate { margin: 12px 0 22px; }

.hero {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(420px, 1.14fr);
  min-height: 680px;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  left: 41%;
  top: 5%;
  bottom: 5%;
  width: 1px;
  background: linear-gradient(transparent, var(--line), transparent);
  opacity: .7;
}
.hero-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 8px 10px 18px;
  background:
    radial-gradient(circle at 50% 34%, rgba(224,182,94,.12), transparent 42%),
    linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.38));
}
.hero-brand img {
  width: min(100%, 520px);
  max-height: 650px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.45));
}
.hero-brand p {
  margin: -8px 0 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .73rem;
  font-weight: 700;
}
.quest-reveal {
  text-align: center;
  padding: clamp(30px, 5vw, 62px) clamp(22px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sticker-stage {
  width: min(100%, 420px);
  height: 310px;
  display: grid;
  place-items: center;
  margin: 4px auto 8px;
  position: relative;
}
.sticker-stage::before {
  content: "";
  width: 78%;
  height: 44%;
  position: absolute;
  bottom: 4%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,.62), transparent 68%);
  filter: blur(8px);
}
.sticker-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.4));
}
.hidden-sticker-stage::after {
  content: "SECRET FIND";
  position: absolute;
  right: 3%;
  top: 9%;
  z-index: 2;
  padding: 7px 10px;
  color: #241406;
  background: var(--gold);
  border: 2px solid #f5d98d;
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .12em;
  transform: rotate(7deg);
}

h1, h2, h3 { line-height: 1.04; margin: .34em 0; }
h1 { color: var(--gold); font-size: clamp(2.15rem, 5.5vw, 4.55rem); text-transform: uppercase; letter-spacing: .015em; text-shadow: 0 3px 0 #000; }
h2 { font-size: clamp(1.85rem, 4vw, 3.25rem); }
.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 800;
}
.found-label { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; }
.quest-title { font-size: 1.22rem; font-style: italic; margin: 5px 0 2px; }
.quest-copy { max-width: 620px; margin: 14px auto; color: var(--muted); line-height: 1.6; }
.section-heading { max-width: 760px; }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 22px; }
.badges span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.2);
  font-size: .8rem;
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}

.primary,
.secondary,
.seal {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.primary {
  color: #1c1004;
  background: linear-gradient(#f0cc78, #bc7e24);
  border: 1px solid #f2d791;
  border-radius: 9px;
  padding: 14px 21px;
  box-shadow: 0 5px 0 #714411, 0 11px 23px rgba(0,0,0,.3);
}
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(2px); box-shadow: 0 3px 0 #714411; }
.primary:disabled { opacity: .6; cursor: default; filter: grayscale(.35); }
.secondary {
  color: var(--ink);
  background: rgba(0,0,0,.14);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 16px;
}
.secondary:hover { border-color: var(--gold); }
.claim-button { min-width: min(100%, 290px); }
.small { color: var(--muted); font: 500 .85rem/1.45 system-ui, sans-serif; }
.completion-message { min-height: 1.25rem; margin-bottom: 0; }
.royal-identity {
  margin: 22px auto 0;
  padding: 15px 20px;
  width: min(100%, 620px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.15);
}
.royal-identity[hidden] { display: none; }
.royal-identity span { display: block; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .17em; }
.royal-identity strong { display: block; color: var(--gold); font-size: clamp(1.25rem, 4vw, 1.8rem); margin-top: 5px; }

.fortune-panel {
  min-height: 480px;
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(280px, 1fr) minmax(180px, .75fr);
  align-items: end;
  padding: 0 clamp(14px, 4vw, 44px);
  background:
    radial-gradient(circle at center, rgba(125,37,31,.22), transparent 35%),
    linear-gradient(145deg, rgba(47,35,20,.97), rgba(24,17,10,.99));
}
.fortune-character {
  align-self: end;
  justify-self: center;
  max-height: 455px;
  width: 100%;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.4));
}
.fortune-left { transform: translateX(-2%); }
.fortune-right { transform: translateX(2%); }
.fortune-copy { text-align: center; align-self: center; z-index: 2; padding: 40px 8px; }
.fortune-copy p:not(.eyebrow) { color: var(--muted); line-height: 1.55; min-height: 4.7em; }
.seal {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  color: #f8d79e;
  background: radial-gradient(circle at 34% 28%, #da6b52, #85271f 60%, #3e0f0d);
  border: 7px double #e4aa62;
  box-shadow: 0 8px 21px rgba(0,0,0,.6), inset 0 0 20px rgba(0,0,0,.35);
}
.seal span { display: grid; place-items: center; width: 100%; height: 100%; border: 1px solid rgba(255,225,165,.24); border-radius: 50%; }

.kingdom-panel { padding-bottom: 0; }
.kingdom-panel .section-heading { text-align: center; margin: 0 auto 10px; }
.character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  margin: 10px -12px 0;
}
.character-card {
  min-width: 0;
  height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  background: radial-gradient(circle at 50% 35%, rgba(224,182,94,.12), rgba(0,0,0,.25) 62%);
}
.character-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, rgba(8,5,3,.96));
}
.character-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.35));
}
.character-card div { position: relative; z-index: 2; padding: 22px 14px 16px; text-align: center; }
.character-card strong { display: block; color: var(--gold); font-size: 1.15rem; }
.character-card span { display: block; margin-top: 5px; color: var(--muted); font-size: .76rem; font-style: italic; }
.king-card { height: 480px; }

.collection-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.collection-tally {
  flex: 0 0 auto;
  min-width: 126px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.18);
  text-align: center;
}
.collection-tally strong { display: block; color: var(--gold); font-size: 2.3rem; line-height: 1; }
.collection-tally span { color: var(--muted); font-size: .73rem; }
.quest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; }
.quest-card {
  min-width: 0;
  min-height: 154px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 13px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(20,14,8,.92), rgba(35,23,12,.88));
  transition: border-color .2s, background .2s, transform .2s;
}
.quest-card.complete { border-color: #6f9e7c; background: linear-gradient(135deg, #102218, #1c3324); }
.quest-card.complete .quest-check { background: var(--green); border-color: #8ac49c; color: #fff; }
.quest-art { position: relative; height: 132px; display: grid; place-items: center; }
.quest-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 5px rgba(0,0,0,.45)); }
.quest-check {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  background: #151008;
  font-weight: 900;
}
.quest-card-copy { min-width: 0; }
.quest-card-copy strong { display: block; line-height: 1.17; }
.quest-card-copy small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.discovery-meter { height: 6px; background: #0c0906; border-radius: 999px; overflow: hidden; margin: 10px 0 6px; border: 1px solid #3d2b17; }
.discovery-meter span { display: block; height: 100%; background: linear-gradient(90deg, #9b6421, #e1bd68); border-radius: 999px; transition: width .25s; }
.quest-discoveries { display: block; color: var(--muted); font-size: .72rem; font-style: normal; }
.hidden-quest:not(.complete) .quest-art img { filter: brightness(0) drop-shadow(0 5px 5px rgba(0,0,0,.65)); opacity: .55; }
.hidden-quest:not(.complete) .quest-art::after { content: "?"; position: absolute; color: var(--gold); font-size: 3.4rem; font-weight: 800; text-shadow: 0 3px #000; }
.hidden-quest.complete .quest-card-name { color: var(--gold); }

.guestbook-panel {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(500px, 1.28fr);
  padding: 0;
}
.guestbook-art { min-height: 680px; display: flex; align-items: end; background: radial-gradient(circle at center, rgba(18,138,140,.16), transparent 50%); }
.guestbook-art img { width: 100%; max-height: 670px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 12px rgba(0,0,0,.45)); }
.guestbook-content { padding: clamp(28px, 5vw, 52px); }
.guestbook-content > p { color: var(--muted); line-height: 1.55; }

label { display: block; margin: 14px 0; font-weight: 700; }
label span, small { color: var(--muted); font-weight: 400; }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
input, textarea, select {
  width: 100%;
  margin-top: 7px;
  color: var(--ink);
  background: rgba(14,10,7,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  font: 1rem system-ui, sans-serif;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224,182,94,.11); }
textarea { resize: vertical; }
.upload-box { border: 1px dashed var(--gold); padding: 18px; border-radius: 10px; background: rgba(10,7,5,.42); }
.upload-box span { display: block; margin: 5px 0 10px; }
.upload-box input { padding: 10px; }
.camera-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }
#record-status { color: var(--muted); font: .82rem system-ui, sans-serif; }
#camera-preview { width: 100%; max-height: 420px; background: #000; border-radius: 10px; margin-bottom: 14px; }


.privacy-choice {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(10,7,5,.42);
}
.privacy-choice legend {
  padding: 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .04em;
}
.check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0;
  padding: 11px;
  border: 1px solid rgba(224,182,94,.18);
  border-radius: 9px;
  background: rgba(0,0,0,.13);
  cursor: pointer;
}
.check-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--gold);
}
.check-row span { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.check-row strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: .92rem; }
.required-choice { border-color: rgba(224,182,94,.42); }
.compact-choice { padding: 9px 10px; }
.compact-choice span { font-size: .82rem; }

.gallery { columns: 3 240px; column-gap: 14px; margin-top: 18px; }
.gallery-card { break-inside: avoid; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #120e09; margin: 0 0 14px; }
.gallery-card img, .gallery-card video { width: 100%; display: block; }
.gallery-copy { padding: 15px; }
.gallery-copy small, .gallery-copy em { display: block; color: var(--muted); margin-top: 5px; }
.gallery-copy p { line-height: 1.45; }
.gallery-title { display: block; color: var(--gold); font-size: .82rem; font-style: italic; margin: 3px 0; }
.empty-state { column-span: all; display: grid; grid-template-columns: minmax(200px, 420px) 1fr; gap: 24px; align-items: center; min-height: 280px; color: var(--muted); }
.empty-state img { max-height: 300px; object-fit: contain; }

footer { text-align: center; color: var(--muted); padding: 28px 20px 70px; position: relative; z-index: 1; }
footer img { display: block; height: 150px; width: 260px; object-fit: contain; margin: 0 auto -8px; opacity: .9; }
.link-button { background: none; border: 0; color: var(--gold); text-decoration: underline; cursor: pointer; }

.consent { position: fixed; inset: 0; background: rgba(0,0,0,.76); display: grid; place-items: end center; padding: 18px; z-index: 50; backdrop-filter: blur(5px); overflow-y: auto; }
.consent[hidden] { display: none; }
.consent-card {
  width: min(850px, 100%);
  display: grid;
  grid-template-columns: 225px 1fr;
  align-items: end;
  background: linear-gradient(135deg, #2d1e11, #171008);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 0 23px 23px 0;
  box-shadow: 0 20px 60px #000;
  overflow: hidden;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}
.consent-card > img { width: 100%; max-height: 300px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.consent-card > div { position: relative; padding-top: 23px; }
.consent-card strong { font-size: 1.35rem; }
.consent-card p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }


.modal-close {
  position: absolute;
  top: 10px;
  right: 0;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(0,0,0,.25);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}
.modal-close:hover { border-color: var(--gold); }
.claim-choice-card, .privacy-card { align-items: end; }
.claim-choice-card .consent-actions, .privacy-card .consent-actions { margin-top: 13px; }


.privacy-page { width: min(900px, calc(100% - 24px)); margin: 20px auto 60px; position: relative; z-index: 1; }
.privacy-page .panel { padding: clamp(28px, 6vw, 64px); }
.privacy-page h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); }
.privacy-page h2 { margin-top: 1.25em; color: var(--gold); font-size: clamp(1.4rem, 3vw, 2rem); }
.privacy-page p { color: var(--muted); line-height: 1.7; }
.privacy-page strong { color: var(--ink); }
.privacy-lead { font-size: 1.08rem; }
.privacy-return { display: inline-block; text-decoration: none; }

/* Admin */
.admin-login { max-width: 520px; margin: 10vh auto; }
.admin-wrap { width: min(1180px, calc(100% - 24px)); margin: 30px auto; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.stat strong { font-size: 1.75rem; display: block; color: var(--gold); }
.stat span { color: var(--muted); font-size: .78rem; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
code { color: #f1c66e; }
.admin-sticker-thumb { width: 70px; height: 70px; object-fit: contain; }
.admin-entry { display: grid; grid-template-columns: 160px 1fr; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.admin-entry img, .admin-entry video { width: 160px; max-height: 160px; object-fit: cover; border-radius: 8px; }
.admin-entry form { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: .82fr 1.18fr; }
  .hero-brand img { max-height: 570px; }
  .quest-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .character-card, .king-card { height: 420px; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero-brand { padding: 20px 16px 0; max-height: 500px; }
  .hero-brand img { max-height: 455px; width: min(100%, 500px); }
  .quest-reveal { padding-top: 22px; }
  .sticker-stage { height: 300px; }
  .fortune-panel { min-height: 440px; grid-template-columns: .7fr 1.3fr .7fr; }
  .fortune-character { max-height: 390px; }
  .character-grid { grid-template-columns: repeat(2, 1fr); margin: 16px -8px 0; }
  .character-card, .king-card { height: 430px; border-bottom: 1px solid var(--line-soft); border-radius: 16px; }
  .guestbook-panel { grid-template-columns: 1fr; }
  .guestbook-art { min-height: 420px; max-height: 540px; order: 2; }
  .guestbook-art img { max-height: 520px; }
  .guestbook-content { order: 1; }
}

@media (max-width: 620px) {
  .site-header { padding-top: 10px; }
  .mini-brand small { display: none; }
  .mini-brand strong { font-size: .8rem; }
  .mini-crest { width: 38px; height: 38px; }
  .panel { padding: 25px 18px; border-radius: 14px; }
  .panel-ornate { border-radius: 14px; }
  .hero-brand { max-height: 420px; }
  .hero-brand img { max-height: 390px; }
  .hero-brand p { margin-top: -14px; }
  .quest-reveal { padding: 24px 17px 34px; }
  .sticker-stage { height: 255px; }
  h1 { font-size: clamp(2rem, 12vw, 3.4rem); }
  .badges { margin: 15px 0 20px; }
  .badges span { font-size: .72rem; padding: 7px 10px; }
  .fortune-panel {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    padding: 0 12px;
  }
  .fortune-copy { grid-column: 1 / -1; grid-row: 1; padding: 34px 12px 6px; }
  .fortune-character { max-height: 310px; grid-row: 2; }
  .seal { width: 96px; height: 96px; }
  .character-grid { gap: 8px; }
  .character-card, .king-card { height: 355px; }
  .character-card div { padding: 18px 8px 12px; }
  .character-card strong { font-size: .98rem; }
  .character-card span { font-size: .68rem; }
  .collection-heading { align-items: center; }
  .collection-tally { min-width: 100px; padding: 10px; }
  .collection-tally strong { font-size: 1.9rem; }
  .quest-grid { grid-template-columns: 1fr; gap: 10px; }
  .quest-card { min-height: 138px; grid-template-columns: 105px 1fr; }
  .quest-art { height: 116px; }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .guestbook-art { min-height: 360px; }
  .empty-state { grid-template-columns: 1fr; text-align: center; }
  .empty-state img { max-height: 260px; }
  .consent { padding: 10px; }
  .consent-card { grid-template-columns: 105px 1fr; padding: 0 14px 16px 0; }
  .consent-card > img { max-height: 190px; }
  .consent-card > div { padding-top: 17px; }
  .consent-card strong { font-size: 1.08rem; }
  .consent-card p:not(.eyebrow) { font-size: .82rem; }
  .consent-actions .primary, .consent-actions .secondary { flex: 1 1 145px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-entry { grid-template-columns: 1fr; }
  .admin-entry img, .admin-entry video { width: 100%; max-height: 320px; }
}

@media (max-width: 410px) {
  .character-card, .king-card { height: 310px; }
  .character-card span { display: none; }
  .collection-heading { display: block; }
  .collection-tally { width: 120px; margin: 12px 0 0; }
  .consent-card { grid-template-columns: 1fr; padding: 18px; }
  .consent-card > img { display: none; }
  .consent-card > div { padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* --------------------------------------------------------------------------
   Renaissance Kings home page
   -------------------------------------------------------------------------- */
.home-page { min-height: 100vh; }
.home-shell { width: min(1240px, calc(100% - 24px)); margin: 0 auto; position: relative; z-index: 1; }
.home-header { width: min(1240px, calc(100% - 28px)); padding-bottom: 10px; }
.header-rk-logo { width: 42px; height: 50px; object-fit: contain; }
.home-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font: 700 .75rem/1 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.home-nav a { text-decoration: none; }
.home-nav a:hover { color: var(--gold); }

.home-hero { min-height: 760px; display: grid; grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr); isolation: isolate; background: radial-gradient(circle at 70% 35%, rgba(224,182,94,.14), transparent 34%), linear-gradient(145deg, rgba(55,38,21,.98), rgba(19,13,8,.99)); }
.home-hero::after { content: ""; position: absolute; inset: auto 5% 5% 5%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.home-hero-copy { align-self: center; padding: clamp(44px, 6vw, 78px); position: relative; z-index: 4; }
.home-logo { width: 105px; height: 150px; object-fit: contain; margin: -8px 0 -22px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.home-hero h1 { font-size: clamp(3.2rem, 6.5vw, 6.3rem); line-height: .88; margin: .2em 0 .28em; }
.home-lead { max-width: 580px; color: var(--ink); font-size: clamp(1.04rem, 1.7vw, 1.32rem); line-height: 1.65; }
.home-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 28px 0 17px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-width: 168px; text-decoration: none; }
.home-scan-note { max-width: 520px; color: var(--muted); font: 500 .82rem/1.5 system-ui, sans-serif; }
.home-hero-cast { position: relative; min-height: 760px; overflow: hidden; }
.home-hero-cast::before { content: ""; position: absolute; width: 75%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: 15%; background: radial-gradient(circle, rgba(153,101,32,.22), transparent 68%); filter: blur(4px); }
.home-hero-cast img { position: absolute; bottom: -2%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 20px 20px rgba(0,0,0,.48)); }
.home-j { width: 66%; height: 91%; left: -2%; z-index: 1; }
.home-vic { width: 61%; height: 86%; right: -1%; z-index: 2; }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.home-stats div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; min-height: 96px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(47,33,18,.95), rgba(19,13,8,.98)); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.home-stats strong { color: var(--gold); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.home-stats span { color: var(--muted); font: 700 .75rem/1.35 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; }

.home-story { min-height: 620px; display: grid; grid-template-columns: minmax(480px, 1.18fr) minmax(330px, .82fr); align-items: end; padding: 0 36px 0 clamp(28px, 6vw, 72px); }
.home-story-copy { align-self: center; padding: 60px 0; max-width: 760px; position: relative; z-index: 2; }
.home-story-copy h2 { color: var(--gold); }
.home-story-copy p { color: var(--muted); line-height: 1.72; font-size: 1.02rem; }
.home-story-copy strong { color: var(--ink); }
.home-story > img { width: 100%; max-height: 610px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 15px rgba(0,0,0,.5)); }

.home-how .section-heading, .home-court .section-heading { text-align: center; margin: 0 auto 30px; }
.home-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.home-steps article { min-height: 250px; padding: 25px 21px; border: 1px solid var(--line-soft); border-radius: 13px; background: rgba(0,0,0,.17); }
.home-steps article > span { display: block; color: rgba(224,182,94,.26); font-size: 3.5rem; font-weight: 900; line-height: 1; }
.home-steps h3 { color: var(--gold); font-size: 1.35rem; }
.home-steps p { color: var(--muted); line-height: 1.6; }

.home-court { padding-bottom: 18px; }
.home-court-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: end; }
.home-court-card { min-width: 0; height: 480px; position: relative; display: flex; align-items: end; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 16px 16px 0 0; background: radial-gradient(circle at 50% 31%, rgba(224,182,94,.12), rgba(0,0,0,.28) 62%); }
.home-court-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8,5,3,.97) 56%); }
.home-court-card img {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 122%;
  height: 116%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  transform-origin: center bottom;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.4));
}

/* Enlarge each court portrait inside its existing card.
   The card keeps overflow:hidden, so the artwork may crop naturally
   without changing any image paths. */
.home-court-card:nth-child(1) img { width: 132%; height: 124%; }
.home-court-card:nth-child(2) img { width: 128%; height: 121%; }
.home-court-card:nth-child(3) img { width: 130%; height: 123%; }
.home-court-card:nth-child(4) img { width: 118%; height: 122%; }
.home-court-card:nth-child(5) img { width: 154%; height: 126%; }
.home-court-card div { position: relative; z-index: 2; width: 100%; padding: 78px 13px 17px; text-align: center; }
.home-court-card strong { display: block; color: var(--gold); font-size: 1.1rem; }
.home-court-card span { display: block; min-height: 2.3em; margin: 5px 0; color: var(--ink); font-size: .72rem; font-style: italic; }
.home-court-card p { margin: 7px 0 0; color: var(--muted); font: 500 .72rem/1.45 system-ui, sans-serif; }
.court-j, .court-vic, .court-terry { height: 510px; }

.home-callout { min-height: 500px; display: grid; grid-template-columns: minmax(260px, .65fr) minmax(420px, 1.35fr); align-items: center; padding: 0 clamp(28px, 6vw, 72px) 0 20px; }
.home-callout > img { align-self: end; width: 100%; max-height: 500px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 12px rgba(0,0,0,.42)); }
.home-callout > div { padding: 45px 0; }
.home-callout h2 { color: var(--gold); }
.home-callout p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.home-callout strong { display: block; margin-top: 20px; color: var(--gold); font-size: 1.35rem; }
.home-footer { text-align: center; color: var(--muted); padding: 34px 20px 70px; }
.home-footer img { width: 80px; height: 110px; object-fit: contain; margin: 0 auto -18px; }
.home-footer a { color: var(--gold); }

/* The quest page now has five recognized court members. */
.kingdom-panel .character-grid { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: .9fr 1.1fr; min-height: 690px; }
  .home-hero-cast { min-height: 690px; }
  .home-hero-copy { padding: 42px; }
  .home-steps { grid-template-columns: repeat(2, 1fr); }
  .home-court-grid { grid-template-columns: repeat(3, 1fr); }
  .home-court-card, .court-j, .court-vic, .court-terry { height: 470px; border-radius: 16px; }
  .kingdom-panel .character-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .home-nav { gap: 12px; }
  .home-nav a:nth-child(2), .home-nav a:nth-child(3) { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-copy { text-align: center; padding: 46px 25px 12px; }
  .home-logo { margin-left: auto; margin-right: auto; }
  .home-lead, .home-scan-note { margin-left: auto; margin-right: auto; }
  .home-actions { justify-content: center; }
  .home-hero-cast { min-height: 600px; }
  .home-j { width: 61%; height: 94%; left: 0; }
  .home-vic { width: 58%; height: 89%; right: 0; }
  .home-story { grid-template-columns: 1fr; padding: 0 24px; }
  .home-story-copy { padding: 48px 10px 0; }
  .home-story > img { max-height: 500px; }
  .home-callout { grid-template-columns: 1fr; padding: 0 24px; text-align: center; }
  .home-callout > div { order: 1; padding-bottom: 5px; }
  .home-callout > img { order: 2; max-height: 440px; }
}

@media (max-width: 800px) {
  .home-court-card img { width: 116%; height: 113%; }
  .home-court-card:nth-child(1) img,
  .home-court-card:nth-child(2) img,
  .home-court-card:nth-child(3) img,
  .home-court-card:nth-child(4) img,
  .home-court-card:nth-child(5) img { width: 122%; height: 118%; }
}

@media (max-width: 620px) {
  .header-rk-logo { width: 34px; height: 42px; }
  .home-nav a:first-child { display: none; }
  .home-hero { min-height: 0; }
  .home-hero-copy { padding: 36px 18px 0; }
  .home-logo { width: 78px; height: 112px; margin-bottom: -14px; }
  .home-hero h1 { font-size: clamp(2.75rem, 15vw, 4.25rem); }
  .home-lead { font-size: 1rem; }
  .home-actions { display: grid; }
  .home-button { width: 100%; }
  .home-hero-cast { min-height: 430px; }
  .home-j { width: 65%; height: 92%; left: -5%; }
  .home-vic { width: 62%; height: 88%; right: -5%; }
  .home-stats { grid-template-columns: 1fr; gap: 8px; }
  .home-stats div { min-height: 78px; }
  .home-story { padding: 0 18px; }
  .home-story-copy { padding: 38px 4px 0; }
  .home-story-copy h2 { font-size: 2rem; }
  .home-story > img { max-height: 410px; }
  .home-steps { grid-template-columns: 1fr; }
  .home-steps article { min-height: 0; }
  .home-court-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .home-court-card, .court-j, .court-vic, .court-terry { height: 390px; }
  .home-court-card p { display: none; }
  .home-court-card span { min-height: 0; }
  .home-callout { padding: 0 18px; }
  .home-callout p:not(.eyebrow) { font-size: 1rem; }
  .kingdom-panel .character-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 410px) {
  .home-court-card, .court-j, .court-vic, .court-terry { height: 340px; }
  .home-court-card span { display: none; }
}