:root {
    --bg: #e0f2ff;
    --bg-accent: #b6e3ff;
    --bg-warm: #fff3d6;
    --bg-glow-1: rgba(56, 189, 248, 0.35);
    --bg-glow-2: rgba(34, 197, 94, 0.28);
    --bg-glow-3: rgba(251, 191, 36, 0.25);
    --card: #ffffff;
    --card-border: #1f2a44;
    --text: #0f172a;
    --muted: #475569;
    --accent: #38bdf8;
    --accent-strong: #0284c7;
    --blue: #2563eb;
    --danger: #ef4444;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow: 0 18px 0 rgba(31, 42, 68, 0.18);
    --shadow-soft: 0 24px 40px rgba(15, 23, 42, 0.18);
    --shadow-glow: 0 24px 60px rgba(56, 189, 248, 0.22);
    --font-display: "Luckiest Guy", "Nunito", sans-serif;
    --font-body: "Nunito", "Luckiest Guy", sans-serif;
}

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

html,
body {
    height: 100%;
}

.lang-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #111827;
    border-radius: 999px;
    padding: 6px 10px;
    box-shadow: 0 6px 0 rgba(17, 24, 39, 0.18);
}

.lang-button {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.lang-select {
    border: none;
    background: transparent;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-body);
    cursor: pointer;
    outline: none;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(1200px 800px at 8% -10%, var(--bg-glow-1), transparent 60%),
        radial-gradient(900px 600px at 92% 0%, var(--bg-glow-2), transparent 55%),
        radial-gradient(700px 500px at 50% 110%, var(--bg-glow-3), transparent 55%),
        linear-gradient(130deg, #ffffff 0%, var(--bg) 42%, var(--bg-accent) 72%, var(--bg-warm) 100%);
    background-size: 180% 180%;
    animation: bg-shift 18s ease-in-out infinite;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.35;
    animation: grain-drift 22s linear infinite;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    background: conic-gradient(from 180deg at 50% 50%, rgba(56, 189, 248, 0.12), rgba(34, 197, 94, 0.12), rgba(251, 191, 36, 0.1), rgba(56, 189, 248, 0.12));
    filter: blur(80px);
    opacity: 0.45;
    animation: aurora-spin 26s linear infinite;
    z-index: 0;
}

img {
    max-width: 100%;
    display: block;
}

.main-container {
    min-height: 100vh;
    padding: 48px 18px 90px;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.hero {
    background: #ffffff;
    border: 4px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.2), transparent 60%),
        radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 60%);
    opacity: 0.7;
    filter: blur(18px);
}

.hero::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -60%;
    width: 60%;
    height: 220%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateX(-80%);
    animation: hero-shimmer 7s ease-in-out infinite;
}

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

.claim-header {
    max-width: 900px;
    margin: 24px auto 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
}

.claim-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.claim-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.claim-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.section-logo {
    width: clamp(90px, 18vw, 150px);
    margin: 0 auto 10px;
    border-radius: 20px;
    border: 3px solid #111827;
    box-shadow: 0 8px 0 rgba(17, 24, 39, 0.2);
    animation: float-bob 6s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    letter-spacing: 0.02em;
}

.logo-line-1 {
    color: var(--text);
    display: block;
}

.logo-line-2 {
    color: var(--blue);
    text-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
    display: block;
}

.section-subtitle {
    margin-top: 10px;
    font-size: 1rem;
    color: var(--muted);
}

.site-footer {
    margin-top: 36px;
    padding: 18px 0 12px;
}

.footer-keywords {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.section-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.meta-pill {
    background: #e0f2fe;
    color: #0c4a6e;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid #111827;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    border: 3px solid #0f172a;
    box-shadow: 0 8px 0 rgba(15, 42, 68, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 60%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: scale(1);
}

.hero-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.social-proof {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 2px solid #111827;
    font-size: 0.85rem;
    color: var(--muted);
}

.social-proof .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-dot 1.8s ease-in-out infinite;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    perspective: 1200px;
}

.item-card {
    background: var(--card);
    border: 3px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.item-card::after {
    content: "";
    position: absolute;
    inset: -20%;
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.15), transparent 50%, rgba(34, 197, 94, 0.2));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.item-card:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: var(--shadow-glow);
}

.item-card:hover::after {
    opacity: 1;
}

