/* L2 Toxicity. Palette from the brand sheet (web/README.md): ink and slate surfaces, bone for headings and links,
   crimson for actions, as in the logo's red blade on metal. Venom green marks only what is up, alive or online;
   a light red what is down, dead or wrong (kept apart from the brand crimson). */

@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
	--night: #1e252d;      /* page: brand ink */
	--hull: #27303b;       /* raised surfaces */
	--hull-deep: #151a21;  /* insets, item slots */
	--seam: #3b4756;       /* lines: brand slate, darkened */
	--cloud: #ece7e1;      /* text */
	--haze: #9ba7b5;       /* secondary text: brand slate, lightened */
	--bone: #e6d4c6;       /* headings, links, trim */
	--bone-dim: #8c7f74;
	--crimson: #aa1b1d;    /* actions: the logo's blade */
	--crimson-deep: #6a0a0e;
	--venom: #8fd16a;      /* up, alive, online */
	--blood: #ff6f62;      /* down, dead, errors: lighter than the brand crimson */
	--amber: #e7b25a;      /* warnings */
	--display: "Cinzel", Georgia, serif;
	--text: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #77343b; color: #fff4ec; }
html { scrollbar-color: var(--bone-dim) var(--night); }

body {
	margin: 0;
	background: var(--night) linear-gradient(180deg, #27313d 0, var(--night) 420px) no-repeat;
	color: var(--cloud);
	font: 17px/1.55 var(--text);
	font-variant-numeric: lining-nums;
}

/* One continuous scene connects the page title and content, fading into a dark reading surface. */
body:not(.home) { position: relative; isolation: isolate; background: var(--hull-deep); }
body[data-background="pages/world-bosses.webp"] { --page-background: url("art/pages/world-bosses.webp"); }
body[data-background="pages/world-guide.webp"] { --page-background: url("art/pages/world-guide.webp"); }
body[data-background="pages/world-server.webp"] { --page-background: url("art/pages/world-server.webp"); }
body[data-background="pages/world-play.webp"] { --page-background: url("art/pages/world-play.webp"); }
body[data-background="pages/world-rules.webp"] { --page-background: url("art/pages/world-rules.webp"); }
body[data-background="pages/world-news.webp"] { --page-background: url("art/pages/world-news.webp"); }
body:not(.home)::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(180deg, rgba(15, 21, 29, .48), rgba(15, 21, 29, .76) 360px, rgba(15, 21, 29, .96) 850px),
		linear-gradient(90deg, rgba(15, 21, 29, .35), rgba(15, 21, 29, .55) 35%, rgba(15, 21, 29, .12)),
		var(--page-background, url("art/page-world.webp"));
	background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.top, body:not(.home) footer { background: rgba(21, 26, 33, .88); }
/* A native disclosure keeps language choices usable without JavaScript. */
.language-switch { position: relative; flex: 0 0 auto; margin-left: auto; }
.language-switch summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; color: var(--cloud); font: 600 .85rem var(--text); cursor: pointer; list-style: none; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary:hover, .language-switch[open] summary { color: var(--bone); }
.language-switch img { display: block; flex: 0 0 auto; object-fit: cover; }
.language-switch form { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 205px; margin: 0; padding: 6px; border: 1px solid var(--seam); background: var(--hull); }
.top .language-switch button[type=submit] { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 0; padding: 8px 10px; border: 0; border-radius: 0; box-shadow: none; background: none; color: var(--cloud); text-align: left; font: 400 1rem var(--text); cursor: pointer; }
.top .language-switch button[type=submit]:hover, .top .language-switch button[aria-current] { color: var(--bone); background: var(--night); }
.language-switch summary:focus-visible, .language-switch button:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; color: var(--cloud); cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { color: var(--bone); }
.account-flyout { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; min-width: 190px; padding: 6px; border: 1px solid var(--seam); background: var(--hull); }
.account-flyout a, .account-flyout button.link { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 8px 12px; color: var(--cloud); text-align: left; }
.account-flyout a:hover, .account-flyout a[aria-current], .account-flyout button.link:hover { color: var(--bone); background: var(--night); }
.account-flyout .gm-link { color: var(--venom); }
.account-flyout form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--seam); }
html[lang="ru"] { --display: Georgia, "Times New Roman", serif; }

a { color: var(--bone); text-decoration-color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #f4e7dc; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }

h1, h2, h3 { font-weight: 600; color: var(--cloud); margin: 0 0 .5em; line-height: 1.15; overflow-wrap: anywhere; }
h1 { font: 600 2.4rem/1.1 var(--display); }
h2 { font: 600 1.7rem/1.15 var(--display); color: var(--bone); }
h3 { font: 700 1.05rem/1.3 var(--text); }
h1 small, h2 small { font: 400 1rem var(--text); color: var(--haze); }
h1, h2, h3, .rates { text-wrap: balance; }
[id] { scroll-margin-top: 16px; }
a, button, .chip, .tab, summary { touch-action: manipulation; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; background: var(--bone); color: var(--night); font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.server-controls .event-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.server-controls .event-buttons form { margin: 0; }
.server-controls .event-buttons button.quiet { min-height: 44px; margin-top: 0; background: transparent; color: var(--bone); border-color: var(--bone-dim); box-shadow: none; }
.server-controls .event-buttons button.quiet:hover:not(:disabled) { background: rgba(230, 212, 198, .08); color: #f4e7dc; }
.server-controls .announcement-form { max-width: 65ch; display: grid; gap: 10px; }
.server-controls .event-settings-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; max-width: 850px; }
.server-controls .event-settings-form label { display: block; margin-bottom: 6px; }
.server-controls .event-settings-form input[type=number] { width: 100%; min-width: 0; }
.server-controls .event-settings-form button { grid-column: 1 / -1; justify-self: start; }
.server-controls .announcement-form textarea, .server-controls .announcement-form select { width: 100%; min-width: 0; }
.server-controls .announcement-form button { justify-self: start; }
.server-controls .server-action-message { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 48ch; }
.server-controls .event-controls { min-width: 620px; }
.server-controls .server-history { min-width: 620px; }
.server-controls .window + .window { margin-top: 24px; }
@media (max-width: 640px) {
	.server-controls .event-controls { min-width: 0; }
	.server-controls .event-controls, .server-controls .event-controls tbody { display: block; }
	.server-controls .event-controls thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.server-controls .event-controls tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--seam); }
	.server-controls .event-controls th, .server-controls .event-controls td { display: block; padding: 0; border: 0; text-align: left; }
	.server-controls .event-controls td:last-child { grid-column: 1 / -1; }
	.server-controls [data-event-count]::before { content: attr(data-label) ': '; color: var(--haze); }
	.server-controls .event-buttons { gap: 8px; }
	.server-controls .event-buttons button { padding: 8px 10px; }
}
.security-check { margin-top: 16px; min-width: 0; }
.security-check .turnstile-widget { min-height: 65px; }
main:focus { outline: none; }
.lead-in { max-width: 62ch; color: var(--haze); font-size: 1.05rem; }
p { margin: 0 0 1em; }

