:root {
    --bg: #050505;
    --fg: #edf0f4;
    --muted: #a5a9b2;
    --panel: rgba(15, 15, 15, 0.78);
    --panel-border: #2d2d2d;
    --chip: #141414;
    --chip-border: #343434;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

button, input, select {
    font: inherit;
}

#index-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: clamp(8px, 3vw, 18px);
}

#index-card {
    width: min(560px, 100%);
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    position: relative;
}

#index-title {
    margin: 0;
    width: min(560px, 100%);
    padding: 0;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
}

#index-sub {
    margin: 0 0 12px 0;
    color: var(--muted);
    line-height: 1.35;
    white-space: nowrap;
}

#join-row {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

#room-input {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--fg);
    padding: 12px;
}

.cta-btn {
    border-radius: 12px;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--fg);
    text-decoration: none;
    padding: 12px 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    min-width: 0;
    flex: 0 0 auto;
}

.cta-btn.is-default {
    background: #d4d4d4;
    border-color: #ebebeb;
    color: #171717;
}

#join-btn:disabled {
    color: #7f858f;
    border-color: #2a2f38;
    background: #101318;
}
