html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tahoma', sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

/* Header */
.header {
    text-align: center;
    margin: 24px 0 32px;
}

.header h1 {
    margin: 0 0 8px;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.header-subtitle {
    margin: 0;
    font-size: 14px;
    color: #d8131a;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #d8131a;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: #b91114;
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background-color: #2a2a2a;
    color: #ffffff;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #3a3a3a;
}

.btn-large {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
}

/* Start Content */
.start-content {
    text-align: center;
}

.intro-text {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px;
    color: #cccccc;
}

.follow-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #2a2a2a;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
}

.checkbox-label input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d8131a;
}

.checkbox-label span {
    font-size: 16px;
}

/* Form */
.form-group {
    margin-bottom: 12px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background-color: #0f0f0f;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
}

.input-field::placeholder {
    color: #666666;
}

.input-field:focus {
    outline: none;
    border-color: #d8131a;
    background-color: #1a1a1a;
}

/* Alert */
.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert p {
    margin: 4px 0;
}

.alert-error {
    background-color: rgba(216, 19, 26, 0.1);
    border: 1px solid #d8131a;
    color: #ff6b6b;
}

/* Progress */
.progress-section {
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background-color: #d8131a;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #999999;
    text-align: center;
}

/* Quiz Content */
.quiz-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.quiz-header {
    margin-bottom: 24px;
}

.question-counter {
    font-size: 16px;
    font-weight: 600;
    color: #d8131a;
    margin-bottom: 16px;
    text-align: center;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.question-card {
    border: none;
    margin: 0 0 24px 0;
    padding: 0;
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    width: 28px;
    height: 28px;
    background-color: #d8131a;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-label:hover {
    background-color: #252525;
    border-color: #d8131a;
}

.option-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #d8131a;
    margin: 0;
}

.option-label span {
    flex: 1;
    font-size: 15px;
    line-height: 1.4;
}

.quiz-navigation {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Giveaway Wheel */
.giveaway-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.wheel-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.giveaway-wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(216, 19, 26, 0.3);
    filter: drop-shadow(0 0 10px rgba(216, 19, 26, 0.2));
    transition: transform 0.1s linear;
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 25px solid #d8131a;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Responsive */
@media (max-width: 480px) {
    .wheel-wrapper {
        width: 260px;
        height: 260px;
    }

    .giveaway-wheel {
        width: 240px;
        height: 240px;
    }

    .wheel-pointer {
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-top: 20px solid #d8131a;
        top: -12px;
    }
}
    text-align: center;
}

.result-icon {
    font-size: 48px;
    margin-bottom: 16px;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.result-card h2 {
    font-size: 24px;
    margin: 0 0 8px;
}

.result-name {
    font-size: 18px;
    color: #d8131a;
    font-weight: 600;
    margin: 0 0 20px;
}

.score-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.score-item {
    text-align: center;
}

.score-number {
    font-size: 28px;
    font-weight: 700;
    color: #d8131a;
    margin-bottom: 4px;
}

.score-label {
    font-size: 12px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-message {
    font-size: 18px;
    font-weight: 600;
    color: #d8131a;
    margin: 20px 0 12px;
}

.result-instagram {
    font-size: 14px;
    color: #cccccc;
    margin: 0 0 24px;
}

.result-card .btn {
    margin-top: 8px;
}

/* Entries Page Specific */
.entries-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.stat-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #d8131a;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999999;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.search-box {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    background-color: #0f0f0f;
    color: #ffffff;
    font-size: 15px;
}

.search-box::placeholder {
    color: #666666;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    background-color: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background-color: #d8131a;
    border-color: #d8131a;
}

.table-wrapper {
    overflow-x: auto;
}

.entries-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.entries-table thead {
    background-color: #1a1a1a;
}

.entries-table th {
    padding: 12px 8px;
    text-align: right;
    font-weight: 600;
    color: #d8131a;
    border-bottom: 1px solid #2a2a2a;
}

.entries-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #2a2a2a;
}

.entries-table tbody tr:hover {
    background-color: #151515;
}

.rank-number {
    background-color: #d8131a;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #999999;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }

    .header h1 {
        font-size: 24px;
    }

    .card {
        padding: 16px;
        border-radius: 10px;
    }

    .btn-large {
        padding: 12px 16px;
        font-size: 15px;
    }

    .question-text {
        gap: 10px;
    }

    .question-number {
        min-width: 24px;
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .question-counter {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .quiz-navigation {
        gap: 8px;
        flex-wrap: wrap;
    }

    .quiz-navigation .btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 12px;
        font-size: 14px;
    }

    .score-display {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .score-number {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .sort-btn {
        width: 100%;
    }

    .entries-table {
        font-size: 12px;
    }

    .entries-table th,
    .entries-table td {
        padding: 8px 4px;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sort-buttons {
        gap: 12px;
    }

    .sort-btn {
        flex: 0 1 auto;
    }

    .quiz-navigation {
        gap: 16px;
    }

    .quiz-navigation .btn {
        flex: 0 1 auto;
    }
}
