:root {
    --hot-seat-ink: #172033;
    --hot-seat-muted: #667085;
    --hot-seat-border: rgba(42, 64, 96, 0.14);
    --hot-seat-blue: #2f6df6;
    --hot-seat-green: #13a064;
    --hot-seat-warn: #ef6b4a;
    --hot-seat-bg: #eef6ff;
}

body {
    color: var(--hot-seat-ink);
}

.hot-seat-root,
.hot-seat-student-root {
    min-height: 100vh;
    padding: 28px;
    background: linear-gradient(180deg, #eaf7ff 0%, #fffaf0 100%);
}

.hot-seat-guard {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #eef6ff, #fff8ea);
    padding: 24px;
}

.hot-seat-guard__card,
.hot-seat-panel,
.hot-seat-hero,
.hot-seat-stage {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--hot-seat-border);
    box-shadow: 0 18px 48px rgba(31, 50, 80, 0.12);
}

.hot-seat-guard__card {
    width: min(460px, 100%);
    border-radius: 24px;
    padding: 34px;
    text-align: center;
}

.hot-seat-guard__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #f7e7ff;
    font-size: 34px;
}

.hot-seat-guard__card h1,
.hot-seat-hero h1,
.hot-seat-stage h1 {
    margin: 0;
    letter-spacing: 0;
}

.hot-seat-guard__card p,
.hot-seat-hero p,
.hot-seat-stage p,
.hot-seat-section-head p {
    margin: 8px 0 0;
    color: var(--hot-seat-muted);
    line-height: 1.5;
}

.hot-seat-hero,
.hot-seat-stage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 28px;
    padding: 28px 32px;
    margin-bottom: 22px;
}

.hot-seat-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--hot-seat-blue);
    font-weight: 800;
    font-size: 13px;
}

.hot-seat-hero__meta,
.hot-seat-character-card {
    min-width: 220px;
    border-radius: 20px;
    padding: 18px;
    background: #f7fbff;
    border: 1px solid var(--hot-seat-border);
}

.hot-seat-hero__meta span,
.hot-seat-character-card span {
    display: block;
    color: var(--hot-seat-muted);
    font-size: 13px;
    font-weight: 700;
}

.hot-seat-hero__meta strong,
.hot-seat-character-card strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
}

.hot-seat-grid {
    display: grid;
    gap: 18px;
}

.hot-seat-grid--admin {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.8fr);
}

.hot-seat-student-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 18px;
}

.hot-seat-panel {
    border-radius: 24px;
    padding: 22px;
}

.hot-seat-panel--logs {
    margin-top: 18px;
}

.hot-seat-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.hot-seat-section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
}

.hot-seat-form {
    display: grid;
    gap: 14px;
}

.hot-seat-form label,
.hot-seat-text-form {
    display: grid;
    gap: 7px;
}

.hot-seat-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hot-seat-form span {
    color: #344054;
    font-weight: 800;
    font-size: 13px;
}

.hot-seat-form input,
.hot-seat-form textarea,
.hot-seat-form select,
.hot-seat-text-form input {
    width: 100%;
    border: 1px solid var(--hot-seat-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: var(--hot-seat-ink);
    font: inherit;
}

.hot-seat-form textarea {
    resize: vertical;
}

.hot-seat-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
}

.hot-seat-actions--wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hot-seat-actions--center {
    justify-content: center;
}

.hot-seat-btn,
.hot-seat-mini-btn {
    border: 0;
    border-radius: 14px;
    background: var(--hot-seat-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.hot-seat-btn {
    padding: 12px 18px;
}

.hot-seat-mini-btn {
    padding: 9px 12px;
    background: #edf4ff;
    color: #1d4ed8;
}

.hot-seat-btn:hover,
.hot-seat-mini-btn:hover {
    transform: translateY(-1px);
}

.hot-seat-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.hot-seat-btn--ghost {
    color: #1d4ed8;
    background: #edf4ff;
}

.hot-seat-btn--warn {
    background: var(--hot-seat-warn);
}

.hot-seat-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 6px 12px;
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.hot-seat-list,
.hot-seat-log-list,
.hot-seat-transcript-list {
    display: grid;
    gap: 12px;
}

.hot-seat-activity-card,
.hot-seat-log-card,
.hot-seat-transcript-card {
    border: 1px solid var(--hot-seat-border);
    border-radius: 18px;
    padding: 15px;
    background: #fff;
}

.hot-seat-activity-card h3,
.hot-seat-log-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.hot-seat-activity-card p,
.hot-seat-log-card p,
.hot-seat-transcript-card p {
    margin: 4px 0;
    color: var(--hot-seat-muted);
    line-height: 1.5;
}

.hot-seat-activity-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hot-seat-empty {
    border: 1px dashed rgba(47, 109, 246, 0.3);
    border-radius: 18px;
    padding: 20px;
    color: var(--hot-seat-muted);
    background: rgba(237, 244, 255, 0.65);
}

.hot-seat-message {
    min-height: 22px;
    margin: 10px 0 0;
    color: var(--hot-seat-muted);
    font-weight: 700;
}

.hot-seat-stage {
    align-items: stretch;
}

.hot-seat-stage__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-seat-character-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 330px;
}

.hot-seat-character-card__avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #fff3d6;
    font-size: 36px;
}

.hot-seat-mic-ring {
    width: 180px;
    height: 180px;
    margin: 26px auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0 45%, #e9f2ff 46% 100%);
    border: 8px solid #d8e7ff;
    box-shadow: 0 18px 50px rgba(47, 109, 246, 0.18);
    font-size: 62px;
}

.hot-seat-mic-ring.is-live {
    animation: hotSeatPulse 1.4s ease-in-out infinite;
    border-color: #8bb5ff;
}

.hot-seat-text-form {
    grid-template-columns: 1fr auto;
    margin-top: 18px;
}

.hot-seat-transcript-card strong {
    display: block;
    color: #1f3f7a;
}

.hot-seat-transcript-card em {
    display: block;
    margin-top: 8px;
    color: #146c43;
    font-style: normal;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

@keyframes hotSeatPulse {
    0%, 100% {
        box-shadow: 0 18px 50px rgba(47, 109, 246, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 20px 60px rgba(47, 109, 246, 0.32);
        transform: scale(1.03);
    }
}

@media (max-width: 980px) {
    .hot-seat-root,
    .hot-seat-student-root {
        padding: 16px;
    }

    .hot-seat-hero,
    .hot-seat-stage,
    .hot-seat-grid--admin,
    .hot-seat-student-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hot-seat-form__row,
    .hot-seat-text-form {
        grid-template-columns: 1fr;
    }

    .hot-seat-character-card {
        min-width: 0;
    }
}
