@font-face {
    font-family: "MoonlitFlow-Hain";
    src: url("/assets/fonts/MoonlitFlow-Hain.ttf?v=soul-v15") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MoonlitFlow-Hain";
    src: url("/assets/fonts/MoonlitFlow-Hain.ttf?v=soul-v15") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MoonlitFlow-Hain";
    src: url("/assets/fonts/MoonlitFlow-Hain.ttf?v=soul-v15") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-main: "MoonlitFlow-Hain", "Cinzel", "Marcellus SC", "Inter", "Segoe UI", system-ui, sans-serif;
    /* Sampled directly from H.A.I.N. In-Game Menu (Cold Soul Blue-Green & Crypt Charcoal) */
    --bg-base: #080a0b;
    --bg-elevated: #090f0d;
    --bg-surface: rgba(13, 21, 19, 0.88);
    --soul-core: #3e6f5c;
    --soul-mid: #4e7d69;
    --soul-bright: #7fb8a0;
    --soul-mist: #a6d4c0;
    --border-subtle: rgba(111, 168, 145, 0.24);
    --border-accent: #6ba38b;
    --text-primary: #f2f7f5;
    --text-muted: #9aa8a3;
    --accent: #3e6f5c;
    --accent-hover: #89c4ab;
    --amber: #7fb8a0;
    /* Fire-Yellow / Torch-Gold Hover Accent */
    --fire-border: #ffd166;
    --fire-core: #f59e0b;
    --fire-deep: #b45309;
    --fire-glow: rgba(255, 195, 0, 0.62);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-glow: 0 0 32px -6px rgba(78, 125, 105, 0.52), inset 0 0 18px rgba(127, 184, 160, 0.1);
    --transition-gpu: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: var(--font-main) !important;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main) !important;
    font-size: 16px;
}

body.hg-body {
    margin: 0;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main) !important;
    font-size: clamp(1.12rem, 1.3vw, 1.25rem);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
p, a, span, div, li, td, th,
label, small, strong, em, code, pre,
button, input, textarea, select {
    font-family: var(--font-main) !important;
}

p, li {
    font-size: clamp(1.12rem, 1.3vw, 1.25rem);
    line-height: 1.55;
}

.hg-ambient-glow {
    position: fixed;
    inset: -15vh -10vw auto auto;
    width: 62vw;
    height: 62vh;
    background: radial-gradient(circle, rgba(78, 125, 105, 0.24) 0%, rgba(8, 10, 11, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hg-container {
    width: min(1180px, 92vw);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
.hg-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(8, 11, 11, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-accent);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.78), 0 1px 16px rgba(78, 125, 105, 0.3);
}

.hg-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1rem;
}

.hg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    font-size: clamp(1.25rem, 1.6vw, 1.5rem);
    text-shadow: 0 0 14px rgba(127, 184, 160, 0.38);
}

.hg-brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--soul-mid), #1d382e);
    border: 1px solid var(--border-accent);
    color: #fff;
    font-weight: 800;
}

.hg-brand-logo {
    width: auto;
    height: 54px;
    max-width: 155px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px rgba(127, 184, 160, 0.45));
    transition: transform 200ms ease, filter 200ms ease;
}

.hg-brand:hover .hg-brand-logo {
    transform: scale(1.04);
    filter: drop-shadow(0 0 14px rgba(255, 209, 102, 0.58));
}

.hg-steam-widget-wrap {
    margin-top: 1.5rem;
    max-width: 646px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.hg-steam-widget-wrap iframe {
    width: 100%;
    max-width: 646px;
    height: 190px;
    border: 0;
    display: block;
}

.hg-inline-meta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.hg-inline-meta-form input[type="text"] {
    padding: 0.35rem 0.55rem;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 1rem;
    min-width: 110px;
}

.hg-nav {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.hg-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(1.08rem, 1.25vw, 1.2rem);
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease, background 180ms ease;
}

.hg-nav-link.is-active {
    color: var(--text-primary);
    background: linear-gradient(90deg, rgba(62, 111, 92, 0.18) 0%, rgba(78, 125, 105, 0.55) 50%, rgba(62, 111, 92, 0.18) 100%);
    text-shadow: 0 0 12px rgba(166, 212, 192, 0.65);
}

.hg-nav-link:hover {
    color: #fff6d6;
    text-shadow: 0 0 14px var(--fire-glow);
}

.hg-nav-pill {
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-accent);
    color: var(--text-primary);
    box-shadow: 0 0 12px rgba(78, 125, 105, 0.28);
}

.hg-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    font-size: 0.98rem;
    box-shadow: inset 0 0 10px rgba(78, 125, 105, 0.2);
}

.hg-lang-btn {
    color: var(--text-muted);
    background: transparent;
    border: 0;
    padding: 0.1rem 0.25rem;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: inherit;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.hg-lang-btn.is-active {
    color: var(--soul-mist);
    text-shadow: 0 0 10px rgba(127, 184, 160, 0.65);
}

.hg-lang-btn:hover {
    color: var(--fire-border);
    text-shadow: 0 0 10px var(--fire-glow);
}

.hg-lang-sep {
    color: rgba(127, 184, 160, 0.35);
}

.hg-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
}

