:root {
    --hw-bg: #0c1024;
    --hw-panel: #141a36;
    --hw-panel-2: #1b2248;
    --hw-cyan: #00d4ff;
    --hw-violet: #a855f7;
    --hw-magenta: #ec4899;
    --hw-text: #eef2ff;
    --hw-muted: #94a3b8;
    --hw-line: rgba(0, 212, 255, 0.22);
    --hw-glow: 0 0 28px rgba(0, 212, 255, 0.25);
    --hw-radius: 18px;
    --hw-font: "Outfit", "Segoe UI", sans-serif;
    --hw-body: "DM Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--hw-body);
    color: var(--hw-text);
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(168, 85, 247, 0.35), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 212, 255, 0.2), transparent 50%),
        var(--hw-bg);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--hw-cyan); text-decoration: none; }
a:hover { color: #7eeaff; }

.hw-wrap { width: min(1140px, 92vw); margin: 0 auto; }

.hw-top {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(12, 16, 36, 0.88);
    border-bottom: 1px solid var(--hw-line);
}
.hw-top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 0;
}
.hw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
}
.hw-brand img { height: 52px; width: auto; display: block; }
.hw-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.hw-brand-text strong {
    font-family: var(--hw-font);
    font-size: 15px;
    letter-spacing: 0.04em;
}
.hw-brand-text span {
    font-size: 11px;
    color: var(--hw-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hw-menu-btn {
    margin-left: auto;
    display: none;
    border: 1px solid var(--hw-line);
    background: var(--hw-panel);
    color: var(--hw-text);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.hw-nav { margin-left: auto; }
.hw-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.hw-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    color: var(--hw-text);
    border: 1px solid transparent;
    transition: 0.2s ease;
}
.hw-nav a i { opacity: 0.85; font-size: 13px; }
.hw-nav a.is-active {
    border-color: var(--hw-line);
    background: rgba(0, 212, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.15);
}
.hw-nav a.hw-shop-cta {
    background: linear-gradient(120deg, var(--hw-violet), var(--hw-magenta));
    color: #fff;
    border: none;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
    padding: 11px 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.hw-nav a.hw-shop-cta:hover { filter: brightness(1.08); color: #fff; }
.hw-nav a.hw-shop-cta.is-active {
    box-shadow: 0 0 0 2px var(--hw-cyan), 0 10px 28px rgba(236, 72, 153, 0.45);
}

.hw-main { padding: 28px 0 56px; }

.hw-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.12);
    color: #b8f3ff;
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.hw-title {
    font-family: var(--hw-font);
    font-weight: 800;
    line-height: 1.15;
    margin: 12px 0 14px;
}
.hw-lead { color: #c7d2fe; max-width: 62ch; margin: 0 0 18px; }

.hw-intl {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 8px;
}
.hw-intl span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--hw-panel);
    border: 1px solid var(--hw-line);
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}
.hw-intl i { color: var(--hw-cyan); }

.hw-play-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 18px;
}
.hw-play-row a {
    display: inline-block;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--hw-line);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hw-play-row a:hover {
    transform: translateY(-2px);
    box-shadow: var(--hw-glow);
}
.hw-play-row img { height: 52px; width: auto; display: block; }

.hw-banner-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    padding: 28px 0 10px;
}
.hw-banner-art {
    position: relative;
    border-radius: calc(var(--hw-radius) + 6px);
    overflow: hidden;
    border: 1px solid var(--hw-line);
    box-shadow: var(--hw-glow);
}
.hw-banner-art img { width: 100%; display: block; vertical-align: middle; }
.hw-banner-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, transparent 55%, rgba(12, 16, 36, 0.55));
    pointer-events: none;
}

.hw-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.hw-card {
    background: linear-gradient(165deg, var(--hw-panel), var(--hw-panel-2));
    border: 1px solid var(--hw-line);
    border-radius: var(--hw-radius);
    padding: 20px;
}
.hw-card h3 {
    font-family: var(--hw-font);
    margin: 8px 0 10px;
    font-size: 20px;
}
.hw-card p { margin: 0; color: #c7d2fe; font-size: 15px; }
.hw-link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-weight: 700;
}

