/* Aldremar: night over Vessengard, guild brass, and the pale pane only you can see.
   The palette is the bot's own: brass #c8a45c (the guild and the world), the pane #9bb7d4
   (everything that is you), muted crimson #8a4b4b (refusals and fights). */

:root {
  color-scheme: dark;
  --night-0: #07090e;
  --night-1: #0c1018;
  --night-2: #131926;
  --night-3: #1b2334;
  --text: #ebe3d2;
  --muted: #a69f90;
  --faint: #6f6a60;
  --brass: #c8a45c;
  --brass-hi: #ebcf8d;
  --brass-lo: #7d6533;
  --pane: #9bb7d4;
  --pane-hi: #d6e6f5;
  --pane-glow: rgba(155, 183, 212, .38);
  --pane-fill: rgba(22, 34, 52, .72);
  --crimson: #b8615f;
  --line: rgba(200, 164, 92, .22);
  --line-pane: rgba(155, 183, 212, .38);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --system: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--text);
  font: 400 1.22rem/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3cf; }
code {
  font: 600 .92em var(--system);
  letter-spacing: .02em;
  color: var(--pane-hi);
  background: rgba(155, 183, 212, .12);
  border: 1px solid var(--line-pane);
  border-radius: 4px;
  padding: .05em .4em;
}
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- the header ------------------------------------------------------------------------ */

