:root {
    --hm-pine: #1a4d32;
    --hm-forest: #0f3322;
    --hm-gold: #d4a017;
    --hm-gold-light: #f0c84a;
    --hm-cream: #f6f3eb;
    --hm-paper: #fffdf8;
    --hm-moss: #2d6a4f;
    --hm-sage: #52796f;
    --hm-ink: #1c2b24;
    --hm-muted: #5c6b63;
    --hm-line: rgba(26, 77, 50, 0.12);
    --hm-danger: #c0392b;
    --hm-ok: #1e8449;
    --hm-shadow: 0 14px 40px rgba(15, 51, 34, 0.12);
    --hm-radius: 16px;
    --hm-font: 'DM Sans', system-ui, sans-serif;
    --hm-serif: 'Fraunces', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--hm-font);
    color: var(--hm-ink);
    background: var(--hm-cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hm-pine); text-decoration: none; }
a:hover { color: var(--hm-gold); }

.hm-wrap { width: min(1140px, 92vw); margin: 0 auto; }
.hm-frame { min-height: 100vh; display: flex; flex-direction: column; }
.hm-main { flex: 1; padding: 28px 0 48px; }

/* Masthead */
.hm-mast {
    background: linear-gradient(180deg, var(--hm-forest) 0%, var(--hm-pine) 100%);
    color: #fff;
    border-bottom: 4px solid var(--hm-gold);
}
.hm-mast-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 12px;
}
.hm-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    min-width: 0;
}
.hm-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.hm-brand-stack { display: flex; flex-direction: column; min-width: 0; }
.hm-brand-stack strong {
    font-family: var(--hm-serif);
    font-size: clamp(16px, 2.4vw, 22px);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-brand-stack em {
    font-style: normal;
    font-size: 12px;
    opacity: 0.78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hm-mast-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hm-intl-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
}
.hm-shop-pulse {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hm-gold-light), var(--hm-gold));
    color: var(--hm-forest);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(212, 160, 23, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hm-shop-pulse:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212, 160, 23, 0.55); color: var(--hm-forest); }
.hm-shop-pulse.is-on { outline: 2px solid #fff; outline-offset: 2px; }

.hm-navtrack-wrap { padding-bottom: 14px; position: relative; }
.hm-nav-toggle {
    display: none;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    margin-bottom: 8px;
}
.hm-navtrack ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hm-navlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    color: rgba(255,255,255,0.88);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s;
}
.hm-navlink i { opacity: 0.85; font-size: 13px; }
.hm-navlink:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hm-navlink.is-active { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.25); color: #fff; }
.hm-navlink-store {
    background: linear-gradient(135deg, var(--hm-gold-light), var(--hm-gold));
    color: var(--hm-forest) !important;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(212,160,23,0.35);
}
.hm-navlink-store.is-active { outline: 2px solid #fff; outline-offset: 1px; }

/* Typography blocks */
.hm-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hm-gold);
}
.hm-title {
    font-family: var(--hm-serif);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    margin: 10px 0 14px;
    color: var(--hm-forest);
}
.hm-lead { font-size: 17px; color: var(--hm-muted); max-width: 62ch; margin: 0 0 20px; }

/* Home spotlight */
.hm-spotlight {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
}
.hm-spotlight-panel {
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 28px;
    box-shadow: var(--hm-shadow);
}
.hm-spotlight-art {
    position: relative;
    border-radius: var(--hm-radius);
    overflow: hidden;
    border: 3px solid var(--hm-gold);
}
.hm-spotlight-art img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.hm-play-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.hm-play-btn { display: inline-block; line-height: 0; transition: transform 0.2s; }
.hm-play-btn img { height: 48px; width: auto; }
.hm-play-btn:hover { transform: scale(1.04); }
.hm-play-btn.is-muted { opacity: 0.55; cursor: default; }

.hm-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.hm-band-card {
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
    border-radius: var(--hm-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hm-band-card h3 { margin: 0; font-size: 17px; color: var(--hm-pine); }
.hm-band-card p { margin: 0; font-size: 14px; color: var(--hm-muted); flex: 1; }
.hm-band-card .hm-more {
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.hm-intl-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}
.hm-intl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26,77,50,0.08);
    border: 1px solid var(--hm-line);
    font-size: 13px;
    font-weight: 700;
    color: var(--hm-pine);
}
.hm-intl-chip i { color: var(--hm-gold); }

.hm-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}
.hm-gallery img {
    border-radius: 12px;
    border: 1px solid var(--hm-line);
    aspect-ratio: 1;
    object-fit: cover;
}

/* About page */
.hm-about-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}
.hm-about-photo {
    border-radius: var(--hm-radius);
    overflow: hidden;
    border: 2px solid var(--hm-gold);
    box-shadow: var(--hm-shadow);
}
.hm-about-photo img { width: 100%; max-height: 220px; object-fit: cover; }
.hm-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}
.hm-pillar {
    background: var(--hm-paper);
    border-left: 4px solid var(--hm-gold);
    padding: 16px 18px;
    border-radius: 0 12px 12px 0;
    border: 1px solid var(--hm-line);
    border-left-width: 4px;
}
.hm-pillar h4 { margin: 0 0 6px; font-size: 14px; color: var(--hm-pine); }
.hm-pillar p { margin: 0; font-size: 14px; color: var(--hm-muted); }

