:root {
    --bg: #120a1f;
    --panel: #1e1432;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f3eefc;
    --muted: #b7aec9;
    --cyan: #14ffec;
    --gold: #ffd700;
    --teal: #0d7377;
    --danger: #ff6b8a;
    --ok: #3dd68c;
    --wrap: 1080px;
    --narrow: 760px;
    --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: Sora, "Segoe UI", sans-serif; margin: 0 0 12px; letter-spacing: -0.02em; }

.hh-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hh-body { flex: 1; }
.hh-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.hh-narrow { max-width: var(--narrow); }

/* Header */
.hh-top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(18, 10, 31, 0.96);
    border-bottom: 1px solid var(--line);
}
.hh-top-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.hh-logo img { width: 130px; height: 52px; object-fit: contain; }
.hh-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}
.hh-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.hh-link {
    display: inline-block;
    padding: 8px 14px;
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
}
.hh-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.hh-link.is-active { color: var(--cyan); background: rgba(20, 255, 236, 0.08); }
.hh-link-store,
.hh-link-store.is-active,
.hh-link-store:hover {
    margin-left: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff3a0 0%, #ffd700 45%, #e6b800 100%) !important;
    color: #1a1000 !important;
    font-weight: 800;
    font-size: 15px;
    border: 1px solid #fff8c8;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.45);
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.hh-link-store:hover {
    filter: brightness(1.06);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-1px);
}

/* Page */
.hh-page { padding: 36px 0 56px; }
.hh-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
}
.hh-h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.hh-h2 { font-size: 22px; margin-top: 8px; }
.hh-text { color: var(--muted); margin: 0 0 14px; max-width: 640px; }

.hh-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 40px;
}
.hh-media {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
}
.hh-media img { width: 100%; }
.hh-media-wide {
    max-width: 360px;
    max-height: 280px;
    margin: 20px auto 28px;
}
.hh-media-wide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 720px) {
    .hh-media-wide {
        max-width: 280px;
        max-height: 220px;
    }
    .hh-media-wide img { height: 220px; }
}

.hh-block { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hh-block-last { margin-bottom: 0; }

.hh-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.hh-card {
    display: block;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
}
.hh-card:hover { border-color: rgba(20, 255, 236, 0.35); color: inherit; }
.hh-card h3 { font-size: 17px; font-family: "DM Sans", sans-serif; }
.hh-card p { margin: 0; color: var(--muted); font-size: 14px; }

.hh-list {
    margin: 8px 0 0;
    padding-left: 20px;
    color: var(--muted);
}
.hh-list li { margin-bottom: 10px; }

.hh-shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.hh-shots img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    aspect-ratio: 9/16;
    object-fit: cover;
}

.hh-note {
    margin: 24px 0;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    background: rgba(13, 115, 119, 0.12);
    border-radius: 0 var(--radius) var(--radius) 0;
}
.hh-note .hh-h2 { margin-top: 0; }
.hh-note .hh-text { margin-bottom: 0; }

.hh-contact-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.hh-contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.hh-contact-item i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 255, 236, 0.1);
    color: var(--cyan);
    flex-shrink: 0;
}
.hh-contact-item h3 { font-family: "DM Sans", sans-serif; font-size: 15px; margin-bottom: 4px; }
.hh-contact-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* Play buttons */
.hh-play-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 18px 0 8px;
}
.hh-play-btns img { height: 48px; width: auto; }

/* Buttons */
.hh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.hh-btn-gold {
    width: 100%;
    background: linear-gradient(135deg, #ffe566, var(--gold));
    color: #1a1000;
}
.hh-btn-line {
    background: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}
.hh-btn-line:hover { background: rgba(20, 255, 236, 0.08); color: var(--cyan); }
.hh-btn-ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
}

