:root {
    --bg: #fff8ef;
    --bg-soft: #fff4e6;
    --bg-accent: #fff0f3;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --line: rgba(216, 157, 120, 0.18);
    --line-strong: rgba(216, 157, 120, 0.26);
    --text: #5f4334;
    --muted: #8b6d59;
    --title: #6f3d2f;
    --peach: #ffb48d;
    --coral: #ff8e88;
    --butter: #ffd979;
    --mint: #9ce6c0;
    --cream: #fff7df;
    --berry: #ea7cb5;
    --shadow: 0 24px 60px rgba(190, 124, 88, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 180, 141, 0.28), transparent 24%),
        radial-gradient(circle at 92% 10%, rgba(156, 230, 192, 0.24), transparent 22%),
        linear-gradient(180deg, #fffaf2 0%, #fff3ea 44%, #fff9f4 100%);
    line-height: 1.65;
    overflow-x: hidden;
}

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

button {
    font: inherit;
}

.container,
.nav-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(255, 248, 239, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.logo-badge {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--coral), var(--peach));
    color: #fff;
    font-family: 'Baloo 2', cursive;
    font-size: 1.2rem;
    box-shadow: 0 12px 24px rgba(255, 142, 136, 0.24);
}

.logo-wordmark {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 1.55rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-weight: 800;
    color: var(--muted);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--coral), var(--mint));
    transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--title);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 4px 0;
    border-radius: 999px;
    background: var(--title);
}

section {
    padding: 108px 0;
}

.eyebrow,
.card-kicker,
.publisher-kicker,
.game-kicker,
.policy-kicker {
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.eyebrow {
    color: #d67d64;
    margin-bottom: 16px;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    overflow: hidden;
}

.hero-glow,
.hero-pattern {
    position: absolute;
}

.hero-glow {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.55;
}

.hero-glow-a {
    top: 90px;
    left: -40px;
    background: radial-gradient(circle, rgba(255, 180, 141, 0.62), transparent 70%);
}

.hero-glow-b {
    right: -60px;
    bottom: 20px;
    background: radial-gradient(circle, rgba(156, 230, 192, 0.56), transparent 70%);
}

.hero-pattern {
    inset: 0;
    background-image:
        radial-gradient(circle at 15px 15px, rgba(255, 255, 255, 0.62) 2px, transparent 0),
        radial-gradient(circle at 55px 55px, rgba(255, 217, 121, 0.18) 3px, transparent 0);
    background-size: 70px 70px;
    opacity: 0.5;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), transparent 92%);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 430px);
    gap: 42px;
    align-items: center;
}

.hero-copy h1,
.section-heading h2,
.contact-copy h2,
.policy-hero h1 {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    line-height: 1.02;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.7rem);
    margin-bottom: 18px;
}

.hero-text,
.section-heading p:last-child,
.game-description,
.policy-lead,
.policy-meta,
.policy-card p,
.policy-card li {
    color: var(--muted);
}

.hero-actions,
.hero-points,
.game-actions,
.touch-controls,
.hero-pill-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions {
    margin-top: 30px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible,
.control-btn:hover,
.control-btn:focus-visible,
.tab-button:hover,
.tab-button:focus-visible,
.memory-card:hover,
.memory-card:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--peach));
    color: #fff;
    box-shadow: 0 18px 34px rgba(255, 142, 136, 0.24);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(255, 180, 141, 0.38);
    color: var(--title);
}

.hero-points {
    margin-top: 26px;
    list-style: none;
}

.hero-points li,
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: 0 10px 22px rgba(225, 164, 122, 0.12);
}

.hero-points i {
    color: #df8068;
}

.hero-card,
.publisher-note,
.game-panel,
.value-card,
.lineup-card,
.contact-card,
.policy-card {
    background: var(--surface);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 30px;
}

.card-kicker,
.publisher-kicker,
.game-kicker {
    color: #dd8463;
    margin-bottom: 12px;
}

.hero-card h2 {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 12px;
}

.mini-stats {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mini-stats div {
    padding: 16px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 247, 223, 0.9), rgba(255, 255, 255, 0.65));
    border: 1px solid var(--line);
}

.mini-stats strong {
    display: block;
    color: var(--title);
    font-size: 1.3rem;
}

.mini-stats span {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-pill-row {
    margin-top: 16px;
}

.hero-pill {
    color: var(--title);
    font-weight: 800;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 12px;
}

.arcade-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.arcade-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tab-list,
.publisher-note {
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
}

.tab-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tab-button {
    width: 100%;
    padding: 16px;
    text-align: left;
    border-radius: 20px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.58);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tab-button.active {
    background: linear-gradient(135deg, rgba(255, 180, 141, 0.36), rgba(255, 255, 255, 0.85));
    border-color: rgba(221, 132, 99, 0.24);
}

.tab-title {
    display: block;
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 1.25rem;
}

.tab-copy {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
}

.publisher-note h3 {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 1.6rem;
    line-height: 1.15;
    margin-bottom: 10px;
}

.game-panel {
    display: none;
    padding: 26px;
}

.game-panel.active {
    display: block;
}

.game-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 20px;
    align-items: start;
}

.game-header h3 {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 2rem;
}

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

.stat-card {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 247, 223, 0.9), rgba(255, 255, 255, 0.72));
    border: 1px solid var(--line);
}

.stat-card span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    margin-top: 4px;
    color: var(--title);
    font-size: 1.4rem;
}

.game-actions {
    margin: 20px 0 18px;
}

