:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --container-bg: white;
    --text-primary: #333;
    --text-secondary: #666;
    --input-bg: #f8f9fa;
    --input-border: #e0e0e0;
    --info-bg: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --container-bg: #2d2d44;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --input-bg: #3a3a52;
    --input-border: #4a4a6a;
    --info-bg: #3a3a52;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.container {
    background: var(--container-bg);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    padding: 40px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    position: relative;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ── Theme toggle ─────────────────────────────────────── */

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 50px;
    width: 60px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 3px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--bg-gradient-start);
}

.theme-toggle-slider {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-gradient-start);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(30px);
}

/* ── Language switcher (flags) ─────────────────────────── */

.lang-switcher {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.flag-link {
    font-size: 1.4em;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.2s ease, transform 0.2s ease;
    line-height: 1;
}

.flag-link:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.flag-link.active {
    opacity: 1;
}

/* ── Header & tab navigation ─────────────────────────── */

.site-header {
    text-align: center;
    margin-bottom: 24px;
}

.site-title {
    font-size: 1.25em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.site-nav {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--input-border);
    transition: border-color 0.3s ease;
}

.site-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    border-radius: 8px 8px 0 0;
}

.site-nav a:hover {
    color: var(--text-primary);
    background: var(--info-bg);
}

.site-nav a.active {
    color: var(--text-primary);
    font-weight: 600;
    border-bottom-color: var(--bg-gradient-start);
    background: var(--info-bg);
}

[data-theme="dark"] .site-nav a.active {
    background: var(--input-bg);
}

/* ── Breadcrumb navigation ────────────────────────────── */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--bg-gradient-start);
    text-decoration: underline;
}

.breadcrumb .sep {
    opacity: 0.5;
    user-select: none;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Main content ─────────────────────────────────────── */

main.content {
    text-align: left;
}

main.content .center-block {
    text-align: center;
}

/* ── Typography ───────────────────────────────────────── */

h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 2.5em;
    font-weight: 700;
    transition: color 0.3s ease;
}

.subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

/* ── Generator: number balls ──────────────────────────── */

.lotto-sets {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 40px 0;
}

.lotto-set {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.set-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.lotto-numbers {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-bottom: 25px;
    align-items: flex-start;
}

.number-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
}

.number-ball:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.powerball {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
    position: relative;
}

.powerball:hover {
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.powerball::after {
    content: attr(data-bonus-name);
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5em;
    color: #f5576c;
    font-weight: 600;
    white-space: nowrap;
    overflow: visible;
}

.powerball-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 5px;
    font-size: 1.5em;
    color: var(--text-secondary);
    font-weight: bold;
    transition: color 0.3s ease;
}

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

.empty-state {
    color: var(--text-secondary);
    font-style: italic;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

/* ── Generator: inputs ────────────────────────────────── */

.input-section {
    background: var(--input-bg);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: background 0.3s ease, opacity 0.3s ease, max-height 0.3s ease;
    overflow: hidden;
}

.input-section.hidden {
    display: none;
}

.input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.input-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1em;
    min-width: 120px;
    text-align: left;
    transition: color 0.3s ease;
}

