/* ==========================================================================
   MINERALS: Deep Core Mining Custom Style Sheet
   Theme: Underground Sci-Fi & Glowing Minerals
   ========================================================================== */

:root {
    /* Colors - Deep Basalt & Glowing Ore Theme */
    --color-bg-base: #05060b;      /* Dark void space */
    --color-bg-alt: #0a0c16;       /* Deep volcanic rock */
    --color-bg-panel: #111424;     /* Basalt panel */
    --color-text-main: #f0f2f8;    /* Off-white */
    --color-text-muted: #8c96ab;   /* Slate gray */

    /* Neon Ore Emissive Colors */
    --color-cyan: #00f0ff;         /* Speed & Tech */
    --color-emerald: #00ff88;      /* Drones & Nature */
    --color-magenta: #ff2a85;      /* Boost & Power */
    --color-gold: #ffd23f;         /* Gigantism & Treasures */
    --color-blue: #0066ff;         /* Sensors & Shield */

    /* Typography */
    --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* Layout & Utility */
    --container-width: 1200px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
    
    /* SF Borders & Gradients */
    --border-color: rgba(0, 240, 255, 0.15);
    --border-color-active: rgba(0, 240, 255, 0.6);
    --cyan-glow: 0 0 15px rgba(0, 240, 255, 0.4);
    --magenta-glow: 0 0 15px rgba(255, 42, 133, 0.4);
    --gold-glow: 0 0 15px rgba(255, 210, 63, 0.4);
    --emerald-glow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    background-color: var(--color-bg-base);
}

body {
    font-family: var(--font-body);
    background-color: transparent;
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

p {
    margin-bottom: 1.2rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #fff;
    text-shadow: var(--cyan-glow);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--section-padding) 0;
}

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

.en {
    font-family: var(--font-heading);
}

/* Section Header */
.section-header {
    margin-bottom: 60px;
    position: relative;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-cyan);
    letter-spacing: 0.25em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.section-desc {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    background: transparent;
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}

.btn-primary {
    background-color: rgba(0, 240, 255, 0.08);
    color: var(--color-cyan);
    border-color: var(--border-color-active);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.btn-primary:hover {
    color: #000;
    background-color: var(--color-cyan);
    box-shadow: var(--cyan-glow);
}

.btn-primary .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}

.btn-primary:hover .btn-shine {
    left: 200%;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-huge {
    padding: 22px 48px;
    font-size: 1.25rem;
}

.btn-glow {
    animation: buttonGlow 3s infinite alternate;
}

@keyframes buttonGlow {
    0% {
        box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), 0 0 5px rgba(0, 240, 255, 0.1);
    }
    100% {
        box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.4), 0 0 15px rgba(0, 240, 255, 0.3);
    }
}

/* ==========================================================================
   A. Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--transition-fast), padding var(--transition-fast);
    padding: 24px 0;
    background: linear-gradient(to bottom, rgba(5, 6, 11, 0.95) 0%, rgba(5, 6, 11, 0) 100%);
}

.site-header.scrolled {
    background-color: rgba(5, 6, 11, 0.92);
    padding: 12px 0;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: clamp(28px, 4vw, 38px);
    width: auto;
    display: block;
}

.lang-selector-wrapper {
    position: relative;
    margin-right: auto;
    margin-left: 2rem;
}

.lang-selector-wrapper::after {
    content: '▼';
    font-size: 0.6rem;
    color: var(--color-cyan);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lang-selector {
    appearance: none;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 4px 20px 4px 8px;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-selector:hover, .lang-selector:focus {
    border-color: var(--color-cyan);
    box-shadow: var(--cyan-glow);
    outline: none;
}

.lang-selector option {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.header-nav ul {
    display: flex;
    gap: clamp(0.7rem, 1.5vw, 1.5rem);
}

.header-nav a {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.header-nav a:hover {
    color: #fff;
}

.header-nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-cyan);
    transition: width var(--transition-fast);
    box-shadow: var(--cyan-glow);
}

.header-nav ul a:hover::after {
    width: 100%;
}

.btn-header {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--color-cyan);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   B. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 80px;
    background: radial-gradient(circle at center, rgba(17, 20, 36, 0.4) 0%, transparent 70%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

/* SF HUD Frame */
.hero-media-wrapper {
    position: relative;
    padding: 16px;
    border: 1px solid var(--border-color);
    background-color: rgba(17, 20, 36, 0.4);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.image-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 10s ease;
}