.hg-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--soul-mist);
}

/* Typography & Sections */
.hg-hero,
.hg-page-hero {
    padding: clamp(3.5rem, 6.5vw, 5.5rem) 0 clamp(2.5rem, 4.5vw, 3.75rem);
    border-bottom: 1px solid var(--border-subtle);
}

.hg-hero-hain {
    background: radial-gradient(circle at 80% 20%, rgba(78, 125, 105, 0.24), transparent 60%);
}

.hg-hero-ec {
    background: radial-gradient(circle at 80% 20%, rgba(62, 111, 92, 0.22), transparent 60%);
}

.hg-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2.25rem;
    align-items: center;
}

.hg-eyebrow,
.hg-kicker {
    display: inline-block;
    font-size: clamp(0.95rem, 1.1vw, 1.08rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--soul-mist);
    text-shadow: 0 0 12px rgba(78, 125, 105, 0.6);
    margin-bottom: 0.65rem;
}

.hg-hero-title,
h1,
h2,
h3,
.hg-brand-text {
    font-family: var(--font-main) !important;
    letter-spacing: 0.02em;
}

.hg-hero-title,
h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    line-height: 1.12;
    color: var(--text-primary);
    text-shadow: 0 0 24px rgba(78, 125, 105, 0.5), 0 2px 10px rgba(0, 0, 0, 0.9);
}

h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    line-height: 1.18;
    color: var(--text-primary);
    text-shadow: 0 0 16px rgba(78, 125, 105, 0.42);
}

h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 1.8vw, 1.65rem);
    line-height: 1.24;
    color: var(--soul-mist);
    text-shadow: 0 0 12px rgba(78, 125, 105, 0.35);
}

.hg-hero-sub {
    color: var(--text-muted);
    font-size: clamp(1.22rem, 1.55vw, 1.42rem);
    line-height: 1.5;
    max-width: 58ch;
    margin: 0 0 1.75rem;
}

.hg-video-panel {
    padding: 1rem;
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

/* Unified Designer Features Panel (Cold Soul Edition + Fire-Yellow Hover) */
.hg-feature-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(16, 28, 24, 0.95) 0%, rgba(8, 12, 11, 0.98) 100%);
    border: 1px solid var(--border-accent);
    border-top: 2px solid var(--soul-bright);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    box-shadow: var(--shadow-glow), 0 20px 50px -24px rgba(0, 0, 0, 0.9);
    transition: var(--transition-gpu), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hg-feature-panel:hover {
    transform: translateY(-2px);
    border-color: var(--fire-border);
    border-top-color: var(--fire-border);
    box-shadow: 0 18px 46px -14px rgba(0, 0, 0, 0.92), 0 0 32px var(--fire-glow), inset 0 0 22px rgba(255, 209, 102, 0.16);
}

.hg-feature-panel-head {
    padding-bottom: 1.35rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 220ms ease;
}

.hg-feature-panel:hover .hg-feature-panel-head {
    border-bottom-color: rgba(255, 209, 102, 0.35);
}

.hg-feature-panel-head h2 {
    margin: 0;
    transition: color 200ms ease, text-shadow 200ms ease;
}

.hg-feature-panel:hover .hg-feature-panel-head h2 {
    color: #fff6d6;
    text-shadow: 0 0 18px var(--fire-glow);
}

.hg-feature-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;
}

.hg-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: transform 200ms ease, background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.hg-feature-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.16) 0%, rgba(245, 158, 11, 0.22) 50%, rgba(180, 83, 9, 0.12) 100%);
    border-color: var(--fire-border);
    box-shadow: 0 0 22px rgba(255, 195, 0, 0.36), inset 0 0 12px rgba(255, 209, 102, 0.14);
}

.hg-feature-num {
    font-family: var(--font-main) !important;
    font-size: clamp(1.5rem, 2vw, 1.85rem);
    font-weight: 700;
    color: var(--soul-mist);
    text-shadow: 0 0 14px rgba(78, 125, 105, 0.65);
    letter-spacing: 0.06em;
    line-height: 1.25;
    flex-shrink: 0;
    transition: color 200ms ease, text-shadow 200ms ease;
}

.hg-feature-item:hover .hg-feature-num {
    color: var(--fire-border);
    text-shadow: 0 0 16px var(--fire-glow);
}

.hg-feature-item h3 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.38rem, 1.75vw, 1.62rem);
    transition: color 200ms ease, text-shadow 200ms ease;
}

.hg-feature-item:hover h3 {
    color: #fff6d6;
    text-shadow: 0 0 14px var(--fire-glow);
}

.hg-feature-item p {
    margin: 0;
    font-size: clamp(1.1rem, 1.28vw, 1.22rem);
}

