/* Reference-inspired navigation and full-width artwork. */
:root { color-scheme: dark; --canvas: #080d17; --surface: #121a27; --line: #263143; --muted: #a0adbd; --teal: #158bff; --teal-dark: #78caff; }
* { letter-spacing: 0 !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body, .app-shell, .main-content { background: var(--canvas); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #78caff; outline-offset: 4px; }
.app-shell.ready { display: block; }
.sidebar { width: 100%; min-height: 84px; padding: 0 max(24px, calc((100% - 1280px) / 2)); flex-direction: row; align-items: center; gap: 36px; background: #050d1b; border: 0; border-bottom: 1px solid #203049; }
.brand-lockup { padding: 0; flex: 0 0 auto; }
.brand-home { padding: 0; border: 0; background: none; }
.brand-logo { object-fit: contain; background: transparent; border-radius: 0; box-shadow: none; }
.sidebar-logo { width: 190px; height: 60px; }
.main-nav { display: flex; align-items: stretch; gap: 24px; margin-left: auto; min-width: 0; }
.nav-item { position: relative; width: auto; min-height: 84px; padding: 12px 0; gap: 7px; border-radius: 0; color: #acb7c8; font-size: 14px; white-space: nowrap; }
.nav-icon { display: none; }
.nav-item:hover, .nav-item.active { color: #fff; background: transparent; }
.nav-item.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #30b5ff; box-shadow: 0 -3px 12px #188afc66; }
.nav-count { margin: 0; background: #152d45; padding: 2px 6px; }
.sidebar-bottom { display: block; margin: 0; }
.sidebar > .topbar-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 0; }
.sidebar > .topbar-actions.topbar { height: auto; justify-content: initial; border-bottom: 0; }
.sidebar > .topbar-actions .profile { min-width: 0; }
.sidebar > .topbar-actions .profile-copy { min-width: 0; }
.sidebar > .topbar-actions .profile-copy strong, .sidebar > .topbar-actions .profile-copy span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-content { padding: 0 max(24px, calc((100% - 1280px) / 2)) 56px; }
.topbar { height: 58px; border-bottom: 0; }
.breadcrumbs { font-size: 12px; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { font-size: 10px; }
.page-view { padding-top: 22px; }
#view-discover { padding-top: 0; }
.hero-band, .hero-band.without-feature { display: block; position: relative; min-height: 330px; margin: 0 min(-24px, calc((1280px - 100vw) / 2)); border: 0; border-radius: 0; box-shadow: none; background: #040f21 url('/assets/reference-world.png') center / cover no-repeat; }
.activity-banner { display: flex; align-items: end; }
.activity-banner-copy { width: min(1280px, calc(100% - 48px)); margin: auto; padding: 72px 0 126px; }
.activity-banner-copy h2 { margin: 8px 0 7px; color: #f2f8ff; font-size: 30px; }
.activity-banner-copy p { margin: 0; color: #a8c2dc; font-size: 13px; }
.primary-button { background: #158bff; color: #fff; box-shadow: none; font-size: 13px; min-height: 38px; }
.primary-button:hover { background: #329cff; }
.hero-metrics { gap: 38px; margin-top: 38px; }
.hero-metrics div { border: 0; padding: 0; min-width: 66px; }
.hero-metrics strong { font-size: 23px; }
.hero-metrics span { color: #a0b4ce; font-size: 11px; }
.presence-strip { grid-template-columns: 185px minmax(0, 1fr) auto; margin: 0; padding: 22px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.presence-title .section-kicker { display: none; }
.presence-title h2 { margin: 0; font-size: 14px; }
.presence-summary { grid-template-columns: 30px auto; }
.presence-summary > strong { font-size: 22px; }
.presence-summary > span { justify-self: start; color: #a0adbd; font-size: 11px; }
.presence-user { background: #15202e; border-color: #2a3b4b; border-radius: 6px; max-width: 100%; }
.presence-user > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.presence-avatar { flex-shrink: 0; background: #285578; }
.presence-updated { color: #94a5b9; }
.hero-feature { display: grid; grid-template-columns: 160px minmax(0, 1fr) 44px; align-items: center; gap: 10px 24px; min-height: 128px; margin-top: 24px; padding: 18px 20px 18px 184px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background-size: 160px 100%; background-repeat: no-repeat; background-position: left center; background-color: transparent; }
.hero-feature::before, .feature-emblem { display: none; }
.feature-topline { grid-column: 1; grid-row: 1; align-self: start; gap: 10px; }
.feature-status { border: 0; padding: 0; color: #f5c773; }
.feature-content { grid-column: 2; grid-row: 1; margin: 0; }
.feature-kicker { color: #9db2c9; }
.feature-content h2 { font-size: 20px; margin: 7px 0; }
.feature-content p { -webkit-line-clamp: 2; color: #a0adbd; }
.feature-arrow { grid-column: 3; grid-row: 1; margin: 0; align-self: center; width: 40px; height: 40px; }
.discover-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
.catalog-area { min-width: 0; }
.discover-rail { position: sticky; top: 18px; display: grid; gap: 16px; min-width: 0; }
.collection-stat { display: grid; gap: 7px; padding: 18px; background: linear-gradient(145deg, #102c48, #0d1a2d); border: 1px solid #2b557a; border-radius: 9px; }
.collection-stat strong { color: #fff; font-size: 34px; line-height: 1; }
.collection-stat > span:last-child { color: #a6bdd5; font-size: 11px; }
.discover-rail .presence-strip { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 0; padding: 18px; background: #0e1827; border: 1px solid #263a52; border-radius: 9px; box-shadow: none; }
.discover-rail .presence-summary { display: grid; grid-template-columns: auto auto; gap: 0 9px; }
.discover-rail .presence-title { grid-column: 1 / -1; }
.discover-rail .presence-title h2 { font-size: 15px; }
.discover-rail .presence-summary > strong { font-size: 26px; margin-top: 8px; }
.discover-rail .presence-summary > span { align-self: end; margin-bottom: 2px; }
.discover-rail .presence-users { display: grid; gap: 7px; align-items: stretch; }
.discover-rail .presence-user { justify-content: start; border-radius: 6px; }
.discover-rail .presence-updated { white-space: normal; line-height: 1.6; }
.section-header { margin-top: 30px; scroll-margin-top: 24px; }
.section-header h2 { font-size: 23px; }
.section-kicker { color: #7aa7cd; font-size: 10px; }
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.catalog-sidebar { position: sticky; top: 18px; display: grid; gap: 16px; padding: 18px; background: #0e1827; border: 1px solid #263a52; border-radius: 9px; }
.catalog-sidebar-title { display: grid; gap: 6px; padding-bottom: 4px; border-bottom: 1px solid #263a52; }
.catalog-sidebar-title strong { font-size: 16px; color: #eef7ff; }
.catalog-sidebar .search-box { width: 100%; height: 42px; background: #121f31; border-color: var(--line); }
.catalog-sort-label { display: grid; gap: 7px; color: #91a6be; font-size: 11px; }
.select-control { width: 100%; height: 42px; background: #121f31; border-color: var(--line); }
.catalog-filter-heading { color: #91a6be; font-size: 11px; padding-top: 2px; }
.catalog-sidebar .quick-filters { display: grid; gap: 3px; margin: 0; }
.filter-chip { width: 100%; padding: 9px 8px; font-size: 12px; border-radius: 5px; }
.filter-chip:hover { color: #fff; background: transparent; }
.catalog-sidebar .filter-chip:hover, .catalog-sidebar .filter-chip:focus-visible { background: #173451; }
.catalog-filter-empty { color: #71869d; font-size: 11px; }
.catalog-results { min-width: 0; }
.active-filter { background: #173a52; color: #aee2ff; font-size: 12px; }
.client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.client-card { background: #121a27; border-color: var(--line); }
.card-visual { aspect-ratio: 16 / 10; }
.card-visual::after { display: none; }
.card-body { padding: 18px; }
.card-body h3 { font-size: 18px; }
.card-creator, .card-tag, .card-meta, .card-action { font-size: 12px; }
.card-tag { background: #202a36; color: #b9c6d3; }
.card-action { min-height: 36px; }
.card-action.add { background: #153f61; color: #9ddcff; }
.card-action.add:hover { background: #1d5c88; }
.empty-state { background: transparent; border-color: #334155; padding: 38px 20px; }
.auth-screen { background: #050d1b; }
.auth-art { background: #040f21 url('/assets/reference-world.png') right center / auto 100% no-repeat; }
.auth-art::after { display: none; }
.auth-world-brand { position: absolute; left: 8%; top: 18%; width: 75%; max-width: 590px; }
.auth-panel { background: #0c1421; padding-top: 56px; box-shadow: none; }
.auth-logo { width: 230px; height: auto; }
.auth-heading h1 { font-size: 28px; }
.auth-heading p { display: none; }
.auth-form label { font-size: 13px; }
.auth-tab { font-size: 14px; }
.auth-submit { font-size: 14px; }
/* Keep forms, library rows and dialogs legible in the dark palette. */
label { color: #bac7d6; font-size: 12px; }
label input, label select, label textarea, .table-search { color: #edf6ff; background: #101a29; border-color: #334358; font-size: 13px; }
label input:focus, label select:focus, label textarea:focus { background: #162337; border-color: #5ab9ff; }
input::placeholder, textarea::placeholder { color: #7f91a7; }
.outline-button, .user-toggle { background: #142235; border-color: #36516a; color: #bde4ff; }
.outline-button:hover, .user-toggle:hover { background: #1b344c; }
.publish-form, .settings-panel, .release-guide, .admin-panel { padding: 22px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.admin-stat, .admin-client-card, .library-row, .modal { background: #121b28; border-color: var(--line); border-radius: 8px; }
.admin-panel h2, .admin-panel strong, .admin-panel .admin-user-main strong, .admin-panel .admin-user-meta strong, .admin-panel .activity-item strong, .admin-panel .panel-heading h2, .publish-form h2, .settings-panel h2, .library-row strong, .admin-stat strong { color: #edf6ff; }
.admin-panel .admin-user-main span, .admin-panel .admin-user-meta span, .admin-panel .activity-item p, .admin-panel .activity-item time, .library-row span { color: #a0adbd; }
.admin-user-row, .activity-item, .package-editor { border-color: var(--line); }
.user-avatar, .activity-icon { background: #19334b; color: #b8e6ff; }
.manage-active, .creator-badge, .admin-live, .download-status { background: #123629; color: #91e8be; border-color: #2a7051; }
.publish-form input[readonly] { background: #192333; color: #a4b4c7; }
.publish-note, .download-status.restricted { background: #30291e; color: #f3ce8f; border-color: #695438; }
.publish-progress { background: #102331; border-color: #28516c; }
.publish-progress-heading { color: #edf6ff; }
.publish-progress-heading span { color: #7de0ff; }
.publish-progress-track { background: #1d3b4d; }
.publish-progress-track span { background: #24b8ff; }
.publish-progress-detail { color: #9db6cb; }
.settings-code, .detail-info, .release-box, .consent-fact { background: #1b283a; }
.detail-info strong { color: #edf6ff; }
.detail-hero::before { background: #06101c99; }
.detail-hero h2 { color: #fff; }
.modal-close { background: #162539; border-color: #3b5067; color: #e9f5ff; }
.delete-button, .remove-game-button { background: #321e27; border-color: #754051; color: #ffabb5; }
.delete-button:hover:not(:disabled), .remove-game-button:hover { background: #4b2834; }
.feature-game-button { white-space: nowrap; }
.feature-game-button[aria-pressed="true"] { color: #f5d18b; border-color: #8d703b; background: #30291e; }
.creator-work-actions { flex-wrap: wrap; }
.admin-game-actions > span { flex-basis: 100%; }
.form-feedback.error, .user-status.disabled { color: #ff99a7; }
.server-status.server-online, .library-main .server-online, .integrity-enabled { color: #7bddb1; }
.library-state.state-added { color: #87cfff; }
.server-unavailable, .server-error { color: #f2bd7d; }
.integrity-message { color: #b9c6d3; }
.admin-categories-panel { margin-top: 20px; }
.panel-description { margin: 7px 0 0; color: #8ca2ba; font-size: 11px; line-height: 1.6; }
.category-form { display: grid; grid-template-columns: minmax(140px, 1.1fr) 150px minmax(140px, 1fr) 130px auto; gap: 12px; align-items: end; padding: 16px 0 20px; border-bottom: 1px solid var(--line); }
.category-form-actions { display: flex; gap: 8px; align-items: center; }
.category-form-actions button { min-height: 40px; white-space: nowrap; }
.admin-category-list { display: grid; gap: 0; }
.admin-category-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-category-name { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-width: 0; }
.admin-category-name strong { color: #edf6ff; font-size: 12px; }
.admin-category-name > span:last-child { color: #8ea5bb; font-size: 11px; }
.admin-category-name .chip-dot { flex: 0 0 auto; }
.admin-category-row .admin-row-actions { flex: 0 0 auto; }
.admin-category-row .outline-button, .admin-category-row .delete-button { min-height: 31px; }
@media (min-width: 1500px) { .hero-band { background-size: 100% auto; } }
@media (max-width: 1100px) {
  .sidebar { gap: 20px; flex-wrap: wrap; padding-top: 8px; }
  .main-nav { gap: 20px; }
  .nav-item { min-height: 64px; font-size: 13px; }
  .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discover-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; }
  .hero-feature { grid-template-columns: 130px minmax(0, 1fr) 40px; gap: 16px; }
}
@media (max-width: 820px) {
  .sidebar { gap: 0 20px; padding: 10px 24px 0; }
  .brand-lockup { order: 0; padding: 0; }
  .sidebar-logo { width: 160px; height: 48px; }
  .sidebar > .topbar-actions { order: 1; margin-left: auto; gap: 10px; }
  .sidebar-bottom { display: flex; margin-left: 0; order: 2; }
  .sidebar-bottom .nav-item { min-height: 48px; }
  .main-nav { order: 3; width: 100%; margin: 4px 0 0; display: flex; overflow-x: auto; gap: 24px; }
  .nav-item { flex: 0 0 auto; min-height: 48px; }
  .nav-count { display: inline; }
  .main-content { padding: 0 24px 40px; }
  .topbar { height: 58px; }
  .logout-button { display: block; font-size: 12px; }
  .hero-band { min-height: 350px; background-position: 58% center; }
  .activity-banner-copy { width: calc(100% - 48px); padding-bottom: 34px; }
  .activity-banner-copy h2 { font-size: 25px; }
  .discover-layout { grid-template-columns: minmax(0, 1fr); }
  .discover-rail { position: static; order: -1; grid-template-columns: 180px minmax(0, 1fr); align-items: start; }
  .discover-rail .presence-strip { min-width: 0; }
  .presence-strip { grid-template-columns: 160px minmax(0, 1fr); gap: 16px; }
  .presence-users { grid-column: 2; grid-row: 1 / 3; order: 0; }
  .presence-updated { grid-column: 1; white-space: normal; line-height: 1.6; }
  .section-header { display: grid; gap: 18px; }
  .catalog-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 18px; }
  .catalog-sidebar { padding: 14px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-feature { grid-template-columns: minmax(0, 1fr) 40px; padding-left: 142px; background-size: 124px 100%; }
  .feature-topline { grid-column: 1 / -1; grid-row: 1; }
  .feature-content { grid-column: 1; grid-row: 2; }
  .feature-arrow { grid-column: 2; grid-row: 2; }
  .feature-content p { display: none; }
  .auth-screen { display: block; }
  .auth-art { min-height: 220px; background-size: auto 380px; }
  .auth-world-brand { width: 280px; max-width: 64%; left: 24px; top: 56px; }
  .auth-panel { width: 100%; padding: 32px 24px; min-height: calc(100vh - 220px); }
  .auth-brand { display: none; }
  .category-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-form-actions { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .main-nav { gap: 22px; }
  .hero-band { min-height: 335px; background-position: 58% center; }
  .activity-banner-copy { width: calc(100% - 36px); padding-bottom: 28px; }
  .activity-banner-copy h2 { font-size: 22px; }
  .discover-rail { grid-template-columns: minmax(0, 1fr); }
  .hero-metrics { gap: 27px; margin-top: 32px; }
  .presence-strip { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .presence-summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .presence-summary > strong { margin: 0 0 0 8px; }
  .presence-summary > span { align-self: center; margin: 0; }
  .presence-users { grid-column: 1; grid-row: auto; }
  .presence-updated { grid-column: 1; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .catalog-sidebar { position: static; }
  .catalog-sidebar .quick-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .select-control { padding: 0 8px; }
  .client-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-feature { padding: 14px 0 14px 112px; background-size: 96px 100%; gap: 8px; }
  .feature-content h2 { font-size: 17px; }
  .feature-content p { display: none; }
  .feature-topline { font-size: 11px; }
  .hero-feature .server-status { font-size: 11px; }
  .category-form { grid-template-columns: minmax(0, 1fr); }
  .category-form-actions { grid-column: auto; }
  .admin-category-row { align-items: start; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Home composition: the artwork and featured release read as one editorial module. */
.featured-event { margin: 0 min(-24px, calc((1280px - 100vw) / 2)) 30px; overflow: hidden; border: 1px solid #1c4770; border-left: 0; border-right: 0; border-radius: 0; background: #07182c; box-shadow: 0 18px 60px rgba(0, 91, 178, .16); }
.featured-event-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 20px max(24px, calc((100vw - 1280px) / 2)) 17px; border-bottom: 1px solid #183c60; background: #091b31; }
.featured-event-heading h2 { margin: 0; color: #edf6ff; font-size: 22px; }
.featured-event-heading > span { color: #7898b7; font-size: 11px; }
.featured-event .hero-band, .featured-event .hero-band.without-feature { min-height: 330px; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.featured-event .hero-feature { position: relative; z-index: 2; margin-top: -116px; min-height: 116px; border-top: 1px solid #214b70; border-bottom: 0; background-color: rgba(7, 24, 44, .92); background-blend-mode: screen; box-shadow: 0 -18px 35px rgba(3, 12, 24, .3); }
.rail-library-card, .rail-creator-card { display: grid; gap: 15px; padding: 18px; border: 1px solid #263a52; border-radius: 9px; background: #0e1827; }
.rail-library-card h2, .rail-creator-card h2 { margin: 6px 0 0; color: #eef7ff; font-size: 16px; }
.rail-library-card p, .rail-creator-card p { margin: 7px 0 0; color: #8ea6bf; font-size: 11px; line-height: 1.6; }
.rail-library-card p strong, .rail-creator-card p strong { color: #fff; font-size: 18px; }
.rail-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 36px; padding: 9px 11px; border: 1px solid #2b628d; border-radius: 5px; background: #123a59; color: #bdeaff; font-size: 11px; text-align: left; }
.rail-action:hover { background: #18547e; border-color: #4ea7da; }
.rail-action.secondary { background: transparent; border-color: #2a435d; color: #98b9d4; }
.rail-action.secondary:hover { background: #142a42; }
.rail-creator-actions { display: grid; gap: 8px; }
.discover-rail .collection-stat { order: 0; }
.discover-rail .presence-strip { order: 1; }
.discover-rail .rail-library-card { order: 2; }
.discover-rail .rail-creator-card { order: 3; }
@media (min-width: 821px) {
  .sidebar-bottom { display: flex; align-items: stretch; gap: 24px; }
}
@media (max-width: 820px) {
  .sidebar-bottom { display: flex; align-items: center; gap: 16px; }
  .featured-event-heading { align-items: start; flex-direction: column; gap: 7px; }
  .featured-event .hero-band, .featured-event .hero-band.without-feature { min-height: 315px; }
  .featured-event .activity-banner-copy { padding-top: 54px; padding-bottom: 118px; }
  .featured-event .hero-feature { margin-top: -108px; min-height: 108px; }
  .rail-library-card, .rail-creator-card { padding: 15px; }
}
@media (max-width: 520px) {
  .featured-event { margin-left: -24px; margin-right: -24px; border-radius: 0; }
  .featured-event-heading { padding: 17px 18px 14px; }
  .featured-event-heading h2 { font-size: 19px; }
  .featured-event .hero-band, .featured-event .hero-band.without-feature { min-height: 300px; }
  .featured-event .activity-banner-copy { width: calc(100% - 36px); padding-top: 45px; padding-bottom: 112px; }
  .featured-event .hero-feature { margin-top: -102px; min-height: 102px; }
  .discover-rail .presence-strip { order: -1; }
}
