/* ==========================================================================
   FAIRYLAND ONLINE - AUTHENTIC IN-GAME PRIVATE SERVER PORTAL
   Theme: In-Game Loading Artwork, Storybook Gold Typography, Translucent UI
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Mali:wght@500;600;700;800&family=Prompt:wght@400;500;600;700;800&family=Rajdhani:wght@600;700;800&family=Sarabun:wght@400;500;600;700;800&display=swap');

:root {
    /* In-game Authentic Colors */
    --fl-gold: #ffdf4d;
    --fl-gold-light: #fff3a8;
    --fl-gold-dark: #b47d0d;
    --fl-wood-border: #422a12;
    --fl-wood-dark: #1e1105;
    
    --fl-cyan: #38bdf8;
    --fl-cyan-light: #bae6fd;
    --fl-mint: #34d399;
    --fl-rose: #fb7185;
    
    /* Translucent Glass Layers */
    --glass-panel: rgba(15, 23, 42, 0.62);
    --glass-panel-light: rgba(255, 255, 255, 0.18);
    --glass-card: rgba(18, 28, 48, 0.72);
    --glass-border: rgba(255, 223, 77, 0.45);
    --glass-glow: rgba(255, 223, 77, 0.2);

    /* Fonts */
    --font-game: 'Mali', 'Sarabun', Tahoma, sans-serif;
    --font-body: 'Prompt', 'Sarabun', Tahoma, sans-serif;
    --font-num: 'Rajdhani', sans-serif;

    /* Extra Rounded Shapes */
    --radius-bubble: 32px;
    --radius-pill: 9999px;
    --radius-card: 24px;
    --radius-input: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html, body {
    min-height: 100vh;
}

body {
    /* AUTHENTIC IN-GAME LOADING ARTWORK BACKGROUND */
    background: #0d1627 url('assets/bg_loading.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Translucent Sky Tint Overlay for High Readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0.68) 70%, rgba(7, 11, 20, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   TOP BAR - PRIVATE SERVER DISCLAIMER (เซิร์ฟเวอร์ส่วนบุคคล)
   ========================================================================== */
.private-top-bar {
    position: relative;
    z-index: 20;
    max-width: 1180px;
    margin: 12px auto 0;
    padding: 0 20px;
}

.private-top-pill {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 223, 77, 0.4);
    border-radius: var(--radius-pill);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--fl-gold-light);
    font-weight: 600;
}

.private-badge-tag {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.top-audio-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 223, 77, 0.35);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-game);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s;
}

.top-audio-toggle:hover {
    background: rgba(255, 223, 77, 0.25);
    color: var(--fl-gold);
}

/* ==========================================================================
   TRANSLUCENT GAME NAVIGATION BAR
   ========================================================================== */
.game-nav-wrapper {
    position: sticky;
    top: 10px;
    z-index: 100;
    max-width: 1180px;
    margin: 10px auto 0;
    padding: 0 20px;
}

.game-nav-pill {
    background: rgba(17, 26, 46, 0.78);
    backdrop-filter: blur(28px) saturate(190%);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.25);
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.game-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.game-logo-crest {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff3a8 0%, #ffdf4d 50%, #b47d0d 100%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(255, 223, 77, 0.45);
}

.game-logo-crest img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* In-Game Gold Outline Typography */
.game-logo-text h1 {
    font-family: var(--font-game);
    font-size: 22px;
    font-weight: 800;
    color: var(--fl-gold);
    text-shadow: 2px 2px 0px var(--fl-wood-dark), -1.5px -1.5px 0px var(--fl-wood-dark), 1.5px -1.5px 0px var(--fl-wood-dark), -1.5px 1.5px 0px var(--fl-wood-dark), 0 3px 6px rgba(0,0,0,0.8);
    line-height: 1;
}

.game-logo-text span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: #93c5fd;
    letter-spacing: 0.5px;
}

/* SLIDER TAB CONTROLLER */
.game-tabs-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 12, 22, 0.6);
    border: 1px solid rgba(255, 223, 77, 0.25);
    border-radius: var(--radius-pill);
    padding: 4px;
}

.game-tab-item {
    background: transparent;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font-game);
    font-size: 14px;
    font-weight: 700;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.game-tab-item:hover {
    color: var(--fl-gold-light);
    background: rgba(255, 255, 255, 0.08);
}

