/* =========================================================
   DongWintering — editorial theme · dual tone (dark / light)
   ========================================================= */

:root {
  /* dark (default) */
  --bg: #0b0c0f;
  --bg-2: #101116;
  --card: #13151b;
  --field: #0a0b0e;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f3f4f6;
  --fg-2: #b6bcc6;
  --fg-3: #7c828d;
  --accent: #8ab4ff;
  --accent-hover: #a6c6ff;
  --accent-ink: #071021;
  --ok: #8fe0b0;
  --ok-ring: rgba(143, 224, 176, 0.16);
  --err: #ff9aa5;
  --shade: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(11, 12, 15, 0.82);
  --nav-menu: rgba(11, 12, 15, 0.97);
  --grain: 0.035;

  --aur-1: rgba(90, 134, 230, 0.42);
  --aur-2: rgba(120, 165, 255, 0.26);
  --aur-o: 0.55;
  --particle: rgba(190, 214, 255, 0.55);

  --ph-a: #151922;
  --ph-b: #0c0e13;

  --r: 4px;
  --r-lg: 8px;
  --maxw: 1240px;

  --serif: "Instrument Serif", "Noto Serif SC", Georgia, "Songti SC", serif;
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f4f5f8;
  --bg-2: #eceef3;
  --card: #ffffff;
  --field: #ffffff;
  --line: rgba(16, 22, 34, 0.1);
  --line-2: rgba(16, 22, 34, 0.18);
  --fg: #12161e;
  --fg-2: #4a5161;
  --fg-3: #8a90a0;
  --accent: #2f63d6;
  --accent-hover: #1f52c4;
  --accent-ink: #ffffff;
  --ok: #148a4c;
  --ok-ring: rgba(20, 138, 76, 0.14);
  --err: #c5344a;
  --shade: rgba(16, 22, 34, 0.035);
  --nav-bg: rgba(244, 245, 248, 0.85);
  --nav-menu: rgba(244, 245, 248, 0.98);
  --grain: 0.022;

  --aur-1: rgba(90, 134, 230, 0.22);
  --aur-2: rgba(150, 180, 255, 0.16);
  --aur-o: 0.7;
  --particle: rgba(40, 70, 140, 0.35);

  --ph-a: #e9ecf2;
  --ph-b: #dde2ea;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

/* base tone */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* animated aurora */
.aurora {
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  opacity: var(--aur-o);
  filter: blur(60px);
  background:
    radial-gradient(38% 38% at 22% 28%, var(--aur-1), transparent 70%),
    radial-gradient(44% 44% at 78% 62%, var(--aur-2), transparent 72%);
  animation: drift 32s var(--ease) infinite alternate;
  transition: opacity 0.6s var(--ease);
}
@keyframes drift {
  from { transform: translate3d(-2%, -1.5%, 0) scale(1); }
  to { transform: translate3d(3%, 2.5%, 0) scale(1.14); }
}

/* faint drifting dust */
#dust {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex: none;
}
.ico--lg { width: 26px; height: 26px; stroke-width: 1.4; }

