:root {
  --ink: #07141b;
  --ink-2: #0d222b;
  --ink-3: #16323c;
  --paper: #f4f8f7;
  --white: #ffffff;
  --mist: #dce9e9;
  --muted: #789099;
  --cyan: #33d6d1;
  --cyan-dark: #087f86;
  --gold: #d5a847;
  --coral: #ee6d52;
  --green: #55d684;
  --line: rgba(145, 187, 193, .24);
  --shadow: 0 18px 60px rgba(3, 18, 24, .16);
  --content: min(1180px, calc(100% - 48px));
}

.account-shell { max-width: 1180px; margin: 0 auto; padding: 86px 28px 110px; }
.account-hero { max-width: 760px; margin-bottom: 46px; }
.account-hero h1 { margin: 10px 0 14px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: .98; }
.account-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; }
.account-panel, .account-help { border: 1px solid rgba(155, 210, 214, .34); background: linear-gradient(145deg, rgba(19, 40, 43, .96), rgba(8, 21, 25, .96)); box-shadow: 0 16px 38px rgba(0, 0, 0, .18); padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 26px; }
.panel-heading h2 { margin: 4px 0 0; }
.pixel-badge { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #d7b94c; color: #f4d878; font-family: var(--mono); font-size: .78rem; }
.binding-state { display: flex; gap: 13px; align-items: center; border: 1px solid rgba(255, 255, 255, .12); padding: 16px; background: rgba(255, 255, 255, .04); }
.binding-state.is-bound { border-color: rgba(109, 220, 157, .48); }
.binding-state strong, .binding-state small { display: block; }
.binding-state small { color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; background: #f3bf51; box-shadow: 0 0 13px #f3bf51; flex: 0 0 auto; }
.is-bound .state-dot { background: #62d89a; box-shadow: 0 0 13px #62d89a; }
.bind-code { margin-top: 18px; padding: 18px; border: 1px dashed #d7b94c; background: rgba(215, 185, 76, .08); }
.bind-code span, .bind-code strong, .bind-code code { display: block; }
.bind-code span { color: var(--muted); font-size: .8rem; }
.bind-code strong { color: #f4d878; font: 700 2rem var(--mono); letter-spacing: .16em; margin: 8px 0; }
.bind-code code { color: #d9edf0; font-size: .85rem; }
.welfare-card { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0; }
.welfare-card:first-of-type { border-top: 0; }
.welfare-card > div:first-child { display: flex; gap: 12px; }
.welfare-icon { color: #f4d878; font-size: 1.2rem; }
.welfare-card h3 { margin: 0 0 5px; }
.welfare-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.welfare-action { min-width: 118px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.welfare-action strong { color: #f4d878; white-space: nowrap; }
.claim-done, .claim-pending, .claim-locked { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.claim-done { color: #75e0a5; }
.claim-pending { color: #f3bf51; }
.account-help { margin-top: 22px; }
.account-help h2 { margin: 5px 0 24px; }
.guide-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-steps span { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.guide-steps b { display: grid; place-items: center; width: 30px; height: 30px; background: #f4d878; color: #152022; }
.guide-steps code { color: #d6edee; }
@media (max-width: 800px) {
  .account-shell { padding: 58px 16px 76px; }
  .account-grid, .guide-steps { grid-template-columns: 1fr; }
  .account-panel, .account-help { padding: 22px 18px; }
  .welfare-card { align-items: flex-start; flex-direction: column; }
  .welfare-action { align-items: flex-start; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; line-height: 1.65; letter-spacing: 0; }
body, button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.18; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 999; padding: 10px 14px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.eyebrow { margin-bottom: 14px; color: var(--cyan-dark); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

.site-header { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 78px; padding: 0 max(28px, calc((100vw - 1380px) / 2)); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(255,255,255,.16); transition: background .25s, height .25s; }
.site-header.scrolled, body:not(.home-page) .site-header { height: 68px; background: rgba(7,20,27,.96); border-color: rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand img, .admin-brand img, .site-footer img { image-rendering: pixelated; border: 1px solid rgba(255,255,255,.3); }
.brand span, .admin-brand span { display: grid; }
.brand b { font-size: 18px; line-height: 1.1; }
.brand small { color: #b8c9cd; font-size: 11px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.site-nav a { position: relative; padding: 8px 0; color: #d7e4e6; }
.site-nav a:hover { color: white; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: 1px; width: 0; height: 2px; background: var(--cyan); transition: width .2s; }
.site-nav a:hover::after { width: 100%; }
.site-nav .nav-account { padding: 8px 14px; color: white; border: 1px solid rgba(255,255,255,.3); }
.nav-toggle { display: none; width: 40px; height: 40px; color: white; background: transparent; border: 1px solid rgba(255,255,255,.3); }

.hero { position: relative; height: min(86vh, 900px); min-height: 680px; overflow: hidden; color: white; background: var(--ink); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.015); animation: heroReveal 1s ease both; }
.hero-shade { position: absolute; inset: 0; background: rgba(3,15,20,.54); box-shadow: inset 0 -210px 160px rgba(2,13,18,.48), inset 520px 0 280px rgba(2,13,18,.38); }
.hero::before { content: ""; position: absolute; z-index: 2; inset: 96px 28px 120px; pointer-events: none; border: 1px solid rgba(255,255,255,.18); border-bottom-color: transparent; }
.hero::after { content: ""; position: absolute; z-index: 2; top: 96px; left: 28px; width: 94px; height: 5px; background: var(--gold); }
.hero-content { position: relative; z-index: 3; width: var(--content); height: 100%; margin: 0 auto; padding-top: clamp(170px, 22vh, 230px); }
.hero-content .eyebrow { color: #8ff4ef; }
.hero h1 { max-width: 860px; margin-bottom: 24px; font-size: clamp(46px, 5.8vw, 88px); font-weight: 860; }
.hero h1 span { display: block; margin-bottom: 14px; color: var(--gold); font-size: 18px; font-weight: 800; }
.hero-copy { max-width: 680px; margin-bottom: 34px; color: #d7e3e4; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 44px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; transition: transform .18s, background .18s, color .18s, border-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #021416; background: var(--cyan); border-color: var(--cyan); }
.btn-primary:hover { background: #68ebe7; }
.btn-ghost { color: white; background: rgba(5,20,26,.28); border-color: rgba(255,255,255,.42); }
.btn-light { color: var(--ink); background: white; }
.btn-dark { margin-top: 28px; color: white; background: var(--ink); }
.btn-wide { width: 100%; }
.btn-small { min-height: 34px; padding: 6px 13px; font-size: 13px; color: white; background: var(--ink-3); }
.btn-ghost-dark { color: var(--ink); border-color: #a9bec2; }

.server-rail { position: absolute; z-index: 4; right: max(28px, calc((100vw - 1180px) / 2)); bottom: 0; width: min(700px, calc(100% - 56px)); min-height: 96px; padding: 18px 22px; display: grid; grid-template-columns: 20px 1fr 1fr 1.4fr auto; align-items: center; gap: 18px; color: var(--ink); background: rgba(244,248,247,.95); border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.status-light { width: 11px; height: 11px; background: var(--coral); box-shadow: 0 0 0 6px rgba(238,109,82,.13); }
.server-rail.online .status-light { background: var(--green); box-shadow: 0 0 0 6px rgba(85,214,132,.14); }
.server-rail div { display: grid; }
.server-rail small { color: #6c838a; font-size: 11px; }
.server-rail strong { font-size: 14px; overflow-wrap: anywhere; }
.rail-copy { min-width: 64px; height: 38px; color: white; background: var(--ink); border: 0; }

.notice-band { min-height: 74px; padding: 16px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 180px 1fr; align-items: center; color: white; background: var(--ink); }
.notice-band span { color: var(--gold); font-size: 11px; font-weight: 800; }
.notice-band p { margin: 0; color: #c9d8da; font-size: 14px; }
.section { width: var(--content); margin: 0 auto; padding: 110px 0; }
.section-heading { max-width: 740px; margin-bottom: 54px; }
.section-heading.compact { margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 54px); }
.section-heading > p:last-child { color: #587079; font-size: 17px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr 420px; align-items: end; gap: 50px; }
.split-heading h2 { margin-bottom: 0; }

.section-intro { position: relative; }
.section-intro::before { content: ""; position: absolute; top: 64px; right: 0; width: 140px; height: 1px; background: var(--gold); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b7cbce; border-left: 1px solid #b7cbce; }
.feature-card { position: relative; min-height: 245px; padding: 34px; background: rgba(255,255,255,.52); border-right: 1px solid #b7cbce; border-bottom: 1px solid #b7cbce; }
.feature-card::after { content: ""; position: absolute; left: 0; top: 0; width: 5px; height: 0; background: var(--cyan-dark); transition: height .25s; }
.feature-card:hover::after { height: 100%; }
.feature-code { display: inline-block; margin-bottom: 38px; color: var(--cyan-dark); font: 800 11px ui-monospace, monospace; }
.feature-card h3 { margin-bottom: 14px; font-size: 21px; }
.feature-card p { margin: 0; color: #637980; font-size: 14px; }

.media-section { padding-top: 40px; }
.video-frame { position: relative; aspect-ratio: 16 / 8.1; overflow: hidden; background: var(--ink); border: 1px solid #263f48; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { height: 100%; display: grid; align-content: center; justify-items: center; color: white; background-color: var(--ink-2); background-image: linear-gradient(rgba(51,214,209,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(51,214,209,.08) 1px, transparent 1px); background-size: 44px 44px; }
.video-placeholder span { width: 78px; height: 78px; margin-bottom: 25px; display: grid; place-items: center; color: var(--ink); background: var(--cyan); font-size: 12px; font-weight: 900; clip-path: polygon(0 0, 85% 0, 100% 15%, 100% 100%, 15% 100%, 0 85%); }
.video-placeholder strong { font-size: 28px; }
.video-placeholder p { color: #9eb2b7; }

.gallery-section { min-height: 700px; display: grid; grid-template-columns: minmax(340px, 34%) 1fr; color: white; background: var(--ink); }
.gallery-copy { padding: 96px max(36px, calc((100vw - 1180px) / 2)); padding-right: 56px; align-self: center; }
.gallery-copy .eyebrow { color: var(--gold); }
.gallery-copy h2 { font-size: clamp(38px, 4vw, 58px); }
.gallery-copy > p:last-of-type { color: #a8bbc0; }
.carousel-controls { margin-top: 56px; display: flex; align-items: center; gap: 18px; }
.carousel-controls button { width: 42px; height: 42px; color: white; background: transparent; border: 1px solid #49636b; font-size: 26px; }
.carousel-controls button:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.carousel-controls span { color: #829aa1; font: 12px ui-monospace, monospace; }
.carousel-controls b { color: white; }
.carousel { position: relative; min-width: 0; min-height: 700px; overflow: hidden; }
.carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .55s, transform .7s, visibility .55s; }
.carousel-slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-slide figcaption { position: absolute; left: 28px; right: 28px; bottom: 28px; padding: 18px 22px; display: flex; justify-content: space-between; gap: 24px; background: rgba(6,20,26,.88); border-left: 4px solid var(--cyan); }
.carousel-slide figcaption span { color: #adbec2; font-size: 13px; text-align: right; }

.updates-section { padding-bottom: 90px; }
.news-list { border-top: 1px solid #9fb7bb; }
.news-list article { min-height: 124px; padding: 25px 0; display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 26px; border-bottom: 1px solid #c6d6d8; }
.news-list time { color: var(--cyan-dark); font: 800 14px ui-monospace, monospace; }
.news-list h3 { margin-bottom: 6px; font-size: 20px; }
.news-list p { margin: 0; color: #687e85; font-size: 14px; }
.text-button, .danger-link { padding: 6px 0; color: var(--cyan-dark); background: none; border: 0; font-weight: 750; }
.text-button:hover { color: var(--ink); }

.sponsor-section { padding: 100px max(24px, calc((100vw - 1180px) / 2)); color: var(--ink); background: #dbe7e4; border-top: 1px solid #b6cbc7; border-bottom: 1px solid #b6cbc7; }
.sponsor-wall { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #9fb8b4; }
.sponsor-wall article { min-height: 210px; padding: 30px; border-right: 1px solid #9fb8b4; background: rgba(255,255,255,.34); }
.sponsor-wall article:last-child { border-right: 0; }
.sponsor-wall span { color: #8c6a24; font-size: 11px; font-weight: 800; }
.sponsor-wall h3 { margin: 40px 0 10px; font-size: 22px; }
.sponsor-wall p { margin: 0; color: #61756f; font-size: 13px; }

.message-layout { display: grid; grid-template-columns: 1.5fr .78fr; gap: 56px; align-items: start; }
.message-stream { border-top: 1px solid #acc0c4; }
.message-item { padding: 24px 0; display: grid; grid-template-columns: 48px 1fr; gap: 18px; border-bottom: 1px solid #c7d5d7; }
.player-avatar { width: 48px; height: 48px; display: grid; place-items: center; color: white; background: var(--cyan-dark); border: 4px solid #b8d9d7; font-weight: 900; image-rendering: pixelated; }
.message-item header { display: flex; justify-content: space-between; gap: 20px; }
.message-item time { color: #8aa0a5; font-size: 12px; }
.message-item p { margin: 7px 0 0; color: #50676f; }
.message-compose { padding: 30px; color: white; background: var(--ink-2); border-top: 5px solid var(--gold); box-shadow: var(--shadow); }
.message-compose .eyebrow { color: var(--gold); }
.message-compose > p { color: #9db2b7; }
.message-compose label { color: #bacacd; }
.message-compose input, .message-compose textarea { color: white; background: #102a34; border-color: #36515a; }
.empty-state { padding: 40px 0; color: #758c93; }

.join-band { padding: 68px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; color: white; background: var(--cyan-dark); border-top: 8px solid var(--gold); }
.join-band .eyebrow { color: #aaf5f0; }
.join-band h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); }
.join-band > div:last-child { text-align: right; }
.join-band p { margin: 9px 0 0; color: #b5e0df; }
.site-footer { padding: 42px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #a4b5b9; background: #041015; font-size: 12px; }
.site-footer > div { display: flex; align-items: center; gap: 14px; }
.site-footer p { margin: 0; }
.site-footer strong { color: white; font-size: 15px; }
.footer-legal { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.footer-legal a { color: #c4c3bc; border-bottom: 1px solid #6abe30; }
.footer-legal a:hover { color: white; }

.flash { position: fixed; z-index: 300; top: 92px; left: 50%; max-width: calc(100% - 32px); padding: 12px 18px; transform: translateX(-50%); color: white; background: var(--ink); border-left: 4px solid var(--cyan); box-shadow: var(--shadow); transition: opacity .3s, transform .3s; }
.flash-error { border-color: var(--coral); }
.flash-success { border-color: var(--green); }
.flash.fade { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.flash.static { position: static; margin-bottom: 24px; transform: none; }
.toast { position: fixed; z-index: 400; left: 50%; bottom: 28px; padding: 12px 18px; color: white; background: var(--ink); border: 1px solid #36505a; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.news-dialog { width: min(660px, calc(100% - 32px)); padding: 42px; color: var(--ink); background: var(--paper); border: 1px solid #8da9ae; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.news-dialog::backdrop { background: rgba(3,15,20,.72); }
.news-dialog h2 { font-size: 34px; }
.news-dialog p:last-child { white-space: pre-line; color: #526a72; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; color: var(--ink); background: transparent; border: 1px solid #a4b9bd; font-size: 22px; }

.stack-form { display: grid; gap: 16px; }
.stack-form label, .admin-form label, .admin-quick-form label, .upload-bar label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid #b7c9cc; border-radius: 2px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(8,127,134,.1); }
textarea { resize: vertical; }
.form-grid, .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span-2 { grid-column: 1 / -1; }
.check-row { display: flex !important; align-items: center; gap: 9px !important; }
.check-row input { width: 17px; height: 17px; }
.form-errors { margin-bottom: 20px; padding: 12px 14px; color: #8a2d1d; background: #ffe5df; border-left: 4px solid var(--coral); }
.form-note, .auth-switch { margin: 18px 0 0; color: #71878e; font-size: 12px; }
.auth-switch a { color: var(--cyan-dark); font-weight: 800; }

.auth-page { min-height: 100vh; background: var(--ink); }
.auth-page .site-header { background: rgba(7,20,27,.96); }
.auth-shell, .install-shell { width: min(1050px, calc(100% - 40px)); min-height: 660px; margin: 118px auto 70px; display: grid; grid-template-columns: 1fr 1fr; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.32); }
.install-shell { margin-top: 50px; }
.auth-visual { position: relative; padding: 64px; display: flex; flex-direction: column; justify-content: flex-end; color: white; background-color: #0d2a34; background-image: linear-gradient(rgba(51,214,209,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(51,214,209,.1) 1px, transparent 1px); background-size: 36px 36px; overflow: hidden; }
.auth-visual::before { content: ""; position: absolute; right: -45px; top: 70px; width: 190px; height: 190px; border: 42px solid rgba(213,168,71,.22); transform: rotate(18deg); }
.auth-visual img { position: absolute; left: 64px; top: 60px; image-rendering: pixelated; }
.auth-visual .eyebrow { color: var(--gold); }
.auth-visual h1 { margin-bottom: 22px; font-size: clamp(44px, 5vw, 68px); }
.auth-visual > p:last-child { color: #afc0c4; }
.auth-panel { padding: 64px; align-self: center; }
.auth-panel h2 { margin-bottom: 32px; font-size: 34px; }
.auth-panel hr { width: 100%; height: 1px; margin: 7px 0; background: #d9e2e3; border: 0; }

/* Admin */
.admin-page { min-height: 100vh; color: #dce7e9; background: #07151b; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; padding: 24px 18px; display: flex; flex-direction: column; background: #061116; border-right: 1px solid #20343c; }
.admin-brand { padding: 0 10px 24px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid #20343c; }
.admin-brand b { color: white; font-size: 16px; }
.admin-brand small { color: #6f8a92; font-size: 9px; }
.admin-sidebar nav { margin-top: 22px; display: grid; gap: 4px; }
.admin-sidebar nav a { min-height: 44px; padding: 10px 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; color: #8ca3a9; border-left: 3px solid transparent; font-size: 13px; }
.admin-sidebar nav a span { color: #49646c; font: 10px ui-monospace, monospace; }
.admin-sidebar nav a b { min-width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink); background: var(--gold); font-size: 10px; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: white; background: #10252d; border-left-color: var(--cyan); }
.admin-user { margin-top: auto; padding: 18px 10px 0; display: grid; border-top: 1px solid #20343c; }
.admin-user small { color: #69828a; }
.admin-user a { margin-top: 8px; color: var(--cyan); font-size: 12px; }
.admin-main { min-height: 100vh; margin-left: 258px; padding: 44px clamp(28px, 5vw, 76px) 80px; color: var(--ink); background: #eef4f3; }
.admin-topbar { margin-bottom: 36px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.admin-topbar h1 { margin: 0; font-size: 36px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #b5c8ca; }
.admin-stats article { min-height: 190px; padding: 24px; background: rgba(255,255,255,.58); border-right: 1px solid #b5c8ca; }
.admin-stats article:last-child { border-right: 0; }
.admin-stats span { color: #6e878e; font: 10px ui-monospace, monospace; }
.admin-stats strong { margin-top: 22px; display: block; color: var(--cyan-dark); font-size: 52px; line-height: 1; }
.admin-stats p { margin-top: 14px; color: #6c8187; font-size: 12px; }
.admin-welcome { margin-top: 28px; min-height: 360px; display: grid; grid-template-columns: .9fr 1.1fr; background: white; border: 1px solid #b9cacd; }
.admin-welcome > div { padding: 48px; align-self: center; }
.admin-welcome h2 { font-size: 34px; }
.admin-welcome p:last-child { color: #657b82; }
.admin-welcome img { width: 100%; height: 100%; object-fit: cover; }
.admin-form { display: grid; gap: 24px; }
.form-section { display: grid; grid-template-columns: 240px 1fr; background: white; border: 1px solid #b9cacd; }
.form-section > header { padding: 30px; background: #e3eceb; border-right: 1px solid #b9cacd; }
.form-section h2 { font-size: 19px; }
.form-section header p { color: #6f858b; font-size: 12px; }
.form-fields { padding: 30px; display: grid; gap: 16px; }
.admin-editor-grid { display: grid; grid-template-columns: 330px 1fr; gap: 26px; align-items: start; }
.admin-quick-form { position: sticky; top: 24px; padding: 26px; display: grid; gap: 14px; background: white; border-top: 4px solid var(--cyan-dark); box-shadow: var(--shadow); }
.admin-quick-form h2 { font-size: 20px; }
.welfare-editor { position: static; }
.welfare-time-grid, .welfare-access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.welfare-record label, .welfare-access-grid label, .welfare-time-grid label { display: grid; gap: 6px; color: #60777e; font-size: 12px; font-weight: 700; }
.welfare-access-grid select[multiple], .welfare-editor select[multiple] { min-height: 96px; }
.compact-note { margin: -5px 0 2px; line-height: 1.55; }
.admin-records { display: grid; gap: 14px; }
.record-card { padding: 22px; display: grid; gap: 12px; background: white; border: 1px solid #b8cacc; }
.record-head { display: grid; grid-template-columns: 1fr 140px; gap: 10px; }
.record-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.record-actions label { display: flex; align-items: center; gap: 7px; color: #6c8187; font-size: 12px; }
.record-actions input { width: 90px; padding: 7px; }
.danger-link { color: #b44331; }
.upload-bar { padding: 22px; display: grid; grid-template-columns: 1.1fr 1fr 1.5fr 100px auto; align-items: end; gap: 14px; background: white; border: 1px solid #b8cacc; }
.gallery-admin-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-admin-grid article { overflow: hidden; background: white; border: 1px solid #b8cacc; }
.gallery-admin-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-admin-grid article > div { padding: 16px; }
.gallery-admin-grid p { margin: 5px 0; color: #71868c; font-size: 12px; }
.moderation-list { display: grid; gap: 14px; }
.moderation-list > article { padding: 24px; background: white; border: 1px solid #b8cacc; }
.moderation-list header, .moderation-list footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.moderation-list header div { display: grid; }
.moderation-list header span, .moderation-list time { color: #7a9096; font-size: 11px; }
.moderation-list > article > p { margin: 22px 0; color: #405960; }
.moderation-list footer form { display: flex; gap: 14px; }
.status-pill { padding: 4px 8px; font-size: 11px; background: #dbe5e5; }
.status-approved { color: #17633b; background: #d8f3e3; }
.status-rejected { color: #8c3325; background: #f7ddd8; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid #b8cacc; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #d4dfe0; font-size: 12px; white-space: nowrap; }
th { color: #60777e; background: #e6eeee; }
.inline-form { display: flex; gap: 8px; }
.inline-form select { width: 100px; padding: 6px; }
.log-filter { margin-bottom: 18px; padding: 18px; display: grid; grid-template-columns: 180px minmax(260px, 1fr) auto auto auto; align-items: end; gap: 12px; background: white; border: 1px solid #b8cacc; }
.log-filter label { display: grid; gap: 6px; color: #60777e; font-size: 11px; font-weight: 700; }
.log-filter > span { align-self: center; color: #71868c; font-size: 12px; text-align: right; }
.log-table code { display: block; margin-top: 4px; color: #71868c; font-size: 10px; }
.log-table .log-detail { min-width: 260px; max-width: 520px; white-space: normal; overflow-wrap: anywhere; line-height: 1.55; }
.log-category { padding: 4px 8px; display: inline-block; color: #0c5965; background: #d9f0f2; border-left: 3px solid var(--cyan-dark); font-weight: 800; }
.log-empty { padding: 42px; color: #71868c; text-align: center; }
.log-pagination { margin-top: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 14px; color: #60777e; font-size: 12px; }
.log-pagination a { padding: 8px 12px; color: white; background: var(--cyan-dark); }

/* Minecraft identity layer */
.home-page { background-color: #f2f7f5; background-image: linear-gradient(rgba(29,78,84,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,84,.035) 1px, transparent 1px); background-size: 24px 24px; }
.home-page .site-header.scrolled { background-color: rgba(7,20,27,.97); background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 12px 12px; }
.site-nav a { display: inline-flex; align-items: center; gap: 7px; }
.nav-key { width: 19px; height: 19px; display: inline-grid; place-items: center; color: #b9c9cc; background: rgba(3,15,20,.58); border: 1px solid rgba(255,255,255,.32); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); font: 700 9px ui-monospace, monospace; }
.site-header.scrolled .nav-key { color: var(--cyan); border-color: #38525a; }
.brand img { box-shadow: 3px 3px 0 rgba(0,0,0,.34); }

.hero h1 { text-shadow: 4px 5px 0 rgba(3,12,15,.62), 0 18px 42px rgba(0,0,0,.3); }
.hero h1 span { text-shadow: 2px 2px 0 rgba(0,0,0,.72); }
.mc-crosshair { position: absolute; z-index: 3; left: 50%; top: 49%; width: 27px; height: 27px; opacity: .45; transform: translate(-50%,-50%); filter: drop-shadow(1px 1px 0 rgba(0,0,0,.85)); }
.mc-crosshair::before, .mc-crosshair::after { content: ""; position: absolute; background: rgba(255,255,255,.92); }
.mc-crosshair::before { left: 12px; top: 0; width: 3px; height: 27px; }
.mc-crosshair::after { left: 0; top: 12px; width: 27px; height: 3px; }
.world-hud { position: absolute; z-index: 4; left: 40px; top: 108px; display: flex; gap: 18px; color: rgba(225,242,243,.76); font: 700 9px ui-monospace, monospace; text-shadow: 1px 1px #000; }
.world-hud span { padding-left: 9px; border-left: 3px solid var(--cyan); }
.advancement-toast { position: absolute; z-index: 4; right: 40px; top: 108px; min-width: 270px; padding: 9px 14px 9px 9px; display: flex; align-items: center; gap: 12px; color: white; background: rgba(6,18,22,.9); border: 2px solid #58666a; box-shadow: inset 0 0 0 2px #18272c, 4px 4px 0 rgba(0,0,0,.34); }
.advancement-toast > span:last-child { display: grid; }
.advancement-toast small { color: var(--gold); font-size: 10px; }
.advancement-toast strong { font-size: 13px; }
.advancement-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #16282e; border: 2px solid #8b9a9d; box-shadow: inset 0 0 0 2px #07141b; }
.advancement-icon i { width: 17px; height: 23px; background: #55bd67; box-shadow: -7px -5px 0 #72d978, 7px -5px 0 #3d9651, 0 8px 0 #74513b; }

.hero-hotbar { position: absolute; z-index: 4; left: max(28px, calc((100vw - 1180px) / 2)); bottom: 22px; padding: 4px; display: flex; background: rgba(18,25,27,.82); border: 2px solid rgba(220,230,229,.58); box-shadow: inset 0 0 0 2px rgba(0,0,0,.55), 4px 4px 0 rgba(0,0,0,.3); }
.hotbar-slot { position: relative; width: 55px; height: 55px; display: grid; place-items: center; background: rgba(26,39,42,.92); border: 2px solid #647276; box-shadow: inset 0 0 0 2px #172326; }
.hotbar-slot + .hotbar-slot { margin-left: 2px; }
.hotbar-slot.active { border-color: white; box-shadow: inset 0 0 0 2px #aeb9ba; }
.hotbar-slot b { position: absolute; right: 3px; bottom: 1px; color: white; font: 700 9px ui-monospace, monospace; text-shadow: 1px 1px #000; }
.hotbar-item { position: relative; width: 28px; height: 28px; display: block; image-rendering: pixelated; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.45)); }
.item-sapling { width: 10px; height: 21px; background: #795238; box-shadow: -8px -6px 0 #56a85d, 0 -10px 0 #70c871, 8px -5px 0 #3c874b; }
.item-sieve { border: 5px solid #8b5c37; background: repeating-linear-gradient(45deg, transparent 0 3px, #bec8c3 3px 4px); transform: perspective(30px) rotateX(18deg); }
.item-gear { border: 7px solid #a87635; background: #172326; transform: rotate(45deg); box-shadow: 5px 0 #c89548, -5px 0 #7a542b, 0 5px #c89548, 0 -5px #7a542b; }
.item-core { width: 21px; height: 21px; background: #56e3df; border: 4px solid #d5ffff; transform: rotate(45deg); box-shadow: inset 4px 4px #168c96; }
.item-chest { width: 29px; height: 23px; background: #9b6436; border: 3px solid #55371f; box-shadow: inset 0 -9px #754826; }
.item-chest::after { content: ""; position: absolute; left: 10px; top: 8px; width: 5px; height: 7px; background: #d9b35b; }

.server-rail { border: 3px solid #d7e2e1; border-top: 5px solid var(--gold); box-shadow: inset 0 0 0 2px #7b8c90, 7px 7px 0 rgba(2,12,16,.38); }
.btn, .rail-copy { border-radius: 0; box-shadow: inset 0 -3px rgba(0,0,0,.16), inset 0 2px rgba(255,255,255,.18), 3px 3px 0 rgba(3,18,24,.15); }
.btn:active, .rail-copy:active { transform: translate(2px,2px); box-shadow: inset 0 2px rgba(0,0,0,.2); }
.block-strata { height: 27px; display: grid; grid-template-rows: repeat(3,9px); overflow: hidden; }
.block-strata span:nth-child(1) { background-color: #5ca454; background-image: repeating-linear-gradient(90deg, transparent 0 12px, rgba(194,238,129,.28) 12px 17px, transparent 17px 27px); }
.block-strata span:nth-child(2) { background-color: #79543a; background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(45,28,19,.25) 18px 24px, transparent 24px 35px); }
.block-strata span:nth-child(3) { background-color: #36464a; background-image: repeating-linear-gradient(90deg, transparent 0 25px, rgba(6,20,25,.36) 25px 31px, transparent 31px 45px); }
.notice-band { border-bottom: 1px solid #284049; }
.notice-band span::before { content: ">"; margin-right: 9px; color: var(--green); }

.section-intro::before { width: 16px; height: 16px; background: var(--gold); box-shadow: 20px 0 #c5d1cf, 40px 0 #5a777e, 60px 0 var(--cyan-dark), 80px 0 #86a94c; }
.feature-grid { border-width: 2px; border-color: #93a9ad; box-shadow: 8px 8px 0 rgba(7,20,27,.08); }
.feature-card { min-height: 275px; background-color: rgba(255,255,255,.72); background-image: linear-gradient(rgba(8,127,134,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(8,127,134,.035) 1px, transparent 1px); background-size: 16px 16px; border-color: #a8bcbf; transition: transform .18s, background-color .18s; }
.feature-card:hover { z-index: 2; transform: translate(-3px,-3px); background-color: #fff; box-shadow: 6px 6px 0 #a5bdbe; }
.feature-card::after { width: 7px; }
.feature-top { min-height: 70px; margin-bottom: 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.inventory-slot { width: 58px; height: 58px; display: grid; place-items: center; background: #21343a; border: 3px solid #94a7aa; box-shadow: inset 0 0 0 3px #0d2027, 4px 4px 0 #bfd0d0; }
.feature-code { margin: 4px 0 0; color: #718b90; }
.voxel-icon { position: relative; width: 30px; height: 30px; display: block; background: var(--cyan); image-rendering: pixelated; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.42)); }
.voxel-island { background: #6cb55e; box-shadow: inset 0 -18px #80583c, inset 0 -22px #9c704e; }
.voxel-gear { width: 27px; height: 27px; background: #a77735; border: 7px solid #d0a552; transform: rotate(45deg); box-shadow: 6px 0 #82602d, -6px 0 #82602d, 0 6px #82602d, 0 -6px #82602d; }
.voxel-core { width: 23px; height: 23px; background: #51e4de; border: 4px solid #d5ffff; transform: rotate(45deg); box-shadow: inset 5px 5px #147f8e; }
.voxel-coin { width: 30px; height: 23px; background: #efc344; border: 4px solid #9f7224; box-shadow: inset 5px 0 #ffe27e, inset -5px 0 #bd8e2d; }
.voxel-team { width: 19px; height: 22px; margin-left: 9px; background: #5ec7c0; border: 3px solid #d8ffff; box-shadow: -12px 8px 0 #d0a552, -12px 8px 0 3px #fff1bf; }
.voxel-spark { width: 10px; height: 30px; background: #77f4ef; box-shadow: -10px 10px #77f4ef, 10px 10px #77f4ef, 0 0 0 5px rgba(119,244,239,.18); }
.voxel-spark::after { content: ""; position: absolute; left: -10px; top: 10px; width: 30px; height: 10px; background: #77f4ef; }

.video-frame { border: 5px solid #213840; box-shadow: inset 0 0 0 3px #6c8085, 10px 10px 0 rgba(7,20,27,.12); }
.video-frame::before { content: "VIDEO FEED / DREAMSNOWLY"; position: absolute; z-index: 2; left: 18px; top: 16px; padding: 5px 8px; color: #c8e7e7; background: rgba(3,16,21,.76); border-left: 3px solid var(--cyan); font: 700 9px ui-monospace, monospace; pointer-events: none; }
.gallery-section { border-top: 9px solid #2d4248; border-bottom: 9px solid #2d4248; }
.gallery-copy { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 16px 16px; }
.carousel-slide figcaption { border: 3px solid #5f777e; border-left: 6px solid var(--cyan); box-shadow: inset 0 0 0 2px #10262e, 5px 5px 0 rgba(0,0,0,.3); }
.news-list time { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; }
.news-list time i { width: 30px; height: 30px; background: #20353c; border: 3px solid #8ba0a4; box-shadow: inset 0 0 0 3px #0b1d23; }
.news-list time i::after { content: ""; display: block; width: 12px; height: 12px; margin: 6px; background: var(--gold); transform: rotate(45deg); }
.sponsor-section { background-color: #dbe7e4; background-image: linear-gradient(rgba(75,112,112,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(75,112,112,.055) 1px, transparent 1px); background-size: 20px 20px; }
.sponsor-wall { border: 3px solid #718d89; box-shadow: 7px 7px 0 #b2c6c2; }
.sponsor-wall article { position: relative; }
.sponsor-wall article::after { content: ""; position: absolute; right: 22px; top: 22px; width: 18px; height: 18px; background: #d5a847; box-shadow: 6px 6px 0 #89682b; }
.message-compose { border: 4px solid #62777c; border-top: 7px solid var(--gold); box-shadow: inset 0 0 0 3px #0b1d23, 8px 8px 0 rgba(7,20,27,.12); }
.join-band { position: relative; background-color: var(--cyan-dark); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 20px 20px; }
.join-band::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: repeating-linear-gradient(90deg, #d5a847 0 32px, #f1ce75 32px 48px, #9f762b 48px 64px); }
.footer-cubes { gap: 5px !important; }
.footer-cubes i { width: 14px; height: 14px; background: #2a454d; box-shadow: inset 0 -5px #193038; }
.footer-cubes i:nth-child(2) { background: #4f844d; box-shadow: inset 0 -5px #63432f; }
.footer-cubes i:nth-child(3) { background: #b98d3c; box-shadow: inset 0 -5px #74552b; }

/* mc2.dreamsnowly.cn-inspired public theme; page layout stays unchanged. */
body.home-page, body.auth-page {
  --ink: #15140f;
  --ink-2: #22221d;
  --ink-3: #2b2b2b;
  --paper: #15140f;
  --mist: #302f29;
  --muted: #aaa69b;
  --cyan: #6abe30;
  --cyan-dark: #4e9725;
  --gold: #ffd21f;
  --green: #6abe30;
  --line: rgba(106,190,48,.22);
  --shadow: 7px 7px 0 rgba(0,0,0,.55);
}
.home-page { color: #ececec; background-color: #15140f; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px), linear-gradient(90deg, rgba(106,190,48,.025), transparent 38%, rgba(255,210,31,.02)); background-size: auto, 100% 100%; }
.home-page .site-header, .home-page .site-header.scrolled, .auth-page .site-header { height: 64px; color: #ececec; background: #2b2b2b; border-top: 3px solid #393939; border-bottom: 4px solid #080808; box-shadow: 0 3px 0 rgba(106,190,48,.16); }
.home-page .brand small, .auth-page .brand small { color: #a9a69c; }
.home-page .site-nav { gap: 22px; }
.home-page .site-nav a, .auth-page .site-nav a { color: #c8c4b9; font-weight: 700; text-shadow: 2px 2px #111; }
.home-page .site-nav a:hover, .auth-page .site-nav a:hover { color: white; }
.home-page .site-nav a.active { color: #fff; }
.home-page .site-nav a.active .nav-key { color: #11120d; background: #6abe30; border-color: #080808; box-shadow: inset 0 0 0 1px #9be16d, 2px 2px 0 #080808; }
.home-page .site-nav a.active::after { width: 100%; }
.home-page .site-nav a::after, .auth-page .site-nav a::after { height: 3px; background: #6abe30; box-shadow: 0 2px #101010; }
.home-page .nav-key, .auth-page .nav-key { color: #d9d9d5; background: #1b1b1b; border: 2px solid #080808; box-shadow: inset 0 0 0 1px #555; }
.home-page .site-nav .nav-account, .auth-page .site-nav .nav-account { padding: 8px 15px; color: white; background: #232323; border: 3px solid #080808; box-shadow: inset 0 0 0 2px #545454, 3px 3px 0 #111; }
.home-page .hero { background: #11120c; border-bottom: 4px solid #080808; }
.home-page .hero-media { filter: saturate(.58) brightness(.58) contrast(1.18); }
.home-page .hero-shade { background: rgba(12,13,7,.52); box-shadow: inset 0 -260px 190px rgba(10,10,6,.72), inset 620px 0 340px rgba(8,9,5,.55); }
.home-page .hero::before { border-color: rgba(106,190,48,.42); border-bottom-color: transparent; }
.home-page .hero::after { background: #ffd21f; box-shadow: 64px 0 #6abe30; }
.home-page .hero-content .eyebrow, .home-page .world-hud { color: #86d84e; }
.home-page .hero h1 { color: #fff; text-shadow: 5px 6px 0 #080808, 0 16px 36px rgba(0,0,0,.5); }
.home-page .hero h1 span { color: #6abe30; text-shadow: 3px 3px 0 #10100b; }
.home-page .hero-copy { color: #d0cdc3; text-shadow: 2px 2px #111; }
.home-page .world-hud span { border-left-color: #6abe30; }
.home-page .advancement-toast { background: #292929; border: 3px solid #080808; box-shadow: inset 0 0 0 2px #565656, 5px 5px 0 rgba(0,0,0,.65); }
.home-page .advancement-toast small { color: #ffd21f; }
.home-page .advancement-icon { background: #1b1b1b; border-color: #777; box-shadow: inset 0 0 0 2px #080808; }
.home-page .hero-hotbar { background: #202020; border: 3px solid #070707; box-shadow: inset 0 0 0 2px #747474, 5px 5px 0 rgba(0,0,0,.6); }
.home-page .hotbar-slot { background: #2b2b2b; border-color: #101010; box-shadow: inset 0 0 0 2px #656565; }
.home-page .hotbar-slot.active { border-color: #080808; box-shadow: inset 0 0 0 3px #f2f2ed, 0 0 0 2px #6abe30; }
.home-page .server-rail { color: #ececec; background: #292929; border: 4px solid #080808; border-top-color: #6abe30; box-shadow: inset 0 0 0 2px #555, 7px 7px 0 rgba(0,0,0,.58); }
.home-page .server-rail small { color: #aaa69b; }
.home-page .server-rail.online .status-light { animation: statusPulse 1.8s steps(2, end) infinite; }
.home-page .rail-copy { color: #14140f; background: #6abe30; border: 3px solid #080808; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 3px 3px 0 #080808; }
.home-page .btn { border: 3px solid #080808; box-shadow: inset 0 0 0 2px rgba(255,255,255,.16), 4px 4px 0 rgba(0,0,0,.68); }
.home-page .btn-primary { color: #10120c; background: #6abe30; border-color: #080808; }
.home-page .btn-primary:hover { background: #83d94b; }
.home-page .btn-ghost { color: #15140f; background: #ffd21f; border-color: #080808; }
.home-page .block-strata { height: 18px; grid-template-rows: repeat(3,6px); border-bottom: 3px solid #080808; }
.home-page .notice-band { color: #ececec; background: #1e1e1a; border-bottom: 4px solid #080808; }
.home-page .notice-band span { color: #ffd21f; }
.home-page .notice-band span::before { color: #6abe30; }
.home-page .notice-band p { color: #bdb9af; }
.home-page .section-heading h2 { color: #f4f3ee; text-shadow: 3px 3px #070707; }
.home-page .section-heading > p:last-child, .home-page .split-heading > p, .home-page .gallery-copy > p:last-of-type { color: #a8a49a; }
.home-page .eyebrow { color: #6abe30; text-shadow: 2px 2px #080808; }
.home-page .section-intro::before { background: #ffd21f; box-shadow: 20px 0 #6abe30, 40px 0 #73736d, 60px 0 #4a4a46, 80px 0 #2d2d29; }
.home-page .feature-grid { border-color: #080808; box-shadow: 8px 8px 0 #080808; }
.home-page .feature-card { background-color: #2b2b2b; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 4px); border-color: #080808; }
.home-page .feature-card:hover { background-color: #333330; box-shadow: 6px 6px 0 #6abe30; }
.home-page .feature-card::after { background: #6abe30; }
.home-page .feature-card h3 { color: #f1f0eb; }
.home-page .feature-card p { color: #aaa69d; }
.home-page .feature-code { color: #83c95a; }
.home-page .inventory-slot { background: #1b1b1b; border-color: #080808; box-shadow: inset 0 0 0 3px #626262, 4px 4px 0 #080808; }
.home-page .video-frame { background: #10100d; border-color: #080808; box-shadow: inset 0 0 0 3px #424242, 9px 9px 0 #080808; }
.home-page .video-frame::before { color: #8bd851; background: rgba(17,17,13,.9); border-left-color: #6abe30; }
.home-page .video-placeholder { background-color: #20201b; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); }
.home-page .video-placeholder span { color: #11120d; background: #ffd21f; }
.home-page .video-placeholder p { color: #aaa69c; }
.home-page .gallery-section { background: #12120f; border-color: #080808; }
.home-page .gallery-copy { background-color: #1a1a16; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-right: 4px solid #080808; }
.home-page .gallery-copy .eyebrow { color: #6abe30; }
.home-page .carousel-controls button { color: white; background: #292929; border: 3px solid #080808; box-shadow: inset 0 0 0 2px #555, 3px 3px #080808; }
.home-page .carousel-controls button:hover { color: #111; background: #ffd21f; border-color: #080808; }
.home-page .carousel-progress { width: 88px; height: 6px; display: block; overflow: hidden; background: #080808; border: 1px solid #4a4a44; }
.home-page .carousel-progress i { width: 20%; height: 100%; display: block; background: #6abe30; box-shadow: inset 0 0 0 1px #93e05f; transition: width .45s steps(5, end); }
.home-page .carousel-slide img { transition: transform .8s ease, filter .35s ease; }
.home-page .carousel:hover .carousel-slide.active img { transform: scale(1.025); filter: saturate(1.08) contrast(1.04); }
.home-page .carousel-slide figcaption { background: rgba(31,31,27,.94); border-color: #080808; border-left-color: #6abe30; box-shadow: inset 0 0 0 2px #555, 5px 5px 0 #080808; }
.home-page .updates-section { color: #ececec; }
.home-page .news-list { border-color: #070707; box-shadow: 0 -3px #474741; }
.home-page .news-list article { border-color: #34342f; }
.home-page .news-list article { position: relative; transition: background .18s, padding-left .18s; }
.home-page .news-list article::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 0; background: #6abe30; transition: width .18s; }
.home-page .news-list article:hover { padding-left: 18px; background: rgba(106,190,48,.045); }
.home-page .news-list article:hover::before { width: 4px; }
.home-page .news-list h3 { color: #efeee9; }
.home-page .news-list p { color: #a6a299; }
.home-page .news-list time, .home-page .text-button { color: #76c83f; }
.home-page .news-list time i { background: #292929; border-color: #080808; box-shadow: inset 0 0 0 3px #555, 3px 3px #080808; }
.home-page .news-list time i::after { background: #ffd21f; }
.home-page .sponsor-section { color: #ececec; background-color: #1a1a16; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-color: #080808; }
.home-page .sponsor-wall { border-color: #080808; box-shadow: 7px 7px 0 #080808; }
.home-page .sponsor-wall article { background: #2b2b2b; border-color: #080808; }
.home-page .sponsor-wall span { color: #ffd21f; }
.home-page .sponsor-wall h3 { color: #f2f1ec; }
.home-page .sponsor-wall p { color: #aaa69c; }
.home-page .sponsor-wall article::after { background: #6abe30; box-shadow: 6px 6px 0 #080808; }
.home-page .btn-dark { color: #11120d; background: #ffd21f; border-color: #080808; }
.home-page .message-stream { border-color: #3a3a34; }
.home-page .message-item { border-color: #34342f; }
.home-page .player-avatar { color: #10120d; background: #6abe30; border-color: #080808; box-shadow: inset 0 0 0 2px #9de269, 3px 3px #080808; }
.home-page .message-item p { color: #b4b0a6; }
.home-page .message-item time { color: #7f7c74; }
.home-page .message-compose { background: #292929; border-color: #080808; border-top-color: #ffd21f; box-shadow: inset 0 0 0 3px #555, 8px 8px 0 #080808; }
.home-page .message-compose input, .home-page .message-compose textarea { color: #ececec; background: #1c1c19; border: 3px solid #080808; box-shadow: inset 0 0 0 1px #555; }
.home-page .join-band { background-color: #20201b; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-top-color: #6abe30; }
.home-page .join-band::before { background: repeating-linear-gradient(90deg, #6abe30 0 32px, #8bd854 32px 48px, #ffd21f 48px 64px); }
.home-page .btn-light { color: #11120d; background: #ffd21f; }
.home-page .site-footer { color: #8e8b83; background: #0d0d0a; border-top: 4px solid #080808; }
.home-page .news-dialog { color: #ececec; background: #292929; border: 4px solid #080808; box-shadow: inset 0 0 0 2px #555, 8px 8px 0 rgba(0,0,0,.7); }
.home-page .news-dialog p:last-child { color: #b7b3a9; }
.home-page .dialog-close { color: white; border-color: #080808; background: #3a3a36; }

.auth-page { color: #ececec; background-color: #15140f; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); }
.auth-page .auth-shell { background: #2b2b2b; border: 4px solid #080808; box-shadow: 9px 9px 0 #080808; }
.auth-page .auth-visual { background-color: #1a1a15; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px); border-right: 4px solid #080808; }
.auth-page .auth-visual::before { border-color: rgba(106,190,48,.18); }
.auth-page .auth-panel h2 { color: white; }
.auth-page .auth-panel label { color: #c8c4ba; }
.auth-page .auth-panel input { color: #ececec; background: #1b1b18; border: 3px solid #080808; box-shadow: inset 0 0 0 1px #555; }
.auth-page .auth-switch { color: #aaa69d; }
.auth-page .auth-switch a { color: #78ca42; }
.auth-page .btn-primary { color: #11120d; background: #6abe30; border: 3px solid #080808; box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 4px 4px 0 #080808; }
.verification-note { margin-bottom: 24px; color: #aaa69d; }
.verification-note strong { color: #ffd21f; }
.code-input { font: 800 30px ui-monospace, monospace; text-align: center; }
.verification-actions { margin-top: 18px; display: flex; align-items: center; gap: 22px; }
.verification-actions form { margin: 0; }
.auth-page .verification-actions .text-button { color: #79cb43; }
.mail-offline { padding: 20px; color: #c7c3b9; background: #1b1b18; border: 3px solid #080808; box-shadow: inset 0 0 0 1px #555; }
.mail-offline strong { color: #ffd21f; }
.mail-offline p { margin: 7px 0 0; color: #99958c; }
.admin-login-page .auth-visual { border-top: 8px solid #ffd21f; }
.code-editor { min-height: 430px; font: 12px/1.55 ui-monospace, Consolas, monospace; white-space: pre; tab-size: 2; }
.mail-test-form { margin-top: 24px; padding: 24px; display: grid; grid-template-columns: 1fr minmax(240px, 360px) auto; align-items: end; gap: 20px; color: var(--ink); background: white; border: 1px solid #b8cacc; }
.mail-test-form h2 { margin-bottom: 6px; font-size: 20px; }
.mail-test-form p { margin: 0; color: #71868c; font-size: 12px; }
.mail-test-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.mail-test-form .btn { margin: 0; }
.admin-path-note { margin-top: 18px; padding: 13px 16px; color: #526a72; background: #dfe9e8; border-left: 4px solid var(--cyan-dark); }
.admin-path-note code { color: var(--ink); font-weight: 800; }

.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .48s ease var(--reveal-delay, 0ms), transform .48s ease var(--reveal-delay, 0ms); }
.reveal-ready.revealed { opacity: 1; transform: translateY(0); }

@keyframes statusPulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(106,190,48,.12); } 50% { box-shadow: 0 0 0 9px rgba(106,190,48,.04); } }

@keyframes heroReveal { from { opacity: .25; transform: scale(1.06); } to { opacity: 1; transform: scale(1.015); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  :root { --content: min(100% - 36px, 760px); }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; top: 68px; right: 18px; width: min(320px, calc(100% - 36px)); padding: 18px; display: none; align-items: stretch; gap: 4px; background: var(--ink); border: 1px solid #37505a; box-shadow: var(--shadow); }
  .home-page .site-nav, .auth-page .site-nav { top: 64px; background: #2b2b2b; border: 4px solid #080808; box-shadow: inset 0 0 0 2px #555, 6px 6px 0 #080808; }
  .site-nav.open { display: grid; }
  .site-nav a { padding: 12px; }
  .hero-hotbar { display: none; }
  .world-hud { left: 22px; }
  .advancement-toast { right: 22px; }
  .hero { min-height: 720px; }
  .hero::before, .hero::after { display: none; }
  .hero-content { padding-top: 170px; }
  .server-rail { left: 18px; right: 18px; width: auto; grid-template-columns: 18px 1fr 1fr auto; }
  .server-address { display: none !important; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-section { grid-template-columns: 1fr; }
  .gallery-copy { padding: 76px max(24px, calc((100vw - 760px) / 2)); }
  .carousel { min-height: 560px; }
  .message-layout, .split-heading { grid-template-columns: 1fr; }
  .sponsor-wall { grid-template-columns: 1fr; }
  .sponsor-wall article { border-right: 0; border-bottom: 1px solid #9fb8b4; }
  .sponsor-wall article:last-child { border-bottom: 0; }
  .admin-sidebar { position: static; width: 100%; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(4, 1fr); }
  .admin-user { display: none; }
  .admin-main { margin-left: 0; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-stats article:nth-child(2) { border-right: 0; }
  .admin-stats article:nth-child(-n+2) { border-bottom: 1px solid #b5c8ca; }
  .admin-editor-grid { grid-template-columns: 1fr; }
  .admin-quick-form { position: static; }
  .upload-bar { grid-template-columns: 1fr 1fr; }
  .log-filter { grid-template-columns: 1fr 1fr; }
  .mail-test-form { grid-template-columns: 1fr; }
  .gallery-admin-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  :root { --content: calc(100% - 28px); }
  .site-header { height: 68px; padding: 0 14px; }
  .home-page .site-header, .home-page .site-header.scrolled, .auth-page .site-header { height: 64px; }
  .brand b { font-size: 15px; }
  .brand img { width: 36px; height: 36px; }
  .hero { height: 760px; min-height: 760px; }
  .hero-media { object-position: 58% 50%; }
  .hero-shade { background: rgba(3,15,20,.62); box-shadow: inset 0 -240px 180px rgba(2,13,18,.58); }
  .hero-content { padding-top: 142px; }
  .hero h1 { font-size: 43px; overflow-wrap: anywhere; }
  .hero h1 span { font-size: 15px; }
  .hero-copy { font-size: 15px; }
  .world-hud, .mc-crosshair { display: none; }
  .advancement-toast { left: 14px; right: 14px; top: 82px; min-width: 0; }
  .hero-hotbar { left: 50%; bottom: 135px; padding: 3px; display: flex; transform: translateX(-50%); }
  .hotbar-slot { width: 43px; height: 43px; }
  .hotbar-item { transform: scale(.72); }
  .item-gear, .item-core { transform: scale(.72) rotate(45deg); }
  .hero-actions .btn { width: 100%; }
  .server-rail { min-height: 116px; padding: 14px; grid-template-columns: 14px 1fr 1fr; gap: 10px; }
  .rail-copy { grid-column: 1 / -1; width: 100%; }
  .notice-band { grid-template-columns: 1fr; gap: 5px; }
  .section { padding: 76px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 210px; }
  .video-frame { aspect-ratio: 16/11; }
  .video-placeholder { padding: 20px; text-align: center; }
  .gallery-copy { padding: 70px 22px; }
  .carousel { min-height: 380px; }
  .carousel-slide figcaption { left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; }
  .carousel-slide figcaption span { text-align: left; }
  .news-list article { grid-template-columns: 58px 1fr; }
  .news-list .text-button { grid-column: 2; justify-self: start; }
  .message-layout { gap: 30px; }
  .message-compose { padding: 22px; }
  .join-band, .site-footer { align-items: flex-start; flex-direction: column; }
  .footer-legal { justify-content: flex-start; }
  .join-band > div:last-child { width: 100%; text-align: left; }
  .join-band .btn { width: 100%; }
  .form-grid, .two-col, .auth-shell, .install-shell { grid-template-columns: 1fr; }
  .auth-shell, .install-shell { width: calc(100% - 24px); margin-top: 88px; }
  .install-shell { margin-top: 12px; }
  .auth-visual { min-height: 330px; padding: 36px; }
  .auth-visual img { left: 36px; top: 32px; }
  .auth-panel { padding: 34px 26px; }
  .admin-sidebar { padding: 16px 12px; }
  .admin-sidebar nav { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 28px 14px 60px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar .btn { display: none; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-stats article { border-right: 0; border-bottom: 1px solid #b5c8ca !important; }
  .admin-welcome { grid-template-columns: 1fr; }
  .admin-welcome > div { padding: 30px; }
  .admin-welcome img { height: 250px; }
  .form-section { grid-template-columns: 1fr; }
  .form-section > header { border-right: 0; border-bottom: 1px solid #b9cacd; }
  .record-head, .upload-bar { grid-template-columns: 1fr; }
  .log-filter { grid-template-columns: 1fr; }
  .log-filter > span { text-align: left; }
  .gallery-admin-grid { grid-template-columns: 1fr; }
  .moderation-list header, .moderation-list footer { align-items: flex-start; flex-direction: column; }
  .news-dialog { padding: 34px 24px; }
}

/* Player account console: Minecraft world texture + restrained control-room UI. */
body.account-page {
  color: #edf8fa;
  background: #07141b url("../images/gallery/island-border.webp") center 68px / cover fixed no-repeat;
  background-blend-mode: soft-light;
  background-color: #07141b;
}
body.account-page::before {
  content: "";
  position: fixed;
  inset: 68px 0 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(4, 16, 23, .78);
}
body.account-page .site-header {
  height: 68px;
  background: rgba(5, 18, 25, .96);
  border-bottom: 2px solid rgba(51, 214, 209, .4);
  box-shadow: 0 4px 0 rgba(4, 10, 14, .72);
}
body.account-page .site-nav a { color: #c5dfe2; }
body.account-page .site-nav a:hover { color: #fff; }
body.account-page .site-nav a::after { background: #33d6d1; }
body.account-page .site-nav .nav-account { color: #07141b; background: #f0c95b; border: 2px solid #07141b; box-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.account-shell { max-width: 1280px; padding-top: 126px; }
.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr);
  min-height: 300px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(128, 218, 221, .42);
  background: rgba(7, 25, 32, .93);
  box-shadow: 10px 10px 0 rgba(2, 8, 12, .62), inset 0 0 0 1px rgba(255,255,255,.05);
}
.account-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #f0c95b;
  box-shadow: 0 5px 0 rgba(51, 214, 209, .5);
}
.account-hero-copy { padding: 56px 54px 44px; }
.account-hero .eyebrow { display: flex; align-items: center; gap: 9px; color: #65e1dc; }
.pixel-marker { width: 10px; height: 10px; display: inline-block; background: #f0c95b; box-shadow: 5px 5px 0 #33d6d1; }
.account-hero h1 { margin: 0 0 16px; color: #fff; font-size: 52px; line-height: 1; text-shadow: 4px 4px 0 #031015; }
.account-hero p:not(.eyebrow) { max-width: 610px; margin-bottom: 28px; color: #a9c6ca; font-size: 16px; }
.account-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.account-hero-meta span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: #cbe4e6; background: rgba(17, 50, 59, .9); border: 1px solid rgba(102, 208, 211, .35); font: 700 11px var(--mono); }
.account-hero-meta b { color: #f0c95b; }
.account-hero-art { position: relative; min-height: 300px; border-left: 1px solid rgba(128, 218, 221, .3); overflow: hidden; }
.account-hero-art::after { content: ""; position: absolute; inset: 0; background: rgba(3, 17, 23, .25); box-shadow: inset 24px 0 50px rgba(3, 17, 23, .7); }
.account-hero-art img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; filter: saturate(.86) contrast(1.08); }
.account-hero-art div { position: absolute; z-index: 1; right: 24px; bottom: 22px; display: grid; gap: 4px; text-align: right; text-shadow: 2px 2px 0 #031015; }
.account-hero-art span { color: #73e0dc; font: 700 10px var(--mono); }
.account-hero-art strong { color: #fff; font-size: 22px; }
.account-grid { grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: 24px; }
.account-panel, .account-help { position: relative; padding: 28px; border: 1px solid rgba(128, 218, 221, .34); border-top: 4px solid #33d6d1; background: rgba(7, 25, 32, .94); box-shadow: 7px 7px 0 rgba(2, 8, 12, .58), inset 0 0 0 1px rgba(255,255,255,.04); }
.account-panel::after, .account-help::after { content: ""; position: absolute; top: 12px; right: 14px; width: 28px; height: 6px; border-top: 2px solid #f0c95b; border-bottom: 2px solid #33d6d1; opacity: .8; }
.panel-heading { margin-bottom: 24px; }
.panel-heading .eyebrow, .account-help .eyebrow { color: #65e1dc; }
.panel-heading h2, .account-help h2 { color: #fff; text-shadow: 2px 2px 0 #031015; }
.pixel-badge { width: 42px; height: 42px; color: #f0c95b; border: 2px solid #f0c95b; background: rgba(240, 201, 91, .08); box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.binding-state { min-height: 74px; border: 1px solid rgba(128, 218, 221, .22); background: rgba(10, 40, 48, .72); }
.binding-state.is-bound { border-color: rgba(117, 224, 165, .58); background: rgba(18, 67, 57, .45); }
.binding-state strong { color: #fff; }
.binding-state small { color: #9dbcc0; }
.state-dot { width: 11px; height: 11px; background: #f0c95b; box-shadow: 0 0 0 4px rgba(240, 201, 91, .12), 0 0 16px #f0c95b; }
.is-bound .state-dot { background: #75e0a5; box-shadow: 0 0 0 4px rgba(117, 224, 165, .12), 0 0 16px #75e0a5; }
.account-status-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-bottom: 12px; color: #7fa3a8; border-bottom: 1px solid rgba(128, 218, 221, .18); font: 700 11px var(--mono); }
.account-status-line strong { color: #75e0a5; }
.account-status-line.is-muted strong { color: #f0c95b; }
.form-note { color: #87a8ad; }
.stack-form .btn { width: 100%; margin-top: 4px; }
.account-page .btn-primary { color: #06161c; background: #33d6d1; border: 2px solid #031015; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 4px 4px 0 rgba(0,0,0,.55); }
.account-page .btn-primary:hover { background: #6ae6df; transform: translate(-1px, -1px); }
.bind-code { border: 1px dashed #f0c95b; background: rgba(240, 201, 91, .09); box-shadow: inset 0 0 0 1px rgba(240, 201, 91, .08); }
.bind-code span { color: #a6bec1; }
.bind-code strong { color: #f0c95b; }
.bind-code code { color: #d4eff0; }
.welfare-card { padding: 20px 0; border-top-color: rgba(128, 218, 221, .18); }
.welfare-card > div:first-child { min-width: 0; }
.welfare-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #06161c; background: #f0c95b; border: 2px solid #031015; box-shadow: 3px 3px 0 rgba(0,0,0,.5); font-size: 14px; }
.welfare-label { display: block; margin-bottom: 4px; color: #65e1dc; font: 700 10px var(--mono); }
.welfare-card h3 { color: #fff; }
.welfare-card p { color: #92b0b4; }
.welfare-window { margin-top: 8px; display: block; color: #67cbd1; font: 11px ui-monospace, monospace; }
.welfare-action strong { color: #f0c95b; }
.claim-done { color: #75e0a5; }
.claim-pending { color: #f0c95b; }
.claim-locked { padding: 5px 8px; color: #a9c6ca; background: rgba(169, 198, 202, .08); border: 1px solid rgba(169, 198, 202, .25); }
.empty-state { display: flex; align-items: center; gap: 14px; padding: 22px 0; color: #9ab8bc; }
.empty-state p { margin: 4px 0 0; color: #718f94; font-size: 13px; }
.empty-glyph { display: grid; place-items: center; width: 38px; height: 38px; color: #06161c; background: #33d6d1; font: 700 24px var(--mono); }
.account-help { margin-top: 24px; }
.help-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.help-heading h2 { margin: 4px 0 0; }
.help-rule { color: #5d8b91; font: 700 10px var(--mono); }
.guide-steps { gap: 0; border: 1px solid rgba(128, 218, 221, .2); background: rgba(10, 40, 48, .48); }
.guide-steps span { min-height: 76px; padding: 16px; color: #b7d1d4; border-right: 1px solid rgba(128, 218, 221, .18); }
.guide-steps span:last-child { border-right: 0; }
.guide-steps b { width: 32px; height: 32px; flex: 0 0 32px; color: #06161c; background: #f0c95b; box-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.guide-steps i { font-style: normal; }
.guide-steps code { color: #73e0dc; }
@media (max-width: 820px) {
  .account-hero { grid-template-columns: 1fr; }
  .account-hero-art { min-height: 210px; border-top: 1px solid rgba(128, 218, 221, .3); border-left: 0; }
  .account-hero-art img { min-height: 210px; }
  .guide-steps { grid-template-columns: 1fr; }
  .guide-steps span { border-right: 0; border-bottom: 1px solid rgba(128, 218, 221, .18); }
  .guide-steps span:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  body.account-page { background-attachment: scroll; }
  .account-shell { padding: 100px 14px 70px; }
  .account-hero-copy { padding: 42px 24px 30px; }
  .account-hero h1 { font-size: 40px; }
  .account-hero-meta { display: grid; grid-template-columns: 1fr; }
  .account-hero-meta span { width: 100%; }
  .account-panel, .account-help { padding: 24px 18px; }
  .help-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .welfare-action { width: 100%; }
}

@media (min-width: 1101px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-stats article { border-right: 1px solid #b5c8ca; border-bottom: 1px solid #b5c8ca; }
  .admin-stats article:nth-child(3n) { border-right: 0; }
  .admin-stats article:nth-last-child(-n+3) { border-bottom: 0; }
}

.guide-record textarea[name="body"] { min-height: 220px; line-height: 1.65; }

.welfare-summary-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; padding: 12px 14px; color: #60777e; background: #f4f8f7; border: 1px solid #c8d7d8; font-size: 12px; }
.welfare-summary-row strong { color: #143f4a; }
.welfare-state { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid #aebfc1; background: #fff; color: #526a70; font: 700 10px ui-monospace, monospace; white-space: nowrap; }
.welfare-state-active, .welfare-state-delivered { color: #26733c; border-color: #85be93; background: #eff9f1; }
.welfare-state-upcoming, .welfare-state-pending { color: #386a8a; border-color: #8bb8d0; background: #eff7fb; }
.welfare-state-paused, .welfare-state-ended { color: #657075; background: #f1f3f3; }
.welfare-state-failed { color: #a7342a; border-color: #d99b95; background: #fff3f1; }
.welfare-stock-progress { width: 100%; height: 10px; accent-color: #1598a4; }
.welfare-manager { display: grid; gap: 22px; }
.welfare-create-shell, .welfare-record-shell { overflow: hidden; background: rgba(255,255,255,.78); border: 1px solid #b8cacc; }
.welfare-create-shell > summary, .welfare-record-shell > summary { cursor: pointer; list-style: none; }
.welfare-create-shell > summary::-webkit-details-marker, .welfare-record-shell > summary::-webkit-details-marker { display: none; }
.welfare-create-shell > summary { min-height: 82px; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-left: 5px solid var(--cyan-dark); }
.welfare-create-shell > summary span { display: grid; gap: 3px; }
.welfare-create-shell > summary b { color: #143f4a; font-size: 18px; }
.welfare-create-shell > summary small { color: #6c8187; }
.welfare-create-shell > summary strong, .welfare-record-shell > summary i { color: #237985; font: 700 11px ui-monospace, monospace; white-space: nowrap; }
.welfare-create-shell[open] > summary, .welfare-record-shell[open] > summary { background: #eaf3f3; border-bottom: 1px solid #b8cacc; }
.welfare-create-shell .admin-quick-form { position: static; box-shadow: none; border-top: 0; }
.welfare-list-toolbar { padding: 20px 22px; display: flex; align-items: end; justify-content: space-between; gap: 24px; background: #dfeaea; border: 1px solid #b8cacc; }
.welfare-list-toolbar h2 { margin: 2px 0 3px; font-size: 23px; }
.welfare-list-toolbar p:last-child { margin: 0; color: #60777e; font-size: 12px; }
.welfare-list-toolbar label { width: min(320px, 40%); color: #60777e; font-size: 11px; font-weight: 700; }
.welfare-list-toolbar input { margin-top: 6px; background: #fff; }
.welfare-record-shell > summary { min-height: 76px; padding: 14px 18px; display: grid; grid-template-columns: auto minmax(170px,1fr) minmax(150px,.7fr) auto auto auto; align-items: center; gap: 14px; color: #60777e; }
.welfare-record-shell > summary:hover { background: #f3f8f7; }
.welfare-record-shell > summary > strong { color: #143f4a; font-size: 12px; }
.welfare-record-shell > summary > i { font-style: normal; }
.welfare-record-name { min-width: 0; display: grid; gap: 3px; }
.welfare-record-name b { overflow: hidden; color: #183f48; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.welfare-record-name code { overflow: hidden; color: #70858a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.welfare-quick-actions { min-height: 54px; padding: 10px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; background: #f4f8f7; border-bottom: 1px solid #cbd9da; }
.welfare-quick-actions form { margin: 0; }
.welfare-quick-actions > span { margin-left: auto; color: #6c8187; font-size: 11px; }
.welfare-record-shell .record-card { border: 0; }
.welfare-editor label, .welfare-record label { display: grid; gap: 6px; color: #60777e; font-size: 12px; font-weight: 700; }
.reward-builder { padding: 12px; display: grid; grid-template-columns: auto 110px minmax(160px,1fr) 90px auto; align-items: center; gap: 8px; background: #edf5f5; border: 1px solid #c8d8d9; }
.reward-builder strong { color: #315860; font-size: 11px; white-space: nowrap; }
.reward-builder input, .reward-builder select { min-width: 0; padding: 8px; }
[hidden] { display: none !important; }
.welfare-claim-console { margin-top: 30px; padding: 26px; background: rgba(255,255,255,.72); border: 1px solid #b8cacc; }
.welfare-claim-console > summary { cursor: pointer; list-style: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.welfare-claim-console > summary::-webkit-details-marker { display: none; }
.welfare-claim-console > summary h2 { margin-top: 4px; }
.welfare-claim-console > summary > span, .welfare-claim-note { color: #60777e; font-size: 12px; line-height: 1.65; }
.welfare-claim-note { margin: 18px 0; padding: 12px 14px; background: #eef4f4; border-left: 3px solid #1598a4; }
.welfare-claim-table td { vertical-align: top; }
.welfare-claim-table td strong, .welfare-claim-table td small, .welfare-claim-table td em { display: block; }
.welfare-claim-table td small { margin-top: 4px; color: #6c8187; white-space: nowrap; }
.welfare-claim-table td em { max-width: 420px; margin-top: 7px; color: #a7342a; font-size: 11px; font-style: normal; overflow-wrap: anywhere; }
.claim-admin-actions { display: flex; align-items: center; gap: 10px; }
.claim-admin-actions form { margin: 0; }
.admin-empty { padding: 28px; color: #6c8187; text-align: center; border: 1px dashed #b8cacc; }

@media (max-width: 760px) {
  .welfare-list-toolbar { align-items: stretch; flex-direction: column; }
  .welfare-list-toolbar label { width: 100%; }
  .welfare-record-shell > summary { grid-template-columns: auto minmax(0,1fr) auto; }
  .welfare-record-shell > summary > strong, .welfare-record-shell > summary > span:not(.welfare-record-name):not(.welfare-state) { display: none; }
  .welfare-record-shell > summary > i { grid-column: 3; grid-row: 1; }
  .welfare-quick-actions > span { width: 100%; margin-left: 0; }
  .reward-builder { grid-template-columns: 1fr 1fr; }
  .reward-builder strong { grid-column: 1 / -1; }
  .reward-builder [data-reward-item] { grid-column: 1 / -1; }
  .reward-builder .btn { width: 100%; }
  .welfare-claim-console { padding: 18px 12px; }
  .welfare-claim-console > summary { align-items: flex-start; flex-direction: column; gap: 8px; }
}