/* Full-Bleed Home Background Video Layer (Zero-Shader GPU Optimized) */
.hg-bg-video-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg-base);
    contain: strict;
}

.hg-bg-video-layer iframe,
.hg-bg-video-layer video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(-50%, -50%, 0);
    border: 0;
    opacity: 0.48;
}

.hg-bg-video-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(62, 111, 92, 0.28), transparent 64%),
        linear-gradient(180deg, rgba(8, 14, 13, 0.38) 0%, rgba(8, 13, 12, 0.68) 55%, rgba(8, 10, 11, 0.92) 100%);
}

.hg-hero-home {
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hg-hero-single {
    max-width: 760px;
}

.hg-main,
.hg-footer {
    position: relative;
    z-index: 1;
}

.hg-section {
    padding: clamp(2.85rem, 5vw, 4.5rem) 0;
}

.hg-section-alt {
    background: rgba(8, 14, 13, 0.78);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.hg-section-head {
    margin-bottom: 1.85rem;
}

.hg-muted {
    color: var(--text-muted);
}

.hg-small {
    font-size: clamp(0.96rem, 1.1vw, 1.08rem);
}

/* Cards & Grids */
.hg-card-grid {
    display: grid;
    gap: 1.5rem;
}

.hg-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hg-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hg-about-grid,
.hg-contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2rem;
    align-items: start;
}

.hg-card,
.hg-hero-panel,
.hg-stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.85), inset 0 0 16px rgba(78, 125, 105, 0.08);
    transition: var(--transition-gpu), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hg-card h2,
.hg-card h3,
.hg-hero-panel h2,
.hg-hero-panel h3 {
    transition: color 200ms ease, text-shadow 200ms ease;
}

.hg-card:hover,
.hg-hero-panel:hover,
.hg-stat-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(160deg, rgba(24, 21, 14, 0.94) 0%, rgba(13, 21, 19, 0.95) 55%, rgba(30, 22, 11, 0.92) 100%);
    border-color: var(--fire-border);
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.92), 0 0 28px var(--fire-glow), inset 0 0 20px rgba(255, 209, 102, 0.18);
}

.hg-card:hover h2,
.hg-card:hover h3,
.hg-hero-panel:hover h2,
.hg-hero-panel:hover h3 {
    color: #fff6d6;
    text-shadow: 0 0 16px var(--fire-glow);
}

.hg-card:hover .hg-badge-accent,
.hg-card:hover .hg-badge-amber {
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.72) 0%, rgba(245, 158, 11, 0.88) 50%, rgba(180, 83, 9, 0.72) 100%);
    border-color: var(--fire-border);
    color: #fffbeb;
    box-shadow: 0 0 16px var(--fire-glow);
}

.hg-stat-card:hover .hg-stat-num {
    color: var(--fire-border);
    text-shadow: 0 0 18px var(--fire-glow);
}

.hg-card-featured {
    border: 1px solid var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.hg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.hg-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
}

.hg-stat-num {
    font-size: clamp(1.9rem, 2.5vw, 2.35rem);
    font-weight: 800;
    color: var(--soul-mist);
    text-shadow: 0 0 16px rgba(78, 125, 105, 0.55);
    line-height: 1.15;
}

.hg-stat-label {
    color: var(--text-muted);
    font-size: clamp(0.98rem, 1.12vw, 1.1rem);
}

/* Badges & Tags (Cold Soul Blue-Green) */
.hg-badge {
    display: inline-block;
    padding: 0.25rem 0.72rem;
    border-radius: 999px;
    font-size: clamp(0.92rem, 1.05vw, 1.02rem);
    font-weight: 700;
    background: rgba(62, 111, 92, 0.25);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.hg-badge-accent,
.hg-badge-amber {
    background: linear-gradient(90deg, rgba(62, 111, 92, 0.45) 0%, rgba(78, 125, 105, 0.65) 50%, rgba(62, 111, 92, 0.45) 100%);
    color: #e6f4ee;
    border: 1px solid var(--soul-bright);
    box-shadow: 0 0 14px rgba(78, 125, 105, 0.42);
}

.hg-meta-tag {
    color: var(--text-muted);
    font-size: clamp(0.95rem, 1.08vw, 1.05rem);
}

.hg-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1rem 0 1.25rem;
}

.hg-tag-list span {
    font-size: clamp(0.95rem, 1.08vw, 1.06rem);
    padding: 0.28rem 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(24, 43, 36, 0.78);
    border: 1px solid var(--border-accent);
    color: var(--soul-mist);
    box-shadow: inset 0 0 10px rgba(78, 125, 105, 0.2);
}

/* Buttons: Cold Soul Green Default (like "Exit Game / Codex") + Fire-Yellow Hover! */
.hg-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.hg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: clamp(1.06rem, 1.22vw, 1.18rem);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--border-accent);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, text-shadow 180ms ease;
}

