:root {
    --bc-navy: #061018;
    --bc-deep: #0a1a28;
    --bc-panel: #0e2436;
    --bc-cyan: #00d4ff;
    --bc-teal: #00b8a9;
    --bc-lime: #7dffb3;
    --bc-ink: #e8f4fa;
    --bc-muted: #8aa8b8;
    --bc-line: rgba(0, 212, 255, 0.22);
    --bc-warn: #ff6b4a;
    --bc-ok: #3dd68c;
    --bc-shop: #ffb020;
    --bc-shop-deep: #e08900;
    --bc-radius: 16px;
    --bc-max: 1180px;
    --font-display: "Orbitron", sans-serif;
    --font-body: "Rajdhani", sans-serif;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--bc-ink);
    background:
        radial-gradient(ellipse at 10% 0%, rgba(0, 212, 255, 0.14), transparent 42%),
        radial-gradient(ellipse at 90% 10%, rgba(0, 184, 169, 0.12), transparent 38%),
        linear-gradient(180deg, #041018 0%, #081820 40%, #0a1c2a 100%);
    min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bc-cyan); text-decoration: none; }
a:hover { color: var(--bc-lime); }
p { line-height: 1.65; margin: 0 0 1rem; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}

.bc-frame { min-height: 100vh; display: flex; flex-direction: column; }
.bc-wrap { width: min(100% - 36px, var(--bc-max)); margin: 0 auto; }
.bc-main { flex: 1; padding-bottom: 48px; }

.bc-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(6, 16, 24, 0.88);
    border-bottom: 1px solid var(--bc-line);
}
.bc-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
}
.bc-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    min-width: 0;
}
.bc-brand-mark {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
}
.bc-brand-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(0.78rem, 1.6vw, 0.95rem);
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
}
.bc-brand-text small {
    color: var(--bc-muted);
    font-size: 0.85rem;
}
.bc-burger {
    display: none;
    border: 1px solid var(--bc-line);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bc-panel);
    color: var(--bc-cyan);
    font-size: 1.1rem;
    cursor: pointer;
}
.bc-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--bc-ink);
    font-weight: 600;
    font-size: 0.98rem;
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.bc-link:hover { border-color: var(--bc-line); color: #fff; background: rgba(0, 212, 255, 0.08); }
.bc-link.is-active { color: var(--bc-cyan); border-color: var(--bc-line); background: rgba(0, 212, 255, 0.1); }
.bc-link.is-shop {
    background: linear-gradient(135deg, var(--bc-shop), var(--bc-shop-deep));
    color: #1a1200 !important;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 176, 32, 0.35);
    border: 0;
}
.bc-link.is-shop:hover { filter: brightness(1.08); color: #1a1200 !important; }
.bc-link.is-shop.is-active { outline: 2px solid #fff3; outline-offset: 2px; }

.bc-foot {
    margin-top: auto;
    border-top: 1px solid var(--bc-line);
    background: rgba(4, 12, 18, 0.92);
    padding: 36px 0 28px;
}
.bc-foot-grid { display: grid; gap: 18px; }
.bc-foot-brand { display: flex; align-items: center; gap: 12px; }
.bc-foot-brand img { width: 48px; height: 48px; border-radius: 10px; }
.bc-foot-brand strong { display: block; font-family: var(--font-display); font-size: 0.9rem; }
.bc-foot-brand span { color: var(--bc-muted); font-size: 0.9rem; }
.bc-foot-links { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.bc-foot-links a { color: var(--bc-muted); font-weight: 600; }
.bc-foot-shop { color: var(--bc-shop) !important; }
.bc-foot-copy { color: var(--bc-muted); margin: 0; font-size: 0.92rem; }

.mast-stage {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--bc-line);
}
.mast-stage-bg {
    width: 100%;
    aspect-ratio: 1024 / 500;
    object-fit: cover;
    filter: brightness(0.55) saturate(1.15);
}
.mast-stage-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 64px);
    background: linear-gradient(180deg, transparent 20%, rgba(4, 12, 18, 0.88) 78%);
}
.mast-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bc-cyan);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.82rem;
    margin-bottom: 10px;
}
.mast-stage h1 {
    font-size: clamp(1.6rem, 4.2vw, 3rem);
    max-width: 16ch;
    color: #fff;
}
.mast-stage p {
    max-width: 46ch;
    color: rgba(232, 244, 250, 0.88);
    font-size: 1.15rem;
}
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}
.store-btn {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}
.store-btn img {
    height: 52px;
    width: auto;
    aspect-ratio: 499 / 171;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}
