/* ValheimMMO portal: dark stained wood, iron and gold, like the game's UI kit (UI/Kit/Theme.cs). */
/* Fonts are served from this site (static/fonts, SIL Open Font License 1.1: see OFL-*.txt there), never from a
   third-party font service, so visitors' addresses aren't sent anywhere else. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/cinzel-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/cinzel-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/cinzel-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 800; font-display: swap; src: url(/static/fonts/cinzel-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/crimson-pro-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/static/fonts/crimson-pro-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/crimson-pro-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(/static/fonts/crimson-pro-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #120d09;
  --wood: #2a1d14;
  --wood-hi: #3a2819;
  --iron: #5a4a3a;
  --gold: #e8b45a;
  --gold-hi: #ffd27a;
  --text: #efe2c8;
  --dim: #a8977d;
  --good: #7fd47f;
  --bad: #e06a5a;
  --radius: 4px;
  /* The game's own accents (UI/Theme.cs: gold; Loot/LootRoller.cs: rarity colours), brightened a little for a dark page */
  --gold-game: #cc9e54;
  --r-common: #e6e6e6;
  --r-uncommon: #4ddb4d;
  --r-rare: #4d9bff;
  --r-epic: #c26bff;
  --r-legendary: #ff8000;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(ellipse at top, #24180f 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 18px/1.55 "Crimson Pro", Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
h1, h2, .brand { font-family: Cinzel, Georgia, serif; letter-spacing: 0.04em; color: var(--gold-hi); margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }
h2 { font-size: 1.25rem; }
.dim { color: var(--dim); }
.gold { color: var(--gold-hi); }

header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--iron);
  background: linear-gradient(#1d140d, #160f0a);
}
.brand { font-size: 1.4rem; margin: 0; display: inline-flex; align-items: center; line-height: 0; }
.brand-logo { display: block; height: auto; width: 136px; }
.hero-heading { margin: 0 0 0.4rem; line-height: 0; }
.hero-logo { display: block; width: min(440px, 80vw); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.6)); }
.hero-title.hero-tagline { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: 0.3rem 0 0.4rem; }
.hero-tagline + .eyebrow { margin-bottom: 1.4rem; }
.realm-one { max-width: 620px; margin: 0 auto; }   /* the Live Realm alone (the Test Realm isn't shown) */
nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav .who { display: flex; align-items: center; gap: 8px; }
nav .who img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--iron); }

main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 24px; color: var(--dim); font-size: 0.85rem; border-top: 1px solid var(--iron);
}

.panel {
  background: linear-gradient(180deg, var(--wood-hi), var(--wood));
  border: 1px solid var(--iron);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 90, 0.08), 0 6px 18px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.hero { text-align: center; padding: 24px 0 32px; }
.lede { font-size: 1.15rem; max-width: 760px; margin: 0 0 1.2em; color: var(--text); }
.hero .lede { margin: 0 auto 1.2em; }
.grid3, .grid2 { display: grid; gap: 18px; }
.grid3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-top: 18px; }