.hg-btn-primary {
    background: linear-gradient(90deg, rgba(55, 96, 80, 0.85) 0%, #4e7d69 25%, #477a67 75%, rgba(55, 96, 80, 0.85) 100%);
    border-color: var(--soul-bright);
    color: #f4faf7;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
    box-shadow: 0 0 22px rgba(78, 125, 105, 0.55), inset 0 0 12px rgba(166, 212, 192, 0.22);
}

.hg-btn-ghost {
    background: rgba(15, 27, 23, 0.72);
    color: var(--text-primary);
    border-color: var(--border-accent);
    box-shadow: inset 0 0 12px rgba(78, 125, 105, 0.16);
}

.hg-btn-danger {
    background: rgba(153, 27, 27, 0.32);
    border-color: #f87171;
    color: #fecaca;
}

/* Fire-Yellow / Torch-Gold Hover Decoration on All Buttons */
.hg-btn:hover,
.hg-btn:focus-visible,
.hg-btn-primary:hover,
.hg-btn-ghost:hover,
.hg-tab-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.88) 0%, #d97706 24%, #f59e0b 50%, #d97706 76%, rgba(180, 83, 9, 0.88) 100%);
    border-color: var(--fire-border);
    color: #fffbeb;
    text-shadow: 0 0 12px rgba(255, 230, 128, 0.8), 0 1px 4px rgba(0, 0, 0, 0.85);
    box-shadow: 0 0 26px var(--fire-glow), inset 0 0 14px rgba(255, 224, 102, 0.38);
}

.hg-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: clamp(0.95rem, 1.08vw, 1.05rem);
}

.hg-btn-full {
    width: 100%;
}

/* Team & Media (Circular Obsidian Medallion Frame + '?' Fallback + Skills/Hobbies + Fire-Yellow Hover) */
.hg-team-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hg-team-avatar-frame {
    position: relative;
    width: 96px;
    height: 96px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 1rem;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(78, 125, 105, 0.35), rgba(5, 8, 8, 0.98) 72%);
    border: 2px solid var(--border-accent);
    box-shadow: 0 0 22px rgba(78, 125, 105, 0.42), inset 0 0 14px rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, background 220ms ease;
}

.hg-team-avatar-frame-sm {
    width: 52px;
    height: 52px;
    margin: 0;
    padding: 3px;
}

.hg-team-avatar-frame::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px dashed rgba(166, 212, 192, 0.35);
    pointer-events: none;
    transition: border-color 220ms ease;
}

.hg-team-avatar {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
    overflow: hidden;
    background: #040606;
    border: 1px solid rgba(127, 184, 160, 0.32);
    transition: border-color 200ms ease, box-shadow 200ms ease, color 200ms ease, background 200ms ease;
}

.hg-team-avatar-fallback {
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 2.35rem;
    line-height: 1;
    color: var(--soul-mist);
    background: radial-gradient(circle at 50% 38%, #0d1412 0%, #030505 78%);
    text-shadow: 0 0 14px rgba(127, 184, 160, 0.65);
    user-select: none;
}

.hg-team-role {
    color: var(--soul-mist);
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    transition: color 200ms ease, text-shadow 200ms ease;
}

.hg-team-meta-block {
    margin-top: 0.9rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(111, 168, 145, 0.18);
    width: 100%;
    transition: border-color 200ms ease;
}

.hg-team-meta-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--soul-mist);
    margin-bottom: 0.42rem;
    transition: color 200ms ease;
}

.hg-team-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.hg-team-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.62rem;
    border-radius: 999px;
    font-size: 0.92rem;
    background: rgba(18, 34, 29, 0.85);
    border: 1px solid rgba(111, 168, 145, 0.36);
    color: var(--text-primary);
    box-shadow: inset 0 0 8px rgba(78, 125, 105, 0.18);
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.hg-team-chip-hobby {
    background: rgba(11, 18, 16, 0.9);
    border-style: dashed;
    color: var(--soul-mist);
}

.hg-card:hover .hg-team-avatar-frame {
    border-color: var(--fire-border);
    background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.38), rgba(8, 7, 5, 0.98) 74%);
    box-shadow: 0 0 26px var(--fire-glow), inset 0 0 14px rgba(255, 209, 102, 0.28);
    transform: scale(1.05);
}

.hg-card:hover .hg-team-avatar-frame::after {
    border-color: rgba(255, 209, 102, 0.65);
}

.hg-card:hover .hg-team-avatar {
    border-color: var(--fire-border);
}

.hg-card:hover .hg-team-avatar-fallback {
    color: #fff6d6;
    background: radial-gradient(circle at 50% 38%, #1c1408 0%, #040404 80%);
    text-shadow: 0 0 18px var(--fire-glow);
}

.hg-card:hover .hg-team-role,
.hg-card:hover .hg-team-meta-label {
    color: var(--fire-border);
    text-shadow: 0 0 12px var(--fire-glow);
}

.hg-card:hover .hg-team-meta-block {
    border-top-color: rgba(255, 209, 102, 0.28);
}

/* Interactive Portrait Team Showcase (Before Click: Compact Portrait -> After Click: Split Detail Card) */
.hg-team-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    align-items: stretch;
    justify-content: flex-start;
}