.hw-banner-wide {
    border-radius: calc(var(--hw-radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--hw-line);
    box-shadow: var(--hw-glow);
    margin-bottom: 8px;
}
.hw-banner-wide img {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.hw-portrait-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-top: 16px;
}
.hw-portrait-item {
    flex: 0 1 168px;
    width: min(168px, 42vw);
    margin: 0;
}
.hw-portrait-item img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 1px solid var(--hw-line);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
    display: block;
    background: var(--hw-panel);
}
.hw-portrait-item.is-square {
    flex: 0 1 120px;
    width: min(120px, 32vw);
}
.hw-portrait-item.is-square img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 8px;
    box-shadow: none;
}
.hw-portrait-item figcaption {
    margin-top: 8px;
    font-size: 12px;
    color: var(--hw-muted);
    text-align: center;
}

.hw-page-head { padding: 8px 0 20px; max-width: 760px; }

.hw-about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}
.hw-about-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.hw-about-gallery .hw-portrait-item {
    width: min(200px, 100%);
}
.hw-pill-list {
    display: grid;
    gap: 12px;
    margin: 16px 0;
}
.hw-pill {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.hw-pill h4 { margin: 0 0 6px; font-family: var(--hw-font); }
.hw-pill p { margin: 0; color: #c7d2fe; font-size: 14px; }

.hw-game-stage {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 28px;
    align-items: start;
}
.hw-game-stage .hw-portrait-item {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
}
.hw-feature-stack { display: grid; gap: 12px; margin-top: 18px; }
.hw-feature {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--hw-panel);
    border: 1px solid var(--hw-line);
}
.hw-feature i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.12);
    color: var(--hw-cyan);
}

.hw-contact-panel {
    display: grid;
    grid-template-columns: minmax(140px, 240px) 1fr;
    gap: 28px;
    align-items: start;
}
.hw-contact-panel figure {
    margin: 0;
    display: flex;
    justify-content: center;
}
.hw-contact-panel .hw-portrait-item {
    width: min(220px, 100%);
}
.hw-contact-list { display: grid; gap: 12px; }
.hw-contact-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: var(--hw-panel);
    border: 1px solid var(--hw-line);
}
.hw-contact-item i { color: var(--hw-violet); font-size: 18px; margin-top: 4px; }

.hw-shop-intro {
    padding: 18px 20px;
    border-radius: var(--hw-radius);
    background: linear-gradient(120deg, rgba(0, 212, 255, 0.08), rgba(168, 85, 247, 0.12));
    border: 1px solid var(--hw-line);
    margin-bottom: 22px;
}

