:root {
  color-scheme: dark;
  --bg: #121411;
  --panel: #1b1e19;
  --raised: #242820;
  --line: #383e34;
  --line-strong: #626b58;
  --text: #f7f1e8;
  --muted: #bcc3b5;
  --copper: #f1b77e;
  --copper-hover: #ffd2a4;
  --ink: #241b13;
  --green: #bedb9e;
  --radius: 8px;
  --frame: 16px;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; }
.wrap { width: min(1248px, calc(100% - 88px)); margin-inline: auto; }

.header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 80px; }
.header > .button { justify-self: end; min-width: 100px; min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; min-height: 44px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.brand-mark { display: block; width: 44px; height: 44px; border-radius: var(--radius); object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a:hover, .text-link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--radius); font-size: 15px; font-weight: 700; line-height: 1.25; text-align: center; transition: background-color .16s, border-color .16s; }
.button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.primary { color: var(--ink); background: var(--copper); box-shadow: inset 0 -3px #241b1325; }
.primary:hover { background: var(--copper-hover); }
.subtle { color: var(--text); border-color: var(--line-strong); background: var(--raised); }
.subtle:hover { border-color: var(--muted); background: var(--panel); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 0; border: 0; color: var(--copper); background: transparent; font-size: 14px; text-align: start; }
.full { width: 100%; margin-top: 16px; }

.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); border: 1px solid #59624e; border-radius: var(--frame); background: var(--panel); overflow: hidden; box-shadow: 0 20px 60px #0004; }
.hero-copy { display: grid; align-content: center; gap: 24px; min-width: 0; padding: clamp(24px, 3.5vw, 48px); background: linear-gradient(145deg, #252b21, var(--panel) 65%); }
h1 { margin: 0; font-size: clamp(52px, 6.3vw, 96px); font-weight: 800; letter-spacing: -.065em; line-height: .98; }
h1 em { color: var(--copper); font-style: normal; }
.lead { max-width: 32ch; margin: 0; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .button { min-height: 56px; }
.hero-art { display: block; min-width: 0; width: 100%; height: clamp(416px, 37vw, 532px); object-fit: cover; object-position: 73% 52%; }
#download-state { margin: 0; }
.server-info { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); background: var(--raised); }
.server-info > div { padding: 16px 24px; }
.server-info > div + div { border-inline-start: 1px solid var(--line); }
.server-info dt { color: var(--muted); font-size: 14px; }
.server-info dd { margin: 4px 0 0; font-weight: 700; }
.server-status { display: flex; align-items: center; gap: 8px; }
.server-status i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--muted); }
.server-status i.online { background: var(--green); }