.hg-team-card-interactive {
    flex: 0 1 285px;
    width: 285px;
    max-width: 100%;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border-radius: 18px;
    transition: flex-basis 340ms cubic-bezier(0.22, 1, 0.36, 1), width 340ms cubic-bezier(0.22, 1, 0.36, 1), transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.hg-team-split-inner {
    display: block;
    width: 100%;
    height: 100%;
}

.hg-team-portrait-col {
    position: relative;
    width: 100%;
}

.hg-team-portrait-box {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 32%, rgba(78, 125, 105, 0.32) 0%, rgba(10, 17, 16, 0.96) 62%, #040606 100%);
}

.hg-team-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}

.hg-team-card-interactive:hover .hg-team-portrait-img {
    transform: scale(1.04);
}

.hg-team-portrait-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 5rem;
    font-weight: 800;
    color: var(--soul-mist);
    background:
        radial-gradient(circle at 50% 35%, rgba(78, 125, 105, 0.28) 0%, rgba(9, 15, 14, 0.96) 58%, #040606 100%);
    text-shadow: 0 0 24px rgba(127, 184, 160, 0.65);
    user-select: none;
    transition: color 220ms ease, text-shadow 220ms ease, transform 320ms ease;
}

.hg-team-card-interactive:hover .hg-team-portrait-fallback {
    color: #fff6d6;
    text-shadow: 0 0 28px var(--fire-glow);
    transform: scale(1.04);
}

.hg-team-portrait-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 9, 0) 38%, rgba(6, 10, 10, 0.82) 74%, rgba(5, 8, 8, 0.98) 100%);
    pointer-events: none;
    transition: opacity 280ms ease;
}

.hg-team-compact-overlay {
    position: absolute;
    left: 1.3rem;
    right: 1.3rem;
    bottom: 1.15rem;
    z-index: 2;
    pointer-events: none;
    transition: opacity 220ms ease, transform 220ms ease;
}

.hg-team-compact-name {
    margin: 0 0 0.15rem;
    font-size: clamp(1.55rem, 2vw, 1.85rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

.hg-team-compact-role {
    margin: 0;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--soul-mist);
}

.hg-team-click-badge {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(6, 10, 10, 0.78);
    border: 1px solid rgba(127, 184, 160, 0.38);
    color: var(--soul-mist);
    backdrop-filter: blur(4px);
    transition: border-color 200ms ease, color 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.hg-team-card-interactive:hover .hg-team-click-badge {
    border-color: var(--fire-border);
    color: #fff6d6;
    box-shadow: 0 0 12px var(--fire-glow);
}

.hg-team-detail-col {
    display: none;
    opacity: 0;
}

@keyframes hgTeamDetailIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hg-team-card-interactive.is-expanded {
    flex: 1 1 760px;
    width: min(860px, 100%);
    padding: 1.5rem;
    cursor: default;
    background: linear-gradient(155deg, rgba(16, 24, 22, 0.97) 0%, rgba(10, 15, 14, 0.98) 60%, rgba(22, 18, 10, 0.95) 100%);
    border-color: var(--fire-border);
    box-shadow: 0 18px 46px -12px rgba(0, 0, 0, 0.95), 0 0 32px var(--fire-glow), inset 0 0 22px rgba(255, 209, 102, 0.14);
}

.hg-team-card-interactive.is-expanded .hg-team-split-inner {
    display: grid;
    grid-template-columns: 265px 1fr;
    gap: 2.1rem;
    align-items: center;
}

.hg-team-card-interactive.is-expanded .hg-team-portrait-box {
    height: 335px;
    border-radius: 14px;
    border: 1px solid rgba(255, 209, 102, 0.48);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.82);
    cursor: pointer;
}

.hg-team-card-interactive.is-expanded .hg-team-compact-overlay,
.hg-team-card-interactive.is-expanded .hg-team-click-badge {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.hg-team-card-interactive.is-expanded .hg-team-portrait-fade {
    opacity: 0.22;
}

.hg-team-card-interactive.is-expanded .hg-team-detail-col {
    display: block;
    opacity: 1;
    animation: hgTeamDetailIn 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hg-team-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.hg-team-detail-name {
    margin: 0;
    font-size: clamp(1.9rem, 2.6vw, 2.45rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.08;
    color: #fff6d6;
    text-shadow: 0 0 16px var(--fire-glow);
}

.hg-team-detail-role {
    margin: 0.25rem 0 0;
    font-size: 1.08rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4ade80;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.35);
}

.hg-team-collapse-btn {
    background: rgba(12, 20, 18, 0.85);
    border: 1px solid rgba(255, 209, 102, 0.45);
    color: #fff6d6;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hg-team-collapse-btn:hover {
    transform: scale(1.08);
    background: rgba(245, 158, 11, 0.25);
    box-shadow: 0 0 14px var(--fire-glow);
}

.hg-team-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.45) 0%, rgba(111, 168, 145, 0.22) 55%, transparent 100%);
    margin: 0.9rem 0 1rem;
}