.hero-video {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-media-wrapper:hover .hero-image {
    transform: scale(1.05);
}

/* Corner borders */
.hud-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--color-cyan);
    z-index: 5;
}

.hud-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.hud-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.hud-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.hud-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.hud-grid-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 24px;
}

.hero-title-logo {
    width: 100%;
    margin: 0;
}

.hero-logo-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.45));
}

.hero-tagline {
    font-size: clamp(0.95rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 36px;
    border-left: 3px solid var(--color-magenta);
    padding-left: 15px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.3em;
}

.scroll-indicator .arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--color-cyan);
    border-bottom: 2px solid var(--color-cyan);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-8px) rotate(45deg); }
    60% { transform: translateY(-4px) rotate(45deg); }
}

/* Background Glowing Orbs */
.bg-glows {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-cyan {
    position: absolute;
    top: 20%; left: 10%;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    filter: blur(50px);
}

.glow-magenta {
    position: absolute;
    bottom: 10%; right: 10%;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 42, 133, 0.06) 0%, transparent 70%);
    filter: blur(60px);
}

/* ==========================================================================
   C. Concept & Game Flow Section (Integrated)
   ========================================================================== */
.concept-flow-section {
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.concept-card {
    background: rgba(17, 20, 36, 0.5);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.concept-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-active);
    box-shadow: var(--cyan-glow);
}

.card-hud {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px dashed rgba(0, 240, 255, 0.05);
    margin: 8px;
    pointer-events: none;
}

.concept-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Basic CSS glyphs representing icons */
.icon-dig {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300f0ff" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"><path d="M4 20l11-11"/><path d="M5 5a19 19 0 0 1 14 14"/></svg>');
}

.icon-collect {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff2a85" stroke-width="2.25"><path d="M12 2L2 9L12 22L22 9L12 2Z"/></svg>');
}

.icon-evolve {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffd23f" stroke-width="2.25" stroke-linecap="round" stroke-linejoin="round"><path d="M6 10l6-6 6 6"/><path d="M6 16l6-6 6 6"/><path d="M6 22l6-6 6 6"/></svg>');
}

.concept-card-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: 0.1em;
}

.concept-card-desc {
    font-size: 0.95rem;
    text-align: center;
    color: var(--color-text-muted);
}

/* Timeline Flow */
.flow-timeline-wrapper {
    position: relative;
    max-width: 900px;
    margin: 80px auto 0;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
}

.timeline-active-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--color-cyan), var(--color-magenta));
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    transition: height 0.1s ease-out;
}

.flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 100px;
    align-items: center;
}

.flow-step:last-child {
    margin-bottom: 0;
}

.flow-step-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -20px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-base);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-cyan);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.flow-step:nth-child(even) .flow-step-number {
    color: var(--color-magenta);
    border-color: rgba(255, 42, 133, 0.3);
}

.flow-step-content {
    background-color: rgba(17, 20, 36, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 4px;
    position: relative;
}

.flow-step-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 12px;
}