.wrap { width: min(var(--maxw), calc(100% - 56px)); margin-inline: auto; }
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- typography ---------- */
.eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-3); }
.idx { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 14px; }
.h-section { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.lede { color: var(--fg-2); font-size: 1.05rem; max-width: 46ch; }
.prose { color: var(--fg-2); max-width: 62ch; }
.cap { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.hint { font-size: 0.82rem; color: var(--fg-3); margin-top: 22px; }
.hint code, .hint strong { font-family: var(--mono); font-size: 0.92em; color: var(--accent); }
.muted { color: var(--fg-3); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px;
  font-size: 0.9rem; font-weight: 500; font-family: var(--sans); letter-spacing: 0.01em;
  border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--solid:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--line { border-color: var(--line-2); color: var(--fg); background: transparent; }
.btn--line:hover { border-color: var(--fg); background: var(--shade); }
.btn--solid .ico { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn--solid:hover .ico { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { color: var(--accent); font-size: 1.05rem; }
.brand__text { font-family: var(--serif); font-size: 1.32rem; }

.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; font-size: 0.88rem; color: var(--fg-2); border-radius: var(--r); transition: color 0.25s, background 0.25s; }
.nav__links a:hover { color: var(--fg); background: var(--shade); }

.nav__right { display: flex; align-items: center; gap: 12px; }
.nav__group {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--fg-2);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  transition: border-color 0.25s, color 0.25s;
}
.nav__group:hover { border-color: var(--accent); color: var(--fg); }

.icon-btn {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--fg-2); cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--fg); background: var(--shade); }
.theme-i { grid-area: 1 / 1; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.theme-i--moon { opacity: 0; transform: rotate(-30deg) scale(0.7); }
[data-theme="light"] .theme-i--sun { opacity: 0; transform: rotate(30deg) scale(0.7); }
[data-theme="light"] .theme-i--moon { opacity: 1; transform: none; }

.nav__toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 1.5px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 10vh, 120px) 0 0; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin: 22px 0 0; }
.hero__title-en {
  display: block; font-family: var(--serif);
  font-size: clamp(2.8rem, 7.5vw, 6rem); line-height: 0.98;
  background: linear-gradient(180deg, var(--fg), color-mix(in srgb, var(--fg) 55%, var(--bg)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-cn { display: block; margin-top: 14px; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.7rem); color: var(--fg-2); font-weight: 400; }
.hero .lede { margin-top: 24px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.hero__media { margin: 0; }
.frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); }
.frame .ph { position: absolute; inset: 0; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__media .cap { margin-top: 12px; }

.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--shade) 0 12px, transparent 12px 24px), linear-gradient(160deg, var(--ph-a), var(--ph-b)); }
.ph span { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--fg-3); text-transform: uppercase; }

.ticker { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 84px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__item { padding: 22px 4px; display: flex; flex-direction: column; gap: 6px; }
.ticker__item + .ticker__item { border-left: 1px solid var(--line); padding-left: 24px; }
.ticker__k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.ticker__v { font-size: 1rem; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.split__aside { position: sticky; top: 96px; }
.aside__note { margin-top: 16px; font-size: 0.9rem; color: var(--fg-3); max-width: 26ch; }
.split__main { min-width: 0; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.35s var(--ease); }
.fact:hover { background: var(--shade); }
.fact .ico--lg { color: var(--accent); margin-bottom: 16px; }
.fact h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.fact p { font-size: 0.88rem; color: var(--fg-2); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; gap: 14px; margin-top: 40px; }
.shot { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; }
.shot--tall { grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot .ph { position: absolute; inset: 0; transition: transform 0.7s var(--ease); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.shot:hover .ph, .shot:hover img { transform: scale(1.05); }
.shot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; background: linear-gradient(180deg, transparent, rgba(6, 7, 10, 0.9)); color: #dfe6f2; }

/* ---------- journal ---------- */
.journal { list-style: none; border-top: 1px solid var(--line); }
.journal__row { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--line); transition: background 0.3s var(--ease); }
.journal__row:hover { background: var(--shade); }
.journal__date { font-family: var(--mono); font-size: 0.76rem; color: var(--fg-3); }
.journal__body h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: 6px; }
.journal__body p { font-size: 0.9rem; color: var(--fg-2); max-width: 54ch; }
.journal__tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; color: var(--accent); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.member { padding: 30px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.member__ava { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); margin-bottom: 18px; filter: grayscale(0.2); transition: filter 0.35s; }
.member:hover .member__ava { filter: grayscale(0); }
.member__ava--ph { display: grid; place-items: center; color: var(--fg-3); font-size: 1.3rem; border-style: dashed; background: transparent; }
.member h3 { font-size: 1rem; font-weight: 600; }
.role { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); display: block; margin-top: 6px; }
.member--lead .role { color: var(--accent); }
.member--open { opacity: 0.6; }

/* ---------- rules ---------- */
.rules { list-style: none; border-top: 1px solid var(--line); margin-top: 40px; }
.rule { display: grid; grid-template-columns: 78px 1fr; gap: 20px; padding: 28px 4px; border-bottom: 1px solid var(--line); }
.rule__no { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); opacity: 0.9; }
.rule h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.rule p { font-size: 0.92rem; color: var(--fg-2); max-width: 60ch; }