.range-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-input input {
    width: 80px;
    padding: 10px 15px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    background: var(--container-bg);
    color: var(--text-primary);
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.range-input input:focus {
    outline: none;
    border-color: var(--bg-gradient-start);
}

.range-separator {
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.lotto-type-selector {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.lotto-type-selector select {
    padding: 12px 20px;
    border: 2px solid var(--input-border);
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    background: var(--container-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
    min-width: 200px;
}

.lotto-type-selector select:hover {
    border-color: var(--bg-gradient-start);
}

.lotto-type-selector select:focus {
    outline: none;
    border-color: var(--bg-gradient-start);
}

.generate-btn-inline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.generate-btn-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

/* ── DB status warning ────────────────────────────────── */

.db-status-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 20px;
    font-size: 0.9em;
    line-height: 1.5;
    text-align: left;
}

.db-status-warning code {
    background: rgba(0,0,0,0.08);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.95em;
}

[data-theme="dark"] .db-status-warning {
    background: #3a3520;
    color: #ffc107;
    border-color: #665d1e;
}

[data-theme="dark"] .db-status-warning code {
    background: rgba(255,255,255,0.1);
}

/* ── Feature banner ───────────────────────────────────── */

.feature-banner {
    background: linear-gradient(135deg, rgba(102,126,234,0.06) 0%, rgba(118,75,162,0.06) 100%);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9em;
    line-height: 1.5;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.feature-banner p {
    margin: 0;
}

.feature-banner a {
    color: var(--bg-gradient-start);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.feature-banner a:hover {
    border-bottom-color: var(--bg-gradient-start);
}

/* ── Simulate button ──────────────────────────────────── */

.simulate-btn {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simulate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.55);
}

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

.simulate-btn.hidden {
    display: none;
}

/* ── Info box ─────────────────────────────────────────── */

.info {
    margin-top: 30px;
    padding: 15px;
    background: var(--info-bg);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9em;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ── Ad container ─────────────────────────────────────── */

.ad-container {
    margin: 24px 0;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-container ins {
    display: block;
    text-align: center;
}

.ad-label {
    font-size: 0.75em;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* ── Content sections (about, policy, etc.) ───────────── */

.about-section, .policy-section {
    margin-top: 24px;
    padding: 24px;
    background: var(--info-bg);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.about-section h2, .policy-section h2 {
    color: var(--text-primary);
    font-size: 1.25em;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.about-section p, .policy-section p {
    margin-bottom: 12px;
}

.about-section p:last-child, .policy-section p:last-child {
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-top: 16px;
    padding: 12px;
    border-left: 4px solid var(--bg-gradient-start);
    background: var(--input-bg);
    border-radius: 0 8px 8px 0;
}

/* ── FAQ section (collapsible) ────────────────────────── */

.faq-section {
    margin-top: 24px;
    text-align: left;
}

.faq-toggle {
    color: var(--text-secondary);
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    user-select: none;
    transition: color 0.2s ease;
    margin: 0;
}

.faq-toggle:hover {
    color: var(--text-primary);
}

.faq-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.faq-section.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    display: none;
    margin-top: 8px;
}

.faq-section.open .faq-body {
    display: block;
}

.faq-item {
    background: var(--info-bg);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.faq-item h2,
.faq-item h3 {
    color: var(--text-primary);
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.88em;
    line-height: 1.55;
    margin: 0;
    transition: color 0.3s ease;
}

/* ── Toolbar (copy / save / share) ────────────────────── */

.toolbar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 10px auto 0;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    padding: 6px 10px;
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.toolbar-wrap {
    text-align: center;
}

.toolbar.hidden {
    display: none;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--input-border);
    margin: 0 10px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.action-btn {
    background: none;
    color: var(--text-secondary);
    border: none;
    padding: 6px 12px;
    font-size: 0.82em;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    color: var(--text-primary);
    background: var(--container-bg);
}

.action-btn svg {
    flex-shrink: 0;
}

/* ── Share bar ────────────────────────────────────────── */

.share-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.share-bar.hidden {
    display: none;
}

.share-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-icon:hover {
    transform: scale(1.15);
}

.share-icon:active {
    transform: scale(1.0);
}

.share-icon svg {
    flex-shrink: 0;
    display: block;
}

/* ── Attempt counter ──────────────────────────────────── */

.attempt-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.attempt-counter.hidden {
    display: none;
}

.attempt-counter #attemptNum {
    display: inline-block;
    min-width: 32px;
    text-align: center;
    font-size: 1.4em;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 6px;
}

.attempt-counter.attempt-hit #attemptNum {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

#attemptStatus {
    font-weight: 700;
    color: #ffa500;
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--input-border);
    text-align: center;
    font-size: 0.85em;
    color: var(--text-secondary);
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* ── Match info (historical jackpot comparison) ───────── */

.match-info {
    background: var(--info-bg);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 5px;
    font-size: 0.85em;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 580px;
    transition: background 0.3s ease;
    border-left: 4px solid var(--input-border);
}

.match-info.match-jackpot {
    background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,179,71,0.15) 100%);
    border-left-color: #ffd700;
}

[data-theme="dark"] .match-info.match-jackpot {
    background: linear-gradient(135deg, rgba(255,215,0,0.1) 0%, rgba(255,179,71,0.1) 100%);
}

.match-info.match-high {
    border-left-color: #667eea;
    background: linear-gradient(135deg, rgba(102,126,234,0.08) 0%, rgba(118,75,162,0.08) 100%);
}

.match-info-header {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.match-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 700;
}

.match-badge.jackpot {
    background: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    color: #333;
}

.match-badge.high {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.match-date {
    font-size: 0.9em;
    opacity: 0.8;
}

.match-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}

.match-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: 600;
    background: var(--input-bg);
    color: var(--text-secondary);
    transition: background 0.3s ease, color 0.3s ease;
}

.match-num.matched {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.match-num.bonus-ball {
    border: 2px solid #f5576c;
}

.match-num.bonus-ball.matched {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
}

.match-plus {
    font-weight: bold;
    color: var(--text-secondary);
    font-size: 0.85em;
}

/* ── Responsive: tablets (≤768px) ─────────────────────── */

@media (max-width: 768px) {
    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 24px 20px;
        border-radius: 16px;
    }

    h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 0.95em;
        margin-bottom: 24px;
    }

    .site-nav a {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .number-ball {
        width: 56px;
        height: 56px;
        font-size: 1.4em;
    }

    .lotto-numbers {
        gap: 10px;
        padding-bottom: 20px;
    }

    .powerball-separator {
        font-size: 1.2em;
        margin: 0 2px;
    }

    .lotto-sets {
        gap: 22px;
        margin: 28px 0;
    }

    .match-num {
        width: 26px;
        height: 26px;
        font-size: 0.7em;
    }
}

/* ── Responsive: phones (≤480px) ──────────────────────── */

@media (max-width: 480px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    .container {
        padding: 16px 12px;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .theme-toggle {
        top: 12px;
        right: 12px;
    }

    .lang-switcher {
        top: 14px;
        left: 14px;
        gap: 4px;
    }

    .flag-link {
        font-size: 1.2em;
    }

    .site-title {
        font-size: 1.05em;
        margin-bottom: 10px;
    }

    .site-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 2px;
    }

    .site-nav::-webkit-scrollbar {
        display: none;
    }

    .site-nav a {
        padding: 7px 10px;
        font-size: 0.78em;
        flex-shrink: 0;
    }

    .site-header {
        margin-bottom: 14px;
    }

    h1 {
        font-size: 1.35em;
        margin-bottom: 4px;
    }

    .subtitle {
        display: none;
    }

    .breadcrumb {
        margin-bottom: 10px;
        font-size: 0.78em;
    }

    .feature-banner {
        display: none;
    }

    .lotto-type-selector {
        gap: 8px;
        margin-bottom: 12px;
    }

    .lotto-type-selector select {
        min-width: 130px;
        padding: 10px 12px;
        font-size: 0.9em;
    }

    .generate-btn-inline,
    .simulate-btn {
        padding: 10px 18px;
        font-size: 0.9em;
    }

    .number-ball {
        width: 40px;
        height: 40px;
        font-size: 1.05em;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    }

    .powerball {
        box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
    }

    .powerball::after {
        font-size: 0.4em;
        bottom: -14px;
    }

    .lotto-numbers {
        gap: 6px;
        padding-bottom: 16px;
    }

    .powerball-separator {
        font-size: 0.9em;
        margin: 0;
    }

    .lotto-sets {
        gap: 12px;
        margin: 14px 0;
    }

    .set-label {
        font-size: 0.75em;
        margin-bottom: 1px;
    }

    .empty-state {
        min-height: 60px;
        font-size: 0.85em;
    }

    .ad-container {
        margin: 10px 0;
        min-height: 50px;
    }

    .toolbar {
        padding: 4px 6px;
        border-radius: 10px;
    }

    .toolbar-divider {
        margin: 0 5px;
        height: 18px;
    }

    .action-btn {
        padding: 4px 7px;
        font-size: 0.72em;
        gap: 3px;
    }

    .action-btn svg {
        width: 13px;
        height: 13px;
    }

    .share-icon {
        width: 26px;
        height: 26px;
    }

    .share-icon svg {
        width: 11px;
        height: 11px;
    }

    .attempt-counter {
        font-size: 0.78em;
        margin-bottom: 4px;
    }

    .info {
        font-size: 0.8em;
        padding: 10px;
        margin-top: 14px;
    }

    .about-section, .policy-section {
        padding: 16px 14px;
        font-size: 0.88em;
    }

    .faq-item {
        padding: 12px 14px;
    }

    .site-footer {
        margin-top: 20px;
        padding-top: 14px;
        font-size: 0.78em;
    }

    .input-section {
        padding: 14px 12px;
    }

    .range-input input {
        width: 60px;
        padding: 8px 8px;
        font-size: 0.88em;
    }

    .input-label {
        min-width: 90px;
        font-size: 0.88em;
    }

    .match-info {
        padding: 8px 10px;
        font-size: 0.78em;
    }

    .match-num {
        width: 22px;
        height: 22px;
        font-size: 0.6em;
    }

    .match-badge {
        font-size: 0.68em;
        padding: 2px 6px;
    }
}