.flow-step-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.flow-step-media {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.flow-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Direction alignment classes for flow steps */
.flow-step.left-align .flow-step-content {
    grid-column: 1;
}
.flow-step.left-align .flow-step-media {
    grid-column: 2;
}

.flow-step.right-align .flow-step-content {
    grid-column: 2;
    grid-row: 1;
}
.flow-step.right-align .flow-step-media {
    grid-column: 1;
    grid-row: 1;
}

/* ==========================================================================
   D. Build Paths Section
   ========================================================================== */
.build-paths-section {
    background-color: transparent;
    position: relative;
}

.build-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.build-card {
    background: rgba(17, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-slow), border-color var(--transition-fast);
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.build-card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.01) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.build-card-glow {
    position: absolute;
    bottom: -50px; left: 50%; transform: translateX(-50%);
    width: 120px; height: 120px;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
    z-index: 0;
}

.build-card-glow.cyan { background-color: var(--color-cyan); }
.build-card-glow.magenta { background-color: var(--color-magenta); }
.build-card-glow.gold { background-color: var(--color-gold); }
.build-card-glow.emerald { background-color: var(--color-emerald); }
.build-card-glow.blue { background-color: var(--color-blue); }

.build-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.build-card:hover .build-card-glow {
    opacity: 0.25;
}

/* Card hover glow specific border colors */
.build-card:hover:has(.cyan) { border-color: var(--color-cyan); box-shadow: var(--cyan-glow); }
.build-card:hover:has(.magenta) { border-color: var(--color-magenta); box-shadow: var(--magenta-glow); }
.build-card:hover:has(.gold) { border-color: var(--color-gold); box-shadow: var(--gold-glow); }
.build-card:hover:has(.emerald) { border-color: var(--color-emerald); box-shadow: var(--emerald-glow); }
.build-card:hover:has(.blue) { border-color: var(--color-blue); box-shadow: 0 0 15px rgba(0, 102, 255, 0.4); }

.build-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.icon-power {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff2a85" stroke-width="2"><path d="M13 2L3 14H12L11 22L21 10H12L13 2Z"/></svg>');
}
.icon-boost {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300f0ff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L7 12c2 1.5 8 1.5 10 0Z" fill="none"/><path d="M9.5 7h5" fill="none"/><path d="M8.5 10h7" fill="none"/><path d="M9 13.5L7 17h3l-2 5 4-3 4 3-2-5h3l-2-3.5" fill="none"/></svg>');
    transform: rotate(45deg);
}
.icon-gigantism {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffd23f" stroke-width="2"><rect x="2" y="2" width="20" height="20" rx="2"/><path d="M7 17L17 7"/><path d="M12 7H17V12"/></svg>');
}
.icon-drone {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2300ff88" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3L9 9h6Z" fill="none"/><path d="M10.5 6h3" fill="none"/><path d="M10 8h4" fill="none"/><path d="M7 13L4 19h6Z" fill="none"/><path d="M5.5 16h3" fill="none"/><path d="M5 18h4" fill="none"/><path d="M17 13l-3 6h6Z" fill="none"/><path d="M15.5 16h3" fill="none"/><path d="M15 18h4" fill="none"/></svg>');
    transform: rotate(45deg);
}
.icon-sensor {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230066ff" stroke-width="2"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>');
}

.build-title-text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
    z-index: 2;
}

.build-desc-text {
    font-size: 0.8rem;
    line-height: 1.6;
    margin-bottom: 0;
    z-index: 2;
}

.build-summary {
    max-width: 650px;
    margin: 40px auto 0;
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-cyan);
    line-height: 1.8;
}

/* ==========================================================================
   E. Fine Minerals Section
   ========================================================================== */
.minerals-section {
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.minerals-main-display {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
    background-color: rgba(17, 20, 36, 0.3);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 60px;
}

.minerals-visual {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mineral-showcase-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.minerals-text h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.minerals-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Catalog Grid */
.minerals-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.mineral-card {
    background-color: rgba(17, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.mineral-specimen {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.mineral-specimen-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
    transition: filter var(--transition-fast), transform var(--transition-fast);
}

.font-gold {
    filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.5)) !important;
}

.mineral-rarity {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.mineral-name {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 8px;
}

.mineral-stat {
    font-size: 0.75rem;
    color: var(--color-cyan);
    margin-bottom: 0;
}

/* Card states */
.mineral-card.discovered:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.mineral-card.discovered.rare {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}
.mineral-card.discovered.rare:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--cyan-glow);
}
.mineral-card.discovered.rare .mineral-specimen,
.mineral-card.discovered.rare .mineral-specimen-img {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}
.mineral-card.discovered.rare:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.9));
    transform: scale(1.05);
}
.mineral-card.discovered.rare .mineral-rarity {
    color: var(--color-cyan);
}

