html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    display: flex;
    flex-direction: column;
    /*align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;*/
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    height: fit-content;
}

#logo img {
    width: 7rem;
}

/*.auth-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    position: relative;
}*/

.auth-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    padding: 30px;
    text-align: center;
    color: white;
}

    .auth-header h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .auth-header p {
        opacity: 0.9;
        font-size: 1.1rem;
    }

.form-container {
    padding: 40px;
    position: relative;
}

.form-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #6b7280;
}

    .toggle-btn.active {
        background: #4f46e5;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }

.form-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

    .form-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #374151;
        font-size: 0.95rem;
    }

    .form-group input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #fafafa;
    }

        .form-group input:focus {
            outline: none;
            border-color: #4f46e5;
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
        }

        .form-group input:valid {
            border-color: #10b981;
        }

.password-requirements {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 8px;
    line-height: 1.4;
}

    .password-requirements ul {
        list-style: none;
        margin-top: 8px;
    }

    .password-requirements li {
        padding: 2px 0;
        position: relative;
        padding-left: 20px;
    }

        .password-requirements li:before {
            content: "�";
            position: absolute;
            left: 0;
            color: #d1d5db;
        }

        .password-requirements li.valid:before {
            content: "?";
            color: #10b981;
            font-weight: bold;
        }

.btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    }

    .btn:active {
        transform: translateY(0);
    }

.error-message, .success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.form-row {
    display: flex;
    gap: 15px;
}

    .form-row .form-group {
        flex: 1;
    }

@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .auth-container {
        margin: 10px;
    }

    .form-container {
        padding: 30px 25px;
    }
}


/*PLAY INDEX CSS*/

* .game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-header {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    padding: 30px;
    text-align: center;
    color: white;
}

    .game-header h1 {
        font-size: 2.5rem;
        font-weight: bold;
        margin-bottom: 10px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.game-content {
    padding: 40px;
    text-align: center;
}

.game-options {
    display: flex;
    gap: 20px;
    width: 100%;
    padding: 3rem;
}

.btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    }