.store-btn:hover img { transform: translateY(-2px); filter: brightness(1.08); }

/* Home first screen: keep store buttons fully inside the viewport */
.page-home .mast-stage {
    height: calc(100svh - 88px);
    min-height: 420px;
    max-height: 920px;
}
.page-home .mast-stage-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}
.page-home .mast-stage-copy {
    position: relative;
    z-index: 1;
    height: 100%;
    justify-content: flex-end;
    padding: clamp(16px, 3.5vh, 40px) 0 calc(18px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}
.page-home .mast-stage h1 {
    font-size: clamp(1.35rem, 3.6vw, 2.6rem);
    margin-bottom: 0.45rem;
}
.page-home .mast-stage p {
    margin-bottom: 0;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
}
.page-home .store-row {
    margin-top: clamp(12px, 2.2vh, 18px);
    padding-bottom: 4px;
}
.page-home .store-btn img {
    height: clamp(44px, 6.5vh, 56px);
}

.block {
    width: min(100% - 36px, var(--bc-max));
    margin: 42px auto 0;
}
.block-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bc-teal);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 8px;
}
.lead { color: var(--bc-muted); font-size: 1.12rem; max-width: 62ch; }

.shot-frame {
    border-radius: var(--bc-radius);
    overflow: hidden;
    border: 1px solid var(--bc-line);
    box-shadow: var(--shadow);
    background: var(--bc-panel);
}
.shot-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.shot-sm { max-width: 420px; }
.shot-md { max-width: 560px; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}
.feature-tile {
    background: linear-gradient(160deg, rgba(14, 36, 54, 0.95), rgba(8, 24, 36, 0.92));
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    padding: 22px;
}
.feature-tile i {
    font-size: 1.4rem;
    color: var(--bc-cyan);
    margin-bottom: 12px;
}
.feature-tile h3 { font-size: 1.05rem; color: #fff; }
.feature-tile p { margin: 0; color: var(--bc-muted); font-size: 1rem; }

.cta-band {
    margin: 48px auto 0;
    width: min(100% - 36px, var(--bc-max));
    padding: 28px 32px;
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-line);
    background:
        linear-gradient(120deg, rgba(0, 212, 255, 0.12), rgba(0, 184, 169, 0.08)),
        var(--bc-panel);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cta-band h2 { margin: 0; font-size: 1.35rem; }
.cta-band p { margin: 6px 0 0; color: var(--bc-muted); }

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid var(--bc-line);
    color: #fff;
    background: rgba(0, 212, 255, 0.12);
}
.btn-pill.solid {
    background: linear-gradient(135deg, var(--bc-cyan), var(--bc-teal));
    color: #041018;
    border: 0;
}
.btn-pill.shop {
    background: linear-gradient(135deg, var(--bc-shop), var(--bc-shop-deep));
    color: #1a1200;
    border: 0;
    box-shadow: 0 10px 28px rgba(255, 176, 32, 0.3);
}
.btn-pill.soft { background: rgba(255,255,255,0.06); }

/* About — vertical timeline + side media */
.about-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}
.pillar-list { display: grid; gap: 14px; margin-top: 20px; }
.pillar {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(14, 36, 54, 0.7);
    border: 1px solid var(--bc-line);
}
.pillar i {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--bc-cyan);
}
.about-media { display: grid; gap: 16px; justify-items: end; }
.about-media .shot-frame { width: 100%; max-width: 480px; }

