/* Theme tokens: dark is the only supported theme; components use semantic colors. */
:root {
  color-scheme: dark;
  --bg: #171821;
  --panel: #303241;
  --surface: #20212e;
  --surface-raised: #272938;
  --field: #1b1c27;
  --art-bg: #0b1019;
  --pink: #ef4d88;
  --purple: #9368f7;
  --text: #ffffff;
  --muted: #bec0d2;
  --subtle: #a3a7bf;
  --link: #ff9abe;
  --border: #ffffff16;
  --border-strong: #74788f;
  --success: #9bdfc2;
  --danger-text: #ffc1d3;
  --danger-bg: #ef4d8815;
  --focus: #c3a7ff;
  --accent-gradient: linear-gradient(115deg, #ef4d88 5%, #ce5fc6 52%, #9368f7);
  --radius: 18px;
  --shadow: 0 22px 70px #00000026;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 800px; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 90% 15%, #9368f70a, transparent 60%); }
a { color: var(--link); text-underline-offset: 4px; transition: color .16s ease; }
a:hover { color: var(--text); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.15; letter-spacing: -.035em; font-weight: 750; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; }
p { color: var(--muted); max-width: 70ch; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: #ef4d884a; color: var(--text); }
.site-header { border-bottom: 1px solid var(--border); background: #11131c; }
.header-inner { max-width: 1400px; padding: 14px 40px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 103px; }
.brand { display: block; flex: 0 0 222px; border-radius: 6px; overflow: hidden; }
.brand img { width: 222px; aspect-ratio: 2172 / 722; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 48px; padding: 8px 10px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 550; border-radius: 9px; }
a.nav-item:hover { background: #ffffff06; }
.nav-icon { flex: none; width: 27px; height: 26px; object-fit: contain; }
.nav-item.is-active { color: #ffb1d0; background: #ef4d880c; }
.nav-item.is-active::after { content: ""; height: 2px; width: 20px; background: var(--accent-gradient); position: absolute; bottom: 0; border-radius: 3px; }
.nav-item small { display: block; line-height: 1.1; font-size: 9px; font-weight: 500; color: var(--subtle); }
.unavailable { color: var(--subtle); cursor: default; }
.unavailable .nav-icon { opacity: .62; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 15px; flex-shrink: 0; }
.header-actions form { margin: 0; }
.login-link, .admin-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.admin-link.is-active { color: var(--link); }
.mobile-nav { display: none; }
.site-main { width: min(100%, 1360px); padding: 48px 40px 80px; margin: auto; min-height: 72vh; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #c4a9ff; font-size: 10px; font-weight: 750; letter-spacing: 2.2px; line-height: 1.6; text-transform: uppercase; margin-bottom: 16px; }
.eyebrow-rule { width: 28px; height: 2px; background: var(--accent-gradient); }
.gradient-text { background: var(--accent-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; padding: 10px 0 60px; }
.hero-copy { padding: 16px 0; }
.hero h1 { font-size: clamp(4.5rem, 7.8vw, 7rem); line-height: .99; letter-spacing: -.075em; margin: 22px 0 26px; font-weight: 800; }
.hero-description { font-size: clamp(1.05rem, 1.65vw, 1.3rem); line-height: 1.55; color: #e6e3f0; margin-bottom: 16px; }
.hero-detail { color: var(--muted); font-size: 14px; max-width: 35ch; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 13px 21px; border-radius: 9px; min-height: 48px; border: 1px solid transparent; background: var(--accent-gradient); color: #12131e; font-weight: 750; font-size: 14px; line-height: 1.45; text-decoration: none; cursor: pointer; transition: box-shadow .18s ease, background .18s ease; }
.button:hover, button:hover { color: #10111c; box-shadow: 0 3px 24px #ef4d8833; background: linear-gradient(115deg, #ff89b3, #b394ff); }
.secondary { background: #ffffff04; border-color: #777b94; color: var(--text); }
.secondary:hover { background: #ffffff0e; color: var(--text); box-shadow: none; border-color: #b9a5e8; }
.small { min-height: 44px; padding: 9px 15px; font-size: 12px; gap: 8px; }
.quiet { background: none; border: none; padding: 8px 0; min-height: 44px; color: var(--muted); box-shadow: none; font-size: 13px; gap: 7px; font-weight: 500; }
.quiet:hover { color: var(--text); background: none; box-shadow: none; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: #e5d9f7; font-size: 13px; font-weight: 650; min-height: 44px; text-decoration: none; }
.text-link:hover { color: var(--link); }
.hero-note { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: var(--subtle); margin-top: 24px; }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; align-self: center; }
.hero-note .status-dot { color: var(--pink); margin-top: 6px; align-self: flex-start; }
.hero-art { position: relative; border-radius: 24px; padding: 12px 12px 0; background: var(--art-bg); border: 1px solid #cb6acb25; box-shadow: 0 0 90px #b74ae312, var(--shadow); }
.hero-art::before { position: absolute; z-index: -1; inset: 15% 0 -3% 20%; border-radius: 50%; content: ""; background: radial-gradient(ellipse, #ef4d881c, transparent 70%); }
.primary-logo { width: 100%; border-radius: 14px; }
.hero-art figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 10px 19px; border-top: 1px solid #ffffff0e; color: var(--subtle); font-size: 10px; }
.hero-art figcaption > span:first-child { color: #dfbbdf; font-weight: 650; letter-spacing: 1.4px; font-size: 9px; }
.art-corner { position: absolute; width: 45px; height: 45px; border-top: 2px solid #ff97c7; border-left: 2px solid #ff97c7; top: -1px; left: -1px; border-radius: 24px 0 0; pointer-events: none; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: 9px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #ba9aff40; padding: 6px 11px; border-radius: 99px; font-size: 10px; font-weight: 650; line-height: 1.5; color: #dfd0ff; background: #9368f710; white-space: normal; }
.badge-warm { color: #ffb3cf; border-color: #ef4d8840; background: #ef4d880d; }
.badge-active { color: var(--success); border-color: #9bdfc240; background: #9bdfc20c; }
.discovery-section { padding: 35px 0 64px; border-top: 1px solid var(--border); }
.discovery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.release-preview { position: relative; overflow: hidden; border: 1px solid #ab88ed33; background: linear-gradient(130deg, #303241a0, #242334); border-radius: var(--radius); padding: 32px; }
.release-preview > img { width: 58px; height: 55px; object-fit: contain; margin-bottom: 20px; }
.release-preview h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.25; }
.release-preview p:not(.eyebrow) { font-size: 13px; max-width: 43ch; }
.coming-label { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #e3c0e2; padding-top: 10px; }
.horizon-list { display: flex; flex-direction: column; justify-content: space-around; }
.horizon-item { display: flex; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--border); }
.horizon-item:first-child { padding-top: 10px; }
.horizon-item:last-child { border-bottom: none; padding-bottom: 10px; }
.chapter-number { flex: none; color: #c598e7; font-size: 12px; font-weight: 650; padding-top: 3px; }
.horizon-item h3 { margin-bottom: 10px; font-size: 19px; }
.horizon-item p { font-size: 13px; margin-bottom: 0; max-width: 43ch; }
.invitation { position: relative; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: linear-gradient(120deg, #2d2539, #261f36); border: 1px solid #e281c52b; }
.invitation-copy { align-self: center; padding: 40px; z-index: 1; }
.invitation h2 { font-size: clamp(1.65rem, 2.8vw, 2.4rem); }
.invitation-copy > p:not(.eyebrow) { font-size: 13px; margin-bottom: 25px; max-width: 42ch; }
.invitation-mascot { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; mask-image: linear-gradient(90deg, transparent, #000 18%); }
.site-footer { max-width: 1280px; margin: 0 auto; padding: 32px 0; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-name { font-weight: 800; letter-spacing: 3px; font-size: 18px; color: var(--text); text-decoration: none; }
.site-footer p { font-size: 11px; margin: 4px 0 0; color: var(--subtle); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 12px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .development-label { display: flex; gap: 8px; color: #d4bddf; }
.development-label .status-dot { color: var(--pink); }
/* Shared forms and feedback. Native form semantics and server validation are retained. */
.page-auth .site-main { padding-top: 46px; padding-bottom: 64px; }
.auth-layout { display: grid; grid-template-columns: 1.03fr 1fr; max-width: 1120px; margin: 8px auto; border-radius: 22px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.auth-brand { position: relative; background: linear-gradient(150deg, #302336, #191724); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; min-height: 610px; }
.auth-brand-copy { padding: 42px 35px 15px; z-index: 1; }
.auth-brand-copy h2 { font-size: 36px; letter-spacing: -.045em; line-height: 1.15; margin-bottom: 13px; }
.auth-brand-copy > p:last-child { color: #e5bfdc; font-size: 13px; }
.auth-mascot { width: 100%; height: 345px; flex: 1; object-fit: cover; object-position: 52% center; mask-image: linear-gradient(180deg, transparent, #000 18%, #000 85%, transparent); }
.auth-brand-foot { padding: 15px 35px 25px; color: #dcb8d8; font-size: 11px; margin: 0; position: relative; }
.auth-form-panel { padding: 40px 44px; align-self: center; min-width: 0; }
.auth-form-panel h1 { font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.15; }
.auth-form-panel .eyebrow { font-size: 9px; }
.auth-heading-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 13px; background: #9368f710; border: 1px solid #9368f727; }
.auth-heading-icon img { width: 34px; height: 32px; object-fit: contain; }
.form-intro { font-size: 13px; margin-bottom: 24px; }
.account-form { margin-top: 24px; }
label { display: block; font-size: 12px; font-weight: 650; color: #e8e5f1; margin: 20px 0 8px; }
input, select { width: 100%; max-width: 100%; min-width: 0; background: var(--field); border: 1px solid #666a81; border-radius: 8px; padding: 12px 14px; color: var(--text); min-height: 48px; font-size: 14px; }
input::placeholder { color: #a0a2b8; opacity: 1; }
select { text-overflow: ellipsis; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--pink); margin-right: 8px; vertical-align: middle; }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #ffa2c5; }
.account-form button { margin-top: 25px; }
.full-width { width: 100%; }
.form-divider { height: 1px; background: var(--border); margin: 26px 0 20px; }
.form-bottom { font-size: 12px; }
.form-bottom a { white-space: normal; font-weight: 600; }
.private-note { display: flex; align-items: center; gap: 8px; font-size: 10px; color: var(--subtle); margin-top: 20px; }
.private-note .status-dot { color: #bb94e3; }
.closed-panel > .badge { margin-bottom: 28px; }
.closed-panel h1 { font-size: clamp(2.25rem, 3.8vw, 3.4rem); }
.closed-panel > p { font-size: 13px; }
.closed-explanation { display: flex; gap: 15px; align-items: center; padding: 19px 0; border-top: 1px solid var(--border); margin-top: 25px; }
.closed-explanation img { flex: none; width: 35px; height: 33px; object-fit: contain; }
.closed-explanation p { margin: 0; font-size: 12px; }
.closed-panel > .button { margin-top: 12px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 12px; text-decoration: none; }
.closed-panel > .back-link { display: flex; justify-content: center; margin-top: 18px; }
.registration-layout .auth-brand { align-self: stretch; }
.registration-layout .auth-brand-copy { position: sticky; top: 0; }
.registration-layout .auth-mascot { flex: 0; height: 345px; }
.registration-layout .auth-brand-foot { flex: 1; }
.helptext { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.helptext ul { padding-left: 18px; }
.errorlist { padding: 12px 14px 12px 30px; border-left: 2px solid var(--pink); border-radius: 5px; background: #ef4d880b; color: var(--danger-text); font-size: 12px; overflow-wrap: anywhere; }
.notice { padding: 16px 19px; border: 1px solid #b596f333; border-left: 3px solid #b596f3; border-radius: 9px; background: #252337; font-size: 13px; color: #e5d7f8; margin-bottom: 24px; overflow-wrap: anywhere; }
.notice.error { border-left-color: var(--pink); background: #322231; color: var(--danger-text); }
.notice.success { border-left-color: var(--success); color: #d0f5e3; }
.messages { max-width: 1120px; margin: 0 auto; }
.muted { color: var(--muted); font-size: 12px; }
.intro { color: var(--muted); font-size: 16px; }
.panel { background: var(--panel); border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin: 0 0 24px; }
.form-panel { max-width: 670px; padding: 34px 38px; margin: 0 auto; background: var(--surface); box-shadow: var(--shadow); }
.form-panel h1 { font-size: 34px; }
.form-panel .back-link { margin-bottom: 18px; }
.account-summary { padding: 15px 0; margin-bottom: 16px; border-block: 1px solid var(--border); }
.account-summary p { font-size: 13px; margin-bottom: 8px; overflow-wrap: anywhere; }
.account-summary .badge { margin-left: 8px; font-size: 9px; }
/* Existing account dashboard receives shared styles only. */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.profile { display: flex; align-items: center; gap: 24px; margin-top: 32px; }
.avatar { display: grid; place-items: center; flex: none; width: 80px; height: 80px; border-radius: 24px; border: 1px solid #b79af65e; background: linear-gradient(130deg, #ef4d8822, #9368f733); color: #edc9ff; font-size: 32px; font-weight: 750; }
.profile h2, .profile p { margin-bottom: 8px; }
.profile .badge { margin: 3px 4px 0 0; }
/* Administration uses existing actions and routes, with anchor navigation. */
.admin-layout { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 36px; }
.admin-sidebar { align-self: start; position: sticky; top: 24px; border-right: 1px solid var(--border); padding: 6px 20px 24px 0; }
.admin-sidebar > .eyebrow { font-size: 9px; margin-bottom: 24px; }
.admin-section-link { display: flex; align-items: center; gap: 10px; font-size: 12px; min-height: 54px; padding: 10px 8px; border-radius: 8px; color: #ddd5eb; text-decoration: none; margin-bottom: 6px; }
.admin-section-link:hover { background: #9368f710; }
.admin-section-link img { width: 29px; height: 28px; object-fit: contain; }
.sidebar-note { border-top: 1px solid var(--border); margin-top: 30px; padding: 22px 0 0; color: #d9b7db; font-size: 10px; }
.sidebar-note > .status-dot { color: var(--pink); margin-right: 4px; }
.sidebar-note p { color: var(--subtle); margin: 9px 0 0; font-size: 11px; }
.admin-sidebar > .back-link { font-size: 10px; margin-top: 12px; }
.admin-content { min-width: 0; }
.page-heading { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.page-heading h1 { font-size: clamp(2rem, 3.2vw, 2.8rem); }
.page-heading .eyebrow { font-size: 9px; }
.page-heading > .badge { margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0 24px; }
.stat-card { position: relative; display: flex; flex-direction: column; padding: 21px; margin: 0; overflow: hidden; background: var(--surface-raised); }
.stat-card::before { content: ""; position: absolute; width: 40px; height: 2px; background: var(--accent-gradient); top: 0; left: 21px; }
.stat-label { color: #d1cddd; font-size: 11px; }
.metric { font-size: 38px; line-height: 1.2; font-weight: 750; color: var(--text); margin: 14px 0 10px; letter-spacing: -.04em; }
.stat-foot { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--subtle); }
.active-dot { color: var(--success); }
.admin-content .panel { background: var(--surface-raised); }
.admin-content .panel h2 { font-size: 21px; }
.section-icon-heading { display: flex; align-items: center; gap: 15px; }
.section-icon { width: 40px; height: 38px; object-fit: contain; }
.section-icon-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.registration-panel { border-color: #c894f02e; }
.registration-panel .muted { margin-bottom: 22px; max-width: 75ch; }
.danger { color: var(--danger-text); background: var(--danger-bg); border: 1px solid #ef4d8870; }
.danger:hover { background: #ef4d882d; border-color: #ff8eb9; color: #fff; box-shadow: none; }
.search { display: flex; align-items: stretch; gap: 10px; margin-top: 25px; }
.search input { background: var(--field); font-size: 12px; }
.search button { font-size: 12px; }
.table-caption { color: var(--subtle); font-size: 10px; margin: 13px 0 0; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 17px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: #11131d4d; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 650; }
td { overflow-wrap: anywhere; }
td:first-child { min-width: 170px; }
td strong { font-size: 12px; font-weight: 650; }
td .muted { font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #ffffff03; }
.role-list { display: flex; flex-wrap: wrap; gap: 5px; }
.role-label { font-size: 9px; background: #9368f715; color: #ddcafa; padding: 3px 8px; border-radius: 5px; }
.account-status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; }
.status-active { color: var(--success); }
.status-disabled { color: #ffb6cf; }
.empty-cell { text-align: center; padding: 30px; color: var(--muted); }
.admin-activity { gap: 20px; }
.admin-activity .eyebrow { font-size: 8px; }
.admin-activity .panel { padding: 24px; min-width: 0; }
.activity-list { padding: 0; margin: 20px 0 0; list-style: none; }
.activity-list li { padding: 14px 0; border-top: 1px solid var(--border); overflow-wrap: anywhere; }
.activity-list strong { display: block; font-size: 12px; margin-bottom: 3px; }
.activity-list .muted { font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 15px; top: 10px; z-index: 10; padding: 12px 20px; background: var(--bg); border-radius: 8px; }
@media (min-width: 1400px) { .hero { gap: 65px; } }
@media (max-width: 1359px) { .site-footer { margin-inline: 40px; } .header-inner { gap: 18px; } .desktop-nav .nav-item { padding-inline: 7px; gap: 5px; font-size: 12px; } .brand { flex-basis: 200px; } .brand img { width: 200px; } }
@media (max-width: 1100px) {
  /* Keep content clearance tied to the actual fixed bar height. */
  body {
    --mobile-nav-icon-size: 48px;
    --mobile-nav-item-height: 88px;
    --mobile-nav-height: calc(var(--mobile-nav-item-height) + 17px);
    padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
  }
  .desktop-nav { display: none; }
  .header-inner { min-height: 86px; padding-block: 10px; }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 20;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    background: #191a25;
    border-top: 1px solid #e7b1ff40;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    padding-left: max(10px, env(safe-area-inset-left), calc((100vw - 680px) / 2));
    padding-right: max(10px, env(safe-area-inset-right), calc((100vw - 680px) / 2));
    box-shadow: 0 -8px 30px #00000030;
  }
  .mobile-nav .nav-item { min-width: 48px; height: var(--mobile-nav-item-height); min-height: 48px; padding: 4px; flex-direction: column; gap: 4px; border-radius: 10px; font-size: 11px; line-height: 1.35; }
  .mobile-nav .nav-item > span { display: flex; flex-direction: column; align-items: center; min-height: 26px; white-space: nowrap; }
  .mobile-nav .nav-item small { font-size: 9px; }
  .mobile-nav .nav-item.is-active { background: #ef4d881a; box-shadow: inset 0 0 0 1px #ef4d8833; }
  .mobile-nav .nav-item.is-active::after { top: -8px; bottom: auto; width: 28px; }
  .mobile-nav .unavailable .nav-icon { opacity: .85; }
  .mobile-nav .nav-icon { width: var(--mobile-nav-icon-size); height: var(--mobile-nav-icon-size); object-fit: contain; }
  .hero h1 { font-size: clamp(4rem, 8vw, 6rem); }
  .hero-note { max-width: 34ch; }
  .hero-art figcaption { flex-direction: column; align-items: flex-start; gap: 4px; }
  .auth-form-panel { padding: 34px; }
  .admin-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
  .admin-sidebar { padding-right: 12px; }
  .admin-section-link { font-size: 11px; padding-inline: 3px; gap: 7px; }
  .admin-section-link img { width: 26px; }
  .admin-content .panel { padding: 22px; }
}
@media (max-width: 760px) {
  .site-main { padding: 30px 24px 48px; }
  .header-inner { padding-inline: 24px; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding-bottom: 40px; }
  .hero-copy { padding-top: 0; }
  .hero h1 { font-size: clamp(4.5rem, 14vw, 6.5rem); }
  .hero-description { font-size: 18px; }
  .hero-detail { max-width: 44ch; }
  .hero-note { max-width: none; }
  .hero-art { max-width: 520px; width: 100%; margin-inline: auto; }
  .hero-art figcaption { flex-direction: row; align-items: center; font-size: 9px; }
  .discovery-section { padding-top: 28px; padding-bottom: 38px; }
  .discovery-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 25px; }
  .horizon-item { padding-block: 20px; }
  .horizon-item p { max-width: none; }
  .invitation-copy { padding: 28px; }
  .invitation { grid-template-columns: 1fr; }
  .invitation-mascot { max-height: 300px; object-fit: cover; object-position: center 30%; mask-image: linear-gradient(180deg, transparent, #000 20%); }
  .site-footer { margin-inline: 24px; flex-wrap: wrap; gap: 20px; }
  .site-footer .development-label { width: 100%; }
  .auth-layout { display: block; border-radius: 16px; margin-top: 0; }
  .auth-brand { display: none; } /* Keep decorative artwork from adding mobile form scrolling. */
  .auth-form-panel { padding: 30px; }
  .page-auth .site-main { padding-top: 30px; }
  .auth-heading-icon { margin-bottom: 20px; }
  .auth-form-panel h1 { font-size: 34px; }
  .closed-panel h1 { font-size: 42px; }
  .registration-layout .auth-form-panel { padding: 28px; }
  .form-panel { padding: 28px; }
  .admin-layout { display: block; }
  .admin-sidebar { position: static; display: flex; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); margin-bottom: 28px; padding: 0 0 15px; gap: 5px 10px; }
  .admin-sidebar > .eyebrow, .sidebar-note, .admin-sidebar > .back-link { display: none; }
  .admin-section-link { min-height: 44px; margin-bottom: 0; padding: 7px; font-size: 11px; }
  .admin-section-link img { width: 24px; height: 23px; }
  .stats { gap: 10px; }
  .admin-content .stat-card { padding: 17px 14px; }
  .stat-card::before { left: 14px; }
  .stat-label { font-size: 10px; }
  .metric { font-size: 30px; }
  .stat-foot { font-size: 9px; }
  .admin-activity { grid-template-columns: 1fr; gap: 0; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .page-heading { flex-wrap: wrap; gap: 5px; margin-bottom: 20px; }
  .page-heading .intro { font-size: 14px; margin-bottom: 8px; }
  .page-heading h1 { font-size: 34px; }
  .table-wrap { margin-inline: -6px; }
  table { min-width: 530px; }
}
@media (max-width: 420px) {
  .header-inner { padding: 12px 16px; gap: 8px; min-height: 78px; }
  .brand { flex: 0 1 154px; min-width: 118px; }
  .brand img { width: 154px; }
  .header-actions { gap: 9px; }
  .header-actions .nav-icon { display: none; }
  .header-actions .login-link, .header-actions .admin-link, .header-actions .quiet { font-size: 11px; }
  .register-link { padding: 9px 11px; font-size: 10px; }
  .site-main { padding-inline: 18px; }
  .hero h1 { font-size: 72px; }
  .hero-description { font-size: 16px; }
  .hero-detail { font-size: 13px; }
  .actions { gap: 12px; }
  .actions .button { font-size: 12px; padding-inline: 17px; }
  .actions .text-link { font-size: 11px; gap: 6px; }
  .hero-art figcaption { flex-direction: column; align-items: flex-start; }
  .release-preview { padding: 26px; }
  .invitation-copy { padding: 26px; }
  .site-footer { margin-inline: 18px; }
  .footer-links { gap: 16px; }
  .auth-form-panel, .registration-layout .auth-form-panel { padding: 25px 22px; }
  .form-panel { padding: 25px 22px; }
  .closed-panel .button { font-size: 12px; }
  .admin-sidebar { gap: 3px; }
  .admin-section-link { gap: 4px; font-size: 10px; padding-inline: 4px; }
  .admin-section-link img { width: 22px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .admin-content .stat-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 15px; padding: 16px 20px; }
  .metric { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .stat-label { font-size: 11px; }
  .stat-foot { grid-row: 2; }
  .admin-content .panel { padding: 22px 18px; }
  .section-icon-heading { gap: 10px; }
  .section-icon { width: 32px; height: 30px; }
  .search { gap: 7px; }
  .search button { padding-inline: 14px; }
  .profile { gap: 15px; }
  .avatar { width: 58px; height: 58px; border-radius: 18px; font-size: 25px; }
  .profile h2 { font-size: 22px; }
}
/* Narrow portrait phones retain five readable labels and roomy targets. */
@media (max-width: 359px) {
  body { --mobile-nav-icon-size: 44px; --mobile-nav-item-height: 84px; }
  .mobile-nav .nav-item { font-size: 10px; }
  .mobile-nav .nav-item small { font-size: 8px; }
}
/* Desktop artwork panels are isolated from the established mobile header/bar. */
.desktop-header-actions { display: none; }
@media (min-width: 1101px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 24px;
    max-width: 1600px;
    padding: 18px 40px 26px;
  }
  .header-inner > .brand { grid-column: 1; grid-row: 1; width: 222px; justify-self: start; }
  .header-inner > .brand img { width: 100%; }
  .header-inner > .header-actions { display: none; }
  .desktop-header-actions { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: flex-end; gap: 18px; }
  .desktop-header-actions > .desktop-panel, .desktop-header-actions > form { width: 216px; margin: 0; }
  .desktop-header-actions form > button { width: 100%; }
  .desktop-nav { display: grid; grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 16px; width: 100%; }
  .desktop-panel { display: block; position: relative; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 10px; background: transparent; text-decoration: none; line-height: 0; box-shadow: none; transition: filter .16s ease, transform .16s ease; }
  .desktop-panel img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: contain; }
  a.desktop-panel:hover, button.desktop-panel:hover { background: transparent; box-shadow: none; filter: drop-shadow(0 0 7px #ef4d883d); transform: translateY(-1px); }
  .desktop-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; filter: drop-shadow(0 0 5px #9368f74d); }
  .desktop-panel.is-active::after { content: ""; position: absolute; left: 30%; right: 10%; bottom: -7px; height: 2px; border-radius: 3px; background: var(--accent-gradient); }
  .desktop-panel[aria-disabled="true"] { cursor: not-allowed; }
}
@media (min-width: 1101px) and (max-width: 1279px) {
  .header-inner { padding-inline: 32px; }
  .desktop-nav { gap: 10px; }
}
/* Header refinement: preserve row heights and all existing navigation panels. */
.brand picture { display: block; }
.desktop-header-search { display: none; }
@media (min-width: 1101px) {
  /* Original logo slot: 222px wide at the previous 2172:722 layout ratio. */
  .header-inner > .brand { height: calc(222px * 722 / 2172); }
  .header-inner > .brand picture { width: 100%; height: 100%; }
  .header-inner > .brand img { height: 100%; aspect-ratio: auto; object-fit: contain; object-position: left center; }
}
@media (min-width: 1280px) {
  .header-inner { grid-template-columns: 222px minmax(0, 1fr) auto; }
  .desktop-header-actions { grid-column: 3; }
  .desktop-header-search {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d36dac4d;
    border-radius: 12px;
    background: #1b1c27;
    box-shadow: inset 0 0 0 1px #9368f70c;
    color: var(--subtle);
    cursor: not-allowed;
  }
  .header-search-icon { position: relative; flex: 0 0 15px; width: 15px; height: 15px; border: 2px solid #bd96cd; border-radius: 50%; margin: 0 4px 2px 0; }
  .header-search-icon::after { content: ""; position: absolute; right: -5px; bottom: -3px; width: 7px; height: 2px; border-radius: 2px; background: #bd96cd; transform: rotate(45deg); }
  .desktop-header-search input { flex: 1 1 0; min-width: 0; width: 0; height: 44px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; opacity: 1; cursor: not-allowed; }
  .desktop-header-search input::placeholder { color: #b0abc2; opacity: 1; }
  .header-search-status { flex: none; white-space: nowrap; padding: 3px 7px; border: 1px solid #9368f72e; border-radius: 5px; background: #9368f70d; color: #cfb9e6; font-size: 9px; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
