:root {
  --ink: #090b0a;
  --ink-2: #0e1210;
  --paper: #e7ebe5;
  --muted: #9ca79f;
  --faint: #667169;
  --line: rgba(231, 235, 229, .13);
  --line-strong: rgba(231, 235, 229, .24);
  --green: #9bdc65;
  --green-dark: #1b3217;
  --red: #e58c83;
  --blue: #91c9e0;
  --yellow: #e6c87c;
  --shell: min(1220px, calc(100% - 64px));
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 320px; color: var(--paper); background: var(--ink); font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; line-height: 1.55; overflow-x: hidden; }
body::selection { color: var(--ink); background: var(--green); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
.site-shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 9px 13px; color: var(--ink); background: var(--green); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }
.icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Header */
.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(9, 11, 10, .94); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 700; letter-spacing: .15em; white-space: nowrap; }
.brand-gem { display: grid; width: 33px; height: 33px; place-items: center; overflow: hidden; border: 1px solid rgba(155, 220, 101, .55); background: #101e11; }
.brand-gem img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.brand-word span { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; color: var(--muted); font-size: 12px; }
.main-nav a { position: relative; padding: 25px 0 23px; transition: color .2s var(--ease); }
.main-nav a::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: var(--green); content: ""; opacity: 0; transform: scaleX(0); transition: opacity .2s, transform .2s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: var(--paper); }
.main-nav a.active::after { opacity: 1; transform: scaleX(1); }
.mobile-admin-link { display: none; }
.admin-entry { display: grid; width: 38px; height: 38px; place-items: center; margin-left: 8px; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.admin-entry:hover { color: var(--green); border-color: var(--green); background: rgba(155, 220, 101, .07); }
.admin-entry .icon { width: 18px; height: 18px; }
.admin-user { display: flex; align-items: center; gap: 15px; margin-left: auto; color: var(--muted); font-size: 12px; }
.admin-user > span { display: flex; align-items: center; gap: 8px; color: var(--paper); }
.admin-user > span .icon { width: 15px; height: 15px; color: var(--green); }
.admin-user form { margin: 0; }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); color: var(--muted); background: none; }
.icon-button:hover { color: var(--red); border-color: var(--red); }
.menu-toggle { display: none; align-items: center; gap: 7px; margin-left: auto; padding: 8px 11px; border: 1px solid var(--line); color: var(--paper); background: none; font-size: 12px; }
.menu-toggle .icon { width: 16px; height: 16px; }
.menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

