/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1558b0;
    --accent: #00c9a7;
    --accent-light: #b2f5ea;
    --purple: #7c3aed;
    --orange: #ff8c00;
    --rose: #f43f5e;
    --sky: #e0f2fe;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
    --radius: 1rem;
    --max-w: 960px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0,201,167,0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,140,0,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.logo {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
}

.logo-pop {
    color: var(--accent);
}

.tagline {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 1.2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0,201,167,0.35);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,201,167,0.45);
}

/* Hero BMC button — top-right yellow */
.hero-bmc {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10;
    display: inline-block;
    background: #ffdd00;
    color: #000;
    text-decoration: none;
    font-family: 'Cookie', cursive, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 2rem;
    border: 2px solid #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.hero-bmc:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.hero-bmc:active {
    transform: translateY(0);
}

/* Wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

.hero-wave path {
    fill: var(--bg);
}

/* ===== CONTENT ===== */
.content {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.section-sub {
    font-size: 1rem;
    color: var(--text-muted);
}

.phonetic {
    display: inline-block;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.8;
}

/* ===== CARD GRID ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem 1.8rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Badge */
.card-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
}

.badge--soon {
    background: var(--text-muted);
}

/* Playable card */
.card--play {
    border: 2px solid var(--accent);
    cursor: pointer;
}

.card--play:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--play::after {
    content: '▶  Play';
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
}

/* Coming-soon card */
.card--soon {
    opacity: 0.65;
    border: 2px dashed #cbd5e1;
}

/* ===== ABOUT GRID ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 1.2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--primary);
}

.about-emoji {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.section-coming {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== BUFFALO OVERVIEW ===== */
.buffalo-overview {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.buffalo-img-wrap {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
}

.buffalo-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buffalo-intro p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.8rem;
}

.wiki-link {
    font-size: 0.95rem;
    font-weight: 600;
}

.wiki-link a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.wiki-link a:hover {
    color: var(--primary-dark);
}

.third-party-note {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ===== ABOUT ACCORDION ===== */
.about-accordion {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.about-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    border: none;
    background: var(--surface);
    transition: background 0.2s;
}

.about-accordion-toggle::-webkit-details-marker {
    display: none;
}

.about-accordion-toggle::after {
    content: '\25B8';
    font-size: 1.3rem;
    transition: transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.about-accordion[open] .about-accordion-toggle::after {
    transform: rotate(90deg);
}

.about-accordion-toggle:hover {
    background: var(--sky);
}

.about-accordion[open] .about-accordion-toggle {
    border-bottom: 1px solid #e2e8f0;
}

.about-accordion-body {
    padding: 1.5rem;
}

.about-accordion-body p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.about-accordion-body p:last-child {
    margin-bottom: 0;
}

.about-accordion-profile {
    float: left;
    margin: 0 1.5rem 1rem 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sky);
    box-shadow: var(--shadow-sm);
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== SUPPORT / BMC ===== */
.bmc-section {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
    border-top: 3px solid #ffdd00;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.bmc-content {
    max-width: 480px;
    margin: 0 auto;
}

.bmc-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.bmc-message {
    font-size: 1.05rem;
    color: #5c4813;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.bmc-btn {
    display: inline-block;
    background: #ffdd00;
    color: #000;
    font-family: 'Cookie', cursive, 'Segoe UI', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 0.65rem 1.8rem;
    border-radius: 2rem;
    text-decoration: none;
    border: 2px solid #000;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.bmc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.bmc-btn:active {
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--text);
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.3rem;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .logo { font-size: 2rem; }
    .hero { padding: 2.5rem 1rem 3.5rem; }
    .hero-logo { width: 100px; height: 100px; }
    .hero-bmc {
        position: static;
        display: block;
        width: fit-content;
        margin: 0 auto 1rem;
    }
    .section-header h2 { font-size: 1.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }

    .buffalo-overview {
        flex-direction: column;
        text-align: center;
    }
    .buffalo-img-wrap {
        width: 160px;
        height: 160px;
    }

    .about-accordion-profile {
        float: none;
        margin: 0 auto 1rem;
    }
}
