﻿/* lobby_v2.css — "Create a game" panel (top portion).
   Quiet surface, gold rationed to selected-state + primary action,
   muted wayfinding icons. */

:root {
    --bg: #0d0b09;
    --panel: #16130f;
    --panel-2: #1c1813;
    --line: #2a241c;
    --ink: #efe7d8;
    --ink-dim: #9a9082;
    --ink-faint: #6b6355;
    --gold: #d8b25e;
    --gold-soft: #3a2f18;
    --radius: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

/* ---- create panel (the star) ---- */
.create {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px 26px 24px;
    margin-top: 8px;
}

.create-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .create-head h2 {
        font-family: "Playfair Display", serif;
        font-weight: 600;
        font-size: 22px;
        margin: 0;
    }

    .create-head .sub {
        color: var(--ink-dim);
        font-size: 13px;
        margin-top: 2px;
    }

.preset-btns {
    display: flex;
    gap: 8px;
}

    .preset-btns button {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--ink-dim);
        border-radius: 8px;
        padding: 7px 13px;
        font-size: 12.5px;
        cursor: pointer;
    }

        .preset-btns button:hover {
            border-color: #3a3226;
            color: var(--ink);
        }

/* ---- preset dropdown ---- */
.preset-menu-anchor {
    position: relative;
}

.preset-scrim {
    position: fixed;
    inset: 0;
    z-index: 40; /* catches outside clicks */
}

.preset-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 41;
    min-width: 300px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

.preset-menu-heading {
    color: var(--ink-faint);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 8px 10px 6px;
}

.preset-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 9px 10px;
    border-radius: 8px;
}

    .preset-item:hover {
        background: rgba(216,178,94,.08);
    }

.preset-item-name {
    color: var(--gold);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em;
}

.preset-item-desc {
    color: var(--ink-dim);
    font-size: 12px;
}

/* two label+control units side by side */
.row-pair {
    display: grid;
    grid-template-columns: 1.1fr 0.95fr;
    gap: 48px;
    border-top: 1px solid var(--line);
}

    .row-pair:first-of-type {
        border-top: none;
    }

/* config row: label | controls (now sits inside a row-pair column) */
.row {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px;
    align-items: center;
    padding: 16px 0;
}
/* the pair owns the horizontal divider; rows inside don't draw their own */
.row-pair > .row {
    border-top: none;
}

.row > .label {
    color: var(--ink-faint);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
}

    .row > .label svg {
        width: 17px;
        height: 17px;
        flex: none;
        stroke: var(--ink-faint);
        opacity: .85;
    }
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* segmented control */
.seg {
    display: inline-flex;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 3px;
}

    .seg button {
        display: inline-flex;
        align-items: center;
        background: transparent;
        border: none;
        color: var(--ink-dim);
        padding: 7px 15px;
        border-radius: 7px;
        font-size: 13px;
        cursor: pointer;
        white-space: nowrap;
    }

        .seg button[disabled] {
            opacity: .35;
            cursor: not-allowed;
        }

        .seg button svg {
            width: 15px;
            height: 15px;
            flex: none;
            margin-right: 7px;
        }

        .seg button.on {
            background: var(--gold);
            color: #221a07;
            font-weight: 600;
        }

        .seg button:not(.on):hover {
            color: var(--ink);
        }

/* modifier chips */
.chip {
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    cursor: pointer;
}

    .chip.on {
        background: var(--gold-soft);
        border-color: #5a4a24;
        color: var(--gold);
    }

    .chip:not(.on):not(.disabled):hover {
        color: var(--ink);
        border-color: #3a3226;
    }

    .chip.disabled {
        opacity: .35;
        cursor: not-allowed;
    }

/* select */
select {
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13px;
    min-width: 260px;
    appearance: none;
    cursor: pointer;
}

.inline-note {
    color: var(--ink-faint);
    font-size: 12px;
}

    .inline-note.elim {
        display: inline-flex;
        align-items: center;
        gap: 7px;
    }

        .inline-note.elim svg {
            width: 15px;
            height: 15px;
        }

/* summary + CTA */
.commit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.summary {
    flex: 1;
    color: var(--ink-dim);
    font-size: 13.5px;
}

    .summary b {
        color: var(--ink);
        font-weight: 600;
    }

.cta {
    display: inline-flex;
    align-items: center;
    background: var(--gold);
    color: #211907;
    border: none;
    padding: 14px 30px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255,255,255,.15) inset;
}

    .cta svg {
        width: 15px;
        height: 15px;
        flex: none;
        margin-right: 8px;
    }

    .cta:hover {
        filter: brightness(1.06);
    }

@media (max-width: 720px) {
    h1.title {
        font-size: 38px;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .commit {
        flex-direction: column;
        align-items: stretch;
    }
}
