:root {
    --ink: #e8f7ff;
    --muted: #9bb7c9;
    --deep: #07111f;
    --panel: #0d1b2c;
    --cyan: #22d3ee;
    --lime: #a3e635;
    --sky: #38bdf8;
    --mint: #5eead4;
    --glow: #fde047;
    --danger: #fb7185;
    --ok: #4ade80;
    --line: rgba(34, 211, 238, 0.18);
    --wrap: 1140px;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Outfit, system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.22), transparent 34%),
        radial-gradient(circle at 88% 0%, rgba(163, 230, 53, 0.16), transparent 30%),
        linear-gradient(165deg, #050b14 0%, #0a1628 42%, #07111f 100%);
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--lime); }
h1, h2, h3 {
    font-family: Syne, Outfit, sans-serif;
    margin: 0 0 12px;
    line-height: 1.12;
    letter-spacing: -0.02em;
}
p { margin: 0 0 14px; line-height: 1.7; }
ul { margin: 0; padding: 0; list-style: none; }

.bp-frame { min-height: 100vh; display: flex; flex-direction: column; }
.bp-shell { width: min(100% - 28px, var(--wrap)); margin: 0 auto; }
.bp-core { flex: 1; padding: 18px 0 64px; }

/* Floating island mast — not a full sticky bar like other sites */
.bp-mast {
    position: relative;
    z-index: 40;
    padding: 18px 0 8px;
}
.bp-mast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(13, 27, 44, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}
.bp-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    min-width: 0;
}
.bp-mark img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
}
.bp-mark span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-mark strong {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bp-mark em {
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}
.bp-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--ink);
    cursor: pointer;
}
.bp-menu ul {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.bp-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.bp-nav i { font-size: 13px; opacity: 0.9; }
.bp-nav:hover { background: rgba(34, 211, 238, 0.1); color: var(--cyan); }
.bp-nav.is-on { background: rgba(34, 211, 238, 0.16); border-color: rgba(34, 211, 238, 0.35); color: #fff; }
.bp-nav-shop {
    background: linear-gradient(120deg, var(--cyan), var(--lime));
    color: #052018 !important;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35);
    padding: 11px 18px;
    position: relative;
    z-index: 1;
}
.bp-nav.bp-nav-shop:hover,
.bp-nav.bp-nav-shop:focus-visible {
    background: linear-gradient(120deg, #d9ff4d, #5eead4);
    color: #03140f !important;
    transform: translateY(-2px) scale(1.08);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, 0.45),
        0 16px 36px rgba(163, 230, 53, 0.55);
    filter: none;
}
.bp-nav.bp-nav-shop.is-on,
.bp-tone-shop .bp-nav.bp-nav-shop {
    background: linear-gradient(120deg, #facc15, #4ade80);
    color: #052018 !important;
    border-color: transparent;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.7),
        0 12px 30px rgba(250, 204, 21, 0.45);
}
.bp-tone-shop .bp-nav.bp-nav-shop:hover,
.bp-nav.bp-nav-shop.is-on:hover {
    background: linear-gradient(120deg, #d9ff4d, #5eead4);
    transform: translateY(-2px) scale(1.08);
}

/* Per-page menu / mast accents */
.bp-tone-labs .bp-mast-row { border-color: rgba(163, 230, 53, 0.28); }
.bp-tone-mosaic .bp-mast-row { border-radius: 28px; }
.bp-tone-contact .bp-mast-row { border-radius: 18px; }
.bp-tone-shop .bp-mast-row {
    background: linear-gradient(90deg, rgba(13,27,44,0.95), rgba(8,40,48,0.95));
}
.bp-menu-labs .bp-nav.is-on { background: rgba(163, 230, 53, 0.16); border-color: rgba(163, 230, 53, 0.4); color: var(--lime); }
.bp-menu-contact .bp-nav { border-radius: 12px; }
.bp-menu-mosaic ul { gap: 10px; }

.bp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 10px;
}
.bp-title { font-size: clamp(32px, 5vw, 54px); }
.bp-lead { color: var(--muted); font-size: 17px; max-width: 62ch; }

/* Opening: full-bleed banner with centered stack — differs from side-by-side refs */
.bp-open {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: min(72vh, 680px);
    display: grid;
    place-items: end stretch;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.bp-open-media {
    position: absolute;
    inset: 0;
}
.bp-open-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bp-open-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,11,20,0.15) 0%, rgba(5,11,20,0.55) 42%, rgba(5,11,20,0.92) 100%),
        radial-gradient(circle at 50% 20%, rgba(34,211,238,0.18), transparent 45%);
}
.bp-open-copy {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 5vw, 48px);
    max-width: 760px;
}
.bp-open .bp-title { text-shadow: 0 8px 40px rgba(0,0,0,0.45); }
.bp-open .bp-lead { color: #c7e6f5; }

.bp-playrow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.bp-storebtn {
    display: inline-flex;
    transition: transform 0.2s ease;
}
.bp-storebtn img {
    height: 52px;
    width: auto;
}
.bp-storebtn:hover { transform: translateY(-2px); }
.bp-storebtn.is-muted { opacity: 0.55; pointer-events: none; }

.bp-band { margin: 36px 0; }
.bp-band-head { margin-bottom: 18px; }

/* Zigzag story rows */
.bp-zig {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: center;
    margin: 28px 0;
}
.bp-zig.is-flip { grid-template-columns: 0.95fr 1.05fr; }
.bp-zig.is-flip .bp-zig-copy { order: 2; }
.bp-zig.is-flip .bp-zig-art { order: 1; }
.bp-panel {
    background: rgba(13, 27, 44, 0.78);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.bp-zig-art {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0a1524;
}
.bp-zig-art img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }

.bp-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.bp-chip {
    background: linear-gradient(160deg, rgba(34,211,238,0.12), rgba(163,230,53,0.08));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    min-height: 150px;
}
.bp-chip b {
    display: block;
    font-size: 28px;
    color: var(--lime);
    margin-bottom: 8px;
}
.bp-chip h3 { font-size: 18px; }
.bp-chip p { color: var(--muted); font-size: 14px; margin: 0; }

.bp-shot-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}
.bp-shot-rail img {
    height: 160px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.bp-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-radius: 24px;
    background: linear-gradient(120deg, rgba(34,211,238,0.18), rgba(163,230,53,0.14));
    border: 1px solid var(--line);
}
.bp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}
.bp-btn-glow {
    background: linear-gradient(120deg, var(--cyan), var(--lime));
    color: #052018;
}
.bp-btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--ink);
}
.bp-btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* Labs page — stacked magazine */
.bp-labs-intro {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 22px;
    align-items: start;
}
.bp-labs-intro figure {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.bp-statline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.bp-stat {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(34,211,238,0.25);
}
.bp-stat strong { display: block; font-size: 15px; margin-bottom: 6px; color: var(--lime); }
.bp-stat span { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Mosaic game page — feature stack */
.bp-feature-stack { display: grid; gap: 14px; }
.bp-feature {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(13,27,44,0.7);
    border: 1px solid var(--line);
}
.bp-feature i {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(34,211,238,0.12);
    color: var(--cyan);
    font-size: 22px;
}
.bp-mosaic-top {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    align-items: center;
}
.bp-mosaic-art {
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    transform: rotate(-1.5deg);
    box-shadow: var(--shadow);
}

/* Contact — icon cards */
.bp-contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 18px;
}
.bp-contact-cards { display: grid; gap: 12px; }
.bp-contact-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(13,27,44,0.78);
    border: 1px solid var(--line);
}
.bp-contact-card i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(163,230,53,0.12);
    color: var(--lime);
    font-size: 20px;
}
.bp-contact-card h3 { font-size: 15px; margin-bottom: 4px; }
.bp-contact-card p, .bp-contact-card a { margin: 0; color: var(--muted); word-break: break-word; }
.bp-contact-art {
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 280px;
}
.bp-contact-art img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* Shop — packs on top, form below (differs from left/right desks) */
.bp-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(251, 113, 133, 0.12);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fecdd3;
    margin: 16px 0;
}
.bp-notes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 18px 0 22px;
}
.bp-notes li {
    display: flex;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}
