:root {
    --brand-primary: #C41E3A;
    --brand-primary-dark: #8F1428;
    --brand-secondary: #FFFFFF;
    --brand-highlight: #FFE3E8;
    --brand-gradient-start: #C41E3A;
    --brand-gradient-end: #5C0C1B;
    --text-main: #1F1F1F;
    --text-muted: #62626C;
    --border-soft: rgba(255, 255, 255, 0.25);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-strong: 0 30px 60px -25px rgba(34, 0, 7, 0.45);
    --shadow-soft: 0 12px 30px -12px rgba(34, 0, 7, 0.35);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-base: all 0.25s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.page-body {
    min-height: 100vh;
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 35%), linear-gradient(135deg, var(--brand-gradient-start) 0%, #d43a4f 30%, #1d0633 100%);
    position: relative;
    padding: 32px 0 60px;
}

.page-body::before,
.page-body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    z-index: -1;
    filter: blur(0);
    opacity: 0.35;
}

.page-body::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
}

.page-body::after {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

.container-box {
    background: var(--card-bg);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-strong);
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    position: relative;
    overflow: hidden;
}

.container-box::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.08);
    z-index: 0;
}

.container-box > * {
    position: relative;
    z-index: 1;
}

.form-header {
    text-align: center;
    margin-bottom: 32px;
}

.label-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.12);
    color: var(--brand-primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.title {
    font-weight: 700;
    font-size: 2.24rem;
    color: var(--brand-primary);
    margin-top: 18px;
    margin-bottom: 12px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.logo-wrapper {
    background: rgba(196, 30, 58, 0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.logo-wrapper img {
    max-width: 140px;
    height: auto;
}

.info-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(196, 30, 58, 0.12);
    color: var(--brand-primary-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

#alreadyPlayed,
#submitError {
    border-radius: var(--radius-sm);
    font-weight: 500;
}

#alreadyPlayed {
    border: 1px solid rgba(220, 53, 69, 0.25);
}

#submitError {
    border: 1px solid rgba(255, 193, 7, 0.35);
}

.form-section-title {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(196, 30, 58, 0.2);
    padding: 12px 16px;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: none;
}

.form-control:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.interest-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    margin-bottom: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.interest-card {
    position: relative;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(196, 30, 58, 0.2);
    background: rgba(255, 255, 255, 0.85);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-base);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
}

.interest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -20px rgba(34, 0, 7, 0.55);
}

.interest-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.interest-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(196, 30, 58, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--brand-secondary);
    background: transparent;
    transition: var(--transition-base);
    flex-shrink: 0;
    box-shadow: none;
}

.interest-text {
    flex: 1;
    font-weight: 600;
    color: var(--text-main);
    transition: var(--transition-base);
}

.interest-card input:checked + .interest-check {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.16);
}

.interest-card input:checked + .interest-check::after {
    content: "✔";
}

.interest-card input:checked ~ .interest-text {
    color: var(--brand-primary);
}

.interest-card input:focus-visible + .interest-check {
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.25);
}

.interest-card input:focus-visible ~ .interest-text {
    text-decoration: underline;
}

.cta-wrapper {
    margin-top: 28px;
    text-align: center;
}

.cta-button {
    background: linear-gradient(105deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--brand-secondary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 18px 32px -16px rgba(34, 0, 7, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover,
.cta-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px -16px rgba(34, 0, 7, 0.6);
    opacity: 0.95;
}

.cta-button:active {
    transform: translateY(0);
}

.helper-text {
    display: block;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feedback-panel {
    background: rgba(196, 30, 58, 0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 28px;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
    display: none;
}

.feedback-panel.is-visible {
    display: block;
}

.reward-box {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.95), rgba(196, 30, 58, 0.78));
    color: var(--brand-secondary);
    box-shadow: var(--shadow-soft);
    display: none;
}

.reward-box.is-visible {
    display: block;
}

.reward-box h3 {
    font-weight: 600;
    margin-bottom: 12px;
}

.reward-box h2 {
    font-weight: 700;
    margin: 0;
    font-size: 1.6rem;
}

.platform-section {
    margin-top: 64px;
}

.platform-header .label-badge.secondary {
    background: rgba(255, 255, 255, 0.18);
    color: var(--brand-secondary);
    backdrop-filter: blur(6px);
}

.platform-header {
    max-width: 580px;
    margin: 0 auto 32px;
}

.platform-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-secondary);
    margin-top: 14px;
}

.platform-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    margin-top: 12px;
}

.platform-grid {
    row-gap: 24px;
}

.platform-card {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: var(--transition-base);
}

.platform-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 44px -22px rgba(34, 0, 7, 0.4);
}

.platform-card-img {
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.4), rgba(196, 30, 58, 0.7));
}

.platform-card .card-body {
    padding: 22px 24px 20px;
}

.platform-card .card-footer {
    padding: 16px 24px 24px;
}

.platform-name {
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.platform-description {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.platform-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
    border-radius: 999px;
    padding: 10px 18px;
    background: transparent;
    transition: var(--transition-base);
}

.platform-link-btn:hover,
.platform-link-btn:focus {
    color: var(--brand-secondary);
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    text-decoration: none;
}

.platform-empty {
    color: var(--brand-secondary);
    font-weight: 500;
    margin-top: 16px;
}

.spinner-border {
    width: 3.2rem;
    height: 3.2rem;
    border-width: 0.35rem;
    color: var(--brand-primary);
}

.spinner-border.text-danger {
    color: var(--brand-primary);
}

.spinner-text {
    margin-top: 18px;
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 992px) {
    .container-box {
        padding: 40px 36px;
    }

    .title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .page-body {
        padding: 24px 0 48px;
    }

    .container-box {
        padding: 36px 24px;
    }

    .interest-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 1.64rem;
    }

    .subtitle {
        font-size: 0.98rem;
    }

    .logo-wrapper {
        padding: 12px;
    }

    .logo-wrapper img {
        max-width: 110px;
    }

    .container-box {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .interest-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .interest-card,
    .cta-button {
        transition: none;
    }
}