.top {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(7, 9, 14, .92), rgba(7, 9, 14, .72));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.mark img { width: 34px; height: 34px; }
.mark b { font: 600 1.18rem var(--display); letter-spacing: .14em; text-transform: uppercase; }
.top nav { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; }
.top nav a {
  font: 600 .95rem var(--system); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.top nav a:hover, .top nav a[aria-current] { color: var(--brass-hi); }
.top nav a.counter {
  color: var(--night-0); background: var(--brass); padding: 6px 14px; border-radius: 3px;
}
.top nav a.counter:hover { background: var(--brass-hi); color: var(--night-0); }
@media (max-width: 720px) { .hide-small { display: none; } .mark b { font-size: 1rem; } }
@media (max-width: 560px) { .top nav a:not(.counter) { display: none; } .top nav a.counter { font-size: .82rem; padding: 6px 10px; } }

/* ---- buttons --------------------------------------------------------------------------- */

.btn {
  --edge: var(--brass);
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem var(--system); letter-spacing: .16em; text-transform: uppercase;
  color: var(--night-0); background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, #a8843e);
  padding: 14px 24px; border: 0; border-radius: 3px; text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 236, 190, .35) inset, 0 10px 30px -12px rgba(200, 164, 92, .8);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:hover { color: var(--night-0); transform: translateY(-1px); filter: brightness(1.06);
  box-shadow: 0 0 0 1px rgba(255, 236, 190, .5) inset, 0 14px 36px -12px rgba(200, 164, 92, 1); }
.btn.ghost {
  color: var(--pane-hi); background: rgba(155, 183, 212, .08);
  box-shadow: 0 0 0 1px var(--line-pane) inset;
}
.btn.ghost:hover { color: #fff; background: rgba(155, 183, 212, .16); box-shadow: 0 0 0 1px var(--pane) inset, 0 0 24px -6px var(--pane-glow); }
.btn[disabled], .btn.off { filter: grayscale(.8) brightness(.6); cursor: not-allowed; transform: none; box-shadow: none; }
.btn .key { font-size: .8em; opacity: .7; }

/* ---- the hero: night over Vessengard and the Crown's column ------------------------------ */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 860px);
  display: grid; align-items: center;
  padding: 64px 0 120px;
  background:
    radial-gradient(1200px 520px at 72% 108%, rgba(200, 164, 92, .16), transparent 60%),
    radial-gradient(900px 700px at 70% 30%, rgba(155, 183, 212, .10), transparent 60%),
    linear-gradient(180deg, #05070c 0%, #0b1120 55%, #151a26 100%);
}
/* The parade, under everything: the Crown's column over Vessengard, painted. A dark veil keeps the
   headline readable and turns the painting's afternoon to dusk so the stars and column still sit
   on a night; the veil is heaviest on the left, behind the words. */
.painting { position: absolute; inset: 0; z-index: -4;
  background:
    linear-gradient(90deg, rgba(5, 7, 12, .85) 0%, rgba(5, 7, 12, .40) 55%, rgba(5, 7, 12, .22) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, .62) 0%, rgba(11, 17, 32, .30) 45%, rgba(7, 9, 14, .95) 100%),
    url("art/parade.jpg") center 35% / cover no-repeat;
}
.stars { position: absolute; inset: 0; z-index: -3; opacity: .85;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 42%, #cfe0f5 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 28%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 8%, #dfe9f7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 91% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 58%, #cfe0f5 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 60%, #fff 50%, transparent 51%);
  background-size: 640px 520px;
}
.column {
  position: absolute; z-index: -2; left: 70%; top: -10%; bottom: 18%; width: 140px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(214, 230, 245, .10) 30%, rgba(236, 244, 255, .55) 50%, rgba(214, 230, 245, .10) 70%, transparent);
  filter: blur(6px);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
  animation: column 7s ease-in-out infinite;
}
.column::after {
  content: ""; position: absolute; inset: 0 40%;
  background: linear-gradient(to bottom, transparent, #fff 30%, #fff 85%, transparent);
  filter: blur(2px); opacity: .7;
}
@keyframes column { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 230px; width: 100%; }
.skyline .far { fill: #111827; }
.skyline .near { fill: #07090e; }
.skyline .lamp { fill: #ebcf8d; }

.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .column { left: 94%; width: 90px; opacity: .55; animation: none; } }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .9rem var(--system); letter-spacing: .28em; text-transform: uppercase; color: var(--pane);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--pane); box-shadow: 0 0 8px var(--pane); }
h1 {
  font: 500 clamp(1.85rem, 3.9vw, 3.15rem)/1.12 var(--display);
  overflow-wrap: break-word;
  letter-spacing: .01em; margin: 18px 0 20px;
  text-wrap: balance;
}
h1 em {
  display: block; font-style: normal; color: var(--brass-hi);
  background: linear-gradient(180deg, #fff1c9, var(--brass) 80%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.lede { font-size: 1.32rem; color: #d9d1c1; max-width: 36em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.after-cta { margin-top: 16px; font: 500 1rem var(--system); letter-spacing: .06em; color: var(--muted); }

/* ---- the pane: SAO's menu and a manhwa system window ----------------------------------- */

.pane {
  --c: var(--pane);
  position: relative;
  background: linear-gradient(180deg, rgba(34, 50, 76, .78), var(--pane-fill));
  border: 1px solid var(--line-pane);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 0 40px -8px var(--pane-glow), inset 0 0 30px -10px rgba(155, 183, 212, .35);
  backdrop-filter: blur(6px);
  font-family: var(--system);
  color: var(--pane-hi);
}
.pane::before, .pane::after {   /* corner ticks */
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--pane-hi); opacity: .85;
}
.pane::before { top: -3px; left: -3px; border-right: 0; border-bottom: 0; }
.pane::after { bottom: -3px; right: -3px; border-left: 0; border-top: 0; }
.pane-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--line-pane);
  font-weight: 700; font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: var(--pane);
}
.pane-head i { font-style: normal; letter-spacing: 0; color: var(--pane-hi); opacity: .7; }
.pane-body { padding: 16px 18px 18px; }