.bp-notes i { color: var(--cyan); margin-top: 3px; }
.bp-money-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.bp-money-btn {
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
}
.bp-money-btn.is-on {
    background: rgba(34,211,238,0.18);
    border-color: rgba(34,211,238,0.45);
    color: #fff;
}
.bp-pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}
.bp-pack {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: 18px;
    background: rgba(13,27,44,0.85);
    border: 1px solid var(--line);
    cursor: pointer;
    transition: 0.2s ease;
}
.bp-pack:hover, .bp-pack.is-on {
    border-color: rgba(34,211,238,0.55);
    box-shadow: 0 0 0 1px rgba(34,211,238,0.25), 0 16px 30px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}
.bp-pack img { width: 64px; height: 64px; object-fit: contain; }
.bp-pack-title { font-weight: 700; font-size: 15px; }
.bp-pack-price { color: var(--lime); font-weight: 800; font-size: 18px; }
.bp-load, .bp-empty {
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 16px;
}
.bp-order {
    border-radius: 24px;
    padding: 22px;
    background: linear-gradient(180deg, rgba(8,40,48,0.9), rgba(13,27,44,0.95));
    border: 1px solid rgba(34,211,238,0.28);
}
.bp-order h2 { margin-bottom: 16px; }
.bp-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.bp-field { display: grid; gap: 8px; }
.bp-field-full { grid-column: 1 / -1; }
.bp-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.bp-field input[type="text"],
.bp-field input[type="email"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.25);
    color: var(--ink);
    padding: 12px 14px;
    font: inherit;
}
.bp-field input[readonly] { opacity: 0.85; }
.bp-picked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(34,211,238,0.08);
    border: 1px solid var(--line);
}
.bp-pay-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.bp-pay {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}
.bp-pay.is-on {
    border-color: rgba(163,230,53,0.55);
    background: rgba(163,230,53,0.1);
}
.bp-pay input { accent-color: var(--lime); }
.bp-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 14px;
}
.bp-agree input { margin-top: 3px; }
.bp-err { color: var(--danger); font-size: 12px; min-height: 16px; }
.bp-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.bp-order form { position: relative; }
.bp-submit-row { margin-top: 8px; }
.bp-submit-row .bp-btn { width: 100%; justify-content: center; padding: 14px 18px; font-size: 15px; }