.demo-container {
    display: none;
}

    .demo-container.active {
        padding: 3rem;
        display: block;
        animation: fadeIn 0.5s ease-in-out;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question {
    font-size: 1.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.form-group {
    margin: 20px auto;
    max-width: 300px;
}

    .form-group input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 1rem;
        transition: all 0.3s ease;
        background: #fafafa;
        text-align: center;
    }

        .form-group input:focus {
            outline: none;
            border-color: #4f46e5;
            background: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
        }

        .form-group input.typing {
            animation: typing 1s ease-in-out;
        }

@keyframes typing {
    0% {
        border-color: #4f46e5;
        transform: scale(1);
    }

    50% {
        border-color: #7c3aed;
        transform: scale(1.05);
    }

    100% {
        border-color: #4f46e5;
        transform: scale(1);
    }
}

.feedback {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

    .feedback.correct {
        color: #16a34a;
        opacity: 1;
        animation: bounce 0.5s ease;
    }

    .feedback.incorrect {
        color: #dc2626;
        opacity: 1;
        animation: shake 0.5s ease;
    }

    .feedback.flip {
        color: #f59e0b;
        opacity: 1;
        animation: bounce 0.5s ease;
    }

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.demo-text {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.6;
    animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.next-btn {
    margin-top: 20px;
    display: none;
}

    .next-btn.active {
        display: inline-block;
    }
/*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-screen {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
}

    .welcome-screen h1 {
        font-size: 3rem;
        color: #4f46e5;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
        animation: bounce 2s infinite;
    }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.welcome-screen p {
    font-size: 1.3rem;
    color: #374151;
    margin-bottom: 30px;
    line-height: 1.6;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.demo-screen {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
}

.demo-title {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 30px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px #4f46e5, 0 0 10px #4f46e5;
    }

    to {
        text-shadow: 0 0 10px #4f46e5, 0 0 20px #4f46e5, 0 0 30px #4f46e5;
    }
}

.demo-step {
    display: none;
    animation: slideIn 0.8s ease-out;
}

    .demo-step.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-number {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.step-title {
    font-size: 1.8rem;
    color: #374151;
    margin-bottom: 20px;
    font-weight: bold;
}

.step-description {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.game-demo {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    border: 3px solid #4f46e5;
    position: relative;
    overflow: hidden;
}

    .game-demo::before {
        content: '';
        position: absolute;
        top: -2px;
        left: -2px;
        right: -2px;
        bottom: -2px;
        background: linear-gradient(45deg, #4f46e5, #7c3aed, #10b981, #f59e0b);
        border-radius: 15px;
        z-index: -1;
        animation: borderGlow 3s linear infinite;
    }

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.question {
    font-size: 2rem;
    color: #4f46e5;
    font-weight: bold;
    margin-bottom: 20px;
    animation: questionPop 0.6s ease-out;
}

@keyframes questionPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.answer-input {
    width: 300px;
    padding: 15px 20px;
    border: 3px solid #4f46e5;
    border-radius: 12px;
    font-size: 1.3rem;
    text-align: center;
    margin: 20px 0;
    background: white;
    transition: all 0.3s ease;
}

.typing-animation {
    border-right: 2px solid #4f46e5;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }

    51%, 100% {
        border-color: #4f46e5;
    }
}

.result {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    animation: resultShow 0.8s ease-out;
}

@keyframes resultShow {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.incorrect {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.flip-it {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 3rem;
    animation: flipAnimation 1s ease-in-out;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.6);
}

@keyframes flipAnimation {
    0% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(180deg) scale(1.2);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.celebration {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 1000;
    animation: celebrate 2s ease-out;
}

@keyframes celebrate {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

.next-btn {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

    .next-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
    }

.fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 2s ease-out;
}

@keyframes fireworkExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(20);
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .welcome-screen, .demo-screen {
        padding: 20px;
    }

        .welcome-screen h1 {
            font-size: 2rem;
        }

    .question {
        font-size: 1.5rem;
    }

    .answer-input {
        width: 250px;
        font-size: 1.1rem;
    }
}*/

/* Play page layout */
.play-countdown {
    font-size: 5rem;
    font-weight: 700;
    color: #4f46e5;
    text-align: center;
    padding: 60px 0;
    animation: countdownPulse 0.8s ease-out;
}

@keyframes countdownPulse {
    from {
        transform: scale(1.4);
        opacity: 0.4;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.play-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px 0;
}

.play-q-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c3aed;
}

.play-timer-display {
    font-size: 0.95rem;
    font-weight: 700;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
}

.play-clue-card {
    margin: 24px 28px 0;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
}

.play-clue-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7c3aed;
    margin-bottom: 16px;
}

.play-clue-text {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.play-answer-area {
    margin: 28px 28px 0;
    text-align: center;
}

.play-answer-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    letter-spacing: 0.03em;
}

    .play-answer-input:focus {
        border-color: #7c3aed;
        background: white;
        box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    }

    .play-answer-input:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.play-enter-hint {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 8px 0 0;
}

#question-result {
    min-height: 2.5rem;
    padding: 8px 28px 24px;
    text-align: center;
}

/* Play page answer feedback */
.play-feedback {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    padding: 10px 0 4px;
    min-height: 2rem;
    animation: feedbackPop 0.2s ease-out;
}

@keyframes feedbackPop {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feedback-correct {
    color: #16a34a;
}

.feedback-incorrect {
    color: #dc2626;
}

.feedback-flip {
    color: #b45309;
}

/* Site nav bar (authenticated only) */
.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.site-nav-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.site-nav-logout {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7c3aed;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .site-nav-logout:hover {
        color: #4f46e5;
    }

/* Already Played screen */
.already-played-card {
    padding: 40px 30px;
    text-align: center;
}

    .already-played-card h1 {
        font-size: 1.4rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: #374151;
        margin-bottom: 24px;
    }

    .already-played-card h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #374151;
        margin: 16px 0 8px;
    }

.already-played-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 8px;
}

.already-played-date {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 12px;
}

.already-played-message {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 28px;
}

.already-played-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Results page */
.results-wrapper {
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.results-header {
    text-align: center;
}

.results-trophy {
    font-size: 3rem;
    margin-bottom: 10px;
}

.results-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #374151;
    margin: 0 0 6px;
}

.results-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.results-stats-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.results-stat-box {
    flex: 1;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.results-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c3aed;
}

.results-stat-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #374151;
}

.results-section-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin: 0 0 12px;
}

.results-question-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.results-question-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f3f4f6;
}

    .results-question-row:last-child {
        border-bottom: none;
    }

.results-q-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.results-q-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.results-q-clue {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-q-answer {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

.results-q-attempts {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.attempts-perfect {
    background: #d1fae5;
    color: #065f46;
}

.attempts-good {
    background: #fef9c3;
    color: #854d0e;
}

.attempts-ok {
    background: #fee2e2;
    color: #991b1b;
}

.results-comeback {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

.results-btn-continue {
    display: block;
    text-align: center;
    text-decoration: none;
}

.results-btn-home {
    display: block;
    text-align: center;
    text-decoration: none;
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
}

    .results-btn-home:hover {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: white;
        border-color: transparent;
    }

.attempts-failed {
    background: #f3f4f6;
    color: #6b7280;
}

/* Guest play (home page) */
.guest-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 40px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

    .guest-divider::before,
    .guest-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e5e7eb;
    }

.guest-cta {
    padding: 20px 40px 36px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-guest {
    background: transparent;
    border: 2px solid #4f46e5;
    color: #4f46e5;
    text-decoration: none;
    display: block;
    width: 100%;
}

    .btn-guest:hover {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        color: white;
        border-color: transparent;
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    }

.guest-note {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

/* Guest CTA on results page */
.results-guest-cta {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 16px;
    padding: 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.results-guest-cta-text {
    font-size: 0.95rem;
    color: #374151;
    margin: 0;
    font-weight: 500;
}

.results-btn-register {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

    .results-btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
        color: white;
    }
