/* Soul Seal website. Palette from launcher/src/ui/Style.gd and game/src/ui/UITheme.gd. */
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("../fonts/alegreya-sans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --obsidian: #0b0c11;
  --ink: #1b1e2a;
  --ink-2: #151822;
  --field: #11131b;
  --line: rgba(201, 164, 106, .22);
  --line-2: rgba(201, 164, 106, .45);
  --gold: #c9a46a;
  --bright: #f2bc32;
  --parchment: #e8d9b8;
  --text: #ded3bd;
  --muted: #a39b8c;
  --teal: #3aa8a0;
  --fail: #d0574d;
  --ok: #5fae7b;
  --hover-text: #ffe7a8;
  --radius: 6px;
  --wrap: 1240px;
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  --display: "Cinzel", "Trajan Pro", "Cormorant Garamond", Georgia, serif;
  --body: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--obsidian) radial-gradient(1200px 600px at 50% -200px, rgba(58, 168, 160, .06), transparent 70%);
  color: var(--text); font: 400 18px/1.6 var(--body);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-color: rgba(201, 164, 106, .4); text-underline-offset: 3px; }
a:hover { color: var(--hover-text); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { color: var(--parchment); line-height: 1.2; margin: 0 0 .5em; }
h1, h2, .h-display { font-family: var(--display); font-weight: 700; letter-spacing: .02em; }
h3 { font-family: var(--body); font-weight: 700; font-size: 1.12rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "DejaVu Sans Mono", monospace; font-size: .86em; }
code { overflow-wrap: anywhere; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); padding: .05em .35em; border-radius: 4px; color: var(--parchment); }
kbd { font: 600 .82em var(--body); background: var(--ink); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: .05em .45em; color: var(--parchment); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bright); color: #111; padding: 8px 14px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }
.inline { display: inline; margin: 0; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--bright);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .95rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .85em 1.4em; border-radius: 4px; border: 1px solid var(--b); cursor: pointer;
  color: var(--parchment); background: rgba(0, 0, 0, .55); transition: background .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn:hover { background: #33240a; color: var(--hover-text); box-shadow: 0 0 0 1px var(--bright), 0 0 22px rgba(242, 188, 50, .18); }
.btn:active { background: #573d0a; transform: translateY(1px); }
.btn-gold { color: #1a1204; background: linear-gradient(180deg, #f6cf62, #d9a02a 55%, #b8801c); border-color: #f7d77e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(242, 188, 50, .18); }
.btn-gold:hover { color: #140d02; background: linear-gradient(180deg, #ffe08a, #e8b23a 55%, #c48c22); }
.btn-ghost { background: rgba(11, 12, 17, .55); border-color: rgba(242, 188, 50, .7); backdrop-filter: blur(4px); }
.btn-danger { --b: var(--fail); color: #ffd9d4; background: rgba(90, 20, 16, .5); }
.btn-danger:hover { background: rgba(130, 30, 22, .7); box-shadow: 0 0 0 1px var(--fail); color: #fff; }
.btn-sm { font-size: .78rem; padding: .6em 1em; }
.btn-lg { font-size: 1.05rem; padding: 1em 1.7em; }
.btn-block { width: 100%; }
.btn[disabled], .btn-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.right { margin-left: auto; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer; text-decoration: underline; text-decoration-color: rgba(201, 164, 106, .4); text-underline-offset: 3px; }
.linklike:hover { color: var(--hover-text); }
.linklike.danger { color: #e58a80; }
.ico { width: 1.15em; height: 1.15em; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-dl { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5 1.4 1.4L12 16.8l-5.9-5.9 1.4-1.4L11 13z'/%3E%3Cpath d='M4 18h16v2H4z'/%3E%3C/svg%3E"); }
.ico-pp { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.1-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.9-8 11-8 11z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(11, 12, 17, .86); backdrop-filter: blur(10px) saturate(1.2); border-bottom: 1px solid var(--line); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 188, 50, .55), transparent); }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parchment); font: 700 1.3rem var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.brand img { filter: drop-shadow(0 0 8px rgba(58, 168, 160, .35)); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .nav-account > a, .nav-account .linklike {
  font: 600 .82rem var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: var(--text); padding: 10px 12px; border-radius: 4px; position: relative;
}
.nav > a:hover, .nav-account > a:hover, .nav-account .linklike:hover { color: var(--hover-text); background: rgba(242, 188, 50, .06); }
.nav > a[aria-current="page"], .nav-account a[aria-current="page"], .nav-account .is-current { color: var(--bright); }
.nav > a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--bright); border-radius: 2px; box-shadow: 0 0 10px rgba(242, 188, 50, .6); }
.nav-account { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-account .linklike { text-decoration: none; }
.nav-account > a.btn { margin-left: 6px; color: #1a1204; padding: .75em 1.1em; }
.nav-account > a.btn:hover { color: #140d02; background: linear-gradient(180deg, #ffe08a, #e8b23a 55%, #c48c22); }
.acct-link { display: inline-flex !important; align-items: center; gap: 8px; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 .85rem var(--display); color: #1a1204; background: linear-gradient(160deg, #f6cf62, #b8801c); box-shadow: 0 0 0 2px rgba(0, 0, 0, .6), 0 0 0 3px rgba(242, 188, 50, .5); flex: none; }
.avatar-lg { width: 54px; height: 54px; font-size: 1.4rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 2.2rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 4px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--parchment); margin: 0 auto; position: relative; content: ""; transition: transform .2s; }
.nav-toggle .bars::before { position: absolute; top: -6px; }
.nav-toggle .bars::after { position: absolute; top: 6px; }

/* ---------------------------------------------------------------- flashes */
.flashes { margin-top: 18px; }
.flash { padding: 12px 16px; border-radius: var(--radius); border: 1px solid; margin-bottom: 8px; }
.flash-ok { background: rgba(74, 143, 98, .14); border-color: rgba(95, 174, 123, .55); color: #cfeed8; }
.flash-error { background: rgba(196, 69, 60, .14); border-color: rgba(208, 87, 77, .6); color: #ffd2cc; }
.notice { padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: rgba(201, 164, 106, .07); color: var(--parchment); }
.notice-warn { border-color: rgba(242, 188, 50, .6); background: rgba(242, 188, 50, .08); }
.notice-bad { border-color: rgba(208, 87, 77, .6); background: rgba(196, 69, 60, .12); color: #ffd2cc; }
.form-error { padding: 10px 14px; border-radius: var(--radius); border: 1px solid rgba(208, 87, 77, .6); background: rgba(196, 69, 60, .12); color: #ffd2cc; }
.empty, .empty-box { color: var(--muted); }
.empty-box { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 62% 30%; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(11, 12, 17, .94) 0%, rgba(11, 12, 17, .72) 34%, rgba(11, 12, 17, .1) 64%),
              linear-gradient(0deg, var(--obsidian) 0%, rgba(11, 12, 17, 0) 38%); }
.hero-in { padding-top: 120px; padding-bottom: 72px; }
.kicker { font: 700 .78rem var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--teal); margin: 0 0 .7em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--hover-text); }
.hero-title { font: 900 clamp(3.2rem, 9vw, 7.2rem)/.92 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0;
  background: linear-gradient(180deg, #fff3cf 0%, #f2bc32 48%, #a9721a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .7)); }
.hero-sub { font: 600 clamp(1.1rem, 2.2vw, 1.6rem) var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--parchment); margin: .4em 0 .9em; }
.hero-tag { font-size: clamp(1.1rem, 1.7vw, 1.35rem); max-width: 34ch; color: #efe4cc; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-realms { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-realms li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: rgba(11, 12, 17, .7); border: 1px solid var(--line); border-radius: 40px; font-size: .95rem; backdrop-filter: blur(4px); }
.hero-realms strong { color: var(--parchment); font-weight: 700; }
.hero-realms span:last-child { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot-up { background: #62d38a; box-shadow: 0 0 0 3px rgba(98, 211, 138, .18), 0 0 10px rgba(98, 211, 138, .8); }
.dot-down { background: var(--fail); box-shadow: 0 0 0 3px rgba(208, 87, 77, .18); }

/* ---------------------------------------------------------------- page head */
.page-head { position: relative; padding: 76px 0 44px; border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, rgba(27, 30, 42, .8), rgba(11, 12, 17, 0)), var(--obsidian); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .38; background-size: cover; background-position: center 40%;
  -webkit-mask: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); mask: linear-gradient(90deg, transparent 0%, #000 45%, #000 100%); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--obsidian), transparent 70%); }
.page-head-download::before { background-image: url("../img/heads/download.webp"); }
.page-head-game::before { background-image: url("../img/shots/mountains.webp"); }
.page-head-guides::before { background-image: url("../img/heads/guides.webp"); }
.page-head-news::before { background-image: url("../img/shots/village_night.webp"); }
.page-head-forum::before { background-image: url("../img/shots/inn_exterior.webp"); }
.page-head-shop::before { background-image: url("../img/heads/shop.webp"); }
.page-head-donate::before { background-image: url("../img/heads/donate.webp"); }
.page-head-status::before { background-image: url("../img/heads/status.webp"); }
.page-head-account::before { background-image: url("../img/heads/account.webp"); opacity: .22; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); margin-bottom: .25em; }
.page-head .lead { max-width: 62ch; margin: 0; }
.lead { font-size: 1.16rem; color: #e6dcc6; }
.lead.narrow { max-width: 70ch; }

/* ---------------------------------------------------------------- bands */
.band { padding: 80px 0; }
.band-tight { padding: 44px 0 64px; }
.band-tight + .band-tight { padding-top: 0; }
.band-alt { background: linear-gradient(180deg, rgba(27, 30, 42, .55), rgba(27, 30, 42, .25)); border-block: 1px solid var(--line); }
.band-dark { background: radial-gradient(900px 400px at 75% 50%, rgba(58, 168, 160, .08), transparent), #07080c; border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { margin: 0; }
.h-display { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.more { font: 700 .8rem var(--display); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--bright); }
.more:hover { color: var(--hover-text); }

/* intro + card fan */
.band-intro { padding-top: 90px; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.card-fan { list-style: none; margin: 0; padding: 26px 0 0; display: flex; justify-content: center; align-items: flex-start; min-height: 330px; }
.card-fan li { flex: 0 0 150px; margin: 0 -24px; position: relative; transition: transform .25s; }
.card-fan img { width: 150px; border-radius: 10px; border: 2px solid rgba(242, 188, 50, .65); box-shadow: 0 16px 34px rgba(0, 0, 0, .65), 0 0 24px rgba(58, 168, 160, .18); }
.card-fan span { display: block; text-align: center; margin-top: 10px; font: 600 .8rem var(--display); letter-spacing: .06em; opacity: 0; transition: opacity .2s; color: var(--parchment); }
.card-fan li:nth-child(1) { transform: rotate(-12deg) translateY(30px); }
.card-fan li:nth-child(2) { transform: rotate(-7deg) translateY(11px); }
.card-fan li:nth-child(3) { transform: rotate(-2deg); }
.card-fan li:nth-child(4) { transform: rotate(3deg); }
.card-fan li:nth-child(5) { transform: rotate(8deg) translateY(11px); }
.card-fan li:nth-child(6) { transform: rotate(13deg) translateY(30px); }
.card-fan li:hover { transform: translateY(-22px) rotate(0); z-index: 5; }
.card-fan li:hover span { opacity: 1; }

/* news */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { display: flex; flex-direction: column; padding: 26px; background: linear-gradient(180deg, var(--ink), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; position: relative; }
.news-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--bright), transparent); border-radius: var(--radius) 0 0 var(--radius); }
.news-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.news-card time { font: 600 .75rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.news-card h3 { font: 700 1.3rem var(--display); margin: .5em 0; }
.news-card p { flex: 1; color: var(--muted); }
.news-row { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-row time { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 96px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--ink); font: 600 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-row time span { font-size: 2rem; color: var(--bright); line-height: 1; }
.news-row h2 { font-size: 1.45rem; margin: .1em 0 .4em; }
.news-row h2 a { color: var(--parchment); text-decoration: none; }
.news-row h2 a:hover { color: var(--hover-text); }

/* features */
.band-features { background: linear-gradient(180deg, transparent, rgba(27, 30, 42, .45) 30%, rgba(27, 30, 42, .45) 70%, transparent); }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature { display: grid; grid-template-rows: auto 1fr; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.feature img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.feature > div { padding: 24px 26px 26px; }
.feature h3 { font: 700 1.35rem var(--display); color: var(--parchment); }
.feature p { color: #cfc6b4; margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .4s; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; font-size: .9rem; color: var(--parchment); background: linear-gradient(0deg, rgba(0, 0, 0, .85), transparent); opacity: 0; transition: opacity .2s; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.05); }
.gallery a:hover span, .gallery a:focus-visible span { opacity: 1; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(5, 6, 9, .94); display: grid; place-items: center; padding: 24px; }
.lightbox figure { margin: 0; max-width: 1400px; width: 100%; }
.lightbox img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.lightbox figcaption { text-align: center; margin-top: 12px; color: var(--parchment); }
.lightbox button { position: absolute; top: 16px; right: 20px; background: none; border: 1px solid var(--line-2); color: var(--parchment); font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 20px; right: auto; }
.lightbox .lb-next { right: 20px; }

/* status */
.band-status { background: linear-gradient(90deg, rgba(58, 168, 160, .07), transparent 60%); border-block: 1px solid var(--line); padding: 56px 0; }
.status-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center; }
.realm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.realm-card { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.realm-name { display: flex; align-items: center; gap: 10px; font: 700 1.1rem var(--display); color: var(--parchment); }
.realm-meta { color: var(--muted); font-size: .92rem; margin: 2px 0 12px; }
.realm-num strong { font: 700 2.3rem/1 var(--display); color: var(--bright); margin-right: 8px; }
.realm-num span { color: var(--muted); }
.realm-build { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.realm-cards-big .realm-card { padding: 26px; }
.svc-list { list-style: none; padding: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); }
.svc-list li { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.svc-list li:last-child { border-bottom: 0; }
.svc-list .svc-name { flex: 1; }
.ok { color: #7fd79c; }
.bad { color: #f08a80; }
.small-h { font: 700 .8rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 30px 0 14px; }
.small-h:first-child { margin-top: 0; }

/* cta band */
.cta-band { position: relative; padding: 110px 0; text-align: center; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/shots/village_night.webp") center / cover; opacity: .45; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 12, 17, .55), var(--obsidian) 78%); }
.cta-in p { font-size: 1.2rem; color: var(--parchment); }
.cta-in .hero-cta { justify-content: center; }

/* ---------------------------------------------------------------- game page */
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(11, 12, 17, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { flex: none; padding: 14px 14px; font: 600 .76rem var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--hover-text); }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-rev { grid-template-columns: 1.1fr 1fr; }
.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.shot figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.place-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 48px; }
.place { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.place h3 { font: 700 1.05rem var(--display); color: var(--bright); margin-bottom: .35em; }
.place p { margin: 0; font-size: .98rem; color: #cfc6b4; }
.place-dark { background: #07080c; border-color: rgba(58, 168, 160, .35); }
.place-dark h3 { color: var(--teal); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; margin-top: 30px; }
.skill { display: grid; grid-template-columns: 56px 1fr; gap: 16px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.skill img, .skill-ph { width: 56px; height: 56px; border-radius: 6px; border: 1px solid var(--line-2); box-shadow: 0 0 0 2px rgba(0, 0, 0, .6); background: #000; }
.skill h3 { margin: 0 0 .1em; }
.skill-meta { font-size: .85rem; color: var(--teal); margin: 0 0 .35em; }
.skill p:last-child { margin: 0; font-size: .98rem; color: #cfc6b4; }
.steps { padding-left: 1.4em; margin: 0 0 1.2em; }
.steps li { margin-bottom: .55em; padding-left: .3em; }
.steps li::marker { color: var(--bright); font-family: var(--display); font-weight: 700; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--bright); border-radius: 1px; }
.beast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-top: 30px; }
.beast { background: var(--ink); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.beast:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.beast img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.beast-noart { aspect-ratio: 3 / 4; background: url("../img/cards/card_back.webp") center / cover; opacity: .55; border-bottom: 1px solid var(--line); }
.beast-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.beast h3 { font: 700 1.1rem var(--display); margin: 0; }
.beast-tags, .beast-role, .beast-where { margin: 0; font-size: .9rem; color: var(--muted); }
.beast-where { margin-top: auto; padding-top: 6px; }
.beast-boss { border-color: rgba(224, 184, 74, .55); }
.rar { font: 700 .68rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid; }
.rar-common { color: #d6b68d; border-color: rgba(138, 106, 69, .8); }
.rar-uncommon { color: #8fd2a6; border-color: rgba(74, 143, 98, .8); }
.rar-rare { color: #8fb6ff; border-color: rgba(63, 111, 181, .9); }
.rar-unique, .rar-boss { color: #f2d27a; border-color: rgba(224, 184, 74, .9); }
.tameable { color: var(--teal); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, auto 1fr); gap: 2px 6px; margin: 6px 0 0; font-size: .9rem; }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; color: var(--parchment); font-weight: 700; }
.rooms { padding-left: 1.3em; }
.rooms li { margin-bottom: .8em; }
.rooms li::marker { color: var(--teal); font-family: var(--display); font-weight: 700; }
.rooms strong { color: var(--parchment); display: block; font-family: var(--display); }
.prof-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.prof { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; background: var(--ink); border: 1px solid var(--line); border-radius: 40px; font-weight: 700; color: var(--parchment); }
.prof img { width: 32px; height: 32px; border-radius: 50%; background: #000; }
.station-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.recipe-list, .fish-list, .side-list { list-style: none; margin: 0; padding: 0; }
.recipe-list li, .fish-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(201, 164, 106, .16); font-size: .98rem; }
.recipe-list li:last-child, .fish-list li:last-child { border-bottom: 0; }
.quest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin: 30px 0; }
.quest { background: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.quest h3 { font: 700 1.1rem var(--display); margin-bottom: .2em; }
.quest-giver { color: var(--teal); font-size: .92rem; margin-bottom: .6em; }
.quest-offer { font-style: italic; color: #cfc6b4; flex: 1; }
.quest-reward { margin: 0; font-size: .9rem; color: var(--bright); }

/* ---------------------------------------------------------------- panels, forms, tables */
.panel { background: linear-gradient(180deg, var(--ink), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.panel h2 { font-size: 1.4rem; }
.panel h2.small-h { font-size: .8rem; }
.nowrap { white-space: nowrap; }
.panel h3 { margin-top: 1.2em; }
.panel h3:first-of-type { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.two-col + .two-col { margin-top: 24px; }
.two-col > *, .split > *, .dl-grid > *, .edit-layout > * { min-width: 0; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; color: var(--parchment); font-size: .98rem; }
.form label .muted { font-weight: 400; }
input:not([type=checkbox]):not([type=hidden]), textarea, select {
  width: 100%; font: 400 1rem var(--body); color: var(--parchment); background: var(--field); border: 1px solid rgba(201, 164, 106, .5);
  border-radius: 4px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(242, 188, 50, .15); }
::placeholder { color: rgba(232, 217, 184, .4); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bright); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-actions.center { justify-content: center; }
.form-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.inline-label { display: flex !important; align-items: center; gap: 10px !important; }
.num-in { width: 90px !important; }
.form-inline { display: flex; gap: 10px; }
table { border-collapse: collapse; width: 100%; }
.data th, .data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data th { font: 700 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: rgba(0, 0, 0, .2); }
.data tbody tr:hover { background: rgba(242, 188, 50, .03); }
.data.compact td, .data.compact th { padding: 7px 10px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.pos { color: #7fd79c; }
.neg { color: #f08a80; }
.kv th { text-align: left; width: 34%; padding: 9px 12px 9px 0; color: var(--muted); font-weight: 400; vertical-align: top; border-bottom: 1px solid var(--line); }
.kv td { padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--parchment); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.table-scroll .data tr:last-child td { border-bottom: 0; }
.sec-h { font-size: 1.5rem; margin: 44px 0 14px; }
.badge { display: inline-block; font: 700 .64rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--gold); vertical-align: middle; margin-left: 4px; }
.badge-gm { color: #1a1204; background: var(--bright); border-color: var(--bright); }
.badge-tester { color: #bff0ea; border-color: rgba(58, 168, 160, .8); background: rgba(58, 168, 160, .15); }
.badge-donor { color: #ffd6a0; border-color: rgba(224, 122, 46, .8); background: rgba(224, 122, 46, .15); }
.badges .badge:first-child { margin-left: 0; }
.tag { display: inline-block; font: 700 .64rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; padding: 4px 7px 3px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.tag-pin { background: var(--bright); color: #1a1204; }
.tag-lock { border: 1px solid var(--muted); color: var(--muted); }
.tag-del { background: var(--fail); color: #fff; }
.tag-online { background: rgba(98, 211, 138, .15); color: #8fe3aa; border: 1px solid rgba(98, 211, 138, .5); margin: 0 0 0 6px; }
.gold-amt { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--bright); font-variant-numeric: tabular-nums; }
.coin { width: .95em; height: .95em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #f2bc32 45%, #9a6814 100%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 8px rgba(242, 188, 50, .5); flex: none; }

/* ---------------------------------------------------------------- download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-card { background: linear-gradient(180deg, var(--ink), var(--ink-2)); border: 1px solid var(--line-2); border-radius: 8px; padding: 32px; position: relative; overflow: hidden; }
.dl-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 188, 50, .1), transparent 70%); }
.dl-card h2 { font-size: 1.9rem; margin: 0; }
.dl-os { width: 54px; height: 54px; margin-bottom: 14px; background: var(--gold); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.dl-os-windows { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5.5 10.5 4.4v7.1H3zm8.5-1.2L21 3v8.5h-9.5zM3 12.5h7.5v7.1L3 18.5zm8.5 0H21V21l-9.5-1.3z'/%3E%3C/svg%3E"); }
.dl-os-linux { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2c-2.2 0-3.6 1.9-3.6 4.4 0 1.5.3 2.4-.6 3.7C6.6 11.8 5 13.9 5 16.2c0 .6.1 1.1.3 1.6-.8.4-1.6.9-1.3 1.8.3.9 1.9.8 3 1.3 1 .5 2 .9 2.8.4.4-.3.7-.6 2.2-.6s1.8.3 2.2.6c.8.5 1.8.1 2.8-.4 1.1-.5 2.7-.4 3-1.3.3-.9-.5-1.4-1.3-1.8.2-.5.3-1 .3-1.6 0-2.3-1.6-4.4-2.8-6.1-.9-1.3-.6-2.2-.6-3.7C15.6 3.9 14.2 2 12 2zm-1.6 4a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8zm3.2 0a.9.9 0 1 1 0 1.8.9.9 0 0 1 0-1.8zM12 8.6c.8 0 1.9.5 1.9 1s-1.1 1.2-1.9 1.2-1.9-.7-1.9-1.2 1.1-1 1.9-1z'/%3E%3C/svg%3E"); }
.dl-card .btn { margin: 20px 0 22px; }
.dl-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: .95rem; }
.dl-meta dt { color: var(--muted); }
.dl-meta dd { margin: 0; min-width: 0; }
.hash { word-break: break-all; font-size: .76rem; }
.data code, .realm-build code { white-space: nowrap; overflow-wrap: normal; }

/* ---------------------------------------------------------------- guides / pages */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.guide-card { position: relative; display: flex; flex-direction: column; padding: 28px 28px 24px; background: linear-gradient(180deg, var(--ink), var(--ink-2)); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.guide-card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.guide-num { position: absolute; right: 18px; top: 8px; font: 900 3.6rem var(--display); color: rgba(242, 188, 50, .08); }
.guide-card h2 { font-size: 1.35rem; margin: 0 0 .4em; max-width: 85%; }
.guide-card p { color: var(--muted); flex: 1; }
.gm-bar { display: flex; justify-content: flex-end; margin: 0 0 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.side { position: sticky; top: 92px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.side h2 { font: 700 .76rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0; }
.side-list li a { display: block; padding: 7px 10px; border-radius: 4px; text-decoration: none; color: var(--text); font-size: .98rem; }
.side-list li a:hover { background: rgba(242, 188, 50, .06); color: var(--hover-text); }
.side-list li a[aria-current="page"] { background: rgba(242, 188, 50, .1); color: var(--bright); }
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; color: var(--bright); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose table { margin: 1em 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose th { font: 700 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: rgba(0, 0, 0, .25); }
.prose tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.prose blockquote { margin: 1.2em 0; padding: 12px 20px; border-left: 3px solid var(--teal); background: rgba(58, 168, 160, .07); color: var(--parchment); font-style: italic; border-radius: 0 var(--radius) var(--radius) 0; }
.prose pre { background: var(--field); border: 1px solid var(--line); padding: 14px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose strong { color: var(--parchment); }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }
.updated { margin-top: 2.4em; border-top: 1px solid var(--line); padding-top: 1em; }
.edit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* ---------------------------------------------------------------- forum */
.forum-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.ft-head, .ft-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 90px 260px; gap: 16px; align-items: center; padding: 14px 20px; }
.ft-head { font: 700 .72rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: rgba(0, 0, 0, .3); border-bottom: 1px solid var(--line); }
.ft-row { border-bottom: 1px solid var(--line); background: var(--ink); transition: background .15s; }
.ft-row:last-child { border-bottom: 0; }
.ft-row:hover { background: #20243300; background: #1f2231; }
.ft-cat { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.ft-cat p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.ft-title { font: 700 1.1rem var(--display); color: var(--parchment); text-decoration: none; }
.ft-title:hover { color: var(--hover-text); }
.cat-ico { width: 42px; height: 42px; border-radius: 8px; flex: none; border: 1px solid var(--line-2); background: radial-gradient(circle at 30% 25%, rgba(242, 188, 50, .35), rgba(27, 30, 42, 1) 70%); position: relative; }
.cat-ico::after { content: ""; position: absolute; inset: 9px; background: var(--parchment); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; opacity: .9;
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16v12H8l-4 4z'/%3E%3C/svg%3E"); }
.cat-announcements::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h3l6 4V6L6 10zm13-2v8a4 4 0 0 0 0-8zm2-4v2a6 6 0 0 1 0 12v2a8 8 0 0 0 0-16z'/%3E%3C/svg%3E"); }
.cat-guides-tips::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h7a3 3 0 0 1 3 3v15a2 2 0 0 0-2-2H4zm16 0h-4a3 3 0 0 0-1 .2V21a2 2 0 0 1 2-2h3z'/%3E%3C/svg%3E"); }
.cat-bug-reports::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 4l1.5 2h3L15 4l1.4 1-1.3 1.8A5 5 0 0 1 17 11h3v2h-3v1h3v2h-3a5 5 0 0 1-10 0H4v-2h3v-1H4v-2h3a5 5 0 0 1 1.9-4.2L7.6 5z'/%3E%3C/svg%3E"); }
.cat-qa-testing::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v2h-1v5l5 9a2 2 0 0 1-1.8 3H6.8A2 2 0 0 1 5 18l5-9V4H9z'/%3E%3C/svg%3E"); }
.cat-suggestions::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2zM9 19h6v2H9z'/%3E%3C/svg%3E"); }
.cat-trading::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h11l-3-3 1.4-1.4L22 8l-5.6 5.4L15 12l3-3H7zm10 10H6l3 3-1.4 1.4L2 16l5.6-5.4L9 12l-3 3h11z'/%3E%3C/svg%3E"); }
.cat-off-topic::after { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h13v5a5 5 0 0 1-5 5H9a5 5 0 0 1-5-5zm13 1h2a3 3 0 0 1 0 6h-2.3l.3-2h2a1 1 0 0 0 0-2h-2z'/%3E%3C/svg%3E"); }
.ft-num { text-align: center; color: var(--muted); }
.ft-num b { color: var(--parchment); font-size: 1.1rem; }
.ft-num i { display: none; font-style: normal; }
.ft-last { display: flex; flex-direction: column; min-width: 0; }
.ft-last a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; color: var(--text); font-weight: 700; }
.ft-last a:hover { color: var(--hover-text); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.toolbar-bottom { margin: 18px 0 0; justify-content: flex-end; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; color: var(--text); font-weight: 700; }
.pager a:hover { border-color: var(--bright); color: var(--hover-text); }
.pager [aria-current] { background: var(--bright); color: #1a1204; border-color: var(--bright); }
.pager .gap { border: 0; }
.thread-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.thread-list li { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 16px; align-items: center; padding: 14px 20px; background: var(--ink); border-bottom: 1px solid var(--line); }
.thread-list li:last-child { border-bottom: 0; }
.thread-list li.is-pinned { background: linear-gradient(90deg, rgba(242, 188, 50, .07), var(--ink) 40%); }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-title { font-weight: 700; font-size: 1.08rem; color: var(--parchment); text-decoration: none; }
.tl-title:hover { color: var(--hover-text); }
.tl-count { color: var(--muted); text-align: center; }
.tl-count b { color: var(--parchment); }
.tl-last { text-align: right; }
.mod-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 18px; border: 1px dashed rgba(242, 188, 50, .5); border-radius: var(--radius); background: rgba(242, 188, 50, .04); }
.mod-label { font: 700 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--bright); margin-right: 6px; }
.mod-move { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; font-size: .9rem; }
.mod-move select { width: auto; padding: 6px 10px; }
.post { display: grid; grid-template-columns: 190px minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); margin-bottom: 14px; overflow: hidden; }
.post-deleted { opacity: .55; }
.post-author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 14px; background: rgba(0, 0, 0, .25); border-right: 1px solid var(--line); }
.post-author strong { color: var(--parchment); word-break: break-word; }
.post-author .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.post-author .badge { margin: 0; }
.post-body { padding: 16px 24px 22px; min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.post-meta a { text-decoration: none; }
.post-actions { margin-left: auto; display: flex; gap: 14px; font-size: .92rem; }
.post-text { max-width: none; }
.post-text p:last-child { margin-bottom: 0; }
.reply { margin-top: 24px; }

/* ---------------------------------------------------------------- shop */
.wallet-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(90deg, rgba(242, 188, 50, .1), rgba(27, 30, 42, .6)); }
.wallet-amt { font-size: 1.6rem; }
.shop-explain { margin: 18px 0 8px; color: #cfc6b4; max-width: 90ch; }
.shop-group { font-size: 1.35rem; margin: 40px 0 16px; display: flex; align-items: center; gap: 16px; }
.shop-group::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.shop-item { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: 1fr auto; gap: 14px 18px; padding: 18px; background: linear-gradient(180deg, var(--ink), var(--ink-2)); border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.shop-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.shop-icon { grid-row: 1 / 3; }
.shop-icon img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid rgba(242, 188, 50, .55); background: radial-gradient(circle at 50% 40%, #2a2f40, #0b0c11); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .6), 0 0 18px rgba(242, 188, 50, .08); }
.shop-body h3 { margin: 0 0 .15em; font: 700 1.08rem var(--display); }
.shop-slot { font: 700 .68rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 .4em; }
.shop-desc { font-size: .95rem; color: #cfc6b4; margin: 0 0 .4em; }
.shop-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.shop-buy form { margin: 0; }
.price { font-size: 1.2rem; }
.shop-foot { margin-top: 30px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.preset { font: 700 1.2rem var(--display); color: var(--parchment); background: var(--field); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 0; cursor: pointer; transition: all .15s; }
.preset:hover { border-color: var(--bright); color: var(--hover-text); }
.preset.is-on { background: rgba(242, 188, 50, .14); border-color: var(--bright); color: var(--bright); box-shadow: 0 0 0 1px var(--bright); }
.done-panel { text-align: center; padding: 48px 32px; }
.done-panel img { margin: 0 auto 18px; border-radius: 10px; border: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- account, auth, admin */
.acct-head { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.acct-head .lead { font-size: 1.02rem; }
.acct-wallet { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(11, 12, 17, .7); }
.acct-wallet .wallet-amt { font-size: 2rem; }
.realm-panel { margin-bottom: 16px; padding: 20px 22px; }
.realm-panel h3 { font: 700 1.15rem var(--display); }
.realm-panel .table-scroll { border: 0; background: none; }
.rename-form { display: flex; gap: 8px; margin: 0; }
.rename-form input { max-width: 170px; padding: 7px 10px !important; }
.narrow-panel { max-width: 560px; }
.auth { display: grid; place-items: center; padding: 64px 20px 90px; position: relative; isolation: isolate; min-height: 72vh; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/keyart.webp") 70% 30% / cover; opacity: .28; }
.auth::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(11, 12, 17, .6), var(--obsidian) 75%); }
.auth-card { width: 100%; max-width: 460px; padding: 36px 36px 30px; box-shadow: var(--shadow); border-color: var(--line-2); }
.auth-card h1 { font-size: 1.9rem; margin: 10px 0 .2em; }
.auth-logo { margin: 0 auto; }
.auth-card > h1, .auth-card > p.muted { text-align: center; }
.auth-alt { text-align: center; margin: 18px 0 0; color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; }
.stat span { color: var(--muted); font-size: .9rem; }
.stat strong { font: 700 1.8rem var(--display); color: var(--bright); }
.stat em { font-style: normal; color: var(--text); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; }
.error-page { padding: 120px 0; text-align: center; }
.error-code { font: 900 6rem/1 var(--display); color: rgba(242, 188, 50, .25); margin: 0; }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: #07080c; margin-top: 0; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
.footer h2 { font: 700 .74rem var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.footer-in > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 8px; }
.footer-in a:not(.brand) { color: var(--text); text-decoration: none; font-size: .98rem; }
.footer-in a:not(.brand):hover { color: var(--hover-text); }
.footer-brand p { color: var(--muted); max-width: 36ch; margin-top: 12px; }
.footer-base { border-top: 1px solid rgba(201, 164, 106, .12); padding-top: 18px; padding-bottom: 26px; color: var(--muted); font-size: .88rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav > a { padding: 10px 8px; font-size: .76rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .card-fan { margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .ft-head, .ft-row { grid-template-columns: minmax(0, 1fr) 70px 70px 200px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: rgba(11, 12, 17, .98); border-bottom: 1px solid var(--line-2); display: none; }
  .nav.open, .no-js .nav { display: flex; }
  .nav > a { padding: 14px 8px; font-size: .9rem; border-bottom: 1px solid rgba(201, 164, 106, .1); }
  .nav > a[aria-current="page"]::after { left: 0; right: auto; width: 3px; top: 10px; bottom: 10px; height: auto; }
  .nav-account { margin: 12px 0 0; flex-wrap: wrap; }
  .news-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .split, .split-rev, .two-col, .edit-layout, .dl-grid, .status-row, .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .split-rev > figure { order: 2; }
  .side { position: static; }
  .acct-head { grid-template-columns: auto 1fr; }
  .acct-wallet { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .band { padding: 56px 0; }
  .band-tight { padding: 30px 0 48px; }
  .hero { min-height: 0; }
  .hero-art img { object-position: 48% 12%; }
  .hero-shade { background: linear-gradient(0deg, var(--obsidian) 6%, rgba(11, 12, 17, .82) 48%, rgba(11, 12, 17, .25) 100%); }
  .hero-in { padding-top: 250px; padding-bottom: 44px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-realms li { width: 100%; }
  .page-head { padding: 48px 0 30px; }
  .card-fan { min-height: 220px; padding-top: 16px; }
  .card-fan li { flex-basis: 92px; margin: 0 -17px; }
  .card-fan img { width: 92px; border-radius: 7px; }
  .card-fan span { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery span { display: none; }
  .feature > div { padding: 18px; }
  .panel { padding: 20px 18px; }
  .dl-card { padding: 24px 20px; }
  .dl-card .btn-lg { font-size: .9rem; padding: 1em 1em; }
  .ft-head { display: none; }
  .ft-row { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .ft-cat { grid-column: 1 / -1; }
  .ft-num { text-align: left; font-size: .9rem; }
  .ft-num i { display: inline; }
  .ft-last { grid-column: 1 / -1; }
  .cat-ico { width: 36px; height: 36px; }
  .thread-list li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tl-main { grid-column: 1 / -1; }
  .tl-count { text-align: left; font-size: .9rem; }
  .post { grid-template-columns: 1fr; }
  .post-author { flex-direction: row; flex-wrap: wrap; text-align: left; justify-content: flex-start; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .post-author .avatar-lg { width: 38px; height: 38px; font-size: 1.05rem; }
  .post-body { padding: 14px 16px 18px; }
  .mod-move { margin-left: 0; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-item { grid-template-columns: 72px 1fr; }
  .shop-icon img { width: 72px; height: 72px; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .quest-grid, .skill-grid, .guide-grid { grid-template-columns: 1fr; }
  .beast-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .beast-body { padding: 10px 12px 12px; }
  .stats { grid-template-columns: repeat(3, auto 1fr); font-size: .82rem; }
  .news-row { grid-template-columns: 64px 1fr; gap: 14px; }
  .news-row time { height: 64px; font-size: .6rem; }
  .news-row time span { font-size: 1.4rem; }
  .acct-head { grid-template-columns: 1fr; gap: 14px; }
  .avatar-xl { width: 60px; height: 60px; font-size: 1.6rem; }
  .rename-form { flex-wrap: wrap; }
  .auth { padding: 36px 16px 60px; }
  .auth-card { padding: 28px 20px 24px; }
  .footer-in { grid-template-columns: 1fr 1fr; gap: 24px; }
  .form-inline { flex-direction: column; }
  .subnav { top: 68px; }
  .data th, .data td { padding: 8px 9px; }
  .prose table { display: block; overflow-x: auto; }
}
@media (min-width: 2000px) {
  :root { --wrap: 1480px; }
  body { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* home: news + start steps */
.news-start { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.news-stack { display: grid; gap: 14px; }
.news-stack .news-card { padding: 22px 24px; }
.news-stack .news-card h3 { font-size: 1.2rem; }
.start-panel { padding: 26px 28px; background: linear-gradient(160deg, rgba(242, 188, 50, .1), rgba(27, 30, 42, .9) 45%); border-color: var(--line-2); }
.start-panel h2 { font-size: 1.4rem; margin-bottom: 18px; }
.start-steps { list-style: none; margin: 0 0 22px; padding: 0; counter-reset: s; display: grid; gap: 16px; }
.start-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.start-steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--bright); color: var(--bright); font: 700 1.1rem var(--display); background: rgba(0, 0, 0, .4); }
.start-steps strong { display: block; color: var(--parchment); }
.start-steps span { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .news-start { grid-template-columns: 1fr; } }

.forum-latest { margin-top: 26px; }
.forum-latest h3 { font: 700 .76rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.forum-latest ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink); }
.forum-latest li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.forum-latest li:last-child { border-bottom: 0; }
.forum-latest a { color: var(--parchment); text-decoration: none; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.forum-latest a:hover { color: var(--hover-text); }
.forum-latest span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
