* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #080b12;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 1rem;
}

.setup-card, .summary-card {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.8rem 2rem;
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.35s ease-out;
}

@media (max-width: 600px) {
    .setup-card, .summary-card {
        max-width: 360px;
        padding: 1.4rem 1.2rem;
    }
}

.setup-card h1 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    background: linear-gradient(to right, #10b981, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

label {
    display: block;
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
}

select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #0f172a;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
}

/* Gameplay Screen */
.gameplay-container {
    width: 100%;
    max-width: 680px;
    height: 540px;
    background: rgba(22, 31, 48, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@media (max-width: 600px) {
    .gameplay-container {
        max-width: 360px;
        height: 560px;
        padding: 1.25rem;
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-badge {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-box {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
    font-size: 1.3rem;
    font-weight: 900;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.gibberish-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    margin: 0.8rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 160px;
}

.read-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
}

.gibberish-text {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.3;
    color: #38bdf8;
    word-break: break-word;
    letter-spacing: 1px;
}

.answer-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.7rem 1rem;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    color: #cbd5e1;
    transition: background 0.2s;
}

.answer-box:hover {
    background: rgba(15, 23, 42, 0.9);
}

.real-phrase-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: #34d399;
}

.score-tracker {
    text-align: center;
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 600;
}

.score-tracker strong {
    color: #34d399;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.4rem;
}

.btn-ctrl {
    flex: 1;
    padding: 0.9rem;
    border-radius: 14px;
    border: none;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.btn-ctrl:active {
    transform: scale(0.96);
}

.btn-skip {
    background: #334155;
    color: #f87171;
}

.btn-correct {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Summary Card */
.summary-card {
    text-align: center;
}

.final-score {
    margin: 1.2rem 0;
}

.final-score span {
    font-size: 3.5rem;
    font-weight: 900;
    color: #34d399;
    display: block;
    line-height: 1;
}

.final-score small {
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-action {
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    border: none;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-gibberish {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: white;
}

.btn-secondary {
    background: #334155;
    color: #cbd5e1;
    margin-top: 0.6rem;
}

.btn-action:active {
    transform: scale(0.97);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
}

.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}