﻿
/* Room screen (design) */
.room-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg0);
}

.room-header {
    height: 52px;
    background: var(--bg1);
    border-bottom: 1px solid var(--brd);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    flex-shrink: 0;
}

.room-name-tag {
    font-family: var(--fd), sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--t1);
}

.room-live {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 71, 87, .1);
    border: 1px solid rgba(255, 71, 87, .25);
    font-family: var(--fm), monospace;
    font-size: 11px;
    color: var(--red);
    letter-spacing: 1px;
}

.room-live .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: livePulse 1.2s ease-in-out infinite;
}

.room-timer {
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--t3);
    margin-left: auto;
}

.room-hbtn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--bg3);
    color: var(--t2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.room-hbtn:hover {
    background: var(--bg4);
    color: var(--t1);
}

.room-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.room-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 24px 24px;
    gap: 0;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.room-side {
    width: 280px;
    min-width: 280px;
    background: var(--bg1);
    border-left: 1px solid var(--brd);
    display: flex;
    flex-direction: column;
}

.rs-tabs {
    display: flex;
    border-bottom: 1px solid var(--brd);
}

.rstab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--t3);
    border: none;
    background: transparent;
    transition: all .15s;
    border-bottom: 2px solid transparent;
}

.rstab.on {
    color: var(--t1);
    border-bottom-color: var(--acc);
}

.rs-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.rs-body::-webkit-scrollbar {
    width: 3px;
}

.rs-body::-webkit-scrollbar-thumb {
    background: var(--bg4);
    border-radius: 2px;
}

.room-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lmsg {
    font-size: 13px;
    color: var(--t2);
    line-height: 1.4;
}

.lmsg-who {
    font-weight: 600;
    margin-right: 6px;
}

.room-participants-hint {
    font-family: var(--fm), monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--t3);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.room-upsell {
    margin: 0 12px 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(61, 139, 255, .08), rgba(0, 229, 160, .05));
    border: 1px solid rgba(61, 139, 255, .18);
    border-radius: 12px;
}

.room-upsell-title {
    font-family: var(--fd), sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 4px;
}

.room-upsell-text {
    font-size: 12px;
    color: var(--t2);
    line-height: 1.4;
    margin-bottom: 10px;
}

.room-upsell-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    border: none;
    background: var(--acc);
    color: #fff;
    font-family: var(--fd), sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .15s;
}

.room-upsell-btn:hover {
    background: #5a9fff;
}

.ls-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    flex-shrink: 0;
    border-top: 1px solid var(--brd);
}

.ls-mi {
    flex: 1;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--t1);
    font-family: var(--fb), sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .15s;
}

.ls-mi:focus {
    border-color: rgba(61, 139, 255, .4);
}

.ls-mi::placeholder {
    color: var(--t3);
}

.ls-send {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: var(--acc);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity .15s;
}

.ls-send:hover {
    opacity: .85;
}

.ls-send:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Anonymous flow step bar */
.stepbar {
    height: 36px;
    background: var(--bg1);
    border-bottom: 1px solid var(--brd);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 8px;
    flex-shrink: 0;
}

.stp-link {
    text-decoration: none;
}

.stp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--t3);
    font-family: var(--fm), monospace;
}

.stp .sn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    transition: all .2s;
    flex-shrink: 0;
}


.stp.curr .sn {
    background: var(--acc);
    color: #fff;
}

.stp-sep {
    flex: 1;
    height: 1px;
    background: var(--brd);
    max-width: 48px;
}

/* Anonymous room entry (join form) */
.anon-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--bg0);
}

.anon-entry-card {
    width: 420px;
    max-width: 90vw;
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.anon-entry-card h1 {
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--t1);
    margin: 0 0 8px;
}

.anon-entry-card p {
    color: var(--t3);
    font-size: 13px;
    margin: 0 0 24px;
}

.anon-entry-card .field {
    margin: 16px 0;
    text-align: left;
}

.anon-entry-card .field label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--fm), monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--t3);
}

.anon-entry-card .field input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 11px;
    color: var(--t1);
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.anon-entry-card .field input:focus {
    border-color: rgba(61, 139, 255, 0.35);
}

.anon-entry-card .error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 12px;
}


/* Guest entry card */
.guest-entry-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 20%, rgba(0, 229, 160, .06) 0%, transparent 60%), var(--bg0);
}

.guest-card {
    width: 440px;
    max-width: 90vw;
    background: var(--bg1);
    border: 1px solid var(--brd);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .6);
}

.guest-banner {
    height: 120px;
    background: linear-gradient(135deg, #0f2444, #0a1a2e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.guest-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(0, 229, 160, .15), transparent 60%);
}

.gbanner-room {
    text-align: center;
    position: relative;
    z-index: 1;
}

.gbanner-icon {
    font-size: 40px;
    margin-bottom: 6px;
}

.gbanner-name {
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.gbanner-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--a2);
    margin-top: 8px;
    letter-spacing: .3px;
}

.gbanner-live .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--a2);
    animation: livePulse 1.2s ease-in-out infinite;
}

