/* SuperBear.site homepage — game-world theme (sky, grass, path tan, wood brown) */
:root {
    --sky-top: #8fd4f0;
    --sky-mid: #6ec5e8;
    --grass-light: #7bc950;
    --grass-mid: #5aad3c;
    --grass-deep: #3d8f3a;
    --path-cream: #fff8eb;
    --path-tan: #f0e0c8;
    --wood-dark: #3e2f23;
    --wood-mid: #5c4533;
    --text-main: #2a2118;
    --text-soft: #4a3f34;
    --text-on-dark: #fff9f0;
    --link: #2e6b2e;
    --link-hover: #1b4d1b;
    --accent-gold: #ffb300;
    --accent-gold-deep: #e65100;
    --card-bg: rgba(255, 250, 240, 0.96);
    --card-border: rgba(92, 69, 51, 0.12);
    --shadow: 0 16px 40px rgba(42, 33, 24, 0.18);
    --shadow-soft: 0 8px 24px rgba(42, 33, 24, 0.12);
    --radius: 20px;
    --max: 1080px;
}

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

html {
    scroll-behavior: smooth;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    padding: 10px 16px;
    background: var(--wood-dark);
    color: var(--text-on-dark);
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
}

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--grass-mid);
    background-image:
        linear-gradient(
            180deg,
            rgba(143, 212, 240, 0.88) 0%,
            rgba(110, 197, 232, 0.75) 18%,
            rgba(123, 201, 80, 0.82) 48%,
            rgba(61, 143, 58, 0.9) 100%
        ),
        url("/assets/game-world-hero.png");
    background-size: cover, cover;
    background-position: center top, center center;
    background-attachment: fixed, fixed;
    min-height: 100vh;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--link);
    font-weight: 600;
}

a:hover {
    color: var(--link-hover);
}

img {
    max-width: 100%;
    height: auto;
}

/* —— Header —— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(62, 47, 35, 0.88);
    border-bottom: 3px solid rgba(255, 179, 0, 0.35);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-on-dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo:hover {
    color: #fff;
}

.logo img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.logo span {
    color: #a5f57a;
}

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

.nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(255, 249, 240, 0.85);
}

.nav a:hover {
    color: #fff;
}

.nav-play {
    color: #ffe082 !important;
}

.nav-play:hover {
    color: #fff59d !important;
    text-decoration: underline;
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    min-height: 54px;
    border: 0;
    border-radius: 18px;
    font-weight: 900;
    font-size: 1.12rem;
    line-height: 1.2;
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
    background: linear-gradient(180deg, #ffeb3b 0%, #ffc107 35%, #ff9800 70%, #f57c00 100%);
    color: #1a1208;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    box-shadow:
        0 8px 0 #bf360c,
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(255, 193, 7, 0.45);
    border: 3px solid #fff;
    outline: 2px solid rgba(191, 54, 12, 0.5);
    outline-offset: 0;
}

.btn-primary:hover {
    filter: brightness(1.08);
    color: #1a1208;
}

.btn-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f5e6c8 100%);
    color: var(--wood-dark);
    box-shadow:
        0 6px 0 #6d4c2c,
        var(--shadow-soft);
    border: 3px solid #6d4c2c;
    font-weight: 800;
}

.btn-secondary:hover {
    color: var(--wood-dark);
    background: #fff;
}

/* Play CTAs — high visibility */
@keyframes play-pulse {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 8px 0 #bf360c,
            0 14px 32px rgba(0, 0, 0, 0.4),
            0 0 28px rgba(255, 193, 7, 0.55),
            0 0 0 0 rgba(255, 235, 59, 0.65);
    }
    50% {
        transform: translateY(-5px) scale(1.04);
        box-shadow:
            0 8px 0 #bf360c,
            0 22px 44px rgba(0, 0, 0, 0.45),
            0 0 40px rgba(255, 152, 0, 0.75),
            0 0 0 16px rgba(255, 235, 59, 0);
    }
}

@keyframes play-shine {
    0% {
        background-position: 130% center;
    }
    100% {
        background-position: -30% center;
    }
}

.btn-play {
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: play-pulse 2s ease-in-out infinite;
}

.btn-play::before {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35em;
    height: 1.35em;
    margin-right: 2px;
    font-size: 0.75em;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-play::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 70%
    );
    background-size: 220% 100%;
    animation: play-shine 2.8s ease-in-out infinite;
    pointer-events: none;
}

