/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --pink: #bd22bd;
    --pink-dark: #410330;
    --pink-light: #b450a9;
    --gold: #ffc850;
    --dark: #0e0e14;
    --dark-2: #16161f;
    --dark-3: #1d1d2b;
    --dark-card: #1a1a27;
    --white: #ffffff;
    --gray-100: #f5f5f8;
    --gray-200: #e8e8ee;
    --gray-400: #9999aa;
    --gray-600: #555566;

    --font: 'Noto Sans', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.25);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
    --shadow-pink: 0 8px 32px rgba(240,40,110,0.35);

    --transition: 0.25s ease;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background: var(--dark);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* =============================================
   Layout
   ============================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: 96px 0;
}

.section-dark {
    background: var(--dark-2);
}

.section-pink {
    background: linear-gradient(135deg, var(--pink) 0%, #c81e58 100%);
}

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

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4 {
    line-height: 1.15;
    font-weight: 900;
}

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
}

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

.highlight {
    color: var(--pink);
    position: relative;
}

/* =============================================
   Buttons
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.btn-primary {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    box-shadow: var(--shadow-pink);
}

.btn-primary:hover {
    background: var(--pink-dark);
    border-color: var(--pink-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(240,40,110,0.5);
}

.btn-secondary {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.btn-secondary:hover {
    background: #ffb820;
    border-color: #ffb820;
    transform: translateY(-2px);
}

.btn-bingo {
    background: #3b82f6;
    color: var(--white);
    border-color: #3b82f6;
    box-shadow: 0 8px 32px rgba(59,130,246,0.35);
}

.btn-bingo:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(37,99,235,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-ghost:hover {
    color: var(--gold);
}

.cards-table th.prompt-col,
.cards-table td.prompt-col {
    width: 260px;
    max-width: 260px;
}

.cards-table td.prompt-col {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cards-table td.actions-col {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cards-table td.actions-col form {
    display: inline;
    margin: 0;
}

@media (max-width: 720px) {
    .cards-table td.actions-col {
        flex-wrap: wrap;
        white-space: normal;
    }

    /* Force the second action (Delete form) onto the next line on small screens. */
    .cards-table td.actions-col form {
        flex-basis: 100%;
    }
}