/* Shared */
.overline { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--green); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.overline span, .overline i { display: block; width: 24px; height: 1px; background: currentColor; }
.section-number { display: block; color: var(--green); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.section-pad { padding: 148px 0; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 13px; padding: 0 17px; border: 1px solid transparent; font-size: 12px; font-weight: 650; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.solid { color: var(--ink); background: var(--green); }
.button.solid:hover { background: #b4ed82; }
.button.quiet { color: var(--paper); border-color: var(--line-strong); background: transparent; }
.button.quiet:hover { border-color: var(--green); color: var(--green); }
.button.small { min-height: 36px; padding-inline: 12px; font-size: 11px; }
.text-action, .line-link { display: inline-flex; align-items: center; gap: 9px; color: var(--paper); font-size: 12px; transition: color .2s, gap .2s var(--ease); }
.text-action:hover, .line-link:hover { gap: 13px; color: var(--green); }
.line-link { color: var(--green); }
.text-action .icon, .line-link .icon { width: 15px; height: 15px; }
.copy-address, .copy-value { cursor: pointer; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(360px, calc(100% - 44px)); padding: 12px 15px; border: 1px solid var(--green); color: var(--paper); background: #172118; font-size: 12px; transform: translateY(18px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
.toast.visible { transform: none; opacity: 1; }

/* Support — the one expressive surface: cosmetics shown on the same square profile tile used in-game. */
.support-lead { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line-strong); }
.support-lead p { max-width: 720px; margin: 0; color: #c2cac3; font-size: clamp(16px, 2vw, 22px); }
.support-lead span { color: var(--yellow); font: 11px monospace; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.support-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.support-product { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line-strong); background: var(--ink-2); }
.support-product.tier-4 { background: linear-gradient(145deg, #142016, #0e1210 62%); box-shadow: inset 0 2px var(--green); }
.support-product-image { display: grid; min-height: 215px; place-items: center; border-bottom: 1px solid var(--line-strong); background: radial-gradient(circle at 50% 38%, rgba(155,220,101,.17), transparent 34%), linear-gradient(145deg,#141a16,#0b0e0c); }
.tier-2 .support-product-image { background: radial-gradient(circle at 50% 38%, rgba(230,200,124,.2), transparent 34%), linear-gradient(145deg,#19170f,#0b0e0c); }
.tier-3 .support-product-image { background: radial-gradient(circle at 50% 38%, rgba(145,201,224,.22), transparent 34%), linear-gradient(145deg,#11191b,#0b0e0c); }
.tier-4 .support-product-image { background: radial-gradient(circle at 50% 38%, rgba(155,220,101,.25), transparent 34%), linear-gradient(145deg,#142016,#0b0e0c); }
.support-player { text-align: center; }.support-player img { display: block; width: 112px; height: 112px; margin: 0 auto 16px; object-fit: cover; image-rendering: pixelated; filter: drop-shadow(0 12px 18px rgba(0,0,0,.38)); }
.support-player p { margin: 0; color: var(--paper); font-size: 13px; }.support-player p span { color: var(--green); font-weight: 650; }.tier-2 .support-player p span { color: var(--yellow); }
.support-product-copy { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.support-product-copy > small { color: var(--green); font: 9px monospace; letter-spacing: .1em; text-transform: uppercase; }
.support-product-copy > h2 { margin: 5px 0 7px; }.support-product-copy > p:not(.support-price) { min-height: 38px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.tier-mark { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); color: var(--green); font-size: 20px; }
.support-product header small, .support-account-summary small { color: var(--muted); font: 10px monospace; text-transform: uppercase; letter-spacing: .09em; }
.support-product h2, .support-account-summary h2 { margin: 1px 0 0; color: var(--paper); font-size: 20px; }
.cosmetic-preview { display: flex; align-items: center; gap: 12px; min-height: 76px; margin: 21px 0; padding: 12px; border: 1px solid var(--line); background: #090c0a; }
.cosmetic-preview b, .cosmetic-preview small { display: block; }.cosmetic-preview small { margin-top: 3px; color: var(--faint); font-size: 10px; }
.preview-head { position: relative; display: block; width: 42px; height: 42px; flex: 0 0 auto; border: 3px solid #5b3928; background: linear-gradient(#4b2f24 0 20%, transparent 20%), linear-gradient(90deg, #a67452 0 25%, #d39a6d 25% 75%, #976446 75%); image-rendering: pixelated; }
.preview-head::before { position: absolute; top: 19px; left: 7px; width: 5px; height: 5px; color: #82b9d9; background: currentColor; box-shadow: 19px 0 currentColor; content: ""; }
.preview-head::after { position: absolute; right: 10px; bottom: 6px; left: 10px; height: 4px; background: #6d3f32; content: ""; }
.preview-head.frame-constellation { outline: 2px solid var(--green); outline-offset: 3px; box-shadow: 0 0 18px rgba(145,201,224,.38); }
.support-product ul { min-height: 170px; margin: 0; padding: 0; list-style: none; }
.support-product li { position: relative; padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); color: #bbc4bd; font-size: 12px; }
.support-product li::before { position: absolute; left: 0; color: var(--green); content: "◆"; font-size: 7px; top: 13px; }
.support-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: auto 0 17px; padding-top: 18px; color: var(--muted); font: 10px monospace; }.support-price b { color: var(--paper); font: 500 24px/1 sans-serif; }.support-product .button { width: 100%; }
.support-product .form-feedback { min-height: 38px; margin: 9px 0 -10px; color: var(--red); font-size: 11px; }
.support-boundary { margin-top: 34px; border-left: 2px solid var(--green); }.support-boundary h2 { margin-top: 0; }
.rainbow-name { color: transparent !important; background: linear-gradient(90deg,#e58c83,#e6c87c,#9bdc65,#91c9e0,#c3a1e6,#e58c83); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: onyx-rainbow 6s linear infinite; }
@keyframes onyx-rainbow { to { background-position: 220% 0; } }
.chat-prefix { color: var(--paper); font: 700 11px monospace; }.prefix-gold { color: var(--yellow); }.prefix-green { color: var(--green); }.prefix-aqua { color: var(--blue); }.prefix-white { color: var(--paper); }.prefix-light_purple { color: #c3a1e6; }
.support-account-summary { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; padding: 23px; border: 1px solid var(--line-strong); background: var(--ink-2); }
.support-account-summary > span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--green); color: var(--green); font-size: 28px; }.support-account-summary p { margin: 5px 0 0; color: var(--muted); }
.prefix-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.prefix-locked-preview { margin-bottom: 24px; }
.prefix-picker { display: grid; gap: 24px; }
.prefix-card-choice { position: relative; min-width: 0; cursor: pointer; }
.prefix-card-choice > input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.prefix-card { position: relative; display: grid; min-height: 108px; align-content: space-between; gap: 18px; overflow: hidden; padding: 18px; border: 1px solid rgba(231,235,229,.28); background: linear-gradient(145deg, #182019 0%, #101512 52%, #0c100d 100%); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 8px 24px rgba(0,0,0,.16); transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.prefix-card-choice:hover .prefix-card { border-color: rgba(155,220,101,.62); transform: translateY(-2px); }
.prefix-card-choice input:focus-visible + .prefix-card { outline: 2px solid var(--green); outline-offset: 3px; }
.prefix-card-choice input:checked + .prefix-card { border-color: var(--green); background: linear-gradient(145deg, #172319, #0d120f); box-shadow: inset 0 3px var(--green); }
.prefix-card-choice input:checked + .prefix-card::after { position: absolute; top: 11px; right: 12px; width: 6px; height: 6px; background: var(--green); content: ""; transform: rotate(45deg); }
.prefix-card-preview { display: block; overflow: hidden; color: var(--paper); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.prefix-card-preview b { font: inherit; }
.prefix-card-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.prefix-card-main .prefix-card-preview { min-width: 0; }
.prefix-card-head { display: block; width: 42px; height: 42px; flex: 0 0 auto; object-fit: cover; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(0,0,0,.32)); }
.prefix-card.system { min-height: 108px; }
.prefix-card.is-locked, .prefix-card-choice.is-locked .prefix-card { color: var(--faint); }
.prefix-card-choice.is-locked { cursor: not-allowed; }
.prefix-card-choice.is-locked:hover .prefix-card { border-color: var(--line-strong); transform: none; }
.prefix-access { display: flex; align-items: center; gap: 7px; color: var(--faint); font: 9px/1.2 monospace; letter-spacing: .06em; text-transform: uppercase; }
.prefix-lock-overlay { position: absolute; z-index: 2; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 12px; color: var(--paper); background: rgba(5,8,6,.91); backdrop-filter: blur(2px); text-align: center; }
.prefix-lock-overlay span { max-width: 100%; color: #c5cec6; font: 600 9px/1.35 monospace; letter-spacing: .055em; text-transform: uppercase; }
.prefix-lock-icon { display: block; width: 31px; height: 31px; color: var(--green); fill: currentColor; filter: drop-shadow(0 4px 10px rgba(0,0,0,.55)); }
.prefix-standard { color: transparent; background: linear-gradient(100deg,#3325e4,#8637c8,#d848ab); -webkit-background-clip: text; background-clip: text; }
.prefix-investigator { color: transparent; background: linear-gradient(90deg,#4bb465,#759374,#9e7283,#c85192,#dd4099); -webkit-background-clip: text; background-clip: text; }
.prefix-admin { color: transparent; background: linear-gradient(90deg,#3325e4,#2e4c9f,#29735b,#249a16); -webkit-background-clip: text; background-clip: text; }
.prefix-gradient { color: transparent !important; background-image: linear-gradient(100deg,var(--prefix-from),var(--prefix-to)); -webkit-background-clip: text; background-clip: text; }
.prefix-theme-wanderer { --prefix-from: #a8e063; --prefix-to: #56ab2f; }
.prefix-theme-builder { --prefix-from: #73c8ff; --prefix-to: #7a7cff; }
.prefix-theme-miner { --prefix-from: #ffd36a; --prefix-to: #d8862b; }
.prefix-theme-gardener { --prefix-from: #9be15d; --prefix-to: #00b86b; }
.prefix-theme-explorer { --prefix-from: #62d8e8; --prefix-to: #5374e7; }
.prefix-theme-starlight { --prefix-from: #c7a6ff; --prefix-to: #ff78bc; }
.prefix-theme-moon { --prefix-from: #f3f5ff; --prefix-to: #9ba9d6; }
.prefix-theme-aurora { --prefix-from: #58e6c2; --prefix-to: #7e7cff; }
.prefix-theme-ember { --prefix-from: #ffb35a; --prefix-to: #ed4c67; }
.prefix-theme-forest { --prefix-from: #b5da74; --prefix-to: #2e8b57; }
.prefix-theme-ocean { --prefix-from: #74d4f2; --prefix-to: #3b67d9; }
.prefix-theme-dreamer { --prefix-from: #f0a5ff; --prefix-to: #8d73ff; }
.prefix-theme-onyx { --prefix-from: #f4f4f1; --prefix-to: #8e9a96; }
.prefix-theme-comet { --prefix-from: #ffd76a; --prefix-to: #ff6a5e; }
.prefix-theme-custom { --prefix-from: #bdf47c; --prefix-to: #7dd6ea; }
.prefix-section-title { margin: 4px 0 -10px; color: var(--paper); font-size: 16px; font-weight: 650; }
.frame-card { min-height: 96px; }
.frame-card .prefix-card-preview { font-size: 12px; }
.frame-card .prefix-card-head { width: 36px; height: 36px; }
.custom-prefix-field { display: grid; max-width: 420px; gap: 12px; color: var(--muted); font-size: 11px; }.custom-prefix-field input[name="customPrefix"] { width: 100%; }
.custom-prefix-toggle { display: inline-flex; width: max-content; align-items: center; gap: 10px; cursor: pointer; color: var(--paper); }
.custom-prefix-toggle > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.custom-prefix-toggle > i { position: relative; width: 38px; height: 20px; border: 1px solid var(--line-strong); background: #171b18; transition: border-color .18s, background .18s; }
.custom-prefix-toggle > i span { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: var(--muted); transition: transform .18s var(--ease), background .18s; }
.custom-prefix-toggle > input:checked + i { border-color: var(--green); background: var(--green-dark); }
.custom-prefix-toggle > input:checked + i span { background: var(--green); transform: translateX(18px); }
.custom-prefix-toggle > input:focus-visible + i { outline: 2px solid var(--green); outline-offset: 3px; }
.custom-prefix-toggle b { font-size: 12px; font-weight: 600; }
.check-label { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px; }.check-label input { width: auto; }
.discord-link { margin: 25px 0; }.discord-link h2 { margin-top: 0; }.link-code { margin-top: 18px; padding: 18px; border: 1px solid var(--green); background: #101a12; }.link-code code { display: block; margin: 14px 0; color: var(--green); font-size: 22px; letter-spacing: .08em; }
.catalog-heading { margin-top: 50px; }.profile-avatar-frame { display: inline-flex; padding: 3px; }.profile-avatar-frame.frame-pixel { border: 2px solid var(--green); }.profile-avatar-frame.frame-aurora { border: 2px solid var(--blue); box-shadow: 0 0 18px rgba(145,201,224,.35); }.profile-avatar-frame.frame-constellation { border: 2px solid var(--green); outline: 1px solid var(--blue); outline-offset: 3px; }.support-profile-badge { color: var(--green); }

/* Checkout, orders and legal documents share the same restrained editorial system. */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 42px; align-items: start; }
.checkout-product { min-height: 100%; padding: 34px; border: 1px solid var(--line-strong); background: var(--ink-2); }
.checkout-player { display: flex; align-items: center; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }.checkout-player img { width: 96px; height: 96px; image-rendering: pixelated; }.checkout-player p { display: grid; gap: 2px; margin: 0; }.checkout-player small { color: var(--green); font: 9px monospace; letter-spacing: .1em; text-transform: uppercase; }.checkout-player b { font-size: 26px; }.checkout-player span { color: var(--muted); font-size: 11px; }
.checkout-description { margin: 27px 0 5px; color: var(--muted); font-size: 13px; }.checkout-product ul { margin: 14px 0 0; padding: 0; list-style: none; }.checkout-product li { padding: 11px 0; border-bottom: 1px solid var(--line); color: #bbc4bd; font-size: 12px; }.checkout-product li::before { margin-right: 10px; color: var(--green); content: "◆"; font-size: 7px; }
.checkout-summary { padding: 30px; border: 1px solid var(--line-strong); background: #0d120f; box-shadow: inset 0 2px var(--green); }
.checkout-summary > small { color: var(--green); font: 10px monospace; letter-spacing: .1em; text-transform: uppercase; }
.checkout-summary > strong { display: block; margin: 8px 0 26px; font-size: clamp(32px, 5vw, 50px); font-weight: 500; letter-spacing: -.05em; }
.checkout-summary dl, .payment-result dl, .legal-details { margin: 0 0 25px; }
.checkout-summary dl > div, .payment-result dl > div, .legal-details > div { display: grid; grid-template-columns: minmax(90px, .65fr) minmax(0, 1.35fr); gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checkout-summary dt, .payment-result dt, .legal-details dt { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.checkout-summary dd, .payment-result dd, .legal-details dd { margin: 0; overflow-wrap: anywhere; color: var(--paper); font-size: 12px; text-align: right; }
.checkout-summary form { display: grid; gap: 17px; }
.checkout-summary form .button { width: 100%; }
.legal-check { align-items: flex-start; color: var(--muted); font-size: 11px; line-height: 1.55; }
.legal-check input { flex: 0 0 auto; margin-top: 3px; accent-color: var(--green); }
.legal-check a, .checkout-note a, .legal-document a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.checkout-note { margin: 23px 0 0; color: var(--faint); font-size: 10px; line-height: 1.65; }
.order-list { border-top: 1px solid var(--line-strong); }
.order-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.order-list span { overflow-wrap: anywhere; font-size: 12px; }
.order-list small { color: var(--muted); font: 10px monospace; }
.order-status { padding: 4px 7px; border: 1px solid currentColor; font: 9px monospace; text-transform: uppercase; letter-spacing: .06em; }
.order-status.status-paid { color: var(--green); }.order-status.status-pending { color: var(--yellow); }.order-status.status-failed { color: var(--red); }.order-status.status-cancelled { color: var(--faint); }
.payment-result { position: relative; max-width: 740px; padding: 38px; border: 1px solid var(--line-strong); background: var(--ink-2); overflow: hidden; }
.payment-result::before { position: absolute; top: 0; right: 0; left: 0; height: 2px; background: var(--yellow); content: ""; }
.payment-result.status-paid::before { background: var(--green); }.payment-result.status-failed::before { background: var(--red); }.payment-result.status-cancelled::before { background: var(--faint); }
.payment-result > small { color: var(--muted); font: 10px monospace; overflow-wrap: anywhere; }
.payment-result h2 { margin: 16px 0 9px; font-size: clamp(28px, 5vw, 46px); font-weight: 500; letter-spacing: -.045em; }
.payment-result > p { max-width: 610px; margin: 0 0 28px; color: var(--muted); font-size: 13px; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 10px; }.payment-actions form { margin: 0; }
.legal-document { max-width: 820px; color: #c4ccc5; font-size: 14px; line-height: 1.82; }
.legal-document > p { max-width: 760px; }
.legal-document h2 { margin: 46px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--paper); font-size: 21px; font-weight: 550; letter-spacing: -.02em; }
.legal-document .legal-revision { color: var(--green); font: 10px monospace; letter-spacing: .08em; text-transform: uppercase; }
.legal-details { max-width: 680px; border-top: 1px solid var(--line); }
.contacts-card { max-width: 820px; }.contacts-card > p { color: var(--muted); }.contacts-card .legal-details { margin-top: 24px; }

@media (max-width: 1100px) { .support-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 800px) { .checkout-layout { grid-template-columns: 1fr; gap: 24px; }.checkout-summary { order: -1; } }
@media (max-width: 620px) { .support-grid { grid-template-columns: 1fr; }.support-lead { align-items: start; flex-direction: column; }.support-product ul { min-height: 0; }.support-account-summary { align-items: flex-start; }.link-code code { font-size: 18px; }.checkout-summary, .payment-result { padding: 23px 17px; }.checkout-summary dl > div, .payment-result dl > div, .legal-details > div { grid-template-columns: 1fr; gap: 3px; }.checkout-summary dd, .payment-result dd, .legal-details dd { text-align: left; }.order-list a { grid-template-columns: 1fr auto; gap: 7px 12px; }.order-list small { grid-column: 1 / -1; }.payment-actions { align-items: stretch; flex-direction: column; }.payment-actions .button, .payment-actions button { width: 100%; }.legal-document { font-size: 13px; }.legal-document h2 { margin-top: 36px; } }
@media (prefers-reduced-motion: reduce) { .rainbow-name { animation: none; background-position: 50%; } }

/* Home */
.home-hero { position: relative; min-height: min(850px, calc(100vh - 72px)); display: flex; align-items: stretch; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media-fallback { width: 100%; height: 100%; background: linear-gradient(110deg, rgba(12, 25, 15, .8), transparent 55%), radial-gradient(ellipse at 72% 15%, rgba(128, 165, 84, .3), transparent 32%), linear-gradient(145deg, #18231c 0%, #101714 42%, #253a28 70%, #0c100d 100%); }
.hero-media-fallback::before { position: absolute; right: 5%; bottom: -18%; width: 70%; height: 80%; background: linear-gradient(144deg, transparent 0 38%, rgba(11, 18, 12, .7) 39% 42%, transparent 43%), linear-gradient(135deg, transparent 0 54%, rgba(155, 220, 101, .17) 55% 56%, transparent 57%); clip-path: polygon(0 100%, 18% 44%, 31% 63%, 49% 16%, 68% 53%, 87% 28%, 100% 59%, 100% 100%); content: ""; opacity: .72; }
.hero-media-fallback::after { position: absolute; inset: 0; background-image: linear-gradient(rgba(231, 235, 229, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(231, 235, 229, .04) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(120deg, black 0 48%, transparent 78%); content: ""; opacity: .28; }
.hero-shade { background: linear-gradient(90deg, rgba(5, 8, 6, .92) 0%, rgba(5, 8, 6, .56) 43%, rgba(5, 8, 6, .1) 100%), linear-gradient(0deg, rgba(5, 8, 6, .94), transparent 42%); }
.hero-layout { position: relative; min-height: inherit; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; align-items: center; padding: 25px 0 30px; }
.hero-index { grid-column: 1 / -1; display: flex; gap: 16px; align-items: center; color: var(--muted); font: 10px/1.2 monospace; letter-spacing: .08em; text-transform: uppercase; }
.hero-index i { width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.hero-copy { grid-column: 1; align-self: center; max-width: 620px; padding: 75px 0; }
.hero-copy h1 { max-width: 760px; margin: 22px 0 25px; color: var(--paper); font-size: clamp(48px, 6.4vw, 93px); font-weight: 600; line-height: .98; letter-spacing: -.065em; }
.hero-copy > p:not(.overline) { max-width: 510px; margin: 0; color: #b7c0b8; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 37px; }
.server-address { display: flex; min-width: 268px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 14px 12px 17px; border: 1px solid rgba(155, 220, 101, .45); color: var(--paper); background: rgba(11, 18, 12, .78); text-align: left; transition: border-color .2s, background .2s; }
.server-address:hover { border-color: var(--green); background: rgba(27, 50, 23, .85); }
.server-address small, .server-address b { display: block; }
.server-address small { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.server-address b { color: var(--green); font: 600 14px monospace; }
.copy-label { display: inline-flex; align-items: center; gap: 7px; color: var(--paper); font-size: 10px; white-space: nowrap; }
.copy-label .icon { width: 14px; height: 14px; }
.hero-note { display: flex; grid-column: 2; grid-row: 2; align-self: end; justify-self: end; gap: 12px; max-width: 230px; padding: 13px 16px; border-top: 1px solid var(--line-strong); background: rgba(9, 11, 10, .45); }
.hero-note small, .hero-note b { display: block; }
.hero-note small { color: var(--muted); font-size: 10px; }
.hero-note b { margin-top: 2px; color: var(--paper); font-size: 11px; font-weight: 500; }
.signal { display: block; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(155, 220, 101, .11); }
.scroll-cue { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.scroll-cue i { display: block; width: 70px; height: 1px; background: var(--line-strong); }
.manifest { background: var(--ink); }
.editorial-grid { display: grid; grid-template-columns: 150px 1fr 350px; gap: 70px; }
.section-marker { color: var(--muted); font-size: 11px; }
.section-marker span { display: block; margin-bottom: 15px; color: var(--green); font: 11px monospace; }
.section-marker p { margin: 0; }
.manifest-copy h2, .access-intro h2, .world-copy h2, .code-layout h2, .closing h2 { margin: 0; color: var(--paper); font-size: clamp(35px, 4vw, 58px); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
.manifest-copy h2 em { color: var(--green); font-style: normal; }
.lead { max-width: 580px; margin: 35px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.principles { margin: 0; }
.principles div { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.principles dt { color: var(--paper); font-size: 14px; }
.principles dd { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.world-section { background: #0c100d; }
.world-layout { display: grid; grid-template-columns: 1.22fr .78fr; align-items: center; gap: 95px; }
.world-map-preview { position: relative; height: 480px; overflow: hidden; border: 1px solid var(--line-strong); background: #09100b; }
.world-map-preview iframe, .map-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 11px; color: var(--muted); background: #0a100c; font-size: 12px; transition: opacity .4s, visibility .4s; }
.map-loading.hidden { visibility: hidden; opacity: 0; }
.map-loading span { width: 21px; height: 21px; margin: auto; border: 1px solid var(--line-strong); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
.map-loading p { margin: 0; }
.world-copy .section-number { margin-bottom: 25px; }
.world-copy p { max-width: 380px; margin: 29px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.access { background: var(--ink); border-top: 1px solid var(--line); }
.access-layout { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 70px; }
.access-intro > p { max-width: 420px; margin: 28px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.messenger-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.access-steps { margin: 0; padding: 0; list-style: none; }
.access-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 0 0 28px; margin: 0 0 27px; border-bottom: 1px solid var(--line); }
.access-steps li:last-child { margin: 0; }
.access-steps > li > span { color: var(--green); font: 11px monospace; }
.access-steps h3 { margin: -4px 0 7px; color: var(--paper); font-size: 16px; font-weight: 600; }
.access-steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.inline-copy { padding: 0; border: 0; border-bottom: 1px dashed var(--green); color: var(--green); background: none; }
.code-section { padding: 112px 0; background: #111712; }
.code-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.code-layout h2 { margin-top: 24px; }
.code-lines p { display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); color: #c1c9c0; font-size: 13px; }
.code-lines p span { color: var(--green); font: 10px monospace; }
.code-lines .line-link { margin-top: 25px; }
.closing { position: relative; overflow: hidden; padding: 155px 0; border-top: 1px solid var(--line); background: #0b0f0c; }
.closing::after { position: absolute; right: -5%; bottom: -55%; width: 62%; height: 100%; border: 1px solid rgba(155, 220, 101, .18); border-radius: 50%; content: ""; transform: rotate(-22deg); }
.closing h2 { margin: 25px 0 35px; font-size: clamp(47px, 6vw, 86px); }
.closing-address { position: relative; z-index: 1; max-width: 340px; }

/* Pages and forms */
.page-intro { padding: 106px 0 66px; border-bottom: 1px solid var(--line); }
.page-intro.compact { padding-bottom: 45px; }
.page-intro-grid { display: grid; grid-template-columns: 150px 1fr; gap: 70px; }
.page-index { color: var(--green); font: 11px monospace; }
.page-intro h1, .map-heading h1, .error-page h1 { margin: 20px 0 17px; color: var(--paper); font-size: clamp(47px, 6vw, 83px); font-weight: 500; line-height: .98; letter-spacing: -.065em; }
.account-page-intro { padding: 34px 0 29px; }.account-page-intro .page-intro-grid { display: block; }.account-page-intro .page-index { display: none; }.account-page-intro h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }.account-content-page { padding-top: 24px; }
.page-intro p:not(.overline), .map-heading > div > p:not(.overline) { max-width: 500px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.form-section { padding: 75px 0 135px; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 95px; align-items: start; }
.form-surface, .login-form { display: grid; gap: 21px; padding: 30px; border: 1px solid var(--line-strong); background: #0d120f; }
.form-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.form-head span { color: var(--paper); font-size: 15px; }
.form-head small { color: var(--muted); font-size: 10px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
label { display: grid; gap: 8px; }
label > span { color: #c1c9c0; font-size: 11px; }
label > span small { color: var(--faint); font-size: 10px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; color: var(--paper); background: #090c0a; padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #5f6a62; }
input:focus, select:focus, textarea:focus { border-color: var(--green); background: #0d150d; box-shadow: 0 0 0 3px rgba(155, 220, 101, .1); }
textarea { min-height: 180px; resize: vertical; }
select option { color: var(--paper); background: #0d120f; }
.check { display: flex; grid-template-columns: auto 1fr; gap: 10px; align-items: flex-start; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green); }
.check span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-submit { display: flex; align-items: center; gap: 20px; padding-top: 4px; }
.form-submit small { color: var(--faint); font-size: 10px; }
.form-aside { padding-top: 10px; }
.form-aside h2 { margin: 26px 0; color: var(--paper); font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
.form-aside ul { margin: 0 0 29px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.form-aside li { padding: 10px 0 10px 17px; border-bottom: 1px solid var(--line); position: relative; }
.form-aside li::before { position: absolute; top: 19px; left: 0; width: 4px; height: 4px; background: var(--green); content: ""; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 13px; border: 1px solid; font-size: 12px; }
.alert .icon { width: 15px; height: 15px; }
.alert-error { color: var(--red); border-color: rgba(229, 140, 131, .35); background: rgba(229, 140, 131, .06); }
.alert-success { color: var(--green); border-color: rgba(155, 220, 101, .35); background: rgba(155, 220, 101, .06); }
.narrow-layout { width: min(760px, calc(100% - 64px)); margin-inline: auto; }
.status-form { margin-bottom: 24px; }
.appeal-result { padding: 28px; border: 1px solid var(--line-strong); background: #0d120f; }
.appeal-result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.appeal-result-head small { color: var(--green); font: 11px monospace; }
.appeal-result-head h2 { margin: 5px 0 0; font-size: 28px; font-weight: 500; }
.appeal-result dl, .detail-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; }
.appeal-result dl div, .detail-card dl div { padding: 13px; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: 10px; } dd { margin: 5px 0 0; color: var(--paper); font-size: 12px; }
.message-box { padding: 18px; background: #090c0a; }
.message-box small { color: var(--green); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.message-box p { margin: 10px 0 0; color: #c4ccc4; font-size: 13px; white-space: pre-wrap; }
.result-page { min-height: 650px; display: grid; place-items: center; padding: 90px 0; text-align: center; }
.result-wrap { max-width: 650px; }
.result-mark { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 27px; border: 1px solid var(--green); color: var(--green); }
.result-mark .icon { width: 26px; height: 26px; }
.result-wrap h1 { margin: 20px 0 13px; color: var(--paper); font: 500 clamp(48px, 7vw, 82px) Georgia, serif; }
.result-wrap > p:not(.overline) { color: var(--muted); }
.secret-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 31px 0; padding: 17px; border: 1px solid var(--line-strong); text-align: left; }
.secret-line small, .secret-line code { display: block; }
.secret-line small { color: var(--muted); font-size: 10px; }
.secret-line code { margin-top: 5px; color: var(--green); font-size: 17px; letter-spacing: .08em; }
.result-actions { display: flex; align-items: center; justify-content: center; gap: 20px; }
.map-page { padding: 74px 0 110px; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.map-heading h1 { margin-bottom: 11px; }
.map-stage { position: relative; width: min(1420px, calc(100% - 64px)); height: min(76vh, 820px); min-height: 550px; margin-inline: auto; border: 1px solid var(--line-strong); background: #090c0a; }
.map-stage .map-loading { background: #090c0a; }
.map-fallback { padding: 30px; color: var(--muted); }
.map-fallback a { color: var(--green); }

/* Admin */
.admin-body { background: #0b0f0c; }
.admin-main { min-height: 700px; padding: 78px 0 130px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.admin-heading h1 { margin: 17px 0 7px; color: var(--paper); font-size: clamp(43px, 5vw, 68px); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.admin-heading p:not(.overline) { margin: 0; color: var(--muted); font-size: 13px; }
.service-state { display: flex; align-items: center; gap: 11px; min-width: 190px; padding: 13px 15px; border-top: 1px solid var(--green); background: #101711; }
.service-state small, .service-state b { display: block; }
.service-state small { color: var(--muted); font-size: 10px; }.service-state b { margin-top: 3px; font-size: 12px; font-weight: 500; }
.stat-list { border-top: 1px solid var(--line-strong); }
.stat-row { display: grid; grid-template-columns: 65px minmax(190px, 1fr) 1fr auto; gap: 22px; align-items: center; padding: 22px 17px; border-bottom: 1px solid var(--line); transition: background .2s, padding .2s var(--ease); }
.stat-row:hover { padding-left: 24px; background: rgba(155, 220, 101, .05); }
.stat-row > span { color: var(--green); font: 11px monospace; }
.stat-row small, .stat-row strong { display: block; }
.stat-row small { color: var(--muted); font-size: 11px; }.stat-row strong { margin-top: 3px; color: var(--paper); font-size: 30px; font-weight: 500; }
.stat-row p { margin: 0; color: var(--muted); font-size: 11px; }.stat-row > .icon { color: var(--green); }
.admin-content-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; margin-top: 72px; }
.section-title { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); color: var(--paper); font-size: 13px; }
.section-title a { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; }.section-title .icon { width: 13px; }
.audit-list > div { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.audit-dot { flex: 0 0 auto; width: 5px; height: 5px; margin-top: 7px; border-radius: 50%; background: var(--green); }
.audit-list p { margin: 0; color: var(--paper); font-size: 12px; }.audit-list p > span, .audit-list small { display: block; color: var(--muted); font-size: 11px; }.audit-list small { margin-top: 4px; font-size: 10px; }
.quick-section { display: grid; align-content: start; gap: 0; }.quick-section > .section-number { margin-bottom: 20px; }
.quick-section > a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--paper); font-size: 12px; }.quick-section > a .icon { color: var(--green); width: 14px; }
.api-state { margin-top: 28px; padding: 14px; border: 1px solid var(--line); }.api-state small, .api-state b { display: block; }.api-state small { color: var(--muted); font-size: 10px; }.api-state b { margin-top: 5px; color: var(--green); font-size: 12px; font-weight: 500; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 17px; }.filter-row a { padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }.filter-row a:hover, .filter-row a.active { border-color: var(--green); color: var(--ink); background: var(--green); }
.data-table { overflow-x: auto; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; } th { padding: 13px 15px; color: var(--muted); background: #0d120f; text-align: left; font-size: 9px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; } td { padding: 17px 15px; border-top: 1px solid var(--line); color: #b9c2ba; font-size: 11px; vertical-align: middle; } td b, td small { display: block; } td b { color: var(--paper); font-weight: 600; } td small { max-width: 210px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; } td code { color: var(--green); font: 11px monospace; }.table-link { display: inline-flex; align-items: center; gap: 6px; border: 0; color: var(--green); background: none; font-size: 11px; white-space: nowrap; }.table-link .icon { width: 13px; }.table-link.danger { color: var(--red); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-green { color: var(--green); }.status-blue { color: var(--blue); }.status-yellow { color: var(--yellow); }.status-red { color: var(--red); }.status-muted { color: var(--faint); }
.empty-state { padding: 46px 20px; color: var(--muted); text-align: center; font-size: 12px; }
.inline-form { display: grid; grid-template-columns: 1fr 240px auto; align-items: end; gap: 16px; margin-bottom: 20px; padding: 19px; border: 1px solid var(--line-strong); background: #0d120f; }.inline-form small, .inline-form b { display: block; }.inline-form small { color: var(--green); font-size: 10px; }.inline-form b { margin-top: 4px; font-size: 12px; font-weight: 500; }
.detail-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 20px; }.detail-card { padding: 27px; border: 1px solid var(--line-strong); background: #0d120f; }.detail-card dl { grid-template-columns: 1fr 1fr; }.back-link { display: inline-block; margin-bottom: 32px; color: var(--muted); font-size: 12px; }.detail-heading { margin-bottom: 30px; }

/* Login / footer / animation */
.login-page { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.login-aside { position: relative; display: flex; align-items: end; min-height: 660px; padding: 55px max(38px, calc((100vw - 1220px) / 2)); overflow: hidden; background: #101911; }.login-scene { position: absolute; inset: 0; background: linear-gradient(0deg, #101911, transparent 70%), radial-gradient(ellipse at 70% 28%, rgba(155, 220, 101, .22), transparent 31%), #142017; }.login-scene::after { position: absolute; right: -15%; bottom: -20%; width: 100%; height: 85%; background: rgba(155, 220, 101, .13); clip-path: polygon(0 100%, 25% 52%, 39% 71%, 61% 17%, 74% 55%, 100% 30%, 100% 100%); content: ""; }.login-aside > div:last-child { position: relative; z-index: 1; max-width: 400px; }.login-aside h1 { margin: 20px 0; font-size: clamp(46px, 6vw, 78px); font-weight: 500; line-height: .95; letter-spacing: -.065em; }.login-aside p:not(.overline) { max-width: 360px; margin: 0; color: var(--muted); font-size: 13px; }
.login-form-wrap { display: grid; place-items: center; padding: 50px; background: #0b0f0c; }.login-form { width: min(420px, 100%); padding: 0; border: 0; background: none; }.login-form h2 { margin: 18px 0 24px; font-size: 35px; font-weight: 500; }.login-form .line-link { margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line); background: #090b0a; }.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr .85fr; gap: 50px; padding: 60px 0; }.footer-grid p { margin: 17px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.footer-grid > div:not(:first-child) { display: grid; align-content: start; gap: 9px; }.footer-grid small { margin-bottom: 5px; color: var(--green); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.footer-grid a, .footer-address { width: max-content; max-width: 100%; border: 0; color: var(--muted); background: none; font-size: 11px; }.footer-grid a:hover, .footer-address:hover { color: var(--paper); }.footer-address { display: inline-flex; align-items: center; gap: 7px; padding: 0; cursor: pointer; }.footer-address .icon { width: 13px; }.copyright { grid-column: 1 / -1; align-self: end; color: var(--faint); font-size: 10px; white-space: nowrap; }

/* Editorial content pages */
.content-page { padding: 30px 0 110px; }.content-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; }.content-aside { position: sticky; top: 90px; align-self: start; }.search-box { display: grid; gap: 8px; margin-bottom: 28px; }.search-box span, .content-aside > .search-box > span { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.search-box input { padding: 10px 12px; font-size: 12px; }.category-nav { display: grid; gap: 0; border-top: 1px solid var(--line); }.category-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }.category-nav a:hover { color: var(--green); }.important-note, .notice-block { margin-top: 28px; padding: 17px; border-left: 2px solid var(--green); background: #101611; }.important-note b, .notice-block b { display: block; margin-bottom: 7px; color: var(--paper); font-size: 12px; }.important-note p, .notice-block p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }.important-note .line-link { margin-top: 14px; font-size: 11px; }.content-main { min-width: 0; }.content-section { margin-bottom: 45px; scroll-margin-top: 95px; }.content-section .section-title { font-size: 15px; }.content-section .section-title small { color: var(--muted); font-size: 10px; }.rule-category ol { margin: 0; padding: 0; list-style: none; }.rule-category li { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 15px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 95px; }.rule-category li p { margin: 0; color: var(--paper); font-size: 13px; }.rule-number { color: var(--green); font: 12px monospace; }.copy-rule { border: 0; color: var(--muted); background: none; font-size: 10px; cursor: pointer; opacity: 0; }.rule-category li:hover .copy-rule, .copy-rule:focus { opacity: 1; }.group-note { max-width: 680px; color: var(--muted); font-size: 12px; }.mod-group ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }.mod-group li { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--paper); font-size: 12px; }.status-dot { flex: 0 0 7px; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--muted); }.status-blocked { background: var(--red); }.status-allowed { background: var(--green); }.status-limited { background: #c6a85b; }.status-approval { background: #7f9ed0; }.warning { border-left-color: #c6a85b; }.start-page { max-width: 880px; }.start-toolbar { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; margin-bottom: 25px; }.start-toolbar b { display: block; color: var(--paper); font-size: 12px; }.progress-label { color: var(--muted); font-size: 10px; }.progress-track { height: 3px; background: var(--line); }.progress-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s ease; }.start-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 35px; padding: 16px; border: 1px solid var(--line-strong); }.start-callout b { color: var(--paper); font-size: 11px; }.start-callout span { color: var(--muted); font-size: 10px; }.start-step { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; gap: 20px; padding: 27px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }.start-step-index { color: var(--green); font: 14px monospace; }.start-step h2 { margin: 0 0 8px; color: var(--paper); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }.start-step p { max-width: 650px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }.start-result { display: grid; gap: 3px; margin-bottom: 16px; }.start-result b { color: var(--green); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.start-result span { color: var(--paper); font-size: 11px; }.step-done { display: flex; align-items: start; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }.step-done input { accent-color: var(--green); }.download-card { padding: 32px; border: 1px solid var(--line-strong); background: #101611; }.download-card h2 { margin: 18px 0; color: var(--paper); font-size: clamp(32px, 5vw, 53px); font-weight: 500; line-height: 1.02; letter-spacing: -.05em; }.download-card p { max-width: 620px; color: var(--muted); font-size: 12px; }.download-card dl { display: flex; flex-wrap: wrap; gap: 30px; margin: 30px 0 0; }.download-card dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }.download-card dd { margin: 4px 0 0; color: var(--paper); font-size: 11px; }
.reveal { opacity: 1; transform: none; }.js .reveal { opacity: 0; transform: translateY(15px); transition: opacity .7s var(--ease), transform .7s var(--ease); }.js .reveal.visible { opacity: 1; transform: none; }.reveal-delay { transition-delay: .12s; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  :root { --shell: min(100% - 42px, 760px); }
  .main-nav { gap: 17px; }.editorial-grid, .access-layout { grid-template-columns: 95px 1fr; gap: 38px; }.principles { grid-column: 2; }.world-layout { grid-template-columns: 1fr; gap: 45px; }.world-copy { max-width: 600px; }.code-layout { gap: 40px; }.admin-content-grid { gap: 38px; }.login-page { grid-template-columns: .8fr 1.2fr; }.footer-grid { grid-template-columns: 1fr 1fr; }.copyright { align-self: start; }
}
@media (max-width: 650px) {
  :root { --shell: calc(100% - 32px); }
  .site-header { position: sticky; top: 0; }.header-inner { min-height: 62px; }.brand { font-size: 14px; }.brand-gem { width: 30px; height: 30px; }.admin-entry { display: none; }.menu-toggle { display: inline-flex; }.main-nav { position: absolute; top: 62px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px; border: 1px solid var(--line-strong); background: #0d120f; box-shadow: 0 25px 60px rgba(0, 0, 0, .35); }.main-nav.open { display: flex; }.main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }.main-nav a::after { right: auto; width: 28px; bottom: -1px; }.main-nav .mobile-admin-link { display: block; }
  .section-pad { padding: 88px 0; }.home-hero { min-height: calc(100svh - 62px); }.hero-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto auto; padding: 18px 0 22px; }.hero-index { grid-column: 1; }.hero-copy { grid-column: 1; padding: 52px 0 35px; }.hero-copy h1 { margin: 18px 0 19px; font-size: clamp(46px, 14vw, 68px); }.hero-copy > p:not(.overline) { font-size: 14px; line-height: 1.65; }.hero-actions { align-items: stretch; flex-direction: column; gap: 17px; margin-top: 29px; }.server-address { width: 100%; min-width: 0; }.text-action { justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--line); }.hero-note { grid-column: 1; grid-row: auto; justify-self: stretch; margin-top: auto; }.scroll-cue { grid-column: 1; margin-top: 23px; }.scroll-cue i { flex: 1; }
  .editorial-grid, .access-layout, .code-layout, .page-intro-grid { grid-template-columns: 1fr; gap: 32px; }.section-marker { display: flex; gap: 12px; align-items: center; }.section-marker span { margin: 0; }.manifest-copy h2, .access-intro h2, .world-copy h2, .code-layout h2, .closing h2 { font-size: 41px; }.principles { grid-column: auto; }.lead { margin-top: 24px; font-size: 14px; }.world-map-preview { height: 350px; }.world-copy p { margin: 24px 0; }
  .access-steps { margin-top: 7px; }.code-section { padding: 86px 0; }.closing { padding: 105px 0; }.closing-address { width: 100%; }
  .page-intro { padding: 76px 0 46px; }.page-intro h1, .map-heading h1, .error-page h1 { font-size: 54px; }.page-intro-grid { gap: 19px; }.form-section { padding: 42px 0 90px; }.form-layout, .narrow-layout { width: var(--shell); grid-template-columns: 1fr; gap: 45px; }.form-surface { padding: 21px 17px; }.form-head { display: grid; gap: 5px; }.field-pair { grid-template-columns: 1fr; gap: 18px; }.form-submit { align-items: stretch; flex-direction: column; gap: 12px; }.form-submit .button { width: 100%; }.form-aside { padding: 0; }.appeal-result { padding: 20px 17px; }.appeal-result dl, .detail-card dl { grid-template-columns: 1fr; gap: 0; }.secret-line { align-items: stretch; flex-direction: column; }
  .map-page { padding: 50px 0 80px; }.map-heading { width: var(--shell); align-items: stretch; flex-direction: column; gap: 20px; }.map-heading .button { width: 100%; }.map-stage { width: 100%; height: calc(100svh - 235px); min-height: 450px; border-right: 0; border-left: 0; }
  .admin-main { padding: 55px 0 90px; }.admin-heading { align-items: start; flex-direction: column; gap: 24px; margin-bottom: 30px; }.service-state { width: 100%; }.stat-row { grid-template-columns: 35px 1fr auto; gap: 11px; padding: 18px 0; }.stat-row p { display: none; }.stat-row strong { font-size: 27px; }.admin-content-grid, .detail-grid { grid-template-columns: 1fr; gap: 48px; margin-top: 52px; }.data-table { margin-inline: -16px; }.data-table table { min-width: 730px; }.inline-form { grid-template-columns: 1fr; align-items: stretch; padding: 17px; }.inline-form .button { width: 100%; }.detail-card { padding: 21px 17px; }
  .login-page { display: block; min-height: calc(100svh - 62px); }.login-aside { min-height: 330px; padding: 42px 16px; }.login-aside h1 { font-size: 51px; }.login-form-wrap { padding: 54px 16px 80px; }.login-form { max-width: 420px; }.footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 24px; padding: 45px 0; }.footer-grid > div:first-child { grid-column: 1 / -1; }.copyright { grid-column: 1 / -1; }
}

/* How to start — component-scoped layout */
.start-page { width: min(var(--shell), 920px); max-width: 920px; overflow-wrap: anywhere; }
.start-overview { display: grid; grid-template-columns: minmax(150px, auto) minmax(180px, 1fr) auto; gap: 22px; align-items: center; margin-bottom: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.start-progress-copy { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.start-progress-copy h2 { margin: 0; color: var(--paper); font-size: 13px; font-weight: 600; line-height: 1.4; }
.start-progress-copy output { color: var(--muted); font-size: 12px; line-height: 1.4; }
.progress-track { min-width: 0; height: 4px; overflow: hidden; background: var(--line); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--green); transition: width .3s ease; }
.reset-progress { white-space: nowrap; }
.server-address-panel { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-bottom: 34px; padding: 20px 22px; border: 1px solid var(--line-strong); background: #0d120f; scroll-margin-top: 90px; }
.server-address-panel > div { display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; align-items: baseline; min-width: 0; }
.server-address-panel span { color: var(--muted); font-size: 11px; }
.server-address-panel strong { color: var(--paper); font: 600 16px/1.4 monospace; overflow-wrap: anywhere; }
.server-address-panel small { grid-column: 1 / -1; color: var(--faint); font-size: 10px; }
.address-copy-button { flex: 0 0 auto; column-gap: 12px; white-space: nowrap; }
.address-copy-button .button-text { display: inline-block; }
.address-copy-button .icon { margin-left: 2px; }
.start-steps { display: grid; gap: 16px; }
.start-step-card { min-width: 0; padding: 25px 27px; border: 1px solid var(--line); background: #0d100e; scroll-margin-top: 90px; }
.start-step-head { display: flex; gap: 15px; align-items: center; margin-bottom: 13px; }
.start-step-index { display: inline-grid; flex: 0 0 40px; width: 40px; height: 29px; place-items: center; border: 1px solid rgba(155,220,101,.35); color: var(--green); font: 11px/1 monospace; }
.start-step-head h2 { min-width: 0; margin: 0; color: var(--paper); font-size: 21px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.start-step-description { max-width: 680px; margin: 0 0 17px 55px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.start-result { display: flex; gap: 6px; align-items: baseline; max-width: 680px; margin: 0 0 20px 55px; }
.start-result-label { flex: 0 0 auto; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: .03em; }
.start-result p { min-width: 0; margin: 0; color: var(--paper); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.start-step-actions { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-left: 55px; }
.step-action { max-width: 100%; }
.step-done { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); color: var(--paper); background: #090c0a; cursor: pointer; font-size: 11px; line-height: 1; }
.step-done:hover { border-color: var(--green); }
.step-done input { appearance: auto; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--green); }
.step-done span { color: inherit; font-size: inherit; line-height: inherit; }
.start-step-card:has(.step-done input:checked) { border-color: rgba(155,220,101,.4); }

@media (max-width: 650px) {
  .start-overview { grid-template-columns: 1fr; gap: 14px; padding-top: 8px; }
  .start-progress-copy { justify-content: space-between; }
  .reset-progress { width: 100%; }
  .server-address-panel { align-items: stretch; flex-direction: column; gap: 16px; padding: 18px 16px; }
  .server-address-panel > div { grid-template-columns: 1fr; gap: 4px; }
  .server-address-panel small { grid-column: auto; }
  .address-copy-button { width: 100%; }
  .start-step-card { padding: 20px 16px; }
  .start-step-head { align-items: flex-start; gap: 11px; }
  .start-step-index { flex-basis: 36px; width: 36px; }
  .start-step-head h2 { font-size: 19px; }
  .start-step-description, .start-result, .start-step-actions { margin-left: 0; }
  .start-result { align-items: flex-start; flex-direction: column; gap: 3px; }
  .start-step-actions { align-items: stretch; flex-direction: column; }
  .step-action, .step-done { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; }.reveal { opacity: 1; transform: none; } }
@media (max-width: 650px) {
  .content-page { padding-bottom: 75px; }.content-layout { display: block; }.content-aside { position: static; margin-bottom: 42px; }.category-nav { display: flex; gap: 7px; overflow-x: auto; border: 0; padding-bottom: 5px; }.category-nav a { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); font-size: 10px; }.important-note { margin-top: 20px; }.rule-category li { grid-template-columns: 30px minmax(0,1fr); gap: 10px; }.copy-rule { grid-column: 2; padding: 0; opacity: 1; justify-self: start; }.start-toolbar { grid-template-columns: 1fr auto; gap: 12px; }.progress-track { grid-column: 1 / -1; grid-row: 2; }.start-callout { align-items: start; flex-direction: column; gap: 8px; }.start-step { grid-template-columns: 35px minmax(0,1fr); gap: 12px; }.step-done { grid-column: 2; }.download-card { padding: 22px 17px; }.download-card dl { gap: 18px; }
}

/* Redesigned ONYXM Cabinet & Auth UI */
.nav-login-btn, .nav-account-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-weight: 600;
  border-radius: 0;
  white-space: nowrap;
  font-size: 12px;
  transition: background .2s var(--ease), color .2s, border-color .2s;
}
.nav-login-btn:hover, .nav-account-btn:hover {
  background: var(--green-dark);
  border-color: var(--green);
  color: var(--paper);
}
.mobile-admin-link, footer a[href="/admin"] { display: none !important; }

.account-map { width: 100%; height: min(72vh, 760px); min-height: 480px; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 24px 0; }
.map-toolbar p { margin: 0; color: var(--muted); }
.notification { padding: 13px 0; border-bottom: 1px solid var(--line); }
.notification p { margin: 5px 0; color: var(--muted); }
.notification.unread { border-left: 2px solid var(--green); padding-left: 12px; }
.chat-history { display: grid; gap: 8px; max-height: 560px; overflow: auto; padding: 16px; border: 1px solid var(--line); background: #090e0b; }
.chat-history article { padding: 11px 13px; border-radius: 8px; background: rgba(255,255,255,.025); }
.chat-history p { margin: 4px 0; overflow-wrap: anywhere; }
.chat-history small { color: var(--muted); }
.connection-error::before { content: 'Соединение с чатом прервано — повторяем…'; display: block; color: #e2b86b; }
.inventory-grid { display: grid; grid-template-columns: repeat(9, minmax(42px, 1fr)); max-width: 630px; gap: 4px; }
.grid-4 { grid-template-columns: repeat(4, 56px); }
.grid-1 { grid-template-columns: 56px; }
.item-slot { position: relative; aspect-ratio: 1; min-width: 0; border: 1px solid var(--line-strong); background: #111813; }
.occupied-slot { display: grid; place-content: center; }
.item-icon-text { color: var(--paper); font-size: 11px; text-transform: uppercase; }
.item-count { position: absolute; right: 4px; bottom: 2px; font-size: 11px; }
.item-tooltip { display: none; position: absolute; z-index: 5; left: 50%; bottom: 100%; width: 220px; padding: 10px; border: 1px solid var(--line-strong); background: #070a08; }
.item-slot:hover .item-tooltip, .item-slot:focus-within .item-tooltip { display: block; }
.inventory-section { margin: 22px 0; padding: 20px; border: 1px solid var(--line); overflow-x: auto; }
.inventory-meta-bar, .armor-offhand-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
@media (max-width: 650px) { .account-map { height: 62svh; min-height: 420px; } .map-toolbar { align-items: stretch; flex-direction: column; } .inventory-grid { min-width: 450px; } }

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 36px 32px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  text-align: center;
}

.auth-card-header img {
  display: block;
  margin: 0 auto 16px;
  image-rendering: pixelated;
}

.auth-card-header h1, .auth-card-header h2 {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
}

.btn-primary {
  width: 100%;
  margin-top: 8px;
  padding: 12px 18px;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
}

.account-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line-strong);
  flex-wrap: wrap;
}

.account-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-item {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 0;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.tab-item:hover {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-item.active {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.logout-form {
  margin: 0;
}

.logout-btn {
  padding: 8px 16px;
  border: 1px solid rgba(229, 140, 131, 0.4);
  color: var(--red);
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.logout-btn:hover {
  background: rgba(229, 140, 131, 0.15);
  border-color: var(--red);
}

.profile-header-card {
  padding: 24px 28px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  margin-bottom: 28px;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar {
  border-radius: 6px;
  border: 2px solid var(--line-strong);
  image-rendering: pixelated;
  background: #151d18;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-username {
  margin: 0;
  color: var(--paper);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.profile-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-active, .status-online {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-inactive, .status-offline {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  padding: 24px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0;
}

.info-card h3 {
  margin: 0 0 18px;
  color: var(--paper);
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.info-label {
  color: var(--muted);
}

.info-value {
  color: var(--paper);
  font-weight: 600;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
  .account-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .account-tabs { width: 100%; }
}

/* Shared surfaces follow the public site's restrained, square-edged layout. */
[hidden] { display: none !important; }
:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
button:disabled { cursor: wait; opacity: .65; }
.content-card, .form-card { max-width: 760px; margin-block: 24px; padding: 30px; border: 1px solid var(--line-strong); background: var(--ink-2); }
.form-card { display: grid; gap: 21px; }
.form-card label { color: var(--muted); font-size: 12px; }
.form-card .button { justify-self: start; }
.form-message { max-width: 760px; padding: 14px 18px; margin-block: 20px; border-left: 2px solid var(--red); background: var(--ink-2); color: var(--paper); font-size: 13px; }
.form-feedback { margin: 0; color: var(--muted); font-size: 12px; }
.form-feedback:empty { display: none; }
.content-card code { overflow-wrap: anywhere; color: var(--green); }
.empty-state { color: var(--muted); }
.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table td:first-child { padding-left: 0; }
.data-table form { margin: 0; }
.info-card { min-width: 0; }
.info-card .empty-state { padding: 24px 0; }
.info-row { gap: 16px; }
.info-value { overflow-wrap: anywhere; text-align: right; }
.mod-group li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.data-table { margin-inline: 0; }
.page-intro-grid > div { min-width: 0; }
.page-intro h1 { overflow-wrap: anywhere; }
.profile-badges { flex-wrap: wrap; }
.auth-card-header h1 { font-size: 40px; font-weight: 500; letter-spacing: -.05em; }
.auth-sub { line-height: 1.75; }
.chat-history article { border-radius: 0; border-bottom: 1px solid var(--line); }
.map-stage.public-map { width: 100%; height: 72svh; }
.world-map-preview.map-stage { width: 100%; height: 480px; min-height: 0; }
.map-fallback { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; background: var(--ink-2); text-align: center; }
.map-fallback p { flex-basis: 100%; max-width: 100%; }
.map-unavailable { display: grid; place-content: center; gap: 12px; color: var(--muted); text-align: center; background: var(--ink-2); }
.header-inner { gap: 22px; }
.main-nav { gap: 21px; }
@media (max-width: 1050px) and (min-width: 651px) {
  .header-inner { gap: 14px; }
  .main-nav { gap: 14px; }
  .nav-login-btn, .nav-account-btn { padding: 8px 10px; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 62px; gap: 12px; }
  .main-nav { position: absolute; top: 62px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px; border: 1px solid var(--line-strong); background: var(--ink-2); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .nav-login-btn, .nav-account-btn { margin-left: auto; font-size: 11px; padding: 8px 10px; }
}
@media (max-width: 650px) {
  .content-card, .form-card { padding: 21px 17px; }
  .form-card .button { width: 100%; }
  .account-tabs { display: flex; gap: 8px; }
  .tab-item { padding: 10px 8px; font-size: 12px; }
  .profile-header-card { padding: 20px 17px; }
  .profile-user-info { gap: 14px; }
  .profile-username { font-size: 24px; overflow-wrap: anywhere; }
  .profile-user-details { min-width: 0; }
  .auth-card { padding: 28px 22px; }
  .world-map-preview.map-stage { height: 350px; }
  .map-stage.public-map { min-height: 420px; height: 65svh; }
  .account-page-intro { padding: 26px 0 22px; }
  .account-page-intro h1 { font-size: 30px; }
}
@media (max-width: 980px) {
  .prefix-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .prefix-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prefix-card { min-height: 88px; padding: 15px 13px; }
  .prefix-card-head { width: 36px; height: 36px; }
  .prefix-card-main { gap: 9px; }
}