/* Confirm / result */
.bp-invoice, .bp-result {
    max-width: 680px;
    margin: 12px auto;
    padding: 28px;
    border-radius: 24px;
    background: rgba(13,27,44,0.9);
    border: 1px solid var(--line);
    text-align: center;
}
.bp-table { width: 100%; border-collapse: collapse; margin: 18px 0; text-align: left; }
.bp-table th, .bp-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.bp-table th { width: 36%; color: var(--muted); font-weight: 600; }
.bp-total { color: var(--lime); font-weight: 800; font-size: 18px; }
.bp-count {
    font-size: 42px;
    font-weight: 800;
    color: var(--cyan);
    margin: 8px 0 16px;
}
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.bp-result i { font-size: 48px; margin-bottom: 10px; }
.bp-result.ok i { color: var(--ok); }
.bp-result.bad i { color: var(--danger); }

/* Footer differentiated */
.bp-base {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: rgba(5, 11, 20, 0.92);
    padding: 34px 0 28px;
}
.bp-base-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 22px;
}
.bp-base-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.bp-base-brand img { width: 56px; height: 56px; object-fit: contain; }
.bp-base-brand strong { display: block; margin-bottom: 4px; }
.bp-base-brand span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bp-base-hint { color: var(--cyan) !important; margin-top: 8px !important; }
.bp-base-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bp-base-nav a { color: var(--muted); font-size: 14px; }
.bp-base-nav a:hover { color: var(--lime); }
.bp-base-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 13px; }
.bp-base-meta a { color: var(--muted); }
.bp-base-labs { border-top-color: rgba(163,230,53,0.35); }
.bp-base-mosaic .bp-base-nav { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; }
.bp-base-contact .bp-base-grid { grid-template-columns: 1fr 1fr; }
.bp-base-shop {
    background: linear-gradient(180deg, rgba(8,40,48,0.95), rgba(5,11,20,0.98));
}

@media (max-width: 980px) {
    .bp-chips { grid-template-columns: repeat(2, 1fr); }
    .bp-zig, .bp-zig.is-flip,
    .bp-labs-intro, .bp-mosaic-top, .bp-contact-grid,
    .bp-base-grid {
        grid-template-columns: 1fr;
    }
    .bp-zig.is-flip .bp-zig-copy,
    .bp-zig.is-flip .bp-zig-art { order: initial; }
    .bp-fields { grid-template-columns: 1fr; }
    .bp-notes { grid-template-columns: 1fr; }
    .bp-statline { grid-template-columns: 1fr; }
    .bp-base-contact .bp-base-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .bp-toggle { display: inline-grid; place-items: center; }
    .bp-menu {
        display: none;
        position: absolute;
        left: 14px;
        right: 14px;
        top: 90px;
        padding: 12px;
        border-radius: 18px;
        background: rgba(7, 17, 31, 0.98);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .bp-menu.is-open { display: block; }
    .bp-menu ul { flex-direction: column; align-items: stretch; }
    .bp-nav { width: 100%; justify-content: flex-start; }
    .bp-mark strong { max-width: 42vw; }
    .bp-open { min-height: 560px; place-items: end stretch; }
}
