/* Bluffy - Sophisticated Dark Theme */

:root {
    --bg-deep: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --bg-input: #0d0d12;
    
    --accent-gold: #d4af37;
    --accent-gold-dim: #8b7424;
    --accent-copper: #b87333;
    --accent-emerald: #2ecc71;
    --accent-ruby: #e74c3c;
    --accent-sapphire: #3498db;
    --accent-purple: #9b59b6;
    
    --text-primary: #f5f5f0;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    
    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-gold: rgba(212, 175, 55, 0.4);
    
    --shadow-glow: 0 0 40px rgba(212, 175, 55, 0.1);
    
    --font-display: 'Crimson Pro', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

html {
    height: 100%;
}

body {
    font-family: var(--font-display);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    background-image: 
        radial-gradient(ellipse at top, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(184, 115, 51, 0.02) 0%, transparent 50%);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

/* Screens */
.screen {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 40px; /* Extra space at bottom for scrolling */
}

.screen.active {
    display: flex;
}

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

/* Logo & Branding */
.logo-section {
    text-align: center;
    padding: 60px 0 40px;
}

.logo {
    font-size: 2.8rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--text-secondary);
}

.logo span {
    display: block;
    font-size: 3.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
    letter-spacing: 0.1em;
}

/* Buttons */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
    padding-bottom: 40px;
}

.btn {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 16px 32px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--border-gold);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    text-align: left;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--accent-gold);
}

/* Forms */
h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group .optional {
    font-weight: 400;
    text-transform: none;
    color: var(--text-muted);
    letter-spacing: normal;
}

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    background: var(--bg-input);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

.code-input {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}

/* Stepper */
.stepper {
    display: flex;
    align-items: center;
    gap: 0;
}

.stepper button {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 2px solid var(--border-subtle);
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.stepper button:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.stepper button:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.stepper button:hover {
    background: var(--accent-gold);
    color: var(--bg-deep);
}

.stepper input {
    width: 80px;
    text-align: center;
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 1.3rem;
}

/* Lobby */
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.room-code-display {
    display: flex;
    flex-direction: column;
}

.room-code-display .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.room-code-display .code {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 500;
    color: var(--accent-gold);
    letter-spacing: 0.2em;
}

.rounds-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.rounds-info span {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.players-section {
    flex: 1;
    overflow-y: auto;
}

.players-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.players-section h3 span {
    color: var(--text-muted);
    font-weight: 400;
}

.player-list {
    list-style: none;
}

.player-list li {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--border-subtle);
}

.player-list li.host::before {
    content: '👑';
    margin-right: 10px;
}

.player-list li.you {
    border-color: var(--accent-gold);
}

.player-list .player-name {
    flex: 1;
    font-size: 1.1rem;
}

.player-list .player-score {
    font-family: var(--font-mono);
    color: var(--accent-gold);
}

.player-list .disconnected {
    opacity: 0.4;
}

.lobby-actions {
    padding: 20px 0;
}

.waiting-message {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Timer */
.timer-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.timer-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
    width: 100%;
    transition: width 1s linear;
}

.timer-fill.low {
    background: linear-gradient(90deg, var(--accent-ruby), #c0392b);
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.timer-text {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.timer-text.low {
    color: var(--accent-ruby);
}

/* Question Section */
.question-section {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.question-section.compact {
    padding: 16px;
    margin-bottom: 16px;
}

/* Badge Row - contains type and topic badges */
.badge-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.type-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 20px;
    border: 1px solid var(--accent-gold);
}

.topic-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(155, 89, 182, 0.15);
    color: var(--accent-purple);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold-dim);
}

/* Keep category-badge for backwards compat if needed */
.category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 20px;
    margin-bottom: 16px;
}

.prompt {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.question-section.compact .prompt {
    font-size: 1.4rem;
}

/* Answer Form */
#answer-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#answer-form textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
}

/* Submitted Notice */
.submitted-notice {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.3s ease;
}

.checkmark-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--accent-emerald);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    margin-bottom: 20px;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.submitted-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.waiting-for {
    font-size: 1rem;
    color: var(--text-muted);
}

.progress-indicator {
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--accent-gold);
}

/* Timer Expired Section (Host) */
.timer-expired-section {
    background: var(--bg-card);
    border: 2px solid var(--accent-copper);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 20px;
    animation: fadeIn 0.3s ease;
}

.timer-expired-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timer-expired-icon {
    font-size: 1.8rem;
}

.timer-expired-header h3 {
    color: var(--accent-copper);
    margin: 0;
}

.timer-expired-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.partial-answers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.partial-answer-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
}