.bubble-board-wrap,
.memory-board-wrap,
.fruit-stage-wrap {
    position: relative;
    padding: 18px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 247, 223, 0.82), rgba(255, 255, 255, 0.6));
    border: 1px solid var(--line);
}

.bubble-board {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.78), transparent 18%),
        linear-gradient(180deg, #fff8ee 0%, #fff3f1 52%, #fff7df 100%);
}

.bubble-overlay {
    position: absolute;
    inset: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 248, 239, 0.7);
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.bubble-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.overlay-card {
    max-width: 320px;
    padding: 28px;
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.overlay-badge {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 180, 141, 0.22);
    color: #d67d64;
    margin-bottom: 12px;
}

.overlay-card h4 {
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: rgba(111, 61, 47, 0.72);
    font-weight: 900;
    user-select: none;
    box-shadow: inset 0 4px 12px rgba(255, 255, 255, 0.45), 0 10px 18px rgba(236, 149, 126, 0.18);
}

.bubble::after {
    content: '';
    position: absolute;
    top: 12%;
    left: 20%;
    width: 18%;
    height: 18%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.52);
}

.mini-instruction,
.fruit-status {
    margin-bottom: 14px;
    color: var(--muted);
    font-weight: 700;
}

.memory-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.memory-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 0;
    background: transparent;
    cursor: pointer;
    perspective: 1000px;
}

.memory-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.32s ease;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
    transform: rotateY(180deg);
}

.memory-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
    backface-visibility: hidden;
    font-size: 2rem;
}

.memory-front {
    background: linear-gradient(135deg, rgba(255, 180, 141, 0.8), rgba(255, 217, 121, 0.82));
    color: #fff;
}

.memory-back {
    transform: rotateY(180deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 247, 223, 0.95));
    color: var(--title);
    border: 1px solid rgba(216, 157, 120, 0.16);
}

#fruitCanvas {
    display: block;
    width: min(100%, 560px);
    max-width: 100%;
    margin: 0 auto;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff6ed 0%, #fff0f2 58%, #fff5dc 100%);
}

.touch-controls {
    justify-content: center;
    margin-top: 16px;
}

.control-btn {
    min-height: 46px;
    min-width: 140px;
    padding: 0 20px;
    border-radius: 16px;
    border: 1px solid rgba(216, 157, 120, 0.28);
    background: rgba(255, 255, 255, 0.68);
    color: var(--title);
    cursor: pointer;
    font-weight: 800;
}

.values-grid,
.lineup-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.lineup-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.lineup-card {
    padding: 26px;
}

.value-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(255, 180, 141, 0.2);
    color: #d97f66;
    font-size: 1.2rem;
}

.value-card h3,
.lineup-card h3,
.contact-card h3 {
    color: var(--title);
    margin-bottom: 8px;
}

.lineup-tag {
    display: inline-flex;
    padding: 6px 12px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(156, 230, 192, 0.24);
    color: #4e8b6d;
    font-weight: 800;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
    align-items: center;
}

.contact-card {
    padding: 26px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
}

.contact-item + .contact-item {
    border-top: 1px solid rgba(216, 157, 120, 0.14);
}

.contact-item i {
    width: 18px;
    color: #d67d64;
    margin-top: 6px;
}

.site-footer {
    padding: 24px 0 32px;
    border-top: 1px solid rgba(216, 157, 120, 0.12);
    background: rgba(255, 248, 239, 0.74);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-inner a {
    color: #d67d64;
    font-weight: 800;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
    color: var(--title);
}

.fade-in {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1200;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(111, 61, 47, 0.92);
    color: #fff8ef;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.policy-body {
    background:
        radial-gradient(circle at top left, rgba(255, 180, 141, 0.24), transparent 22%),
        linear-gradient(180deg, #fffaf2 0%, #fff5ea 100%);
}

.policy-main {
    padding-top: 92px;
}

.policy-hero {
    padding: 4.5rem 0 2rem;
}

.policy-kicker {
    color: #d67d64;
    margin-bottom: 1rem;
}

.policy-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    margin-bottom: 14px;
}

.policy-meta {
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.policy-section {
    padding: 1rem 0 5rem;
}

.policy-card {
    padding: 2.25rem;
}

.policy-card h2 {
    margin: 1.7rem 0 0.7rem;
    color: var(--title);
    font-family: 'Baloo 2', cursive;
    font-size: 1.45rem;
}

.policy-card h2:first-child {
    margin-top: 0;
}

.policy-card ul {
    margin: 0.75rem 0 0.75rem 1.3rem;
}

.policy-note {
    margin-top: 2rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid #d67d64;
    background: rgba(255, 180, 141, 0.16);
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .hero-layout,
    .arcade-shell,
    .contact-layout,
    .values-grid,
    .lineup-grid,
    .game-header {
        grid-template-columns: 1fr;
    }

    .arcade-sidebar {
        order: -1;
    }

    .game-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .nav-menu {
        position: fixed;
        top: 76px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        border-radius: 22px;
        background: rgba(255, 248, 239, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: inline-block;
    }

    section {
        padding: 88px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 108px;
    }

    .hero-copy h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .mini-stats,
    .memory-board,
    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-list {
        gap: 10px;
    }

    .game-panel {
        padding: 20px;
    }

    .policy-card {
        padding: 1.5rem;
    }
}

@media (max-width: 520px) {
    .container,
    .nav-container {
        width: min(100% - 24px, 100%);
    }

    .hero-points li,
    .btn,
    .control-btn,
    .footer-inner {
        width: 100%;
    }

    .memory-board,
    .mini-stats,
    .game-stats {
        grid-template-columns: 1fr;
    }

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

    .touch-controls {
        flex-direction: column;
    }
}