.start, .help { scroll-margin-top: 24px; margin-block: 40px; }
.start h2, .help h2 { margin: 0 0 16px; font-size: 28px; line-height: 1.2; letter-spacing: -.025em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-block: 1px solid var(--line); list-style: none; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-content: start; gap: 4px 12px; padding: 20px 20px 20px 0; counter-increment: step; }
.steps li + li { padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
.steps li::before { display: grid; grid-row: span 2; place-items: center; height: 36px; border: 1px solid #a77c56; border-radius: var(--radius); color: var(--copper); background: var(--panel); font-size: 14px; font-weight: 700; content: counter(step) / ""; }
.steps strong { font-size: 16px; }
.steps span, .questions p { color: var(--muted); font-size: 15px; }
.help { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; padding-bottom: 16px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 4px; list-style: none; cursor: pointer; font-weight: 600; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { color: var(--copper); font-size: 20px; line-height: 1; content: "+" / ""; }
.questions details[open] summary::after { content: "−" / ""; }
.questions summary:hover { color: var(--copper); }
.questions p { max-width: 66ch; margin: 0; padding: 0 32px 16px 4px; }
.questions code { color: var(--text); }

dialog { width: min(480px, calc(100% - 32px)); max-height: 90dvh; overflow: auto; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--frame); color: var(--text); background: var(--panel); }
dialog::backdrop { background: #0b0d0be0; }
dialog h2 { margin: 0 40px 16px 0; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; }
.close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; padding: 0; border: 1px solid transparent; border-radius: var(--radius); color: var(--muted); background: transparent; font-size: 24px; }
.close:hover, .password-field button:hover { color: var(--text); background: var(--raised); }
label { display: block; margin: 12px 0 0; font-size: 14px; font-weight: 600; }
input { display: block; width: 100%; min-height: 48px; margin-top: 4px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--text); background: var(--bg); font-weight: 400; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; top: 4px; right: 4px; width: 44px; height: calc(100% - 8px); padding: 0; border: 0; border-radius: var(--radius); color: var(--muted); background: transparent; }
.hint, .dialog-copy { color: var(--muted); font-size: 14px; }
.dialog-copy { margin: 0; }
#message { margin: 12px 0 0; padding: 8px 12px; border-inline-start: 2px solid var(--copper); background: var(--raised); color: var(--text); font-size: 14px; }
#message:empty { display: none; }
.mail-panel { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.mail-panel h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.25; }
.mail-address { margin: 4px 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 12px; }
.mail-actions .button { min-height: 44px; font-size: 14px; }
.dialog-footer { margin-top: 16px; border-top: 1px solid var(--line); }
.dialog-footer .text-link { color: var(--muted); }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .hero-copy { gap: 16px; }
  .hero-art { height: 100%; min-height: 360px; max-height: 480px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header { grid-template-columns: 1fr auto; min-height: 68px; }
  .site-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { grid-row: 1; min-height: 0; height: clamp(180px, 54vw, 320px); }
  h1 { font-size: clamp(44px, 11vw, 64px); }
  .actions { display: grid; }
  .server-info, .steps, .help { grid-template-columns: minmax(0, 1fr); }
  .server-info > div { padding: 12px 24px; }
  .server-info > div + div, .steps li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line); }
  .server-info > div + div { padding-inline-start: 24px; }
  .start, .help { margin-block: 28px; }
  .help { gap: 0; }
  dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