.hg-team-detail-bio {
    margin: 0 0 0.85rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.62;
}

.hg-team-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.65rem;
}

.hg-team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    border: 1px solid rgba(166, 212, 192, 0.45);
    background: rgba(166, 212, 192, 0.28);
    cursor: pointer;
    transition: all 220ms ease;
}

.hg-team-dot:hover {
    background: var(--fire-border);
    border-color: var(--fire-border);
}

.hg-team-dot.is-active {
    width: 14px;
    height: 14px;
    background: transparent;
    border: 2px solid #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.65);
}

@media (max-width: 780px) {
    .hg-team-card-interactive {
        flex: 1 1 100%;
        width: 100%;
    }
    .hg-team-card-interactive.is-expanded .hg-team-split-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.hg-card:hover .hg-team-chip {
    border-color: rgba(255, 209, 102, 0.65);
    background: rgba(45, 28, 10, 0.72);
    color: #fffbeb;
    box-shadow: 0 0 12px rgba(255, 195, 0, 0.25);
}

.hg-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.hg-media-card {
    margin: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 0.75rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-gpu), border-color 220ms ease, box-shadow 220ms ease;
}

.hg-media-card:hover {
    transform: translateY(-4px);
    border-color: var(--fire-border);
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, 0.92), 0 0 28px var(--fire-glow), inset 0 0 18px rgba(255, 209, 102, 0.18);
}

.hg-media-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

.hg-video-wrap {
    aspect-ratio: 16 / 9;
    padding: 0;
}

.hg-video-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Forms, Alerts & Auth */
.hg-auth-wrap {
    max-width: 540px;
}

.hg-form {
    display: grid;
    gap: 1rem;
}

.hg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.hg-field {
    display: grid;
    gap: 0.4rem;
}

.hg-field label {
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 700;
    color: var(--soul-mist);
}

.hg-field input,
.hg-field textarea,
.hg-field select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-accent);
    background: rgba(7, 12, 11, 0.92);
    color: var(--text-primary);
    font-size: clamp(1.02rem, 1.15vw, 1.14rem);
}

.hg-field input:focus,
.hg-field textarea:focus,
.hg-field select:focus {
    outline: 2px solid var(--fire-border);
    box-shadow: 0 0 14px var(--fire-glow);
    outline-offset: 1px;
}

.hg-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hg-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 0.22rem;
    flex-shrink: 0;
    accent-color: var(--soul-bright);
    cursor: pointer;
}

.hg-kvkk-form-box {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(8, 14, 13, 0.88);
    border: 1px solid var(--border-subtle);
    display: grid;
    gap: 0.6rem;
}

.hg-kvkk-form-box p {
    margin: 0;
}

.hg-alert,
.hg-notice {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
}

.hg-alert-success,
.hg-notice {
    background: rgba(62, 111, 92, 0.28);
    border: 1px solid var(--soul-bright);
    color: #d9f2e6;
    box-shadow: var(--shadow-glow);
}

.hg-alert-error {
    background: rgba(185, 28, 28, 0.22);
    border: 1px solid #f87171;
    color: #fecdd3;
}

.hg-auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hg-inline-link {
    color: var(--soul-mist);
    text-decoration: none;
    transition: color 160ms ease, text-shadow 160ms ease;
}

.hg-inline-link:hover {
    color: var(--fire-border);
    text-decoration: underline;
    text-shadow: 0 0 12px var(--fire-glow);
}

/* Admin Panel */
.hg-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hg-admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hg-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.hg-tab-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-size: clamp(1rem, 1.15vw, 1.12rem);
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hg-tab-btn.is-active {
    background: linear-gradient(90deg, rgba(55, 96, 80, 0.88) 0%, #4e7d69 50%, rgba(55, 96, 80, 0.88) 100%);
    border-color: var(--soul-bright);
    color: #f4faf7;
    box-shadow: 0 0 16px rgba(78, 125, 105, 0.5);
}

.hg-admin-panel {
    display: none;
}

.hg-admin-panel.is-active {
    display: block;
}

.hg-table-wrap {
    overflow-x: auto;
}

.hg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(1rem, 1.15vw, 1.12rem);
}

.hg-table th,
.hg-table td {
    padding: 0.65rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.hg-table th {
    color: var(--soul-mist);
}

.hg-actions-cell {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.hg-thumb {
    width: 64px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-accent);
}

.hg-order-input {
    width: 72px;
    padding: 0.35rem;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    font-size: 1rem;
}

/* Footer */
.hg-footer {
    border-top: 1px solid var(--border-accent);
    background: var(--bg-elevated);
    padding: 2.75rem 0;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.75);
}

