:root {
    --bg-dark: #0a0a0c;
    --neon-blue: #00f3ff;
    --neon-magenta: #ff00ff;
    --card-bg: rgba(20, 20, 25, 0.8);
    --card-border: rgba(0, 243, 255, 0.3);
    --text-main: #e0e0e0;
    --glass-bg: rgba(10, 10, 15, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

.hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 243, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 255, 0.05), transparent 25%);
}

#game-container {
    width: 100%;
    max-width: 1200px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}


.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.hud-item {
    display: flex;
    flex-direction: column;
}

.title-panel {
    text-align: center;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: #888;
}

.label {
    font-size: 0.6rem;
    color: #aaa;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.stats-panel {
    display: flex;
    gap: 20px;
    text-align: right;
}

.stat {
    display: flex;
    flex-direction: column;
}


.grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px;
    flex-grow: 1;
    perspective: 1000px;
    min-height: 0; 
}


.card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0; 
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
}

.card.flipped {
    transform: rotateY(180deg);
}

.card.matched {
    transform: rotateY(180deg);
    opacity: 1;
    pointer-events: none;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.card-front {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(0, 243, 255, 0.03) 0px,
        rgba(0, 243, 255, 0.03) 10px,
        transparent 10px,
        transparent 20px
    );
    transition: border-color 0.3s, box-shadow 0.3s;
}

.card-front:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.card-back {
    background: #1a1a24;
    transform: rotateY(180deg);
    font-size: clamp(1.2rem, 4vmin, 2rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card.matched .card-back {
    border-color: #00ffaa;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
}


.prob-overlay {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-blue);
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    pointer-events: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.prob-high {
    color: #00ffaa;
    text-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
}

.prob-low {
    color: #ff3366;
}


#interference-alert {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--neon-magenta);
    padding: 20px 40px;
    border-radius: 10px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
    animation: pulseAlert 0.5s ease-out;
}

#interference-alert.hidden {
    display: none;
}

#interference-alert h3 {
    color: var(--neon-magenta);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}

@keyframes pulseAlert {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.nen-effect {
    animation: nenShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
    border-color: var(--neon-magenta) !important;
    box-shadow: 0 0 20px var(--neon-magenta) !important;
}

@keyframes nenShake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--neon-blue);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.2);
    max-width: 400px;
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--neon-blue);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.modal-content.lose h2 {
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.stats-summary {
    margin: 20px 0;
    font-size: 1.2rem;
}

.glow-on-hover {
    padding: 12px 24px;
    border: none;
    outline: none;
    color: #fff;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000;
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 8px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.spells-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-top: auto;
    flex-wrap: wrap;
}

.spell-card {
    background: rgba(20, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: not-allowed;
    opacity: 0.5;
    transition: all 0.3s ease;
    user-select: none;
}

.spell-card.available {
    cursor: pointer;
    opacity: 1;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

.spell-card.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    background: rgba(0, 243, 255, 0.1);
}

.spell-card.available:active {
    transform: translateY(1px);
}

.spell-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.spell-card.available .spell-name {
    color: var(--neon-blue);
}

.spell-cost {
    font-size: 0.7rem;
    color: var(--neon-magenta);
    font-weight: bold;
}

.nen-bar-container {
    display: flex;
    flex-direction: column;
    width: 200px;
    margin-left: auto;
}

.nen-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-blue);
    margin-bottom: 5px;
    text-align: right;
}

.nen-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.nen-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-magenta));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--neon-magenta);
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(10, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .hud {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 8px;
        padding: 10px;
    }
    .title-panel {
        grid-column: 1 / span 2;
    }
    .timer-panel {
        align-items: center;
    }
    .stats-panel {
        justify-content: center;
    }
    .grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(8, 1fr);
        gap: 5px;
    }
}

@media (max-width: 450px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(10, 1fr);
        gap: 4px;
    }
    h1 {
        font-size: 1.1rem;
    }
    .value {
        font-size: 1rem;
    }
    .prob-overlay {
        font-size: 0.55rem;
        padding: 1px 3px;
        bottom: 2px;
        right: 2px;
    }
}

/* MAIN MENU STYLES */
.menu-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #0a1f0a 0%, #000000 100%);
}

.menu-content {
    text-align: center;
    background: rgba(10, 30, 10, 0.8);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #00ffaa;
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.4);
    max-width: 800px;
    width: 90%;
}