.partial-player-name {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.partial-text {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.partial-text.no-text {
    color: var(--text-muted);
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-accept {
    background: var(--accent-emerald);
    color: white;
    border: none;
}

.btn-accept:hover {
    background: #27ae60;
}

.all-submitted {
    text-align: center;
    color: var(--accent-emerald);
    font-weight: 500;
}

/* Phase Header */
.phase-header {
    text-align: center;
    padding: 20px 0 30px;
}

.phase-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.phase-header h2 {
    margin-bottom: 0;
}

/* Reading Phase */
.reading-info {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.reading-info p {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.reading-info span {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--accent-gold);
}

.reading-instruction {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
    margin-top: 16px;
    font-style: italic;
}

.reading-actions {
    margin-top: auto;
    padding: 20px 0;
}

/* Voting */
.vote-instruction {
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
}

.vote-option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.vote-option:hover {
    border-color: var(--accent-gold);
    background: var(--bg-elevated);
}

.vote-option.selected {
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.vote-option.own-answer {
    opacity: 0.4;
    cursor: not-allowed;
}

.vote-option .answer-letter {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.vote-option .answer-content {
    flex: 1;
}

.vote-option .answer-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.vote-option .answer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.vote-option.voted {
    cursor: default;
    opacity: 0.7;
}

.vote-option.voted:hover {
    border-color: var(--border-subtle);
    background: var(--bg-card);
}

.vote-option.my-vote {
    opacity: 1;
    border-color: var(--accent-emerald);
    background: rgba(46, 204, 113, 0.15);
}

.vote-option.my-vote:hover {
    border-color: var(--accent-emerald);
    background: rgba(46, 204, 113, 0.15);
}

.vote-option.my-vote .answer-letter {
    background: var(--accent-emerald);
    color: white;
}

.vote-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: var(--accent-emerald);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Reveal Phase */
.reveal-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.reveal-answer {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.reveal-answer.hidden-answer {
    background: var(--bg-elevated);
}

.reveal-answer.hidden-answer .answer-text {
    color: var(--text-secondary);
}

.reveal-answer.revealed {
    animation: revealPop 0.4s ease;
}

@keyframes revealPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.reveal-answer.correct {
    border-color: var(--accent-emerald);
    background: rgba(46, 204, 113, 0.1);
}

.reveal-answer .answer-letter {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-gold);
}

.reveal-answer.correct .answer-letter {
    background: var(--accent-emerald);
    color: white;
}

.reveal-answer .answer-content {
    flex: 1;
}

.reveal-answer .answer-text {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mystery-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.author-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(155, 89, 182, 0.2);
    color: var(--accent-purple);
    font-size: 0.8rem;
    border-radius: 12px;
}

.correct-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(46, 204, 113, 0.2);
    color: var(--accent-emerald);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
}

.voters-list {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--accent-ruby);
}

.voters-list.correct-voters {
    color: var(--accent-emerald);
}

.reveal-controls {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.reveal-controls .btn {
    flex: 1;
}

/* Results */
.correct-answer-reveal {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.correct-answer-box {
    margin-top: 20px;
    padding: 16px;
    background: rgba(46, 204, 113, 0.1);
    border: 2px solid var(--accent-emerald);
    border-radius: var(--radius-md);
}

.correct-answer-box .correct-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-emerald);
    display: block;
    margin-bottom: 8px;
}

.correct-answer-box p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.results-actions {
    padding: 20px 0;
}

/* Scoreboard */
.scoreboard {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.scoreboard h3,
.final-scoreboard h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.bonus-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.scoreboard-list {
    list-style: none;
}

.scoreboard-list li {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
    gap: 8px;
}

.scoreboard-list li:last-child {
    border-bottom: none;
}

.scoreboard-list .rank {
    width: 30px;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.scoreboard-list .name {
    flex: 1;
    font-size: 1rem;
}

.scoreboard-list .round-wins {
    font-family: var(--font-mono);
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 0.9rem;
}

.scoreboard-list .points {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scoreboard-list .points-gained {
    color: var(--accent-emerald);
    font-size: 0.8rem;
    margin-left: 4px;
}

.bonus-btn {
    padding: 6px 12px;
    background: var(--accent-sapphire);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.bonus-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* Game Over */
.winner-section {
    text-align: center;
    padding: 40px 20px;
}

.trophy {
    font-size: 5rem;
    margin-bottom: 16px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.winner-section h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.winner-name {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-scoreboard {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.gameover-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--accent-ruby);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Host Controls */
.host-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 900;
}

.host-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.host-btn.skip-btn {
    background: rgba(52, 152, 219, 0.2);
    color: var(--accent-sapphire);
    border-color: rgba(52, 152, 219, 0.4);
}

.host-btn.skip-btn:hover {
    background: rgba(52, 152, 219, 0.35);
}

.host-btn.reset-btn {
    background: rgba(231, 76, 60, 0.2);
    color: var(--accent-ruby);
    border-color: rgba(231, 76, 60, 0.4);
}

.host-btn.reset-btn:hover {
    background: rgba(231, 76, 60, 0.35);
}

/* Responsive */
@media (max-width: 400px) {
    .logo {
        font-size: 2.2rem;
    }
    
    .logo span {
        font-size: 2.6rem;
    }
    
    .prompt {
        font-size: 1.5rem;
    }
    
    .room-code-display .code {
        font-size: 1.6rem;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .container {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}