.mineral-card.discovered.legendary {
    border-color: rgba(255, 42, 133, 0.3);
    box-shadow: inset 0 0 15px rgba(255, 42, 133, 0.05);
}
.mineral-card.discovered.legendary:hover {
    border-color: var(--color-magenta);
    box-shadow: var(--magenta-glow);
}
.mineral-card.discovered.legendary .mineral-specimen,
.mineral-card.discovered.legendary .mineral-specimen-img {
    filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.7));
}
.mineral-card.discovered.legendary:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 15px rgba(255, 42, 133, 0.9));
    transform: scale(1.05);
}
.mineral-card.discovered.legendary .mineral-rarity {
    color: var(--color-magenta);
}

.mineral-card.unknown {
    opacity: 0.4;
    background-color: rgba(5, 6, 11, 0.5);
    border-style: dashed;
}

.mineral-specimen-silhouette {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
    opacity: 0.25; /* 半透明にして未発見感を出す */
    /* 青色 (#0066ff) のシルエットに変換するフィルター + 光彩 */
    filter: brightness(0) saturate(100%) invert(34%) sepia(85%) saturate(3828%) hue-rotate(213deg) brightness(102%) contrast(109%) drop-shadow(0 0 5px rgba(0, 102, 255, 0.5));
    transition: filter var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast);
}

.mineral-card.unknown:hover .mineral-specimen-silhouette {
    opacity: 0.45;
    transform: scale(1.05);
    /* ホバー時に光彩（drop-shadow）を強める */
    filter: brightness(0) saturate(100%) invert(34%) sepia(85%) saturate(3828%) hue-rotate(213deg) brightness(102%) contrast(109%) drop-shadow(0 0 10px rgba(0, 102, 255, 0.9));
}

.card-shine-effect {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: rotateShine 8s linear infinite;
}

@keyframes rotateShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   F. Skill Tree Section
   ========================================================================== */
/* ==========================================================================
   F. Skill Tree Section
   ========================================================================== */