.hunter-title {
    font-size: 3rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 5px;
    text-shadow: 2px 2px 0 #000, 0 0 10px #00ffaa;
}

.hunter-title .x {
    color: #ff3366;
    font-size: 2.5rem;
}

.menu-subtitle {
    color: #00ffaa;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.games-grid-menu {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-card-menu {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffaa;
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.game-card-menu:hover {
    transform: scale(1.05);
}

.game-card-menu h3 {
    color: #00ffaa;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.game-card-menu p {
    font-size: 0.8rem;
    color: #ccc;
}

/* JAJANKEN STYLES */
#jajanken-container, #reflex-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.jajanken-arena, .reflex-arena {
    flex-grow: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    padding: 20px;
}

.jajanken-score, .reflex-score {
    display: flex;
    width: 100%;
    justify-content: space-around;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px var(--neon-blue);
}

.jajanken-battle-area {
    display: flex;
    align-items: center;
    gap: 40px;
}

.jajanken-move {
    font-size: 5rem;
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.jajanken-result {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--neon-magenta);
    text-shadow: 0 0 15px var(--neon-magenta);
    height: 40px;
}

.jajanken-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-choice {
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* REFLEX STYLES */
.reflex-board {
    width: 100%;
    flex-grow: 1;
    position: relative;
    background: rgba(0,0,0,0.8);
    border: 2px solid var(--neon-blue);
    border-radius: 10px;
    overflow: hidden;
}

.reflex-target {
    position: absolute;
    font-size: 3rem;
    cursor: crosshair;
    user-select: none;
    transition: left 0.1s linear, top 0.1s linear;
}

.reflex-target:active {
    transform: scale(1.5);
}

.reflex-instructions {
    color: #aaa;
    font-size: 1.2rem;
    text-align: center;
}

/* BOOT SCREEN (DRAMATIC HxH INTRO) */
.boot-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background: #050a05;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.boot-char-wrap {
    position: absolute;
    right: -10%;
    bottom: -5%;
    height: 110vh;
    width: auto;
    pointer-events: none;
    z-index: 1;
}

.boot-char-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    mask-image: linear-gradient(to left, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent 100%);
    filter: contrast(1.2) brightness(0.8);
}

.boot-aura {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #00ffaa;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.boot-aura-1 { width: 300px; height: 300px; animation: auraPulse 3s infinite 0s; }
.boot-aura-2 { width: 500px; height: 500px; animation: auraPulse 3s infinite 1s; }
.boot-aura-3 { width: 700px; height: 700px; animation: auraPulse 3s infinite 2s; }

@keyframes auraPulse {
    0% { transform: scale(0.5); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.boot-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.boot-hxh-logo {
    width: 250px;
    height: auto;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 15px rgba(255, 80, 0, 0.6));
}

.boot-gi-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #00ffaa;
    letter-spacing: 12px;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
    margin-bottom: 10px;
}

.boot-tagline {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    min-height: 40px;
    letter-spacing: 2px;
}

.boot-lines {
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #00ffaa;
    opacity: 0.8;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boot-line {
    animation: glitchIn 0.2s ease forwards;
}

.boot-line-final {
    color: #ff3366;
    font-weight: bold;
    text-shadow: 0 0 10px #ff3366;
}

@keyframes glitchIn {
    0% { opacity: 0; transform: skewX(20deg); }
    50% { opacity: 1; transform: skewX(-10deg); }
    100% { opacity: 1; transform: skewX(0deg); }
}

.boot-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.boot-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ffaa, #00f3ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px #00ffaa;
}

.boot-bar-label {
    position: absolute;
    right: 0;
    top: -20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: #666;
}

.boot-fade-out {
    animation: fadeOutToBook 0.7s ease forwards;
}

@keyframes fadeOutToBook {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* WATER DIVINATION */
.water-divination-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
}

.divination-content {
    background: var(--glass-bg);
    border: 1px solid var(--neon-blue);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
}

.water-glass {
    width: 100px;
    height: 150px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
}

.water-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: rgba(0, 243, 255, 0.5);
    transition: all 2s ease;
    transform-origin: bottom;
}

.leaf {
    position: absolute;
    bottom: 60%;
    left: 40%;
    font-size: 2rem;
    transition: all 2s ease;
}

