@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: #dc2626;
    --orange: #ea580c;
    --yellow: #facc15;
    --dark-red: #1c0606;
    --mid-red: #2d1010;
    --cream: #fef2f2;
    --text-main: #fef2f2;
    --text-sub: #fca5a5;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--dark-red);
    color: var(--text-main);
    line-height: 1.7;
}

.wheel-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(28, 6, 6, 0.97);
    z-index: 1000;
    padding: 1rem 2rem;
    border-bottom: 3px solid var(--red);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fortune-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-spinner {
    width: 50px;
    height: 50px;
    background: conic-gradient(var(--red), var(--orange), var(--yellow), var(--red));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-spinner::after {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--dark-red);
    border-radius: 50%;
}

.logo-text {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--yellow);
}

.spin-nav {
    display: flex;
    gap: 2.5rem;
}

.spin-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.spin-nav a:hover {
    color: var(--yellow);
}

.fortune-menu-btn {
    display: none;
    cursor: pointer;
    padding: 8px;
}

.fortune-menu-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--yellow);
    margin: 5px 0;
}

.spin-drawer {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: var(--mid-red);
    padding: 1rem;
    border-bottom: 2px solid var(--red);
}

.spin-drawer.open {
    display: block;
}

.spin-drawer a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    padding: 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.fortune-page {
    padding-top: 90px;
}

.fortune-hero {
    background: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--yellow) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
}

.fortune-hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.fortune-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fortune-tag {
    background: rgba(0, 0, 0, 0.25);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
}

.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.wheel-container {
    background: var(--mid-red);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 3px solid var(--red);
}

.wheel-game {
    width: 100%;
    height: 580px;
    border: none;
    border-radius: 12px;
}

.prize-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.prize-card {
    background: var(--mid-red);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--red);
    transition: border-color 0.3s;
}

.prize-card:hover {
    border-color: var(--yellow);
}

.prize-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.prize-card h3 {
    color: var(--orange);
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.prize-card p {
    color: var(--text-sub);
}

.info-banner {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.2), rgba(234, 88, 12, 0.1));
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.info-banner h2 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-weight: 800;
}

.info-banner p {
    color: var(--text-sub);
}

.bonus-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.bonus-item {
    background: var(--mid-red);
    padding: 1.25rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.bonus-icon {
    color: var(--yellow);
    font-size: 1.3rem;
}

.wheel-footer {
    background: var(--mid-red);
    padding: 3rem 2rem;
    border-top: 4px solid var(--red);
}

.footer-center {
    text-align: center;
}

.help-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.help-nav a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
}

.help-nav a:hover {
    text-decoration: underline;
}

.footer-note {
    color: var(--text-sub);
    font-size: 0.9rem;
}

.spin-gate {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.gate-box {
    background: var(--mid-red);
    border: 3px solid var(--red);
    border-radius: 20px;
    padding: 3rem;
    max-width: 480px;
    margin: 1rem;
    text-align: center;
}

.gate-wheel {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.gate-box h2 {
    color: var(--yellow);
    margin-bottom: 1rem;
    font-weight: 800;
}

.gate-box p {
    color: var(--text-sub);
    margin-bottom: 2rem;
}

.gate-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.gate-btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.gate-btn:hover {
    transform: scale(1.05);
}

.gate-btn.spin {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: white;
}

.gate-btn.stop {
    background: transparent;
    border: 2px solid var(--red);
    color: var(--red);
}

.page-banner {
    background: linear-gradient(135deg, var(--red), var(--orange));
    padding: 4rem 2rem;
    text-align: center;
}

.page-banner h1 {
    font-size: 2.5rem;
    font-weight: 900;
}

.content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.content-card {
    background: var(--mid-red);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--yellow);
}

.content-card h2 {
    color: var(--orange);
    margin-bottom: 1rem;
    font-weight: 800;
}

.content-card p {
    color: var(--text-sub);
    margin-bottom: 0.75rem;
}

.content-card ul {
    color: var(--text-sub);
    margin: 1rem 0 1rem 1.5rem;
}

.content-card li {
    margin-bottom: 0.4rem;
}

@media (max-width: 1024px) {
    .prize-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bonus-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .spin-nav {
        display: none;
    }

    .fortune-menu-btn {
        display: block;
    }

    .fortune-hero h1 {
        font-size: 2rem;
    }

    .prize-grid {
        grid-template-columns: 1fr;
    }

    .bonus-list {
        grid-template-columns: 1fr;
    }

    .wheel-game {
        height: 400px;
    }

    .gate-actions {
        flex-direction: column;
    }
}
