.landing {
    max-width: 1120px;
    margin: 0 auto;
}

.landing-top,
.panel-actions,
.join-inline,
.preview-head,
.preview-foot {
    display: flex;
    align-items: center;
}

.landing-top {
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none;
}

.brand > span:last-child > span {
    color: var(--accent);
}

.brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: var(--accent);
    transform: rotate(-8deg);
}

.brand-mark span {
    width: 3px;
    border-radius: 3px;
    background: #fff;
}

.brand-mark span:nth-child(1) {
    height: 8px;
}
.brand-mark span:nth-child(2) {
    height: 15px;
}
.brand-mark span:nth-child(3) {
    height: 11px;
}

.online-pill {
    color: var(--muted);
    font-size: 12px;
}

.online-pill i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    background: #3ac58a;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: calc(100vh - 150px);
}

.room-panel {
    position: relative;
    max-width: 490px;
    margin: 0 auto;
    padding: 52px 58px;
    border: 1px solid #e5e5ed;
    border-radius: 28px;
    background: #fff;
    text-align: center;
    box-shadow:
        0 30px 90px rgba(39, 35, 74, 0.24),
        0 8px 20px rgba(39, 35, 74, 0.1);
}

.panel-label {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.room-panel h1 {
    margin: 0 0 34px;
    font-size: 42px;
    line-height: 1.06;
    letter-spacing: -2px;
}

.panel-actions {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 10px;
    padding: 14px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px #5d55ee33;
}

.primary-button:disabled {
    opacity: 0.65;
}

.primary-button.is-loading {
    cursor: wait;
}

.button-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ffffff66;
    border-top-color: #fff;
    border-radius: 50%;
    animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.room-panel .primary-button {
    width: 100%;
}

.join-inline {
    width: 100%;
    height: 52px;
    padding: 5px 6px 5px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(39, 35, 74, 0.06);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease;
}

.join-inline:focus-within {
    border-color: #b8b3ff;
    box-shadow:
        0 0 0 4px #5d55ee18,
        0 7px 18px rgba(39, 35, 74, 0.08);
}

.join-inline input {
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 13px;
    text-transform: uppercase;
}

.join-inline input::placeholder {
    color: #9b9eaa;
}

.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 40px;
    margin: 0;
    border: 0;
    border-radius: 9px;
    padding: 0 15px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 12px #5d55ee2e;
    transition:
        background 0.16s ease,
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.text-button:hover {
    background: #4f47dc;
    box-shadow: 0 7px 16px #5d55ee42;
    transform: translateY(-1px);
}

.text-button:active {
    transform: translateY(0);
}
.text-button span {
    margin: 0;
    font-size: 16px;
    line-height: 1;
}

.room-result {
    min-height: 20px;
    margin-top: 14px;
}

.result-box {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 7px 12px;
    padding: 13px;
    border: 1px solid #dddafe;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
}

.result-box strong {
    grid-column: 1 / -1;
}
.result-box a {
    overflow: hidden;
    color: var(--accent);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-box button {
    border: 0;
    border-radius: 7px;
    padding: 7px 9px;
    background: #efeeff;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
}

.error-message {
    color: #c75970;
    font-size: 12px;
}

.preview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 390px;
    overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    background: var(--dark);
    color: #fff;
    box-shadow: 0 25px 45px #25273230;
}

.preview-card::after {
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--accent);
    content: '';
    opacity: 0.25;
}

.preview-head,
.preview-foot {
    position: relative;
    z-index: 1;
    gap: 8px;
    color: #9da1b1;
    font-size: 11px;
}

.preview-menu {
    margin-left: auto;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ed49e;
}

.preview-main {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 17px;
    font-size: 18px;
    font-weight: 600;
}

.preview-avatar {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 1px solid #ffffff1f;
    border-radius: 28px;
    background: #353846;
    color: #aaa5ff;
    font-size: 43px;
}

.preview-foot {
    justify-content: space-between;
}
