@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,700;1,800&family=Noto+Sans+SC:wght@400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0b1116;
  --panel: #111a21;
  --panel-2: #172128;
  --line: #29343b;
  --text: #e9e7de;
  --muted: #859199;
  --orange: #f27b50;
  --orange-dark: #ca5d3d;
  --mint: #b8d7c7;
  --yellow: #e7bd75;
  --mono: 'Space Mono', 'Consolas', monospace;
  --display: 'Barlow Condensed', 'Arial Narrow', 'Noto Sans SC', sans-serif;
  --sans: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --sidebar: 220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; min-width: 320px; }
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, [role='button']:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
button { border: 0; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button svg, label svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: #111; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #344048; border-radius: 10px; }

.app-shell { min-height: 100vh; }
.sidebar { width: var(--sidebar); height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 40; background: #0e161c; border-right: 1px solid #273139; display: flex; flex-direction: column; padding: 29px 20px 22px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px 31px; cursor: pointer; }
.brand-mark { width: 43px; height: 43px; border: 2px solid var(--orange); display: grid; grid-template-columns: 1fr 1fr; align-items: center; transform: rotate(-4deg); position: relative; color: var(--orange); font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; padding: 4px; }
.brand-mark::after { content: ''; position: absolute; inset: 4px; border: 1px solid #f27b5044; }
.brand-mark span:last-child { transform: translateY(6px); }
.brand-mark span:first-child { transform: translateY(-5px); }
.brand strong { display: block; font: 800 25px/1 var(--display); letter-spacing: 2px; }
.brand small { display: block; margin-top: 6px; color: var(--muted); font: 400 9px/1 var(--mono); letter-spacing: 3px; }
.side-label { color: #56646c; font: 400 9px/1 var(--mono); letter-spacing: 1.8px; margin: 0 12px 14px; text-transform: uppercase; }
.main-nav { display: grid; gap: 6px; }
.nav-item { height: 48px; background: transparent; display: flex; align-items: center; gap: 12px; color: #8f9aa1; padding: 0 13px; border: 1px solid transparent; text-align: left; transition: .2s ease; position: relative; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item span { flex: 1; font-size: 13px; font-weight: 500; }
.nav-item b { font: 400 10px/1 var(--mono); color: #5e6b73; }
.nav-item:hover { color: var(--text); background: #151f26; }
.nav-item.active { color: #f3e9dd; background: #20252a; border-color: #3a3735; }
.nav-item.active::before { content: ''; position: absolute; left: -21px; width: 3px; height: 26px; background: var(--orange); }
.nav-item.active svg { color: var(--orange); }
.nav-item.active b { color: var(--orange); }
.nav-live { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px #f27b5088; }
.sidebar-mix { margin-top: auto; border: 1px solid #2a353b; padding: 15px; background: #121b21; position: relative; overflow: hidden; }
.sidebar-mix::after { content: 'A'; position: absolute; right: -5px; top: 42px; font: 800 100px/1 var(--display); color: #ffffff05; transform: rotate(8deg); pointer-events: none; }
.mix-head { display: flex; justify-content: space-between; align-items: center; font: 400 8px/1 var(--mono); letter-spacing: 1.5px; color: #78878e; }
.mix-head i { width: 5px; height: 5px; background: var(--orange); border-radius: 50%; }
.tape-mini { margin: 15px 0 12px; height: 66px; background: #c5b994; color: #20292d; padding: 10px 12px; transform: rotate(-2deg); box-shadow: 0 4px 20px #0003; }
.tape-reel { height: 32px; background: #273137; display: flex; align-items: center; justify-content: space-around; }
.tape-reel span { display: block; width: 22px; height: 22px; border: 6px dotted #c5b994; border-radius: 50%; animation: spin 6s linear infinite; animation-play-state: paused; }
.sidebar-mix.playing .tape-reel span { animation-play-state: running; }
.tape-lines { width: 50%; height: 2px; background: #a15b42; margin-top: 7px; box-shadow: 0 5px #a15b42; }
.sidebar-mix > strong { display: block; font: 600 15px/1.2 var(--display); letter-spacing: .6px; }
.sidebar-mix > small { font: 400 7px/1 var(--mono); color: #697880; letter-spacing: .8px; }
.mix-control { display: flex; align-items: center; gap: 7px; padding: 13px 0 0; margin-top: 12px; border-top: 1px solid #2a353b; width: 100%; background: transparent; color: #c5ccc9; font-size: 11px; }
.mix-control svg { width: 13px; height: 13px; color: var(--orange); }
.equalizer { margin-left: auto; display: flex; gap: 2px; height: 12px; align-items: end; }
.equalizer i { display: block; width: 2px; height: 4px; background: #5e6d72; }
.sidebar-mix.playing .equalizer i { background: var(--orange); animation: equalize .6s ease-in-out infinite alternate; }
.sidebar-mix.playing .equalizer i:nth-child(2) { animation-delay: -.3s; }
.sidebar-mix.playing .equalizer i:nth-child(3) { animation-delay: -.45s; }
.system-status { padding: 19px 3px 0; }
.system-status span { display: flex; gap: 7px; align-items: center; font: 400 8px/1 var(--mono); color: #819088; letter-spacing: .7px; }
.system-status i { width: 5px; height: 5px; border-radius: 50%; background: #8cb49b; box-shadow: 0 0 8px #8cb49b55; }
.system-status small { display: block; color: #47565d; font: 400 8px/1 var(--mono); margin-top: 7px; padding-left: 12px; }

.main-content { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 76px; border-bottom: 1px solid #253038; padding: 0 35px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: #0b1116ed; backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 10px; white-space: nowrap; font: 400 9px/1 var(--mono); letter-spacing: 1px; color: #53636b; }
.breadcrumb i { color: #35444c; font-style: normal; }
.breadcrumb strong { color: #a4afb3; font-family: var(--sans); font-size: 11px; letter-spacing: .5px; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.global-search { width: 252px; height: 38px; border: 1px solid #29353c; background: #10181e; display: flex; align-items: center; padding: 0 11px; gap: 9px; transition: .2s; }
.global-search:focus-within { border-color: #66736f; }
.global-search svg { width: 16px; height: 16px; color: #6c7b83; }
.global-search input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: #dce0dc; font-size: 11px; }
.global-search input::placeholder { color: #627078; }
.global-search kbd { font: 400 9px/1 var(--mono); color: #52616a; border: 1px solid #2a363d; padding: 3px 4px; }
.upload-button { height: 38px; display: flex; align-items: center; gap: 8px; background: #dedbcf; color: #172027; padding: 0 15px; font-size: 11px; font-weight: 600; transition: .2s; }
.upload-button:hover { background: #f1eee4; transform: translateY(-1px); }
.upload-button svg { width: 15px; height: 15px; }
.icon-button { background: transparent; display: grid; place-items: center; width: 38px; height: 38px; }
.mobile-menu { display: none; }

.view { display: none; padding: 29px 35px 0; animation: viewIn .35s ease; }
.view.active { display: block; }
.hero { min-height: 475px; position: relative; overflow: hidden; background: radial-gradient(circle at 75% 70%, #3a302c 0, transparent 40%), linear-gradient(120deg, #1b2b31, #17252b 60%, #1c2429); border: 1px solid #344148; display: grid; grid-template-columns: 54% 46%; }
.hero::before { content: ''; position: absolute; left: 0; top: 0; width: 5px; height: 100%; background: var(--orange); }
.hero::after { content: 'MILANO'; position: absolute; left: 38%; bottom: -42px; font: 800 170px/1 var(--display); color: #ffffff03; letter-spacing: 10px; pointer-events: none; }
.hero-grid { position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(#a7c1c333 1px, transparent 1px), linear-gradient(90deg, #a7c1c333 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-copy { padding: 51px 0 34px 51px; position: relative; z-index: 3; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #9ba9aa; font: 400 9px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.eyebrow span { color: var(--orange); }
.eyebrow i { width: 26px; height: 1px; background: #59666b; }
.hero h1 { font: 800 clamp(64px, 6vw, 87px)/.95 var(--display); letter-spacing: -2px; margin: 27px 0 22px; position: relative; color: #eeeadf; }
.hero h1 em, .page-intro h1 em, .game-heading h1 em, .about-hero h1 em { color: var(--orange); font-style: italic; }
.hero-star { display: inline-block; font: 400 40px/1 var(--sans); color: var(--yellow); margin-left: 18px; vertical-align: top; animation: pulseStar 3s ease-in-out infinite; }
.hero-copy > p { font-size: 13px; line-height: 1.9; color: #9facaf; margin: 0; }
.hero-actions { display: flex; gap: 21px; align-items: center; margin-top: 30px; }
.primary-button { min-height: 43px; background: var(--orange); color: #172027; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-button:hover { background: #ff9269; transform: translateY(-2px); box-shadow: 0 7px 22px #f27b5022; }
.primary-button svg { width: 16px; height: 16px; }
.primary-button .end-icon { margin-left: 15px; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #a6b0b1; padding: 9px 0; font-size: 11px; }
.text-button:hover { color: #f4eee4; }
.text-button svg { width: 15px; height: 15px; }
.hero-meta { display: flex; align-items: center; gap: 13px; color: #6f8085; font-size: 9px; margin-top: 33px; }
.hero-meta b { font: 700 11px/1 var(--mono); color: #b9c3c1; margin-right: 3px; }
.hero-meta i { height: 11px; width: 1px; background: #415056; }
.hero-visual { position: relative; min-width: 0; }
.hero-planet { position: absolute; width: 375px; height: 375px; border-radius: 50%; left: 47%; top: 50%; transform: translate(-50%, -47%); background: radial-gradient(circle at 33% 27%, #ffc17b 0, #e38657 30%, #a4493d 66%, #552d34 100%); box-shadow: inset -30px -20px 50px #351f2c88, 0 0 80px #ec845022; }
.hero-planet::before, .hero-planet::after { content: ''; position: absolute; inset: 40px -25px; border-radius: 50%; border-top: 10px solid #f5bb7944; transform: rotate(-19deg); }
.hero-planet::after { inset: 140px -15px; border-top-width: 25px; border-top-color: #6f384044; }
.planet-orbit { position: absolute; left: 47%; top: 50%; width: 500px; height: 190px; border: 1px solid #eac08e33; border-radius: 50%; transform: translate(-50%, -50%) rotate(-23deg); }
.orbit-two { width: 425px; height: 455px; transform: translate(-50%, -50%) rotate(38deg); border-color: #eac08e1f; }
.orbit-one::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #f5cd8b; top: 33px; right: 72px; box-shadow: 0 0 14px #f5cd8b; }
.starlord-art { position: absolute; z-index: 2; height: 113%; width: auto; max-width: 100%; bottom: -24px; left: 47%; transform: translateX(-50%); filter: drop-shadow(15px 12px 18px #080e1488); }
.hero-coordinate { position: absolute; right: 18px; top: 28px; text-align: right; z-index: 3; }
.hero-coordinate span { display: block; color: #d5c8b9; font: 700 12px/1 var(--mono); letter-spacing: 2px; }
.hero-coordinate small { display: block; color: #857d74; font: 400 8px/1 var(--mono); margin-top: 7px; }
.hero-badge { position: absolute; z-index: 4; right: 19px; bottom: 45px; border-left: 2px solid var(--yellow); padding: 3px 0 3px 10px; transform: rotate(-3deg); text-shadow: 0 2px 8px #000; }
.hero-badge span { display: block; color: #d3c5b3; font: 400 7px/1 var(--mono); letter-spacing: 2px; }
.hero-badge strong { display: block; color: var(--yellow); font: italic 800 27px/1 var(--display); letter-spacing: 1px; margin: 4px 0; }
.hero-badge small { display: block; color: #b2c7b7; font: 400 7px/1 var(--mono); }
.art-note { position: absolute; left: 20px; bottom: 17px; z-index: 4; color: #f7dec855; font: 400 7px/1 var(--mono); letter-spacing: 1.3px; writing-mode: vertical-lr; transform: rotate(180deg); }

.archive-section { padding: 42px 0 35px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 26px; }
.section-kicker { font: 400 8px/1 var(--mono); letter-spacing: 2px; color: var(--orange); margin-bottom: 9px; }
.section-heading h2 { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: .5px; }
.section-heading h2 span { display: inline-grid; place-items: center; vertical-align: middle; margin-left: 7px; width: 26px; height: 20px; border: 1px solid #3a454b; color: #75838a; font: 400 9px/1 var(--mono); }
.section-heading > p { margin: 0; color: #6f7e85; font-size: 10px; line-height: 1.8; text-align: right; }
.filter-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #2b353c; margin-bottom: 23px; }
.filter-tabs { display: flex; gap: 29px; }
.filter-tabs button { padding: 0 0 13px; background: transparent; color: #728087; font-size: 11px; position: relative; }
.filter-tabs button:hover { color: #d5d9d5; }
.filter-tabs button.active { color: #ece7dd; }
.filter-tabs button.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--orange); }
.sort-button { background: transparent; color: #728087; font-size: 10px; padding: 0 0 13px; }
.sort-button span { color: var(--orange); margin-left: 6px; }
.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.asset-card { background: #121b22; border: 1px solid #29343b; min-width: 0; position: relative; transition: transform .25s, border-color .25s, box-shadow .25s; animation: cardIn .35s ease both; }
.asset-card:hover { transform: translateY(-5px); border-color: #526068; box-shadow: 0 14px 30px #0003; }
.asset-art { width: 100%; aspect-ratio: 1.33; overflow: hidden; position: relative; cursor: pointer; background: #263139; border: 0; padding: 0; }
.asset-art > svg, .asset-art > img, .asset-art > video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.asset-card:hover .asset-art > svg, .asset-card:hover .asset-art > img { transform: scale(1.035); }
.asset-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 65%, #0c141b88); pointer-events: none; }
.asset-index { position: absolute; left: 13px; top: 12px; z-index: 2; color: #fff9; font: 400 8px/1 var(--mono); letter-spacing: 1px; }
.favorite-button { position: absolute; z-index: 3; right: 10px; top: 10px; width: 31px; height: 31px; display: grid; place-items: center; background: #0d151bc9; border: 1px solid #ffffff20; color: #e6e6dd; backdrop-filter: blur(8px); }
.favorite-button svg { width: 14px; height: 14px; }
.favorite-button:hover, .favorite-button.active { color: var(--orange); border-color: #f27b5066; }
.favorite-button.active svg { fill: var(--orange); }
.asset-view { position: absolute; z-index: 2; bottom: 12px; right: 13px; color: #fff; font: 400 8px/1 var(--mono); letter-spacing: 1px; display: flex; gap: 5px; align-items: center; opacity: 0; transform: translateY(5px); transition: .2s; }
.asset-view svg { width: 13px; height: 13px; }
.asset-card:hover .asset-view { opacity: .85; transform: translateY(0); }
.uploaded-chip { position: absolute; z-index: 2; bottom: 10px; left: 11px; background: var(--mint); color: #152029; padding: 4px 6px; font: 700 7px/1 var(--mono); letter-spacing: 1px; }
.asset-info { padding: 17px 17px 16px; }
.asset-type { display: flex; justify-content: space-between; color: var(--orange); font: 400 8px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.asset-type span:last-child { color: #64747c; letter-spacing: .5px; }
.asset-info h3 { font-size: 15px; font-weight: 600; margin: 10px 0 6px; color: #e6e4db; }
.asset-info > p { color: #68777f; font: 400 8px/1.4 var(--mono); letter-spacing: .6px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; padding-top: 12px; border-top: 1px solid #263139; }
.asset-tags { display: flex; gap: 6px; color: #79868b; font-size: 9px; }
.asset-tags span + span::before { content: '·'; margin-right: 6px; color: #44545c; }
.card-open { display: flex; align-items: center; gap: 5px; background: transparent; color: #8c999e; font-size: 9px; padding: 0; }
.card-open:hover { color: var(--orange); }
.card-open svg { width: 13px; height: 13px; }
.card-delete { color: #78858b; background: transparent; padding: 2px; }
.card-delete:hover { color: var(--orange); }
.card-delete svg { width: 13px; height: 13px; }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed #334048; }
.empty-orbit { width: 70px; height: 70px; border: 1px solid #4d5d62; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; color: var(--orange); font-size: 28px; box-shadow: 0 0 0 12px #ffffff02; }
.empty-state h3 { font: 700 27px/1 var(--display); margin: 0 0 12px; }
.empty-state p { color: var(--muted); font-size: 11px; margin: 0 0 22px; }
.secondary-button { min-height: 41px; padding: 0 17px; background: transparent; border: 1px solid #47545a; color: #d4d7d1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; }
.secondary-button:hover { border-color: var(--orange); color: var(--orange); }

.page-intro { min-height: 220px; display: flex; align-items: center; justify-content: space-between; padding: 35px 45px; background: linear-gradient(120deg, #1b2b31, #172128); border: 1px solid #334047; margin-bottom: 30px; }
.page-intro h1 { font: 800 51px/1.05 var(--display); margin: 17px 0 12px; }
.page-intro p { color: #89989e; font-size: 11px; }
.intro-stat { display: flex; align-items: center; gap: 16px; padding-right: 25px; }
.intro-stat strong { color: var(--orange); font: 700 75px/.8 var(--display); }
.intro-stat span { color: #75858b; font: 400 9px/1.6 var(--mono); letter-spacing: 1.5px; }
.favorites-grid { padding-bottom: 40px; }
.favorite-empty { margin-bottom: 40px; }

.game-heading { display: flex; align-items: end; justify-content: space-between; margin: 8px 0 26px; }
.game-heading h1 { font: 800 48px/1.02 var(--display); margin: 18px 0 0; letter-spacing: -.5px; }
.mission-label { border-left: 1px solid #344148; padding: 5px 0 5px 20px; min-width: 210px; }
.mission-label small { display: block; color: var(--orange); font: 400 8px/1 var(--mono); letter-spacing: 1.5px; }
.mission-label strong { display: block; font-size: 15px; margin: 9px 0; }
.mission-label span { color: #839097; font-size: 9px; display: flex; align-items: center; gap: 6px; }
.mission-label i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.game-console { border: 1px solid #3a464c; background: #10181e; box-shadow: 0 20px 60px #0004; }
.console-top { height: 43px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border-bottom: 1px solid #354148; font: 400 8px/1 var(--mono); letter-spacing: 1px; color: #809097; }
.console-top > div { display: flex; align-items: center; gap: 9px; }
.console-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.console-top b { font-weight: 400; color: #526168; margin-left: 8px; }
.console-top > div:last-child > span { color: #a9c6b5; margin-right: 7px; }
.console-icon { background: transparent; color: #809097; padding: 5px; }
.console-icon:hover { color: var(--orange); }
.console-icon svg { width: 14px; height: 14px; }
.game-stage { position: relative; aspect-ratio: 2 / 1; background: #080e17; overflow: hidden; }
#gameCanvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.game-hud { position: absolute; inset: 0; pointer-events: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-start; }
.hud-left { width: 160px; }
.hud-label { display: flex; justify-content: space-between; color: #c4d3d0; font: 400 8px/1 var(--mono); letter-spacing: .8px; }
.hud-label b { color: #f2eadd; font-size: 9px; }
.hud-bar { margin-top: 7px; width: 100%; height: 5px; padding: 1px; border: 1px solid #c9dad355; }
.hud-bar i { display: block; width: 100%; height: 100%; background: var(--orange); transition: width .15s; }
.energy-label { margin-top: 12px; color: #819c9d; }
.hud-bar.energy { height: 4px; border-color: #769c9c55; }
.hud-bar.energy i { background: #8abeb5; }
.hud-center { text-align: center; }
.hud-center small, .hud-right small { color: #839b9c; font: 400 7px/1 var(--mono); letter-spacing: 2px; }
.hud-center strong { display: block; color: #e8e4d7; font: 700 23px/1 var(--mono); letter-spacing: 2px; margin-top: 5px; }
.hud-center span { display: block; color: var(--yellow); font: 700 9px/1 var(--mono); margin-top: 7px; }
.hud-right { text-align: right; }
.hud-right > div { margin-top: 4px; }
.hud-right strong { color: var(--orange); font: 700 27px/1 var(--mono); }
.hud-right span { color: #809294; font: 400 12px/1 var(--mono); }
.game-overlay { position: absolute; inset: 0; z-index: 5; background: radial-gradient(circle at 50% 45%, #15232acc, #080e13f2 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 25px; }
.overlay-reticle { width: 54px; height: 54px; border: 1px solid #f27b5055; border-radius: 50%; position: absolute; top: 14%; }
.overlay-reticle::before, .overlay-reticle::after { content: ''; position: absolute; background: var(--orange); }
.overlay-reticle::before { width: 70px; height: 1px; left: -9px; top: 26px; }
.overlay-reticle::after { width: 1px; height: 70px; top: -9px; left: 26px; }
.mission-chip { color: var(--orange); font: 400 8px/1 var(--mono); letter-spacing: 2px; margin-bottom: 13px; }
.game-overlay h2 { font: 800 clamp(28px, 3.2vw, 45px)/1 var(--display); margin: 0 0 12px; letter-spacing: .5px; }
.game-overlay > p { color: #8e9da1; font-size: 10px; line-height: 1.8; margin: 0 0 20px; }
.start-game { min-width: 210px; }
.start-game > span { margin-left: 18px; padding-left: 13px; border-left: 1px solid #17202744; font: 400 8px/1 var(--mono); }
.quick-controls { display: flex; gap: 22px; margin-top: 21px; color: #728389; font-size: 8px; }
kbd { font-family: var(--mono); }
.quick-controls kbd { color: #c4ceca; font-size: 8px; margin-right: 4px; }
.pause-overlay { background: #091117d9; backdrop-filter: blur(4px); }
.pause-overlay .text-button, #gameEndOverlay .text-button { margin-top: 7px; }
.end-stats { display: flex; gap: 45px; margin: 0 0 22px; }
.end-stats > div { display: flex; flex-direction: column; gap: 6px; }
.end-stats strong { color: var(--yellow); font: 700 23px/1 var(--mono); }
.end-stats span { color: #76868b; font-size: 8px; }
.console-bottom { min-height: 54px; display: flex; align-items: center; gap: 27px; padding: 8px 15px; border-top: 1px solid #303c43; }
.console-bottom > div { display: flex; align-items: center; gap: 7px; color: #75848a; font-size: 8px; }
.console-bottom kbd { display: inline-grid; place-items: center; min-width: 23px; height: 22px; padding: 0 5px; border: 1px solid #3c494f; border-bottom-width: 2px; color: #aab4b4; background: #182229; font-size: 8px; }
.key-group { display: flex; gap: 2px; }
.key-group kbd { min-width: 19px; width: 19px; padding: 0; }
.console-bottom svg { width: 17px; height: 17px; fill: none; stroke: #aab4b4; stroke-width: 1.5; }
.console-bottom > button { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #839298; background: transparent; font-size: 8px; }
.console-bottom > button:hover { color: var(--orange); }
.console-bottom > button svg { width: 13px; height: 13px; }
.mission-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 28px 0 38px; }
.mission-notes article { border-top: 1px solid #344047; padding-top: 16px; }
.mission-notes article > span { color: var(--orange); font: 400 8px/1 var(--mono); letter-spacing: 1px; }
.mission-notes h3 { font: 600 18px/1 var(--display); margin: 10px 0 8px; }
.mission-notes p { color: #75848b; font-size: 10px; line-height: 1.8; margin: 0; }
.mobile-game-controls { display: none; }
.game-stage:fullscreen { aspect-ratio: auto; width: 100vw; height: 100vh; }
.game-stage:fullscreen #gameCanvas { object-fit: contain; background: #080e17; }

.about-hero { padding: 65px 55px; background: linear-gradient(125deg, #1a2b31, #172128); border: 1px solid #344148; position: relative; overflow: hidden; }
.about-hero::after { content: '✦'; position: absolute; right: 7%; top: 0; color: #f27b5012; font-size: 280px; line-height: 1; transform: rotate(15deg); }
.about-hero h1 { font: 800 clamp(42px, 5vw, 68px)/1.04 var(--display); margin: 23px 0; position: relative; z-index: 1; }
.about-hero > p { max-width: 690px; color: #93a1a4; font-size: 12px; line-height: 2; position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 25px 0; }
.about-grid article { padding: 25px; border: 1px solid #2d393f; background: #111a20; }
.about-grid article > span { color: var(--orange); font: 400 10px/1 var(--mono); }
.about-grid h3 { font: 600 23px/1 var(--display); margin: 20px 0 12px; }
.about-grid p { color: #7e8d92; font-size: 10px; line-height: 1.9; margin: 0; }
.about-quote { text-align: center; padding: 35px 20px 55px; }
.about-quote > span { color: var(--orange); font: 800 60px/.5 var(--display); }
.about-quote blockquote { font: 600 28px/1.5 var(--display); margin: 15px 0 22px; color: #cdd1c9; }

.footer { border-top: 1px solid #263139; min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #53636a; font: 400 7px/1.5 var(--mono); letter-spacing: .8px; padding: 18px 0; }
.footer span:last-child { font-family: var(--sans); letter-spacing: .5px; }

.modal-backdrop, .upload-modal-backdrop { position: fixed; inset: 0; z-index: 80; background: #050a0edb; backdrop-filter: blur(8px); display: grid; place-items: center; padding: 30px; animation: fadeIn .2s; }
.asset-modal { width: min(880px, 100%); max-height: 90vh; overflow: auto; background: #121c22; border: 1px solid #435057; display: grid; grid-template-columns: 48% 52%; position: relative; box-shadow: 0 30px 100px #0008; }
.modal-close { position: absolute; right: 12px; top: 12px; z-index: 3; color: #d5dbd7; background: #10191fbb; border: 1px solid #ffffff20; }
.modal-close:hover { color: var(--orange); }
.modal-art { min-height: 430px; background: #233139; }
.modal-art svg, .modal-art img, .modal-art video { width: 100%; height: 100%; object-fit: cover; }
.modal-art audio { width: 90%; margin: 180px 5% 0; }
.modal-details { padding: 50px 35px 30px; }
.modal-type { color: var(--orange); font: 400 8px/1 var(--mono); letter-spacing: 1.4px; }
.modal-details h2 { font: 700 34px/1.1 var(--display); margin: 15px 0; }
.modal-details > p { color: #8e9b9f; font-size: 11px; line-height: 1.9; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; }
.modal-tags span { border: 1px solid #38464c; padding: 5px 8px; color: #a4afaf; font-size: 8px; }
.modal-specs { margin: 22px 0; border-top: 1px solid #303c43; }
.modal-specs > div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #303c43; font-size: 9px; }
.modal-specs dt { color: #66767e; }
.modal-specs dd { color: #b8c1bf; margin: 0; font-family: var(--mono); }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .primary-button { flex: 1; }
.modal-actions .secondary-button.active { color: var(--orange); border-color: var(--orange); }
.modal-actions .secondary-button.active svg { fill: var(--orange); }
.license-note { display: block; color: #596970; font-size: 8px; margin-top: 16px; line-height: 1.6; }
.upload-modal { width: min(570px, 100%); background: #121c22; border: 1px solid #435057; padding: 38px; position: relative; }
.upload-modal h2 { font: 700 32px/1 var(--display); margin: 12px 0; }
.upload-modal > p { color: #839299; font-size: 10px; line-height: 1.8; }
.drop-zone { margin: 24px 0; border: 1px dashed #4b5c63; min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; background: #0e171d; transition: .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--orange); background: #f27b5008; }
.drop-zone svg { width: 28px; height: 28px; color: var(--orange); margin-bottom: 13px; }
.drop-zone strong { font-size: 11px; }
.drop-zone > span { color: #66777f; font-size: 8px; margin-top: 8px; }
.drop-zone small { color: var(--yellow); margin-top: 9px; font-size: 9px; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }
.form-row label { color: #94a1a5; font-size: 9px; }
.form-row input, .form-row select { display: block; margin-top: 8px; width: 100%; height: 40px; border: 1px solid #35434a; background: #0d161c; color: #d7dcd6; outline: none; padding: 0 11px; font-size: 11px; }
.form-row input:focus, .form-row select:focus { border-color: var(--orange); }
.upload-form-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 25px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: #e4e2d8; color: #172128; padding: 12px 18px; display: flex; align-items: center; gap: 9px; box-shadow: 0 10px 40px #0006; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; fill: none; stroke: #36835c; stroke-width: 2; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes equalize { to { height: 12px; } }
@keyframes pulseStar { 50% { opacity: .5; transform: rotate(25deg) scale(.85); } }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }

@media (min-width: 1550px) {
  :root { --sidebar: 240px; }
  .view { padding-left: 45px; padding-right: 45px; }
  .topbar { padding-left: 45px; padding-right: 45px; }
  .hero { min-height: 520px; }
  .hero-copy { padding-left: 65px; padding-top: 65px; }
  .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-planet { width: 420px; height: 420px; }
}
@media (max-width: 1180px) {
  :root { --sidebar: 190px; }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .nav-item.active::before { left: -16px; }
  .view, .topbar { padding-left: 24px; padding-right: 24px; }
  .hero-copy { padding-left: 36px; }
  .hero h1 { font-size: 65px; }
  .hero-meta { gap: 8px; }
  .hero-meta span:last-child, .hero-meta i:last-of-type { display: none; }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .global-search { width: 210px; }
  .console-bottom { gap: 15px; }
  .console-bottom > div { gap: 4px; }
}
@media (max-width: 900px) {
  :root { --sidebar: 76px; }
  .sidebar { padding: 24px 11px 18px; align-items: center; }
  .brand { padding: 0 0 28px; }
  .brand > div:last-child, .side-label, .nav-item span, .nav-item b, .sidebar-mix, .system-status { display: none; }
  .main-nav { width: 100%; }
  .nav-item { justify-content: center; padding: 0; }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-item.active::before { left: -12px; }
  .nav-live { position: absolute; right: 8px; top: 9px; }
  .hero { grid-template-columns: 57% 43%; }
  .hero-copy { padding-left: 30px; }
  .hero h1 { font-size: 58px; }
  .hero-planet { width: 300px; height: 300px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .hero-meta { display: none; }
  .starlord-art { height: 100%; }
  .hero-badge { display: none; }
  .filter-tabs { gap: 18px; }
  .breadcrumb > span, .breadcrumb > i { display: none; }
  .game-heading h1 { font-size: 40px; }
  .console-bottom > div:nth-child(2), .console-bottom > div:nth-child(4) { display: none; }
  .quick-controls { gap: 12px; }
}
@media (max-width: 680px) {
  :root { --sidebar: 0px; }
  .sidebar { width: 230px; transform: translateX(-100%); transition: transform .25s; align-items: stretch; padding: 25px 20px; box-shadow: 15px 0 50px #0008; }
  .sidebar.open { transform: translateX(0); }
  .brand > div:last-child, .side-label, .nav-item span, .nav-item b, .sidebar-mix, .system-status { display: block; }
  .brand { display: flex; }
  .main-nav { width: auto; }
  .nav-item { justify-content: flex-start; padding: 0 13px; }
  .nav-item.active::before { left: -21px; }
  .nav-live { position: static; }
  .sidebar-mix { margin-top: auto; }
  .mobile-menu { display: grid; margin-left: -10px; }
  .topbar { height: 64px; padding: 0 16px; gap: 8px; }
  .breadcrumb { display: none; }
  .top-actions { flex: 1; justify-content: flex-end; }
  .global-search { width: min(230px, calc(100vw - 150px)); }
  .global-search kbd { display: none; }
  .upload-button { width: 38px; padding: 0; justify-content: center; }
  .upload-button span { display: none; }
  .view { padding: 17px 15px 0; }
  .hero { display: block; min-height: 680px; }
  .hero-copy { padding: 32px 25px; z-index: 4; }
  .hero h1 { font-size: 62px; margin-top: 23px; }
  .hero-copy > p { font-size: 11px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 16px; }
  .hero-actions .primary-button { padding: 0 13px; }
  .hero-actions .end-icon { display: none; }
  .hero-visual { position: absolute; inset: 290px 0 0; }
  .hero-planet { width: 300px; height: 300px; left: 61%; top: 53%; }
  .planet-orbit { left: 61%; top: 53%; width: 390px; }
  .orbit-two { width: 320px; height: 350px; }
  .starlord-art { height: 420px; left: 59%; bottom: -30px; }
  .hero-coordinate { right: 12px; top: 35px; }
  .art-note { display: none; }
  .section-heading { align-items: flex-start; }
  .section-heading > p { display: none; }
  .archive-section { padding-top: 30px; }
  .filter-row { overflow-x: auto; gap: 20px; scrollbar-width: none; }
  .filter-tabs { gap: 20px; flex: none; }
  .filter-tabs button { white-space: nowrap; }
  .sort-button { display: none; }
  .asset-grid { grid-template-columns: 1fr; gap: 17px; }
  .asset-art { aspect-ratio: 1.35; }
  .page-intro { padding: 28px 24px; min-height: 200px; }
  .page-intro h1 { font-size: 40px; }
  .intro-stat { display: none; }
  .game-heading { align-items: flex-start; }
  .game-heading h1 { font-size: 37px; }
  .mission-label { display: none; }
  .game-console { margin-left: -15px; margin-right: -15px; border-left: 0; border-right: 0; }
  .game-stage { aspect-ratio: 1.25; }
  #gameCanvas { object-fit: cover; }
  .game-hud { padding: 13px; }
  .hud-left { width: 105px; }
  .hud-center strong { font-size: 16px; }
  .hud-center small, .hud-right small { font-size: 6px; }
  .hud-right strong { font-size: 20px; }
  .game-overlay { padding: 18px; }
  .game-overlay > p { max-width: 340px; font-size: 9px; }
  .overlay-reticle { display: none; }
  .quick-controls { display: none; }
  .console-bottom { display: none; }
  .console-top { height: 38px; }
  .console-top b { display: none; }
  .mobile-game-controls { position: absolute; display: flex; left: 12px; right: 12px; bottom: 12px; z-index: 4; align-items: end; gap: 10px; pointer-events: none; }
  .mobile-game-controls button { pointer-events: auto; touch-action: none; user-select: none; background: #14222bc9; border: 1px solid #b9d0ca44; color: #d6e1db; font: 700 10px/1 var(--mono); backdrop-filter: blur(3px); }
  .mobile-dpad > button { display: block; margin: 0 auto 3px; width: 34px; height: 28px; }
  .mobile-dpad > div { display: flex; gap: 3px; }
  .mobile-dpad > div button { width: 34px; height: 30px; }
  .mobile-jet { width: 44px; height: 44px; border-radius: 50%; margin-left: auto; }
  .mobile-fire { width: 57px; height: 57px; border-radius: 50%; color: var(--orange) !important; border-color: #f27b5077 !important; }
  .game-overlay:not([hidden]) ~ .mobile-game-controls { display: none; }
  .end-stats { gap: 24px; }
  .mission-notes { grid-template-columns: 1fr; gap: 18px; }
  .about-hero { padding: 40px 25px; }
  .about-hero h1 { font-size: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; padding: 22px 0; }
  .footer span:nth-child(2) { display: none; }
  .modal-backdrop, .upload-modal-backdrop { padding: 14px; }
  .asset-modal { grid-template-columns: 1fr; max-height: 94vh; }
  .modal-art { min-height: 240px; max-height: 280px; }
  .modal-details { padding: 28px 23px; }
  .upload-modal { padding: 30px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .toast { white-space: nowrap; max-width: 90vw; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
