:root {
    --grass: #5a9e3a;
    --grass-deep: #3f7a28;
    --grass-soft: #e8f5d8;
    --gold: #f5c518;
    --gold-deep: #e0a800;
    --amber: #f7931e;
    --teal: #08605f;
    --navy: #2d3142;
    --cream: #fff8e7;
    --sand: #f3e6c8;
    --wood: #8d6e63;
    --ink: #1f2a1f;
    --muted: #5c6b5c;
    --line: rgba(45, 49, 66, 0.12);
    --rail-w: 248px;
    --frame: 1200px;
    --radius: 18px;
    --shadow: 0 14px 36px rgba(45, 80, 30, 0.12);
    --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(245, 197, 24, 0.18), transparent 36%),
        radial-gradient(circle at 88% 8%, rgba(90, 158, 58, 0.16), transparent 32%),
        linear-gradient(160deg, #f7fbf1 0%, #fff8e7 48%, #eef7e3 100%);
    min-height: 100vh;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--teal);
    text-decoration: none;
}

a:hover {
    color: var(--grass-deep);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 0.55em;
    color: var(--navy);
}

p {
    margin: 0 0 1em;
}

.bu-shell {
    min-height: 100vh;
}

.bu-menu-toggle {
    display: none;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 80;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--grass);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.bu-frame {
    width: min(100%, var(--frame));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr var(--rail-w);
    gap: 0;
    min-height: 100vh;
}

.bu-stage {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 28px 0 20px;
}

.bu-main {
    flex: 1;
}

.bu-rail {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: 28px 18px;
    background:
        linear-gradient(180deg, rgba(255, 248, 231, 0.96), rgba(232, 245, 216, 0.96)),
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 10px,
            rgba(90, 158, 58, 0.04) 10px,
            rgba(90, 158, 58, 0.04) 11px
        );
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.bu-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
}

.bu-brand img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.bu-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--teal);
}

.bu-brand small {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.bu-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bu-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 14px;
    color: var(--navy);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.bu-nav a i {
    width: 1.2em;
    text-align: center;
    color: var(--grass);
}

.bu-nav a:hover,
.bu-nav a.is-active {
    background: rgba(90, 158, 58, 0.14);
    transform: translateX(-3px);
}

.bu-nav-home a.is-active { background: rgba(8, 96, 95, 0.12); }
.bu-nav-about a.is-active { background: rgba(141, 110, 99, 0.16); }
.bu-nav-game a.is-active { background: rgba(247, 147, 30, 0.16); }
.bu-nav-contact a.is-active { background: rgba(45, 49, 66, 0.1); }
.bu-nav-shop a.is-active { background: rgba(245, 197, 24, 0.22); }

.bu-shop-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
    color: #1a1400 !important;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(247, 147, 30, 0.35);
    animation: buPulse 2.4s ease-in-out infinite;
}

.bu-shop-cta:hover,
.bu-shop-cta.is-active {
    filter: brightness(1.05);
    color: #1a1400 !important;
}

@keyframes buPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.bu-footer {
    margin-top: 48px;
    padding: 28px 0 24px;
    border-top: 1px solid var(--line);
}

.bu-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.bu-footer-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.bu-footer-brand img {
    width: 96px;
    flex-shrink: 0;
}

.bu-footer-brand strong {
    display: block;
    margin-bottom: 6px;
}

.bu-footer-brand p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.bu-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-content: flex-start;
    justify-content: flex-end;
}

.bu-footer-nav a {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.92rem;
}

.bu-footer-copy {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.splash-band {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    min-height: 360px;
    display: grid;
    align-items: end;
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.splash-band-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.splash-band-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(31, 42, 31, 0.78) 8%, rgba(8, 96, 95, 0.45) 55%, rgba(90, 158, 58, 0.2) 100%);
}

.splash-band-copy {
    position: relative;
    z-index: 1;
    padding: 36px 32px;
    color: #fff;
    max-width: 640px;
}

.splash-band-copy h1 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    margin-bottom: 12px;
}

.splash-band-copy p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 8px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.cta-row a img {
    height: 52px;
    width: auto;
    transition: transform 0.2s ease;
}

.cta-row a:hover img {
    transform: translateY(-2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--teal);
}

.btn-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--grass);
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(90, 158, 58, 0.28);
}

.btn-chip:hover {
    background: var(--grass-deep);
    color: #fff !important;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1a1400 !important;
    font-weight: 700;
}

.panel {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(6px);
}

.panel-split {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.panel-split img {
    border-radius: 16px;
    width: 100%;
    box-shadow: var(--shadow);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--grass-soft);
}

.feature-list li i {
    color: var(--grass-deep);
    margin-top: 3px;
}