/* =============================================
   Navigation
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(14,14,20,0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar {
    padding: 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Peralta', serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, var(--pink-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-400);
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.07);
}

.nav-cta {
    margin-left: 8px;
    padding: 10px 22px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--dark);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--pink);
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gold);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #6c2bd9;
    top: 40%;
    left: 30%;
    opacity: 0.08;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: 80vh;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 20px;
    padding: 6px 16px;
    background: rgba(240,40,110,0.12);
    border-radius: var(--radius-full);
    border: 1px solid rgba(240,40,110,0.25);
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.font-peralta {
    font-family: 'Peralta', serif;
}

.hero-description {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
}

.badge {
    display: flex;
    flex-direction: column;
}

.badge-number {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}

.badge-label {
    font-size: 12px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.12);
}

/* Hero Game Cards Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card-stack {
    position: relative;
    width: 320px;
    height: 320px;
}

.game-card {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition);
}

.card-1 {
    top: 30px;
    right: 0;
    transform: rotate(12deg);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,0.08);
    animation: float-1 4s ease-in-out infinite;
}

.card-2 {
    top: 15px;
    right: 30px;
    transform: rotate(5deg);
    background: linear-gradient(135deg, #1e1e35 0%, #1a1a30 100%);
    border: 1px solid rgba(255,255,255,0.08);
    animation: float-2 4s ease-in-out infinite;
}

.card-front {
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--pink) 0%, #c81e58 60%, #8b0a3a 100%);
    border: none;
    animation: float-3 4s ease-in-out infinite;
    z-index: 2;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 12px;
}

.card-year {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
}

.card-qr {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.card-front-inner {
    gap: 8px;
}

.card-note {
    font-size: 36px;
    margin-bottom: 4px;
}

.card-logo {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--white);
    text-align: center;
}

.card-tagline {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.card-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
}

.wave-bar {
    width: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    animation: wave-pulse 1.5s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.3s; }
.wave-bar:nth-child(8) { animation-delay: 0.1s; }
.wave-bar:nth-child(9) { animation-delay: 0.4s; }
.wave-bar:nth-child(10) { animation-delay: 0.2s; }

@keyframes wave-pulse {
    from { opacity: 0.4; transform: scaleY(0.8); }
    to { opacity: 1; transform: scaleY(1.2); }
}

@keyframes float-1 {
    0%, 100% { transform: rotate(12deg) translateY(0); }
    50% { transform: rotate(12deg) translateY(-10px); }
}

@keyframes float-2 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-7px); }
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gray-600);
    border-bottom: 2px solid var(--gray-600);
    transform: rotate(45deg);
    animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
    50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* =============================================
   How to Play
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: transform var(--transition), border-color var(--transition);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(240,40,110,0.3);
}

.step-number {
    font-size: 60px;
    font-weight: 900;
    line-height: 1;
    color: rgba(240,40,110,0.12);
    position: absolute;
    top: 24px;
    right: 24px;
}

.step-icon {
    color: var(--pink);
    margin-bottom: 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.step-description {
    color: var(--gray-400);
    line-height: 1.7;
}

.how-to-cta {
    text-align: center;
    margin-top: 56px;
}

/* =============================================
   Product Section
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.product-description {
    color: var(--gray-400);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
}

.product-features {
    list-style: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-200);
    font-size: 15px;
}

.product-features li svg {
    color: var(--pink);
    flex-shrink: 0;
}

.product-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Product Box Visual */
.product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.product-box {
    width: 220px;
    height: 280px;
    position: relative;
    transform: perspective(800px) rotateY(-15deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.box-face {
    position: absolute;
    border-radius: var(--radius-md);
}

.box-top {
    width: 220px;
    height: 280px;
    background: linear-gradient(135deg, var(--pink) 0%, #a0154a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 20px 60px rgba(240,40,110,0.4), 0 4px 16px rgba(0,0,0,0.3);
}

.box-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--white);
}

.box-subtitle {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.box-side {
    width: 40px;
    height: 280px;
    background: linear-gradient(135deg, #a0154a 0%, #700d33 100%);
    right: -38px;
    top: 4px;
    transform: skewY(-5deg);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.box-side-cards {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-card {
    width: 28px;
    height: 18px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}

/* =============================================
   Testimonials
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform var(--transition), border-color var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,200,80,0.2);
}

.testimonial-stars {
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink) 0%, #8b0a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.author-name {
    font-weight: 700;
    color: var(--white);
}

/* =============================================
   Download CTA
   ============================================= */
.download-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(30px, 4vw, 48px);
    margin-bottom: 16px;
}

.download-description {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
}

.store-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    padding: 14px 24px;
    transition: all var(--transition);
    backdrop-filter: blur(8px);
}

.store-btn:hover {
    background: rgba(0,0,0,0.5);
    border-color: var(--white);
    transform: translateY(-3px);
}

.store-btn-text {
    display: flex;
    flex-direction: column;
}

.store-btn-label {
    font-size: 11px;
    opacity: 0.7;
}

.store-btn-name {
    font-size: 16px;
    font-weight: 700;
}

/* =============================================
   Page Hero (inner pages)
   ============================================= */
.page-hero {
    padding: 80px 0 64px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.page-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray-400);
}

/* =============================================
   Rules Page
   ============================================= */
.rules-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rule-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 48px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.rule-block:last-child {
    border-bottom: none;
}

.rule-icon {
    color: var(--pink);
    padding-top: 4px;
}

.rule-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.rule-content p {
    color: var(--gray-400);
    line-height: 1.7;
}

.rule-list {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 16px;
}

.rule-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.rule-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--pink);
}

.rule-list.ordered {
    counter-reset: rule-counter;
}

.rule-list.ordered li {
    counter-increment: rule-counter;
    padding-left: 28px;
}

.rule-list.ordered li::before {
    content: counter(rule-counter) '.';
    font-weight: 700;
    color: var(--pink);
}

.rules-cta {
    text-align: center;
}

.rules-cta h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.rules-cta p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   FAQ Page
   ============================================= */