.status { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.status.up .dot { background: var(--good); box-shadow: 0 0 10px var(--good); }
.addr { font-family: Consolas, monospace; font-size: 1.1rem; color: var(--gold-hi); background: rgba(0, 0, 0, 0.3);
  padding: 6px 10px; border-radius: var(--radius); display: inline-block; }

.btn {
  display: inline-block; cursor: pointer; font: 600 1rem "Crimson Pro", Georgia, serif; color: var(--text);
  background: linear-gradient(#4a3420, #2e2015); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 8px 18px; margin: 4px 6px 4px 0;
}
.btn:hover { background: linear-gradient(#5d4228, #3a2819); color: var(--gold-hi); }
.btn.small { padding: 4px 12px; font-size: 0.9rem; }
.btn.secondary { border-color: var(--iron); }
.crumbs { margin: 0 0 0.8em; }
.patchnote h2 a { color: inherit; text-decoration: none; }
.patchnote h2 a:hover { text-decoration: underline; }
.btn.gold { background: linear-gradient(#b8863a, #7a5420); color: #1b120a; border-color: var(--gold-hi); }
.btn.gold:hover { color: #000; }
.amounts { display: flex; flex-wrap: wrap; }
.vip .price { float: right; font-family: "Crimson Pro", Georgia, serif; font-size: 1rem; color: var(--gold); }
.vip ul { padding-left: 1.2em; }

.flash { background: rgba(232, 180, 90, 0.12); border: 1px solid var(--gold); color: var(--gold-hi);
  border-radius: var(--radius); padding: 10px 14px; margin: 0 auto 16px; max-width: 1100px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(90, 74, 58, 0.6); }
th { color: var(--dim); font-weight: 600; }
form { display: inline; }
.right { display: block; text-align: right; margin-top: 20px; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  header.top { padding: 12px 16px; }
  main { padding: 20px 16px 36px; }
}
.board td:nth-child(4) { font-weight: 600; }
.online { color: var(--good); font-size: 0.85rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.tabs a { border: 1px solid var(--iron); border-radius: var(--radius); padding: 4px 12px; background: var(--wood); }
.tabs a.active { border-color: var(--gold); color: var(--gold); }
.board-wrap { overflow-x: auto; }
.cls { margin-bottom: 18px; }
.cls .roles { font-family: "Crimson Pro", Georgia, serif; font-size: 1rem; margin-left: 8px; }
.cls td:first-child { width: 3.5em; }

@media (max-width: 600px) {
  .cls table tr:first-child { display: none; }
  .cls table, .cls tbody, .cls tr, .cls td { display: block; width: auto; }
  .cls tr { padding: 8px 0; border-bottom: 1px solid rgba(90, 74, 58, 0.6); }
  .cls td { border: 0; padding: 2px 0; }
  .cls td:first-child { display: inline-block; width: auto; margin-right: 8px; }
  .cls td:nth-child(2) { display: inline; }
  .cls td:nth-child(4) { font-size: 0.85rem; }
}

.news { max-width: 760px; margin: 0 auto 24px; }
.news article + article { border-top: 1px solid rgba(90, 74, 58, 0.6); margin-top: 10px; padding-top: 6px; }
.news .small { font-size: 0.85rem; margin: 0; }
.newstext { white-space: pre-line; margin: 4px 0 0; }

/* ---- Front page (index.html): full-bleed hero, stats, features, biome road, gallery, realms ---- */
.eyebrow { font: 600 0.8rem Cinzel, Georgia, serif; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.6em; }
.center { text-align: center; }
.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.good { color: var(--good); }
.bad { color: var(--bad); }
h3 { font-family: Cinzel, Georgia, serif; color: var(--gold-hi); margin: 0 0 0.5em; font-size: 1.15rem; }

.hero-full {
  position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; justify-content: center;
  padding: 72px 16px 96px; text-align: center; overflow: hidden;
  /* the loading screen's art7 (a Völva's fire bolt at a Gjall in the Mistlands fog): already soft, so a lighter veil */
  background: linear-gradient(180deg, rgba(18, 13, 9, 0.12) 0%, rgba(18, 13, 9, 0.38) 60%, var(--bg) 100%),
              url("/static/shots/hero.webp") center 45% / cover no-repeat, var(--bg);
}
.hero-full::after {   /* drifting embers */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background: radial-gradient(2px 2px at 20% 80%, #ffb347, transparent), radial-gradient(1.5px 1.5px at 70% 90%, #ffd27a, transparent),
              radial-gradient(2px 2px at 40% 95%, #ff8c3a, transparent), radial-gradient(1.5px 1.5px at 85% 75%, #ffb347, transparent),
              radial-gradient(1px 1px at 55% 85%, #fff0c0, transparent);
  animation: embers 9s linear infinite;
}
@keyframes embers { from { transform: translateY(0); opacity: 0.6; } to { transform: translateY(-70vh); opacity: 0; } }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-title {
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.05; margin: 0 0 0.35em; font-weight: 800;
  background: linear-gradient(180deg, #fff3cf 0%, #ffd27a 45%, #c88a2e 100%); -webkit-background-clip: text; background-clip: text;
  color: transparent; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}
.hero-lede { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 760px; margin: 0 auto 1.6em; text-shadow: 0 2px 10px #000; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 28px; }
.btn.big { padding: 12px 26px; font-size: 1.1rem; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.btn.gold.big { box-shadow: 0 0 28px rgba(255, 190, 90, 0.35), 0 6px 24px rgba(0, 0, 0, 0.5); }
.event-banner {
  display: inline-block; margin: 0 auto 22px; padding: 8px 20px; color: var(--gold-hi); font-family: Cinzel, Georgia, serif;
  letter-spacing: 0.04em; background: rgba(18, 13, 9, 0.78); border: 1px solid var(--gold); border-radius: 999px;
  box-shadow: 0 0 22px rgba(255, 190, 90, 0.25);
}
.event-banner b { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8em; margin-right: 0.5em; }
.realm-cards { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.realm-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 18px; color: var(--text);
  background: rgba(18, 13, 9, 0.72); border: 1px solid var(--iron); border-radius: 999px; backdrop-filter: blur(4px);
}
.realm-card:hover { border-color: var(--gold); color: var(--text); }
.realm-card .rname { font-family: Cinzel, Georgia, serif; color: var(--gold-hi); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 10px var(--bad); display: inline-block; flex: none; }
.up .dot { background: var(--good); box-shadow: 0 0 10px var(--good); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--good); } }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: var(--gold); z-index: 1; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.stats-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); max-width: 1100px; margin: -48px auto 0; position: relative; z-index: 2;
  background: linear-gradient(180deg, var(--wood-hi), var(--wood)); border: 1px solid var(--iron); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(232, 180, 90, 0.1), 0 14px 40px rgba(0, 0, 0, 0.55);
}
.stats-strip div { text-align: center; padding: 18px 8px; border-left: 1px solid rgba(90, 74, 58, 0.6); }
.stats-strip div:first-child { border-left: 0; }
.stats-strip b { display: block; font: 800 2rem Cinzel, Georgia, serif; color: var(--gold-hi); line-height: 1.1; }
.stats-strip span { color: var(--dim); font-size: 0.9rem; }

main section { margin: 0 0 72px; }
.feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.feature.rev .shot { order: 2; }
.feature h2, .road h2, .gallery-sec h2, .realms h2, #join h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.shot { display: block; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--iron);
  box-shadow: 0 0 0 1px rgba(232, 180, 90, 0.15), 0 18px 50px rgba(0, 0, 0, 0.6); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.6s ease; }
.shot:hover img { transform: scale(1.04); }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.chips a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--iron); border-radius: var(--radius); background: rgba(0, 0, 0, 0.25); color: var(--text); }
.chips a:hover { border-color: var(--gold); }
.chips b { display: block; font-family: Cinzel, Georgia, serif; color: var(--gold-hi); font-size: 0.95rem; }
.chips span { color: var(--dim); font-size: 0.85rem; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; }
.ticks li { padding-left: 1.4em; position: relative; margin: 4px 0; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.rarities { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rarities li { padding: 4px 12px; border-radius: var(--radius); border: 1px solid currentColor; background: rgba(0, 0, 0, 0.35); font-weight: 600; }
.r-common { color: var(--r-common); }
.r-uncommon { color: var(--r-uncommon); }
.r-rare { color: var(--r-rare); }
.r-epic { color: var(--r-epic); box-shadow: 0 0 14px rgba(194, 107, 255, 0.45); }
.r-legendary { color: var(--r-legendary); box-shadow: 0 0 14px rgba(255, 128, 0, 0.45); }

.zones { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.zones li {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--iron);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: var(--wood) center / cover no-repeat;
  transition: transform 0.3s ease, border-color 0.3s;
}
.zones li::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 7, 4, 0.92)); }
.zones li:hover { transform: translateY(-4px); border-color: var(--gold); }
.zones li > * { position: relative; }
.zones b { font-family: Cinzel, Georgia, serif; color: var(--gold-hi); font-size: 0.95rem; line-height: 1.2; }
.zones span { color: var(--dim); font-size: 0.8rem; }
.zones .lv { position: absolute; top: 8px; left: 8px; color: #1b120a; background: var(--gold); font-weight: 700; border-radius: 3px; padding: 0 6px; font-size: 0.8rem; }
/* each biome its own color, darkening into the label */
.zones li.z-meadows { background: url("/static/shots/zone-meadows.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #8fbf5a, #3d5a22 60%, #1c2410); }
.zones li.z-forest { background: url("/static/shots/zone-forest.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #4f7a4a, #22361f 60%, #0f170d); }
.zones li.z-swamp { background: url("/static/shots/zone-swamp.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #7a7a4a, #3a3a24 60%, #17170e); }
.zones li.z-mountains { background: url("/static/shots/zone-mountains.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #dfe8f2, #7d8fa6 55%, #2a3240); }
.zones li.z-plains { background: url("/static/shots/zone-plains.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #e8c873, #9a7a34 55%, #3b2c10); }
.zones li.z-mist { background: url("/static/shots/zone-mist.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #b7a3d6, #5a4a78 55%, #221a30); }
.zones li.z-ash { background: url("/static/shots/zone-ash.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #ff8a3d, #8a2a12 55%, #2a0d06); }
.zones li.z-north { background: url("/static/shots/zone-north.webp") center / cover no-repeat, radial-gradient(circle at 30% 20%, #e9f6ff, #8ab6d6 55%, #2a4258); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
/* Update 0.36 cards and screenshot slots (templates/_shots.html: a slot shows only once its picture is there) */
.new036 h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newcards { margin: 26px 0 22px; }
.newcards .panel { margin: 0; display: flex; flex-direction: column; }
.newcards h3 { margin-top: 0.2em; }
.shotfig { margin: 0 0 14px; }
.shotfig figcaption { color: var(--dim); font-size: 0.9rem; margin-top: 6px; }
.panel .shotfig .shot { box-shadow: 0 0 0 1px rgba(232, 180, 90, 0.12), 0 8px 24px rgba(0, 0, 0, 0.5); }
.video-sec h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.video-frame { max-width: 1000px; margin: 20px auto 10px; border: 1px solid var(--iron); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232, 180, 90, 0.15), 0 18px 50px rgba(0, 0, 0, 0.6); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--iron); }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s ease, filter 0.4s; filter: saturate(0.9); }
.gallery a:hover img { transform: scale(1.06); filter: saturate(1.1); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(5, 3, 2, 0.92); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border: 1px solid var(--iron); box-shadow: 0 20px 60px #000; }
.lb-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: var(--gold-hi); font-size: 2.4rem; cursor: pointer; }

.realm h3 { display: flex; align-items: center; gap: 10px; }
.facts th { width: 8em; font-weight: 400; }
.facts code { font-family: Consolas, monospace; color: var(--gold-hi); }
.steps .panel { position: relative; padding-top: 28px; }
.steps .num { position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font: 800 1.05rem Cinzel, Georgia, serif; color: #1b120a; background: linear-gradient(#ffd27a, #c88a2e); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.grid3.steps { margin-top: 30px; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 18px; }
  .feature.rev .shot { order: 0; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); margin: -40px 16px 0; }
  .stats-strip div:nth-child(4) { border-left: 0; }
  .stats-strip div:nth-child(n+4) { border-top: 1px solid rgba(90, 74, 58, 0.6); }
  .zones { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .zones { grid-template-columns: repeat(2, 1fr); }
  .stats-strip b { font-size: 1.6rem; }
  main section { margin-bottom: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full::after, .up .dot, .scroll-hint { animation: none; }
  .shot img, .gallery img, .zones li { transition: none; }
  .shot:hover img, .gallery a:hover img { transform: none; }
}

/* Closed beta: the registration steps, consent boxes and account deletion */
.btn.danger { border-color: var(--bad); color: #ffd9d2; background: linear-gradient(#6a2a20, #3d1712); }
.btn.danger:hover { color: #fff; }
.small { font-size: 0.9rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.checklist li { counter-increment: step; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px solid rgba(90, 74, 58, 0.6); }
.checklist li > * { margin-right: 8px; }
.checklist li::before {
  content: counter(step); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-hi); font: 800 1rem/28px Cinzel, Georgia, serif; text-align: center;
}
.checklist li.done::before { content: "\2713"; background: rgba(127, 212, 127, 0.15); border-color: var(--good); color: var(--good); }
.checklist .dim { display: block; font-size: 0.9rem; }
form.register { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 10px 0; }
form.register label { display: block; }
form.register input[type="checkbox"] { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; accent-color: var(--gold); }
form.register input[type="text"] { font: inherit; padding: 4px 8px; background: rgba(0, 0, 0, 0.3); color: var(--text);
  border: 1px solid var(--iron); border-radius: var(--radius); }
.narrow-left { max-width: 760px; }
.legal h2 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal .version { color: var(--dim); font-size: 0.9rem; }

/* Legal pages and checkout */
.placeholder { background: #6b2a1f; color: #fff; padding: 0 4px; border-radius: 3px; }
.legal blockquote { border-left: 3px solid var(--iron); margin: 0.8em 0; padding: 0.2em 1em; background: rgba(0, 0, 0, 0.25); }

/* Guide and classes: long reference pages, sections closer together, wide tables scroll on phones */
.doc section { margin-bottom: 44px; }
.doc section > h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin-top: 0.2em; }
.doc .panel h3 { margin-top: 0.2em; }
.doc .panel p:last-child, .doc .panel ul:last-child { margin-bottom: 0; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablewrap table { min-width: 520px; }
.doc ul.plain { padding-left: 1.2em; margin: 0.4em 0; }
.doc .cls { margin-bottom: 18px; }
.cls .about { margin: 0 0 0.6em; }
.specs { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.specs li { padding: 8px 12px; border: 1px solid var(--iron); border-radius: var(--radius); background: rgba(0, 0, 0, 0.25); }
.specs b { display: block; font-family: Cinzel, Georgia, serif; color: var(--gold-hi); font-size: 0.95rem; }
.specs span { color: var(--dim); font-size: 0.9rem; }
.specs .role { display: block; color: var(--gold); font-size: 0.85rem; }

/* Help desk (/help) */
.tstatus { font-size: .85em; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--line, #5a4a30); white-space: nowrap; }
.tstatus.open { color: #e8c872; }
.tstatus.answered { color: #8fd17a; }
.tstatus.closed { opacity: .65; }
.tstatus.archived { opacity: .45; font-style: italic; }
table.tickets td, table.tickets th { padding: 6px 8px; text-align: left; }
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.thread .msg.staff { border-left: 3px solid #d9a441; }
.thread .msg .body { white-space: pre-wrap; margin: 6px 0 0; }
.thread .sysmsg { text-align: center; margin: 0; }
form.inline { margin-top: 10px; }
textarea { width: 100%; }

/* Patch notes */
.patchnote { margin-top: 18px; }
.patchnote h3 { margin: 16px 0 6px; }
.patchnote ul { margin: 0; padding-left: 20px; }
.patchnote li { margin: 4px 0; }

/* The monthly goal (support.html at /donate, index.html): a <progress> bar, so no inline styles (CSP) */
.goal { margin-bottom: 18px; }
.goal progress, .goal-front progress { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; border: 1px solid var(--iron);
  border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.goal progress::-webkit-progress-bar, .goal-front progress::-webkit-progress-bar { background: rgba(0, 0, 0, 0.35); }
.goal progress::-webkit-progress-value, .goal-front progress::-webkit-progress-value { background: linear-gradient(90deg, #b8863a, var(--gold-hi)); }
.goal progress::-moz-progress-bar, .goal-front progress::-moz-progress-bar { background: linear-gradient(90deg, #b8863a, var(--gold-hi)); }
.goal p { margin: 0.6em 0 0; }

/* Analytics consent (static/consent.js) */
#consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto;
  background: var(--wood); border: 1px solid var(--gold); border-radius: 8px; padding: 14px 16px; box-shadow: 0 8px 30px rgba(0,0,0,.6); }
#consent p { margin: 0 0 10px; font-size: 0.92rem; }
#consent .consent-buttons { display: flex; gap: 8px; justify-content: flex-end; }
#consent .consent-buttons .btn { min-width: 110px; }

/* Share links (plain links: no plugins, no third-party scripts) */
footer .share { flex-basis: 100%; }

/* Access page: the one next step, and the reminder banner while it isn't done */
.next-step { border-color: var(--gold); }
.next-step p { margin: 0 0 10px; }
.flash.next a { font-weight: 600; }

/* Closed beta: zones that are not open yet */
.zones li.later { opacity: 0.6; }
.zones li.later:hover { opacity: 0.9; }
.zones .state { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.zones li:not(.later) .state { color: var(--gold-hi); }
.beta-note { border-left: 3px solid var(--gold); padding: 10px 14px; background: rgba(0, 0, 0, 0.25); margin: 0 0 1.2em; max-width: 760px; }
.hero-inner .beta-note { margin-left: auto; margin-right: auto; text-align: left; }

/* Armory, auction browser, My map, My mail (DESIGN.md 79) */
.r0 { color: #e6e6e6; } .r1 { color: #1eff00; } .r2 { color: #4da3ff; } .r3 { color: #c77dff; } .r4 { color: #ff9a33; }
.flash.readonly { margin: 0 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters label { display: flex; flex-direction: column; font-size: 0.9rem; color: var(--dim); }
.profile-hero { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--iron); margin: 0 0 18px; }
.profile-hero h1 { margin-bottom: 0.1em; }
.badge { font: 600 0.75rem Cinzel, Georgia, serif; letter-spacing: 0.08em; text-transform: uppercase; color: #120d09; background: var(--gold); border-radius: 3px; padding: 2px 8px; vertical-align: middle; }
.banner-ember { background: linear-gradient(120deg, #3a1608, #7a2c10 60%, #b4501c); }
.banner-frost { background: linear-gradient(120deg, #0f2233, #1f4a6a 60%, #5aa0c0); }
.banner-forest { background: linear-gradient(120deg, #0f2412, #24502a 60%, #4f8a3a); }
.banner-royal { background: linear-gradient(120deg, #1d0f2e, #4a2478 60%, #8a5ac0); }
.banner-night { background: linear-gradient(120deg, #07090f, #141a2e 60%, #2a3350); }
.gear { list-style: none; padding: 0; margin: 0; }
.gear li { padding: 6px 0; border-bottom: 1px solid var(--wood-hi); }
.gear .slot { display: inline-block; min-width: 5.5em; }
.gear .stats { display: block; margin-left: 5.5em; font-size: 0.9rem; color: var(--dim); }
ul.plain { list-style: none; padding: 0; margin: 0; }
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tree h3 { margin: 0 0 6px; font-size: 1.05rem; }
.mtree { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.mtree td { padding: 0; height: 2.4em; }
.node { display: flex; justify-content: space-between; align-items: center; gap: 4px; height: 100%; padding: 2px 5px; font-size: 0.72rem; line-height: 1.1;
  border: 1px solid var(--iron); border-radius: 3px; background: var(--wood); color: var(--dim); }
.node i { font-style: normal; font-weight: 600; }
.node.some { border-color: var(--gold); color: var(--text); }
.node.full { border-color: var(--gold-hi); background: #4a3418; color: var(--gold-hi); }
.worldmap { height: 70vh; min-height: 320px; background: #0c1620; border: 1px solid var(--iron); border-radius: var(--radius); }
.mailbody { white-space: pre-wrap; max-width: 46ch; }

/* Support page (support.html): header, goal, tier cards (a radio per card: CSS-only selection), checkout box */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.support-hero { text-align: center; margin: 8px auto 26px; }
.support-hero .lede { margin: 0 auto; }
.goal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.goal-head h2, .goal-head h3 { margin: 0; }
/* the same goal on the front page: narrower, above the donate line */
/* The month's goal in the front page's hero, under the realm cards: one small bar that links to /donate */
.goal-front { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; max-width: 520px;
  margin: 14px auto 0; padding: 10px 18px; color: var(--text); text-decoration: none; background: rgba(18, 13, 9, 0.72);
  border: 1px solid var(--iron); border-radius: 14px; backdrop-filter: blur(4px); transition: border-color 0.15s; }
.goal-front:hover { border-color: var(--gold); }
.goal-front .goal-label { font-family: Cinzel, Georgia, serif; color: var(--gold-hi); }
.goal-front .goal-figures b { color: var(--gold-hi); }
.goal-front progress { flex: 1 1 100%; height: 10px; }
.goal-note { margin-top: 28px; }
.goal .goal-figures { margin: 0 0 10px; font-size: 1.15rem; }
.goal .goal-figures b { font-family: Cinzel, Georgia, serif; font-size: 1.6rem; color: var(--gold-hi); }
.goal progress { height: 14px; }
.tiers { margin: 34px 0 10px; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 18px; }
.section-head h2 { font-size: 1.6rem; margin-bottom: 0.3em; }
.section-head p { margin: 0.2em 0; }
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; border: 0; margin: 0; padding: 0; min-width: 0; }
.tier-card { position: relative; display: flex; flex-direction: column; padding: 26px 22px 20px; border: 1px solid var(--iron);
  border-radius: 6px; background: linear-gradient(var(--wood-hi), var(--wood)); box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
label.tier-card { cursor: pointer; }
label.tier-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.tier-card input[type=radio] { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--gold); }
.tier-card:has(input:checked) { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi), 0 0 26px rgba(255, 190, 90, 0.25); }
.tier-card:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.tier-card.off { opacity: 0.6; cursor: default; }
.tier-card.off:hover { transform: none; border-color: var(--iron); }
.tier-card.featured { border-color: var(--gold); }
.tier-badge { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 1px 12px; border-radius: 999px;
  background: linear-gradient(#b8863a, #7a5420); color: #1b120a; font: 600 0.75rem/1.6 Cinzel, Georgia, serif; letter-spacing: 0.06em; white-space: nowrap; }
.tier-name { font-family: Cinzel, Georgia, serif; font-size: 1.35rem; color: var(--gold-hi); letter-spacing: 0.04em; }
.tier-price { font-family: Cinzel, Georgia, serif; font-size: 2.1rem; color: var(--text); margin: 4px 0 12px; line-height: 1.1; }
.tier-price small { font-family: "Crimson Pro", Georgia, serif; font-size: 1rem; color: var(--dim); }
.tier-perks { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid rgba(90, 74, 58, 0.6); flex: 1; }
.tier-perks li { position: relative; padding: 3px 0 3px 22px; }
.tier-perks li::before { content: "\2726"; position: absolute; left: 0; top: 3px; color: var(--gold); font-size: 0.85rem; }
.tier-mine, .tier-soon { align-self: flex-start; margin-top: 12px; padding: 1px 10px; border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--gold); color: var(--gold-hi); }
.tier-soon { border-color: var(--iron); color: var(--dim); }
.checkout { max-width: 760px; margin: 22px auto 0; text-align: left; }
.checkout label { display: block; margin: 0 0 10px; }
.checkout label input { margin-right: 8px; accent-color: var(--gold); }
.checkout .btn.big { display: block; width: fit-content; margin: 16px auto 12px; }
.checkout p:only-child { text-align: center; margin: 0; }
.amounts .btn { min-width: 92px; }
/* Donate once: your own amount, a field in the buttons' own look (two buttons wide) and Donate beside it */
.custom-label { margin: 6px 0 0 !important; }
.custom-amount { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.amount-box { display: inline-flex; align-items: center; width: 196px; margin: 4px 0; padding: 0 12px; box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--gold); border-radius: var(--radius); }
.amount-box:focus-within { border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(232, 180, 90, 0.25); }
.amount-box input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 600 1rem "Crimson Pro", Georgia, serif; }
.amount-box input::placeholder { color: rgba(237, 227, 207, 0.4); font-weight: 400; }
.amount-box .cur { color: var(--gold); font: 600 1rem "Crimson Pro", Georgia, serif; margin-left: 6px; }
.custom-amount .btn { margin: 4px 0; min-width: 92px; }
.hall { list-style: none; padding: 0; margin: 0 0 10px; }
.hall li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(90, 74, 58, 0.45); }
.hall-tier { color: var(--gold); font-size: 0.9rem; }

/* VIP menu in the top bar (base.html): a <details> dropdown, no script (CSP) */
.navmenu { position: relative; }
.navmenu summary { cursor: pointer; list-style: none; color: var(--gold); }
.navmenu summary::-webkit-details-marker { display: none; }
.navmenu summary::after { content: " \25BE"; font-size: 0.8em; }
.navmenu summary:hover, .navmenu[open] summary { color: var(--gold-hi); }
.navmenu-items { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; min-width: 190px; display: flex; flex-direction: column;
  padding: 6px 0; background: linear-gradient(var(--wood-hi), var(--wood)); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6); }
.navmenu-items a { padding: 6px 16px; white-space: nowrap; }
.navmenu-items a:hover { background: rgba(232, 180, 90, 0.1); }
@media (max-width: 700px) { .navmenu-items { position: static; box-shadow: none; margin-top: 6px; } }
/* Armory share link */
.share label { display: block; margin-bottom: 6px; }
.share input { width: 100%; padding: 6px 10px; background: rgba(0, 0, 0, 0.35); color: var(--text); border: 1px solid var(--iron); border-radius: var(--radius); font: inherit; }
/* Support page: the goal and "Donate once" side by side at the top; the Hall of Fame below the tiers */
.support-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 18px; align-items: stretch; }
.support-top.single { grid-template-columns: 1fr; }
.support-top .goal { margin: 0; }
.support-top .donate h2 { margin-bottom: 0.4em; }
.support-top .donate p { margin: 0.3em 0; }
.hall-section { margin-top: 26px; }
@media (max-width: 760px) { .support-top { grid-template-columns: 1fr; } }
.support-top .goal { display: flex; flex-direction: column; justify-content: center; }
main section.support-top { margin-bottom: 22px; }
main section.tiers { margin-bottom: 26px; }
.kofi-alt { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(90, 74, 58, 0.45); }
.kofi-alt .btn { margin: 0 6px; }

/* Icons from the game (game-icons.net, CC BY 3.0: see /credits): class, specialization and ability pictures */
.chips img { width: 40px; height: 40px; flex: none; border-radius: 6px; border: 1px solid var(--gold-game); }
.cls h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.cls-icon { width: 56px; height: 56px; border-radius: 8px; border: 1px solid var(--gold-game);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 14px rgba(204, 158, 84, 0.25); }
.specs li { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; align-items: start; }
.specs li > * { grid-column: 2; }
.specs li > img { grid-column: 1; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--iron); }
.ab-icon { width: 32px; height: 32px; vertical-align: middle; margin-right: 8px; border-radius: 5px; border: 1px solid var(--iron); }
.doc section > h2 { padding-bottom: 0.25em; border-bottom: 1px solid rgba(204, 158, 84, 0.3); }
.credits h3 { margin: 1em 0 0.2em; font-size: 1rem; color: var(--gold-hi); }
.icon-list { margin-top: 0; line-height: 1.6; }

/* Donate page (0.37.7): the goal as a slim strip, then "Donate once" in two steps side by side (note, then amount: an
   amount button goes straight to payment, so the note comes first). Fields in the kit's look: a dark well with a gold rim. */
.goal-strip { padding: 16px 22px; margin-bottom: 18px; }
.goal-strip .goal-head h2 { font-size: 1.15rem; }
.goal-strip .goal-figures { margin: 0 0 6px; }
.goal-strip progress { height: 12px; }
.goal-strip p.small { margin: 8px 0 0; }
.donate { margin-bottom: 26px; padding: 22px 24px; }
.donate-head { margin: 0 0 14px; }
.donate-head h2 { margin: 0 0 0.2em; }
.donate-head p { margin: 0; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 760px) { .donate-grid { grid-template-columns: 1fr; } }
.donate-step { padding: 16px 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(90, 74, 58, 0.55); border-radius: var(--radius); }
.donate-step h3 { margin: 0 0 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 0.95rem Cinzel, Georgia, serif;
  color: #1b130b; background: linear-gradient(180deg, var(--gold-hi), #b8863a); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); }
.donate-step .amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0; }
/* Amount picks: radios drawn as buttons; the picked one gold (choosing never pays: the Donate button in step 2 does) */
.amount-pick { position: relative; cursor: pointer; }
.amount-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.amount-pick span { display: block; padding: 12px 8px; text-align: center; font: 600 1.05rem "Crimson Pro", Georgia, serif; color: var(--text);
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--iron); border-radius: var(--radius); transition: border-color 0.15s, background 0.15s; }
.amount-pick:hover span { border-color: var(--gold); }
.amount-pick input:checked + span { color: #1b130b; background: linear-gradient(180deg, var(--gold-hi), #b8863a); border-color: var(--gold-hi); }
.amount-pick input:focus-visible + span { box-shadow: 0 0 0 2px rgba(232, 180, 90, 0.45); }
.donate-step .custom-label { margin: 14px 0 4px !important; }
.donate-step .amount-box { width: 100%; max-width: 220px; }
.donate-go { width: 100%; margin: 16px 0 0; }
.donate-foot { margin-top: 16px; }
.donate-foot p { margin: 0.3em 0; }
.donor-choices { display: grid; gap: 6px; margin: 0; text-align: left; }
.field-label { display: grid; gap: 6px; font-weight: 600; }
.field { width: 100%; box-sizing: border-box; padding: 10px 12px; font: 1rem "Crimson Pro", Georgia, serif; font-weight: 400; color: var(--text);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--gold); border-radius: var(--radius); outline: 0; }
.field::placeholder { color: rgba(237, 227, 207, 0.4); }
.field:focus { border-color: var(--gold-hi); box-shadow: 0 0 0 2px rgba(232, 180, 90, 0.25); }
.field-note { display: block; margin: 0; font-size: 0.85rem; font-weight: 400; color: #ada18c; }
/* A gold switch instead of the browser's checkbox */
.switch, .checkout label.switch { position: relative; display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: block; flex: none; position: relative; width: 42px; height: 24px; margin-top: 1px; border-radius: 12px; background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--iron); transition: background 0.15s, border-color 0.15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #8d7f6a; transition: transform 0.15s, background 0.15s; }
.switch input:checked + .switch-track { background: rgba(232, 180, 90, 0.25); border-color: var(--gold); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--gold-hi); }
.switch input:focus-visible + .switch-track { box-shadow: 0 0 0 2px rgba(232, 180, 90, 0.45); }
.checkout .donor-choices { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(90, 74, 58, 0.45); }


/* ---- sitewide ---- */
/* Primary nav item: "Get access" / "Play free" is the gold button, the other links are plain text */
nav .nav-cta { margin: 0; font-size: 1rem; padding: 6px 16px; white-space: nowrap; }
nav a:not(.btn):not(.who) { padding: 6px 2px; }
nav .btn.secondary { margin: 0; }
nav a:focus-visible, .nf-links a:focus-visible, .btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
@media (max-width: 700px) {
  header.top { gap: 10px; }
  nav { gap: 4px 14px; width: 100%; }
  nav .nav-cta { order: -1; flex: 1 0 100%; text-align: center; padding: 10px 16px; font-size: 1.1rem; }
  nav a:not(.btn):not(.who) { padding: 10px 2px; }   /* a comfortable tap size */
  nav .btn.secondary { padding: 8px 14px; }
}
/* 404 page */
.nf-links { list-style: none; margin: 24px auto 0; padding: 0; max-width: 760px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); text-align: left; }
.nf-links a { display: block; padding: 14px 16px; border: 1px solid var(--iron); border-radius: var(--radius); background: linear-gradient(180deg, var(--wood-hi), var(--wood)); }
.nf-links a:hover { border-color: var(--gold); }
.nf-links b { display: block; color: var(--gold-hi); font-size: 1.1rem; }
.nf-links span { color: var(--dim); }

/* ---- content ---- */
/* Guide, classes, patch notes and leaderboard: start-here box, role overview, calls to action, patch note pager. */
.cn-start { margin: 0 0 1.6em; border-color: var(--gold); max-width: 820px; }
.cn-start h2 { margin-top: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.cn-steps { margin: 0.6em 0 1em; padding-left: 1.4em; }
.cn-steps li { margin: 0.5em 0; }
.cn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.8em 0 0; }
.cn-toc-h { font-size: 1rem; margin: 0 0 0.5em; color: var(--dim, inherit); }
.cn-next { margin-top: 1em; }
.cn-links { margin-top: 1em; }
.cn-roles { margin: 0 0 1.6em; }
.cn-roles .grid3 { margin-top: 12px; }
.cn-cta { margin: 1.6em 0; text-align: center; }
.cn-cta h2 { margin-top: 0; }
.cn-cta .cn-actions { justify-content: center; }
.cn-pager { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 2em; }
.cn-pager a { flex: 1 1 200px; border: 1px solid var(--iron); border-radius: var(--radius); padding: 10px 14px; background: var(--wood); }
.cn-pager a:hover, .cn-pager a:focus-visible { border-color: var(--gold); }
.cn-latest { border-color: var(--gold); }
.cn-badge { display: inline-block; margin: 0 0 0.4em; padding: 2px 10px; border-radius: var(--radius); background: linear-gradient(#b8863a, #7a5420); color: #1b120a; font-weight: 700; font-size: 0.85rem; }
.cn-newbie { max-width: 760px; margin: 0 0 1em; }
@media (max-width: 480px) { .cn-actions .btn { flex: 1 1 100%; text-align: center; } }

/* ---- funnel ---- */
/* Front page hero and "How to start" steps, and the Get access page (/beta): one clear promise, one gold button per
   step, the current step highlighted. Scoped to .page-home and .page-access (base.html's bodyclass block). */
.page-home a:focus-visible, .page-home button:focus-visible,
.page-access a:focus-visible, .page-access button:focus-visible, .page-access input:focus-visible {
  outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* Home: the hero */
.funnel-promise { font: 600 clamp(1.05rem, 2.4vw, 1.4rem)/1.4 Cinzel, Georgia, serif; letter-spacing: 0.03em; color: var(--text);
  max-width: 760px; margin: 0 auto 0.8rem; text-shadow: 0 2px 10px #000; }
.funnel-promise b { color: var(--gold-hi); font-weight: 600; }
.hero-lede.funnel-lede { margin-bottom: 1.4em; }
.funnel-cta { margin-bottom: 10px; }
.funnel-sub { margin: 0 auto 26px; color: var(--text); font-size: 1rem; text-shadow: 0 2px 8px #000; }
.funnel-sub a { white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.funnel-news { margin: 18px auto 0; font-size: 0.95rem; color: var(--text); text-shadow: 0 2px 8px #000; }
.funnel-news b { color: var(--gold-hi); font-weight: 600; }
.funnel-returning { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 10px auto 0;
  font-size: 0.95rem; text-shadow: 0 2px 8px #000; }
.funnel-returning span { color: var(--dim); }

/* Home: How to start */
.funnel-start { margin-top: 24px; }
ol.grid3.funnel-steps { list-style: none; padding: 0; margin: 40px 0 0; row-gap: 34px; }
.funnel-steps .panel { display: flex; flex-direction: column; align-items: flex-start; }
.funnel-steps .panel p { margin: 0 0 12px; }
.funnel-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px 24px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.funnel-facts li { padding-left: 14px; border-left: 2px solid var(--gold); color: var(--dim); }
.funnel-facts b { display: block; color: var(--text); }
.funnel-final .btn { margin: 6px; }

/* Get access: status box, the steps, and the help panels */
.page-access main > .panel, .page-access main > section { margin: 0 0 24px; }
.access-now { padding: 16px 22px; }
.access-now p:last-child { margin-bottom: 0; }
.access-progress { font: 600 0.8rem Cinzel, Georgia, serif; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.access-list li { padding: 14px 12px 16px 56px; border-radius: var(--radius); }
.access-list li::before { left: 12px; top: 14px; }
.access-list li h3 { margin: 2px 0 6px; font-size: 1.1rem; }
.access-list li p { margin: 0 0 8px; }
.access-list li p:last-child { margin-bottom: 0; }
.access-list li.current { background: rgba(232, 180, 90, 0.08); border: 1px solid var(--gold); margin: 6px 0;
  box-shadow: 0 0 18px rgba(255, 190, 90, 0.12); }
.access-list li.current::before { background: linear-gradient(#ffd27a, #c88a2e); color: #1b120a; border-color: var(--gold-hi); }
.access-list li.waiting::before { content: "\2026"; border-color: var(--gold-hi); }
.access-list li.todo h3 { color: var(--dim); }
.access-list li.todo::before { border-color: var(--iron); color: var(--dim); }
.access-list .step-action { margin: 4px 0 10px; }
.access-list form.register { margin: 4px 0 12px; }
.access-list form.register label { line-height: 1.45; }
.access-invite-code { display: block; margin-top: 8px; }
.access-invite-code input { max-width: 100%; margin-top: 4px; padding: 4px 8px; background: rgba(0, 0, 0, 0.35);
  color: var(--text); border: 1px solid var(--iron); border-radius: var(--radius); font: inherit; }
.access-info { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin: 0 0 24px; }
.page-access .access-info section { margin: 0; }
.access-info h2 { font-size: 1.1rem; }
.access-next { padding-left: 1.3em; margin: 0 0 12px; }
.access-next li { margin: 4px 0; }
.access-info .step-action { margin: 12px 0 0; }
#invites code { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .access-list li { padding-left: 50px; padding-right: 8px; }
  .access-list li::before { left: 8px; }
  .funnel-cta .btn.big { width: 100%; text-align: center; margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .access-list li.current { box-shadow: none; } }

/* Public status page (statuspage.py): realm cards, charts drawn as inline SVG, band colours */
.status-realm { margin-bottom: 28px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-head h2 { margin: 0; }
.pill { display: inline-block; padding: 3px 14px; border-radius: 999px; font-size: 0.9rem; border: 1px solid var(--iron); color: var(--text); }
.band-smooth-pill { border-color: var(--good); color: var(--good); }
.band-busy-pill { border-color: var(--gold); color: var(--gold-hi); }
.band-struggling-pill { border-color: var(--bad); color: var(--bad); }
.band-unknown-pill, .band-off-pill, .band-maint-pill { color: var(--dim); }
.status-facts { margin: 0.8em 0; font-size: 1.1rem; }
.status-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 18px 0; }
.status-charts figure { margin: 0; }
.status-chart { width: 100%; height: 150px; display: block; background: rgba(0, 0, 0, 0.18); border-radius: var(--radius); }
.status-chart .grid { stroke: var(--iron); stroke-width: 1; opacity: 0.5; }
.status-chart .players { fill: none; stroke: var(--gold-hi); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.status-chart .maint { fill: var(--dim); opacity: 0.25; }
.band-smooth, .band-smooth-sw { fill: var(--good); background: var(--good); }
.band-busy, .band-busy-sw { fill: var(--gold); background: var(--gold); }
.band-struggling, .band-struggling-sw { fill: var(--bad); background: var(--bad); }
.band-unknown, .band-off, .band-off-sw { fill: var(--iron); background: var(--iron); }
.maint-sw { background: var(--dim); opacity: 0.4; }
.status-key { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.status-key .key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.status-key .key-line { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--gold-hi); margin-right: 4px; }
/* Gallery (gallery.py) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 18px 0; }
.gallery-card { display: flex; flex-direction: column; gap: 6px; }
.gallery-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--iron); border-radius: 4px; background: #000; }
.gallery-full { max-width: 100%; height: auto; border: 1px solid var(--iron); border-radius: 4px; }
.gallery-star { max-width: 520px; margin-bottom: 18px; }
.gallery-report form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

/* ---- Status page: the Services section, the 90 day uptime bars and the banner (DESIGN.md 133) ---- */
.status-banner { display: flex; flex-direction: column; gap: 4px; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--gold); background: rgba(232, 180, 90, 0.12); color: var(--gold-hi); }
.status-banner.banner-down { border-color: var(--bad); background: rgba(224, 106, 90, 0.14); color: var(--text); }
.status-banner.banner-down > b { color: var(--bad); }
.status-banner .banner-text { color: var(--text); }
.status-services { margin-bottom: 28px; }
.status-realms-h { margin-top: 8px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px 32px; }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.svc-head h3 { margin: 0; font-size: 1.1rem; }
.svc-line { margin: 4px 0 8px; }
.svc-pill-up { border-color: var(--good); color: var(--good); }
.svc-pill-degraded { border-color: var(--gold); color: var(--gold-hi); }
.svc-pill-down { border-color: var(--bad); color: var(--bad); }
.svc-pill-maintenance, .svc-pill-unknown { color: var(--dim); }
.uptime { margin: 8px 0 12px; }
.uptime-bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; height: 28px; }
.uptime-bar li { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--iron); }
.uptime-bar .u-up, .u-up-sw { background: var(--good); }
.uptime-bar .u-degraded, .u-degraded-sw { background: var(--gold); }
.uptime-bar .u-down, .u-down-sw { background: var(--bad); }
.uptime-bar .u-maintenance, .u-maintenance-sw { background: var(--dim); }
.uptime-bar .u-nodata, .u-nodata-sw { background: var(--iron); opacity: 0.5; }
.uptime-bar li:hover { outline: 1px solid var(--gold-hi); }
.uptime-foot { display: flex; justify-content: space-between; margin: 4px 0 0; }
@media (max-width: 560px) { .svc-list { grid-template-columns: 1fr; } .uptime-bar { gap: 1px; height: 24px; } }

/* ---- the wiki (wiki.py, templates/_wiki_layout.html): menu with search, the page, "On this page" ---- */
.page-wiki main { max-width: 1280px; }
.wiki { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 32px; align-items: start; }
.wiki-nav { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 6px; }
.wiki-menu-btn { display: none; }
.wiki-search { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 0 0 14px; border: 1px solid var(--iron);
  border-radius: var(--radius); background: rgba(0, 0, 0, 0.3); color: var(--dim); }
.wiki-search:focus-within { border-color: var(--gold); }
.wiki-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--text); background: none; border: 0; outline: none; }
.wiki-results { list-style: none; margin: -6px 0 14px; padding: 6px 0; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--wood); }
.wiki-results[hidden] { display: none; }
.wiki-results a { display: block; padding: 6px 12px; color: var(--text); }
.wiki-results a:hover, .wiki-results a:focus-visible { background: rgba(232, 180, 90, 0.12); color: var(--gold-hi); }
.wiki-results small { display: block; color: var(--dim); font-size: 0.8rem; }
.wiki-results .none { padding: 6px 12px; color: var(--dim); }
.wiki-home { display: block; font-family: Cinzel, Georgia, serif; margin: 0 0 12px; padding-left: 10px; border-left: 2px solid transparent; }
.wiki-cat { margin: 0 0 14px; }
.wiki-cat-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font: 600 0.8rem Cinzel, Georgia, serif;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.wiki-cat-title a { color: inherit; }
.wiki-cat ul { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 1px solid var(--iron); }
.wiki-cat li a { display: block; padding: 3px 10px; color: var(--text); font-size: 0.98rem; border-left: 2px solid transparent; margin-left: -1px; }
.wiki-cat li a:hover { color: var(--gold-hi); }
.wiki-cat li a.active, .wiki-home.active { color: var(--gold-hi); border-left-color: var(--gold); }
.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }
.icon.big { width: 30px; height: 30px; color: var(--gold); }
.wiki-main { min-width: 0; max-width: 760px; }
.wiki-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.2em; }
.wiki-main h2 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 1.8em 0 0.5em; scroll-margin-top: 16px; }
.wiki-main h3 { font-size: 1.05rem; }
.wiki-main .lede { color: var(--dim); }
.wiki-text ul, .wiki-text ol { padding-left: 1.3em; margin: 0.4em 0 1em; }
.wiki-text li { margin: 0.3em 0; }
.wiki-text p { margin: 0 0 0.9em; }
.wiki-main table { margin: 0.4em 0 1.2em; }
.wiki-main .tablewrap table { min-width: 0; }
.wiki-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.9rem; color: var(--dim); margin: 0 0 14px; }
.wiki-crumbs a { color: var(--dim); }
.wiki-crumbs a:hover { color: var(--gold-hi); }
.wiki-toc { position: sticky; top: 16px; font-size: 0.92rem; border-left: 1px solid var(--iron); padding-left: 14px; }
.wiki-toc-h { font: 600 0.75rem Cinzel, Georgia, serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.wiki-toc ul { list-style: none; margin: 0; padding: 0; }
.wiki-toc li a { display: block; padding: 3px 0; color: var(--dim); }
.wiki-toc li a:hover { color: var(--gold-hi); }
.wiki-section { margin: 0 0 36px; }
.wiki-section h2 { display: flex; align-items: center; gap: 10px; margin-top: 0.6em; }
.wiki-cap { margin: 0 0 24px; color: var(--dim); }
.wiki-foot { margin-top: 3em; }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; margin: 0.6em 0 1.4em; }
.wcard { display: block; padding: 16px 18px; color: var(--text); }
.wcard h3 { margin: 0 0 0.3em; font-size: 1rem; }
.wcard p { margin: 0; color: var(--dim); font-size: 0.98rem; }
a.wcard:hover { border-color: var(--gold); color: var(--text); }
a.wcard:hover h3 { color: var(--gold-hi); }
.wtip { border-left: 3px solid var(--gold); padding: 10px 14px; margin: 0.4em 0 1.2em; background: rgba(232, 180, 90, 0.07); border-radius: 0 var(--radius) var(--radius) 0; }
kbd { display: inline-block; min-width: 1.6em; padding: 0 6px; font: 600 0.85em/1.6 Consolas, monospace; text-align: center; color: var(--gold-hi);
  background: linear-gradient(#3a2819, #241810); border: 1px solid var(--iron); border-bottom-width: 2px; border-radius: 4px; }
.wiki-main code { font-family: Consolas, monospace; font-size: 0.92em; color: var(--gold-hi); background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 3px; }
/* Tooltips: hover or focus (a tap on a phone) shows the text above the word; the title attribute is the fallback */
.tip, .mnode, .res { position: relative; cursor: help; }
.tip { border-bottom: 1px dotted var(--gold); }
.tip:focus-visible, .mnode:focus-visible, .res:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.tip[data-tip]:hover::after, .tip[data-tip]:focus::after, .mnode[data-tip]:hover::after, .mnode[data-tip]:focus::after,
.res[data-tip]:hover::after, .res[data-tip]:focus::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(300px, 80vw);
  padding: 8px 12px; font: 400 0.92rem/1.4 "Crimson Pro", Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--text);
  background: #1b130c; border: 1px solid var(--gold); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); white-space: normal; }
/* class pages */
.cls-head { display: flex; align-items: center; gap: 18px; margin: 0 0 10px; }
.cls-head .cls-icon { width: 72px; height: 72px; border: 1px solid var(--iron); border-radius: var(--radius); background: rgba(0, 0, 0, 0.3); }
.cls-head h1 { margin: 0 0 6px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.role-badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 0.85rem; border: 1px solid var(--iron);
  color: var(--text); background: rgba(0, 0, 0, 0.3); margin: 0; }
.role-tank { border-color: #6a9be0; color: #a9c8f5; }
.role-healer { border-color: #6fc47a; color: #a8e6ae; }
.role-damage, .role-melee-dps, .role-ranged-dps, .role-caster-dps { border-color: #d0705a; color: #f2b0a0; }
.role-badge.res { border-color: var(--gold); color: var(--gold-hi); }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; margin: 0 0 1.2em; }
.fact { padding: 12px 16px; }
.fact .eyebrow { margin: 0 0 4px; }
.fact p:last-child { margin: 0; }
.spec img { float: right; width: 40px; height: 40px; margin: 0 0 6px 8px; }
.spec .role-badge { margin: 0 0 6px; }
.abilities td { vertical-align: top; }
.abilities td:first-child { width: 2.6em; }
.abilities td:nth-child(3), .abilities td:nth-child(4) { white-space: nowrap; }
.ab-name { white-space: nowrap; }
.ab-name .ab-icon { width: 28px; height: 28px; vertical-align: middle; margin-right: 8px; border: 1px solid var(--iron); border-radius: 3px; }
.ranks { margin-top: 6px; }
.ranks summary { cursor: pointer; color: var(--gold); font-size: 0.9rem; }
.ranks ol { margin: 6px 0 0; padding-left: 1.2em; font-size: 0.95rem; color: var(--dim); }
.ranks b { color: var(--text); font-weight: 600; }
.more-later { margin: 0 0 1.2em; font-style: italic; }
.trees3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.mtree-card { padding: 14px 16px; }
.mtree-card h3 { margin: 0 0 8px; }
.mnodes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.mnode { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--iron); border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25); font-size: 0.95rem; }
.mnode .lv { flex: none; min-width: 2em; text-align: center; font-size: 0.78rem; font-weight: 700; color: #1b120a; background: var(--gold); border-radius: 3px; }
.mnode.cap { border-color: var(--gold); }
.classcard img { float: right; width: 48px; height: 48px; margin-left: 8px; }
.classcard .badges { margin: 4px 0 8px; }
@media (max-width: 1100px) {
  .wiki { grid-template-columns: 220px minmax(0, 1fr); }
  .wiki-toc { display: none; }
}
@media (max-width: 760px) {
  .wiki { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wiki-nav { position: static; max-height: none; overflow: visible; padding: 0; }
  .wiki-menu-btn { display: inline-block; margin: 0 0 10px; }
  .js .wiki-nav:not(.open) .wiki-nav-body { display: none; }
  .wiki-nav.open .wiki-nav-body { padding: 12px; border: 1px solid var(--iron); border-radius: var(--radius); background: var(--wood); }
  .ab-name { white-space: normal; }
  .abilities thead { display: none; }
  .abilities, .abilities tbody, .abilities tr, .abilities td { display: block; width: auto; }
  .abilities tr { padding: 10px 0; border-bottom: 1px solid rgba(90, 74, 58, 0.6); }
  .abilities td { border: 0; padding: 2px 0; }
  .abilities td:first-child { display: inline-block; width: auto; margin-right: 6px; }
  .abilities td:nth-child(2) { display: inline; }
  .abilities td:nth-child(3), .abilities td:nth-child(4) { display: inline-block; margin-right: 12px; font-size: 0.9rem; color: var(--dim); }
  .abilities td:nth-child(3)::before { content: "Cost "; }
  .abilities td:nth-child(4)::before { content: "Cooldown "; }
}

/* ---- the front page (index.html): hero, realm status strip, 3 steps, six feature cards, updates, screenshots ---- */
.page-home .hero-full { min-height: min(78vh, 760px); }
.status-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; max-width: 1100px;
  margin: -40px auto 0; position: relative; z-index: 2; padding: 14px 16px; background: linear-gradient(180deg, var(--wood-hi), var(--wood));
  border: 1px solid var(--iron); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55); }
.status-strip .realm-card { background: rgba(0, 0, 0, 0.3); }
.realm-open { color: var(--dim); font-size: 0.95rem; }
.home-steps { margin-top: 36px; }
.home-features h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
ol.grid3.steps { list-style: none; padding: 0; margin: 40px 0 0; row-gap: 34px; }
.home-steps .panel { display: flex; flex-direction: column; align-items: flex-start; }
.home-steps .panel p { margin: 0 0 12px; }
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-top: 20px; }
.feature-card { display: block; color: var(--text); padding: 20px 22px; }
.feature-card h3 { margin: 0 0 6px; }
.feature-card p { margin: 0; color: var(--dim); }
.feature-card:hover { border-color: var(--gold); color: var(--text); }
.home-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.note-card { display: block; color: var(--text); }
.note-card:hover { border-color: var(--gold); color: var(--text); }
.note-card h3 { margin: 0 0 4px; }
.note-card .more { color: var(--gold); }
.home-news .news { max-width: none; margin: 0; }
.home-news .news h3 { margin: 0 0 6px; }
@media (max-width: 600px) { .status-strip { margin: -32px 16px 0; } }

/* Armory paper doll */
.paperdoll { display: grid; grid-template-columns: 1fr minmax(60px, 110px) 1fr; gap: 10px; align-items: start; }
.pcol { display: grid; gap: 10px; justify-items: center; }
.pmid { align-self: center; text-align: center; position: relative; }
.pmid .figure { width: 100%; max-width: 90px; fill: rgba(232, 180, 90, 0.08); stroke: var(--iron); stroke-width: 1.5; }
.plevel { display: block; color: var(--dim); font-size: 0.85rem; }
.prow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 6px; }
.gslot { --rc: var(--iron); position: relative; width: 64px; height: 64px; box-sizing: border-box; border: 2px solid var(--rc); border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35); display: flex; align-items: center; justify-content: center; cursor: default; }
.gslot.r-0 { --rc: var(--r-common); } .gslot.r-1 { --rc: var(--r-uncommon); } .gslot.r-2 { --rc: var(--r-rare); }
.gslot.r-3 { --rc: var(--r-epic); } .gslot.r-4 { --rc: var(--r-legendary); }
.gslot:not(.empty) { box-shadow: 0 0 10px -1px var(--rc), inset 0 0 8px -2px var(--rc); }
.gslot .glyph { width: 34px; height: 34px; fill: none; stroke: var(--rc); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.gslot.empty { border-color: #6b5a47; background: rgba(0, 0, 0, 0.55); }   /* the game's empty slot: iron frame, dark inside */
.gslot.empty .glyph { stroke: var(--wood-hi); }
.gslot .gname { position: absolute; bottom: 1px; left: 0; right: 0; text-align: center; font-size: 0.55rem; color: var(--dim); white-space: nowrap; overflow: hidden; }
.gslot:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.gtip { display: none; position: absolute; z-index: 20; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: max-content; max-width: min(260px, 70vw);
  background: var(--bg); border: 1px solid var(--rc); border-radius: var(--radius); padding: 8px 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7); text-align: left; font-size: 0.9rem; pointer-events: none; }
.gtip .gline { display: block; }
.gtip .stat { color: var(--good); }
.gslot:hover .gtip, .gslot:focus .gtip, .gslot:focus-within .gtip { display: block; }
.pcol:first-child .gtip { left: 0; transform: none; }
.pcol:last-child .gtip { left: auto; right: 0; transform: none; }
@media (max-width: 420px) { .gslot { width: 54px; height: 54px; } .gslot .glyph { width: 28px; height: 28px; } .paperdoll { gap: 6px; } }

/* Account page */
.account-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.account-grid .panel { min-width: 0; }
.account-grid .panel.wide { grid-column: 1 / -1; }
.tablewrap { overflow-x: auto; }
.nowrap { white-space: nowrap; }
.account-grid label.line { display: block; margin: 2px 0; }

/* Help page (templates/help.html): the form left and wider, the ticket list right; the three kinds as cards to pick */
.help-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 860px) { .help-layout { grid-template-columns: minmax(0, 1fr); } }
.ticket-form { display: grid; gap: 16px; margin: 12px 0 8px; }
.ticket-form .btn { justify-self: start; }
.ticket-form textarea.field { resize: vertical; min-height: 9rem; }
fieldset.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
fieldset.kinds legend { margin-bottom: 8px; }
@media (max-width: 560px) { fieldset.kinds { grid-template-columns: minmax(0, 1fr); } }
.kind-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px 12px 12px 14px; border: 1px solid var(--iron);
  border-radius: 6px; background: rgba(0, 0, 0, 0.22); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.kind-card:hover { border-color: var(--gold); }
.kind-card input[type=radio] { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; accent-color: var(--gold); margin: 0; }
.kind-card:has(input:checked) { border-color: var(--gold-hi); box-shadow: 0 0 0 1px var(--gold-hi), 0 0 18px rgba(255, 190, 90, 0.18); }
.kind-card:has(input:focus-visible) { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.kind-card.static { cursor: default; }
.kind-card b { font-family: Cinzel, Georgia, serif; color: var(--gold-hi); letter-spacing: 0.03em; }
.kind-icon { font-size: 1.4rem; line-height: 1; }
.help-other { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(90, 74, 58, 0.6); }
.help-list table.tickets { width: 100%; border-collapse: collapse; }
.help-list table.tickets tr + tr td { border-top: 1px solid rgba(90, 74, 58, 0.5); }
.help-list table.tickets td { vertical-align: middle; }
.help-list .kind-dot { margin-right: 6px; }
.help-list .num { color: var(--dim); }
.help-list .tablewrap { overflow-x: auto; }
.help-list .nowrap { white-space: nowrap; }
.help-list .tablewrap table { min-width: 0; }
.ticket-list { list-style: none; margin: 8px 0 0; padding: 0; }
.ticket-list li { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid rgba(90, 74, 58, 0.5); }
.ticket-list li:first-child { border-top: 0; }
.ticket-list a { font-size: 1.05rem; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--dim); font-size: 0.85rem; padding-left: 26px; }
.signup-help { margin: 14px 0 18px; padding: 14px 16px; border: 1px solid var(--gold); border-radius: 6px; background: rgba(0, 0, 0, 0.22); }
.signup-help h3 { margin: 0 0 6px; color: var(--gold-hi); }
.signup-help p { margin: 0 0 10px; }

/* Armory: search panel and sortable hero list */
.armory-mine, .armory-find, .hero-list, .panel.locked { margin: 0 0 24px; }
.armory-find h2, .hero-list h2 { margin-top: 0; }
.find-form { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 0; }
.find-form .field-label { flex: 1 1 260px; max-width: 420px; }
.find-form .btn { margin: 0; padding: 10px 22px; }
.hero-list .field-label { max-width: 420px; margin-bottom: 14px; }
.sort-btn { font: inherit; font-weight: 600; color: var(--dim); background: none; border: 0; padding: 2px 0; cursor: pointer; }
.sort-btn:hover, .sort-btn:focus-visible { color: var(--gold-hi); outline: 2px solid transparent; text-decoration: underline; }
th[aria-sort="ascending"] .sort-btn::after { content: " \25B2"; font-size: 0.7em; }
th[aria-sort="descending"] .sort-btn::after { content: " \25BC"; font-size: 0.7em; }
th[aria-sort] .sort-btn { color: var(--text); }
th[aria-sort="none"] .sort-btn { color: var(--dim); }
.hero-list tr[hidden] { display: none; }
.auction-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 0 0 20px; }
.auction-filters .field-label { flex: 1 1 160px; }
.auction-filters .btn { margin: 0; padding: 10px 22px; }
select.field { appearance: auto; color-scheme: dark; }
select.field option { background: #2a1d12; color: var(--text); }
.empty-state { text-align: center; padding: 32px 22px; }
.empty-state h2 { margin-top: 0; }
.auction-table td { vertical-align: top; }
.board-wrap.panel { padding: 8px 14px; }

/* Scrollbars in the site's wood and iron (the wiki's side menu, long tables, the page) */
* { scrollbar-width: thin; scrollbar-color: var(--iron) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--wood-hi); border: 2px solid var(--bg); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--iron); }
::-webkit-scrollbar-thumb:active { background: var(--gold-game); }
::-webkit-scrollbar-corner { background: var(--bg); }
::-webkit-scrollbar-button { display: none; }

/* Item pictures from the game (export_item_icons.py): in the Armory's slots and the auction list */
.gslot .gicon { width: 48px; height: 48px; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.7)); }
.aitem { white-space: nowrap; }
.aitem .aicon { width: 32px; height: 32px; vertical-align: middle; margin-right: 8px; padding: 2px; box-sizing: border-box;
  border: 1px solid var(--rc, var(--iron)); border-radius: var(--radius); background: rgba(0, 0, 0, 0.35); }
.aicon.r-0 { --rc: var(--r-common); } .aicon.r-1 { --rc: var(--r-uncommon); } .aicon.r-2 { --rc: var(--r-rare); }
.aicon.r-3 { --rc: var(--r-epic); } .aicon.r-4 { --rc: var(--r-legendary); }

/* Class and spec emblems next to names (leaderboard, hero page, mastery trees) */
.cls-icon { width: 20px; height: 20px; vertical-align: -4px; border-radius: 50%; }
.hero-cls { width: 56px; height: 56px; vertical-align: -10px; margin-right: 6px; border-radius: 50%; border: 2px solid var(--gold-game); background: rgba(0, 0, 0, 0.35); }
.spec-icon { width: 28px; height: 28px; vertical-align: -7px; margin-right: 4px; border-radius: 50%; }

.gslot .gsil { width: 44px; height: 44px; object-fit: contain; opacity: 0.4; }
.gear-totals { margin-top: 4px; }
.gear-totals .stat { color: var(--good); }