/* Game — feature ribbon + icon cards */
.game-ribbon {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 28px;
    align-items: center;
}
.game-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.game-stat {
    padding: 16px;
    border-radius: 14px;
    background: rgba(0, 184, 169, 0.08);
    border: 1px solid rgba(0, 184, 169, 0.25);
}
.game-stat strong { display: block; font-family: var(--font-display); color: var(--bc-lime); font-size: 1.1rem; }
.game-stat span { color: var(--bc-muted); font-size: 0.95rem; }
.trait-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}
.trait-card {
    padding: 22px;
    border-radius: var(--bc-radius);
    background: linear-gradient(145deg, #0f2a3c, #0a1e2c);
    border: 1px solid var(--bc-line);
}
.trait-card .icon-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.trait-card .icon-row i {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.15);
    color: var(--bc-cyan);
}
.trait-card h3 { margin: 0; font-size: 1.02rem; }

/* Contact — card stack */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 28px;
    align-items: stretch;
}
.contact-cards { display: grid; gap: 14px; }
.contact-card {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 14px;
    background: var(--bc-panel);
    border: 1px solid var(--bc-line);
}
.contact-card i {
    width: 46px; height: 46px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 12px;
    background: rgba(255, 176, 32, 0.12);
    color: var(--bc-shop);
}
.contact-card strong { display: block; color: #fff; }
.contact-card span, .contact-card a { color: var(--bc-muted); word-break: break-word; }

/* Shop */
.shop-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}
.shop-top .shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bc-shop), var(--bc-shop-deep));
    color: #1a1200;
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 0.85rem;
}
.coin-notes {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.coin-notes li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--bc-muted);
}
.coin-notes i { color: var(--bc-cyan); margin-top: 4px; }

.shop-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 107, 74, 0.12);
    border: 1px solid rgba(255, 107, 74, 0.35);
    color: #ffc4b5;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.currency-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 8px;
}
.currency-chip {
    border: 1px solid var(--bc-line);
    background: rgba(0, 212, 255, 0.06);
    color: var(--bc-ink);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-body);
}
.currency-chip.is-active {
    background: rgba(0, 212, 255, 0.2);
    color: #fff;
    border-color: var(--bc-cyan);
}

.coin-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 16px;
    max-height: 420px;
    overflow-y: auto;
    padding: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--bc-cyan) transparent;
}
.coin-card {
    appearance: none;
    border: 1px solid var(--bc-line);
    background: linear-gradient(160deg, #102838, #0a1c28);
    border-radius: 12px;
    padding: 12px 10px;
    cursor: pointer;
    text-align: center;
    color: inherit;
    font-family: var(--font-body);
    transition: 0.15s ease;
}
.coin-card:hover { border-color: var(--bc-cyan); transform: translateY(-1px); }
.coin-card.is-selected {
    border-color: var(--bc-shop);
    box-shadow: 0 0 0 1px var(--bc-shop), 0 10px 24px rgba(255, 176, 32, 0.2);
}
.coin-card img { width: 28px; height: 28px; margin: 0 auto 8px; object-fit: contain; }
.coin-card-amount { display: block; font-weight: 700; font-size: 0.95rem; color: #fff; }
.coin-card-price { display: block; margin-top: 4px; color: var(--bc-shop); font-weight: 700; }
.coin-empty { padding: 28px; text-align: center; color: var(--bc-muted); }

.order-panel {
    margin-top: 28px;
    padding: 24px;
    border-radius: var(--bc-radius);
    border: 1px solid rgba(255, 176, 32, 0.35);
    background:
        linear-gradient(160deg, rgba(255, 176, 32, 0.08), transparent 40%),
        var(--bc-panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.order-panel h2 { display: flex; align-items: center; gap: 10px; color: var(--bc-shop); }
.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.field-block label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    color: var(--bc-muted);
    font-size: 0.92rem;
}
.field-block input[type="text"],
.field-block input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--bc-line);
    background: rgba(4, 12, 18, 0.7);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
}
.field-block.full { grid-column: 1 / -1; }
.field-error { min-height: 1.1em; color: var(--bc-warn); font-size: 0.9rem; margin-top: 4px; }
.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.pay-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--bc-line);
    background: rgba(4, 12, 18, 0.55);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}
