body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body > main {
    flex: 1;
}

.join-code-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1rem, 4vh, 2.5rem) 1rem;
}

.join-container {
    width: min(100%, 36rem);
    padding: clamp(1.2rem, 4vw, 2rem);
    overflow: hidden;
    border: 1px solid rgba(150, 255, 220, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(ellipse at 95% 0%, rgba(16, 167, 126, 0.12), transparent 38%),
        linear-gradient(145deg, rgba(13, 25, 30, 0.98), rgba(17, 38, 42, 0.97));
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32),
        inset 0 1px rgba(255, 255, 255, 0.04);
    text-align: left;
}

.join-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.join-heading > div {
    min-width: 0;
}

.join-heading .party-eyebrow {
    margin-bottom: 0.45rem;
}

.join-container .title {
    margin: 0;
    color: #f5fffb;
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.join-heading-art {
    display: block;
    width: clamp(5.5rem, 20vw, 8rem);
    max-width: 30%;
    height: auto;
    flex: 0 0 auto;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.join-code-panel .subtitle {
    margin: 0.45rem 0 0;
    color: rgba(226, 244, 238, 0.68);
    font-size: 0.9rem;
    line-height: 1.45;
}

.info-text {
    margin: 1.25rem 0 0;
    color: rgba(220, 240, 231, 0.56);
    font-size: 0.8rem;
    text-align: center;
}

.info-text a {
    color: #8ce7c3;
    text-decoration: none;
    position: relative;
    font-weight: bold;
    transition: color 0.2s ease;
}

.info-text a:hover {
    color: #c0f8e0;
}

.multi-columns {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: clamp(0.35rem, 2vw, 0.6rem);
    width: min(100%, 27rem);
    margin: 0 auto 1rem;
}

.multi-panel {
    min-width: 0;
    aspect-ratio: 0.9;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-input {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    font-size: clamp(1rem, 5vw, 1.35rem);
    font-weight: 750;
    text-align: center;
    border: 1px solid rgba(159, 255, 220, 0.2);
    border-radius: 11px;
    background: rgba(5, 14, 18, 0.58);
    color: var(--geo-text, #f4fff9);
    outline: none;
    text-transform: uppercase;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.code-input:focus {
    border-color: rgba(94, 230, 180, 0.65);
    background-color: var(--geo-control-bg-focus, rgba(8, 22, 25, 0.92));
    box-shadow: var(--geo-focus-ring, 0 0 0 3px rgba(0, 255, 174, 0.12));
}

.join-button {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
    border: 1px solid #55d7a7;
    border-radius: 10px;
    background: #55d7a7;
    color: #08251c;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s ease;
}

.join-button:hover {
    border-color: #76e8bb;
    background: #76e8bb;
    transform: translateY(-1px);
}

.join-button:focus-visible,
.code-input:focus-visible {
    outline: 3px solid rgba(154, 255, 220, 0.95);
    outline-offset: 3px;
}

.update-message {
    margin-top: 0.65rem;
    color: #f1aaa8;
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    .join-code-panel {
        padding: 1rem 0.75rem;
    }

    .join-container {
        padding: 1.1rem;
    }

    .join-heading {
        margin-bottom: 1.15rem;
    }

    .join-heading-art {
        width: 24%;
    }

    .multi-columns {
        gap: 0.35rem;
    }
}