/* Header */
.top {
	position: relative; z-index: 3;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
	width: 100%; padding: 10px max(16px, calc((100% - 1148px) / 2)); border-bottom: 1px solid var(--seam);
}
#site-navigation { flex: 1; justify-content: flex-end; }
.top nav > a { padding-block: 8px; }
.top nav > a[aria-current="page"]:not(.button) { color: var(--bone); text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 12px; color: var(--cloud); background: var(--hull); border: 1px solid var(--seam); border-radius: 2px; font: 500 1rem var(--text); cursor: pointer; min-height: 44px; min-width: 44px; }
.nav-toggle .nav-close-icon, .nav-toggle[aria-expanded="true"] .nav-open-icon { display: none; }
.nav-toggle[aria-expanded="true"] .nav-close-icon { display: block; }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--bone-dim); color: var(--bone); }
.top-left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.nav-gap { width: 1px; height: 18px; background: var(--seam); }
.brand { display: block; line-height: 0; }
.brand img { display: block; height: 44px; width: auto; }
nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
nav a { color: var(--cloud); text-decoration: none; }
nav a:hover { color: var(--bone); }
nav .gm-link { color: var(--venom); }
nav form { margin: 0; }
button.link { background: none; border: 0; padding: 0; color: var(--cloud); font: inherit; cursor: pointer; }
button.link:hover { color: var(--bone); }
button.link small { color: var(--haze); }

main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 56px; }
footer { width: 100%; padding: 20px max(16px, calc((100% - 1148px) / 2)) 32px; border-top: 1px solid var(--seam); color: var(--haze); font-size: .85rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: 18px; }
.footer-links > a { font: 600 1.4rem var(--display); text-decoration: none; }
.footer-links nav { gap: 8px 24px; }
footer > p { margin: 0; max-width: 85ch; }