.pay-choice span {
    white-space: nowrap;
}
.pay-choice input { accent-color: var(--bc-shop); }
.pay-choice.is-selected { border-color: var(--bc-shop); background: rgba(255, 176, 32, 0.1); }
.pay-choice.is-display { opacity: 0.55; cursor: default; }
.order-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid var(--bc-line);
}
.order-summary small { color: var(--bc-muted); display: block; }
.order-summary strong { color: var(--bc-shop); font-size: 1.25rem; font-family: var(--font-display); }
.agree-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--bc-muted);
    font-weight: 500 !important;
}
.agree-row input { margin-top: 4px; accent-color: var(--bc-shop); }
.btn-confirm {
    margin-top: 18px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #1a1200;
    background: linear-gradient(135deg, var(--bc-shop), var(--bc-shop-deep));
    box-shadow: 0 12px 28px rgba(255, 176, 32, 0.28);
}
.btn-confirm:hover { filter: brightness(1.06); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.delivery-panel {
    margin: 36px auto 0;
    width: min(100% - 36px, var(--bc-max));
    padding: 26px;
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-line);
    background: rgba(14, 36, 54, 0.65);
}
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.delivery-card {
    padding: 16px;
    border-radius: 12px;
    background: rgba(4, 12, 18, 0.45);
    border: 1px solid rgba(0, 212, 255, 0.12);
}
.delivery-card h3 {
    font-size: 0.98rem;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--bc-cyan);
}
.delivery-card p { margin: 0; color: var(--bc-muted); font-size: 0.98rem; }

/* Result pages */
.result-wrap {
    width: min(100% - 36px, 720px);
    margin: 48px auto;
    text-align: center;
    padding: 36px 28px;
    border-radius: var(--bc-radius);
    border: 1px solid var(--bc-line);
    background: var(--bc-panel);
}
.result-icon {
    width: 72px; height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1.8rem;
}
.result-icon.ok { background: rgba(61, 214, 140, 0.15); color: var(--bc-ok); }
.result-icon.bad { background: rgba(255, 107, 74, 0.15); color: var(--bc-warn); }
.detail-sheet {
    margin: 22px 0;
    text-align: left;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--bc-line);
}
.detail-sheet .row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.detail-sheet .row:last-child { border-bottom: 0; }
.detail-sheet .label { color: var(--bc-muted); }
.detail-sheet .value { color: #fff; font-weight: 600; text-align: right; }
.detail-sheet .total { color: var(--bc-shop); font-family: var(--font-display); }
.countdown-box {
    display: inline-grid;
    place-items: center;
    width: 56px; height: 56px;
    margin: 12px auto;
    border-radius: 50%;
    border: 2px solid var(--bc-cyan);
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--bc-cyan);
}
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}

@media (max-width: 960px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .about-split, .game-ribbon, .contact-layout { grid-template-columns: 1fr; }
    .about-media { justify-items: stretch; }
    .trait-grid, .delivery-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .bc-burger { display: inline-grid; place-items: center; }
    .bc-menu {
        display: none;
        position: absolute;
        left: 0; right: 0;
        top: 100%;
        background: rgba(6, 16, 24, 0.98);
        border-bottom: 1px solid var(--bc-line);
        padding: 12px 18px 18px;
    }
    .bc-menu.is-open { display: block; }
    .bc-menu ul { flex-direction: column; align-items: stretch; }
    .bc-link { width: 100%; justify-content: flex-start; }
    .bc-link.is-shop { justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .order-grid { grid-template-columns: 1fr; }
    .mast-stage-bg { aspect-ratio: 16 / 10; min-height: 280px; }
    .page-home .mast-stage {
        height: calc(100svh - 76px);
        min-height: 380px;
    }
    .page-home .mast-stage-bg {
        aspect-ratio: auto;
        min-height: 0;
    }
    .page-home .mast-stage-copy {
        padding-left: 0;
        padding-right: 0;
    }
    .store-btn img { height: 44px; }
    .page-home .store-btn img { height: 46px; }
}

@media (max-height: 700px) {
    .page-home .mast-stage h1 { font-size: 1.35rem; }
    .page-home .mast-stage p { font-size: 0.95rem; max-width: 52ch; }
    .page-home .mast-kicker { margin-bottom: 6px; }
    .page-home .store-btn img { height: 42px; }
    .page-home .store-row { gap: 10px; }
}