.hg-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
}

.hg-footer-links {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.hg-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
    transition: color 160ms ease, text-shadow 160ms ease;
}

.hg-footer-links a:hover,
.hg-footer-cookie-btn:hover {
    color: var(--fire-border);
    text-shadow: 0 0 12px var(--fire-glow);
}

.hg-footer-cookie-btn {
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.2vw, 1.16rem);
    cursor: pointer;
    transition: color 160ms ease, text-shadow 160ms ease;
}

/* KVKK & GDPR Cookie Consent Banner & Preferences Modal */
.hg-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: linear-gradient(180deg, rgba(10, 17, 15, 0.97) 0%, rgba(6, 9, 9, 0.99) 100%);
    border-top: 2px solid var(--border-accent);
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.92), 0 -2px 22px rgba(78, 125, 105, 0.38);
    padding: 1.1rem 0;
}

.hg-cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hg-cookie-copy {
    flex: 1 1 520px;
}

.hg-cookie-title {
    font-size: clamp(1.18rem, 1.4vw, 1.32rem);
    font-weight: 700;
    color: var(--soul-mist);
    text-shadow: 0 0 12px rgba(78, 125, 105, 0.45);
    margin-bottom: 0.25rem;
}

.hg-cookie-copy p {
    margin: 0;
}

.hg-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.hg-cookie-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(3, 6, 6, 0.84);
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.hg-cookie-modal-backdrop[hidden],
.hg-cookie-banner[hidden] {
    display: none !important;
}

.hg-cookie-modal {
    width: min(650px, 94vw);
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.25rem 1.4rem;
    border-color: var(--border-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), var(--shadow-glow);
}

.hg-cookie-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.hg-cookie-modal-head h2 {
    margin: 0;
    font-size: clamp(1.32rem, 1.8vw, 1.58rem);
}

.hg-cookie-tier-list {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.hg-cookie-tier {
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-sm);
    background: rgba(8, 14, 13, 0.9);
    border: 1px solid var(--border-subtle);
}

.hg-cookie-tier-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.3rem;
    color: var(--soul-mist);
}

.hg-cookie-tier-head input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--soul-bright);
    cursor: pointer;
}

.hg-cookie-tier p {
    margin: 0;
}

/* KVKK Art. 9 Two-Click Privacy Shield for Third-Party Embeds (Steam Widget / YouTube) */
.hg-embed-consent-shield {
    padding: 1.35rem;
    background: linear-gradient(160deg, rgba(13, 23, 20, 0.96) 0%, rgba(6, 10, 9, 0.98) 100%);
    border: 1px dashed var(--border-accent);
    border-radius: var(--radius-sm);
    display: grid;
    gap: 0.65rem;
    align-content: center;
}

.hg-embed-consent-shield[hidden] {
    display: none !important;
}

.hg-embed-consent-shield strong {
    color: var(--soul-mist);
    font-size: clamp(1.08rem, 1.25vw, 1.2rem);
}

.hg-connect-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hg-list {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.hg-center {
    text-align: center;
}

.hg-center-row {
    justify-content: center;
}

.hg-mt-sm { margin-top: 0.75rem; }
.hg-mt-md { margin-top: 1.5rem; }
.hg-mt-lg { margin-top: 2.5rem; }
.hg-mb-md { margin-bottom: 1.5rem; }

/* Interactive Image Gallery Carousel (Separate from Video Panel) */
.hg-gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #050808;
    border: 1px solid var(--border-accent);
    box-shadow: 0 16px 42px -12px rgba(0, 0, 0, 0.92), inset 0 0 18px rgba(78, 125, 105, 0.14);
    transition: border-color 220ms ease, box-shadow 220ms ease;
    user-select: none;
}

.hg-gallery-carousel:hover {
    border-color: var(--fire-border);
    box-shadow: 0 18px 46px -10px rgba(0, 0, 0, 0.96), 0 0 30px var(--fire-glow);
}

.hg-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    background: #040606;
    overflow: hidden;
}

.hg-gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    transform: scale(1.015);
}

.hg-gallery-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 1;
    cursor: zoom-in;
}

.hg-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hg-gallery-carousel:hover .hg-gallery-slide.is-active img {
    transform: scale(1.015);
}

.hg-gallery-zoom-hint {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    z-index: 4;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: rgba(5, 8, 8, 0.82);
    border: 1px solid rgba(255, 209, 102, 0.45);
    color: #fff6d6;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    backdrop-filter: blur(5px);
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.hg-gallery-carousel:hover .hg-gallery-zoom-hint {
    border-color: var(--fire-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.85), 0 0 14px var(--fire-glow);
    transform: scale(1.03);
}

.hg-gallery-caption {
    position: absolute;
    left: 1.35rem;
    bottom: 1.15rem;
    z-index: 3;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    background: rgba(5, 8, 8, 0.78);
    border: 1px solid rgba(127, 184, 160, 0.32);
    color: var(--text-primary);
    font-size: 0.92rem;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.hg-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--fire-border);
    background: rgba(250, 250, 250, 0.94);
    color: #d97706;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.78), 0 0 18px var(--fire-glow);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.hg-gallery-arrow:hover {
    transform: translateY(-50%) scale(1.09);
    background: #fffbeb;
    color: #b45309;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.88), 0 0 26px var(--fire-glow);
}

