/**
 * Survey App - Base Styles
 * Generic, theme-agnostic layout and components.
 * Theme-specific overrides (colors, effects) go into css/themes/{theme}.css
 */

/* ============================================
   CSS VARIABLES (Generic Defaults)
   ============================================ */
:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --bg: #111827;
    --bg-surface: #1f2937;
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s ease;
    --btn-radius: 12px;
    --card-radius: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.5s ease;
}

/* ============================================
   SCREENS
   ============================================ */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 10;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    overflow-y: auto;
}

.screen.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.nav-buttons {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: var(--primary);
}

.home-btn {
    border-color: rgba(255, 255, 255, 0.2);
}

.home-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.back-icon {
    font-size: 20px;
}

/* ============================================
   LOGO
   ============================================ */
.logo-container {
    margin-bottom: 30px;
    text-align: center;
}

.logo {
    width: 280px;
    height: auto;
}

.brand-title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 15px;
}

/* ============================================
   LANGUAGE SELECTION (Screen 0)
   ============================================ */
.language-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 800px;
    margin-top: 40px;
}

.lang-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--card-radius);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.lang-flag {
    width: 52px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Select Language Multi-line */
.select-language-multi {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 15px;
    text-align: center;
    line-height: 1.8;
}

.lang-divider {
    margin: 0 6px;
    color: rgba(255, 255, 255, 0.3);
}

/* More Languages Button (flag previews) */
.more-langs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.more-langs-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.flag-preview {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.more-dots {
    font-weight: 600;
    font-size: 13px;
    margin-left: 4px;
    color: var(--primary);
}

/* Language Modal */
.lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.lang-modal {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px;
    max-width: 650px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lang-modal-overlay.open .lang-modal {
    transform: scale(1);
}

.lang-modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 1;
}

.lang-modal-close:hover {
    color: var(--primary);
}

.lang-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lang-btn-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn-small:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.lang-flag-small {
    width: 36px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ============================================
   TEASER (Screen 1)
   ============================================ */
.teaser-container {
    text-align: center;
    max-width: 600px;
}

.teaser-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 2s infinite ease-in-out;
}

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

.teaser-headline {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.teaser-subline {
    font-size: 28px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.teaser-description {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.start-btn:hover {
    transform: scale(1.05);
}

.start-btn-icon {
    font-size: 22px;
}

/* ============================================
   QUESTIONS (Screen 2+)
   ============================================ */
.question-container {
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.question-headline {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text);
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.answer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 22px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.answer-btn.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.answer-icon {
    font-size: 36px;
}

.answer-text {
    font-weight: 500;
}

/* ============================================
   CARD INPUT
   ============================================ */
.card-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.card-instructions {
    text-align: center;
    margin-bottom: 18px;
    padding: 0 10px;
}

.card-instructions p {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-instructions-sub {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}

.card-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.card-tab {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.card-tab.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.scan-area {
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 20px;
}

.scan-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: scanPulse 2s infinite;
}

@keyframes scanPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scan-text {
    font-size: 20px;
    color: var(--text-muted);
}

/* Scanner Display */
.scanner-display {
    margin-top: 25px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

#scanner-card-display {
    font-family: 'Courier New', monospace;
    font-size: 42px;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 15px;
    color: var(--primary);
    letter-spacing: 5px;
}

/* ============================================
   NFC AREA
   ============================================ */
.nfc-area {
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.nfc-icon {
    color: var(--primary);
    margin-bottom: 20px;
    animation: nfcPulse 2s infinite ease-in-out;
}

.nfc-icon.scanning {
    animation: nfcPulse 1.2s infinite ease-in-out;
}

.nfc-icon.success {
    color: #00ff88;
    animation: none;
}

@keyframes nfcPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.nfc-text {
    font-size: 20px;
    color: var(--text-muted);
}

.nfc-status {
    font-size: 16px;
    color: var(--primary);
    margin-top: 10px;
    min-height: 24px;
}

/* ============================================
   QR-CODE / BARCODE AREA
   ============================================ */
.qr-area {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.qr-video-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    background: #000;
}

.qr-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-video-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.qr-text {
    font-size: 20px;
    color: var(--text-muted);
}

.qr-status {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
    min-height: 28px;
    word-break: break-all;
}

/* ============================================
   NUMPAD
   ============================================ */
.numpad-container {
    display: none;
}

.numpad-container.active {
    display: block;
}

.card-display {
    font-family: 'Courier New', monospace;
    font-size: 36px;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
    letter-spacing: 5px;
    color: var(--primary);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-hint {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.card-error {
    display: none;
    color: #ff4444;
    font-size: 16px;
    margin-bottom: 15px;
}

.numpad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 400px;
    margin: 0 auto 20px;
}

.num-btn {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--btn-radius);
    color: var(--text);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.num-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.num-btn.action {
    background: rgba(255, 255, 255, 0.08);
    font-size: 18px;
}

.num-btn.num-wide {
    grid-column: span 2;
}

.num-btn.delete {
    color: #ff6b6b;
}

.num-btn.clear {
    color: var(--accent);
}

.confirm-btn {
    width: 100%;
    max-width: 400px;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.5;
    pointer-events: none;
}

.confirm-btn.active {
    opacity: 1;
    pointer-events: auto;
}

.confirm-btn.active:hover {
    transform: scale(1.02);
}

/* ============================================
   RESULTS
   ============================================ */
.reward-container {
    text-align: center;
    position: relative;
    padding: 60px;
}

.reward-container.success {
    animation: successPulse 0.8s ease;
}

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

.reward-icon, .error-icon {
    font-size: 100px;
    margin-bottom: 30px;
}

.reward-headline {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent);
}

.error-headline {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.credit-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.credit-number {
    font-size: 120px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.credit-label {
    font-size: 28px;
    color: var(--text-muted);
    margin-top: 10px;
}

.reward-message {
    font-size: 18px;
    color: var(--text-muted);
    margin-top: 30px;
}

.error-message {
    font-size: 20px;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Coin Rain */
.coin-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.coin {
    position: absolute;
    font-size: 40px;
    animation: coinFall linear forwards;
    top: -50px;
}

@keyframes coinFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   LOADING
   ============================================ */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   ERROR OVERLAY
   ============================================ */
.error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.error-box {
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    max-width: 500px;
}

.error-box .error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.error-box p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.error-box button {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.error-box button:hover {
    transform: scale(1.05);
}

/* ============================================
   DEVICE ID DISPLAY (Debug)
   ============================================ */
.device-id {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    font-family: monospace;
    z-index: 1;
}

/* ============================================
   BACKGROUND EFFECTS (hidden by default, themes activate)
   ============================================ */
#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    display: none;
}

.grid-overlay {
    display: none;
}

/* ============================================
   ALREADY PARTICIPATED (Web Mode)
   ============================================ */
.already-done-container {
    text-align: center;
    position: relative;
    padding: 60px;
}

.already-done-icon {
    font-size: 100px;
    margin-bottom: 30px;
}

.already-done-headline {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.already-done-message {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   CARD ERROR OVERLAY (Web Mode)
   ============================================ */
.card-error-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.card-error-box {
    text-align: center;
    padding: 40px 30px;
    max-width: 340px;
}

.card-error-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.card-error-box p {
    font-size: 22px;
    font-weight: 600;
    color: #ff6b6b;
    line-height: 1.4;
}

/* ============================================
   RESPONSIVE - 8.7" Tablet (~800x1340)
   ============================================ */
@media (max-width: 850px) {
    .screen {
        padding: 20px;
    }

    /* Language selection */
    .language-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 100%;
        margin-top: 20px;
    }

    .lang-btn {
        padding: 12px 8px;
        gap: 6px;
        font-size: 13px;
    }

    .lang-flag {
        width: 40px;
        height: 28px;
    }

    .select-language-multi {
        font-size: 12px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .more-langs-btn {
        padding: 8px 16px;
        margin-top: 8px;
        gap: 4px;
    }

    .flag-preview {
        width: 20px;
        height: 14px;
    }

    .more-dots {
        font-size: 12px;
    }

    .lang-modal {
        padding: 20px;
        max-width: 95%;
        max-height: 75vh;
        border-radius: 18px;
    }

    .lang-modal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .lang-btn-small {
        padding: 8px 4px;
        gap: 3px;
        font-size: 10px;
        border-radius: 8px;
    }

    .lang-flag-small {
        width: 30px;
        height: 20px;
        border-radius: 3px;
    }

    /* Logo */
    .logo-container {
        margin-bottom: 15px;
    }

    .logo {
        width: 180px;
    }

    /* Teaser */
    .teaser-icon {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .teaser-headline {
        font-size: 26px;
        margin-bottom: 6px;
    }

    .teaser-subline {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .teaser-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .start-btn {
        padding: 14px 32px;
        font-size: 16px;
    }

    /* Questions */
    .question-headline {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .answers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .answer-btn {
        padding: 16px 12px;
        gap: 8px;
    }

    .answer-icon {
        font-size: 28px;
    }

    .answer-text {
        font-size: 14px;
    }

    /* Nav buttons */
    .nav-buttons {
        top: 15px;
        left: 15px;
        right: 15px;
    }

    .back-btn {
        padding: 8px 12px;
        font-size: 13px;
        gap: 5px;
    }

    /* Card input */
    .card-container {
        max-width: 100%;
    }

    .card-tabs {
        margin-bottom: 15px;
        gap: 6px;
    }

    .card-tab {
        padding: 8px 14px;
        font-size: 13px;
    }

    .nfc-area {
        padding: 30px;
    }

    .nfc-icon svg {
        width: 50px;
        height: 50px;
    }

    .nfc-text, .qr-text {
        font-size: 16px;
    }

    .qr-area {
        padding: 20px;
    }

    .qr-video-container {
        width: 220px;
        height: 220px;
        border-radius: 12px;
    }

    .scan-area {
        padding: 30px;
    }

    .scan-icon {
        font-size: 50px;
        margin-bottom: 10px;
    }

    .scan-text {
        font-size: 16px;
    }

    .card-display {
        font-size: 28px;
        padding: 14px 20px;
        min-height: 60px;
        margin-bottom: 10px;
        letter-spacing: 3px;
    }

    .card-hint {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .numpad {
        gap: 8px;
        max-width: 340px;
        margin: 0 auto 12px;
    }

    .num-btn {
        padding: 12px;
        font-size: 18px;
        border-radius: 10px;
    }

    .num-btn.action {
        font-size: 14px;
    }

    .confirm-btn {
        max-width: 340px;
        padding: 14px;
        font-size: 17px;
    }

    #scanner-card-display {
        font-size: 32px;
        padding: 14px 30px;
    }

    /* Results */
    .reward-container {
        padding: 30px;
    }

    .reward-icon, .error-icon {
        font-size: 70px;
        margin-bottom: 15px;
    }

    .reward-headline, .error-headline {
        font-size: 32px;
    }

    .credit-number {
        font-size: 80px;
    }

    .credit-label {
        font-size: 22px;
    }

    .already-done-container {
        padding: 30px;
    }

    .already-done-icon {
        font-size: 70px;
        margin-bottom: 15px;
    }

    .already-done-headline {
        font-size: 32px;
    }
}