.skills-section {
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.skills-main-display {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    background-color: rgba(17, 20, 36, 0.3);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 60px;
}

.skills-visual {
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.skills-showcase-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.skills-text h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.skills-text p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Skills Catalog Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.skill-card {
    background-color: rgba(17, 20, 36, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.skill-icon-wrapper {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.skill-icon-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.skill-card:hover .skill-icon-img {
    transform: scale(1.1);
}

.skill-rarity {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.skill-name {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 8px;
}

.skill-effect {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Card states */
.skill-card.discovered:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-card.discovered.rare {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.05);
}
.skill-card.discovered.rare:hover {
    border-color: var(--color-cyan);
    box-shadow: var(--cyan-glow);
}
.skill-card.discovered.rare .skill-icon-wrapper {
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
}
.skill-card.discovered.rare .skill-rarity {
    color: var(--color-cyan);
}

.skill-card.discovered.legendary {
    border-color: rgba(255, 42, 133, 0.3);
    box-shadow: inset 0 0 15px rgba(255, 42, 133, 0.05);
}
.skill-card.discovered.legendary:hover {
    border-color: var(--color-magenta);
    box-shadow: var(--magenta-glow);
}
.skill-card.discovered.legendary .skill-icon-wrapper {
    filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.7));
}
.skill-card.discovered.legendary .skill-rarity {
    color: var(--color-magenta);
}

/* ==========================================================================
   G. Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: transparent;
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.item-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5, 6, 11, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.zoom-icon {
    font-size: 2rem;
    color: var(--color-cyan);
    text-shadow: var(--cyan-glow);
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-icon {
    transform: scale(1);
}

.gallery-item figcaption {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
    padding: 0 10px;
}

.flex-span-2 {
    grid-column: span 2;
}

/* ==========================================================================
   H. Specs Section
   ========================================================================== */
.specs-section {
    background-color: transparent;
    position: relative;
}

.specs-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.specs-wrapper.single-table {
    display: flex;
    justify-content: center;
}

.specs-wrapper.single-table .specs-table-wrapper {
    width: 100%;
    max-width: 700px;
}

.specs-table-wrapper, .sys-req-wrapper {
    background-color: rgba(17, 20, 36, 0.4);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.sys-req-title {
    font-size: 1.25rem;
    color: var(--color-cyan);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 2px solid var(--color-cyan);
    padding-left: 10px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: left;
    padding: 16px 0;
    width: 35%;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-table td {
    font-size: 0.95rem;
    color: var(--color-text-main);
    padding: 16px 0;
}

/* ==========================================================================
   I. Bottom CTA Section
   ========================================================================== */
.bottom-cta-section {
    background-color: transparent;
    position: relative;
    overflow: hidden;
}

.bottom-cta-hud-top, .bottom-cta-hud-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 50%, transparent 100%);
    box-shadow: var(--cyan-glow);
}

.bottom-cta-hud-top { top: 0; }
.bottom-cta-hud-bottom { bottom: 0; }

.cta-heading {
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #fff;
    margin-bottom: 12px;
}

.cta-subheading {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    max-width: 600px;
    margin: 0 auto 36px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-panel);
    padding: 40px 0;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
}

.footer-warning {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.copyright {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Scroll Fade-in Animations
   ========================================================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delayed elements sequencing */
.concept-card:nth-child(1) { transition-delay: 0.1s; }
.concept-card:nth-child(2) { transition-delay: 0.25s; }
.concept-card:nth-child(3) { transition-delay: 0.4s; }

.build-card:nth-child(1) { transition-delay: 0.05s; }
.build-card:nth-child(2) { transition-delay: 0.15s; }
.build-card:nth-child(3) { transition-delay: 0.25s; }
.build-card:nth-child(4) { transition-delay: 0.35s; }
.build-card:nth-child(5) { transition-delay: 0.45s; }

.mineral-card:nth-child(1) { transition-delay: 0.05s; }
.mineral-card:nth-child(2) { transition-delay: 0.1s; }
.mineral-card:nth-child(3) { transition-delay: 0.15s; }
.mineral-card:nth-child(4) { transition-delay: 0.2s; }
.mineral-card:nth-child(5) { transition-delay: 0.25s; }
.mineral-card:nth-child(6) { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content {
        order: 2;
        text-align: center;
        align-items: center;
    }
    
    .hero-media-wrapper {
        order: 1;
        max-width: 650px;
        margin: 0 auto;
    }

    .hero-tagline {
        border-left: none;
        border-bottom: 2px solid var(--color-magenta);
        padding-left: 0;
        padding-bottom: 15px;
    }

    .build-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .minerals-main-display {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .minerals-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .skills-main-display {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .specs-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* ヘッダーメニューの切り替えを 1024px 以下で有効にする */
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(5, 6, 11, 0.98);
        border-bottom: 1px solid rgba(0, 240, 255, 0.15);
        padding: 30px 24px;
        flex-direction: column;
        gap: 25px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .flow-timeline-wrapper {
        padding: 20px 0;
    }

    .timeline-line, .timeline-active-line {
        left: 20px;
        transform: none;
    }

    .flow-step {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
        padding-left: 45px;
    }

    .flow-step-number {
        left: 20px;
        transform: translate(-50%, 0);
        top: 0;
    }

    .flow-step.left-align .flow-step-content,
    .flow-step.left-align .flow-step-media,
    .flow-step.right-align .flow-step-content,
    .flow-step.right-align .flow-step-media {
        grid-column: 1;
        grid-row: auto;
    }

    .build-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .flex-span-2 {
        grid-column: span 1;
    }

    /* ギャラリーが縦一列（768px以下）のときはクリックおよびホバー効果を無効化 */
    .gallery-item a {
        pointer-events: none;
        cursor: default;
    }
    
    .gallery-item:hover .gallery-img {
        transform: none !important;
    }
    
    .gallery-item:hover .item-overlay {
        opacity: 0 !important;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .build-grid {
        grid-template-columns: 1fr;
    }

    .minerals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specs-table-wrapper, .sys-req-wrapper {
        padding: 20px;
    }

    .specs-table th {
        width: 40%;
    }
}

/* ==========================================================================
   Scrolling Immersion Background (地上から地下最深部へ)
   ========================================================================== */
.scrolling-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: var(--color-bg-base);
    pointer-events: none;
}

.scroll-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.2s ease-out;
    will-change: opacity;
}

.scroll-bg-layer.surface {
    background-image: linear-gradient(to bottom, rgba(5, 6, 11, 0.4) 0%, rgba(5, 6, 11, 0.4) 75%, rgba(5, 6, 11, 0.8) 100%), url('./assets/surface_bg.png');
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 100%);
}

.scroll-bg-layer.shallow {
    background-image: linear-gradient(to bottom, rgba(5, 6, 11, 0.45) 0%, rgba(5, 6, 11, 0.45) 100%), url('./assets/shallow_bg.png');
}

.scroll-bg-layer.deep {
    background-image: linear-gradient(to bottom, rgba(5, 6, 11, 0.5) 0%, rgba(5, 6, 11, 0.5) 100%), url('./assets/deep_crystal_bg.png');
}

.scroll-bg-layer.magma {
    background-image: 
        radial-gradient(circle at bottom, rgba(255, 50, 0, 0.45) 0%, rgba(5, 6, 11, 0.7) 80%),
        linear-gradient(to bottom, rgba(5, 6, 11, 0.6) 0%, rgba(5, 6, 11, 0.3) 100%),
        url('./assets/magma_bg.png');
}

/* ==========================================================================
   Gallery Lightbox Modal
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000; /* ヘッダー(100)より前面に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 6, 11, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.25s ease-out;
}

.modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    padding: 20px;
}

.modal-content {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid var(--border-color-active);
    box-shadow: var(--cyan-glow);
    border-radius: 4px;
    animation: modalZoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-caption {
    margin-top: 16px;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-text-muted);
    font-size: 44px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast), transform var(--transition-fast);
    user-select: none;
}

.modal-close:hover {
    color: var(--color-cyan);
    text-shadow: var(--cyan-glow);
    transform: scale(1.1);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalZoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .modal-close {
        top: 20px;
        right: 25px;
        font-size: 36px;
    }
    
    .modal-caption {
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   Floating Wishlist Bar (Overlay Menu)
   ========================================================================== */
.floating-wishlist-bar {
    position: fixed;
    bottom: -120px; /* 初期状態は完全に画面外 */
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(11, 14, 24, 0.85); /* 深層パネル背景色に合わせた半透明 */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color-active); /* シアンの発光境界線 */
    box-shadow: 0 -10px 30px rgba(0, 240, 255, 0.15), 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 99; /* モーダル(2000)やヘッダー(100)のすぐ下 */
    transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.floating-wishlist-bar.active {
    bottom: 0;
}

.floating-wishlist-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.floating-wishlist-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.floating-logo-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.3));
}

.floating-tagline {
    font-size: 0.9rem;
    color: var(--color-text-main);
    margin-bottom: 0;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

.btn-floating-steam {
    padding: 10px 24px;
    font-size: 0.85rem;
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.2), 0 0 10px rgba(0, 240, 255, 0.1);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .floating-wishlist-bar {
        height: auto;
        padding: 12px 0;
        bottom: -150px; /* モバイルでは高さが増すため、より深く隠す */
    }
    .floating-wishlist-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .floating-wishlist-left {
        flex-direction: column;
        gap: 4px;
    }
    .floating-tagline {
        display: none; /* スマホではタグラインを非表示にして省スペース化 */
    }
    .floating-logo-img {
        height: 24px;
    }
    .btn-floating-steam {
        width: 100%;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Rarity Card Coloring (1:Gray, 2:Green, 3:Blue, 4:Purple, 5:Gold)
   ========================================================================== */
:root {
    --color-rarity-1: #8c96ab; /* Slate gray */
    --color-rarity-2: #00ff88; /* Emerald green */
    --color-rarity-3: #00f0ff; /* Cyan blue */
    --color-rarity-4: #c084fc; /* Purple */
    --color-rarity-5: #ffd23f; /* Gold */
    --purple-glow: 0 0 15px rgba(192, 132, 252, 0.45);
}

/* ★1 - Gray */
.mineral-card.rarity-1, .skill-card.rarity-1 {
    border-color: rgba(140, 150, 171, 0.15);
}
.mineral-card.rarity-1:hover, .skill-card.rarity-1:hover {
    border-color: var(--color-rarity-1);
    box-shadow: 0 0 15px rgba(140, 150, 171, 0.25);
}
.mineral-card.rarity-1 .mineral-rarity, .skill-card.rarity-1 .skill-rarity {
    color: var(--color-rarity-1);
}

/* ★2 - Green */
.mineral-card.rarity-2, .skill-card.rarity-2 {
    border-color: rgba(0, 255, 136, 0.25);
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.03);
}
.mineral-card.rarity-2:hover, .skill-card.rarity-2:hover {
    border-color: var(--color-rarity-2);
    box-shadow: var(--emerald-glow);
}
.mineral-card.rarity-2 .mineral-specimen-img, .skill-card.rarity-2 .skill-icon-wrapper {
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.5));
}
.mineral-card.rarity-2:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 12px rgba(0, 255, 136, 0.8));
}
.mineral-card.rarity-2 .mineral-rarity, .skill-card.rarity-2 .skill-rarity {
    color: var(--color-rarity-2);
}

