:root {
    --bg: #041926;
    --bg-2: #0a3044;
    --panel: rgba(8, 42, 62, 0.9);
    --ink: #eef9ff;
    --muted: #9fc0d4;
    --ice: #5ce1ff;
    --deep: #0d6e9a;
    --glow: #b8f3ff;
    --accent: #ff8f5c;
    --shop: linear-gradient(135deg, #ff8f5c 0%, #2ec7ff 55%, #7af0c8 100%);
    --line: rgba(92, 225, 255, 0.22);
    --radius: 20px;
    --rail: 250px;
    --page: 1200px;
    --font: "Manrope", "Sora", sans-serif;
    --display: "Sora", "Manrope", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(820px 460px at 8% -8%, rgba(92, 225, 255, 0.2), transparent 58%),
        radial-gradient(640px 380px at 100% 4%, rgba(255, 143, 92, 0.14), transparent 52%),
        linear-gradient(165deg, var(--bg), var(--bg-2) 48%, #052032);
    min-height: 100vh;
}
a { color: var(--ice); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

.ha-shell {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    min-height: 100vh;
}
.ha-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(6, 38, 58, 0.96), rgba(4, 25, 38, 0.94)),
        repeating-linear-gradient(-12deg, transparent, transparent 14px, rgba(92, 225, 255, 0.035) 15px);
    z-index: 40;
}
.ha-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.ha-brand img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
}
.ha-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.ha-brand-text strong {
    font-family: var(--display);
    font-size: 0.92rem;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.ha-brand-text em {
    font-style: normal;
    color: var(--muted);
    font-size: 0.75rem;
}
.ha-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(92, 225, 255, 0.08);
    color: var(--ice);
    cursor: pointer;
}
.ha-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ha-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--muted);
    border: 1px solid transparent;
    background: rgba(255,255,255,0.02);
    transition: 0.2s ease;
    font-weight: 600;
    font-size: 0.94rem;
}
.ha-nav-link i { width: 18px; text-align: center; }
.ha-nav-link:hover,
.ha-nav-link.is-active {
    color: #fff;
    border-color: rgba(92, 225, 255, 0.35);
    background: linear-gradient(90deg, rgba(92, 225, 255, 0.16), rgba(255, 143, 92, 0.08));
}
.ha-nav-link.is-shop {
    margin-top: 10px;
    color: #041926;
    font-weight: 800;
    border: none;
    background: var(--shop);
    box-shadow: 0 12px 30px rgba(46, 199, 255, 0.28);
}
.ha-nav-link.is-shop:hover { filter: brightness(1.06); color: #041926; }
.ha-nav-home .ha-nav-link.is-active { box-shadow: inset 3px 0 0 var(--ice); }
.ha-nav-about .ha-nav-link.is-active { box-shadow: inset 3px 0 0 #7af0c8; }
.ha-nav-game .ha-nav-link.is-active { box-shadow: inset 3px 0 0 var(--accent); }
.ha-nav-contact .ha-nav-link.is-active { box-shadow: inset 3px 0 0 #9ad7ff; }
.ha-nav-shop .ha-nav-link.is-shop.is-active { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 2px; }
.ha-rail-apps {
    margin-top: auto;
    display: grid;
    gap: 10px;
}
.ha-app-link img {
    width: 100%;
    aspect-ratio: 499 / 171;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.ha-app-link:hover img { transform: translateY(-2px); }

.ha-stage { min-width: 0; display: flex; flex-direction: column; }
.ha-content { flex: 1; padding: 30px 0 52px; }
.ha-canvas {
    width: min(var(--page), calc(100% - 48px));
    margin: 0 auto;
}

.ha-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--glow);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ha-heading {
    margin: 10px 0 12px;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.ha-lead {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 62ch;
}
.ha-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.ha-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #fff;
    font-weight: 700;
    background: rgba(255,255,255,0.04);
}
.ha-btn-glow {
    border: none;
    color: #041926;
    background: var(--shop);
    box-shadow: 0 12px 30px rgba(92, 225, 255, 0.22);
}
.ha-btn-ghost { background: transparent; }
.ha-store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.ha-store-row img {
    height: 52px;
    width: auto;
    aspect-ratio: 499 / 171;
}

.ha-mast {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 42px;
}
.ha-mast-visual {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    aspect-ratio: 1024 / 500;
}
.ha-mast-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ha-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 40px;
}
.ha-card {
    padding: 22px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}
.ha-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.ha-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.ha-card i { color: var(--ice); margin-bottom: 10px; font-size: 1.25rem; }

.ha-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    margin: 36px 0;
}
.ha-duo.flip { direction: rtl; }
.ha-duo.flip > * { direction: ltr; }
.ha-panel {
    padding: 24px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.ha-panel h2 { margin-top: 0; font-family: var(--display); }
.ha-panel p, .ha-prose p {
    color: var(--muted);
    line-height: 1.75;
}
.ha-frame {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(0,0,0,0.2);
}
.ha-frame img {
    width: 100%;
    height: auto;
}
.ha-phone {
    max-width: 280px;
    margin: 0 auto;
    aspect-ratio: 800 / 1280;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.ha-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ha-icon-sq {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.ha-icon-sq img { width: 100%; height: 100%; object-fit: cover; }

.ha-chip-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 18px;
}
.ha-chip {
    padding: 14px;
    text-align: center;
    border-radius: 16px;
    background: rgba(92, 225, 255, 0.08);
    border: 1px solid rgba(92, 225, 255, 0.18);
    font-weight: 700;
    font-size: 0.9rem;
}

.ha-feature-stack { display: grid; gap: 14px; margin: 24px 0; }
.ha-feature {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
}
.ha-feature i {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(92,225,255,0.22), rgba(255,143,92,0.18));
    color: #fff;
}
.ha-feature h3 { margin: 0 0 6px; font-size: 1.02rem; }
.ha-feature p { margin: 0; color: var(--muted); line-height: 1.6; }

.ha-about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    margin-top: 28px;
}
.ha-about-photos {
    display: grid;
    gap: 14px;
}
.ha-about-photos .ha-phone { max-width: 220px; }
.ha-stat-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 28px 0;
}
.ha-stat {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(160deg, rgba(92,225,255,0.1), rgba(8,42,62,0.8));
}
.ha-stat i { color: var(--accent); margin-bottom: 10px; }
.ha-stat h3 { margin: 0 0 8px; font-size: 1rem; }
.ha-stat p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.ha-game-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    margin-top: 24px;
}
.ha-game-shots {
    display: grid;
    gap: 12px;
}
.ha-game-shots .ha-phone { max-width: 100%; }
.ha-check-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 20px;
}
.ha-check {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.ha-check i {
    color: #7af0c8;
    margin-top: 3px;
}

.ha-contact-board {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 22px;
    margin-top: 24px;
}
.ha-contact-card {
    padding: 22px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid var(--line);
}
.ha-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.ha-contact-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}
.ha-contact-list i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(92, 225, 255, 0.12);
    color: var(--ice);
}
.ha-contact-list strong { display: block; margin-bottom: 4px; }
.ha-contact-list span, .ha-contact-list a { color: var(--muted); }
.ha-contact-visual {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 1024 / 500;
}
.ha-contact-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ha-notes {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.ha-notes li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    color: var(--muted);
    line-height: 1.55;
}
.ha-notes i { color: var(--ice); margin-top: 3px; }
.ha-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 120, 100, 0.35);
    background: rgba(255, 80, 60, 0.12);
    color: #ffd7cf;
}
.ha-money-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0;
}
.ha-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-weight: 700;
}
.ha-money-btn.is-on {
    background: rgba(92, 225, 255, 0.18);
    border-color: rgba(92, 225, 255, 0.45);
}
.ha-shop-desk {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    margin-top: 18px;
    align-items: start;
}
.ha-pack-col h2, .ha-order-box h2 {
    margin: 0 0 14px;
    font-family: var(--display);
    font-size: 1.25rem;
}
.ha-pack-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 700px;
    overflow-y: auto;
    padding-right: 4px;
    align-content: start;
}
.ha-pack {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: 0.18s ease;
}
.ha-pack:hover, .ha-pack.is-on {
    border-color: rgba(92, 225, 255, 0.5);
    background: rgba(92, 225, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(92, 225, 255, 0.15);
}
.ha-pack img {
    width: 28px;
    height: 29px;
    object-fit: contain;
    grid-row: 1 / span 2;
}
.ha-pack-title {
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}
.ha-pack-price {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--accent);
    white-space: nowrap;
}
.ha-order-box {
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255,143,92,0.12), rgba(8,42,62,0.95));
    border: 1px solid rgba(255, 143, 92, 0.35);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.ha-field { margin-bottom: 14px; }
