:root {
    --bg: #0f172a;
    --card-bg: #020617;
    --accent: #38bdf8;
    --accent-soft: #0ea5e9;
    --text-main: #f9fafb;
    --text-secondary: #9ca3af;
    --danger: #f97373;
    --success: #4ade80;
    --border-subtle: #1f2937;
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-wrapper {
    padding: 24px;
    width: 100%;
    max-width: 960px;
}

.card {
    background: radial-gradient(circle at top left, #1e293b 0, #020617 55%, #000 100%);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(14px);
}

.card-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    letter-spacing: 0.02em;
}

.subtitle {
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vote-section {
    margin-top: 24px;
}

.vote-label {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.vote-btn {
    flex: 1 1 150px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #020617;
    color: var(--text-main);
}

.vote-btn:active {
    transform: scale(0.96);
}

.vote-btn.like-btn {
    border-color: rgba(74, 222, 128, 0.5);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.3);
}

.vote-btn.dislike-btn {
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.3);
}

.vote-btn.like-btn:hover {
    background: rgba(22, 163, 74, 0.2);
}

.vote-btn.dislike-btn:hover {
    background: rgba(220, 38, 38, 0.2);
}

.vote-btn.bounce {
    animation: bounce 0.22s ease-out;
}

@keyframes bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.counter-box {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at left, rgba(56, 189, 248, 0.12), transparent 60%);
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

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

.counter-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.status-message {
    min-height: 22px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hint-highlight {
    color: var(--accent-soft);
    font-weight: 500;
}

.download-section {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px dashed rgba(148, 163, 184, 0.35);
}

.download-section h2 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
}

.download-section p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    color: #0b1120;
    box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.download-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 18px 40px rgba(56, 189, 248, 0.45);
}

.footer {
    margin-top: 26px;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.footer-text {
    margin: 0;
    max-width: 520px;
}

@media (max-width: 640px) {
    .card {
        padding: 24px 18px;
    }

    .buttons-row {
        flex-direction: column;
    }

    .counter-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