.verdict { margin-top: 34px; padding: 26px 28px; border: 1px solid var(--line-2); border-left: 2px solid var(--accent); border-radius: var(--r); background: var(--card); }
.verdict h3 { font-size: 1rem; margin-bottom: 12px; }
.verdict p { color: var(--fg-2); font-size: 0.92rem; }
.tag { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); border: 1px solid var(--line-2); padding: 2px 8px; border-radius: 3px; }
.verdict .muted { font-size: 0.84rem; margin-top: 10px; }

/* ---------- status ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 28px; margin-top: 4px; }
.panel__form { display: flex; gap: 12px; }
.input {
  flex: 1; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--field); color: var(--fg); font-family: var(--mono); font-size: 0.86rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.input::placeholder { color: var(--fg-3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.panel__result { margin-top: 20px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--field); min-height: 84px; display: grid; align-items: center; }
.res__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.res__cell { text-align: center; }
.res__cell b { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--fg); }
.res__cell span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.res__motd { grid-column: 1 / -1; text-align: center; font-size: 0.85rem; color: var(--fg-2); margin-top: 6px; }
.err { color: var(--err); font-size: 0.9rem; }
.state { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
.state--on { color: var(--ok); }
.state--off { color: var(--err); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--ok-ring); }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.75s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- news ---------- */
.news__list { list-style: none; border-top: 1px solid var(--line); }
.news__item { display: grid; grid-template-columns: 92px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.news__date { font-family: var(--mono); font-size: 0.76rem; color: var(--fg-3); }
.news__item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; margin-bottom: 6px; }
.news__item p { font-size: 0.9rem; color: var(--fg-2); white-space: pre-wrap; max-width: 60ch; }
.news__pin { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 3px; }
.news__empty { padding: 26px 4px; }

/* ---------- interact ---------- */
.interact { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.panel__head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.vote__text { font-size: 0.94rem; color: var(--fg-2); margin-bottom: 22px; max-width: 40ch; }

/* ---------- form ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--field); color: var(--fg); font-family: var(--sans); font-size: 0.92rem; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field select { cursor: pointer; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.form-msg { font-size: 0.84rem; color: var(--fg-3); }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* ---------- CTA ---------- */
.cta { padding: clamp(84px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.cta__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.cta__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.05; margin-top: 12px; }
.cta .lede { margin: 20px auto 34px; }
.qq {
  display: inline-flex; align-items: center; gap: 20px; padding: 16px 26px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--fg); cursor: pointer; font-family: inherit;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}
.qq:hover { border-color: var(--accent); transform: translateY(-2px); }
.qq__meta { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); }
.qq__num { font-family: var(--serif); font-size: 1.5rem; }
.qq__copy { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--accent); }
.qq__copy .ico { width: 15px; height: 15px; }
.cta .hint { text-align: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; }
.footer__inner { text-align: center; }
.footer__brand { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 10px; }
.footer__brand .brand__mark { color: var(--accent); }
.footer__line { font-size: 0.86rem; color: var(--fg-2); }
.footer__muted { font-size: 0.76rem; color: var(--fg-3); margin-top: 6px; }

/* ---------- to-top / toast / reveal ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 60;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); color: var(--fg-2); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.25s, color 0.25s;
}
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--accent); color: var(--fg); }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 16px);
  padding: 11px 20px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card); color: var(--fg); font-family: var(--mono); font-size: 0.8rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); z-index: 100;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.split__aside.reveal { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .aurora { animation: none; }
  #dust { display: none; }
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- menu button + drawer ---------- */
.nav__inner { display: flex; align-items: center; justify-content: flex-start; gap: 16px; }
.nav__links { margin-left: auto; }
.menu-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: transparent;
  color: var(--fg); cursor: pointer; transition: border-color 0.25s, background 0.25s;
}
.menu-btn:hover { border-color: var(--accent); background: var(--shade); }

.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.55); opacity: 0; transition: opacity 0.4s var(--ease); }
[data-theme="light"] .drawer__overlay { background: rgba(20, 26, 40, 0.3); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 86vw);
  background: var(--bg-2); border-right: 1px solid var(--line);
  transform: translateX(-102%); transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; padding: 22px; overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer__brand { font-family: var(--serif); font-size: 1.25rem; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 15px 6px; border-bottom: 1px solid var(--line); font-size: 1.05rem;
  color: var(--fg); transition: padding-left 0.3s var(--ease), color 0.3s;
}
.drawer__nav a:hover { padding-left: 14px; color: var(--accent); }
.drawer__nav a span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.drawer__foot { margin-top: auto; padding-top: 22px; }
.drawer__admin { display: block; text-align: center; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); font-size: 0.88rem; color: var(--fg-2); transition: border-color 0.25s, color 0.25s; }
.drawer__admin:hover { border-color: var(--accent); color: var(--fg); }
.drawer__muted { margin-top: 12px; text-align: center; font-family: var(--mono); font-size: 0.72rem; color: var(--fg-3); }

