@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Color Palette */
    --bg-dark: hsl(222, 47%, 8%);
    --bg-card: hsla(223, 47%, 14%, 0.7);
    --bg-card-hover: hsla(223, 47%, 18%, 0.85);
    --border-color: hsla(223, 30%, 30%, 0.4);
    
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    
    --accent: hsl(263, 75%, 63%);
    --accent-glow: hsla(263, 75%, 63%, 0.35);
    
    /* Kahoot-like Answer Colors (HSL tuned for high vibrancy and accessibility) */
    --red-triangle: hsl(355, 85%, 53%);
    --red-triangle-glow: hsla(355, 85%, 53%, 0.4);
    --blue-diamond: hsl(203, 92%, 53%);
    --blue-diamond-glow: hsla(203, 92%, 53%, 0.4);
    --yellow-circle: hsl(43, 95%, 50%);
    --yellow-circle-glow: hsla(43, 95%, 50%, 0.4);
    --green-square: hsl(145, 80%, 45%);
    --green-square-glow: hsla(145, 80%, 45%, 0.4);
    
    /* System Feedback */
    --success: hsl(145, 80%, 45%);
    --error: hsl(355, 85%, 53%);
    
    /* Typography */
    --font-outfit: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Layout & Animation values */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-outfit);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, hsla(263, 80%, 20%, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(203, 80%, 20%, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--text-main);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 2rem;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: hsla(223, 30%, 45%, 0.5);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* App Container */
.container {
    max-width: 1200px;
    width: 90%;
    margin: 2rem auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header & Footer */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: hsla(222, 47%, 5%, 0.5);
    backdrop-filter: blur(8px);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-badge {
    background: var(--accent);
    color: var(--bg-dark);
    -webkit-text-fill-color: var(--bg-dark);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    font-family: var(--font-outfit);
}

.btn-primary {
    background: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 15px var(--accent-glow);
}
.btn-primary:hover {
    background: hsl(263, 85%, 68%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--text-muted);
}

.btn-danger {
    background: var(--error);
    color: var(--text-main);
    box-shadow: 0 0 15px var(--red-triangle-glow);
}
.btn-danger:hover {
    background: hsl(355, 95%, 58%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--red-triangle-glow);
}

.btn-disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background: hsla(222, 47%, 5%, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-outfit);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Landing Page Grid */
.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: auto 0;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .landing-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Player Join UI */
.join-card {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.join-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.join-card .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Dashboard Styles (Teacher) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 1rem;
    height: calc(100vh - 120px);
}

.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-tab {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid transparent;
}

.sidebar-tab:hover {
    background: var(--bg-card-hover);
    color: var(--text-main);
}

.sidebar-tab.active {
    background: var(--accent-glow);
    border-color: hsla(263, 75%, 63%, 0.4);
    color: var(--text-main);
    box-shadow: 0 0 15px rgba(263, 75, 63, 0.1);
}

.dashboard-content {
    overflow-y: auto;
    padding-right: 0.5rem;
}

.dashboard-content::-webkit-scrollbar {
    width: 6px;
}
.dashboard-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

/* Quiz List Cards */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quiz-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 180px;
}

.quiz-card-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.quiz-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.quiz-card-actions button {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Quiz Creator Workspace */
.creator-container {
    display: grid;
    grid-template-columns: 200px 1fr 280px;
    gap: 1.5rem;
    height: calc(100vh - 120px);
}

.creator-questions-list {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
}

.question-thumbnail {
    background: hsla(222, 47%, 5%, 0.6);
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.question-thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.question-thumbnail-num {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.question-thumbnail-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.question-thumbnail-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition);
}

.question-thumbnail:hover .question-thumbnail-delete {
    opacity: 1;
}

.creator-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.creator-settings {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Answers Layout in Creator */
.answers-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.answer-input-container {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.answer-input-container:focus-within {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.answer-input-container.color-red { border-left: 8px solid var(--red-triangle); }
.answer-input-container.color-blue { border-left: 8px solid var(--blue-diamond); }
.answer-input-container.color-yellow { border-left: 8px solid var(--yellow-circle); }
.answer-input-container.color-green { border-left: 8px solid var(--green-square); }

.answer-field {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1rem;
    background: hsla(222, 47%, 5%, 0.4);
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-outfit);
}
.answer-field:focus {
    outline: none;
}

.correct-selector {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.correct-selector::after {
    content: "✓";
    color: var(--bg-dark);
    font-weight: 800;
    font-size: 0.9rem;
    display: none;
}

.answer-input-container.checked .correct-selector {
    background: var(--success);
    border-color: var(--success);
}
.answer-input-container.checked .correct-selector::after {
    display: block;
}

@media (max-width: 900px) {
    .creator-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* Bulk Importer Tab */
.import-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.import-box textarea {
    min-height: 250px;
    font-family: monospace;
    font-size: 0.85rem;
}
.prompt-instructions {
    background: hsla(263, 75%, 63%, 0.05);
    border-left: 4px solid var(--accent);
    padding: 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 1rem;
}
.prompt-instructions code {
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.copy-prompt-btn {
    margin-top: 0.5rem;
}

/* Live Lobby View (Host) */
.lobby-screen {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.pin-display {
    background: var(--bg-card);
    border: 2px dashed var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px var(--accent-glow);
}

.pin-display h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pin-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.1em;
    margin: 0.5rem 0;
    text-shadow: 0 0 20px var(--accent-glow);
}

.lobby-players-count {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.player-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    min-height: 150px;
    background: hsla(222, 47%, 5%, 0.4);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.player-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    animation: bubbleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-bubble:hover {
    border-color: var(--error);
    color: var(--error);
    text-decoration: line-through;
    cursor: pointer;
}

.player-bubble.disconnected {
    opacity: 0.4;
    border-style: dashed;
}

@keyframes bubbleIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Host Active Question View */
.host-q-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 160px);
}

.host-q-header {
    text-align: center;
    padding: 1rem;
    font-size: 1.6rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.host-q-middle {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0;
}

.timer-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 6px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 auto;
    box-shadow: 0 0 15px var(--accent-glow);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.98); box-shadow: 0 0 8px var(--accent-glow); }
    100% { transform: scale(1.02); box-shadow: 0 0 18px var(--accent-glow); }
}

.answers-remaining {
    text-align: center;
}
.answers-remaining-num {
    font-size: 2.8rem;
    font-weight: 800;
}

/* Live Game Answers Grid (Shown on host's screen & player input grid) */
.answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.answer-card {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: white;
    position: relative;
    border: none;
    outline: none;
    text-align: left;
}

.answer-card:hover {
    transform: translateY(-2px);
}

.answer-card.color-red {
    background: var(--red-triangle);
    box-shadow: 0 4px 15px var(--red-triangle-glow);
}
.answer-card.color-blue {
    background: var(--blue-diamond);
    box-shadow: 0 4px 15px var(--blue-diamond-glow);
}
.answer-card.color-yellow {
    background: var(--yellow-circle);
    box-shadow: 0 4px 15px var(--yellow-circle-glow);
    color: hsl(222, 47%, 8%);
}
.answer-card.color-green {
    background: var(--green-square);
    box-shadow: 0 4px 15px var(--green-square-glow);
}

/* Question Shapes Icons */
.shape-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
}

.answer-card.color-yellow .shape-icon {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Results / Statistics Screen */
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 220px;
    background: hsla(222, 47%, 5%, 0.4);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 15%;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    min-height: 20px;
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.5rem;
    font-weight: 800;
    color: white;
}

.chart-bar.color-red { background: var(--red-triangle); }
.chart-bar.color-blue { background: var(--blue-diamond); }
.chart-bar.color-yellow { background: var(--yellow-circle); color: hsl(222, 47%, 8%); }
.chart-bar.color-green { background: var(--green-square); }

.chart-correct-indicator {
    font-size: 1.2rem;
    font-weight: 800;
}

/* Leaderboard Page */
.leaderboard-container {
    max-width: 650px;
    margin: 0 auto;
    width: 100%;
}

.leaderboard-header {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-size: 1.2rem;
    font-weight: 600;
    transition: var(--transition);
}

.leaderboard-row.rank-0 {
    border-color: var(--yellow-circle);
    box-shadow: 0 0 15px rgba(242, 193, 46, 0.15);
    background: linear-gradient(90deg, var(--bg-card) 70%, rgba(242, 193, 46, 0.05) 100%);
}

.leaderboard-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
}

.leaderboard-row.rank-0 .leaderboard-rank {
    background: var(--yellow-circle);
    color: var(--bg-dark);
}

.leaderboard-streak {
    background: var(--red-triangle);
    color: white;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    margin-left: 0.5rem;
}

.leaderboard-score {
    font-weight: 800;
    color: var(--accent);
}

/* Podium UI */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 350px;
    margin: 4rem 0;
    gap: 1.5rem;
}

.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 140px;
    text-align: center;
}

