:root{color-scheme:dark;--bg:#0e141c;--surface:#151e29;--line:#303d4a;--text:#f4f6f9;--muted:#b5c2d0;--accent:#b2e8cf;--ink:#142b22;font:16px/1.55 system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text)}
a{color:var(--accent);text-underline-offset:.22em}
button,input,textarea,select{font:inherit}
button,.button{min-height:44px;padding:.58rem 1.05rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:9px;border:1px solid transparent;background:var(--accent);color:var(--ink);font-weight:650;text-decoration:none;cursor:pointer}
button:hover,.button:hover{filter:brightness(1.09)}
.quiet{background:var(--surface);color:var(--text);border-color:var(--line)}
:focus-visible{outline:3px solid #e2ad72;outline-offset:3px}
img{max-width:100%;display:block;object-fit:cover}
h1,h2,h3,p{margin:0 0 .65rem}
h1{font-size:clamp(2rem,6vw,4.15rem);line-height:1.02;letter-spacing:-.05em}
h2{margin-top:1.6rem;font-size:1.55rem;line-height:1.2}
h3{font-size:1.12rem}
p{color:var(--muted)}
.site-header{border-bottom:1px solid var(--line);background:#111923}
.header-inner,.content,.site-footer{max-width:1200px;margin:auto;padding-inline:clamp(1rem,4vw,3rem)}
.header-inner{display:flex;min-height:72px;justify-content:space-between;align-items:center;gap:1rem}
.wordmark{display:inline-flex;align-items:center;gap:.5rem;color:var(--text);text-decoration:none;font-weight:750;font-size:1.08rem}
.wordmark span{color:var(--muted);font-weight:500}
.mark{display:inline-block;width:23px;height:23px;background:var(--accent);clip-path:polygon(0 0,100% 0,70% 32%,35% 32%,35% 49%,77% 49%,50% 76%,35% 76%,35% 100%,0 100%)}
.navlink,.back{font-size:.93rem}
.back{display:inline-block;margin:0 .85rem .9rem 0}
.content{padding-block:clamp(1.6rem,5vw,3.75rem);min-height:calc(100vh - 165px)}
.site-footer{border-top:1px solid var(--line);padding-block:1.4rem;display:flex;flex-wrap:wrap;gap:1rem;color:var(--muted)}
.eyebrow{display:block;color:var(--accent);font-size:.77rem;letter-spacing:.12em;text-transform:uppercase;font-weight:650;margin-bottom:.6rem}
.hero,.detail-hero{display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:clamp(1rem,4vw,3rem);min-height:260px;padding:clamp(1.25rem,4vw,2.9rem);background:var(--surface);border:1px solid var(--line);border-radius:23px}
.intro{font-size:1.12rem;max-width:47ch;margin-block:1rem}
.hero-art{position:relative;min-height:195px;overflow:hidden;perspective:450px}
.hero-art i{position:absolute;display:block;width:38%;height:72%;left:28%;top:13%;border-radius:17%;transform:rotateX(21deg) rotateZ(-16deg);border:2px solid #88bcf5;background:#223e5b;box-shadow:0 16px 32px #080d13}
.hero-art i:nth-child(2){left:37%;top:16%;transform:rotateX(21deg) rotateZ(4deg);border-color:#e6b18d;background:#4f3e39}
.hero-art i:nth-child(3){left:46%;top:19%;transform:rotateX(21deg) rotateZ(22deg);border-color:var(--accent);background:#244b43}
.filter{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem;margin:1.5rem 0}
.filter label:first-of-type{min-width:min(100%,15rem);flex:1}
label{display:grid;gap:.3rem;color:var(--muted);font-weight:550}
input,select,textarea{width:100%;min-height:44px;color:var(--text);background:#0f1721;border:1px solid var(--line);border-radius:8px;padding:.5rem .65rem}
textarea{resize:vertical}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem}
.card{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:var(--surface);text-decoration:none;color:var(--text)}
.card:hover{border-color:var(--accent)}
.card img{width:100%;aspect-ratio:16/9;background:#1b2634}
.card > div{padding:1rem}
.card h2{margin:0 0 .35rem}
.metadata{font-size:.88rem}
.empty,.release,.editor,.notice,.sign-in{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:1.15rem}
.empty h2,.editor h2{margin-top:0}
.detail-cover{width:100%;aspect-ratio:16/9;border-radius:12px}
.app-icon{width:64px;height:64px;border-radius:12px;margin-bottom:.8rem}
.detail-body{display:grid;grid-template-columns:1.5fr 1fr;gap:1.5rem}
.release{margin-bottom:.8rem}
.release details{margin-top:.7rem;font-size:.84rem;color:var(--muted)}
.release code,.copy{overflow-wrap:anywhere}
.copy{white-space:pre-line}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:.6rem}
.gallery img{width:100%;max-height:340px;object-fit:contain;border-radius:9px;background:var(--surface)}
.legal,.sign-in{max-width:48rem;margin:auto}
.admin-frame{display:grid;grid-template-columns:220px minmax(0,1fr);max-width:1450px;margin:auto;min-height:90vh}
.sidebar{display:grid;align-content:start;gap:.25rem;padding:1.4rem .9rem;border-right:1px solid var(--line)}
.sidebar a{padding:.58rem .72rem;color:var(--muted);text-decoration:none;border-radius:7px}
.sidebar a:hover,.sidebar a.active{background:var(--surface);color:var(--text)}
.admin-main{padding:clamp(.9rem,3vw,2.25rem);min-width:0}
.admin-main h1{font-size:clamp(1.8rem,4vw,2.65rem)}
.toolbar,.revision{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;margin-bottom:1rem}
.metrics,.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;margin:.8rem 0}
.metrics div{display:grid;padding:.85rem;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.metrics strong{font-size:1.48rem}
.metrics span{font-size:.87rem;color:var(--muted)}
.fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.full{grid-column:1/-1}
.editor{margin:1rem 0}
.editor section + section{border-top:1px solid var(--line);padding-top:1.3rem;margin-top:1.25rem}
fieldset{min-width:0;border:1px solid var(--line);border-radius:8px;margin-bottom:.8rem}
legend{font-weight:650;padding:0 .3rem}
.check{display:flex;align-items:center;gap:.6rem;min-height:44px}
.check input{width:1.2rem;min-height:0}
.validation{color:#ffb6ae}
.validation-summary-valid{display:none}
.form-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1rem}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
table{width:100%;border-collapse:collapse;background:var(--surface);text-align:left}
th,td{padding:.75rem .8rem;border-bottom:1px solid var(--line)}
td small{display:block;color:var(--muted)}
.skip{position:absolute;left:1rem;top:-5rem;background:var(--bg);padding:.5rem;z-index:1}
.skip:focus{top:1rem}
.promo-preview{max-width:320px}
@media(max-width:730px){.hero,.detail-hero,.detail-body,.admin-frame{grid-template-columns:1fr}.hero-art{display:none}.sidebar{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line);padding:.65rem}.sidebar a{font-size:.85rem}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}}
@media(max-width:480px){.fields{grid-template-columns:1fr}.metrics{gap:.35rem}.metrics div{padding:.5rem}.header-inner{min-height:60px}.wordmark{gap:.35rem}.filter button{flex:1}.cards{grid-template-columns:1fr}}