.faq-container {
    max-width: 720px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 64px;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    color: var(--white);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--pink);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray-400);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--pink);
}

.faq-item.open .faq-question {
    color: var(--pink);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--gray-400);
    line-height: 1.7;
}

.faq-contact {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.faq-contact h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.faq-contact p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: var(--dark-2);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 260px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-nav h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--pink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: var(--gray-600);
}

.footer-tag {
    color: var(--pink);
    font-weight: 700;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: 2;
        margin-top: 12px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .product-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .create-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--dark-2);
        border-bottom: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .rule-block {
        grid-template-columns: 48px 1fr;
        gap: 20px;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .game-card-stack {
        transform: scale(0.85);
    }

    .hero-title {
        font-size: 36px;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* =============================================
   Login Page
   ============================================= */
.login-section {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 64px 0;
    background: var(--dark);
}

.login-container {
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    display: block;
    font-size: 28px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--gray-400);
    font-size: 15px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 24px;
}

.alert-error {
    background: rgba(240,40,110,0.12);
    border: 1px solid rgba(240,40,110,0.3);
    color: #ff7aaa;
}

.alert-info {
    background: rgba(255,200,80,0.1);
    border: 1px solid rgba(255,200,80,0.25);
    color: var(--gold);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-400);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font);
    font-size: 15px;
    transition: border-color var(--transition), background var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-600);
}

.form-input:focus {
    border-color: var(--pink);
    background: rgba(240,40,110,0.05);
}

.input-wrapper {
    position: relative;
}

.input-wrapper .form-input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-600);
    padding: 4px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
}

.toggle-password:hover {
    color: var(--gray-400);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--gray-400);
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--pink);
    border-color: var(--pink);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
    margin-top: 4px;
}

/* Nav user indicator */
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-username {
    font-size: 13px;
    color: var(--gray-400);
    font-weight: 600;
}

.btn-logout {
    padding: 8px 18px;
    font-size: 13px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--gray-400);
    border-radius: var(--radius-full);
    transition: all var(--transition);
}

.btn-logout:hover {
    border-color: var(--pink);
    color: var(--pink);
}

/* =============================================
   Create Page
   ============================================= */
.create-section {
    min-height: 60vh;
}

.create-container {
    max-width: 1100px;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.create-actions {
    display: flex;
    gap: 16px;
}

.create-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: start;
}

.create-info {
    text-align: left;
}

.create-info .section-title {
    margin-bottom: 20px;
}

.create-panel {
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
}

/* =============================================
   Create Page - Loading & Result States
   ============================================= */
.loading-state,
.result-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 0;
    gap: 16px;
}

.loading-gif {
    width: min(360px, 100%);
    max-height: 220px;
    object-fit: contain;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

/* Animated rings */
.loader-rings {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 8px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1.4s linear infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--pink);
    animation-duration: 1.4s;
}

.loader-ring:nth-child(2) {
    inset: 14px;
    border-top-color: var(--gold);
    animation-duration: 1.0s;
    animation-direction: reverse;
}

.loader-ring:nth-child(3) {
    inset: 28px;
    border-top-color: var(--pink-light);
    animation-duration: 0.7s;
}

.loader-note {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: pulse-note 1.4s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse-note {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

.loader-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.loader-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: -8px;
}

.loader-progress {
    width: 100%;
    max-width: 360px;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-top: 8px;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--pink), var(--gold));
    border-radius: var(--radius-full);
    transition: width 0.3s ease;
}

/* Result */
.result-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), #8b0a3a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: var(--shadow-pink);
    animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 8px;
}

@keyframes pop-in {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.result-title {
    font-size: 32px;
    font-weight: 900;
}

.result-text {
    color: var(--gray-400);
    font-size: 15px;
    max-width: 480px;
    margin-bottom: 8px;
}

.hidden {
    display: none !important;
}

.status-popup {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.status-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.status-popup-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 18vh auto 0;
    background: var(--dark-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.status-popup-card h3 {
    margin-bottom: 12px;
}

.status-popup-card p {
    color: var(--gray-200);
    margin-bottom: 18px;
}