/* Game page */
.hm-game-intro {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 28px;
}
.hm-game-logo {
    background: var(--hm-paper);
    border-radius: var(--hm-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid var(--hm-line);
}
.hm-game-logo img { max-width: 200px; margin: 0 auto 12px; border-radius: 12px; }
.hm-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 24px;
}
.hm-feature {
    background: var(--hm-paper);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--hm-line);
}
.hm-feature h4 {
    margin: 0 0 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-pine);
}
.hm-feature h4 i { color: var(--hm-gold); }
.hm-feature p { margin: 0; font-size: 14px; color: var(--hm-muted); }

/* Contact page */
.hm-contact-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 28px;
    align-items: start;
}
.hm-contact-card {
    background: var(--hm-paper);
    border-radius: var(--hm-radius);
    padding: 28px;
    border: 1px solid var(--hm-line);
    box-shadow: var(--hm-shadow);
}
.hm-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hm-line);
}
.hm-contact-row:last-child { border-bottom: none; }
.hm-contact-row i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,77,50,0.1);
    color: var(--hm-pine);
    border-radius: 10px;
    flex-shrink: 0;
}
.hm-contact-row strong { display: block; font-size: 13px; color: var(--hm-muted); margin-bottom: 2px; }
.hm-contact-row span, .hm-contact-row a { font-size: 15px; font-weight: 600; }
.hm-contact-side img {
    border-radius: 12px;
    border: 2px solid var(--hm-gold);
    max-height: 180px;
    object-fit: cover;
    width: 100%;
}

/* Shop */
.hm-shop-banner {
    background: linear-gradient(135deg, var(--hm-forest), var(--hm-moss));
    color: #fff;
    border-radius: var(--hm-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.hm-shop-banner h1 { margin: 0; font-family: var(--hm-serif); font-size: 28px; color: #fff; }
.hm-shop-banner p { margin: 8px 0 0; opacity: 0.88; max-width: 62ch; font-size: 14px; }

.hm-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: var(--hm-danger);
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 14px;
}

.hm-coin-notes {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.hm-coin-notes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--hm-muted);
    background: var(--hm-paper);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--hm-line);
}
.hm-coin-notes li i { color: var(--hm-gold); margin-top: 2px; }

.hm-money-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.hm-money-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--hm-line);
    background: var(--hm-paper);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    color: var(--hm-ink);
}
.hm-money-btn.is-on {
    background: var(--hm-pine);
    color: #fff;
    border-color: var(--hm-pine);
}

.hm-order-panel {
    background: var(--hm-paper);
    border: 2px solid var(--hm-gold);
    border-radius: var(--hm-radius);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--hm-shadow);
}
.hm-order-panel h2 {
    margin: 0 0 18px;
    font-size: 20px;
    color: var(--hm-forest);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hm-order-panel h2 i { color: var(--hm-gold); }

.hm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.hm-field { display: flex; flex-direction: column; gap: 6px; }
.hm-field label { font-size: 13px; font-weight: 700; color: var(--hm-muted); }
.hm-field input[type="text"],
.hm-field input[type="email"] {
    padding: 11px 14px;
    border: 1px solid var(--hm-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}
.hm-field input[readonly] { background: var(--hm-cream); color: var(--hm-muted); }
.hm-field-full { grid-column: 1 / -1; }

.hm-picked {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: var(--hm-cream);
    border-radius: 10px;
    border: 1px dashed var(--hm-gold);
}
.hm-picked-name { font-weight: 700; }
.hm-picked-price { font-weight: 800; color: var(--hm-pine); font-size: 18px; }

.hm-pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--hm-line);
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}
.hm-pay input { display: none; }
.hm-pay.is-on { border-color: var(--hm-pine); background: rgba(26,77,50,0.08); }
.hm-pay i { color: var(--hm-gold); }

.hm-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--hm-muted);
}
.hm-agree input { margin-top: 3px; }
.hm-agree a { font-weight: 700; }

.hm-err { font-size: 12px; color: var(--hm-danger); min-height: 16px; font-weight: 600; }

.hm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hm-btn-gold {
    background: linear-gradient(135deg, var(--hm-gold-light), var(--hm-gold));
    color: var(--hm-forest);
    box-shadow: 0 4px 16px rgba(212,160,23,0.35);
}
.hm-btn-gold:hover { transform: translateY(-2px); }
.hm-btn-ghost {
    background: transparent;
    border: 2px solid var(--hm-line);
    color: var(--hm-pine);
}
.hm-btn-block { width: 100%; margin-top: 8px; }