.guest-body {
    padding: 24px;
}

.guest-avatars-hint {
    margin-bottom: 20px;
}

.guest-avatars-stack {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid var(--bg1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fd), sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    margin-right: -10px;
}

.guest-avatars-sub {
    font-size: 13px;
    color: var(--t2);
    margin-top: 10px;
}

.guest-field {
    margin-bottom: 16px;
}

.guest-devices {
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.guest-device-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
}

.guest-device-row + .guest-device-row {
    border-top: 1px solid var(--brd);
}

.guest-device-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.guest-device-icon-mic {
    background: rgba(0, 229, 160, .1);
    border: 1px solid rgba(0, 229, 160, .2);
    color: var(--a2);
}

.guest-device-icon-speaker {
    background: rgba(61, 139, 255, .1);
    border: 1px solid rgba(61, 139, 255, .2);
    color: var(--acc);
}

.guest-device-info {
    flex: 1;
    min-width: 0;
}

.guest-device-title {
    font-family: var(--fd), sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    margin-bottom: 4px;
}

.guest-device-level {
    height: 4px;
    border-radius: 2px;
    background: var(--bg4);
    overflow: hidden;
}

.guest-device-level-fill {
    height: 100%;
    width: 55%;
    background: var(--a2);
    border-radius: 2px;
}

.guest-device-select {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 8px;
    padding: 5px 8px;
    color: var(--t2);
    font-family: var(--fb), sans-serif;
    font-size: 11px;
    outline: none;
    cursor: pointer;
    max-width: 140px;
}

.guest-body .error {
    margin-bottom: 12px;
}

.btn-join {
    width: 100%;
    padding: 14px;
    border-radius: 11px;
    border: none;
    background: var(--a2);
    color: #0a0b0f;
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-join:hover:not(:disabled) {
    background: #00f5b0;
    transform: translateY(-1px);
}

.btn-join:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.guest-entry-footnote {
    font-size: 11px;
    color: var(--t3);
    margin-top: 8px;
    font-family: var(--fm), monospace;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Room setup screen */
.room-setup-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(61, 139, 255, .07) 0%, transparent 65%), var(--bg0);
    padding: 32px;
}

.room-setup-card {
    width: 520px;
    max-width: 100%;
    background: var(--bg1);
    border: 1px solid var(--brd);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.room-setup-header {
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--brd);
    display: flex;
    align-items: center;
    gap: 14px;
}

.room-setup-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(61, 139, 255, .12);
    border: 1px solid rgba(61, 139, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--acc);
}

.room-setup-header-title {
    font-family: var(--fd), sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--t1);
}

.room-setup-header-sub {
    font-size: 12px;
    color: var(--t2);
    margin-top: 2px;
}

.room-setup-body {
    padding: 24px 28px;
}

.room-setup-field {
    margin-bottom: 22px;
}

.room-setup-icon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.room-setup-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all .15s;
}

.room-setup-icon-btn.on {
    background: rgba(61, 139, 255, .1);
    border-color: var(--acc);
}

.room-setup-limit-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.room-setup-limit-chip {
    flex: 1;
    padding: 10px 6px;
    border-radius: 9px;
    background: var(--bg3);
    border: 1px solid var(--brd);
    text-align: center;
    cursor: pointer;
    font-family: var(--fd), sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--t2);
    transition: all .15s;
}

.room-setup-limit-chip.on {
    background: rgba(61, 139, 255, .1);
    border-color: var(--acc);
    color: var(--acc);
}

.room-setup-toggles {
    background: var(--bg2);
    border: 1px solid var(--brd);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 22px;
}

.room-setup-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--brd);
}

.room-setup-toggle-row:last-of-type {
    border-bottom: none;
}

.room-setup-toggle-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--t1);
    margin-bottom: 2px;
}

.room-setup-toggle-sub {
    font-size: 12px;
    color: var(--t2);
}

.room-setup-password-field {
    padding: 0 16px 14px;
}

.room-setup-preview {
    background: var(--bg3);
    border: 1px solid var(--brd);
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.room-setup-preview-icon {
    color: var(--t3);
    flex-shrink: 0;
}

.room-setup-preview-url {
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--acc);
    flex: 1;
}

.room-setup-preview-ttl {
    font-family: var(--fm), monospace;
    font-size: 12px;
    color: var(--warn);
}

.room-setup-error {
    color: var(--red);
    font-size: 13px;
    margin-bottom: 16px;
}

.room-setup-actions {
    display: flex;
    gap: 10px;
}

.room-setup-btn-back {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid var(--brd);
    background: transparent;
    color: var(--t2);
    font-family: var(--fb), sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
}

.room-setup-btn-back:hover {
    background: var(--bg3);
    color: var(--t1);
}

.room-setup-btn-create {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: var(--acc);
    color: #fff;
    font-family: var(--fd), sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.room-setup-btn-create:hover:not(:disabled) {
    background: #5a9fff;
}

.room-setup-btn-create:disabled {
    opacity: .7;
    cursor: not-allowed;
}