.hw-shop-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}
.hw-gem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.hw-gem-card {
    cursor: pointer;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--hw-line);
    background: var(--hw-panel);
    text-align: center;
    transition: 0.2s ease;
}
.hw-gem-card.is-on {
    border-color: var(--hw-cyan);
    box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.35), var(--hw-glow);
}
.hw-gem-card img { width: 56px; height: 56px; object-fit: contain; }
.hw-gem-title { font-weight: 800; margin-top: 8px; font-size: 14px; }
.hw-gem-price { color: #fde68a; font-weight: 700; margin-top: 4px; }

.hw-order-box {
    position: sticky;
    top: 92px;
    padding: 20px;
    border-radius: var(--hw-radius);
    border: 2px solid rgba(236, 72, 153, 0.45);
    background: linear-gradient(180deg, #1a1438, var(--hw-panel));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hw-order-box h2 { margin-top: 0; font-family: var(--hw-font); }

.hw-field { margin-bottom: 14px; }
.hw-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #cbd5e1; }
.hw-field input[type="text"],
.hw-field input[type="email"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--hw-line);
    background: #0f1430;
    color: var(--hw-text);
}
.hw-pay-list { display: grid; gap: 8px; }
.hw-pay {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--hw-line);
    cursor: pointer;
    background: #0f1430;
}
.hw-pay.is-on { border-color: var(--hw-cyan); background: rgba(0, 212, 255, 0.08); }
.hw-pay input { accent-color: var(--hw-cyan); }
.hw-picked {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #0f1430;
    border: 1px dashed var(--hw-line);
    font-size: 14px;
}
.hw-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #cbd5e1; }
.hw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: var(--hw-font);
}
.hw-btn-primary {
    background: linear-gradient(120deg, var(--hw-violet), var(--hw-magenta));
    color: #fff;
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.35);
}
.hw-btn-ghost {
    background: transparent;
    border: 1px solid var(--hw-line);
    color: var(--hw-text);
}
.hw-money {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 18px;
}
.hw-money-btn {
    border: 1px solid var(--hw-line);
    background: var(--hw-panel);
    color: var(--hw-text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}
.hw-money-btn.is-on { border-color: var(--hw-cyan); color: #b8f3ff; }

.hw-delivery {
    margin: 28px 0 0;
    padding: 22px;
    border-radius: var(--hw-radius);
    border: 1px solid var(--hw-line);
    background: rgba(20, 26, 54, 0.85);
}
.hw-delivery h2 { margin-top: 0; font-family: var(--hw-font); font-size: 22px; }
.hw-delivery h3 { font-size: 16px; margin: 18px 0 8px; color: #b8f3ff; }
.hw-delivery p { margin: 0 0 10px; color: #c7d2fe; font-size: 14px; }

.hw-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(236, 72, 153, 0.12);
    border: 1px solid rgba(236, 72, 153, 0.35);
    margin-bottom: 16px;
}
.hw-err { color: #fda4af; font-size: 12px; display: block; margin-top: 4px; }
.hw-load, .hw-empty { color: var(--hw-muted); padding: 18px; text-align: center; }

.hw-honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.hw-confirm-card {
    max-width: 640px;
    margin: 0 auto;
    border-radius: var(--hw-radius);
    border: 1px solid var(--hw-line);
    overflow: hidden;
    background: var(--hw-panel);
}
.hw-confirm-card table { width: 100%; border-collapse: collapse; }
.hw-confirm-card th,
.hw-confirm-card td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--hw-line);
    text-align: left;
    font-size: 14px;
}
.hw-confirm-card th { width: 38%; color: var(--hw-muted); font-weight: 600; }
.hw-confirm-body { padding: 18px 16px 22px; }
.hw-count { font-size: 36px; font-weight: 800; font-family: var(--hw-font); color: var(--hw-cyan); }
.hw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.hw-result {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--hw-radius);
    border: 1px solid var(--hw-line);
    background: var(--hw-panel);
}
.hw-result i { font-size: 48px; margin-bottom: 10px; }
.hw-result.ok i { color: #4ade80; }
.hw-result.bad i { color: #fb7185; }

.hw-foot {
    margin-top: 40px;
    border-top: 1px solid var(--hw-line);
    background: #080b18;
}
.hw-foot-inner { padding: 28px 0 22px; }
.hw-foot-grid {
    display: grid;
    gap: 20px;
}
.hw-foot-home { grid-template-columns: 1.2fr 0.8fr 1fr; }
.hw-foot-about { grid-template-columns: 1fr 1fr; }
.hw-foot-game { grid-template-columns: 0.9fr 1.1fr; }
.hw-foot-contact { grid-template-columns: 1fr 1fr 1fr; }
.hw-foot-shop { grid-template-columns: 1.3fr 0.7fr; }
.hw-foot-mini { grid-template-columns: 1fr; text-align: center; }

.hw-foot h2 {
    font-family: var(--hw-font);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b8f3ff;
    margin: 0 0 10px;
}
.hw-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hw-foot a { color: #cbd5e1; }
.hw-foot a:hover { color: var(--hw-cyan); }
.hw-foot-note { color: var(--hw-muted); font-size: 13px; margin: 0; }
.hw-foot-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--hw-line);
    font-size: 13px;
    color: var(--hw-muted);
}
.hw-foot-shop-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(120deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
    border: 1px solid rgba(236, 72, 153, 0.35);
    font-weight: 800;
    color: #fff;
}

@media (max-width: 960px) {
    .hw-banner-split,
    .hw-about-layout,
    .hw-game-stage,
    .hw-contact-panel,
    .hw-shop-grid,
    .hw-grid-3,
    .hw-foot-home,
    .hw-foot-contact { grid-template-columns: 1fr; }
    .hw-order-box { position: static; }
}

@media (max-width: 720px) {
    .hw-menu-btn { display: inline-grid; place-items: center; }
    .hw-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: rgba(8, 11, 24, 0.98);
        border-bottom: 1px solid var(--hw-line);
        padding: 12px 4vw 16px;
    }
    .hw-nav.is-open { display: block; }
    .hw-nav ul { flex-direction: column; align-items: stretch; }
    .hw-nav a { justify-content: flex-start; }
    .hw-top-row { position: relative; flex-wrap: wrap; }
    .hw-brand-text strong { font-size: 13px; }
}
