@font-face {
  font-family: Cormorant;
  src: url("/kingdoms/media/CormorantGaramond.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f9f4e8;
  --muted: #bfccd3;
  --navy: #091520;
  --panel: #142634;
  --panel-deep: #0c1925;
  --border: #554d3c;
  --gold: #e8c07b;
  --gold-pale: #ffe7ae;
  --rule: #b2915654;
  --serif: Cormorant, Georgia, 'Times New Roman', serif;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--navy); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-pale); text-underline-offset: .28em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #f1cb83; outline-offset: 4px; }
.skip { position: absolute; z-index: 5; top: 1rem; left: 1rem; padding: .7em; background: var(--navy); transform: translateY(-175%); }
.skip:focus { transform: translateY(0); }
.shell { width: min(89%, 1360px); margin-inline: auto; }
.header { position: relative; z-index: 2; background: #0a1724; border-bottom: 1px solid #9a8255; }
.header-inner, nav { display: flex; align-items: center; justify-content: space-between; }
.header-inner { min-height: 78px; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--gold-pale); text-decoration: none; font: 600 1.72rem/1 var(--serif); text-align: center; letter-spacing: .08em; }
.brand small { color: #f7f3e9; display: block; font: 600 .64rem/1.3 var(--serif); letter-spacing: .46em; padding-left: .46em; }
.crest { display: inline-block; width: 52px; aspect-ratio: 1; background: url("/kingdoms/media/kingdoms.webp") 0 0/300% 200%; }
.north { background-position: 50% 0; }
.eldor { background-position: 100% 0; }
.kharez { background-position: 0 100%; }
.noct { background-position: 50% 100%; }
nav { gap: clamp(1.5rem, 4vw, 4.5rem); }
nav a { color: var(--ink); font-weight: 500; text-decoration: none; padding: .6rem 0; }
nav a:hover, nav a[aria-current] { color: var(--gold); }
.header-cta { display: inline-flex; align-items: center; gap: .63rem; padding-inline: 1.4rem; color: var(--gold-pale); border: 1px solid #b9965d; }
.toggle { display: none; background: none; border: 0; color: var(--gold-pale); padding: .7rem; }
svg { stroke: currentColor; fill: none; stroke-width: 1.55; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: .7em 1.5em;
  border: 1px solid #b79452;
  color: var(--gold-pale);
  background: #152839;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  transition: filter 150ms, transform 150ms;
}
.primary { color: #271d0c; background: linear-gradient(120deg, #d8a255, #ffdf95 64%, #e8b360); border-color: #efd093; box-shadow: inset 0 0 0 3px #f5cb83, inset 0 0 0 4px #90512293; }
.button:hover, .header-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.button:disabled { opacity: .6; cursor: wait; }
.hero { position: relative; isolation: isolate; border-bottom: 1px solid #ae8e58; }
.hero::after, .realms::after {
  content: "";
  position: absolute;
  bottom: -.37rem;
  left: calc(50% - .36rem);
  width: .72rem;
  height: .72rem;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--navy), 0 0 0 6px #987a41;
}
.vista, .vista::after { position: absolute; inset: 0; z-index: -1; }
.vista img { height: 100%; width: 100%; object-fit: contain; object-position: left center; }
.vista::after {
  content: "";
  z-index: 0;
  background:
    linear-gradient(0deg, #05101ace, transparent 19%),
    linear-gradient(90deg, transparent 22%, #08152222 36%, #081522e3 63%, #081522 77%);
}
.hero-inner { display: flex; justify-content: end; align-items: center; min-height: clamp(500px, 46vw, 880px); }
.hero-copy { width: 46.5%; padding: 2.8rem 0; position: relative; }
h1, h2, h3 { font-family: var(--serif); margin: 0; font-weight: 600; line-height: 1.04; text-wrap: balance; }
h1 { margin-block: .22em .23em; font-size: clamp(3.4rem, 6.8vw, 6.9rem); font-weight: 550; line-height: .97; }
h1 em { font-weight: 550; color: var(--gold); font-style: normal; }
h2 { font-size: clamp(2.45rem, 4.1vw, 4.25rem); }
h3 { font-size: clamp(1.7rem, 2.25vw, 2.35rem); }
.kicker { color: var(--gold); text-transform: uppercase; font: 600 .78rem/1.4 'Segoe UI', system-ui, sans-serif; letter-spacing: .18em; margin: 0 0 .67rem; }
.ornament { display: flex; gap: .9rem; align-items: center; }
.ornament::before { content: ""; width: 3.4rem; height: .53rem; background: var(--gold); clip-path: polygon(0 44%, 84% 44%, 92% 0, 100% 50%, 92% 100%, 84% 56%, 0 56%); }
.promise { font-size: clamp(1.06rem, 1.46vw, 1.32rem); color: #eceff0; max-width: 25em; margin: 0; text-wrap: pretty; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 2.1rem; margin-top: 2rem; }
.play { min-height: 56px; padding-inline: 1.9rem; font-size: 1.07rem; }
.play span { font: 1.4em/1 Georgia,serif; }
.look { color: #fdf4df; text-decoration-color: #d7b472; }
.platforms { margin: 1.25rem 0 0; color: #cbd6dd; font-size: .91rem; }
.platforms b { color: var(--gold); font-size: .5rem; vertical-align: middle; margin-inline: .57rem; }
.realms { list-style: none; padding: 2.15rem 0; margin-block: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--rule); position: relative; }
.realms li { display: flex; align-items: center; justify-content: center; gap: .76rem; font: 600 clamp(1.16rem,1.68vw,1.58rem)/1.2 var(--serif); }
.realms li + li { border-left: 1px solid var(--rule); }
.realms .crest { width: clamp(44px,4vw,65px); }
.realms::after { width: .44rem; height: .44rem; left: calc(50% - .22rem); bottom: -.25rem; box-shadow: 0 0 0 7px var(--navy); }
.section { padding-block: clamp(3.6rem, 6vw, 6rem); }
.section-head { margin-bottom: 2rem; }
.section-head p:last-child:not(.kicker), .start-info { max-width: 64ch; color: var(--muted); }
#world .section-head { text-align: center; }
.scene-select { display: flex; justify-content: center; flex-wrap: wrap; gap: .2rem 2%; margin-bottom: 2.1rem; }
.scene-select button { color: var(--muted); background: transparent; padding: .6em 1.15em; border: 0; border-bottom: 2px solid transparent; }
.scene-select button:hover, .scene-select button[aria-pressed=true] { color: var(--gold-pale); border-color: #dab977; }
.scene { margin: 0; display: grid; grid-template-columns: 7fr 3fr; gap: clamp(1rem,4vw,4rem); align-items: center; }
.scene a { position: relative; padding: 5px; display: block; border: 1px solid #977c46; background: #020911; cursor: zoom-in; }
.scene img { width: 100%; }
.scene a span { position: absolute; right: 1rem; bottom: 1rem; background: #031320d6; border: 1px solid var(--gold); width: 36px; height: 36px; font-size: 1.3rem; text-align: center; visibility: hidden; }
.scene a:hover span, .scene a:focus span { visibility: visible; }
.scene h3 { font-size: clamp(2rem,3.1vw,3.25rem); }
.scene p:not(.kicker) { color: var(--muted); }
dialog { background: var(--navy); color: var(--ink); padding: 0; border: 1px solid var(--gold); max-width: 96vw; max-height: 96vh; max-height: 96dvh; }
dialog::backdrop { background: #020811eb; }
body:has(dialog[open]) { overflow: hidden; }
.viewer img { width: auto; height: auto; max-width: 94vw; max-height: calc(96vh - 60px); max-height: calc(96dvh - 60px); object-fit: contain; margin: auto; }
.viewer-bar { display: flex; align-items: center; padding: 4px; }
.viewer-bar span { flex: 1; text-align: center; }
.viewer-bar button { color: var(--gold-pale); min-width: 44px; min-height: 44px; font-size: 1.45rem; background: none; border: 0; }
.viewer-bar button:hover { background: var(--panel); }
.chronicle { border-block: 1px solid var(--rule); background: radial-gradient(ellipse at 22% 67%,#322722,transparent 65%),#0a121c; }
.spread { display: grid; grid-template-columns: 4fr 5fr; gap: min(7vw, 6.8rem); align-items: start; }
.legend-art img { margin-top: 2rem; width: 100%; border: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; align-items: center; gap: 1rem; list-style: none; padding-block: 1.3rem; font: 600 clamp(1.5rem,2.2vw,2rem)/1.2 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--gold); width: 1.5em; flex-shrink: 0; text-align: center; }
summary::after { content: "+"; margin-left: auto; color: var(--gold); font: 1.6rem/1 Georgia,serif; }
details[open] summary { color: var(--gold-pale); }
details[open] summary::after { content: "−"; }
details p { font: 500 clamp(1.26rem,1.6vw,1.55rem)/1.42 var(--serif); margin: 0 0 1.05rem; color: #f1e5d2; }
details p:first-of-type::first-letter { color: var(--gold); float: left; font: 500 3em/.88 var(--serif); padding: .04em .085em 0 0; }
#alpha { max-width: 1090px; }
.download { display: flex; flex-direction: column; }
.download p { color: var(--muted); overflow-wrap: anywhere; }
.download > div { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: auto; padding-top: .4rem; }
.start-info { margin-block: 1.8rem 1rem; }
#feedback { border-top: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: repeat(2,minmax(0, 1fr)); gap: 1.1rem; }
.panel { padding: clamp(1.1rem, 2.5vw, 1.76rem); background: linear-gradient(150deg, var(--panel), var(--panel-deep)); border: 1px solid var(--border); border-top-color: #94774e; }
.panel p { margin-block: .65rem 1rem; }
.notice { padding: .65rem .8rem; border-inline-start: 2px solid #ae905d; background: #b99a6020; color: var(--gold-pale); font-size: .93rem; }
.notice:empty, .status:empty { display: none; }
.steps { padding-inline-start: 1.35em; margin-block: .7rem 1.25rem; }
.steps li { padding-inline-start: .2ch; margin-bottom: .65em; }
.steps li::marker { color: var(--gold); }
.muted { color: var(--muted); font-size: .93rem; }
.status { color: var(--gold-pale); overflow-wrap: anywhere; }
.status[data-error="true"] { color: #ffc8b6; }
.shop-layout { display: grid; grid-template-columns: minmax(14rem, .74fr) minmax(0, 1.6fr); gap: 1.16rem; align-items: start; }
#shop-filter { display: block; max-width: 22rem; margin-bottom: 1rem; }
#shop-filter[hidden] { display: none; }
#showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
.offer { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin: 0; }
.offer > div { flex: 1; display: flex; flex-direction: column; }
.offer .offer-price { margin-top: auto; padding-top: .75rem; }
.offer-art { position: relative; flex: none; aspect-ratio: 16 / 9; margin: 0; overflow: hidden; background: #101923; border: 1px solid var(--border); }
.offer-portrait { aspect-ratio: 1 / 1; background: radial-gradient(ellipse at center, #293140, #101923 75%); }
.offer-art img { position: absolute; inset: 0; display: block; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.offer .pack { margin-block: 1rem; }
.offer-price { font-weight: 600; color: var(--gold-pale); }
.offer button { min-height: 44px; }
@media (max-width: 730px) { .offer { grid-template-columns: minmax(0, 1fr); } }
.shop-main { display: grid; min-width: 0; gap: .9rem; }
form { display: grid; gap: .84rem; }
form > .button { justify-self: start; }
label { display: grid; min-width: 0; gap: .32rem; }
input:not([type="radio"]), select, textarea {
  min-height: 45px;
  padding: .54rem .7rem;
  border-radius: 2px;
  border: 1px solid #7d796e;
  color: var(--ink);
  background: #0c1620;
  width: 100%;
}
textarea { resize: vertical; }
input::placeholder { color: #b5b9bf; }
.account-name { font-size: 1.12rem; overflow-wrap: anywhere; }
.text-button { color: var(--gold-pale); text-align: left; padding: .34rem 0; text-decoration: underline; text-underline-offset: .2em; background: transparent; border: 0; }
.recipient { margin: 0; border: 0; padding: 0; display: flex; gap: 1.2rem; }
.recipient legend { margin-block-end: .2rem; }
.recipient label { display: flex; gap: .4rem; align-items: center; }
.recipient input { accent-color: var(--gold); }
.pack { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .6rem 0; }
.pack li { font-size: .89rem; padding: .25rem .5rem; border: 1px solid #6c614d; color: var(--gold-pale); background: #192633; }
.checkout { border-color: #ac8a56; }
.order-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1em; row-gap: .4em; }
.order-detail dt { color: var(--muted); }
.order-detail dd { margin: 0; overflow-wrap: anywhere; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list li { padding: .55em 0; border-top: 1px solid #93784f60; }
.order-list button { display: block; }
.feedback article { max-width: 46rem; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; padding-block: 1.45rem 2.1rem; border-top: 1px solid #ac8c5950; color: var(--muted); font-size: .86rem; }
.footer span:first-child { font-family: var(--serif); color: var(--gold); letter-spacing: .15em; }

@media (min-width: 2000px) {
  .vista::after { background: linear-gradient(90deg,transparent 450px,#081522 1480px); }
}
@media (max-width: 1080px) {
  .realms li { flex-direction: column; }
  .shell { width: 93%; }
  .hero-copy { width: 47%; }
  .actions { gap: 1rem; }
  .play { padding-inline: 1.3rem; }
  .scene { grid-template-columns: 1fr; }
  .scene figcaption { max-width: 68ch; }
  .spread { gap: 3.5%; }
}
@media (max-width: 880px) {
  .vista img { object-fit: cover; object-position: left top; }
  .hero-inner { min-height: 450px; }
  .header-inner { min-height: 64px; }
  nav { gap: 1.2rem; }
  .hero-copy { padding-block: 2rem; }
  .vista::after { background: linear-gradient(90deg, transparent 25%, #091520de 59%, var(--navy)); }
  .actions { margin-top: 1.3rem; gap: .86rem; }
  .play { min-height: 48px; gap: .8rem; font-size: 1rem; }
  .shop-layout, .spread { grid-template-columns: 1fr; gap: 1.3rem; }
  .legend-art img { width: min(100%, 480px); }
}
@media (max-width: 730px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; }
  .header .crest { width: 43px; }
  .brand { font-size: 1.44rem; }
  nav { gap: 0 1rem; flex-wrap: wrap; }
  .enhanced .toggle { display: flex; }
  .enhanced nav { position: absolute; top: 100%; inset-inline: 0; padding: .65rem 1.4rem 1.2rem; background: var(--navy); border-block: 1px solid var(--border); display: grid; justify-content: stretch; }
  .enhanced .toggle[aria-expanded=false] + nav { display: none; }
  nav .header-cta { justify-content: center; margin-top: .5rem; }
  .hero { background: linear-gradient(180deg,#0e2233 50%,#091520); }
  .vista { display: block; position: relative; z-index: 0; }
  .vista img { width: 100%; height: auto; aspect-ratio: auto 16/9; object-fit: contain; }
  .vista::after { background: linear-gradient(transparent 68%,#0e2233); }
  .hero-inner { min-height: auto; display: block; }
  .hero-copy { width: 100%; text-align: center; padding: .2rem 0 1.85rem; }
  .ornament, .actions { justify-content: center; }
  .ornament::before, .ornament::after { content: ""; width: 2rem; height: 1px; clip-path: none; background: var(--gold); }
  .kicker { font-size: .7rem; }
  h1 { font-size: clamp(2.85rem,13vw,4.5rem); }
  .promise { margin-inline: auto; font-size: 1rem; line-height: 1.48; }
  .actions { gap: 1.1rem; }
  .platforms, .look { font-size: .88rem; }
  .platforms { margin-top: 1rem; }
  .realms { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 1.2rem; }
  .realms li { width: 20%; font-size: 1rem; gap: .32rem; }
  .realms li + li { border: none; }
  .section { padding-block: 3.3rem; }
  .section-head { margin-bottom: 1.35rem; }
  .scene-select { gap: 0; margin-bottom: 1.32rem; }
  .scene-select button { font-size: .92rem; padding: .72em .59em; }
  .scene a { padding: 2px; }
  .split { grid-template-columns: minmax(0,1fr); }
  .footer { display: grid; }
}
@media (max-width: 495px) {
  .realms li { width: 33.3%; font-size: 1.11rem; }
  .actions { gap: 1rem; }
  .play { padding-inline: 1rem; }
}
@media (max-width: 360px) {
  .realms li { font-size: 1rem; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