.quiz-area {
    margin-top: 20px;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.quiz-btn {
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.result-area {
    margin-top: 20px;
}

.result-area h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
}

.result-area p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 20px;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes auraBurst {
    0% { box-shadow: 0 0 0 rgba(255,255,255,0); }
    50% { box-shadow: 0 0 50px rgba(255,255,255,0.8); }
    100% { box-shadow: 0 0 20px rgba(255,255,255,0.4); }
}

.aura-burst {
    animation: auraBurst 2s forwards;
}

/* LICENSE CARD */
.license-card {
    background: linear-gradient(135deg, #111, #333);
    border-radius: 10px;
    padding: 15px 20px;
    display: inline-block;
    border: 2px solid #555;
}

.license-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.license-body {
    text-align: left;
}

.license-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.license-type {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    margin-top: 5px;
}

.book-appear {
    animation: bookAppear 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bookAppear {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ═══════════════════════════════════════
   PARTICLE CANVAS
═══════════════════════════════════════ */
.particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════
   TRANSITION OVERLAY
═══════════════════════════════════════ */
.transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 8000;
    pointer-events: none;
}

.transition-in {
    animation: transIn 0.4s ease forwards;
}

.transition-out {
    animation: transOut 0.5s ease forwards;
}

.transition-book {
    font-size: 6rem;
    animation: bookSpin 0.8s ease-in-out;
}

@keyframes transIn {
    0% { background: rgba(0,0,0,0); }
    100% { background: rgba(0,0,0,0.95); }
}

@keyframes transOut {
    0% { background: rgba(0,0,0,0.95); }
    100% { background: rgba(0,0,0,0); }
}

@keyframes bookSpin {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    50%  { transform: scale(1.2) rotate(0deg); opacity: 1; }
    100% { transform: scale(0) rotate(180deg); opacity: 0; }
}

/* ═══════════════════════════════════════
   REVAMPED MAIN MENU
═══════════════════════════════════════ */
.menu-container {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
    overflow-y: auto;
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 900px;
}

.hxh-logo {
    text-align: center;
}

.hxh-text {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: #fff;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(0,255,170,0.6);
}

.x-mark {
    color: #ff3366;
    font-size: 1.2em;
    text-shadow: 0 0 15px #ff3366;
}

.gi-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: 8px;
    color: #00ffaa;
    margin-top: 4px;
    text-shadow: 0 0 10px #00ffaa;
}

/* ═══════════════════════════════════════
   GAME CARDS (MENU)
═══════════════════════════════════════ */
.games-grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 700px) {
    .games-grid-menu { grid-template-columns: 1fr; }
}

.game-card-menu {
    background: rgba(5, 10, 5, 0.85);
    border: 1px solid rgba(0,255,170,0.2);
    border-radius: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.game-card-menu:hover {
    transform: translateY(-6px);
    border-color: #00ffaa;
    box-shadow: 0 8px 40px rgba(0,255,170,0.25);
}

.game-card-inner {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-card-icon {
    font-size: 2.5rem;
    margin-bottom: 4px;
}

.game-card-menu h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: #00ffaa;
    letter-spacing: 1px;
}

.game-card-menu p {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.5;
}

.game-card-tag {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #444;
    letter-spacing: 2px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #1a1a1a;
}

.best-score {
    font-size: 0.7rem;
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   HUNTER LICENSE (REVAMPED)
═══════════════════════════════════════ */
.license-card {
    background: linear-gradient(135deg, #0a0e0a 0%, #0f1a0f 100%);
    border-radius: 12px;
    padding: 16px 28px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid #333;
    min-width: 280px;
    text-align: left;
}

.license-header {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: #666;
    letter-spacing: 3px;
    text-align: center;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 8px;
}

.license-name {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: #fff;
    letter-spacing: 2px;
}

.license-type {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.license-rank {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   CARD COLLECTION STRIP
═══════════════════════════════════════ */
.collection-strip {
    width: 100%;
    text-align: center;
}

.collection-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    color: #555;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.collection-cards {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.mini-card {
    width: 60px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 1.5rem;
    border: 1px solid #222;
    transition: transform 0.2s;
}

.mini-card small {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.5rem;
    color: #555;
}

.mini-card-owned {
    background: rgba(0,255,170,0.08);
    border-color: #00ffaa44;
    box-shadow: 0 0 15px rgba(0,255,170,0.15);
}

.mini-card-owned small { color: #00ffaa; }

.mini-card-locked {
    background: rgba(255,255,255,0.02);
    opacity: 0.5;
}

/* ═══════════════════════════════════════
   CARD AWARD SCREEN
═══════════════════════════════════════ */
.card-award-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: radial-gradient(ellipse at center, #0a1a0a 0%, #000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 7000;
}

.card-award-content {
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gi-card-visual {
    width: 200px;
    height: 280px;
    background: linear-gradient(135deg, #0a1a0f, #0f2a14);
    border: 3px solid #00ffaa;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 0 50px rgba(0,255,170,0.5), 0 0 100px rgba(0,255,170,0.2);
    animation: cardReveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes cardReveal {
    0%   { transform: rotateY(90deg) scale(0.5); opacity: 0; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.gi-card-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: #00ffaa;
    letter-spacing: 3px;
}

.gi-card-symbol { font-size: 4rem; }

.gi-card-name {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    padding: 0 10px;
    letter-spacing: 1px;
}

.card-award-shimmer {
    position: absolute;
    top: -50px;
    width: 200px;
    height: 380px;
    background: linear-gradient(180deg, transparent, rgba(0,255,170,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.award-quote {
    max-width: 350px;
    font-style: italic;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   WATER DIVINATION (REVAMPED)
═══════════════════════════════════════ */
.water-divination-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    overflow-y: auto;
    padding: 20px;
}

.divination-content {
    background: rgba(5, 10, 5, 0.95);
    border: 1px solid rgba(0,255,170,0.2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 0 60px rgba(0, 255, 170, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.divination-header { margin-bottom: 4px; }

.name-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.hunter-name-input {
    background: rgba(0,255,170,0.05);
    border: 1px solid rgba(0,255,170,0.3);
    border-radius: 8px;
    color: #fff;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    padding: 12px 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    letter-spacing: 2px;
}

.hunter-name-input:focus {
    border-color: #00ffaa;
    box-shadow: 0 0 20px rgba(0,255,170,0.2);
}

.quiz-progress {
    width: 100%;
    height: 3px;
    background: #111;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffaa, #00f3ff);
    border-radius: 2px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px #00ffaa;
    width: 0%;
}

/* ═══════════════════════════════════════
   RESET BUTTON
═══════════════════════════════════════ */
.reset-btn {
    background: transparent;
    border: 1px solid #222;
    color: #333;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 2px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.reset-btn:hover {
    color: #ff3366;
    border-color: #ff336644;
}

/* ═══════════════════════════════════════
   EXIT MINI BUTTON
═══════════════════════════════════════ */
.exit-mini-btn {
    background: transparent;
    border: 1px solid #333;
    color: #555;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.exit-mini-btn:hover {
    color: #ff3366;
    border-color: #ff336644;
}

/* ═══════════════════════════════════════
   HXH LOGO IMAGE
═══════════════════════════════════════ */
.hxh-logo-img {
    width: clamp(200px, 50vw, 400px);
    height: auto;
    /* White bg logo — use multiply to blend with dark bg */
    mix-blend-mode: multiply;
    filter: drop-shadow(0 0 20px rgba(255, 80, 0, 0.5));
    transition: filter 0.3s;
}

.hxh-logo-img:hover {
    filter: drop-shadow(0 0 30px rgba(255, 80, 0, 0.8));
}

/* ═══════════════════════════════════════
   BOOT SCREEN CHARACTER
═══════════════════════════════════════ */
.boot-bg-char {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 85vh;
    width: auto;
    opacity: 0.15;
    object-fit: contain;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent 0%, black 40%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%);
}

/* ═══════════════════════════════════════
   GAME CARD CHARACTER IMAGES
═══════════════════════════════════════ */
.game-card-char {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin: -24px -20px 8px -20px;
    width: calc(100% + 40px);
}

.char-img {
    height: 160px;
    width: auto;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

/* Hisoka — white bg → multiply blend */
.char-hisoka {
    mix-blend-mode: multiply;
    filter: contrast(1.1);
    object-position: top right;
}

/* Gon — white bg → multiply blend */
.char-gon {
    mix-blend-mode: multiply;
    object-position: top center;
}

/* Gon & Killua — dark bg → normal */
.char-killua {
    object-position: center center;
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 0.85;
}

.game-card-menu:hover .char-img {
    transform: scale(1.05);
}