.shot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shot-row img {
    border-radius: 14px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.shot-row img:hover {
    transform: translateY(-4px);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pillar {
    padding: 20px;
    border-radius: 16px;
    background: linear-gradient(160deg, #fff, var(--sand));
    border: 1px dashed rgba(141, 110, 99, 0.35);
}

.pillar i {
    font-size: 1.4rem;
    color: var(--amber);
    margin-bottom: 10px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 16px 18px;
}

.faq-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--teal);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 14px;
    background: var(--cream);
    border: 1px solid var(--line);
}

.contact-card i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--grass);
    color: #fff;
    flex-shrink: 0;
}

.store-lead {
    background: linear-gradient(120deg, var(--teal), var(--grass-deep));
    color: #fff;
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.store-lead h1,
.store-lead p {
    color: #fff;
}

.store-notes {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.store-notes li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.store-notes i {
    color: var(--amber);
    margin-top: 3px;
}

.currency-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--line);
}

.currency-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.currency-btn {
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
    color: var(--navy);
}

.currency-btn.is-active {
    background: var(--gold);
    border-color: var(--gold-deep);
}

.store-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    align-items: start;
}

.coin-board {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.coin-board h2 {
    margin-bottom: 14px;
}

.coin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-height: 520px;
    overflow: auto;
}

.coin-card {
    appearance: none;
    border: 2px solid transparent;
    background: linear-gradient(160deg, #fffef8, #fff3d1);
    border-radius: 16px;
    padding: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.coin-card:hover {
    transform: translateY(-2px);
}

.coin-card.is-selected {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(247, 147, 30, 0.2);
}

.coin-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 8px;
}

.coin-card-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy);
}

.coin-card-buy {
    display: block;
    margin-top: 4px;
    font-weight: 700;
    color: var(--teal);
}

.coin-loading,
.coin-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 36px 12px;
    color: var(--muted);
}

.coin-loading-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border: 3px solid var(--sand);
    border-top-color: var(--grass);
    border-radius: 50%;
    animation: buSpin 0.8s linear infinite;
}

@keyframes buSpin {
    to { transform: rotate(360deg); }
}

.checkout-board {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--navy);
}

.form-group input[type="text"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font: inherit;
    background: var(--cream);
}

.form-group input[readonly] {
    background: #f0f0ea;
    color: var(--muted);
}

.selected-display {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--grass-soft);
    color: var(--muted);
    font-weight: 600;
}

.selected-display.has-value {
    color: var(--navy);
}

.payment-options {
    display: grid;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    cursor: pointer;
    background: #fff;
}

.payment-option.is-selected {
    border-color: var(--grass);
    background: var(--grass-soft);
}

.payment-option input {
    margin: 0;
}

.agree-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.92rem;
}

.agree-row input {
    margin-top: 4px;
}

.field-error {
    display: block;
    color: #c62828;
    font-size: 0.85rem;
    min-height: 1.1em;
    margin-top: 4px;
}

.required {
    color: #c62828;
}

.btn-submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--gold), var(--amber));
    color: #1a1400;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.shop-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffebee;
    color: #b71c1c;
    margin-bottom: 16px;
    border: 1px solid #ffcdd2;
}

.receipt-wrap {
    max-width: 560px;
    margin: 20px auto;
}

.receipt-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.receipt-card .result-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.receipt-card .result-icon.success { color: var(--grass); }
.receipt-card .result-icon.fail { color: #c62828; }

.order-details {
    text-align: left;
    margin: 22px 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row .label {
    color: var(--muted);
    font-weight: 600;
}

.detail-row .value.total {
    color: var(--teal);
    font-weight: 800;
}

.transaction-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}

.countdown {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--amber);
    margin: 8px 0 14px;
}

.error-code {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffebee;
    color: #c62828;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-about .panel-split { grid-template-columns: 0.9fr 1.1fr; }
.page-game .splash-band { min-height: 300px; }
.page-contact .splash-band { min-height: 240px; }
.page-shop .store-layout { margin-top: 8px; }

@media (max-width: 980px) {
    .bu-frame {
        grid-template-columns: 1fr;
    }

    .bu-stage {
        padding: 72px 16px 0;
    }

    .bu-menu-toggle {
        display: grid;
        place-items: center;
    }

    .bu-rail {
        position: fixed;
        top: 0;
        right: 0;
        width: min(86vw, 300px);
        height: 100vh;
        z-index: 70;
        transform: translateX(105%);
        transition: transform 0.28s ease;
        box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
    }

    .bu-rail.is-open {
        transform: translateX(0);
    }

    .panel-split,
    .contact-grid,
    .store-layout,
    .pillar-grid,
    .bu-footer-grid {
        grid-template-columns: 1fr;
    }

    .bu-footer-nav {
        justify-content: flex-start;
    }

    .shot-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .coin-grid {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .checkout-board {
        position: static;
    }
}

@media (max-width: 560px) {
    .splash-band-copy {
        padding: 24px 18px;
    }

    .cta-row a img {
        height: 44px;
    }

    .shot-row {
        grid-template-columns: 1fr 1fr;
    }
}