/* Buttons */
.button, button[type=submit]:not(.link) {
	display: inline-block; padding: 9px 20px; font: 700 1rem var(--text); color: #fff4ec; cursor: pointer; text-decoration: none;
	background: linear-gradient(#b8221f, #8a1416); border: 1px solid #d1453f; border-radius: 2px; box-shadow: 0 1px 0 #000;
}
.button:hover, button[type=submit]:not(.link):hover { background: linear-gradient(#c92a26, #9a181a); color: #fff; }
.button.quiet { background: transparent; color: var(--bone); border-color: var(--bone-dim); box-shadow: none; }
.button.quiet:hover { background: rgba(230, 212, 198, .08); color: #f4e7dc; }
.button.small { padding: 4px 12px; font-size: .9rem; }
nav .button.small { color: #fff4ec; }
button[type=submit]:not(.link) { margin-top: 14px; }
button.danger[type=submit]:not(.link) { background: transparent; color: var(--blood); border-color: #7a3430; box-shadow: none; }
button:disabled, button[type=submit]:disabled { opacity: .45; cursor: not-allowed; }

/* Forms */
label { display: block; margin: 12px 0 4px; color: var(--haze); font-size: .95rem; }
input, select, textarea {
	display: block; width: 100%; margin-top: 4px; padding: 9px 11px; font: inherit; font-size: 1rem; color: var(--cloud);
	background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 2px;
}
select { width: auto; padding: 7px 9px; background-color: var(--hull-deep); color: var(--cloud); }
option { background-color: var(--hull-deep); color: var(--cloud); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--bone); }
.forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; margin-top: 8px; align-items: start; }
.account-help { margin: 24px 0 14px; padding-top: 20px; border-top: 1px solid var(--seam); color: var(--haze); }
input { caret-color: var(--bone); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-actions button[type=submit] { margin-top: 0; }
.form-actions .danger { margin-left: auto; }

/* Surfaces */
.card { background: var(--hull); border: 1px solid var(--seam); border-radius: 2px; padding: 22px; }
.narrow { max-width: 460px; margin: 0 auto; }
.hint { color: var(--haze); font-size: .9rem; }
.center { text-align: center; }
.dim { color: var(--haze); }
.warn { color: var(--amber); }
.online { color: var(--venom); font: 500 .9rem var(--text); }
.back { margin: 0 0 14px; font-size: .95rem; }
.flash { padding: 10px 14px; border-left: 3px solid var(--seam); background: var(--hull); }
.flash.error { border-color: var(--blood); }
.flash.ok { border-color: var(--venom); }
.flash.gm { border-color: var(--bone); }

/* Join page */
.hero.small { padding: 8px 0 16px; }
.hero.small h1 { font-size: 2.6rem; }
.hero.small p { max-width: 60ch; color: var(--haze); }

/* Keep cached pages from older workers responsive while a web update is being completed. */
.hero-art { margin: 0; max-width: 100%; overflow: hidden; background: #0c1016; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; object-position: 33% 50%; }

/* The retained key art supplies the brand. Standings and world state lead the content below it. */
.home {
    display: grid;
    --night: #141c25;
    --hull: #202b37;
    --seam: #3a4651;
    --haze: #b0bbc5;
    background: var(--night);
}
.home .top { grid-area: 1 / 1; align-self: start; z-index: 2; padding-inline: max(32px, calc((100% - 1256px) / 2)); background: rgba(21, 26, 33, .72); }
.home main { grid-area: 2 / 1; width: 100%; max-width: none; padding: 0; }
.home footer { grid-area: 3 / 1; padding-inline: max(32px, calc((100% - 1256px) / 2)); }
.campaign { grid-area: 1 / 1; width: 100%; min-width: 0; position: relative; isolation: isolate; overflow: hidden; margin: 0 auto; background: var(--night); }
.campaign-art { position: absolute; z-index: -1; inset: 0; }
.campaign-art img { display: block; width: 100%; height: auto; object-position: center top; }
.campaign-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--night), rgba(20, 28, 37, .94) 28%, rgba(15, 21, 29, .55) 65%, rgba(15, 21, 29, .48)); }
.campaign-inner { max-width: 1320px; margin: 0 auto; padding: max(285px, 18vw) 32px 40px; min-height: 645px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.campaign-copy { max-width: 540px; }
.campaign h1 { font: 600 clamp(2rem, 3vw, 2.7rem)/1.1 var(--display); margin: 0 0 6px; color: #f5ece2; }
.campaign-lead { font: 500 1.2rem/1.3 var(--text); color: var(--bone); margin-bottom: 16px; }
.campaign-description { max-width: 52ch; color: #d5dbe0; font-size: 1.05rem; line-height: 1.55; margin-bottom: 0; }
.campaign .cta { align-items: center; gap: 12px; margin-top: 22px; }
.campaign .button, .join-call .button { padding: 11px 26px; font-size: 1.05rem; }
.realm-panel { background: rgba(21, 26, 33, .96); border: 1px solid var(--seam); border-radius: 3px; padding: 20px; }
.realm-server + .realm-server { border-top: 1px solid var(--seam); padding-top: 16px; margin-top: 16px; }
.realm-entry { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.realm-entry strong { font-size: 1.15rem; font-weight: 500; color: var(--bone); }
.realm-entry > span { font-size: .9rem; }
.realm-server > p { color: var(--haze); font-size: .9rem; margin: 5px 0 0; }
.realm-population { display: flex; gap: 28px; margin: 18px 0 0; }
.realm-population dt { font-size: .85rem; color: var(--haze); }
.realm-population dd { font: 500 1.3rem var(--text); margin: 3px 0 0; font-variant-numeric: tabular-nums; }
.realm-panel > a { display: inline-block; font-size: .9rem; margin-top: 18px; }
.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 2rem; }
.section-heading > a { font-size: .9rem; }
.home-competition { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.competition-board { min-width: 0; border: 1px solid var(--seam); background: var(--hull); border-radius: 3px; padding: 16px; }
.competition-board h3 { font: 600 1.6rem var(--display); color: var(--bone); margin-bottom: 14px; }
.standing-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.standing-table th { font-weight: 400; font-size: .8rem; color: var(--haze); text-align: left; padding: 0 5px 8px; border-bottom: 1px solid var(--seam); }
.standing-table td { padding: 12px 5px; vertical-align: top; border-bottom: 1px solid var(--seam); }
.standing-table tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.standing-table .rank { width: 22px; color: var(--bone); }
.standing-table strong { font-weight: 500; overflow-wrap: anywhere; }
.standing-table small { display: block; color: var(--haze); font-size: .8rem; overflow-wrap: anywhere; }
.standing-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.signal { display: inline-block; width: .42em; height: .42em; border-radius: 50%; vertical-align: .12em; margin-right: .4em; }
.is-up .signal { background: var(--venom); box-shadow: 0 0 0 0 rgba(143, 209, 106, .6); animation: signal 2.4s ease-out 3; }
.is-down .signal { background: var(--blood); }
@keyframes signal { 0% { box-shadow: 0 0 0 0 rgba(143, 209, 106, .6); } 100% { box-shadow: 0 0 0 .45em rgba(143, 209, 106, 0); } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* The five feature cards from the brand sheet. Their labels are painted in, so the links carry them as text too. */

/* One card per game server, like the server lists of bigger L2 sites. */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(52, 80, 110, .55); }
.rows li:last-child { border-bottom: 0; }
.rows small { color: var(--haze); }
.rows b { font-weight: 500; font-variant-numeric: tabular-nums; }
.state { font-weight: 500; white-space: nowrap; }
.state.up { color: var(--venom); }
.state.down { color: var(--blood); }
.owner { color: var(--bone); }

.news-list { max-width: 72ch; }
.post + .post { margin-top: 26px; }
.post-title { font: 600 1.55rem/1.15 var(--display); margin: 0 0 2px; }
.post-title a { color: var(--cloud); text-decoration: none; }
.post-title a:hover { color: var(--bone); }
.post-meta { margin: 0 0 8px; color: var(--haze); font-size: .9rem; }
.post-body p { margin: 0 0 .8em; }
.reading section + section { margin-top: 40px; }
.reading section > h2 { font-size: 2rem; }
.reading-close { border-top: 1px solid var(--seam); margin-top: 36px; padding-top: 24px; }

/* Public-page artwork fills the header; the overlay keeps the actual text and controls readable. */
.page-hero { position: relative; }
.page-hero-inner { position: relative; z-index: 2; display: flex; align-items: center; min-height: 320px; max-width: 1180px; margin: 0 auto; padding: 48px 16px; }
.page-hero-text { min-width: 0; max-width: 760px; }
.page-hero h1 { margin-bottom: .3em; font-size: clamp(2.4rem, 4.2vw, 3.5rem); }
.page-hero .lead-in { color: #c3ccd6; margin-bottom: .6em; }
.page-hero .cta { margin-top: 14px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; font-size: .92rem; }
.hero-links a { display: inline-block; padding: 7px 15px; color: var(--bone); text-decoration: none; background: rgba(15, 21, 29, .6); border: 1px solid rgba(230, 212, 198, .28); border-radius: 999px; backdrop-filter: blur(4px); transition: border-color .15s, background .15s; }
.hero-links a:hover { color: #f4e7dc; border-color: #d1453f; background: rgba(106, 10, 14, .55); }

/* Boss portraits: concept art from media pack 02 with the name painted at the bottom, which the frame crops off
   (the name is in the text next to it). */
.portrait { display: block; flex: none; overflow: hidden; background: #0c1016; border-radius: 3px; box-shadow: 0 0 0 1px #4b4239; }
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.portrait.big { width: 96px; height: 112px; }
.portrait.small { width: 30px; height: 34px; }
/* No art for this boss: its initial on a dark plate instead. */
.portrait-initial { display: flex; align-items: center; justify-content: center; height: 100%; background: radial-gradient(circle at 50% 40%, #2a333f, #10151e 75%);
	font: 600 2.6rem/1 var(--display); color: var(--bone-dim); }
.portrait.small .portrait-initial { font-size: 1.1rem; }
.rows li:has(> .with-portrait) { align-items: center; }
.with-portrait { display: inline-flex; align-items: center; gap: 10px; }

/* Server info */

/* Join page: the wide brand banner above the forms */
.join-banner { margin: 0 0 22px; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px #46525f, 0 12px 30px rgba(5, 8, 12, .45); }
.join-banner img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: 50% 45%; }
code.secret { font: 700 1.15rem var(--text); letter-spacing: .06em; color: var(--cloud); background: var(--hull-deep); padding: 1px 8px; border-radius: 2px; user-select: all; }

/* News page */
.reading { max-width: 760px; margin: 0 auto; }
.starter-browser { margin: 24px 0 28px; }
.starter-levels { display: flex; border-bottom: 1px solid var(--seam); gap: 6px; margin-bottom: 24px; }
.starter-levels a { flex: 1; padding: 12px 16px; color: var(--bone); text-decoration: none; border-bottom: 3px solid transparent; font-weight: 700; line-height: 1.25; }
.starter-levels a span { display: block; color: var(--haze); font-size: .9rem; font-weight: 400; margin-top: 4px; }
.starter-levels a:hover { background: rgba(39, 48, 59, .65); }
.starter-levels a[aria-selected="true"] { border-bottom-color: var(--crimson); background: var(--hull); }
.starter-levels a[aria-selected="true"] span { color: var(--cloud); }
.starter-browser .starter-tier { margin-top: 0; scroll-margin-top: 24px; }
.starter-tier + .starter-tier { margin-top: 32px; }
.starter-tier > h3 { font-family: var(--display); font-size: 1.5rem; }
.pack-rule { max-width: 75ch; color: var(--haze); margin: 8px 0 22px; }
.starter-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.starter-choice { min-width: 0; }
.starter-choice h4 { font-size: 1.1rem; color: var(--bone); margin: 0 0 16px; line-height: 1.3; min-height: 2.6em; }
.pack-items { display: grid; gap: 9px; list-style: none; padding: 0; margin: 0; }
.pack-items li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .9rem; line-height: 1.3; }
.pack-items img { flex: 0 0 auto; border: 1px solid var(--bone-dim); background: var(--hull-deep); border-radius: 2px; }
.pack-items strong { color: var(--bone); white-space: nowrap; }
.pack-weapons { margin-top: 24px; border-block: 1px solid var(--seam); padding: 14px 0; }
.pack-weapons summary { display: flex; align-items: center; gap: 16px; cursor: pointer; color: var(--bone); font-weight: 700; }
.pack-weapons summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; }
.pack-weapons[open] summary::after { content: "−"; }
.pack-weapons summary small { display: block; color: var(--haze); font-weight: 400; }
.pack-weapon-icons { display: flex; gap: 4px; flex-wrap: wrap; }
.pack-weapon-icons img { border: 1px solid var(--bone-dim); border-radius: 2px; }
.pack-weapons > .pack-items { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.bundle-thumbnails { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.bundle-thumbnails img { border: 1px solid var(--seam); border-radius: 2px; }
@media (max-width: 700px) {
	.starter-choices { grid-template-columns: 1fr; gap: 24px; }
	.starter-choice + .starter-choice { border-top: 1px solid var(--seam); padding-top: 20px; }
	.starter-choice h4 { min-height: 0; margin-bottom: 12px; }
	.starter-choice .pack-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
	.pack-weapons > .pack-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.starter-levels a { padding: 10px 8px; }
	.pack-weapon-icons { max-width: 70px; flex-shrink: 0; }
}
@media (max-width: 380px) {
	.starter-choice .pack-items, .pack-weapons > .pack-items { grid-template-columns: 1fr; }
}
.post-window + .post-window { margin-top: 16px; }
.post-window .window-title a { color: var(--cloud); text-decoration: none; }
.page-heading { max-width: 1180px; margin: 0 auto; padding: 38px 16px 0; }
.page-heading .reading > p { color: var(--haze); max-width: 60ch; margin-bottom: 0; }
.news-post { padding: 0 0 28px; border-bottom: 1px solid var(--seam); }
.news-post + .news-post { margin-top: 32px; }
.news-post h2 { font-size: 2rem; }
.news-post h2 a { color: var(--bone); text-decoration: none; }
.news-post h2 a:hover { text-decoration: underline; }
.news-post .post-body { overflow-wrap: anywhere; }
.empty-state { color: var(--haze); padding: 24px 0; max-width: 55ch; margin: 0; }
.pager { display: flex; gap: 20px; justify-content: center; align-items: center; margin-top: 24px; color: var(--haze); }

/* Game-style windows: the character page mirrors the client's own panels, framed in bronze. */
.window { background: var(--hull); border: 1px solid #46525f; border-radius: 3px; box-shadow: inset 0 0 0 1px #0d1724, 0 8px 24px rgba(5, 10, 18, .35); }
.window-title {
	margin: 0; padding: 7px 14px; font: 600 1.25rem/1.2 var(--display); color: var(--bone);
	background: linear-gradient(#2c1e21, #1d1518); border-bottom: 1px solid #5a1d1f; border-radius: 2px 2px 0 0;
}
.window-body { padding: 14px 16px; }
main > .window + .window { margin-top: 16px; }

/* Character list */

/* Character page */
.char-head { margin-bottom: 16px; }
.head-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; }
.char-head h1 { margin: 0; font-size: 2.8rem; }
.char-head .title { margin: 0; color: #ecf9a2; }
.char-head .meta { margin: 2px 0 0; color: var(--haze); }
.char-head .clan { color: var(--cloud); }
.purse { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.coin { display: inline-flex; align-items: center; gap: 8px; color: var(--haze); }
.coin img { border: 1px solid #000; border-radius: 2px; }
.coin b { color: var(--cloud); font-weight: 700; font-variant-numeric: tabular-nums; }

.char-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.char-grid.with-detail { grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr); }
.bars { display: grid; gap: 7px; margin-bottom: 12px; }
.bar { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--cloud); }
.bar-name { color: var(--haze); font-weight: 700; }
.bar-val { font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
progress { appearance: none; -webkit-appearance: none; width: 100%; height: 11px; border: 1px solid #000; border-radius: 2px; background: #0a1220; box-shadow: 0 0 0 1px #2c4058; }
progress::-webkit-progress-bar { background: #0a1220; }
.cp progress::-webkit-progress-value { background: linear-gradient(#f0c35c, #a2741f); } .cp progress::-moz-progress-bar { background: #c99a3c; }
.hp progress::-webkit-progress-value { background: linear-gradient(#ef5b51, #9c211c); } .hp progress::-moz-progress-bar { background: #c43a33; }
.mp progress::-webkit-progress-value { background: linear-gradient(#5d9cf0, #1f4c98); } .mp progress::-moz-progress-bar { background: #3a70c4; }
.exp progress::-webkit-progress-value { background: linear-gradient(#e2e8f0, #7d8ca0); } .exp progress::-moz-progress-bar { background: #aab5c4; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 18px; margin: 0 0 10px; padding: 10px 0 0; border-top: 1px solid var(--seam); }
.stat-grid div { display: flex; justify-content: space-between; gap: 8px; }
.stat-grid dt { color: var(--haze); font-size: .9rem; }
.stat-grid dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 700; }
.stat-grid.base { grid-template-columns: repeat(3, 1fr); }
.attrs { margin: 5px 0; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.attr-label { color: var(--haze); min-width: 60px; }

/* Item cells */
.cell {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none;
	background: var(--hull-deep); border: 1px solid #2f4560; border-radius: 3px; box-shadow: inset 0 0 0 1px #000, inset 0 0 8px rgba(0, 0, 0, .7);
	text-decoration: none;
}
.cell img { width: 40px; height: 40px; display: block; border-radius: 2px; }
a.cell:hover, a.cell:focus-visible { border-color: var(--bone); outline: none; z-index: 5; }
.cell.chosen { border-color: var(--bone); box-shadow: 0 0 0 1px var(--bone), 0 0 10px rgba(230, 212, 198, .35); }
.cell[hidden] { display: none; }
.cell.g-d { border-color: #3c5068; } .cell.g-c { border-color: #33573e; } .cell.g-b { border-color: #2c4f75; }
.cell.g-a { border-color: #6a5a2c; } .cell.g-s, .cell.g-s80, .cell.g-s84 { border-color: #7a3a36; }
.badge-enchant, .badge-count { position: absolute; font: 700 11px/1 var(--text); text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; pointer-events: none; }
.badge-enchant { top: 3px; left: 3px; color: #9fd8ff; }
.badge-count { right: 3px; bottom: 3px; color: #fff; }
.cell.empty { background: #17263a; border-style: dashed; border-color: #2f4560; box-shadow: none; }
.cell.filler { background: #111d2c; border-color: #1d2c3f; box-shadow: none; }
.slot-name { font-size: 9px; line-height: 1.05; color: #5f7896; text-align: center; padding: 2px; overflow: hidden; }
.cell.big { width: 74px; height: 74px; }
.cell.big img { width: 64px; height: 64px; }

.tip {
	display: none; position: absolute; left: 50px; top: -2px; z-index: 10; width: 260px; padding: 9px 11px;
	background: rgba(6, 10, 16, .96); border: 1px solid #5a6a80; border-radius: 3px; box-shadow: 0 8px 22px rgba(0, 0, 0, .7);
	font-size: .82rem; line-height: 1.4; text-align: left; pointer-events: none; color: var(--cloud);
}
a.cell:hover .tip, a.cell:focus-visible .tip { display: block; }
.d-name { display: block; font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 3px; }
.d-line { display: block; color: var(--haze); }
.d-line b { color: var(--cloud); }
.detail .d-name { font-size: 1.1rem; }
.detail .d-line { font-size: .9rem; }

.paperdoll { display: grid; gap: 6px; justify-items: center; padding: 12px; background: radial-gradient(ellipse at 50% 40%, #33404f 0, #171d25 72%); border: 1px solid #0d1724; border-radius: 3px; }
.pd-row { display: flex; gap: 6px; }
.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-text { min-width: 0; }
.detail h3 { margin-top: 18px; color: var(--bone); }
.enchant-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.enchant-form label { margin: 0; }
.enchant-form select { display: block; margin-top: 4px; }
.enchant-form button[type=submit] { margin-top: 0; }

.request { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-left: 3px solid var(--seam); background: var(--hull-deep); }
.request-done { border-color: var(--venom); }
.request-failed { border-color: var(--blood); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--seam); border-top-color: var(--crimson); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bag */
.bag { margin-bottom: 16px; }
.bag-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 8px; align-items: flex-end; }
.tab { padding: 8px 16px 6px; font: 600 1.2rem var(--display); color: var(--haze); background: none; cursor: pointer; border: 1px solid transparent; border-bottom: 0; border-radius: 3px 3px 0 0; margin-top: 6px; }
.tab[aria-selected=true] { color: var(--bone); background: var(--hull); border-color: #5a1d1f; margin-bottom: -1px; }
.tab small { font: 400 .8rem var(--text); color: var(--haze); }
.bag:not(.js) .bag-tabs .tab { pointer-events: none; }
.bag.js .bag-title { display: none; }
.bag-title { font-size: 1.2rem; margin: 8px 0; flex-basis: 100%; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.filters[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 12px; font: 500 .9rem var(--text); color: var(--haze); background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 14px; cursor: pointer; }
.chip:hover { color: var(--cloud); border-color: var(--bone-dim); }
.chip[aria-pressed=true] { color: #fff4ec; background: var(--crimson); border-color: #d1453f; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.f-search { width: auto; flex: 1 1 200px; margin: 0; }
.filter-row select { margin: 0; }
.f-check { margin: 0; display: flex; align-items: center; gap: 6px; }
.f-check input { width: auto; margin: 0; display: inline; }
.bag-grid { display: flex; flex-wrap: wrap; gap: 3px; padding: 8px; background: #0f1a28; border: 1px solid #0a1220; border-radius: 3px; box-shadow: 0 0 0 1px var(--seam); }
.bag-grid[hidden] { display: none; }
.bag-grid > .hint { flex-basis: 100%; margin: 6px 2px; }

.enchant { color: #9fd8ff; }
.augment { color: #e6a0ff; }
.el-fire { color: #ff7a5c; } .el-water { color: #5cb8ff; } .el-wind { color: #9be38a; }
.el-earth { color: #d9b56a; } .el-holy { color: #fff1b0; } .el-dark { color: #b48cff; }
.grade { font: 700 .7rem var(--text); padding: 1px 5px; border-radius: 2px; background: #1b2c40; color: var(--haze); vertical-align: 2px; }
.grade.g-d { color: #a9c6e6; } .grade.g-c { color: #8fd29f; } .grade.g-b { color: #7fc0ff; }
.grade.g-a { color: #f0d070; } .grade.g-s, .grade.g-s80, .grade.g-s84 { color: #ff9a90; }

/* Tables: rankings and GM tools */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.leaderboard { min-width: 0; background: var(--hull); padding: 22px; border: 1px solid var(--seam); border-radius: 3px; }
.leaderboard header { margin-bottom: 18px; }
.leaderboard h2 { font-size: 2rem; margin-bottom: 5px; }
.leaderboard header p, .ranking-note { font-size: .95rem; color: var(--haze); margin-bottom: 0; }
.ranking-note { margin-bottom: 24px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 4px; }
.mobile-class, .mobile-score { display: none; }
.leaderboard .ranking tbody tr:first-child { background: rgba(230, 212, 198, .055); }
.leaderboard .ranking td { padding-block: 12px; }
.leaderboard .ranking strong { font-weight: 500; overflow-wrap: anywhere; }
.leaderboard .ranking .num { white-space: nowrap; }
.board-link { display: inline-block; margin-top: 18px; }
.ranking { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ranking th { text-align: left; font: 500 .85rem var(--text); color: var(--haze); padding: 4px 6px; border-bottom: 1px solid var(--seam); }
.ranking td { padding: 7px 6px; border-bottom: 1px solid rgba(52, 80, 110, .5); vertical-align: top; }
.ranking small { color: var(--haze); }
.ranking .num { text-align: right; font-variant-numeric: tabular-nums; }
.ranking .rank { color: var(--bone); width: 28px; font: 600 1.15rem var(--display); }
.table-scroll { overflow-x: auto; }
.status-done { color: var(--venom); } .status-failed { color: var(--blood); } .status-pending { color: var(--amber); }
.gm-tag { color: var(--venom); }
.search-form { display: flex; gap: 8px; margin-bottom: 14px; }
.search-form input { margin: 0; }
.search-form button[type=submit] { margin-top: 0; }

/* Upgrade pop-up and forms (character page). Levels are a dropdown with a cost line that follows the choice. */
.upgrade-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; color: var(--cloud); background: var(--hull);
	border: 1px solid #5a646f; border-radius: 4px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); overscroll-behavior: contain; }
.upgrade-dialog::backdrop { background: rgba(8, 11, 16, .72); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; font: inherit; color: inherit; }
.dialog-close { width: 32px; height: 32px; font-size: 1.4rem; line-height: 1; color: var(--haze); background: none; border: 0; border-radius: 3px; cursor: pointer; }
.dialog-close:hover { color: var(--cloud); background: rgba(255, 255, 255, .06); }
.dialog-body { padding: 16px 18px 18px; overflow-y: auto; }
.dialog-body > button { margin-top: 12px; }
.notice { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid var(--seam); background: var(--hull-deep); }
.notice.error { border-color: var(--blood); }
.notice.ok { border-color: var(--venom); }

.upgrade-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.upgrade-form fieldset { margin: 0; padding: 0; border: 0; }
.upgrade-form legend, .ban-form legend { margin-bottom: 8px; font-weight: 700; color: var(--bone); }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.choices.routes { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.choice { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin: 0; padding: 7px 10px;
	background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 3px; cursor: pointer; color: var(--cloud); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:hover { border-color: var(--bone-dim); }
.choice:has(input:checked) { border-color: #d1453f; background: #3a1c1e; box-shadow: 0 0 0 1px #d1453f; }
.choice:has(input:focus-visible) { outline: 2px solid var(--bone); outline-offset: 2px; }
.choice.unaffordable { opacity: .45; cursor: not-allowed; }
.choice-level { font-weight: 700; }
.choice-cost { color: var(--bone); font-variant-numeric: tabular-nums; font-size: .9rem; }
.choice-cost::after { content: " col"; color: var(--haze); font-size: .8rem; }
.pick { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.pick label { font-weight: 700; color: var(--bone); }
.pick select { min-width: 9rem; margin: 0; }
.cost-line { margin: 0; color: var(--haze); }
.augment-form { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--seam); }
.augment-form h3 { margin: 0 0 10px; font-size: 1rem; color: var(--bone); }
.augment-form .pick { margin-bottom: 8px; }
.augment-form .pick label { min-width: 6.5rem; }
.augment-form select { max-width: 100%; min-width: 0; flex: 1 1 14rem; }
.augment-form .cost-line { margin-top: 4px; }
.cost-line b { color: var(--cloud); font-variant-numeric: tabular-nums; }
.upgrade-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 6px; }
.upgrade-foot button[type=submit]:not(.link) { margin-top: 0; }
.purse-line { display: inline-flex; align-items: center; gap: 7px; color: var(--haze); }
.tip-hint { margin-top: 4px; color: var(--bone) !important; }

/* Skills tab */
.skills { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px; }
.skill-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 6px 10px 6px 6px; color: var(--cloud); text-decoration: none; background: var(--hull-deep); border: 1px solid #2f3b48; border-radius: 3px; }
.skill-row .cell { grid-row: span 2; }
.skill-row:hover, .skill-row.chosen { border-color: var(--bone-dim); color: var(--cloud); }
.skill-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-level { grid-column: 2; color: var(--haze); font-size: .88rem; }
.skill-action { grid-column: 3; grid-row: 1 / span 2; font-size: .85rem; color: var(--bone); }
.skill-list[hidden] { display: none; }
.accounts td { white-space: nowrap; }
.economy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; margin-bottom: 16px; }
.big-number { margin: 0; font-size: 1.8rem; font-weight: 700; color: var(--cloud); font-variant-numeric: tabular-nums; }
.gm-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 16px; padding: 10px 14px; background: var(--hull-deep); border: 1px dashed #5a646f; border-radius: 3px; }
.gm-credit .button { margin: 0; }
.gm-label { font-weight: 700; color: var(--bone); }
#credit-amount { width: 9rem; margin: 0; }
.give-search { margin: 0 0 8px; }
.give-list { list-style: none; margin: 10px 0 0; padding: 0 4px 0 0; display: grid; gap: 4px; max-height: min(52vh, 460px); overflow-y: auto; overscroll-behavior: contain; }
.give-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 5px 8px 5px 5px; background: var(--hull-deep); border: 1px solid #2f3b48; border-radius: 3px; }
.give-name { min-width: 0; }
.give-name small { display: block; color: var(--haze); }
.give-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; }
.give-form label { margin: 0; font-size: .9rem; color: var(--haze); }
.give-form input { width: 7rem; margin: 0 0 0 4px; }
.give-form select { margin: 0 0 0 4px; }
.give-form button { margin: 0; }
.gm-remove { margin-top: 18px; padding-top: 14px; border-top: 1px dashed #5a646f; }
.gm-remove h3 { margin: 0 0 6px; font-size: 1rem; color: var(--bone); }
.gm-remove input[type=number] { width: 7rem; margin: 0 4px; }
@media (max-width: 640px) { .give-list li { grid-template-columns: auto minmax(0, 1fr); } .give-form { grid-column: 1 / -1; } }
.shop-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; margin-bottom: 14px; }
.shop-card { padding: 10px 14px; background: var(--hull-deep); border: 1px solid #2f3b48; border-radius: 3px; }
.shop-card h3 { margin: 0 0 4px; font-size: 1rem; color: var(--bone); }
.shop-card p { margin: 0; color: var(--haze); font-size: .92rem; }
.shop-section { margin: 6px 0 4px; font-size: 1rem; color: var(--bone); }
.look-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.look-buttons .button { margin: 0; }
.look-buttons small { color: var(--haze); font-weight: 400; }
.look-preview { margin: 0 0 12px; padding: 12px 14px; background: #0c1016; border: 1px solid #2f3b48; border-radius: 3px; text-align: center; }
.look-preview span { font-weight: 700; font-size: 1.15rem; color: #fff; }
#look-color { width: 4.5rem; height: 2.4rem; padding: 2px; margin: 0; }
#look-name { width: 14rem; margin: 0; }
.shop-grade { margin: 8px 0; }
.shop-grade summary { cursor: pointer; padding: 6px 0; font-weight: 700; color: var(--bone); }
.shop-grade summary small { color: var(--haze); font-weight: 400; }
.shop-grade .skills { margin-top: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.bundle-pieces { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 3px 12px; font-size: .9rem; }
.bundle-pieces li { display: flex; align-items: center; gap: 7px; }
.bundle-pieces img { border: 1px solid #000; border-radius: 2px; }
.state.window { color: var(--amber); background: none; border: 0; box-shadow: none; }  /* not the .window panel */
.ban-form { margin-bottom: 12px; }
.ban-form .choices { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }

@media (max-width: 1060px) {
	.char-grid.with-detail { grid-template-columns: 1fr 1fr; }
	.with-detail .status { grid-row: span 2; }
}

@media (max-width: 860px) {
	.top { gap: 8px; }
	.top-left { margin-right: auto; }
	.language-switch { margin-left: 0; }
	.nav-toggle { margin-left: auto; padding-inline: 10px; }
	.account-menu { position: static; width: 100%; }
	#site-navigation { order: 4; flex: 1 0 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; border-block: 1px solid var(--seam); background: var(--hull); }
	.navigation-ready #site-navigation { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain; }
	#site-navigation > a { min-height: 48px; display: flex; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--seam); }
	#site-navigation > a[aria-current="page"] { background: var(--night); text-underline-offset: 4px; }
	#site-navigation > a.button { justify-content: center; margin-top: 12px; }
	.account-menu summary { min-height: 48px; padding: 10px 12px; }
	.account-flyout { position: static; min-width: 0; border: 0; padding: 0 0 0 12px; background: var(--night); }
	.nav-gap { display: none; }
	.page-hero-inner { padding-block: 36px; }
	.home .top { padding-inline: 24px; }
	.home .top nav { gap: 0; }
	.campaign-inner { padding-inline: 24px; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
	.home footer { padding-inline: 24px; }
}

@media (max-width: 760px) {
	body:not(.home)::before { background-image: linear-gradient(180deg, rgba(15, 21, 29, .72), rgba(15, 21, 29, .94) 420px, rgba(15, 21, 29, .98)), var(--page-background, url("art/page-world.webp")); background-position: 60% top; }
	.boards { grid-template-columns: 1fr; }
	.page-hero-inner { min-height: 280px; padding-block: 32px; }
	.home .top { border-bottom: 1px solid var(--seam); }
	.campaign { --hero-art-height: max(240px, 60vw); }
	.campaign-inner { padding-top: calc(var(--hero-art-height) + 80px); padding-bottom: 30px; min-height: 0; grid-template-columns: 1fr; gap: 24px; }
	.campaign-art { top: 64px; height: var(--hero-art-height); }
	.campaign-art img { position: absolute; left: 50%; width: auto; max-width: none; height: 100%; transform: translateX(-33.5%); }
	.campaign-art::after { background: linear-gradient(0deg, var(--night), rgba(15, 21, 29, .48) 55%); }
	.campaign h1 { font-size: 2.25rem; }
	.campaign-copy { max-width: 580px; }
	.realm-panel { padding: 18px; }
	.char-grid, .char-grid.with-detail { grid-template-columns: 1fr; }
	.with-detail .status { grid-row: auto; }
}

@media (max-width: 520px) {
	.nav-toggle span { display: none; }
	.leaderboard { padding: 18px 14px; }
	.leaderboard .class-column, .leaderboard .desktop-score { display: none; }
	.leaderboard .mobile-class { display: block; }
	.leaderboard .mobile-score { display: inline; text-underline-offset: 4px; }
	.page-hero h1 { font-size: 2.4rem; }
	.pager { flex-wrap: wrap; gap: 12px 20px; }
	body { font-size: 16px; }
	.cell { width: 42px; height: 42px; }
	.cell img { width: 36px; height: 36px; }
	.pd-row { gap: 4px; }
	.paperdoll { padding: 8px 4px; }
	.tip { left: auto; right: -2px; top: 48px; width: 230px; }
	.purse { align-items: flex-start; }
	.home .top, .home footer { padding-inline: 20px; }
	.home .top nav { gap: 0; font-size: 1rem; }
	.home .top .button { padding: 7px 12px; }
	.campaign-inner { padding-inline: 20px; }
	.campaign .cta { gap: 12px; }
	.home-competition { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.is-up .signal { animation: none; }
	.spinner { animation-duration: 2.4s; }
}

/* ===== Page components: used by the home page and the content pages (server, guide, play, rules) ===== */
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { display: block; margin: 0 0 10px; font: 700 .76rem/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: #e0615b; }
.section-heading { align-items: end; }
.section-heading > a { white-space: nowrap; }
.content { width: 100%; }
.tip-line { max-width: 80ch; margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--seam); color: var(--haze); font-size: .95rem; }
code { padding: 1px 7px; font: 600 .9em var(--text); color: var(--bone); background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 3px; }
code.secret { padding: 1px 8px; border: 0; }

/* Content blocks */
.block { padding-top: 56px; }
.block:first-child { padding-top: 8px; }
.panel-pair + .block { padding-top: 48px; }
.block > * + * { margin-top: 18px; }
.block-head { max-width: 68ch; margin-bottom: 8px; }
.block-head + * { margin-top: 0; }
.block-head h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.block-head p { margin: 0 0 .7em; color: var(--haze); }
.block-head p:last-child { margin-bottom: 0; }
.farm-routes { max-width: 68ch; }
.farm-routes dt { color: var(--amber); font-weight: 600; }
.farm-routes dt.pvp-route { color: var(--blood); }
.farm-routes dd { margin: 6px 0 22px; color: var(--haze); }
.farm-routes dd:last-child { margin-bottom: 0; }
.sub-heading { display: flex; align-items: center; gap: 10px; margin: 36px 0 16px; font: 600 1.5rem/1.2 var(--display); color: var(--bone); }
.block > .sub-heading { margin-top: 36px; }

/* Stat tiles: a big figure over a small label */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px 20px 20px; background: linear-gradient(180deg, #2c3744, var(--hull)); border: 1px solid var(--seam); border-top: 2px solid var(--crimson); border-radius: 4px; }
.tile dd { margin: 0; font: 600 2.7rem/1 var(--display); color: var(--bone); font-variant-numeric: lining-nums; }
.tile dt { color: var(--haze); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tiles.small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-top: 14px; }
.tiles.small .tile { padding: 16px 16px 14px; border-top-width: 1px; background: var(--hull); }
.tiles.small .tile dd { font-size: 1.7rem; }
.tiles.text { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.tiles.text .tile { flex-direction: column; justify-content: flex-start; padding: 18px 20px; border-top-width: 1px; background: var(--hull); }
.tiles.text .tile dd { font: 600 1.1rem/1.35 var(--text); color: var(--cloud); }
.block > .tiles + .tiles, .block > .tiles + .cards { margin-top: 14px; }
.rate-tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.rate-tiles .tile dd { font-size: 3rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.cards.numbered { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 22px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; transition: border-color .2s, transform .2s, background .2s; }
.info-card h3 { margin: 6px 0 0; font: 600 1.12rem/1.3 var(--text); color: var(--cloud); }
.info-card h3 a { color: inherit; text-decoration: none; }
.info-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.info-card h3 a:focus-visible { outline: none; }
.info-card:has(h3 a:focus-visible) { outline: 2px solid var(--bone); outline-offset: 2px; }
.info-card:has(h3 a):hover { border-color: #d1453f; background: #2d3743; transform: translateY(-2px); }
.info-card p { margin: 0; color: var(--haze); font-size: .95rem; }
.info-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; color: var(--bone); background: linear-gradient(#2c1e21, #1d1518); border: 1px solid #5a1d1f; border-radius: 4px; }
.info-icon .ico { width: 24px; height: 24px; }
.numbered .index { position: absolute; top: 14px; right: 18px; font: 600 2.8rem/1 var(--display); color: rgba(230, 212, 198, .13); pointer-events: none; }
.info-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-size: .9rem; font-weight: 700; color: var(--bone); }
.info-link .ico { width: 1em; height: 1em; transition: transform .2s; }
.post-card:hover .info-link .ico { transform: translateX(3px); }
.post-card .post-date { margin: 0; font: 700 .76rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #e0615b; }
.post-card .post-title { margin: 0; font: 600 1.4rem/1.2 var(--display); }
.post-card .post-body p { margin: 0 0 .6em; font-size: .95rem; color: var(--haze); }

/* Callouts */
.callout { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; background: rgba(170, 27, 29, .1); border: 1px solid #5a1d1f; border-left: 3px solid var(--crimson); border-radius: 4px; }
.callout > .ico { width: 26px; height: 26px; margin-top: 2px; color: #e0615b; }
.callout h2 { margin: 0 0 8px; font: 700 1.15rem/1.3 var(--text); color: var(--cloud); }
.callout p { margin: 0 0 .6em; font-size: .95rem; }
.callout p:last-child, .callout > div > :last-child { margin-bottom: 0; }
.callout.next-step { margin-top: 56px; }

/* Pills for settings that are on or off */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; font-size: .92rem; color: var(--cloud); background: var(--hull); border: 1px solid var(--seam); border-radius: 999px; }
.pill::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--venom); }
.pill.off { color: var(--haze); }
.pill.off::before { background: var(--seam); }

/* Price ladders */
.ladders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ladder { display: flex; flex-direction: column; gap: 14px; padding: 18px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.ladder h3 { margin: 0; min-height: 2.6em; font: 600 1rem/1.3 var(--text); color: var(--bone); }
.ladder-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.ladder-steps div { display: flex; flex-direction: column-reverse; padding: 9px 10px; background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 3px; }
.ladder-steps dd { margin: 0; font: 600 1.5rem/1 var(--display); color: var(--cloud); }
.ladder-steps dt { margin-top: 5px; font-size: .72rem; line-height: 1.25; color: var(--haze); }
.ladder-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--seam); font-size: .9rem; color: var(--haze); }
.ladder-total b { font: 600 1.7rem/1 var(--display); color: var(--bone); }

/* Play page */
.panel-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.panel-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.panel-card.primary { background: linear-gradient(180deg, #33262a, var(--hull) 70%); border-color: #6a2a2c; border-top: 2px solid var(--crimson); }
.panel-card h2 { margin: 12px 0 4px; font-size: 1.7rem; }
.panel-card p { margin: 0 0 .6em; color: var(--haze); }
.panel-card .hint { margin: auto 0 0; }
.panel-card .button { margin-top: 6px; padding: 11px 26px; font-size: 1.05rem; }
.panel-card .notice { color: var(--cloud); }
.steps-row { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps-row li { counter-increment: step; padding: 24px 22px 22px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.steps-row li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px; font: 600 2.6rem/1 var(--display); color: #c8332f; }
.steps-row b { display: block; margin-bottom: 6px; font-size: 1.08rem; color: var(--cloud); }
.steps-row span { color: var(--haze); font-size: .95rem; }

/* Rules page */
.rule-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.rule-card { padding: 24px 26px 12px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.rule-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rule-card h2 { margin: 0; font-size: 1.55rem; }
.rule { position: relative; margin: 0; padding: 15px 0 15px 34px; border-top: 1px solid var(--seam); }
.rule::before { position: absolute; left: 6px; top: 15px; font-weight: 700; }
.rule.no::before { content: "✕"; content: "✕" / ""; color: var(--blood); }
.rule.yes::before { content: "✓"; content: "✓" / ""; color: var(--venom); }
.rule.watch::before { content: "!"; content: "!" / ""; color: var(--amber); }

/* Guide: starter choices as cards */
.starter-choice { padding: 18px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }

/* Home page */
.band { padding: 64px 0; }
.band:nth-of-type(even) { background: rgba(255, 255, 255, .025); border-block: 1px solid var(--seam); }
.band-inner { max-width: 1320px; margin: 0 auto; padding-inline: 32px; }
.home .section-heading { margin-bottom: 28px; }
.home .section-heading h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.home .hint { margin: 18px 0 0; }
.competition-board { border-radius: 4px; padding: 22px; }
.competition-board h3 { display: flex; align-items: center; gap: 10px; }
.competition-board h3 .ico { width: 26px; height: 26px; color: #e0615b; }
.standing-table .rank { font: 600 1.15rem var(--display); }
.standing-table tbody tr:first-child .rank { color: #f0c35c; }
.boss-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.boss-tile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.portrait.medium { width: 62px; height: 70px; }
.portrait.medium .portrait-initial { font-size: 1.8rem; }
.boss-tile-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.boss-tile-text strong { font-weight: 600; overflow-wrap: anywhere; }
.boss-tile-text small { color: var(--haze); }
.boss-tile-text .state { margin-top: 4px; font-size: .88rem; white-space: normal; }
.castle-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.castle-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.castle-tile .dim:first-child { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.castle-tile strong { font-weight: 600; overflow-wrap: anywhere; }
.join-call { background: radial-gradient(ellipse 60% 120% at 15% 0, rgba(170, 27, 29, .3), transparent 70%), linear-gradient(180deg, #1b1417, var(--night)); border-top: 1px solid #5a1d1f; }
.join-call-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; padding-block: 72px; }
.join-call h2 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.9rem); }
.join-call p { margin: 0; color: var(--haze); }
.join-call .cta { margin: 0; gap: 14px; }
.join-call .button { padding: 12px 28px; font-size: 1.05rem; }

@media (max-width: 980px) {
	.cards.numbered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ladders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.band { padding: 44px 0; }
	.band-inner { padding-inline: 20px; }
	.join-call-inner { padding-block: 48px; }
	.block { padding-top: 40px; }
	.cards.numbered, .ladders { grid-template-columns: minmax(0, 1fr); }
	.ladder h3 { min-height: 0; }
	.tile dd, .rate-tiles .tile dd { font-size: 2.3rem; }
	.panel-card { padding: 22px; }
	.rule-card { padding: 20px 18px 8px; }
	.hero-links { gap: 6px; }
	.hero-links a { padding: 6px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.info-card, .info-link .ico, .hero-links a { transition: none; }
	.info-card:has(h3 a):hover { transform: none; }
}

/* ===== Bosses, rankings, news and sign-up ===== */
.boss-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.boss-card { display: flex; gap: 16px; min-width: 0; padding: 16px; background: var(--hull); border: 1px solid var(--seam); border-left: 3px solid var(--seam); border-radius: 4px; }
.boss-card.is-alive { border-left-color: var(--venom); }
.boss-card.is-window { border-left-color: var(--amber); }
.boss-card.is-dead { border-left-color: var(--blood); }
.boss-card .portrait.big { width: 84px; height: 96px; }
.boss-card-body { min-width: 0; }
.boss-card h3 { margin: 0; font: 600 1.35rem/1.15 var(--display); color: var(--cloud); }
.boss-meta { margin: 2px 0 8px; color: var(--haze); font-size: .9rem; }
.boss-card .state { white-space: normal; }
.boss-when { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 8px 0 0; font-size: .92rem; }
.boss-when small { flex-basis: 100%; color: var(--haze); font-size: .82rem; }
.boss-when .ico { color: #e0615b; }
.filter-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.filter-links a { padding: 7px 18px; color: var(--cloud); text-decoration: none; background: var(--hull); border: 1px solid var(--seam); border-radius: 999px; font-size: .92rem; }
.filter-links a:hover { border-color: var(--bone-dim); }
.filter-links a[aria-current] { color: #fff4ec; background: var(--crimson); border-color: #d1453f; }
.raid-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.raid-chip { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.raid-name { display: flex; flex-direction: column; min-width: 0; }
.raid-name strong { font-weight: 600; overflow-wrap: anywhere; }
.raid-name small { color: var(--haze); }
.raid-band .sub-heading { margin: 22px 0 14px; font-size: 1.3rem; }
.raid-band .sub-heading small { font: 400 .9rem var(--text); color: var(--haze); }

.ranking-browser { max-width: 960px; margin-inline: auto; }
.ranking-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; border: 0; }
.ranking-categories a { display: inline-flex; align-items: center; min-height: 0; padding: 7px 16px; color: var(--cloud); text-decoration: none; background: var(--hull); border: 1px solid var(--seam); border-radius: 999px; font-size: .92rem; }
.ranking-categories a:hover { color: var(--bone); border-color: #d1453f; background: var(--hull); }
.ranking-categories a[aria-selected="true"] { color: #fff4ec; background: var(--crimson); border-color: #d1453f; font-weight: 600; }
.ranking-note { margin-bottom: 18px; }
.ranking-boards { grid-template-columns: minmax(0, 1fr); }
.leaderboard { padding: 24px; border-radius: 4px; }
.leaderboard header { display: flex; align-items: center; gap: 14px; }
.leaderboard h2 { margin: 0 0 2px; font-size: 1.6rem; }
.leaderboard .ranking tbody tr:nth-child(1) .rank { color: #f0c35c; }
.leaderboard .ranking tbody tr:nth-child(2) .rank { color: #c9d3de; }
.leaderboard .ranking tbody tr:nth-child(3) .rank { color: #d38b5d; }
.board-link { font-weight: 700; }

.page-heading h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.page-heading .content > p { max-width: 60ch; margin-bottom: 0; color: var(--haze); }
.news-index { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-top: 28px; }
.post-card.featured { grid-column: 1 / -1; padding: 30px; background: linear-gradient(180deg, #33262a, var(--hull) 75%); border-color: #6a2a2c; }
.post-card.featured .post-title { font-size: 2rem; }
.post-card.featured .post-body p { max-width: 75ch; font-size: 1.02rem; }
.post-card .post-title a { color: var(--cloud); text-decoration: none; }
.post-card .post-title a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.post-card .post-title a:focus-visible { outline: none; }
.post-card:has(.post-title a:focus-visible) { outline: 2px solid var(--bone); outline-offset: 2px; }
.post-card:hover { border-color: #d1453f; transform: translateY(-2px); }
.post-edit { position: relative; z-index: 1; font-size: .85rem; }
.news-post { padding: 28px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.news-post .post-body { font-size: 1.05rem; }
.empty-state { padding: 28px; background: var(--hull); border: 1px solid var(--seam); border-radius: 4px; }
.pager .button { margin: 0; }

.join-banner { border-radius: 4px; }
.account-card { padding: 28px; border-radius: 4px; }
.account-card.primary { background: linear-gradient(180deg, #33262a, var(--hull) 60%); border-color: #6a2a2c; border-top: 2px solid var(--crimson); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.card-head h2 { margin: 0; font-size: 1.6rem; }
.account-card button[type=submit] { padding: 11px 26px; font-size: 1.05rem; }

@media (max-width: 680px) {
	.boss-card { padding: 14px; gap: 12px; }
	.boss-card .portrait.big { width: 68px; height: 78px; }
	.leaderboard { padding: 18px 14px; }
	.post-card.featured { padding: 22px; }
	.news-post, .account-card { padding: 20px; }
	.ranking-categories { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.post-card:hover { transform: none; }
}

/* ===== Account pages, character list and character header ===== */
.content > h1 { margin: 6px 0 22px; font-size: clamp(2.2rem, 4vw, 3rem); }
.account-card.narrow { max-width: 520px; margin: 24px auto 0; }
.card-head h1 { margin: 0; font-size: 1.6rem; }
.account-card > p { color: var(--haze); }
.char-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.char-cards li { display: flex; }
.char-card { flex-direction: row; align-items: center; gap: 16px; width: 100%; color: var(--cloud); text-decoration: none; }
.char-card:hover { border-color: #d1453f; background: #2d3743; transform: translateY(-2px); color: var(--cloud); }
.char-avatar { display: grid; place-items: center; flex: none; width: 64px; height: 72px; font: 600 2rem/1 var(--display); color: var(--bone-dim); background: radial-gradient(circle at 50% 40%, #2a333f, #10151e 75%); border-radius: 3px; box-shadow: 0 0 0 1px #4b4239; }
.char-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.char-name { font: 600 1.5rem/1.15 var(--display); color: var(--bone); overflow-wrap: anywhere; }
.char-class { color: var(--cloud); }
.char-info .meta { color: var(--haze); font-size: .9rem; }
.char-go { color: var(--bone-dim); transition: transform .2s, color .2s; }
.char-card:hover .char-go { color: var(--bone); transform: translateX(3px); }
.window { border-radius: 4px; }
.char-head { border-top: 2px solid var(--crimson); }
.char-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.purse .coin { padding: 6px 14px; background: var(--hull-deep); border: 1px solid var(--seam); border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
	.char-card:hover, .char-card:hover .char-go { transform: none; }
}

/* GM item search: filters and stat lines */
.give-search { flex-wrap: wrap; }
.give-search select { margin: 0; }
.give-stats { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; font-size: .85rem; color: var(--haze); }
.give-stats b { color: var(--cloud); font-weight: 600; font-variant-numeric: tabular-nums; }
.give-list { max-height: min(56vh, 520px); }

.hp-table { max-width: 620px; }
.hp-table tbody th { text-align: left; font-weight: 600; color: var(--bone); padding: 7px 6px; border-bottom: 1px solid rgba(52, 80, 110, .5); }

.boss-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 8px 0 0; font-size: .92rem; color: var(--amber); }
