@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Rajdhani:wght@600;700&display=swap');

:root { color-scheme: dark; --bg:#080808; --surface:#111; --surface-2:#171717; --line:#292929; --text:#f5f5f5; --muted:#8b8b8b; --red:#ed101d; --red-dark:#a9000a; font-family:Inter,system-ui,sans-serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { min-width:320px; min-height:100vh; margin:0; color:var(--text); background:var(--bg); }
body::before { content:""; position:fixed; inset:0; z-index:-2; opacity:.24; background-image:linear-gradient(#191919 1px,transparent 1px),linear-gradient(90deg,#191919 1px,transparent 1px); background-size:64px 64px; mask-image:linear-gradient(#000,transparent 75%); }
.ambient { position:fixed; z-index:-1; width:700px; height:700px; top:-390px; right:-180px; border-radius:50%; background:#d509162c; filter:blur(110px); pointer-events:none; }
a { color:inherit; text-decoration:none; }
button,input { font:inherit; }
button:disabled { opacity:.55; cursor:wait; }
.hidden { display:none!important; }

.site-header { width:min(1280px,calc(100% - 48px)); height:82px; margin:auto; display:flex; align-items:center; gap:48px; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:12px; font:700 22px Rajdhani,sans-serif; letter-spacing:.21em; }
.brand img { width:38px; height:38px; object-fit:cover; border-radius:6px; }
nav { display:flex; align-self:stretch; gap:34px; margin-left:auto; }
nav a { position:relative; display:grid; place-items:center; color:#888; font-size:10px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
nav a:hover,nav a.active { color:#fff; }
nav a.active::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:2px; background:var(--red); }
.button { min-height:46px; padding:0 20px; display:inline-flex; align-items:center; justify-content:center; gap:24px; color:#fff; background:linear-gradient(135deg,var(--red),#c7000c); border:1px solid #ff3642; border-radius:3px; box-shadow:0 8px 30px #ed101d1c; font-weight:800; font-size:11px; letter-spacing:.09em; text-transform:uppercase; cursor:pointer; transition:.18s ease; }
.button:hover { filter:brightness(1.13); transform:translateY(-1px); }
.button-ghost { color:#ddd; background:transparent; border-color:#414141; box-shadow:none; }
.header-download { min-height:40px; padding:0 15px; }
.header-user { margin-left:auto; padding:0; display:flex; align-items:center; gap:13px; color:#fff; background:transparent; border:0; cursor:pointer; }
.header-user span { font-size:11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.header-user i { padding:7px 9px; color:#777; border:1px solid #333; font-size:9px; font-style:normal; text-transform:uppercase; }

main { width:min(1280px,calc(100% - 48px)); margin:auto; }
.eyebrow { margin:0 0 18px; color:#aaa; font-size:9px; font-weight:800; letter-spacing:.21em; text-transform:uppercase; }
.eyebrow span { width:23px; height:2px; margin:0 9px 3px 0; display:inline-block; background:var(--red); }
h1,.home-section h2,.page-intro h1,.wardrobe-hero h1 { font-family:Rajdhani,Inter,sans-serif; font-weight:700; letter-spacing:-.05em; line-height:.84; text-transform:uppercase; }
h1 em,.home-section em,.page-intro em { color:var(--red); font-style:normal; }
.lead { max-width:570px; margin:30px 0 34px; color:#9c9c9c; font-size:16px; line-height:1.75; }
.text-action { color:#aaa; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.text-action:hover { color:#fff; }
.hero-actions { display:flex; align-items:center; gap:26px; }
.build-note { margin:14px 0 0; color:#555; font-size:9px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
code { padding:2px 5px; color:#ddd; background:#202020; border:1px solid #303030; border-radius:3px; }

.home-hero { min-height:650px; display:grid; grid-template-columns:1.08fr .92fr; align-items:center; border-bottom:1px solid var(--line); overflow:hidden; }
.hero-copy { position:relative; z-index:2; padding:80px 0; }
.home-hero h1 { margin:0; font-size:clamp(64px,7.4vw,110px); }
.hero-art { position:relative; height:560px; display:grid; place-items:center; }
.hero-art::before { content:""; position:absolute; width:430px; height:430px; border:1px solid #333; border-radius:50%; box-shadow:0 0 0 60px #1115,0 0 0 61px #292929; }
.hero-art::after { content:""; position:absolute; width:1px; height:100%; background:linear-gradient(transparent,#444,transparent); transform:rotate(38deg); }
.hero-art img { position:relative; z-index:2; width:min(350px,70%); filter:drop-shadow(0 30px 70px #e0001845); }
.red-slice { position:absolute; z-index:1; width:180px; height:500px; background:linear-gradient(var(--red),var(--red-dark)); transform:rotate(40deg); clip-path:polygon(0 8%,100% 0,72% 100%,15% 94%); opacity:.78; }
.hero-art p { position:absolute; z-index:3; right:0; bottom:24px; font:700 36px Rajdhani; }
.hero-art p span { display:block; color:#777; font:800 8px Inter; letter-spacing:.17em; }
.feature-strip { margin-bottom:110px; display:grid; grid-template-columns:repeat(3,1fr); background:#0d0d0d; border:1px solid var(--line); border-top:0; }
.feature-strip article { min-height:150px; padding:30px; border-right:1px solid var(--line); }
.feature-strip article:last-child { border:0; }
.feature-strip b { color:var(--red); font:700 25px Rajdhani; }
.feature-strip h2 { margin:18px 0 8px; font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.feature-strip p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }
.home-section { padding:0 0 120px; display:grid; grid-template-columns:1fr 1fr; gap:80px; }
.home-section h2 { margin:0; font-size:clamp(45px,5vw,70px); }
.process-list { border-top:1px solid var(--line); }
.process-list article { padding:25px 0; display:flex; gap:24px; border-bottom:1px solid var(--line); }
.process-list b { color:var(--red); font:700 22px Rajdhani; }
.process-list h3 { margin:0 0 7px; font-size:13px; text-transform:uppercase; }
.process-list p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }

.account-main { padding-bottom:100px; }
.page-intro { padding:85px 0 55px; border-bottom:1px solid var(--line); }
.page-intro h1 { margin:0; font-size:clamp(58px,7vw,96px); }
.page-intro>p:last-child { max-width:520px; margin:25px 0 0; color:var(--muted); line-height:1.7; }
.auth-layout { max-width:920px; margin:45px auto 0; display:grid; grid-template-columns:1fr 1fr; gap:15px; }
.panel { position:relative; padding:34px; background:linear-gradient(145deg,#171717,#0d0d0d); border:1px solid var(--line); }
.panel-accent { border-top-color:var(--red); }
.panel-top { display:flex; align-items:center; justify-content:space-between; }
.panel-top span { color:#333; font:700 50px Rajdhani; }
.panel-top p { color:#777; font-size:9px; font-weight:800; letter-spacing:.16em; }
.panel h2 { margin:8px 0 28px; font:700 32px Rajdhani; text-transform:uppercase; }
label { display:grid; gap:8px; margin:17px 0; color:#888; font-size:9px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
input { width:100%; padding:14px; color:#fff; background:#090909; border:1px solid #303030; border-radius:2px; outline:none; }
select { width:100%; padding:14px; color:#fff; background:#090909; border:1px solid #303030; border-radius:2px; outline:none; }
input[type="file"] { padding:11px; color:#aaa; }
input::placeholder { color:#4d4d4d; }
input:focus { border-color:var(--red); box-shadow:0 0 0 3px #ed101d16; }
.panel>.button { width:100%; margin-top:10px; }
.session-card { margin:55px 0; padding:48px; display:flex; align-items:center; justify-content:space-between; gap:40px; background:linear-gradient(135deg,#181010,#101010); border:1px solid var(--line); border-top:2px solid var(--red); }
.session-card h2 { margin:0 0 8px; font:700 44px Rajdhani; text-transform:uppercase; }
.session-card p:last-child { color:var(--muted); }
.session-actions { display:flex; gap:10px; }

.wardrobe-main { padding-bottom:110px; }
.wardrobe-hero { padding:70px 0 45px; display:flex; align-items:flex-end; justify-content:space-between; gap:40px; border-bottom:1px solid var(--line); }
.wardrobe-hero h1 { margin:0; font-size:clamp(52px,6.3vw,88px); }
.wardrobe-hero>div>p:last-child { margin:20px 0 0; color:var(--muted); }
.sync-state { padding:14px 17px; display:flex; align-items:center; gap:12px; background:#111; border:1px solid #303030; }
.sync-state>i { width:8px; height:8px; border-radius:50%; background:#54e37b; box-shadow:0 0 12px #54e37b; }
.sync-state div { display:grid; gap:4px; }
.sync-state b { font-size:9px; letter-spacing:.1em; text-transform:uppercase; }
.sync-state span { color:#666; font-size:9px; }
.free-badge { padding:13px 16px; color:#ffbdc1; background:#2a0c0f; border:1px solid #791923; font-size:9px; font-weight:900; letter-spacing:.14em; }
.wardrobe-tools { padding:24px 0; display:flex; justify-content:space-between; gap:20px; border-bottom:1px solid var(--line); }
.filters { display:flex; gap:6px; flex-wrap:wrap; }
.filters button { min-height:40px; padding:0 15px; color:#777; background:#101010; border:1px solid #292929; font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; cursor:pointer; }
.filters button:hover { color:#fff; border-color:#444; }
.filters button.active { color:#fff; background:#211011; border-color:var(--red); }
.filters button span { margin-left:8px; color:#555; }
.search { width:min(280px,100%); margin:0; display:flex; align-items:center; gap:8px; padding-left:13px; background:#0d0d0d; border:1px solid #292929; }
.search span { color:#777; font-size:20px; }
.search input { padding:11px 11px 11px 0; background:transparent; border:0; box-shadow:none; }
.catalog-heading { padding:28px 0 16px; display:flex; justify-content:space-between; color:#777; }
.catalog-heading p { margin:0; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.catalog-heading p span { color:#fff; }
.catalog-heading small { font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.catalog { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.cosmetic { position:relative; min-width:0; padding:17px; background:radial-gradient(circle at 50% 25%,#321216,transparent 43%),linear-gradient(145deg,#171717,#0c0c0c); border:1px solid var(--line); overflow:hidden; }
.cosmetic::after { content:""; position:absolute; top:0; left:0; width:45px; height:3px; background:#444; }
.cosmetic.is-equipped { border-color:#68171d; }
.cosmetic.is-equipped::after { width:100%; background:var(--red); }
.cosmetic.filtered-out { display:none; }
.model-preview { position:relative; width:100%; height:300px; display:grid; place-items:center; background:radial-gradient(circle,#3c1216 0,#141010 50%,transparent 72%); cursor:grab; touch-action:none; }
.model-preview:active { cursor:grabbing; }
.model-preview canvas { width:100%; height:100%; }
.model-preview>span { position:absolute; color:#666; font-size:9px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.equipped-badge { position:absolute; z-index:3; top:10px; right:10px; padding:7px 9px; display:none; color:#fff; background:var(--red); font-size:8px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.is-equipped .equipped-badge { display:block; }
.cosmetic-meta { margin:15px 0 9px; display:flex; justify-content:space-between; color:var(--red); font-size:8px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.cosmetic-meta .dyeable { color:#777; }
.rarity { padding:3px 6px; border:1px solid currentColor; font-size:7px; letter-spacing:.13em; text-transform:uppercase; }
.rarity-common { color:#aaa; }.rarity-uncommon { color:#5ed779; }.rarity-rare { color:#5ba7ff; }.rarity-epic { color:#c978ff; }.rarity-legendary { color:#ffad3c; }
.rarity-card-uncommon::after { background:#5ed779; }.rarity-card-rare::after { background:#5ba7ff; }.rarity-card-epic::after { background:#c978ff; }.rarity-card-legendary::after { background:#ffad3c; }
.cosmetic h2 { margin:0 0 5px; font:700 24px Rajdhani; text-transform:uppercase; }
.cosmetic>p { min-height:18px; margin:0 0 16px; color:#777; font-size:10px; }
.card-actions { display:grid; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); gap:7px; }
.card-actions .button { width:100%; min-height:43px; padding:0 12px; }
.equip-button { width:100%; }
.owned-badge { display:block; background:#275f37; }
.empty-state { padding:80px; text-align:center; border:1px solid var(--line); }
.empty-state b { font:700 26px Rajdhani; text-transform:uppercase; }
.empty-state p { color:var(--muted); }

#message { position:fixed; z-index:20; top:96px; right:max(24px,calc((100vw - 1280px)/2)); max-width:min(420px,calc(100vw - 48px)); margin:0; padding:14px 18px; color:#ddd; background:#151515; border:1px solid #3b3b3b; border-left:3px solid var(--red); box-shadow:0 16px 50px #000a; font-size:12px; line-height:1.5; opacity:1; transition:.2s; }
#message:empty { pointer-events:none; opacity:0; transform:translateY(-8px); }
#message.error { color:#ffb7bc; background:#1a0d0e; border-color:#64171d; }
footer { min-height:170px; padding:48px max(24px,calc((100vw - 1280px)/2)); display:flex; align-items:center; justify-content:space-between; gap:40px; background:#050505; border-top:1px solid #222; }
footer img { width:230px; }
footer p { color:#555; font-size:8px; font-weight:800; letter-spacing:.18em; }
.admin-grid { max-width:1050px; margin:45px auto; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.admin-warning { margin:18px 0 0; color:#777; font-size:10px; line-height:1.6; }
.converter-info { padding:35px; background:#0d0d0d; border:1px solid var(--line); }
.converter-info h2 { margin:0 0 25px; font:700 32px Rajdhani; text-transform:uppercase; }
.converter-info h3 { margin:28px 0 8px; font:700 18px Rajdhani; text-transform:uppercase; }
.guide-copy { color:#888; font-size:11px; line-height:1.65; }
.converter-info pre { margin:18px 0; padding:18px; overflow:auto; color:#d8d8d8; background:#080808; border:1px solid #292929; font:11px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; }
.converter-info ul { margin:0; padding:0; display:grid; gap:0; list-style:none; }
.converter-info li { padding:15px 0; color:#999; border-bottom:1px solid #252525; font-size:11px; }
.converter-info li::before { content:"✓"; margin-right:12px; color:var(--red); font-weight:900; }
.redownload-alert { margin-top:25px; padding:17px; display:grid; gap:7px; color:#ffccd0; background:#250c0f; border:1px solid #711821; border-left:3px solid var(--red); }
.redownload-alert b { font-size:11px; text-transform:uppercase; }
.redownload-alert span { color:#b8868a; font-size:10px; line-height:1.6; }
.success-alert { color:#bff5cc; background:#0c2112; border-color:#245f33; border-left-color:#54e37b; }
.success-alert span { color:#83ac8d; }
.review-panel { margin:0 0 80px; padding:28px; background:#0d0d0d; border:1px solid var(--line); border-top:2px solid var(--red); }
.review-heading { display:flex; align-items:center; justify-content:space-between; gap:25px; }
.review-heading h2 { margin:0; font:700 36px Rajdhani; text-transform:uppercase; }
.review-items { margin-top:25px; display:grid; gap:8px; }
.review-item { padding:14px; display:grid; grid-template-columns:36px minmax(170px,1.4fr) repeat(3,minmax(120px,1fr)); gap:10px; align-items:end; background:#121212; border:1px solid #292929; }
.review-item>label { margin:0; }
.review-item .select-item { align-self:center; width:18px; height:18px; accent-color:var(--red); }
.review-id { color:#555; font:9px ui-monospace,monospace; text-transform:none; }

@media(max-width:980px) {
  .home-hero { grid-template-columns:1fr; }
  .hero-art { display:none; }
  .catalog { grid-template-columns:repeat(2,1fr); }
  .home-section { gap:35px; }
}
@media(max-width:720px) {
  .site-header,main { width:calc(100% - 28px); }
  .site-header { gap:15px; }
  nav { gap:14px; margin-left:auto; }
  nav a { font-size:8px; }
  .header-download { display:none; }
  .home-hero { min-height:570px; }
  .home-hero h1 { font-size:clamp(54px,17vw,78px); }
  .feature-strip,.home-section,.auth-layout,.catalog,.admin-grid { grid-template-columns:1fr; }
  .feature-strip article { border-right:0; border-bottom:1px solid var(--line); }
  .home-section { gap:45px; }
  .page-intro { padding-top:60px; }
  .session-card,.wardrobe-hero,.wardrobe-tools { align-items:flex-start; flex-direction:column; }
  .review-item { grid-template-columns:32px 1fr; }
  .review-item>label:not(:first-child) { grid-column:2; }
  .session-actions { width:100%; flex-direction:column; }
  .session-actions .button { width:100%; }
  .search { width:100%; }
  .model-preview { height:320px; }
  footer { align-items:flex-start; flex-direction:column; }
}
@media(max-width:470px) {
  .brand span { display:none; }
  .brand img { width:34px; height:34px; }
  nav { flex:1; justify-content:space-between; }
  .header-user span { display:none; }
  .hero-actions { align-items:flex-start; flex-direction:column; }
  .panel,.session-card { padding:25px; }
  .filters { display:grid; grid-template-columns:repeat(3,1fr); width:100%; }
  .filters button { padding:0 10px; }
}