.skin-panel { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 16px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.skin-panel[hidden] { display: none; }
.skin-preview { display: grid; align-content: center; justify-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: #202920; text-align: center; font-size: 12px; }
.skin-preview img { image-rendering: pixelated; }
.skin-settings h3 { margin: 0 0 8px; font-size: 18px; }
.skin-settings input[type=file] { min-width: 0; width: 100%; }
.skin-settings select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; }
#skin-message { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
#skin-message:empty { display: none; }

.legal-page { max-width: 820px; padding-block: 34px 60px; }
.legal-page h1 { margin: 18px 0 4px; font-size: clamp(29px, 6vw, 46px); }
.legal-page h2 { margin: 24px 0 8px; font-size: 22px; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page .legal-note { padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); }
.legal-page nav, .legal-footer { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.legal-page nav { margin-top: 28px; }
.legal-footer { padding-block: 22px 36px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-checks { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.legal-check-row { display: flex; align-items: start; gap: 9px; }
.legal-check-row input { width: 18px; height: 18px; min-height: 0; flex: none; margin: 3px 0 0; accent-color: #f0b77e; }
.legal-check-row label { display: inline; }
.legal-check-row a, .legal-checks > a, .legal-footer a, .legal-page a { color: #f1bd89; text-decoration: underline; text-underline-offset: 3px; }
#legal-status:empty { display: none; }

.site-nav a[aria-current="page"] { color: var(--copper); }
#launcher { scroll-margin-top: 20px; }
.server-info .server-count { color: var(--muted); font-size: 13px; font-weight: 500; }
.section-page { min-height: 100vh; display: flex; flex-direction: column; }
.section-main { flex: 1; padding-block: 34px 70px; }
.page-path { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.page-path a:hover, .page-path a:focus-visible { color: var(--copper); text-decoration: underline; }
.section-main h1 { margin: 20px 0 12px; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.045em; line-height: 1.05; }
.section-empty { margin: 0; color: var(--muted); }
.site-footer { margin-top: 36px; border-top: 1px solid var(--line); background: var(--panel); }
.section-page .site-footer { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(2, minmax(0, .8fr)) minmax(0, 1.25fr); gap: 26px; padding-block: 32px 26px; }
.footer-grid h2 { margin: 4px 0 10px; font-size: 15px; }
.footer-grid ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.footer-grid li a { display: inline-block; padding-block: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.footer-grid li a:hover, .footer-grid li a:focus-visible { color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand p, .footer-bottom { color: var(--muted); font-size: 13px; }
.footer-brand p { margin: 10px 0 0; }
.footer-bottom { padding-block: 14px 18px; border-top: 1px solid var(--line); }
@media (max-width: 850px) {
  .site-nav { gap: 14px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

.rules-main { max-width: 920px; }
.rules-intro, .rules-section li, .rules-section p { color: var(--muted); line-height: 1.65; }
.rules-menu { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-block: 22px 12px; padding-block: 12px; border-block: 1px solid var(--line); }
.rules-menu a, .rules-section p a { color: var(--copper); text-underline-offset: 3px; }
.rules-menu a:hover, .rules-menu a:focus-visible, .rules-section p a { text-decoration: underline; }
.rules-section { padding-block: 19px 13px; border-bottom: 1px solid var(--line); scroll-margin-top: 18px; }
.rules-section h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.rules-section ul { display: grid; gap: 8px; padding-inline-start: 22px; }

.registration-notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.registration-notice a { color: var(--copper); text-decoration: underline; }
.account-main h1 { margin-bottom: 22px; }
.account-player { margin: 0; overflow-wrap: anywhere; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 14px 20px; }
.account-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.account-nav a:hover, .account-nav a:focus-visible { color: var(--copper); border-color: var(--line-strong); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.account-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--frame); background: var(--panel); scroll-margin-top: 16px; }
.account-panel h2, .account-panel h3 { margin: 0 0 10px; }
.account-panel p:not(:empty) { margin-block: 8px 14px; }
.account-panel form { display: grid; gap: 12px; margin-top: 12px; }
.account-panel .skin-panel { margin-top: 0; }
.account-actions, .account-session-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-actions .button, .account-session-actions .button { min-height: 44px; padding: 9px 13px; }
.account-session-actions { justify-content: space-between; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
.account-logout { color: var(--muted); background: transparent; }
.account-logout:hover { color: var(--text); background: var(--panel); border-color: var(--line); }
#account-message:not(:empty) { padding: 10px 12px; border-inline-start: 2px solid var(--copper); background: var(--raised); }
#account-message:empty { display: none; }
#account-guest { max-width: 470px; }
@media (max-width: 740px) { .account-grid { grid-template-columns: minmax(0, 1fr); } }

.account-sidebar { min-width: 0; display: grid; gap: 16px; }


/* GearMC: railway workshop, midnight petrol and uncoated paper. */
:root {
  --bg: #191a1d; --panel: #232428; --raised: #2c2d31; --line: #3d3f45;
  --line-strong: #74777e; --text: #eeeae3; --muted: #b9b9bd;
  --copper: #cfa582; --copper-hover: #e4ba96; --ink: #29231f;
  --radius: 5px; --frame: 9px;
  --paper: #e9e7e2; --paper-ink: #2e3035; --paper-muted: #62646a;
}
body { background: var(--bg); }
h1, h2, h3 { font-family: "Bahnschrift", "Segoe UI", system-ui, sans-serif; font-weight: 650; }
.wrap { width: min(1248px, calc(100% - 72px)); }
.header { min-height: 90px; border-bottom: 1px solid #8a8b9130; gap: 28px; }
.header .brand { font-size: 29px; letter-spacing: -.05em; }
.brand-mark { width: 38px; height: 38px; }
.site-nav { gap: 24px; }
.site-nav a { position: relative; color: #b5b6bc; font-size: 13px; }
.site-nav a[aria-current=page] { color: #e2c6ae; }
.site-nav a[aria-current=page]::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--copper); }
.button { min-height: 48px; border-radius: 4px; padding-inline: 19px; font-size: 14px; font-weight: 650; }
.primary { background: #cca07c; border: 1px solid #d9b99b; box-shadow: inset 0 -2px #654c3966; }
.primary:hover { background: #dcaf89; }
.subtle { background: transparent; border-color: #767982; }
.subtle:hover { background: #c4c6cc13; }
.header > .button { border-color: #86888d70; padding-inline: 22px; }
:focus-visible { outline: 2px solid #e9bb87; outline-offset: 4px; }
input, .skin-settings select { border-radius: 4px; background: #1c1d21; border-color: #5d6068; min-height: 46px; }
input:focus, select:focus { border-color: #cba587; }
.text-link { font-size: 13px; }

.hero { margin-top: 28px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); border: 0; border-radius: 0; background: #1d1e22; box-shadow: none; overflow: visible; }
.hero-copy { padding: 40px 32px 42px 0; background: none; align-content: center; gap: 25px; }
.hero-copy h1 { margin: 0; font: 600 clamp(34px,4.4vw,64px)/1.06 "Bahnschrift", "Segoe UI",sans-serif; letter-spacing: -.06em; }
.hero-copy h1 em { font-style: normal; color: #cfa582; }
.hero-copy .lead { font-size: 16px; line-height: 1.65; max-width: 35ch; }
.hero-art { width: 100%; height: 100%; min-height: 380px; max-height: 510px; object-fit: cover; object-position: center; border-radius: 9px; }
.hero-copy .actions { gap: 10px; }
.hero-copy .actions .button { flex: 1 1 170px; }
.server-info { margin-top: 22px; border: 1px solid #65676f5c; border-radius: 5px; background: #24262a; }
.server-info > div { padding: 17px 22px; }
.server-info dt { font-size: 12px; }
.server-info dd { font-size: 14px; }
.server-info .server-count { font-size: 12px; color: #bfc0c6; }
.start { margin-block: 58px; }
.start h2, .help h2 { font-size: 28px; font-weight: 600; }
.steps { border-block: none; gap: 14px; }
.steps li { position: relative; display: block; padding: 23px 22px 21px; background: #25262a; border: 1px solid #45474f; border-radius: 5px; }
.steps li + li { border-left: 1px solid #45474f; padding-left: 22px; }
.steps li::before { display: none; }
.steps strong { display: block; font-size: 17px; font-weight: 650; margin-bottom: 10px; }
.steps span { font-size: 14px; line-height: 1.65; }
.steps li::after { content: ""; position: absolute; top: -1px; left: 22px; width: 33px; height: 2px; background: #c59565; }
.help { padding: 28px 0 0; border-top: 1px solid #676a7370; margin-bottom: 64px; }
.questions { border-top: none; }
.questions summary { min-height: 59px; font-size: 15px; }
.questions p { font-size: 14px; }
.site-footer { margin-top: 28px; border-top: 1px solid #3b3d44; background: #131417; }
.footer-grid { grid-template-columns: 1.2fr .7fr .7fr 1.2fr; padding-block: 34px 30px; gap: 30px; }
.footer-grid h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .11em; color: #c9ab91; margin-bottom: 12px; }
.footer-grid li a { font-size: 13px; color: #afb0b7; }
.footer-brand p { max-width: 22ch; line-height: 1.65; }
.footer-bottom { border-color: #393b43; font-size: 11px; padding-bottom: 22px; }
.footer-brand .brand { font-size: 25px; }

.section-main { position: relative; padding-block: 26px 58px; }
.page-path { font-size: 12px; gap: 9px; color: #b2b3ba; }
.section-main > h1 { margin: 26px 0 24px; font-size: clamp(35px,4.5vw,57px); font-weight: 500; letter-spacing: -.055em; }
.section-board { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); min-height: 320px; border: 1px solid #7d7f8460; border-radius: 8px; overflow: hidden; background: var(--paper); color: var(--paper-ink); margin-top: 12px; }
.section-board-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 32px; gap: 25px; }
.section-board-copy .section-empty { color: var(--paper-ink); font: 500 clamp(22px,2.8vw,35px)/1.2 "Bahnschrift","Segoe UI",sans-serif; max-width: 16ch; }
.section-board-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.section-board .primary { background: #43464d; color: #f0ece5; border-color: #43464d; box-shadow: inset 0 -2px #112e2a; }
.section-board .primary:hover { background: #545861; }
.section-board .subtle { color: #494c54; border-color: #9c9fa5; }
.section-editorial-art { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.news-page .section-board { grid-template-columns: 1.12fr 1fr; background: #28292e; color: #efebe5; }
.news-page .section-editorial-art { grid-column: 1; grid-row: 1; }
.news-page .section-board-copy { grid-column: 2; grid-row: 1; }
.news-page .section-board-copy .section-empty { color: #efebe5; }
.news-page .section-board .primary { background: #cca07c; color: #2a231c; border-color: #ebc9a2; }
.news-page .section-board .subtle { color: #e4e3e0; border-color: #8b8e96; }

.account-main > h1 { font-size: clamp(33px,4vw,49px); margin-bottom: 20px; }
.profile-plate { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 0 0 20px; border: 0; background: none; }
.profile-monogram { display: block; flex: none; width: 48px; height: 48px; border: 1px solid #737078; background: #292a2f; border-radius: 4px; image-rendering: pixelated; }
.account-player { font-size: 23px; font-weight: 600; }
.profile-mail-state { margin-left: auto; color: #cbb49f; font-size: 12px; padding: 7px 10px; border: 1px solid #837264; border-radius: 3px; }
.profile-mail-state.is-verified { color: #c3c9bd; border-color: #727a6b; }
.account-nav { display: flex; gap: 0; margin: 14px 0 24px; border-bottom: 1px solid #44464d; }
.account-nav a { border: 0; border-radius: 0; background: none; font-size: 13px; min-height: 42px; padding-inline: 18px; }
.account-nav a:hover { background: #b6b9c20c; color: #d6b69a; }
.account-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 22px; align-items: start; }
.account-sidebar { display: grid; gap: 0; background: var(--panel); color: var(--text); border-radius: 8px; overflow: hidden; border: 1px solid #494b52; }
.account-sidebar .account-panel { border: 0; border-radius: 0; background: none; padding: 23px 25px; }
.account-sidebar .account-panel + .account-panel { border-top: 1px solid #494b52; }
.account-panel { box-shadow: none; }
.account-panel h2, .account-panel h3 { font-size: 19px; font-weight: 600; }
.account-sidebar .hint, .account-sidebar p, .account-sidebar .dialog-copy { color: var(--muted); font-size: 14px; line-height: 1.6; }
.account-sidebar .mail-address { color: var(--text); font-size: 17px; font-weight: 500; overflow-wrap: anywhere; }
.account-sidebar label { color: #cfccd0; font-size: 14px; }
.account-sidebar input { background: #1a1b1e; border: 1px solid #676970; color: var(--text); }
.account-sidebar .subtle, .account-sidebar .text-link { color: var(--text); border-color: #767982; }
.account-sidebar .subtle:hover { background: #33353b; }
.account-sidebar .primary { background: #44474e; color: #f4f0e9; border-color: #44474e; box-shadow: none; }
#account-password form { gap: 9px; }
#account-password .account-actions { margin-top: 2px; }
#account-skin { padding: 0; border: 1px solid #676a72; overflow: hidden; background: #25272b; border-radius: 8px; }
#account-skin > h2 { padding: 21px 24px 0; }
#account-skin > .hint { padding-inline: 24px; }
#account-skin .skin-panel { border: 0; border-radius: 0; margin: 0; padding: 0 24px 24px; background: none; display: flex; flex-direction: column; gap: 20px; }
.skin-preview { position: relative; width: 136px; min-height: 0; align-content: start; gap: 12px; border: 1px solid #484a50; border-radius: 6px; background: #1b1c20; padding: 16px 15px 12px; }
#skin-image { display: block; width: 104px; height: 208px; object-fit: contain; }
#skin-default { padding: 0; color: #bfc0c5; font: 12px/1.3 "Segoe UI",sans-serif; }
.skin-preview-caption { position: static; }
.skin-settings input[type=file] { padding:7px; }
.skin-settings input::file-selector-button { border:0; border-radius:3px; padding:6px 9px; color:#eeebe5; background:#5b5d63; font:inherit; margin-right:10px; cursor:pointer; }
.skin-settings label { font-size:13px; }
.skin-settings .hint { margin:0; font-size:12px; }
.skin-settings select { color:var(--text); }
#skin-reset { font-size:12px; }
.account-session-actions { margin-top:22px; }
.account-logout { color:#b8b9bd; font-size:12px; }
.access-panel { border:1px solid #8b8d9440; background: #282a2e; }
#account-guest { display: grid; grid-template-columns: 1.1fr 1fr; padding:0; overflow:hidden; max-width:850px; min-height:275px; }
.guest-art { min-height:275px; background: url("/station-interior.png") center / cover; }
.guest-action { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:18px; padding:30px; }
.guest-action h2 { margin:0; font-size:30px; font-weight:500; }
#account-guest .button { margin:0; }
.access-dialog { padding:0; width:min(840px,calc(100% - 40px)); color:var(--paper-ink); border:1px solid #9a9da4; border-radius:8px; background:var(--paper); overflow:auto; }
.access-dialog[open] { display:grid; grid-template-columns:minmax(220px,.8fr) minmax(0,1.2fr); }
.auth-illustration { grid-column:1; grid-row:1; background:url("/auth-valley.png") center / cover; min-height:450px; }
.access-dialog > section { grid-column:2; grid-row:1; padding:36px 30px 27px; min-width:0; }
.access-dialog h2 { font-family:"Bahnschrift","Segoe UI",sans-serif; font-size:29px; font-weight:500; letter-spacing:-.04em; margin:0 26px 25px 0; line-height:1.14; }
.access-dialog form { gap:12px; }
.access-dialog label { font-size:13px; }
.access-dialog input { color:#31343a; background:#f6f4ef; border-color:#a0a3a9; }
.access-dialog .text-link { color:#694e3c; font-size:12px; }
.access-dialog .primary { background:#44474e; border-color:#44474e; color:#f7ecd8; box-shadow:inset 0 -2px #292c32; }
.access-dialog .primary:hover { background:#575b64; }
.access-dialog .close { z-index:2; color:#51545b; right:8px; top:5px; }
.access-dialog .hint, .access-dialog .dialog-copy { color:#64676e; font-size:12px; }
.access-dialog .dialog-footer { border-color:#a5af9b80; }
.access-dialog .legal-checks { color:#45484e; background:#dfded8; border-color:#b0b0ab; padding:10px; gap:9px; }
.access-dialog .legal-checks a { color:#65503e; font-size:12px; }
.access-dialog .legal-check-row { gap:8px; line-height:1.5; }
.access-dialog .legal-check-row input { background:none; accent-color:#315c47; }
.access-dialog #message { color:#404742; background:#dadcd8; border-color:#848c7c; font-size:12px; }
.access-dialog .password-field button { color:#6b6f75; }
.login-password-label { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:0 8px; }
.login-password-label .text-link { min-height:28px; padding:0; }
.password-panel { padding:25px; max-width:520px; background:var(--paper); color:var(--paper-ink); }
.password-panel input { background:#f6f4ef; color:#31343a; border-color:#a0a3a9; }
.password-panel .subtle { color:#555861; border-color:#a0a3a9; margin-top:18px; }

.rules-main { max-width:1120px; }
.rules-intro { font-size:14px; max-width:60ch; }
.rules-layout { display:grid; grid-template-columns:210px minmax(0,1fr); gap:25px; align-items:start; margin-top:28px; }
.rules-layout .rules-menu { position:sticky; top:18px; display:grid; gap:4px; padding:5px 0; margin:0; border:0; border-left:2px solid #6c7079; background:none; }
.rules-menu a { padding:8px 15px; font-size:13px; line-height:1.35; color:#c0c2c7; }
.rules-menu a:hover { color:#d8b79a; }
.rules-content { padding:8px 30px 20px; background:var(--paper); color:var(--paper-ink); border-radius:5px; }
.rules-section { padding:22px 0 17px; border-bottom:1px solid #8f929870; background:none; scroll-margin-top:15px; }
.rules-section:last-child { border:0; }
.rules-section h2 { font-size:23px; font-weight:500; }
.rules-section p, .rules-section li { color:#53565d; font-size:14px; line-height:1.8; }
.rules-section ul { padding-left:18px; gap:9px; }
.rules-section a { color:#70553e; text-decoration:underline; }
.legal-page { margin-top:30px; padding:28px 35px 38px; color:var(--paper-ink); background:var(--paper); border-radius:5px; }
.legal-page .hint { color:#696c73; }
.legal-page h1 { font-size:35px; }
.legal-page h2 { font-size:22px; }
.legal-page .legal-note { background:#dbddd7; border-color:#a4a8a0; }
.legal-page a { color:#6c523e; }
.legal-page p, .legal-page li { font-size:14px; }
#password-message:empty, #password-result:empty { display:none; }
@media (max-width:960px) {
 .header { gap:18px; } .site-nav { gap:16px; } .wrap { width:calc(100% - 40px); }
 .hero-copy { padding:28px 25px 28px 0; } .hero-copy h1 { font-size:39px; }
 .hero-art { min-height:370px; } .footer-grid { gap:20px; }
}
@media (max-width:740px) {
 .account-grid, .rules-layout { grid-template-columns:minmax(0,1fr); }
 .rules-layout .rules-menu { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .profile-mail-state { margin-left:0; }
 .section-board,.news-page .section-board { grid-template-columns:minmax(0,1fr); }
 .news-page .section-board-copy,.news-page .section-editorial-art { grid-column:auto; grid-row:auto; }
 .section-editorial-art { min-height:0; max-height:240px; }
 .section-board-copy { padding:24px; } .section-board-copy .section-empty { max-width:none; }
 .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:680px) {
 .header { min-height:72px; } .header .brand { font-size:25px; }
 .hero { grid-template-columns:minmax(0,1fr); margin-top:18px; }
 .hero-art { grid-row:1; min-height:0; height:240px; }
 .hero-copy { padding:25px 0 10px; } .hero-copy h1 { font-size:40px; }
 .server-info { margin-top:14px; } .server-info > div + div { padding:12px 20px; border-left:0; }
 .steps { grid-template-columns:minmax(0,1fr); } .help { grid-template-columns:minmax(0,1fr); }
 .steps li + li { border-top:1px solid #45474f; padding:23px 22px; }
 #account-guest { grid-template-columns:minmax(0,1fr); } .guest-art { min-height:155px; }
 .guest-action { padding:23px; } .guest-action h2 { font-size:25px; }
 .access-dialog[open] { grid-template-columns:minmax(0,1fr); }
 .auth-illustration { display:none; }
 .access-dialog > section { grid-column:1; padding:30px 22px 22px; }
 .access-dialog h2 { font-size:27px; } .rules-content { padding:5px 20px 16px; }
 .legal-page { padding:22px; } .footer-grid { gap:22px 16px; }
}

/* Alignment and quieter proportions. */
.wrap { width: min(1160px, calc(100% - 64px)); }
.header { grid-template-columns: 220px minmax(0,1fr) auto; gap: 22px; min-height: 82px; }
.site-nav { justify-content: center; gap: 23px; }
.brand-mark { width: 34px; height: 34px; }
.header .brand { font-size: 27px; }
.hero { margin-top: 26px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: stretch; background: transparent; }
.hero-copy { padding: 28px 34px 28px 0; gap: 22px; }
.hero-copy h1 { font-size: clamp(33px,3.5vw,48px); line-height: 1.12; }
.hero-copy .lead { font-size: 15px; line-height: 1.7; }
.hero-art { min-height: 350px; max-height: 420px; border-radius: 5px; }
.hero-copy .actions .button { flex: 1 1 145px; padding-inline: 12px; }
.server-info { margin-top: 20px; }
.start { margin-block: 42px; }
.section-main { padding-block: 24px 48px; }
.section-main > h1, .account-main > h1 { font-size: clamp(32px,3.6vw,46px); margin: 23px 0; line-height: 1.15; }
.profile-plate { padding: 0 0 20px; gap: 16px; }
.account-player { font-size: 21px; }
.profile-monogram { width: 48px; height: 48px; }
.profile-mail-state { padding: 6px 9px; }
.account-grid { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 24px; }
.account-nav { margin: 12px 0 20px; }
.account-nav a { padding-inline: 17px; }
.account-sidebar, #account-skin { border-radius: 5px; }
.account-sidebar .account-panel { padding: 24px; }
#account-skin > h2 { padding: 20px 22px 0; }
#account-skin .skin-panel { padding: 4px 22px 24px; display: grid; grid-template-columns: 136px minmax(0,1fr); align-items: start; gap: 24px; }
.skin-settings form { gap: 16px; }
.skin-settings .account-actions { display: grid; gap: 8px; }
.skin-settings .account-actions .button { width: 100%; min-height: 44px; font-size: 14px; }
.skin-settings label { font-size: 14px; }
.skin-settings input[type=file] { font-size: 12px; padding: 6px; }
.skin-settings .hint { font-size: 13px; }
.account-session-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-session-actions .launcher-download { order: -1; }
.account-session-actions #logout { margin-left: auto; color: #bcbcc2; font-size: 14px; border-color: transparent; }
.account-session-actions #logout:hover { background: #303137; color: var(--text); }
.section-board { min-height: 275px; border-radius: 5px; }
.section-editorial-art { min-height: 275px; max-height: 350px; }
.section-board-copy { padding: 28px; }
.section-board-copy .section-empty { font-size: 28px; }
.section-board-actions .button { padding-inline: 13px; }
.access-dialog { width: min(790px,calc(100% - 40px)); color-scheme: light; }
.access-dialog[open] { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }
.auth-illustration { min-height: 390px; }
.access-dialog > section { padding: 32px 28px 26px; }
.access-dialog h2 { font-size: 27px; margin-bottom: 23px; }
.access-dialog input { min-height: 44px; }
.access-dialog .primary { min-height: 47px; }
.rules-layout { grid-template-columns: 190px minmax(0,1fr); gap: 24px; }
.rules-content { padding-inline: 27px; }
.rules-section p, .rules-section li { font-size: 14px; line-height: 1.75; }
.footer-grid { padding-block: 30px 24px; }
.account-sidebar input { color-scheme: dark; }
.password-panel input, .access-dialog input { color-scheme: light; }
@media(min-width:741px) and (max-width:1100px) {
 #account-skin .skin-panel { grid-template-columns: minmax(0,1fr); }
 .skin-preview { justify-self: center; }
}
@media(max-width:960px) {
 .header { grid-template-columns: auto minmax(0,1fr) auto; gap:18px; }
 .site-nav { gap:15px; }
 .hero-copy h1 { font-size:36px; }
 .hero-copy .actions { flex-direction:column; align-items:stretch; }
 .hero-copy .actions .button { flex:auto; }
 .hero-art { min-height:370px; }
}
@media(max-width:740px) {
 .account-grid, .rules-layout { grid-template-columns:minmax(0,1fr); }
 .profile-mail-state { margin-left:0; }
 .rules-layout .rules-menu { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:680px) {
 .wrap { width:calc(100% - 32px); }
 .header { grid-template-columns:1fr auto; min-height:70px; }
 .hero { grid-template-columns:minmax(0,1fr); }
 .hero-art { min-height:0; height:230px; }
 .hero-copy { padding:23px 0 12px; }
 .hero-copy h1 { font-size:36px; }
 .hero-copy .actions { display:grid; }
 .access-dialog[open] { grid-template-columns:minmax(0,1fr); }
 .access-dialog > section { grid-column:1; padding:30px 22px 22px; }
 .section-board-copy .section-empty { font-size:25px; }
}