.hg-gallery-arrow.is-prev {
    left: 1.25rem;
}

.hg-gallery-arrow.is-next {
    right: 1.25rem;
}

.hg-gallery-dots-pill {
    position: absolute;
    left: 50%;
    bottom: 1.15rem;
    transform: translateX(-50%);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    background: rgba(7, 10, 9, 0.92);
    border: 1px solid var(--fire-border);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.88), 0 0 18px var(--fire-glow);
}

.hg-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    padding: 0;
    border: 0;
    background: #ffd166;
    opacity: 0.85;
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.45);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.hg-gallery-dot:hover {
    opacity: 1;
    background: #ffdf85;
    transform: scale(1.18);
    box-shadow: 0 0 12px var(--fire-glow);
}

.hg-gallery-dot.is-active {
    background: #ffffff;
    opacity: 1;
    transform: scale(1.22);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.92), 0 0 16px var(--fire-glow);
}

/* Fullscreen Click-to-Enlarge Gallery Lightbox Modal */
.hg-lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(2, 4, 4, 0.96);
    backdrop-filter: blur(12px);
    display: grid;
    place-items: center;
    padding: 0.35rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
    user-select: none;
}

.hg-lightbox-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.hg-lightbox-backdrop[hidden] {
    display: none !important;
}

.hg-lightbox-dialog {
    position: relative;
    width: 97vw;
    height: 95vh;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-lightbox-stage {
    position: relative;
    width: 97vw;
    height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid var(--fire-border);
    box-shadow: 0 28px 84px rgba(0, 0, 0, 0.98), 0 0 44px var(--fire-glow);
    background: #040606;
}

.hg-lightbox-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(0.96);
    transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
    cursor: zoom-in;
}

.hg-lightbox-backdrop.is-open .hg-lightbox-img {
    transform: scale(1);
}

.hg-lightbox-backdrop.is-open .hg-lightbox-img.is-deep-zoom {
    transform: scale(1.45);
    cursor: zoom-out;
}

.hg-lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    z-index: 150;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 209, 102, 0.85);
    background: rgba(12, 18, 17, 0.94);
    color: #fff6d6;
    font-size: 1.9rem;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.9), 0 0 18px var(--fire-glow);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hg-lightbox-close:hover {
    transform: scale(1.1);
    background: rgba(245, 158, 11, 0.32);
    border-color: var(--fire-border);
    color: #fffbeb;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.95), 0 0 26px var(--fire-glow);
}

.hg-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 148;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--fire-border);
    background: rgba(250, 250, 250, 0.95);
    color: #d97706;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.88), 0 0 22px var(--fire-glow);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.hg-lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    background: #fffbeb;
    color: #b45309;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.94), 0 0 28px var(--fire-glow);
}

.hg-lightbox-arrow.is-prev {
    left: 1.35rem;
}

.hg-lightbox-arrow.is-next {
    right: 1.35rem;
}

.hg-lightbox-footer {
    position: absolute;
    bottom: 1.15rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 148;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.95rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    background: rgba(7, 10, 9, 0.93);
    border: 1px solid var(--fire-border);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.92), 0 0 20px var(--fire-glow);
    backdrop-filter: blur(6px);
}

.hg-lightbox-zoom-btn {
    padding: 0.22rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 209, 102, 0.55);
    background: rgba(255, 209, 102, 0.14);
    color: #fff6d6;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hg-lightbox-zoom-btn:hover {
    background: rgba(255, 209, 102, 0.28);
    border-color: var(--fire-border);
    transform: scale(1.05);
}

.hg-lightbox-counter {
    font-weight: 700;
    color: #ffd166;
    font-size: 0.96rem;
    letter-spacing: 0.04em;
}

.hg-lightbox-caption {
    color: var(--text-primary);
    font-size: 0.98rem;
}

.hg-lightbox-dots {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

/* GPU-friendly Scroll Reveal */
.hg-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: var(--transition-gpu);
}

.hg-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .hg-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 860px) {
    .hg-hero-grid,
    .hg-cols-2,
    .hg-cols-3,
    .hg-about-grid,
    .hg-contact-grid,
    .hg-footer-grid,
    .hg-feature-panel-grid {
        grid-template-columns: 1fr;
    }

    .hg-nav-toggle {
        display: inline-flex;
    }

    .hg-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border-accent);
        padding: 1rem 4vw;
        flex-direction: column;
        align-items: flex-start;
        display: none;
    }

    .hg-nav.is-open {
        display: flex;
    }
}