.hm-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.hm-pack-scroll-wrap {
    margin-bottom: 24px;
}
.hm-pack-scroll-wrap h2 {
    font-size: 18px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-forest);
}
.hm-pack-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.hm-pack {
    flex: 0 0 200px;
    scroll-snap-align: start;
    background: var(--hm-paper);
    border: 2px solid var(--hm-line);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
    text-align: center;
}
.hm-pack:hover { transform: translateY(-3px); }
.hm-pack.is-on { border-color: var(--hm-gold); box-shadow: 0 6px 20px rgba(212,160,23,0.25); }
.hm-pack img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 10px; }
.hm-pack-title { font-weight: 800; font-size: 15px; color: var(--hm-pine); margin-bottom: 4px; }
.hm-pack-price { font-size: 20px; font-weight: 800; color: var(--hm-gold); }

.hm-load, .hm-empty {
    padding: 24px;
    text-align: center;
    color: var(--hm-muted);
    background: var(--hm-paper);
    border-radius: 12px;
    border: 1px dashed var(--hm-line);
}

/* Confirm / result pages */
.hm-receipt {
    max-width: 560px;
    margin: 0 auto;
    background: var(--hm-paper);
    border: 2px solid var(--hm-gold);
    border-radius: var(--hm-radius);
    padding: 32px;
    box-shadow: var(--hm-shadow);
    text-align: center;
}
.hm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    text-align: left;
    font-size: 14px;
}
.hm-table th, .hm-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hm-line);
}
.hm-table th { color: var(--hm-muted); font-weight: 700; width: 38%; }
.hm-table .hm-total { font-weight: 800; color: var(--hm-pine); font-size: 18px; }
.hm-count { font-size: 48px; font-weight: 800; color: var(--hm-gold); margin: 12px 0; }
.hm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }

.hm-result {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--hm-radius);
    background: var(--hm-paper);
    border: 1px solid var(--hm-line);
    box-shadow: var(--hm-shadow);
}
.hm-result i { font-size: 52px; margin-bottom: 16px; }
.hm-result.ok i { color: var(--hm-ok); }
.hm-result.bad i { color: var(--hm-danger); }
.hm-result.bad.dashed { border-style: dashed; }

/* Footer */
.hm-base {
    background: var(--hm-forest);
    color: rgba(255,255,255,0.88);
    padding: 32px 0 0;
    margin-top: auto;
}
.hm-base a { color: rgba(255,255,255,0.9); }
.hm-base a:hover { color: var(--hm-gold-light); }
.hm-base-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 24px;
}
.hm-base-col img { width: 48px; margin-bottom: 10px; border-radius: 8px; }
.hm-base-col strong { display: block; font-family: var(--hm-serif); margin-bottom: 6px; }
.hm-base-col h3 {
    font-size: 14px;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--hm-gold-light);
}
.hm-base-col a, .hm-base-col span { display: block; font-size: 13px; margin-bottom: 6px; }
.hm-base-col p { font-size: 13px; opacity: 0.8; margin: 0; }

.hm-base-quote { text-align: center; padding-bottom: 20px; }
.hm-base-quote blockquote {
    margin: 0 0 16px;
    font-family: var(--hm-serif);
    font-size: 18px;
    font-style: italic;
    opacity: 0.92;
}
.hm-base-quote blockquote i { color: var(--hm-gold); margin-right: 8px; }

.hm-base-play { text-align: center; padding-bottom: 20px; }
.hm-base-play p { margin: 0 0 12px; font-weight: 700; }
.hm-base-play .hm-play-strip { justify-content: center; margin-bottom: 14px; }

.hm-base-contact { padding-bottom: 20px; }
.hm-base-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.hm-base-contact-card i { font-size: 28px; color: var(--hm-gold-light); }
.hm-base-contact-card strong { display: block; }
.hm-base-contact-card span { font-size: 13px; opacity: 0.85; }

.hm-base-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
}
.hm-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}
.hm-trust-item i { color: var(--hm-gold-light); }

.hm-base-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.hm-base-mini a { font-size: 13px; font-weight: 700; }

.hm-base-copy {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 14px 0;
    text-align: center;
}
.hm-base-copy p { margin: 0; font-size: 12px; opacity: 0.65; }

/* Page skins */
.hm-skin-senthyr .hm-title { color: var(--hm-moss); }
.hm-skin-shop .hm-main { background: linear-gradient(180deg, rgba(212,160,23,0.06) 0%, transparent 120px); }

@media (max-width: 960px) {
    .hm-spotlight, .hm-about-layout, .hm-game-intro, .hm-contact-grid { grid-template-columns: 1fr; }
    .hm-band, .hm-gallery { grid-template-columns: repeat(2, 1fr); }
    .hm-form-grid { grid-template-columns: 1fr; }
    .hm-base-grid { grid-template-columns: 1fr 1fr; }
    .hm-features { grid-template-columns: 1fr; }
    .hm-about-photo { max-width: 280px; }
}

@media (max-width: 640px) {
    .hm-mast-top { flex-wrap: wrap; }
    .hm-intl-badge { display: none; }
    .hm-nav-toggle { display: inline-flex; }
    .hm-navtrack ul {
        display: none;
        flex-direction: column;
        background: rgba(0,0,0,0.2);
        padding: 10px;
        border-radius: 12px;
    }
    .hm-navtrack.is-open ul { display: flex; }
    .hm-band, .hm-gallery, .hm-pillars { grid-template-columns: 1fr; }
    .hm-base-grid { grid-template-columns: 1fr; }
}