/* ---------- journal as links ---------- */
a.journal__row { color: inherit; cursor: pointer; }
.journal__row:hover .journal__body h3 { color: var(--accent); }

/* ---------- vote ---------- */
.vote__q { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 8px; }
.vote__text { font-size: 0.94rem; color: var(--fg-2); margin-bottom: 22px; max-width: 44ch; }

/* ---------- guilds ---------- */
.guilds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guild { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); transition: border-color 0.35s, transform 0.35s var(--ease); }
.guild:hover { border-color: var(--line-2); transform: translateY(-3px); }
.guild__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.guild__badge { width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.5rem; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--shade); }
.guild__name { font-family: var(--serif); font-size: 1.25rem; }
.guild__tagline { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.guild__desc { font-size: 0.92rem; color: var(--fg-2); margin-bottom: 16px; }
.guild__foot { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--fg-3); border-top: 1px solid var(--line); padding-top: 12px; }
.guildnews { margin-top: 44px; }
.guildnews__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.guildnews__head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }

/* ---------- status card ---------- */
.status-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); padding: 26px; }
.status-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.status-card__body { display: flex; gap: 20px; align-items: center; }
.status-card__icon { width: 64px; height: 64px; border-radius: var(--r); border: 1px solid var(--line-2); image-rendering: pixelated; }
.status-card__info { min-width: 0; flex: 1; }
.motd { font-size: 1.05rem; margin-bottom: 16px; white-space: pre-line; }
.status-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.status-stats .cell b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--fg); }
.status-stats .cell span { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.status-card__players { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.player-chip { font-family: var(--mono); font-size: 0.76rem; padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); }
.status-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.status-card__foot .btn { padding: 9px 16px; font-size: 0.82rem; }
.state--idle { color: var(--fg-3); }

.other { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.other > summary { cursor: pointer; padding: 16px 20px; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--fg-2); list-style: none; }
.other > summary::-webkit-details-marker { display: none; }
.other > summary::after { content: "+"; float: right; color: var(--accent); }
.other[open] > summary::after { content: "–"; }
.other > .panel__form { margin: 4px 20px 16px; }
.other > .panel__result { margin: 0 20px 20px; }

/* ---------- article page ---------- */
.post-page { max-width: 720px; }
.post-page__back { color: var(--fg-3); }
.post-page__back:hover { color: var(--accent); }
.post-page__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.12; margin: 10px 0 14px; }
.post-page__meta { color: var(--fg-3); padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.post-page__content p { color: var(--fg-2); font-size: 1.02rem; line-height: 1.9; margin-bottom: 20px; }
.article a { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split__aside { position: static; }
  .aside__note { max-width: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .interact { grid-template-columns: 1fr; }
  .guilds { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot--wide { grid-column: span 2; }
  .ticker { grid-template-columns: repeat(2, 1fr); }
  .ticker__item:nth-child(odd) { border-left: 0; padding-left: 4px; }
  .ticker__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 40px); }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; gap: 2px;
    padding: 16px 20px 24px; background: var(--nav-menu); border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform 0.4s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 12px; font-size: 1rem; }
  .nav__group { display: none; }
  .nav__links { margin-left: 0; }
  .status-card__body { flex-direction: column; align-items: flex-start; }

  .facts, .team, .gallery { grid-template-columns: 1fr; }
  .shot--wide, .shot--tall { grid-column: auto; grid-row: auto; }
  .gallery { grid-auto-rows: 210px; }
  .journal__row { grid-template-columns: 1fr; gap: 8px; }
  .journal__tag { justify-self: start; }
  .news__item { grid-template-columns: 1fr; gap: 8px; }
  .panel__form { flex-direction: column; }
  .res__grid { grid-template-columns: 1fr; }
  .qq { flex-direction: column; gap: 8px; }
  .to-top { right: 16px; bottom: 16px; }
}