.game-tab-item.active {
    background: linear-gradient(135deg, #f59e0b, #b47d0d);
    color: #1e1105;
    box-shadow: 0 3px 12px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

.btn-game-reg-nav {
    background: linear-gradient(135deg, #ffdf4d 0%, #f59e0b 100%);
    border: 1.5px solid #fff3a8;
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 14px;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
    transition: all 0.2s;
}

.btn-game-reg-nav:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ==========================================================================
   SLIDER STAGE & SLIDE PANELS
   ========================================================================== */
.game-slider-stage {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: 26px auto 36px;
    padding: 0 20px;
}

.slide-panel {
    display: none;
    animation: gamePanelFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-panel.active {
    display: block;
}

@keyframes gamePanelFade {
    from { opacity: 0; transform: translateY(12px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* SLIDE 0: HERO & REGISTRATION */
.hero-game-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.translucent-game-card {
    background: var(--glass-panel);
    backdrop-filter: blur(28px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-bubble);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.private-server-tag {
    align-self: flex-start;
    background: rgba(245, 158, 11, 0.18);
    border: 1.5px solid var(--fl-gold);
    color: var(--fl-gold);
    font-family: var(--font-game);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px #000;
}

.game-title-hero {
    font-family: var(--font-game);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--fl-gold);
    text-shadow: 2.5px 2.5px 0px var(--fl-wood-dark), -2px -2px 0px var(--fl-wood-dark), 2px -2px 0px var(--fl-wood-dark), -2px 2px 0px var(--fl-wood-dark), 0 4px 12px rgba(0,0,0,0.9);
}

.game-lead-desc {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* REAL-TIME POTION COUNTER VIAL */
.counter-potion-card {
    background: rgba(10, 16, 30, 0.7);
    border: 1.5px solid rgba(255, 223, 77, 0.35);
    border-radius: var(--radius-card);
    padding: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.potion-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.potion-title {
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 700;
    color: var(--fl-gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px #000;
}

.live-badge-chip {
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid #ef4444;
    color: #fca5a5;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot-pulse {
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 6px #ef4444;
}

.potion-digits-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.potion-big-num {
    font-family: var(--font-num);
    font-size: 46px;
    font-weight: 800;
    color: var(--fl-gold);
    line-height: 1;
    text-shadow: 0 0 15px rgba(255, 223, 77, 0.5);
}

.potion-cap-num {
    font-family: var(--font-num);
    font-size: 20px;
    color: #94a3b8;
    font-weight: 700;
}

/* POTION TRACK */
.potion-track-bar {
    width: 100%;
    height: 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 223, 77, 0.4);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 10px;
}

.potion-track-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #f59e0b, #ffdf4d);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.potion-footer-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #cbd5e1;
    font-weight: 600;
}

.potion-footer-stats b {
    color: var(--fl-gold);
}

/* CUTE ACTION BUTTONS */
.hero-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-game-cta {
    background: linear-gradient(180deg, #ffdf4d 0%, #f59e0b 50%, #d97706 100%);
    border: 2px solid #fff3a8;
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 800;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-game-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.65);
}

.btn-game-ghost {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--glass-border);
    color: var(--fl-gold-light);
    font-family: var(--font-game);
    font-size: 15px;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-game-ghost:hover {
    background: rgba(255, 223, 77, 0.15);
    border-color: var(--fl-gold);
    transform: translateY(-2px);
}

/* HERO ARTWORK FRAME */
.hero-art-bubble {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(28px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-bubble);
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    position: relative;
}

.hero-art-inner {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 616 / 353;
}

.hero-art-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.art-tag-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: 1px solid #ffdf4d;
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.art-footer-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 16, 30, 0.95) 100%);
    padding: 24px 16px 12px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.art-footer-tag h4 {
    font-family: var(--font-game);
    font-size: 17px;
    font-weight: 800;
    color: var(--fl-gold);
    text-shadow: 1px 1px 2px #000;
}

/* SLIDES 1, 2, 3, 4 COMMON TRANSLUCENT CONTAINER */
.slide-content-bubble {
    background: var(--glass-panel);
    backdrop-filter: blur(28px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-bubble);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    padding: 36px;
}

.slide-header-box {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.slide-chip-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--fl-gold);
    color: var(--fl-gold);
    font-family: var(--font-game);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 8px;
}

.slide-main-h3 {
    font-family: var(--font-game);
    font-size: 32px;
    font-weight: 800;
    color: var(--fl-gold);
    text-shadow: 2px 2px 0px var(--fl-wood-dark), -1.5px -1.5px 0px var(--fl-wood-dark), 1.5px -1.5px 0px var(--fl-wood-dark), -1.5px 1.5px 0px var(--fl-wood-dark), 0 3px 8px rgba(0,0,0,0.8);
    margin-bottom: 6px;
}

.slide-sub-p {
    color: #cbd5e1;
    font-size: 15px;
}

/* MILESTONE GRID */
.milestones-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.milestone-item-bubble {
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 223, 77, 0.3);
    border-radius: var(--radius-card);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.25s;
}

.milestone-item-bubble:hover {
    transform: translateY(-4px);
    border-color: var(--fl-gold);
    background: rgba(20, 30, 55, 0.8);
}

.milestone-item-bubble.unlocked {
    border-color: var(--fl-gold);
    background: rgba(35, 26, 8, 0.65);
}

.milestone-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--fl-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.db-item-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    image-rendering: pixelated;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.milestone-quota-chip {
    font-family: var(--font-num);
    font-size: 15px;
    font-weight: 700;
    color: var(--fl-gold-light);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 223, 77, 0.3);
    padding: 3px 12px;
    border-radius: var(--radius-pill);
}

.milestone-item-bubble h4 {
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.milestone-item-bubble p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.5;
}

.milestone-status-chip {
    margin-top: auto;
    font-family: var(--font-game);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: var(--radius-pill);
}

.milestone-status-chip.done {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
}

.milestone-status-chip.wait {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid #f59e0b;
    color: #fbbf24;
}

/* GAME FEATURES GRID */
.features-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-panel-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 223, 77, 0.3);
    border-radius: var(--radius-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-media-top {
    height: 135px;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2) 0%, rgba(10, 16, 30, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 223, 77, 0.25);
}

.sprite-bouncing {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
    animation: spriteFloat 2.8s ease-in-out infinite alternate;
}

.sprite-bouncing:nth-child(2) {
    animation-delay: 1.4s;
}

@keyframes spriteFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.feature-text-bottom {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-text-bottom h3 {
    font-family: var(--font-game);
    font-size: 18px;
    font-weight: 700;
    color: var(--fl-gold);
    text-shadow: 1px 1px 2px #000;
}

.feature-text-bottom p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

/* DOWNLOAD SLIDE */
.download-layout-box {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 34px;
    align-items: center;
}

.dl-details-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dl-status-stamp {
    align-self: flex-start;
    background: #78350f;
    border: 1.5px solid #f59e0b;
    color: #fde68a;
    font-family: var(--font-game);
    font-size: 15px;
    font-weight: 800;
    padding: 5px 18px;
    border-radius: var(--radius-pill);
}

.dl-heading-txt {
    font-family: var(--font-game);
    font-size: 26px;
    font-weight: 800;
    color: var(--fl-gold);
    text-shadow: 1px 1px 2px #000;
}

.dl-alert-pill {
    background: rgba(10, 16, 30, 0.8);
    border-left: 4px solid var(--fl-gold);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #e2e8f0;
}

.dl-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-locked-dl {
    background: rgba(15, 23, 42, 0.7);
    border: 1.5px dashed #64748b;
    color: #94a3b8;
    font-family: var(--font-game);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-locked-dl:hover {
    border-color: var(--fl-gold);
    color: var(--fl-gold);
}

.spec-sheet-card {
    background: rgba(10, 16, 30, 0.75);
    border: 1.5px solid rgba(255, 223, 77, 0.3);
    border-radius: var(--radius-card);
    padding: 22px;
}

.spec-sheet-card h4 {
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 700;
    color: var(--fl-gold);
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 223, 77, 0.2);
    padding-bottom: 8px;
}

.spec-row-grid {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 10px 12px;
    font-size: 13px;
}

.spec-row-grid .k {
    color: #94a3b8;
    font-weight: 600;
}

.spec-row-grid .v {
    color: #e2e8f0;
}

/* SECURITY SLIDE */
.security-pillars-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.security-panel-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px solid rgba(255, 223, 77, 0.3);
    border-radius: var(--radius-card);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sec-pill-icon {
    font-size: 30px;
    margin-bottom: 4px;
}

.security-panel-card h4 {
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 700;
    color: var(--fl-gold);
}

.security-panel-card p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* SLIDER ARROWS & DOTS */
.slider-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    border: 2px solid var(--fl-gold);
    color: var(--fl-gold);
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 50;
}

.slider-arrow-btn:hover {
    background: var(--fl-gold);
    color: #1e1105;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev { left: -16px; }
.slider-arrow-next { right: -16px; }

.slider-dots-box {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 223, 77, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.slider-dot.active {
    width: 32px;
    border-radius: var(--radius-pill);
    background: var(--fl-gold);
    box-shadow: 0 0 10px var(--fl-gold);
}

/* ==========================================================================
   MODAL DIALOGUES (TRANSLUCENT + GOLD RIVET BORDER)
   ========================================================================== */
.game-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 20, 0.75);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 16px;
}

.game-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog-frame {
    background: rgba(17, 26, 46, 0.88);
    backdrop-filter: blur(32px) saturate(190%);
    border: 2px solid var(--fl-gold);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-bubble);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    animation: modalSlideZoom 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideZoom {
    from { transform: scale(0.92) translateY(18px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header-strip {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-bottom: 1.5px solid rgba(255, 223, 77, 0.4);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-strip h3 {
    font-family: var(--font-game);
    font-size: 19px;
    font-weight: 800;
    color: var(--fl-gold);
    text-shadow: 1px 1px 2px #000;
}

.modal-close-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 223, 77, 0.4);
    color: var(--fl-gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #7f1d1d;
    border-color: #ef4444;
    color: #fff;
}

.modal-body-pad {
    padding: 24px;
}

/* FORM STYLING */
.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-label-txt {
    font-family: var(--font-game);
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.form-label-txt span.req {
    color: #f87171;
}

.rpg-input-box {
    background: rgba(10, 16, 30, 0.85);
    border: 1.5px solid rgba(255, 223, 77, 0.35);
    border-radius: var(--radius-input);
    color: #fff;
    padding: 11px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.rpg-input-box:focus {
    border-color: var(--fl-gold);
    box-shadow: 0 0 10px rgba(255, 223, 77, 0.35);
}

.bot-challenge-box {
    background: rgba(10, 16, 30, 0.85);
    border: 1.5px dashed rgba(255, 223, 77, 0.4);
    border-radius: var(--radius-card);
    padding: 14px;
    margin: 14px 0;
}

.bot-title-row {
    font-family: var(--font-game);
    font-size: 13px;
    font-weight: 700;
    color: var(--fl-gold);
    margin-bottom: 6px;
}

.bot-q-text {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.bot-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bot-opt-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 223, 77, 0.3);
    color: #e2e8f0;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.bot-opt-btn:hover {
    background: rgba(255, 223, 77, 0.15);
    border-color: var(--fl-gold);
    color: var(--fl-gold);
}

.bot-opt-btn.selected {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #ffdf4d;
    color: #1e1105;
    font-weight: 800;
}

.btn-modal-submit {
    width: 100%;
    background: linear-gradient(180deg, #ffdf4d 0%, #f59e0b 50%, #d97706 100%);
    border: 1.5px solid #fff3a8;
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 800;
    padding: 12px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-modal-submit:hover {
    filter: brightness(1.1);
}

.btn-modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: none;
}

/* OTP SQUARES */
.otp-digit-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 14px;
}

.otp-box-digit {
    width: 48px;
    height: 56px;
    background: rgba(10, 16, 30, 0.85);
    border: 2px solid rgba(255, 223, 77, 0.4);
    border-radius: 12px;
    color: var(--fl-gold);
    font-family: var(--font-num);
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.otp-box-digit:focus {
    border-color: var(--fl-gold);
    box-shadow: 0 0 12px rgba(255, 223, 77, 0.4);
}

/* GOLDEN TICKET */
.golden-ticket-wrap {
    background: rgba(20, 15, 5, 0.85);
    border: 2px dashed var(--fl-gold);
    border-radius: var(--radius-card);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(255, 223, 77, 0.2);
}

.ticket-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(255, 223, 77, 0.5);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.ticket-brand-name {
    font-family: var(--font-game);
    font-size: 15px;
    font-weight: 800;
    color: var(--fl-gold);
}

.ticket-pass-badge {
    background: #14532d;
    border: 1px solid #22c55e;
    color: #4ade80;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.ticket-code-card {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 223, 77, 0.3);
    border-radius: var(--radius-input);
    padding: 12px;
    margin-bottom: 12px;
}

.ticket-code-card .token-code {
    font-family: var(--font-num);
    font-size: 28px;
    font-weight: 800;
    color: var(--fl-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 223, 77, 0.6);
}

.ticket-rows-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    font-size: 13px;
}

.ticket-rows-grid .k {
    color: #94a3b8;
}

.ticket-rows-grid .v {
    color: #fff;
    font-weight: 600;
}

/* TOAST */
.rpg-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    border: 2px solid var(--fl-gold);
    color: #fff;
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    font-family: var(--font-game);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.25s;
    z-index: 9999;
}

.rpg-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.rpg-toast.success {
    border-color: #22c55e;
    color: #4ade80;
}

.rpg-toast.error {
    border-color: #ef4444;
    color: #fca5a5;
}

/* FOOTER */
.portal-footer {
    position: relative;
    z-index: 10;
    max-width: 1180px;
    margin: 40px auto 30px;
    padding: 24px 20px;
    border-top: 1px solid rgba(255, 223, 77, 0.25);
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-disclaimer-box {
    background: rgba(10, 16, 30, 0.6);
    border: 1px solid rgba(255, 223, 77, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #cbd5e1;
    text-align: left;
}

/* ==========================================================================
   GAME LOADING PROGRESS POPUP (สไตล์หน้าต่างโหลดตัวเกม)
   ========================================================================== */
.loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 11, 20, 0.88);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.loading-screen-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-loader-box {
    background: rgba(17, 26, 46, 0.95);
    border: 2px solid var(--fl-gold);
    border-radius: var(--radius-bubble);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    animation: modalSlideZoom 0.35s ease;
    text-align: center;
}

.loader-header-strip {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1.5px solid rgba(255, 223, 77, 0.4);
    padding: 12px 20px;
    font-family: var(--font-game);
    font-size: 14px;
    font-weight: 700;
    color: var(--fl-gold);
    letter-spacing: 0.5px;
}

.loader-body {
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.loader-mascot {
    width: 72px;
    height: 72px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-sprite {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    animation: loaderBounce 0.6s infinite alternate ease-in-out;
}

@keyframes loaderBounce {
    0% { transform: translateY(0) scale(1, 1); }
    100% { transform: translateY(-14px) scale(0.95, 1.05); }
}

.loader-status {
    font-family: var(--font-game);
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    min-height: 22px;
}

.loader-bar-outer {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1.5px solid rgba(255, 223, 77, 0.45);
    border-radius: var(--radius-pill);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.loader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #0ea5e9, #f59e0b, #ffdf4d);
    border-radius: var(--radius-pill);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
    transition: width 0.15s ease-out;
}

.loader-percent-row {
    font-family: var(--font-num);
    font-size: 18px;
    font-weight: 800;
    color: var(--fl-gold);
    letter-spacing: 1px;
}

.btn-enter-game {
    background: linear-gradient(180deg, #ffdf4d 0%, #f59e0b 50%, #d97706 100%);
    border: 2px solid #fff3a8;
    color: #1e1105;
    font-family: var(--font-game);
    font-size: 16px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.5);
    animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4); }
    100% { transform: scale(1.04); box-shadow: 0 8px 25px rgba(255, 223, 77, 0.7); }
}

/* FLOATING MUSIC CONTROLLER */
.floating-music-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    border: 2px solid var(--fl-gold);
    color: var(--fl-gold);
    font-family: var(--font-game);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 999;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-music-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(25, 38, 65, 0.95);
    box-shadow: 0 10px 28px rgba(255, 223, 77, 0.35);
}

.floating-music-btn.muted {
    border-color: #64748b;
    color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-game-grid { grid-template-columns: 1fr; }
    .milestones-card-grid { grid-template-columns: repeat(2, 1fr); }
    .features-card-grid { grid-template-columns: 1fr; }
    .download-layout-box { grid-template-columns: 1fr; }
    .security-pillars-row { grid-template-columns: repeat(2, 1fr); }
    .game-tabs-row { display: none; }
}

@media (max-width: 640px) {
    .game-title-hero { font-size: 28px; }
    .milestones-card-grid { grid-template-columns: 1fr; }
    .security-pillars-row { grid-template-columns: 1fr; }
    .slider-arrow-btn { display: none; }
}
