:root {
  color-scheme: dark;
  --ink: #0a1115;
  --ink-soft: #111b20;
  --panel: #121e23;
  --line: rgba(209, 195, 160, .13);
  --paper: #e8e4d8;
  --muted: #8e9b97;
  --jade: #9dc9ac;
  --jade-strong: #70ac87;
  --gold: #c4a878;
  --red: #d77867;
  --mono: "DM Mono", Consolas, monospace;
  --sans: Manrope, "Segoe UI", Arial, sans-serif;
  --serif: "Noto Serif SC", "Yu Mincho", "Noto Serif", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.language-switch { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); cursor: pointer; font: 10px var(--mono); }
.language-switch img { display: block; width: 24px; height: 16px; border-radius: 2px; object-fit: cover; }
.language-switch:hover { border-color: var(--gold); }
.language-switch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Support shares the site's jade palette, with a contained conversation layout. */
.support-entry { border: 0; padding: 0; background: none; color: var(--jade); font-size: 12px; cursor: pointer; }
.support-badge { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 12px; background: var(--jade); color: var(--ink); font-size: 11px; }
.support-notification-button { position: relative; font-size: 15px; }
.support-notification-button .support-badge { position: absolute; top: -7px; right: -9px; font-size: 9px; }
.support-dialog { width: min(1120px, calc(100% - 32px)); max-height: 90dvh; padding: 28px; border: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); overflow-y: auto; overscroll-behavior: contain; }
.support-dialog::backdrop { background: rgba(3, 10, 13, .86); }
.support-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.support-dialog h2 { margin: 8px 0; font: 30px var(--serif); }
.support-intro, .support-meta, .support-file-summary { color: var(--muted); line-height: 1.7; }
.support-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0 12px; }
.support-filters label { flex: 1 1 140px; min-width: 0; }
.support-layout { display: grid; grid-template-columns: minmax(210px, .7fr) minmax(0, 1.5fr); gap: 24px; align-items: start; }
.support-ticket-list { display: grid; gap: 8px; max-height: 600px; overflow-y: auto; }
.support-ticket, .support-notification { width: 100%; padding: 15px; border: 1px solid var(--line); background: var(--panel); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.support-ticket:hover, .support-notification:hover { border-color: var(--jade); }
.support-ticket strong, .support-ticket span, .support-ticket small { display: block; }
.support-ticket span, .support-ticket small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-detail { min-width: 0; border: 1px solid var(--line); padding: 20px; overflow-wrap: anywhere; }
.support-detail h3 { margin-top: 0; }
.support-composer { display: grid; gap: 13px; }
.support-composer label, .support-filters label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.support-composer input, .support-composer textarea, .support-composer select, .support-filters input, .support-filters select { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); border-radius: 0; }
.support-composer input[type="file"] { white-space: normal; }
.support-composer small { line-height: 1.7; }
.support-messages { display: grid; gap: 12px; margin-bottom: 24px; }
.support-message { padding: 16px; background: var(--ink); border-left: 2px solid var(--line); min-width: 0; }
.support-message-admin { border-left-color: var(--jade); }
.support-message small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.support-message-body { white-space: pre-wrap; line-height: 1.8; }
.support-attachments { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.support-attachment { margin: 0; min-width: 0; }
.support-attachment img, .support-attachment video { display: block; width: 100%; max-height: 320px; object-fit: contain; background: #000; }
.support-attachment a { display: block; margin-top: 8px; color: var(--jade); font-size: 11px; overflow-wrap: anywhere; }
.support-notification-list { display: grid; gap: 8px; margin-bottom: 12px; }
.support-notification-row { display: flex; gap: 8px; }
.support-notification-row .support-notification { flex: 1; }
.support-dialog :focus-visible, #admin-view-support :focus-visible, .support-entry:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.support-dialog button:disabled, #admin-view-support button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 760px) {
  .support-dialog { width: calc(100% - 16px); padding: 16px; max-height: 95dvh; }
  .support-layout { grid-template-columns: 1fr; gap: 16px; }
  .support-ticket-list { max-height: 250px; }
  .support-detail { padding: 14px; }
  .support-dialog-heading { align-items: start; }
  .support-dialog-heading .button { padding: 10px; }
  .main-nav .support-entry { text-align: left; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-dialog *, #admin-view-support * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 420px) {
  .topbar .brand-copy { display: none; }
  .topbar .top-actions { margin-left: auto; }
  .topbar #login-entry { max-width: 110px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .support-notification-row { flex-direction: column; }
}
@media (min-width: 701px) and (max-width: 1350px) {
  .topbar .main-nav { gap: 20px; margin-right: 24px; }
  .topbar .brand-copy { display: none; }
}
@media (max-width: 360px) {
  .topbar .language-switch { padding: 6px; }
  .topbar .language-switch span { display: none; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .topbar .main-nav { gap: 14px; margin-right: 20px; }
  .topbar .brand-copy { display: none; }
}

@keyframes jianghu-arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes jianghu-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: jianghu-arrive .65s ease-out both; }
  .hero-caption { animation: jianghu-drift 6s ease-in-out infinite alternate; }
  .modal-backdrop:not([hidden]) .modal, .admin-view.active { animation: jianghu-arrive .24s ease-out both; }
  .button:hover { transform: translateY(-2px); }
  .button:active { transform: translateY(0); }
}
.ambient { position: fixed; z-index: -1; width: 560px; height: 560px; border-radius: 50%; filter: blur(130px); opacity: .08; pointer-events: none; }
.ambient-one { top: -240px; left: 18%; background: #527f6a; }
.ambient-two { top: 35%; right: -390px; background: #b28b4f; opacity: .045; }

.topbar { height: 82px; padding: 0 7.3%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 5; background: rgba(10,17,21,.85); backdrop-filter: blur(14px); }
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand-seal { width: 38px; height: 38px; border: 1px solid rgba(196,168,120,.58); display: grid; place-items: center; color: var(--gold); font: 600 21px var(--serif); transform: rotate(45deg); }
.brand-seal::first-letter { transform: rotate(-45deg); }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { font-size: 11px; letter-spacing: .15em; font-weight: 800; }
.brand-copy strong i { color: var(--gold); font-style: normal; font-size: 9px; }
.brand-copy small { color: #74817e; font: 8px var(--mono); letter-spacing: .14em; }
.main-nav { display: flex; gap: 36px; margin-left: auto; margin-right: 55px; }
.main-nav a { color: #a9b2ad; font-size: 12px; letter-spacing: .04em; transition: color .2s ease; }
.main-nav a:hover { color: var(--jade); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--jade); background: transparent; cursor: pointer; font-size: 18px; }
.button { border: 1px solid transparent; padding: 12px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; cursor: pointer; transition: .2s ease; font-size: 11px; font-weight: 700; letter-spacing: .035em; }
.button span:not(.i18n-text) { font-size: 16px; }
.button-outline { border-color: var(--line); color: #c1c6bf; background: transparent; }
.button-outline:hover { border-color: var(--gold); color: var(--gold); }
.button-light { background: var(--paper); color: #14201e; }
.button-light:hover { background: #fffdf6; transform: translateY(-1px); }
.button-jade { border-color: var(--jade); background: var(--jade); color: #0c1914; }
.button-jade:hover { background: #b2d8be; border-color: #b2d8be; box-shadow: 0 8px 26px rgba(112,172,135,.15); transform: translateY(-1px); }
.button-danger { border-color: rgba(215,120,103,.42); color: #e49a88; background: rgba(215,120,103,.08); }
.button-danger:hover { background: rgba(215,120,103,.16); }
.button-wide { width: 100%; }
.menu-toggle { display: none; border-radius: 0; font-size: 16px; }

.hero { position: relative; min-height: 570px; padding: 95px 7.3% 78px; overflow: hidden; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; pointer-events: none; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media img { opacity: .5; }
.hero-media video { opacity: 0; }
.hero-media.is-playing img { opacity: 0; }
.hero-media.is-playing video { opacity: .5; }
.hero-video-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,17,21,.66), rgba(10,17,21,.22) 53%, rgba(10,17,21,.04)); }
.hero-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(196,168,120,.17) 1px, transparent 1px), linear-gradient(90deg, rgba(196,168,120,.12) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 60%); }
.hero-copy { position: relative; z-index: 2; width: min(590px, 53%); }
.eyebrow { color: var(--gold); font: 10px var(--mono); letter-spacing: .14em; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 27px; height: 1px; margin-right: 9px; background: var(--gold); }
.hero h1 { margin: 24px 0 18px; font: 500 clamp(46px, 6vw, 72px)/1.12 var(--serif); letter-spacing: -.055em; }
h1 em, h2 em { color: var(--jade); font-weight: 500; font-style: normal; }
.hero-lede { color: #a5b0aa; font-size: 14px; line-height: 1.9; }
.hero-buttons { display: flex; align-items: center; gap: 26px; margin-top: 32px; }
.text-link { color: #b4beb8; font-size: 11px; }
.text-link span:not(.i18n-text) { padding-left: 8px; color: var(--gold); }
.hero-footnote { margin-top: 52px; display: flex; align-items: center; gap: 9px; color: #76827e; font: 9px var(--mono); letter-spacing: .11em; }
.pulse-dot, .status-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #b77c58; }
.pulse-dot { background: var(--jade-strong); box-shadow: 0 0 11px rgba(112,172,135,.75); }
.status-dot.online { background: #80c799; box-shadow: 0 0 10px rgba(128,199,153,.65); }
.status-dot.offline { background: #c97965; }
.status-dot.unknown { background: #bca475; }
.hero-art { position: absolute; width: 53%; height: 100%; top: 0; right: 0; overflow: hidden; background: radial-gradient(ellipse at 63% 47%, rgba(84,127,116,.19), transparent 49%), linear-gradient(100deg, #0a1115 0%, rgba(10,17,21,.25) 35%, transparent 100%); }
.moon { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(216,200,163,.45); border-radius: 50%; background: radial-gradient(circle at 44% 42%, rgba(215,204,173,.14), rgba(169,158,129,.045) 58%, transparent 72%); right: 23%; top: 75px; box-shadow: 0 0 80px rgba(198,176,132,.12), inset 0 0 30px rgba(218,201,163,.07); }
.mountain { position: absolute; bottom: 0; width: 110%; left: -3%; clip-path: polygon(0 100%, 0 83%, 13% 64%, 21% 72%, 35% 36%, 45% 58%, 57% 20%, 67% 55%, 76% 34%, 86% 61%, 94% 48%, 100% 68%, 100% 100%); }
.mountain-back { height: 74%; background: linear-gradient(135deg, rgba(83,111,102,.14), rgba(41,63,61,.38)); clip-path: polygon(0 100%, 0 76%, 11% 60%, 20% 67%, 37% 30%, 43% 46%, 60% 10%, 70% 44%, 78% 27%, 89% 56%, 100% 42%, 100% 100%); }
.mountain-mid { height: 59%; background: linear-gradient(142deg, rgba(70,98,87,.43), rgba(24,44,43,.86)); clip-path: polygon(0 100%, 0 67%, 14% 48%, 23% 68%, 41% 22%, 50% 45%, 66% 8%, 77% 43%, 84% 31%, 100% 59%, 100% 100%); }
.mountain-front { height: 41%; background: linear-gradient(20deg, #0d191b, #203a36 60%, #162a29); clip-path: polygon(0 100%, 0 70%, 13% 45%, 22% 64%, 33% 34%, 43% 62%, 54% 26%, 68% 63%, 79% 36%, 87% 59%, 100% 45%, 100% 100%); }
.mist { position: absolute; height: 1px; width: 65%; right: 3%; border-radius: 50%; background: rgba(189,204,186,.46); filter: blur(12px); transform: rotate(-7deg); }
.mist-a { bottom: 29%; }
.mist-b { bottom: 39%; width: 42%; right: 9%; opacity: .47; }
.ridge { position: absolute; right: 28%; bottom: 26%; width: 92px; height: 85px; border-bottom: 1px solid rgba(198,183,146,.62); }
.ridge::before { content: ""; position: absolute; left: 45px; top: 12px; width: 1px; height: 72px; background: rgba(198,183,146,.62); }
.ridge span { position: absolute; top: 31px; left: 24px; width: 44px; height: 1px; background: rgba(198,183,146,.6); }
.ridge span::after { content: ""; position: absolute; top: -19px; left: 9px; width: 27px; height: 1px; background: rgba(198,183,146,.48); }
.hero-caption { position: absolute; right: 12%; bottom: 14%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-caption span { color: rgba(233,225,199,.72); font: 46px var(--serif); }
.hero-caption small, .art-coordinate { color: rgba(201,193,166,.52); font: 8px var(--mono); letter-spacing: .14em; }
.art-coordinate { position: absolute; right: 7%; top: 18%; line-height: 1.7; }
.hero-index { position: absolute; bottom: 25px; right: 7.3%; color: #73807a; font: 9px var(--mono); }
.hero-index span { color: var(--gold); }

.ticker { min-height: 69px; padding: 0 7.3%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 32px; background: rgba(18,30,35,.6); }
.ticker-item { display: flex; align-items: center; gap: 10px; }
.ticker-item strong { font-size: 10px; font-weight: 600; color: #bdc5be; }
.ticker-label { color: #75827e; font: 8px var(--mono); letter-spacing: .08em; }
.ticker-divider { height: 22px; border-left: 1px solid var(--line); }
.ticker-spacer { flex: 1; }
.ticker-note { color: #66736f; font: 9px var(--mono); letter-spacing: .06em; }
.section { padding: 92px 7.3%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 31px; }
.section-heading h2, .realm-copy h2, .modal h2 { margin: 10px 0 0; font: 500 39px/1.2 var(--serif); letter-spacing: -.045em; }
.section-heading > p { max-width: 360px; margin: 0 0 5px; color: var(--muted); line-height: 1.8; font-size: 12px; }
.world-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.world-card { min-height: 245px; position: relative; overflow: hidden; padding: 27px 26px; border: 1px solid var(--line); background: linear-gradient(148deg, rgba(29,48,50,.72), rgba(16,26,30,.89)); }
.world-card::before { content: ""; position: absolute; width: 240px; height: 240px; right: -65px; bottom: -125px; border: 1px solid rgba(198,171,120,.13); border-radius: 50%; box-shadow: 0 0 0 27px rgba(198,171,120,.025), 0 0 0 54px rgba(198,171,120,.02); }
.card-craft { background: linear-gradient(152deg, rgba(44,55,49,.68), rgba(16,26,30,.92)); }
.card-people { background: linear-gradient(152deg, rgba(47,45,38,.68), rgba(16,26,30,.92)); }
.card-number { color: #8b9690; font: 9px var(--mono); }
.card-symbol { position: absolute; top: 21px; right: 27px; color: rgba(206,184,138,.44); font: 38px var(--serif); }
.world-card h3 { margin: 43px 0 9px; font: 500 19px var(--serif); }
.world-card p { color: #96a39d; font-size: 11px; }
.card-rule { display: block; width: 27px; height: 1px; margin: 20px 0 11px; background: var(--gold); }
.card-meta { color: #75817c; font: 8px var(--mono); letter-spacing: .07em; }
.chronicle-section { padding-top: 25px; }
.section-aside { padding-bottom: 7px; color: #75817c; font: 8px var(--mono); letter-spacing: .1em; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.news-card { min-height: 185px; padding: 22px 23px; border: 1px solid var(--line); background: rgba(17,29,34,.72); display: flex; flex-direction: column; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; color: #75817c; font: 8px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.news-category { color: var(--jade); }
.news-card h3 { margin: 20px 0 8px; font: 500 17px var(--serif); }
.news-card p { margin: 0; color: #96a39d; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.news-read { align-self: flex-start; margin-top: auto; padding: 20px 0 0; border: 0; background: none; color: var(--gold); font-size: 10px; cursor: pointer; }
.news-read:hover { color: var(--jade); }
.news-read:focus-visible { outline: 2px solid var(--jade); outline-offset: 5px; }
.news-reader { width: min(100%, 760px); overflow-wrap: anywhere; }
.news-reader .news-meta { padding-right: 22px; }
.news-reader h2 { margin-top: 24px; }
.news-reader-summary { color: var(--jade); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.news-reader-content { color: var(--paper); font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.empty-state { padding: 25px; color: #86948f; font-size: 12px; text-align: center; }
.news-grid .empty-state { grid-column: 1 / -1; border: 1px solid var(--line); }
.client-section { padding-top: 40px; }
.client-panel { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .75fr); border: 1px solid var(--line); background: linear-gradient(125deg, rgba(20,35,38,.96), rgba(13,23,27,.94)); }
.client-panel-copy { padding: 34px 38px; }
.client-status { display: flex; align-items: center; gap: 8px; color: var(--jade); font: 8px var(--mono); letter-spacing: .1em; }
.client-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--jade-strong); box-shadow: 0 0 10px rgba(112,172,135,.6); }
.client-panel-copy h3 { margin: 25px 0 13px; font: 500 31px/1.3 var(--serif); }
.client-panel-copy > p { max-width: 500px; margin: 0; color: #96a39d; font-size: 11px; line-height: 1.8; }
.client-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 29px; }
.client-meta span { color: #75817c; font: 8px var(--mono); letter-spacing: .08em; }
.client-meta strong { display: block; margin-top: 8px; color: #c2cbc4; font: 10px var(--sans); letter-spacing: 0; }
.client-download { padding: 29px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 13px; }
.client-seal { width: 42px; height: 42px; border: 1px solid rgba(196,168,120,.5); display: grid; place-items: center; color: var(--gold); font: 23px var(--serif); }
.client-download > strong { font: 500 17px var(--serif); }
.client-download > span, .client-download > small { color: #83918a; font-size: 9px; line-height: 1.7; }
.client-download .button { margin-top: 4px; }
.client-download a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.client-download > small { min-height: 16px; }
.realm-section { min-height: 355px; padding: 64px 10%; position: relative; overflow: hidden; background: linear-gradient(100deg, #182824, #101c20 75%); display: flex; justify-content: space-between; align-items: center; gap: 50px; }
.realm-pattern { position: absolute; inset: 0; opacity: .23; background: radial-gradient(ellipse at 19% 75%, transparent 0 70px, rgba(196,168,120,.15) 71px, transparent 72px), radial-gradient(ellipse at 25% 80%, transparent 0 120px, rgba(196,168,120,.1) 121px, transparent 122px), linear-gradient(110deg, transparent 45%, rgba(138,173,149,.08) 45.1%, transparent 45.4%); }
.realm-copy, .realm-status { position: relative; }
.realm-copy h2 { font-size: 45px; margin: 14px 0 12px; }
.realm-copy p { margin: 0 0 24px; max-width: 330px; color: #9ba8a1; font-size: 12px; line-height: 1.7; }
.realm-status { width: min(400px, 48%); padding: 20px 23px; border: 1px solid rgba(210,200,171,.2); background: rgba(9,17,19,.4); }
.realm-status-head { margin-bottom: 14px; color: var(--gold); font: 9px var(--mono); letter-spacing: .11em; display: flex; align-items: center; gap: 9px; }
.pulse-ring { width: 8px; height: 8px; border: 1px solid var(--jade); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 4px rgba(157,201,172,.08); }
.pulse-ring.offline { border-color: var(--red); box-shadow: 0 0 0 4px rgba(215,120,103,.08); }
.realm-status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.realm-status-row span { color: #788680; font: 8px var(--mono); letter-spacing: .08em; }
.realm-status-row strong { color: #b7c1ba; font-size: 10px; font-weight: 600; }
.realm-status-row strong.online { color: var(--jade); }
.realm-status-row strong.offline { color: #d88976; }
.realm-endpoint strong { font: 9px var(--mono); color: #aab4ae; }
.endpoint-redacted { filter: blur(5px); user-select: none; -webkit-user-select: none; }
.realm-last-check { padding-top: 13px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: #6d7a74; font: 8px var(--mono); }
.realm-last-check span { color: #9ba69f; }
.footer { min-height: 100px; padding: 25px 7.3%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand .brand-seal { width: 31px; height: 31px; font-size: 17px; }
.footer-brand .brand-copy strong { font-size: 9px; }
.footer-brand .brand-copy small { font-size: 7px; }
.footer p { color: #707c77; font-size: 10px; }
.footer-legal { color: #616d67; font: 8px var(--mono); letter-spacing: .09em; }
.footer-imprint { color: #707c77; font: 9px var(--mono); letter-spacing: .04em; }
.footer-imprint:hover { color: var(--paper); }
.footer-imprint:focus-visible { outline: 1px solid var(--jade); outline-offset: 4px; }
.imprint-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.imprint-card { width: min(100%, 620px); padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18,30,35,.96), rgba(10,17,21,.96)); }
.imprint-card h1 { margin: 0 0 32px; font: 500 clamp(32px, 6vw, 46px)/1.2 var(--serif); }
.imprint-card h2 { margin: 28px 0 12px; color: var(--gold); font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.imprint-card p { margin: 0; color: #bac3bc; font-size: 14px; line-height: 1.9; }
.imprint-card a { color: var(--jade); text-decoration: underline; text-underline-offset: 3px; }
.imprint-back { display: inline-block; margin-bottom: 30px; color: var(--muted); font: 10px var(--mono); }
.imprint-back:hover { color: var(--paper); }

.modal-backdrop { position: fixed; z-index: 20; inset: 0; padding: 20px; background: rgba(3,8,10,.79); backdrop-filter: blur(8px); display: grid; place-items: center; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(100%, 445px); max-height: min(92vh, 760px); overflow: auto; padding: 38px; border: 1px solid rgba(196,168,120,.28); background: linear-gradient(150deg, #142126, #0d171b); box-shadow: 0 26px 90px rgba(0,0,0,.4); }
.modal-close { position: absolute; right: 17px; top: 14px; border: 0; background: none; color: #96a39d; font-size: 25px; cursor: pointer; }
.modal h2 { margin: 12px 0 25px; font-size: 30px; }
.auth-tabs { display: flex; gap: 22px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.auth-tab { padding: 11px 1px; border: 0; border-bottom: 1px solid transparent; background: none; color: #81908a; cursor: pointer; font-size: 11px; }
.auth-tab.active { border-bottom-color: var(--jade); color: var(--jade); }
.modal label, .news-editor-card label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 17px; color: #aeb9b1; font-size: 10px; letter-spacing: .04em; }
.modal label input, .news-editor-card input:not([type=checkbox]), .news-editor-card textarea, .news-editor-card select { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid var(--line); outline: none; color: var(--paper); background: rgba(4,11,13,.44); font-size: 12px; }
.modal label input:focus, .news-editor-card input:focus, .news-editor-card textarea:focus, .news-editor-card select:focus { border-color: rgba(157,201,172,.65); }
.modal label input::placeholder, .news-editor-card input::placeholder, .news-editor-card textarea::placeholder { color: #61706a; }
.optional { color: #728078; font-weight: 400; }
.modal-footnote { margin: 17px 0 0; color: #718078; font-size: 9px; line-height: 1.7; }
.form-message { min-height: 17px; margin: -4px 0 10px; color: #e19782; font-size: 10px; }
.form-message.success { color: var(--jade); }
.account-profile { display: flex; align-items: center; gap: 14px; margin: 19px 0; padding: 17px; background: rgba(157,201,172,.06); border: 1px solid var(--line); }
.account-seal { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: 21px var(--serif); }
.account-profile strong { display: block; margin-bottom: 5px; }
.account-profile small { color: #83908a; font: 9px var(--mono); }
.character-list { margin: 18px 0 20px; }
.character-item { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.character-item strong { font: 15px var(--serif); }
.character-item span { color: #91a098; font: 9px var(--mono); }
.character-heading { margin: 21px 0 10px; color: var(--gold); font: 9px var(--mono); letter-spacing: .1em; }
.donation-section { margin-top: 21px; padding-top: 5px; border-top: 1px solid var(--line); }
.donation-info { margin: 0 0 15px; color: #8f9c95; font-size: 10px; line-height: 1.7; white-space: pre-line; }
.donation-rate { margin: -7px 0 12px; color: #78867f; font-size: 9px; }
.donation-history-row { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.donation-history-row > span { color: #c1cbc3; }
.donation-history-row > strong { color: var(--gold); font-size: 9px; font-weight: 600; }
.donation-history-row > small { grid-column: 1 / -1; color: #78857e; font: 8px var(--mono); }

.admin-shell { position: fixed; z-index: 15; inset: 0; display: grid; grid-template-columns: 248px 1fr; background: #0b1216; overflow: hidden; }
.admin-shell[hidden] { display: none; }
.admin-sidebar { display: flex; flex-direction: column; padding: 23px 16px 15px; border-right: 1px solid var(--line); background: #0d171b; }
.admin-brand { padding: 0 10px 23px; border-bottom: 1px solid var(--line); }
.admin-brand .brand-seal { width: 32px; height: 32px; font-size: 17px; }
.admin-brand .brand-copy strong { font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
.admin-brand { flex-shrink: 0; }
.admin-user { display: flex; align-items: center; gap: 10px; padding: 20px 9px; border-bottom: 1px solid var(--line); }
.admin-avatar { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid rgba(196,168,120,.43); background: rgba(196,168,120,.08); color: var(--gold); font: 16px var(--serif); }
.admin-user strong, .admin-user small { display: block; }
.admin-user strong { font-size: 10px; }
.admin-user small { margin-top: 5px; color: #75827c; font: 7px var(--mono); letter-spacing: .08em; }
.admin-access-form { margin-top: 20px; }
.admin-access-form label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 15px; color: #aeb9b1; font-size: 10px; }
.admin-access-form input { width: 100%; min-height: 42px; padding: 11px 12px; border: 1px solid var(--line); outline: none; color: var(--paper); background: rgba(4,11,13,.44); font-size: 12px; }
.admin-access-form input:focus { border-color: rgba(157,201,172,.65); }
.admin-access-list { margin-top: 15px; }
.admin-access-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-access-row:last-child { border-bottom: 0; }
.admin-access-row strong, .admin-access-row small { display: block; }
.admin-access-row strong { color: var(--jade); font-size: 11px; }
.admin-access-row small { margin-top: 5px; color: #78857f; font: 8px var(--mono); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; }
.admin-nav-label { margin: 0 9px 8px; color: #697670; font: 8px var(--mono); letter-spacing: .11em; }
.admin-nav-label-bottom { margin-top: 25px; }
.admin-nav-item { width: 100%; padding: 11px 10px; border: 1px solid transparent; display: flex; align-items: center; gap: 11px; background: transparent; color: #9aa69f; text-align: left; cursor: pointer; font-size: 10px; }
.admin-nav-item > span:not(.i18n-text) { width: 17px; color: #82988a; font-size: 15px; text-align: center; }
.admin-nav-item:hover { color: var(--paper); background: rgba(255,255,255,.025); }
.admin-nav-item.active { border-color: rgba(157,201,172,.11); background: rgba(157,201,172,.08); color: var(--jade); }
.sidebar-bottom { margin-top: auto; padding: 14px 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 7px; color: #77837d; font: 8px var(--mono); }
.sidebar-bottom strong { margin-left: auto; color: var(--jade); font-weight: 500; }
.admin-exit { margin-top: 8px; padding: 11px 10px; border: 0; background: none; color: #88948e; text-align: left; cursor: pointer; font-size: 10px; }
.admin-exit:hover { color: var(--jade); }
.admin-main { overflow: auto; padding: 30px 4.4% 45px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.admin-topbar h1 { margin: 6px 0 0; font: 500 25px var(--serif); }
.admin-top-meta { display: flex; align-items: center; gap: 17px; color: #77837d; font: 8px var(--mono); }
.admin-shield { color: var(--jade); }
.admin-view { display: none; padding-top: 22px; }
.admin-view.active { display: block; }
.gm-layout { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.8fr); gap: 13px; align-items: start; }
.gm-layout, .gm-tools, .gm-tool-card, .gm-session-card { min-width: 0; }
.gm-session-card { position: sticky; top: 16px; }
.gm-session-card > label, .gm-form-grid label, .gm-register-form label { display: flex; flex-direction: column; gap: 7px; color: #aeb9b1; font-size: 10px; }
.gm-session-card > label { margin-top: 17px; }
.gm-session-card select, .gm-form-grid input, .gm-form-grid select, .gm-register-form input {
  width: 100%; min-width: 0; min-height: 39px; padding: 9px 10px; border: 1px solid var(--line); outline: none; color: var(--paper); background: rgba(4,11,13,.44); font-size: 11px;
}
.gm-session-card select:focus, .gm-form-grid input:focus, .gm-form-grid select:focus, .gm-register-form input:focus { border-color: rgba(157,201,172,.65); }
.gm-session-card option, .gm-form-grid option { background: #142126; }
.gm-session-detail, .gm-command-status { margin-top: 12px; padding: 10px; border: 1px solid rgba(209,195,160,.08); color: #92a098; background: rgba(4,11,13,.35); font-size: 10px; line-height: 1.6; overflow-wrap: anywhere; }
.gm-command-status { min-height: 40px; color: var(--jade); }
.gm-register-form { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.gm-register-form .eyebrow { display: block; margin-bottom: 13px; }
.gm-register-form label { margin-bottom: 12px; }
.gm-register-form .button { margin-top: 2px; }
.gm-tools { display: grid; gap: 12px; }
.gm-tool-card { padding: 17px; }
.gm-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 10px; margin: 17px 0 12px; }
.gm-form-grid label { min-width: 0; }
.gm-form-grid .button { min-height: 39px; padding: 9px 11px; font-size: 9px; white-space: nowrap; }
.gm-form-grid .gm-full-width { grid-column: 1 / -1; }
.gm-form-grid.gm-three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gm-form-grid.gm-three-column label { grid-column: auto; }
.gm-button-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0; }
.gm-button-row .button { padding: 9px 11px; font-size: 9px; }
.gm-preset-group { margin-top: 16px; }
.gm-preset-group > strong { display: block; margin-bottom: 8px; color: #aeb9b1; font-size: 10px; font-weight: 600; }
.gm-preset-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-preset { min-height: 34px; padding: 7px 10px; border: 1px solid var(--line); color: #a9b5ad; background: transparent; cursor: pointer; font-size: 9px; }
.gm-preset:hover { border-color: var(--gold); color: var(--gold); }
.gm-item-results { max-height: 230px; overflow: auto; border: 1px solid var(--line); background: #0c1519; }
.gm-item-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 0; border-bottom: 1px solid var(--line); color: var(--paper); background: transparent; cursor: pointer; text-align: left; }
.gm-item-option:last-child { border-bottom: 0; }
.gm-item-option:hover { background: rgba(157,201,172,.07); }
.gm-item-option strong { overflow: hidden; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.gm-item-option small { flex: 0 0 auto; color: #829088; font: 8px var(--mono); }
.gm-item-results .empty-state { padding: 12px; font-size: 10px; }
.gm-command-status, .gm-session-detail { overflow-wrap: anywhere; }
.gm-tool-card [disabled], .gm-session-card [disabled] { opacity: .46; cursor: not-allowed; }
.gm-tool-card button:focus-visible, .gm-session-card button:focus-visible, .gm-preset:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.admin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.kpi-card, .admin-card { border: 1px solid var(--line); background: rgba(18,30,35,.7); }
.kpi-card { min-height: 103px; padding: 17px; }
.kpi-card > span { display: block; color: #819088; font: 8px var(--mono); letter-spacing: .1em; }
.kpi-card strong { display: block; margin: 8px 0 5px; font: 500 20px var(--serif); }
.kpi-card small { color: #73817a; font-size: 9px; }
.admin-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; margin-top: 13px; }
.admin-card { padding: 19px; }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-card-heading h2 { margin: 7px 0 0; font: 500 17px var(--serif); }
.live-pill, .secure-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(128,199,153,.18); color: var(--jade); font: 8px var(--mono); letter-spacing: .07em; }
.live-pill i, .console-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); display: inline-block; box-shadow: 0 0 7px rgba(128,199,153,.55); }
.server-control-card > p { margin: 13px 0 16px; color: #83918a; font-size: 10px; }
.mysql-control-card .button-row { margin-top: 21px; }
.server-control-status { display: grid; grid-template-columns: 17px 1fr; align-items: center; column-gap: 7px; margin: 15px 0; }
.server-control-status .pulse-ring { grid-row: span 2; }
.server-control-status strong { font-size: 11px; }
.server-control-status small { margin-top: 4px; color: #728078; font: 8px var(--mono); }
.button-row { display: flex; gap: 9px; }
.button-row .button { flex: 1; padding: 10px 11px; font-size: 9px; }
.quick-seal { color: rgba(196,168,120,.55); font: 36px var(--serif); }
.quick-link { width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 1px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.quick-link:last-child { border-bottom: 0; }
.quick-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--jade); font-size: 14px; }
.quick-link strong, .quick-link small { display: block; }
.quick-link strong { font-size: 10px; font-weight: 600; }
.quick-link small { margin-top: 4px; color: #78857f; font-size: 9px; }
.quick-link > b { margin-left: auto; color: var(--gold); font-size: 12px; font-weight: 400; }
.overview-console { margin-top: 12px; }
.subtle-button { padding: 7px 9px; border: 1px solid var(--line); background: transparent; color: #9ca8a1; cursor: pointer; font: 8px var(--mono); }
.subtle-button:hover { border-color: rgba(157,201,172,.45); color: var(--jade); }
.log-preview { max-height: 135px; overflow: hidden; margin: 15px 0 0; padding: 13px; border: 1px solid rgba(255,255,255,.045); background: #081013; color: #92ae9a; font: 9px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 4px 0 17px; }
.admin-toolbar h2 { margin: 7px 0 0; font: 500 23px var(--serif); }
.search-field { width: min(320px, 48%); min-height: 38px; padding: 0 10px; border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; color: #819088; }
.search-field input { flex: 1; width: 0; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: 10px; }
.search-field kbd { color: #63716b; font: 8px var(--mono); }
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 17px; border-bottom: 1px solid var(--line); color: #7d8b84; font: 8px var(--mono); letter-spacing: .1em; }
td { padding: 14px 17px; border-bottom: 1px solid rgba(209,195,160,.07); color: #c5ccc5; font-size: 10px; }
td:first-child { color: var(--jade); }
.table-action { padding: 6px 8px; border: 1px solid var(--line); background: transparent; color: #a5b7aa; cursor: pointer; font-size: 8px; white-space: nowrap; }
.table-action:hover { border-color: rgba(157,201,172,.48); color: var(--jade); }
.table-action + .table-action { margin-left: 5px; }
.table-foot { padding: 12px 17px; color: #76827c; font: 8px var(--mono); }
.admin-note { color: #78857f; font-size: 9px; line-height: 1.7; }
.gm-warning { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; padding: 13px 15px; border-left: 2px solid var(--gold); background: rgba(196,168,120,.055); }
.gm-warning strong { color: var(--gold); font-size: 10px; }
.gm-warning span { color: #8c9991; font-size: 9px; line-height: 1.6; }
.news-admin-grid { grid-template-columns: minmax(280px, .87fr) minmax(300px, 1.13fr); align-items: start; }
.news-editor-card form { margin-top: 18px; }
.news-editor-card textarea { resize: vertical; line-height: 1.6; }
.news-editor-card select option { background: #142126; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 15px; }
.check-label { flex-direction: row !important; align-items: center; gap: 9px !important; color: #95a29a !important; cursor: pointer; }
.check-label input { accent-color: var(--jade); }
.admin-news-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-news-item:last-child { border-bottom: 0; }
.admin-news-item h3 { margin: 0 0 5px; font: 500 13px var(--serif); }
.admin-news-item p { margin: 0; color: #7f8c85; font-size: 9px; line-height: 1.6; }
.admin-news-meta { display: flex; justify-content: space-between; color: #718078; font: 8px var(--mono); }
.admin-news-actions { display: flex; gap: 6px; margin-top: 9px; }
.admin-news-actions button { padding: 5px 8px; border: 1px solid var(--line); background: none; color: #a6b0a9; cursor: pointer; font-size: 8px; }
.admin-news-actions button:hover { border-color: var(--jade); color: var(--jade); }
.console-card { padding: 0; overflow: hidden; }
.console-top, .console-foot { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid var(--line); color: #87948d; font: 8px var(--mono); }
.console-top > span:first-child { display: flex; align-items: center; gap: 8px; color: var(--jade); }
.console-output { min-height: min(57vh, 580px); max-height: min(57vh, 580px); overflow: auto; margin: 0; padding: 16px; color: #9fb3a1; background: #080e10; font: 9px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.console-foot { border-top: 1px solid var(--line); border-bottom: 0; }
.toast-region { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { max-width: min(360px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid rgba(157,201,172,.3); background: #14251e; color: var(--jade); box-shadow: 0 8px 30px rgba(0,0,0,.3); font-size: 10px; animation: toast-in .2s ease-out; }
.toast.error { border-color: rgba(215,120,103,.35); background: #2a1b19; color: #e39885; }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1450px) { .hero { min-height: 640px; } }
@media (max-width: 960px) {
  .topbar { padding: 0 4%; }
  .main-nav { gap: 20px; margin-right: 25px; }
  .hero { padding-left: 5%; }
  .ticker, .section { padding-left: 5%; padding-right: 5%; }
  .world-cards, .news-grid { gap: 9px; }
  .world-card { padding: 22px 18px; }
  .realm-section { padding-left: 7%; padding-right: 7%; }
  .admin-shell { grid-template-columns: 215px 1fr; }
  .admin-main { padding: 25px 3%; }
  .gm-layout { grid-template-columns: minmax(220px, .8fr) minmax(0, 1.5fr); }
}
@media (max-width: 700px) {
  .topbar { height: 68px; padding: 0 5%; }
  .brand-seal { width: 32px; height: 32px; font-size: 17px; }
  .brand-copy strong { font-size: 9px; }
  .brand-copy small { font-size: 7px; }
  .main-nav { display: none; position: absolute; top: 67px; left: 0; right: 0; padding: 17px 5%; border-bottom: 1px solid var(--line); background: #0d171b; flex-direction: column; gap: 17px; }
  .main-nav.open { display: flex; }
  .top-actions { gap: 7px; }
  .top-actions > .button { padding: 10px 9px; font-size: 9px; }
  .top-actions > .button-outline { display: none; }
  .icon-button { width: 32px; height: 32px; font-size: 15px; }
  .menu-toggle { width: 32px; height: 32px; display: inline-grid; place-items: center; }
  .hero { min-height: 625px; padding: 83px 6% 75px; align-items: start; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(47px, 13vw, 65px); }
  .hero-lede { font-size: 12px; }
  .hero-art { width: 100%; height: 58%; top: auto; opacity: .68; mask-image: linear-gradient(to bottom, transparent 0%, black 38%); }
  .moon { width: 135px; height: 135px; top: 34px; right: 22%; }
  .hero-caption { bottom: 11%; right: 10%; }
  .hero-caption span { font-size: 35px; }
  .hero-footnote { margin-top: 34px; font-size: 8px; }
  .hero-index { bottom: 15px; right: 6%; }
  .ticker { padding: 14px 6%; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
  .ticker-item { gap: 7px; }
  .ticker-label { font-size: 7px; }
  .ticker-item strong { font-size: 9px; }
  .ticker-divider, .ticker-spacer, .ticker-note { display: none; }
  .section { padding: 63px 6%; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading > p { font-size: 11px; }
  .world-cards, .news-grid { grid-template-columns: 1fr; gap: 9px; }
  .world-card { min-height: 212px; }
  .chronicle-section { padding-top: 4px; }
  .section-aside { font-size: 7px; }
  .client-panel { grid-template-columns: 1fr; }
  .client-panel-copy { padding: 25px 22px; }
  .client-panel-copy h3 { font-size: 27px; }
  .client-download { padding: 23px 22px; border-top: 1px solid var(--line); border-left: 0; }
  .client-meta { gap: 18px; }
  .news-card { min-height: 165px; }
  .realm-section { padding: 49px 7%; align-items: start; flex-direction: column; gap: 28px; }
  .realm-copy h2 { font-size: 39px; }
  .realm-status { width: 100%; }
  .footer { padding: 25px 6%; flex-wrap: wrap; }
  .footer p { order: 2; width: 100%; margin: 0; }
  .footer-legal { font-size: 7px; }
  .modal { padding: 31px 24px; }
  .admin-shell { grid-template-columns: 1fr; overflow: auto; }
  .admin-sidebar { position: sticky; z-index: 2; top: 0; height: auto; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; align-items: center; overflow-x: auto; }
  .admin-brand { min-width: 155px; padding: 0 8px 0 0; border: 0; }
  .admin-brand .brand-seal { width: 27px; height: 27px; font-size: 14px; }
  .admin-brand .brand-copy small { font-size: 6px; }
  .admin-user, .admin-nav-label, .sidebar-bottom, .admin-exit { display: none; }
  .admin-nav-item[hidden] { display: none; }
  .admin-nav { padding: 0; flex-direction: row; gap: 4px; }
  .admin-nav-item { width: auto; padding: 9px 8px; white-space: nowrap; font-size: 8px; gap: 5px; }
  .admin-nav-item > span:not(.i18n-text) { width: auto; font-size: 12px; }
  .admin-main { overflow: visible; padding: 19px 4% 45px; }
  .admin-topbar { padding-bottom: 15px; }
  .admin-topbar h1 { font-size: 21px; }
  .admin-top-meta { flex-direction: column; align-items: end; gap: 6px; font-size: 7px; }
  .admin-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi-card { padding: 12px; min-height: 92px; }
  .kpi-card > span { font-size: 7px; }
  .kpi-card strong { font-size: 17px; }
  .admin-grid, .news-admin-grid { grid-template-columns: 1fr; }
  .admin-toolbar { align-items: start; flex-direction: column; gap: 13px; }
  .admin-toolbar h2 { font-size: 20px; }
  .search-field { width: 100%; }
  .gm-layout { grid-template-columns: 1fr; }
  .gm-session-card { position: static; }
  .gm-form-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 8px; }
  .gm-form-grid .button { white-space: normal; }
  .gm-tool-card { padding: 14px; }
  .gm-preset { min-height: 38px; }
  .gm-button-row .button { flex: 1 1 145px; }
  .secure-badge { font-size: 7px; }
  .console-output { min-height: 54vh; max-height: 54vh; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand-copy strong { font-size: 8px; }
  .brand-copy small { font-size: 6px; }
  .top-actions { gap: 5px; }
  .top-actions > .button { padding: 9px 7px; font-size: 8px; }
  .gm-form-grid { grid-template-columns: 1fr; }
  .gm-form-grid .gm-full-width { grid-column: 1; }
  .gm-form-grid .button { width: 100%; }
  .gm-form-grid.gm-three-column { grid-template-columns: 1fr; }
  .gm-form-grid.gm-three-column label { grid-column: 1; }
  .admin-toolbar { gap: 8px; }
  .secure-badge { white-space: normal; }
}
.spirit-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.spirit-particles i { position: absolute; left: calc(var(--seed) * 8%); bottom: -16px; width: 3px; height: 3px; border-radius: 50%; background: #d3c394; box-shadow: 0 0 12px 3px #a9cb9560; opacity: 0; }
.spirit-particles i:nth-child(1) { --seed: 1; }
.spirit-particles i:nth-child(2) { --seed: 2; }
.spirit-particles i:nth-child(3) { --seed: 3; }
.spirit-particles i:nth-child(4) { --seed: 4; }
.spirit-particles i:nth-child(5) { --seed: 5; }
.spirit-particles i:nth-child(6) { --seed: 6; }
.spirit-particles i:nth-child(7) { --seed: 7; }
.spirit-particles i:nth-child(8) { --seed: 8; }
.spirit-particles i:nth-child(9) { --seed: 9; }
.spirit-particles i:nth-child(10) { --seed: 10; }
.spirit-particles i:nth-child(11) { --seed: 11; }
.spirit-particles i:nth-child(12) { --seed: 12; }
@keyframes spirit-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.5); }
  20%, 65% { opacity: .8; }
  100% { opacity: 0; transform: translate3d(60px, -620px, 0) scale(1.3); }
}
@keyframes moon-breathe { to { transform: scale(1.06); opacity: .65; } }
@keyframes mist-flow { to { transform: translateX(-65px) rotate(-4deg) scaleX(1.25); } }
@keyframes landscape-drift { to { transform: translate3d(-12px, 7px, 0) scale(1.04); } }
@keyframes aura-flow { to { transform: translate3d(65px, 40px, 0) scale(1.15); opacity: .14; } }
@keyframes light-sweep {
  0%, 65% { transform: translateX(-220%) skewX(-20deg); }
  100% { transform: translateX(550%) skewX(-20deg); }
}
@keyframes realm-pulse {
  0%, 100% { box-shadow: 0 0 0 0 #80c79900, 0 0 10px #80c79970; }
  50% { box-shadow: 0 0 0 5px #80c79918, 0 0 18px #80c799a0; }
}
.world-card, .news-card, .kpi-card, .client-panel { transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease; }
.button, .world-card, .news-card, .client-seal { position: relative; overflow: hidden; }
.button::after, .client-seal::after { content: ""; pointer-events: none; position: absolute; inset: -50% auto -50% -30%; width: 35%; background: linear-gradient(90deg, transparent, #fff5, transparent); transform: translateX(-220%) skewX(-20deg); }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--jade); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .spirit-particles i { animation: spirit-rise calc(10s + var(--seed) * .7s) linear infinite; animation-delay: calc(var(--seed) * -1.9s); }
  .moon { animation: moon-breathe 7s ease-in-out infinite alternate; }
  .mist-a { animation: mist-flow 9s ease-in-out infinite alternate; }
  .mist-b { animation: mist-flow 13s ease-in-out infinite alternate-reverse; }
  .mountain-back { animation: landscape-drift 16s ease-in-out infinite alternate; }
  .mountain-mid { animation: landscape-drift 12s ease-in-out infinite alternate-reverse; }
  .ambient { animation: aura-flow 14s ease-in-out infinite alternate; }
  .ambient-two { animation-delay: -7s; }
  .pulse-dot, .status-dot.online, .client-status i { animation: realm-pulse 3s ease-in-out infinite; }
  .button-jade::after, .client-seal::after { animation: light-sweep 7s ease-in-out infinite; }
  .button:hover::after, .button:focus-visible::after { animation: light-sweep 1.2s ease-out; }
  .world-card:hover, .news-card:hover { transform: translateY(-6px); border-color: #9dc9ac70; box-shadow: 0 16px 38px #0004, inset 0 1px #c4a87830; }
  .world-card .card-symbol { transition: transform .55s ease, text-shadow .55s ease; }
  .world-card:hover .card-symbol { transform: translateY(-5px) rotate(-7deg); text-shadow: 0 0 30px #9dc9ac55; }
  .kpi-card:hover, .client-panel:hover { border-color: #9dc9ac65; box-shadow: 0 0 32px #70ac8710; }
  .news-card { animation: jianghu-arrive .6s ease-out backwards; }
  .news-card:nth-child(2) { animation-delay: .1s; }
  .news-card:nth-child(3) { animation-delay: .2s; }
  .toast { animation: jianghu-arrive .25s ease-out both; }
}
@media (max-width: 700px) {
  .spirit-particles i:nth-child(n+7) { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
/* Community operations */
.community-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.community-columns > * { min-width: 0; }
.community-card { border: 1px solid var(--line, #35423e); background: rgba(13, 23, 27, .85); padding: 24px; margin: 18px 0; overflow-wrap: anywhere; scroll-margin-top: 110px; }
.community-card h4 { font: 24px Georgia, serif; color: #e8e4d8; margin: 12px 0; }
.community-card p, .incident-timeline p { white-space: pre-wrap; color: #aab9b2; }
.community-card small { display: block; color: #c4a878; }
.community-card form { margin-top: 20px; }
.community-card form, #incident-form, #poll-form { display: grid; gap: 14px; }
.community-card form[hidden] { display: none; }
.community-card > .button-row { margin-top: 16px; }
#admin-view-community label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
#admin-view-community input:not([type=checkbox]), #admin-view-community textarea, #admin-view-community select { width: 100%; min-width: 0; padding: 11px; border: 1px solid var(--line); background: var(--ink); color: var(--paper); }
#admin-view-community .checkbox-label { display: flex; align-items: center; }
#admin-view-community textarea { resize: vertical; }
#admin-view-community input:focus-visible, #admin-view-community textarea:focus-visible, #admin-view-community select:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }
.community-card button:disabled, #admin-view-community button:disabled { opacity: .6; cursor: wait; }
.community-card select, .community-card textarea { width: 100%; }
.incident-timeline { padding-left: 22px; border-left: 1px solid #c4a878; margin-top: 20px; }
.incident-timeline li { padding: 5px 0; }
.incident-timeline strong { font-size: 13px; }
.poll-option { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #35423e; }
.poll-option > span { flex: 1; min-width: 120px; }
.poll-option progress { flex-basis: 100%; width: 100%; accent-color: #9dc9ac; }
.maintenance-banner { position: relative; z-index: 3; background: #29261c; border-block: 1px solid #c4a878; padding: 20px max(24px, calc((100% - 1280px) / 2)); color: #e8e4d8; overflow-wrap: anywhere; }
.maintenance-banner[hidden] { display: none; }
.maintenance-banner small { display: block; margin: 6px 0; color: #d3bb90; }
.maintenance-banner a { color: #9dc9ac; display: inline-block; margin-bottom: 8px; }
.maintenance-banner[data-stale]::after { content: "Status unavailable · last known information"; display: block; color: #e7b0a5; }
html[lang="de-DE"] .maintenance-banner[data-stale]::after { content: "Status nicht erreichbar · letzter bekannter Stand"; }
#community-admin-feedback, #community-feedback { white-space: pre-wrap; color: #c4a878; }
@media (max-width: 800px) { .community-columns { grid-template-columns: 1fr; } .community-card { padding: 18px; } }
@media (min-width: 701px) and (max-width: 1600px) {
  .topbar { padding-inline: 4%; }
  .topbar .brand-copy { display: none; }
  .topbar .main-nav { gap: 18px; margin-right: 22px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .topbar .main-nav { display: none; position: absolute; top: 81px; left: 0; right: 0; margin: 0; padding: 17px 4%; flex-direction: column; border-bottom: 1px solid var(--line); background: #0d171b; }
  .topbar .main-nav.open { display: flex; }
  .topbar .menu-toggle { display: inline-grid; place-items: center; }
}