/* ★3 - Blue */
.mineral-card.rarity-3, .skill-card.rarity-3 {
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.03);
}
.mineral-card.rarity-3:hover, .skill-card.rarity-3:hover {
    border-color: var(--color-rarity-3);
    box-shadow: var(--cyan-glow);
}
.mineral-card.rarity-3 .mineral-specimen-img, .skill-card.rarity-3 .skill-icon-wrapper {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
}
.mineral-card.rarity-3:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.8));
}
.mineral-card.rarity-3 .mineral-rarity, .skill-card.rarity-3 .skill-rarity {
    color: var(--color-rarity-3);
}

/* ★4 - Purple */
.mineral-card.rarity-4, .skill-card.rarity-4 {
    border-color: rgba(192, 132, 252, 0.25);
    box-shadow: inset 0 0 15px rgba(192, 132, 252, 0.03);
}
.mineral-card.rarity-4:hover, .skill-card.rarity-4:hover {
    border-color: var(--color-rarity-4);
    box-shadow: var(--purple-glow);
}
.mineral-card.rarity-4 .mineral-specimen-img, .skill-card.rarity-4 .skill-icon-wrapper {
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.5));
}
.mineral-card.rarity-4:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.8));
}
.mineral-card.rarity-4 .mineral-rarity, .skill-card.rarity-4 .skill-rarity {
    color: var(--color-rarity-4);
}

/* ★5 - Gold */
.mineral-card.rarity-5, .skill-card.rarity-5 {
    border-color: rgba(255, 210, 63, 0.3);
    box-shadow: inset 0 0 15px rgba(255, 210, 63, 0.05);
}
.mineral-card.rarity-5:hover, .skill-card.rarity-5:hover {
    border-color: var(--color-rarity-5);
    box-shadow: var(--gold-glow);
}
.mineral-card.rarity-5 .mineral-specimen-img, .skill-card.rarity-5 .skill-icon-wrapper {
    filter: drop-shadow(0 0 10px rgba(255, 210, 63, 0.6));
}
.mineral-card.rarity-5:hover .mineral-specimen-img {
    filter: drop-shadow(0 0 15px rgba(255, 210, 63, 0.85));
}
.mineral-card.rarity-5 .mineral-rarity, .skill-card.rarity-5 .skill-rarity {
    color: var(--color-rarity-5);
}

