:root { color-scheme: dark; font: 16px/1.5 "Segoe UI", system-ui, sans-serif; background: #101827; color: #f0f4ff; --ice: #bed5ff; --line: #9fbbe652; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100svh; margin: 0; background: linear-gradient(110deg, #0c1525eb, #0b1320a8 64%, #0b1320cf), url("/assets/background.png") center / cover fixed; }
.topbar, main { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; font-size: 1.3rem; font-weight: 670; }
.brand b { color: var(--ice); font-weight: inherit; }
.brand img { width: 36px; image-rendering: pixelated; }
main { padding: clamp(24px, 5vh, 65px) 0 40px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.035em; }
h2 { margin-bottom: 19px; font-size: 1.3rem; }
.panel { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #152137f5; box-shadow: 0 18px 56px #080c1855; }
.auth { width: min(100%, 416px); margin: min(8vh, 72px) auto 0; }
.tabs { display: flex; gap: 5px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent; padding: 8px 13px; color: #b6c6e4; }
.tabs button[aria-pressed=true] { border-bottom-color: #97b9fb; color: #f2f6ff; }
form { display: grid; gap: 15px; margin-top: 15px; }
label { display: block; color: #e3ecfd; font-size: .93rem; }
.hint { color: #b5c4df; font-size: .84rem; }
label .hint { margin-left: 5px; }
input:not([type=range]), select { display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--line); background: #101a2a; color: inherit; font: inherit; }
input[type=range] { width: min(130px, 75%); vertical-align: middle; accent-color: #98bbfa; }
input[type=file]::file-selector-button { margin-right: 9px; padding: 5px 8px; border: 0; border-radius: 6px; background: #3c5175; color: #edf3ff; cursor: pointer; }
button { padding: 8px 15px; border-radius: 8px; border: 1px solid transparent; color: inherit; font: inherit; cursor: pointer; transition: background-color .18s, border-color .18s; }
button:disabled { opacity: .6; cursor: wait; }
:is(button, input, select, a):focus-visible { outline: 2px solid #aac9ff; outline-offset: 3px; }
.primary { background: var(--ice); color: #182742; font-weight: 630; }
.primary:hover:enabled { background: #d6e6ff; }
.quiet { background: #22324f; border-color: var(--line); }
.quiet:hover:enabled, .tabs button:hover:enabled { background-color: #344665; }
.status { margin-top: 10px; color: #b8d4ff; font-size: .9rem; }
.status:empty { display: none; }
.status[data-error=true] { color: #ffbcc8; }
.dashboard-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 19px; }
.wallet { display: flex; align-items: center; gap: 10px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 10px; background: #17253d; }
.wallet > span { font-size: 1.45rem; color: var(--ice); }
.wallet strong, .wallet small { display: block; line-height: 1.35; }
.wallet small { color: #b5c4df; }
.account-grid { display: grid; grid-template-columns: minmax(235px, .85fr) minmax(0, 1.65fr); gap: 18px; }
.preview-panel canvas { display: block; margin-inline: auto; width: min(260px, 100%); max-width: 100%; height: 275px; border-radius: 12px; background: radial-gradient(ellipse at 50% 55%, #354a6b70, transparent 72%); }
fieldset { min-width: 0; padding: 0 0 14px; margin: 0; border: 0; border-bottom: 1px solid var(--line); }
legend { margin-bottom: 9px; color: var(--ice); font-weight: 600; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.skin-upload { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 12px 0 5px; }
.fit-fields { margin-top: 12px; }
.fit-fields output { font-variant-numeric: tabular-nums; }
.wardrobe .primary { justify-self: start; }
@media (max-width: 700px) { .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 410px) { .fields { grid-template-columns: 1fr; } .topbar, main { width: calc(100% - 24px); } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