/* Store */
.hh-alert {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    margin: 16px 0;
    background: rgba(255, 107, 138, 0.12);
    border: 1px solid rgba(255, 107, 138, 0.3);
    border-radius: 10px;
    color: #ffb3c4;
}
.hh-currency-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 18px 0;
}
.hh-currency-btn {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.hh-currency-btn.is-on {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(13, 115, 119, 0.25);
}
.hh-store-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
    margin-top: 20px;
}
.hh-coin-grid { display: flex; flex-direction: column; gap: 10px; }
.hh-coin-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: left;
}
.hh-coin-card:hover { border-color: rgba(20, 255, 236, 0.3); }
.hh-coin-card.is-picked { border-color: var(--gold); background: rgba(255, 215, 0, 0.06); }
.hh-coin-card img { width: 44px; height: 44px; object-fit: contain; }
.hh-coin-title { font-weight: 700; font-size: 15px; }
.hh-coin-price { font-weight: 800; color: var(--gold); white-space: nowrap; }
.hh-order-panel {
    position: sticky;
    top: 88px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.hh-order-panel .hh-h2 { margin-top: 0; font-size: 18px; }
.hh-field { margin-bottom: 14px; }
.hh-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hh-field input[type="text"],
.hh-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}
.hh-field input[readonly] { opacity: 0.75; }
.hh-picked-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
}
.hh-picked-price { font-weight: 800; color: var(--gold); }
.hh-pay-grid { display: flex; flex-direction: column; gap: 6px; }
.hh-pay-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}
.hh-pay-opt.is-picked { border-color: var(--cyan); background: rgba(20, 255, 236, 0.06); }
.hh-pay-opt input { accent-color: var(--cyan); }
.hh-agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--muted);
}
.hh-agree input { margin-top: 2px; accent-color: var(--gold); }
.hh-err { display: block; min-height: 16px; margin-top: 4px; color: var(--danger); font-size: 12px; }
.hh-load, .hh-empty { color: var(--muted); padding: 18px; text-align: center; }
.hh-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Confirm / result */
.hh-receipt {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-align: center;
}
.hh-receipt .hh-text { margin-left: auto; margin-right: auto; }
.hh-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
}
.hh-table th, .hh-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.hh-table th { width: 36%; color: var(--muted); font-weight: 600; }
.hh-sum { font-weight: 800; color: var(--gold); }
.hh-count { font-size: 40px; font-weight: 800; color: var(--gold); margin: 12px 0; }
.hh-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}
.hh-result { text-align: center; padding: 48px 16px; }
.hh-result i { font-size: 48px; margin-bottom: 12px; }
.hh-result.ok i { color: var(--ok); }
.hh-result.bad i { color: var(--danger); }
.hh-result p { color: var(--muted); max-width: 480px; margin: 0 auto 18px; }

/* Footer */
.hh-foot {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 28px 0 24px;
    background: rgba(10, 6, 18, 0.8);
}
.hh-foot-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.hh-foot-row strong { display: block; margin-bottom: 4px; }
.hh-foot-row span { display: block; color: var(--muted); font-size: 13px; }
.hh-foot-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.hh-foot-nav a { color: var(--muted); font-size: 13px; font-weight: 600; }
.hh-foot-copy { margin: 16px 0 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
    .hh-split { grid-template-columns: 1fr; }
    .hh-cards { grid-template-columns: 1fr; }
    .hh-shots { grid-template-columns: repeat(2, 1fr); }
    .hh-store-grid { grid-template-columns: 1fr; }
    .hh-order-panel { position: static; }
}

@media (max-width: 720px) {
    .hh-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .hh-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        background: rgba(18, 10, 31, 0.98);
        border-bottom: 1px solid var(--line);
        padding: 10px 20px 16px;
        display: none;
    }
    .hh-nav.is-open { display: block; }
    .hh-nav ul { flex-direction: column; align-items: stretch; }
    .hh-link-store { margin-left: 0; text-align: center; }
    .hh-top { position: relative; }
}