.podium-name {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    word-break: break-all;
    max-width: 130px;
}

.podium-pedestal {
    width: 100%;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
}

.podium-score {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.podium-step.gold {
    height: 250px;
}
.podium-step.gold .podium-pedestal {
    background: linear-gradient(180deg, hsl(43, 90%, 50%) 0%, var(--bg-card) 100%);
    color: hsl(222, 47%, 8%);
    height: 160px;
}

.podium-step.silver {
    height: 200px;
}
.podium-step.silver .podium-pedestal {
    background: linear-gradient(180deg, hsl(210, 15%, 70%) 0%, var(--bg-card) 100%);
    color: hsl(222, 47%, 8%);
    height: 120px;
}

.podium-step.bronze {
    height: 165px;
}
.podium-step.bronze .podium-pedestal {
    background: linear-gradient(180deg, hsl(25, 60%, 45%) 0%, var(--bg-card) 100%);
    color: white;
    height: 90px;
}

/* Player Answering View */
.player-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: calc(100vh - 180px);
    padding: 1rem;
}

.player-btn-pad {
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
}

.player-btn-pad:active {
    transform: scale(0.96);
}

.player-btn-pad.color-red {
    background: var(--red-triangle);
    box-shadow: 0 4px 15px var(--red-triangle-glow);
}
.player-btn-pad.color-blue {
    background: var(--blue-diamond);
    box-shadow: 0 4px 15px var(--blue-diamond-glow);
}
.player-btn-pad.color-yellow {
    background: var(--yellow-circle);
    box-shadow: 0 4px 15px var(--yellow-circle-glow);
}
.player-btn-pad.color-green {
    background: var(--green-square);
    box-shadow: 0 4px 15px var(--green-square-glow);
}

.player-btn-pad .shape-icon {
    font-size: 4rem;
    width: 90px;
    height: 90px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    margin: 0;
}

.player-btn-pad.color-yellow .shape-icon {
    border-color: rgba(0, 0, 0, 0.3);
}

/* Player Response States (Correct/Incorrect/Waiting) */
.player-status-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    animation: fadeIn 0.4s ease-out;
}

.status-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.correct {
    background: var(--success);
    color: var(--bg-dark);
}
.status-icon.incorrect {
    background: var(--error);
    color: white;
}

.points-label {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 1rem;
    color: var(--accent);
}

.streak-counter {
    background: var(--red-triangle);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-lg);
    font-weight: 800;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--red-triangle-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Shared Modal/Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 21, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 550px;
    width: 90%;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.175);
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--text-main);
}
