:root {
  color-scheme: light;
  --bg: #edf0f2; --ink: #292c31; --muted: #636971; --line: #ccd1d6;
  --accent: #813344; --accent-hover: #652536; --gold: #c3ad77;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif; font-size: 16px; letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #387194; outline-offset: 4px; }
svg { width: 19px; height: 19px; flex-shrink: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 18px; border: 1px solid #b9bec4; border-radius: 3px; background: white; color: var(--ink); font-weight: 600; font-size: 14px; }
button:hover, .button:hover { background: #f3f4f5; border-color: #777e87; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.full { width: 100%; }
header { background: #24262b; color: #f5f5f7; border-top: 3px solid var(--gold); }
.header-inner { max-width: 1224px; min-height: 91px; padding: 18px 32px; margin: auto; display: flex; align-items: center; gap: 66px; }
.brand { display: flex; gap: 12px; align-items: center; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 29px; color: #eee6d6; }
.brand img { image-rendering: pixelated; width: 36px; height: 36px; }
.header-inner nav { display: flex; gap: 30px; align-self: stretch; align-items: center; }
.header-inner nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: #c3c5cb; border-bottom: 2px solid transparent; }
.header-inner nav a:hover { color: white; }
.header-inner nav a[aria-current=page] { border-color: var(--gold); color: white; }
.account-link { display: flex; gap: 9px; align-items: center; margin-left: auto; font-size: 14px; max-width: 200px; overflow-wrap: anywhere; }
.account-link:hover { color: #e9d5a6; }
main { max-width: 1224px; margin: auto; padding: 48px 32px 64px; min-height: 68vh; }
main:focus { outline: none; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: 44px; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 26px; line-height: 1.28; margin: 0 0 16px; }
h3 { font-size: 21px; line-height: 1.35; margin: 0 0 12px; }
p { margin: 0 0 20px; }
.lead { color: var(--muted); font-size: 17px; max-width: 680px; }
.muted { color: var(--muted); }
.page-heading { margin-bottom: 36px; }
.page-heading h1 { font-size: 52px; }
.page-heading .lead { margin-bottom: 0; }
.portal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 42px; align-items: start; }
.filters { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.filters button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 0 12px; min-height: 46px; background: transparent; color: var(--muted); font-weight: 400; }
.filters button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.news-grid { display: grid; gap: 28px; }
.news-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.news-card img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: contain; background: #25292e; border-radius: 3px; }
.news-copy h2 { font-size: 25px; margin-bottom: 12px; }
.news-card:hover h2 { color: var(--accent); }
.news-copy p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tag { color: var(--accent); font-weight: 700; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 13px; }
.read-more svg { width: 15px; height: 15px; }
.start-playing { padding: 24px 0 0 28px; border-left: 1px solid var(--line); }
.start-playing h2 { font-size: 28px; }
.start-playing > p { font-size: 14px; }
.start-playing .button { margin-bottom: 12px; }
.server-info { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 22px; }
.server-info h3 { font-family: inherit; font-size: 14px; font-weight: 700; }
.server-info p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.server-info .text-link { display: inline-block; margin-top: 12px; font-size: 13px; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-hover); }
.project-band { margin-top: 38px; padding-top: 26px; display: flex; justify-content: space-between; gap: 40px; align-items: center; }
.project-band h2 { font-size: 24px; margin-bottom: 10px; }
.project-band p { color: var(--muted); font-size: 14px; max-width: 660px; margin: 0; }
.band-links { flex-shrink: 0; font-size: 14px; }
.back { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article { max-width: 790px; margin: auto; }
.article h1 { font-size: 38px; }
.article-image { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #25292e; margin: 28px 0; border-radius: 3px; }
.article-body { font-size: 17px; color: #41464d; }
.article-body p { margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 34px; }
.section-title { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.facts { list-style: none; padding: 0; margin: 24px 0 32px; }
.facts li { padding: 16px 0; display: flex; gap: 16px; }
.facts svg { color: var(--accent); margin-top: 3px; }
.facts strong { display: block; font-size: 15px; }
.facts p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.model-sheet { width: 100%; display: block; border-radius: 3px; }
.caption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.download-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; margin-top: 32px; }
.download-layout img { width: 100%; display: block; border-radius: 3px; }
.release { display: flex; gap: 12px; align-items: center; font-size: 13px; margin: 22px 0; }
.release span { color: #41644e; }
.notice { padding: 16px 18px; border-left: 3px solid #59809c; background: #e1e9ef; color: #344b5c; font-size: 14px; margin: 24px 0; }
.notice.warning { border-color: #ab8640; background: #f2eddc; color: #655026; }
.download-button { width: 100%; margin-bottom: 12px; }
.fine { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
a.fine { text-decoration: underline; text-underline-offset: 3px; }
.auth-layout { display: grid; grid-template-columns: .9fr 1fr; gap: 80px; max-width: 980px; margin: 14px auto 0; }
.auth-intro { padding-top: 18px; }
.auth-intro h1 { font-size: 39px; }
.auth-intro ul { padding-left: 20px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.auth-intro li { margin-bottom: 12px; }
.auth-form { width: 100%; max-width: 430px; justify-self: end; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 0; min-height: 48px; color: var(--muted); }
.tabs button[aria-pressed=true] { border-color: var(--accent); color: var(--accent); }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 20px; }
input { display: block; width: 100%; height: 48px; margin-top: 8px; padding: 10px 12px; background: white; border: 1px solid #9da4ac; color: var(--ink); border-radius: 3px; }
label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-message { font-size: 14px; color: #9a2339; margin: 16px 0; min-height: 24px; }
.form-message.success { color: #3f654b; }
.account-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; margin-bottom: 32px; }
.account-head h1 { font-size: 36px; overflow-wrap: anywhere; }
.characters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 32px; }
.character { padding: 22px; border: 1px solid var(--line); border-radius: 3px; background: white; display: flex; gap: 14px; align-items: center; min-height: 100px; }
.character svg { color: var(--accent); width: 26px; height: 26px; }
.character strong { overflow-wrap: anywhere; }
.character small { display: block; color: var(--muted); }
.character-form { max-width: 430px; border-top: 1px solid var(--line); padding-top: 26px; }
.empty { padding: 30px 0; color: var(--muted); }
footer { border-top: 1px solid var(--line); }
.footer-inner { max-width: 1224px; padding: 28px 32px; margin: auto; display: flex; justify-content: space-between; gap: 32px; }
.footer-brand { font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.footer-inner p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.footer-inner > div:last-child { text-align: right; }
.footer-inner > div:last-child a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.loading { padding: 60px 0; color: var(--muted); }
.skip { position: fixed; top: -100px; left: 16px; background: white; padding: 10px 20px; z-index: 2; }
.skip:focus { top: 10px; }
@media (max-width: 1000px) {
  .header-inner { gap: 32px; }
  .portal-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; }
  .news-card { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
  .news-copy h2 { font-size: 22px; }
  .start-playing { padding-left: 22px; }
}
@media (max-width: 800px) {
  main { padding: 36px 24px 48px; }
  .header-inner { padding: 16px 24px; gap: 28px; }
  .header-inner nav { gap: 20px; }
  .brand { font-size: 25px; }
  .brand img { width: 28px; height: 28px; }
  .portal-layout { grid-template-columns: 1fr; gap: 32px; }
  .news-card { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .start-playing { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0 0; max-width: 440px; }
  .project-band { align-items: start; }
  .two-col, .download-layout, .auth-layout { gap: 36px; }
  .auth-intro h1 { font-size: 33px; }
  .characters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .header-inner { flex-wrap: wrap; gap: 10px 20px; padding: 14px 20px 0; }
  .header-inner nav { order: 3; width: 100%; gap: 26px; }
  .header-inner nav a { padding: 8px 0 12px; }
  .account-link { max-width: 130px; font-size: 13px; }
  .brand { font-size: 25px; }
  main { padding: 30px 20px 42px; }
  h1 { font-size: 34px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1 { font-size: 42px; }
  .lead { font-size: 15px; }
  .filters { gap: 24px; margin-bottom: 22px; }
  .news-card { grid-template-columns: 1fr; gap: 18px; }
  .news-card img { aspect-ratio: 1.8; }
  .news-copy h2 { font-size: 26px; }
  .project-band { flex-direction: column; gap: 18px; margin-top: 30px; }
  .article h1 { font-size: 32px; }
  .article-body { font-size: 16px; }
  .two-col, .download-layout, .auth-layout { grid-template-columns: 1fr; gap: 28px; }
  .auth-layout { gap: 10px; margin-top: 0; }
  .auth-intro { padding: 0; }
  .auth-intro ul { display: none; }
  .auth-form { max-width: none; }
  .characters { grid-template-columns: 1fr; }
  .account-head { flex-direction: column; gap: 10px; }
  .account-head h1 { font-size: 30px; }
  .footer-inner { flex-direction: column; padding: 24px 20px; gap: 20px; }
  .footer-inner > div:last-child { text-align: left; }
}
