:root {
    --bg: #1a1d24;
    --bg-2: #232730;
    --card: #2c313c;
    --line: #3a4050;
    --text: #e8eaf0;
    --text-dim: #9da3b1;
    --accent: #5EDCD0;
    --accent-soft: rgba(94, 220, 208, 0.15);
    --warn: #ffb74d;
}

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: radial-gradient(ellipse at top, #2a2f3c 0%, var(--bg) 70%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
}

header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(6px);
    position: sticky; top: 0; z-index: 10;
}

header h1 {
    margin: 0; font-size: 20px;
    background: linear-gradient(90deg, var(--accent), #B8FFF5);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

header .actions { display: flex; gap: 8px; }

header button {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
}
header button:hover { background: var(--accent-soft); border-color: var(--accent); }
header button:active { transform: translateY(1px); }

main {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(320px, 480px);
    gap: 24px;
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.stage {
    background: linear-gradient(180deg, #2f3540 0%, #1a1d24 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
    display: flex; align-items: center; justify-content: center;
    position: sticky; top: 80px;
    align-self: start;
    box-shadow: inset 0 0 60px rgba(94,220,208,0.05);
}

#aimee {
    width: 100%; max-width: 380px; height: auto;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,0.4));
}

.wardrobe { display: flex; flex-direction: column; gap: 18px; }

.category {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
}

.category h2 {
    margin: 0 0 10px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
}

.option {
    background: var(--bg-2);
    border: 2px solid var(--line);
    border-radius: 10px;
    aspect-ratio: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 6px;
    transition: all 0.15s;
    position: relative;
}
.option svg { width: 100%; height: 100%; }
.option:hover { border-color: var(--accent); transform: translateY(-2px); }
.option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: 0 0 0 1px var(--accent), 0 4px 16px rgba(94,220,208,0.3);
}
.option.selected::after {
    content: "✓";
    position: absolute;
    top: 2px; right: 4px;
    font-size: 12px;
    color: var(--accent);
    font-weight: bold;
}

.option.opt-none {
    color: var(--text-dim);
    font-size: 24px;
    font-weight: 300;
}

footer {
    max-width: 1200px; margin: 0 auto;
    padding: 16px 24px 32px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 900px) {
    main {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
    .stage { position: static; padding: 12px; }
    #aimee { max-width: 280px; }
    header h1 { font-size: 17px; }
    header button { padding: 6px 10px; font-size: 13px; }
}