.item-header {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.item-image {
    background: #e0f2fe;
    border-radius: var(--radius-md);
    padding: 12px;
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 2px solid #111827;
    position: relative;
    overflow: hidden;
}

.item-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.item-image img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.item-card:hover .item-image img {
    transform: translateY(-4px) scale(1.03);
}

.claim-preview {
    background: #e0f2fe;
    border-radius: var(--radius-md);
    padding: 18px;
    border: 2px solid #111827;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.claim-preview img {
    width: 100%;
    height: 160px;
    object-fit: contain;
}

.claim-steps {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.claim-steps .step {
    background: #fff7d6;
    border: 2px solid #111827;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.item-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-display);
}

.btn-claim {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    border: 3px solid #0f172a;
    box-shadow: 0 8px 0 rgba(17, 24, 39, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(34, 197, 94, 0.35);
}

.btn-claim::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 60%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-claim:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn-submit {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, #22c55e, #16a34a, #34d399);
    background-size: 220% 220%;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border: 3px solid #0f172a;
    box-shadow: 0 12px 22px rgba(34, 197, 94, 0.28);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: gradient-flow 6s ease infinite;
}

.btn-submit::after {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 60%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(34, 197, 94, 0.4);
}

.btn-submit:hover::after {
    opacity: 1;
    transform: scale(1);
}

.btn-full {
    width: 100%;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 2000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 8, 16, 0.8);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border: 3px solid #111827;
    border-radius: var(--radius-lg);
    width: min(92vw, 460px);
    padding: 26px;
    box-shadow: var(--shadow);
    z-index: 1;
    text-align: center;
}

.simple-modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.simple-modal-note {
    color: var(--muted);
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid #111827;
    background: #e0f2fe;
    color: var(--text);
    padding: 12px 14px;
    font-size: 1rem;
    outline: none;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1.1rem;
}

.modal-footer {
    margin-top: 18px;
}

/* iOS Popup */
.ios-popup {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-popup-background {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.85);
}

.ios-popup-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border: 3px solid #111827;
    border-radius: var(--radius-lg);
    width: min(92vw, 420px);
    padding: 24px;
    text-align: center;
}

.ios-instruction-gif {
    width: 100%;
    border-radius: var(--radius-md);
    border: 2px solid #111827;
}

.ios-instruction-text h3 {
    font-family: var(--font-display);
    margin: 14px 0 8px;
}

.ios-instruction-text p {
    color: var(--muted);
}

/* Utility */
.animated-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-item-img {
    position: absolute;
    bottom: -30%;
    width: clamp(70px, 9vw, 130px);
    opacity: 0.28;
    filter: drop-shadow(0 12px 30px rgba(15, 23, 42, 0.25));
    animation: float-up var(--duration, 16s) linear infinite;
    animation-delay: var(--delay, 0s);
}

.bg-item-img img {
    width: 100%;
    height: auto;
    animation: spin-drift 10s ease-in-out infinite;
}

.bg-item-img.gaming {
    opacity: 0.4;
    filter: drop-shadow(0 16px 34px rgba(37, 99, 235, 0.35));
}

body.is-ready .item-card {
    animation: card-in 0.6s ease forwards;
    animation-delay: calc(var(--card-index, 1) * 0.08s);
}

body.is-ready .section-header {
    animation: fade-rise 0.7s ease forwards;
}

.items-grid .item-card:nth-child(1) { --card-index: 1; }
.items-grid .item-card:nth-child(2) { --card-index: 2; }
.items-grid .item-card:nth-child(3) { --card-index: 3; }
.items-grid .item-card:nth-child(4) { --card-index: 4; }
.items-grid .item-card:nth-child(5) { --card-index: 5; }
.items-grid .item-card:nth-child(6) { --card-index: 6; }
.items-grid .item-card:nth-child(7) { --card-index: 7; }
.items-grid .item-card:nth-child(8) { --card-index: 8; }
.items-grid .item-card:nth-child(9) { --card-index: 9; }
.items-grid .item-card:nth-child(10) { --card-index: 10; }
.items-grid .item-card:nth-child(11) { --card-index: 11; }
.items-grid .item-card:nth-child(12) { --card-index: 12; }

@keyframes bg-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes grain-drift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-2%, -1%, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes aurora-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes hero-shimmer {
    0% { transform: translateX(-80%); }
    60% { transform: translateX(120%); }
    100% { transform: translateX(120%); }
}

@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50% { transform: scale(1.35); box-shadow: 0 0 14px rgba(34, 197, 94, 0.9); }
}

@keyframes float-up {
    0% {
        transform: translate3d(0, 110vh, 0) rotate(0deg) scale(0.9);
        opacity: 0;
    }
    10% {
        opacity: 0.35;
    }
    100% {
        transform: translate3d(0, -130vh, 0) rotate(18deg) scale(1.05);
        opacity: 0;
    }
}

@keyframes spin-drift {
    0%, 100% { transform: rotate(-6deg); }
    50% { transform: rotate(6deg); }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    body::before,
    body::after,
    .animated-background {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .main-container {
        padding-top: 32px;
    }

    .claim-header {
        flex-direction: column;
        text-align: center;
    }

    .hero {
        padding: 16px;
    }

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

    .item-card {
        padding: 12px;
        gap: 10px;
    }

    .item-image {
        min-height: 100px;
    }

    .footer-keywords {
        display: none;
    }
}