.window { max-width: 440px; justify-self: end; width: 100%; animation: float 8s ease-in-out infinite; }
@media (max-width: 900px) { .window { justify-self: stretch; max-width: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.toast {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
  padding: 10px 14px; font: 600 1rem var(--system); letter-spacing: .04em; color: #fff;
  background: rgba(155, 183, 212, .14); border-left: 3px solid var(--pane-hi);
  box-shadow: 0 0 24px -8px var(--pane-glow);
}
.toast::before { content: "!"; display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--pane-hi); font-size: .8rem; }
.who-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 1.02rem; margin-bottom: 14px; }
.who-row dt { color: var(--pane); letter-spacing: .14em; text-transform: uppercase; font-size: .82rem; align-self: center; }
.who-row dd { margin: 0; font-weight: 600; color: #fff; letter-spacing: .03em; }
.bar { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; font-size: .86rem; letter-spacing: .14em; margin: 6px 0; }
.bar span:first-child { color: var(--pane); }
.bar .track { height: 8px; border-radius: 1px; background: rgba(255, 255, 255, .08); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.bar .fill { height: 100%; width: var(--w, 100%); background: linear-gradient(90deg, #6fd18f, #b7f0b0); box-shadow: 0 0 12px rgba(120, 220, 150, .6); }
.bar.aura .fill { background: linear-gradient(90deg, #c8a45c, #ffe4a3); box-shadow: 0 0 12px rgba(235, 207, 141, .6); }
.bar.mana .fill { background: linear-gradient(90deg, #5f8fd6, #a9d0ff); box-shadow: 0 0 12px rgba(110, 160, 240, .6); }
.bar b { font-weight: 600; color: #fff; letter-spacing: .04em; min-width: 5.5ch; text-align: right; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 12px; }
.stats div { text-align: center; padding: 8px 0 6px; border: 1px solid var(--line-pane); background: rgba(155, 183, 212, .06); }
.stats span { display: block; font-size: .72rem; letter-spacing: .2em; color: var(--pane); }
.stats b { font-size: 1.3rem; color: #fff; font-weight: 600; }
.gift { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px dashed var(--line-pane); font-size: .95rem; }
.gift span { color: var(--pane); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; align-self: center; }
.gift b { color: var(--brass-hi); letter-spacing: .06em; }
.caret::after { content: "▍"; margin-left: 2px; animation: blink 1s steps(1) infinite; color: var(--pane-hi); }
@keyframes blink { 50% { opacity: 0; } }
.points { margin-top: 10px; font-size: .9rem; letter-spacing: .08em; color: #fff; }
.points em { font-style: normal; color: var(--brass-hi); }

/* ---- the count row --------------------------------------------------------------------- */

.count {
  position: relative; z-index: 2; margin-top: -58px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(var(--wrap), 100% - 32px); margin-inline: auto;
  background: linear-gradient(180deg, #151b28, #0e131d);
  border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 30px 60px -30px #000;
}
.count div { padding: 22px 12px; text-align: center; border-left: 1px solid var(--line); }
.count div:first-child { border-left: 0; }
.count b { display: block; font: 500 clamp(1.9rem, 4vw, 2.6rem)/1 var(--display); color: var(--brass-hi); }
.count span { font: 600 .8rem var(--system); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) { .count { grid-template-columns: repeat(2, 1fr); } .count div:nth-child(3) { border-left: 0; } .count div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---- sections -------------------------------------------------------------------------- */

section { padding: clamp(72px, 10vw, 120px) 0; position: relative; scroll-margin-top: 40px; }
section + section::before {
  content: ""; position: absolute; top: 0; left: 50%; translate: -50% 0; width: min(560px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.eyebrow {
  display: inline-block; font: 700 .82rem var(--system); letter-spacing: .34em; text-transform: uppercase;
  color: var(--pane); margin-bottom: 12px;
}
.eyebrow::before { content: "◇ "; color: var(--pane-hi); }
h2 { font: 500 clamp(1.55rem, 4.2vw, 3rem)/1.15 var(--display); overflow-wrap: break-word; margin: 0 0 16px; text-wrap: balance; }
h3 { font: 600 1.18rem/1.25 var(--display); letter-spacing: .03em; margin: 0 0 8px; }
.sub { color: var(--muted); max-width: 42em; margin: 0 0 40px; font-size: 1.28rem; }
.center { text-align: center; } .center .sub, .sub.center { margin-inline: auto; }
.crest { width: 58px; height: 58px; margin: 0 auto 16px; opacity: .9; }

/* the quest log: the prologue as nine entries */
.log { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .log { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .log { grid-template-columns: 1fr; } }
.quest {
  position: relative; padding: 18px 18px 16px 68px; min-height: 108px;
  background: linear-gradient(180deg, rgba(26, 33, 48, .7), rgba(14, 19, 29, .7));
  border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.quest:hover { border-color: rgba(200, 164, 92, .55); transform: translateY(-2px); }
.quest .n {
  position: absolute; left: 14px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center;
  font: 600 .78rem var(--display); letter-spacing: -.02em; color: var(--brass-hi);
  border: 1px solid var(--brass-lo); rotate: 45deg;
}
.quest .n span { rotate: -45deg; }
.quest b { display: block; font: 600 1.06rem var(--display); letter-spacing: .03em; margin-bottom: 4px; }
.quest p { margin: 0; font-size: 1.08rem; color: var(--muted); line-height: 1.45; }
.quest.last { border-color: rgba(155, 183, 212, .45); background: linear-gradient(180deg, rgba(34, 50, 76, .55), rgba(14, 19, 29, .7)); }
.quest.last .n { border-color: var(--pane); color: var(--pane-hi); }

/* the four sources */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (max-width: 900px) { .sources { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sources { grid-template-columns: 1fr; } }
.source { background: var(--night-1); padding: 26px 22px; }
.source .tag { font: 700 .76rem var(--system); letter-spacing: .26em; text-transform: uppercase; color: var(--brass); }
.source h3 { margin-top: 8px; }
.source p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }

/* how it plays */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; padding: 24px 22px 22px; border-radius: 4px;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(200, 164, 92, .10), transparent 70%), linear-gradient(180deg, #121826, #0c1119);
  border: 1px solid var(--line);
  transition: border-color .2s ease;
}
.card:hover { border-color: rgba(200, 164, 92, .5); }
.card .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--brass-hi); }
.card .tag { font: 700 .74rem var(--system); letter-spacing: .26em; text-transform: uppercase; color: var(--pane); }
.card h3 { margin-top: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }

/* the seals: seven metals */
.seals { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
@media (max-width: 900px) { .seals { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .seals { grid-template-columns: repeat(2, 1fr); } }
.seal { text-align: center; padding: 18px 8px 16px; border: 1px solid var(--line); border-radius: 4px; background: linear-gradient(180deg, #111724, #0b0f17); }
.medal {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.5rem var(--display); color: rgba(0, 0, 0, .7);
  background: radial-gradient(circle at 35% 30%, var(--hi), var(--mid) 55%, var(--lo));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .18), inset 0 -6px 10px rgba(0, 0, 0, .35), 0 6px 18px -6px var(--mid);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.seal b { display: block; font: 600 1rem var(--display); }
.seal span { font: 600 .78rem var(--system); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-bronze { --hi: #f2c28f; --mid: #b06f3c; --lo: #5e3517; }
.m-iron { --hi: #c9ccd1; --mid: #6d727a; --lo: #2c2f35; }
.m-steel { --hi: #e8f0f8; --mid: #93a6ba; --lo: #3b4a5a; }
.m-silver { --hi: #ffffff; --mid: #c7ccd4; --lo: #6c737e; }
.m-gold { --hi: #fff1b8; --mid: #d4a73b; --lo: #7a5811; }
.m-mithral { --hi: #eaffff; --mid: #7fd3d9; --lo: #1f6a74; }
.m-adamant { --hi: #f4d6ff; --mid: #9a5bd0; --lo: #3b1a5c; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }

.rungs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
@media (max-width: 700px) { .rungs { grid-template-columns: 1fr; } }
.rungs .pane-body ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.rungs li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: baseline; padding: 5px 0; border-bottom: 1px solid rgba(155, 183, 212, .12); font-size: 1rem; }
.rungs li:last-child { border-bottom: 0; color: var(--brass-hi); }
.rungs li i { font-style: normal; color: var(--pane); font-size: .82rem; letter-spacing: .1em; }
.rungs li small { color: var(--muted); font-size: .82rem; letter-spacing: .12em; }

/* the descent: a shaft going down */
.descent { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .descent { grid-template-columns: 1fr; } }
.shaft {
  position: relative; padding: 14px 0 14px 34px;
  background: linear-gradient(180deg, rgba(200, 164, 92, .06), transparent);
}
.shaft::before {
  content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--brass), rgba(155, 183, 212, .6) 50%, #8a4b4b);
  box-shadow: 0 0 12px rgba(200, 164, 92, .4);
}
.stop { position: relative; display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: baseline; padding: 3px 0; font-family: var(--system); cursor: default; }
.stop::before { content: ""; position: absolute; left: -26px; top: 50%; width: 10px; height: 10px; translate: 0 -50%; rotate: 45deg; background: var(--night-0); border: 1.5px solid var(--brass); }
.stop .f { color: var(--muted); font-size: .82rem; letter-spacing: .12em; }
.stop b { font: 600 1rem var(--display); color: var(--text); font-weight: 500; }
.stop.city::before { width: 14px; height: 14px; left: -28px; background: var(--brass); box-shadow: 0 0 12px var(--brass); }
.stop.city b { color: var(--brass-hi); font-weight: 600; }
.stop.guard::before { border-color: var(--crimson); border-radius: 50%; rotate: 0deg; }
.stop.guard b { color: #e0a19f; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.stop.bottom::before { background: #8a4b4b; border-color: #e0a19f; box-shadow: 0 0 14px #8a4b4b; }
.stop:hover b { color: #fff; }
.descent > .side { position: sticky; top: 90px; align-self: start; }
@media (max-width: 860px) { .descent > .side { position: static; order: -1; } }
.town-card .pane-body { min-height: 150px; }
.town-card h3 { color: #fff; margin-bottom: 6px; font-family: var(--display); }
.town-card p { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--text); line-height: 1.5; }
.town-card .floor { font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--pane); }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 22px; position: relative; color: var(--muted); font-size: 1.12rem; }
.facts li::before { content: "◆"; position: absolute; left: 0; top: .1em; font-size: .7rem; color: var(--brass); }
.facts b { color: var(--text); font-weight: 600; }

/* unique skills */
.uniques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .uniques { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .uniques { grid-template-columns: 1fr; } }
.unique {
  position: relative; padding: 26px 20px 20px; text-align: center; border-radius: 4px;
  background: radial-gradient(260px 160px at 50% 0%, rgba(235, 207, 141, .16), transparent 70%), #0d111a;
  border: 1px solid rgba(235, 207, 141, .45);
  box-shadow: inset 0 0 0 4px #0d111a, inset 0 0 0 5px rgba(235, 207, 141, .22), 0 0 30px -14px var(--brass);
}
.unique .grade { font: 700 .76rem var(--system); letter-spacing: .3em; color: var(--night-0); background: linear-gradient(90deg, #ebcf8d, #fff1c9, #ebcf8d); padding: 3px 10px; border-radius: 2px; }
.unique h3 { margin: 14px 0 6px; color: #fff3cf; }
.unique .from { font: 600 .78rem var(--system); letter-spacing: .2em; text-transform: uppercase; color: var(--pane); }
.unique p { margin: 10px 0 12px; color: var(--muted); font-size: 1.06rem; line-height: 1.45; }
.unique .holder { font: 600 .82rem var(--system); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-top: 1px solid var(--line); padding-top: 10px; }

/* the heroes and you */
.cast { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .cast { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cast { grid-template-columns: 1fr; } }
.person { padding: 18px 20px; border: 1px solid var(--line); border-radius: 3px; background: #0d121b; }
.person b { font: 600 1.08rem var(--display); display: block; }
.person .role { font: 600 .78rem var(--system); letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.person p { margin: 6px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.45; }
.person.you { border-color: var(--line-pane); background: linear-gradient(180deg, rgba(34, 50, 76, .5), #0d121b); }
.person.you .role { color: var(--pane); }

/* plainly */
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
@media (max-width: 700px) { .rules { grid-template-columns: 1fr; } }
.rule { background: var(--night-1); padding: 22px 24px; }
.rule b { font: 600 1.08rem var(--display); display: block; margin-bottom: 4px; color: var(--brass-hi); }
.rule span { color: var(--muted); font-size: 1.1rem; }

/* the last call */
.arrive {
  text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(700px 360px at 50% 100%, rgba(155, 183, 212, .14), transparent 70%);
}
.arrive h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.arrive .steps { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 0 0 32px; font: 600 1rem var(--system); letter-spacing: .08em; color: var(--muted); }
.arrive .steps span { padding: 8px 14px; border: 1px solid var(--line-pane); border-radius: 3px; background: rgba(155, 183, 212, .06); }
.arrive .steps b { color: var(--pane-hi); margin-right: 6px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 1rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer .mark img { width: 28px; height: 28px; opacity: .8; }
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; font: 600 .84rem var(--system); letter-spacing: .14em; text-transform: uppercase; }
footer nav a { color: var(--muted); text-decoration: none; }

/* arrival animation, only with motion allowed and only with the script present */
.js .rise { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate .8s ease; }
.js .rise.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rise { opacity: 1; translate: 0 0; }
  html { scroll-behavior: auto; }
}

/* ---- the guild counter (the store, drawn by aldremar/storefront.py) --------------------- */

.counter-hero { padding: 64px 0 40px; background: radial-gradient(800px 300px at 50% 0%, rgba(200, 164, 92, .12), transparent 70%); border-bottom: 1px solid var(--line); }
.counter-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 12px 0 10px; }
.counter-hero .sub { margin-bottom: 26px; }
.account { max-width: 640px; }
.account .pane-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 1.05rem; }
.account .pane-body b { color: #fff; }
.account form { margin: 0; }
.notices { display: grid; gap: 10px; margin-top: 18px; max-width: 640px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; margin: 0;
  padding: 12px 16px; font: 600 1.02rem/1.45 var(--system); letter-spacing: .02em; color: #fff;
  background: rgba(155, 183, 212, .12); border-left: 3px solid var(--pane-hi);
}
.notice.warn { background: rgba(184, 97, 95, .14); border-left-color: var(--crimson); }
.shelf { padding: 56px 0 8px; }
.shelf h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.shelf h2 small { font: 600 .82rem var(--system); letter-spacing: .24em; text-transform: uppercase; color: var(--pane); }
.goods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.good {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 18px; border-radius: 4px;
  background: linear-gradient(180deg, #121826, #0c1119); border: 1px solid var(--line);
}
.good.feature { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 26px;
  background: radial-gradient(500px 200px at 0% 50%, rgba(155, 183, 212, .12), transparent 70%), linear-gradient(180deg, #131b2b, #0c1119);
  border-color: var(--line-pane); }
@media (max-width: 700px) { .good.feature { grid-template-columns: 1fr; } }
.good .glyph { font-size: 1.8rem; line-height: 1; }
.good.feature .glyph { font-size: 3rem; }
.good b { font: 600 1.12rem var(--display); }
.good .price { display: block; margin-top: 2px; font: 700 1.4rem var(--system); color: var(--brass-hi); letter-spacing: .02em; }
.good > div:nth-child(2) { flex: 1; }
.good .line { margin: 8px 0 0; }
.good .line { color: var(--muted); font-size: 1.08rem; line-height: 1.45; flex: 1; }
.good form { margin: 0; }
.good .btn { width: 100%; justify-content: center; padding: 11px 14px; font-size: .9rem; }
.good.feature > div:last-child { display: grid; gap: 8px; min-width: 220px; }
.good .preview { height: 48px; display: grid; place-items: center; font: 600 .95rem var(--display); color: #fff; letter-spacing: .08em; }
.good .swatches { display: flex; gap: 6px; height: 48px; align-items: center; }
.good .swatches i { flex: 1; height: 34px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.fr-brass { border: 3px double #c8a45c; box-shadow: inset 0 0 0 1px rgba(200, 164, 92, .4); }
.fr-moonsilver { border: 1px solid #dfe8f2; box-shadow: 0 0 12px rgba(223, 232, 242, .5), inset 0 0 12px rgba(223, 232, 242, .25); border-radius: 18px; }
.fr-thread { border: 2px dashed #ebcf8d; box-shadow: 0 0 0 3px rgba(155, 183, 212, .25); }
.fr-undercroft { border: 4px solid #4c4a45; border-style: ridge; background: repeating-linear-gradient(45deg, #1a1a1a 0 6px, #222 6px 12px); }
.note { color: var(--muted); font-size: 1.05rem; margin: 14px 0 0; }
.odds { padding: 64px 0 24px; }
.odds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .odds-grid { grid-template-columns: 1fr; } }
.odds table { width: 100%; border-collapse: collapse; font-family: var(--system); }
.odds th, .odds td { padding: 8px 6px; text-align: center; border-bottom: 1px solid rgba(155, 183, 212, .14); }
.odds th { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--pane); font-weight: 700; }
.odds td { font-size: 1.1rem; font-weight: 600; color: #fff; }
.odds td small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.odds .pity { margin: 12px 0 0; font-size: .95rem; color: var(--pane-hi); letter-spacing: .03em; }
.fine { padding: 40px 0 72px; color: var(--muted); font-size: 1.05rem; }
.fine h2 { font-size: 1.4rem; }
.fine ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }

/* the closed counter */
.closed { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.closed .pane { max-width: 520px; margin: 0 auto; text-align: left; }