.btn-play:hover {
    transform: translateY(-4px) scale(1.04);
    animation: none;
    box-shadow:
        0 10px 0 #bf360c,
        0 20px 44px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(255, 193, 7, 0.7) !important;
}

.btn-play:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: 0 3px 0 #bf360c !important;
}

/* Hero + preview — full-width loud CTAs */
.hero-card .btn-play,
.hero-preview .btn-play,
.section-cta .btn-play {
    width: 100%;
    max-width: 100%;
    padding: 18px 28px;
    min-height: 58px;
    font-size: clamp(1.05rem, 2.8vw, 1.25rem);
}

/* Header Play now — compact but still pops */
.nav .btn-play {
    padding: 12px 24px;
    min-height: 46px;
    font-size: 1rem;
    border-width: 2px;
    box-shadow:
        0 5px 0 #bf360c,
        0 8px 20px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(255, 193, 7, 0.5);
}

.nav .btn-play::before {
    width: 1.2em;
    height: 1.2em;
}

.btn-play-soft {
    animation: play-pulse 2.2s ease-in-out infinite;
    background: linear-gradient(180deg, #c8e6c9 0%, #66bb6a 45%, #43a047 100%);
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    border: 3px solid #fff;
    outline: 2px solid #2e7d32;
    box-shadow:
        0 8px 0 #1b5e20,
        0 12px 28px rgba(0, 0, 0, 0.3),
        0 0 22px rgba(102, 187, 106, 0.55);
}

.btn-play-soft::before {
    background: rgba(255, 255, 255, 0.25);
}

.btn-play-soft:hover {
    color: #fff !important;
    box-shadow:
        0 10px 0 #1b5e20,
        0 18px 36px rgba(0, 0, 0, 0.35),
        0 0 32px rgba(102, 187, 106, 0.7) !important;
}

@media (prefers-reduced-motion: reduce) {
    .btn-play {
        animation: none;
    }

    .btn-play::after {
        animation: none;
    }
}

main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 20px 48px;
}

/* —— Hero —— */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 40px;
}

.hero-card,
.hero-preview,
.card,
.faq details {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    box-shadow: var(--shadow);
}

.hero-card {
    border-radius: 24px;
    padding: clamp(28px, 5vw, 44px);
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--wood-dark);
}

.hero-lead {
    margin: 0 0 22px;
    font-size: 1.08rem;
    color: var(--text-soft);
    font-weight: 500;
}

.hero-lead strong {
    color: var(--text-main);
    font-weight: 700;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.badge {
    background: rgba(90, 173, 60, 0.15);
    color: #2e5c28;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid rgba(61, 143, 58, 0.35);
}

.hero-preview {
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-preview-image {
    width: 100%;
    max-width: 280px;
    border-radius: 18px;
    margin: 0 auto 16px;
    display: block;
    border: 3px solid rgba(92, 69, 51, 0.2);
    box-shadow: var(--shadow);
}

.hero-preview .preview-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin: 0 0 10px;
    color: var(--wood-dark);
}

.hero-preview p {
    margin: 0 0 18px;
    color: var(--text-soft);
    font-weight: 500;
    max-width: 32ch;
}

.hero-preview a:not(.btn) {
    color: var(--link);
}

/* —— Sections —— */
.section {
    margin-bottom: 36px;
}

.section h2 {
    margin: 0 0 18px;
    font-size: clamp(1.45rem, 3vw, 1.95rem);
    color: var(--text-on-dark);
    text-shadow:
        0 2px 4px rgba(42, 33, 24, 0.45),
        0 0 24px rgba(0, 0, 0, 0.2);
    font-weight: 800;
}

.section-cta {
    margin: 28px 0 0;
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    border-radius: var(--radius);
    padding: 22px 24px;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.12rem;
    color: var(--wood-dark);
    font-weight: 800;
}

.card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.98rem;
    font-weight: 500;
}

.card a {
    color: var(--link);
}

/* —— FAQ —— */
.faq details {
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--wood-dark);
    font-size: 1rem;
}

.faq p {
    margin: 12px 0 0;
    color: var(--text-soft);
    font-weight: 500;
}

.faq code {
    background: rgba(90, 173, 60, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--wood-mid);
}

/* —— Footer —— */
.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px 36px;
    font-size: 0.92rem;
    color: var(--text-on-dark);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.site-footer a {
    color: #ffe082;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer p {
    margin: 0 0 10px;
    font-weight: 500;
}

.disclaimer {
    opacity: 0.92;
    font-size: 0.84rem;
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    body {
        background-attachment: scroll, scroll;
    }

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}