.ha-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--glow);
}
.ha-field input[type="text"],
.ha-field input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(4, 25, 38, 0.7);
    color: #fff;
    font: inherit;
}
.ha-field input[readonly] { opacity: 0.85; }
.ha-picked {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--line);
}
.ha-picked-price { color: var(--accent); font-weight: 800; }
.ha-pay-list { display: grid; gap: 8px; }
.ha-pay {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
}
.ha-pay.is-on {
    border-color: rgba(92, 225, 255, 0.55);
    background: rgba(92, 225, 255, 0.12);
}
.ha-pay input { accent-color: var(--ice); }
.ha-agree {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.ha-err {
    display: block;
    min-height: 1.1em;
    margin-top: 6px;
    color: #ffb4a8;
    font-size: 0.84rem;
}
.ha-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}
.ha-load, .ha-empty { color: var(--muted); padding: 16px 0; }
.ha-order-box .ha-btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.ha-delivery {
    margin-top: 36px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
}
.ha-delivery-title {
    margin: 0 0 16px;
    font-family: var(--display);
}
.ha-delivery-block { margin-bottom: 16px; }
.ha-delivery-block:last-child { margin-bottom: 0; }
.ha-delivery-block h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}
.ha-delivery-block p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.ha-receipt, .ha-status {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--panel);
    text-align: center;
}
.ha-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    text-align: left;
}
.ha-table th, .ha-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ha-table th { width: 36%; color: var(--muted); font-weight: 600; }
.ha-total { color: var(--accent); font-weight: 800; }
.ha-count {
    font-family: var(--display);
    font-size: 2.4rem;
    margin: 10px 0 18px;
    color: var(--ice);
}
.ha-status i { font-size: 2.4rem; margin-bottom: 10px; }
.ha-status.is-ok i { color: #7af0c8; }
.ha-status.is-bad i { color: #ff8f7a; }

.ha-foot {
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
    background: rgba(3, 18, 28, 0.7);
}
.ha-foot-grid {
    display: grid;
    gap: 22px;
}
.ha-foot-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.ha-foot-brand img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}
.ha-foot-brand strong { display: block; margin-bottom: 4px; }
.ha-foot-brand span { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.ha-foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ha-foot-cols h3 {
    margin: 0 0 10px;
    font-size: 0.95rem;
}
.ha-foot-cols a {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}
.ha-foot-copy {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 1100px) {
    .ha-mast, .ha-duo, .ha-about-grid, .ha-game-layout, .ha-contact-board, .ha-shop-desk {
        grid-template-columns: 1fr;
    }
    .ha-card-row, .ha-stat-board, .ha-chip-row, .ha-check-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .ha-shell { grid-template-columns: 1fr; }
    .ha-rail {
        position: sticky;
        top: 0;
        height: auto;
        z-index: 50;
    }
    .ha-menu-btn { display: inline-grid; place-items: center; margin-left: auto; }
    .ha-brand { flex: 1; }
    .ha-rail {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .ha-nav {
        display: none;
        width: 100%;
    }
    .ha-nav.is-open { display: block; }
    .ha-rail-apps {
        width: 100%;
        grid-template-columns: 1fr 1fr;
        margin-top: 0;
    }
}
@media (max-width: 640px) {
    .ha-canvas { width: calc(100% - 28px); }
    .ha-card-row, .ha-stat-board, .ha-chip-row, .ha-check-grid, .ha-foot-cols {
        grid-template-columns: 1fr;
    }
    .ha-pack-list { grid-template-columns: 1fr; max-height: 320px; }
    .ha-brand-text strong { font-size: 0.8rem; }
    .ha-rail-apps { grid-template-columns: 1fr; }
}
