@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --cyan: #28E0E9;
    --orange: #FF7E21;
    --bg-dark: #070A10;
    --text-white: #FFFFFF;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-shadow: inset 0 0 200px rgba(0, 0, 0, 0.8);
}

/* Background */
.bg-container {
    position: fixed;
    inset: 0;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 10, 16, 0.6) 0%, rgba(7, 10, 16, 0.4) 50%, rgba(7, 10, 16, 0.7) 100%);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* HUD Overlays */
.hud-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.hud-element {
    position: absolute;
    opacity: 0.6;
}

.top-left { top: 40px; left: 40px; }
.top-right { top: 40px; right: 40px; }

.bottom-left {
    bottom: 40px;
    left: 40px;
    width: 200px;
    height: 100px;
}

.hud-box {
    border: 1px solid var(--cyan);
    background: rgba(40, 224, 233, 0.05);
    padding: 10px;
    position: relative;
}

.hud-text {
    font-size: 10px;
    color: var(--cyan);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.hud-grid {
    height: 40px;
    background-image: linear-gradient(var(--cyan) 1px, transparent 1px), linear-gradient(90deg, var(--cyan) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.2;
}

.bottom-right {
    bottom: 40px;
    right: 40px;
}

.hud-scanner {
    width: 120px;
    height: 120px;
    border: 1px solid var(--cyan);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.scanner-circle {
    position: absolute;
    inset: 10px;
    border: 1px dashed var(--cyan);
    border-radius: 50%;
}

.scanner-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-60px); }
    100% { transform: translateY(60px); }
}

/* Header */
.header {
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
}

/* The bright horizontal line */
.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(40, 224, 233, 0) 0%, 
        rgba(40, 224, 233, 0.5) 25%, 
        rgba(40, 224, 233, 1) 50%, 
        rgba(40, 224, 233, 0.5) 75%, 
        rgba(40, 224, 233, 0) 100%
    );
    z-index: 11;
}

/* The intense central flare (Sunbeam effect) */
.header::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 10px;
    background: radial-gradient(ellipse at center, 
        #fff 0%, 
        rgba(40, 224, 233, 0.9) 20%, 
        rgba(40, 224, 233, 0.4) 50%, 
        transparent 80%
    );
    filter: blur(2px);
    z-index: 12;
    pointer-events: none;
}

#logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Content */
.content {
    text-align: center;
    z-index: 10;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px 20px;
    background: radial-gradient(ellipse at center, rgba(7, 10, 16, 0.6) 0%, transparent 70%);
    width: 100%;
}

.headline {
    font-family: var(--font-display);
    font-size: clamp(1.215rem, 3.645vw, 2.268rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 1),
        0 0 40px rgba(0, 0, 0, 1),
        0 0 10px rgba(40, 224, 233, 0.5);
    filter: drop-shadow(0 0 2px rgba(0,0,0,1));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headline span {
    display: block;
    width: 100%;
}

.sub-headline {
    font-size: clamp(1.1rem, 2.2vw, 1.375rem);
    font-weight: 400;
    max-width: 800px;
    opacity: 1;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 
        0 2px 15px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 1);
}

/* CTA Section & Side Panels */
.cta-frame {
    position: relative;
    padding: 20px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    max-width: 1100px;
    width: 90%;
    display: flex;
    justify-content: center;
}

.cta-frame::before, .cta-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(40, 224, 233, 0.3);
}

.cta-frame::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
}

.cta-frame::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
}

.cta-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.side-panel {
    width: 160px;
    background: 
        linear-gradient(rgba(10, 15, 25, 0.9), rgba(10, 15, 25, 0.9)),
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(40, 224, 233, 0.03) 1px, rgba(40, 224, 233, 0.03) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(40, 224, 233, 0.03) 1px, rgba(40, 224, 233, 0.03) 2px);
    border: 1px solid rgba(40, 224, 233, 0.3);
    padding: 8px;
    text-align: left;
    font-family: var(--font-mono);
    position: relative;
    overflow: visible;
    backdrop-filter: blur(15px);
    box-shadow: 
        inset 0 0 20px rgba(40, 224, 233, 0.1),
        0 0 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    clip-path: polygon(
        0 8px, 8px 0, 
        calc(100% - 8px) 0, 100% 8px, 
        100% calc(100% - 8px), calc(100% - 8px) 100%, 
        8px 100%, 0 calc(100% - 8px)
    );
}

.side-panel:hover {
    background: rgba(15, 20, 35, 0.95);
    border-color: rgba(40, 224, 233, 0.6);
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(40, 224, 233, 0.2),
        inset 0 0 30px rgba(40, 224, 233, 0.1);
    animation: panel-glitch 0.2s ease infinite;
}

@keyframes panel-glitch {
    0% { transform: translateY(-5px) translateX(0); }
    25% { transform: translateY(-5px) translateX(1px); }
    50% { transform: translateY(-5px) translateX(-1px); }
    75% { transform: translateY(-5px) translateX(1px); }
    100% { transform: translateY(-5px) translateX(0); }
}

/* Industrial Corners */
.panel-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--cyan);
    z-index: 5;
}

.top-l { top: 4px; left: 4px; border-right: none; border-bottom: none; }
.top-r { top: 4px; right: 4px; border-left: none; border-bottom: none; }
.bot-l { bottom: 4px; left: 4px; border-right: none; border-top: none; }
.bot-r { bottom: 4px; right: 4px; border-left: none; border-top: none; }

/* Brand Tag */
.brand-tag {
    position: absolute;
    top: -18px;
    left: 10px;
    font-size: 8px;
    color: var(--cyan);
    background: rgba(10, 15, 25, 0.9);
    padding: 2px 8px;
    border: 1px solid rgba(40, 224, 233, 0.3);
    letter-spacing: 2px;
    font-weight: 700;
    text-transform: uppercase;
    animation: holo-flicker 4s infinite;
}

@keyframes holo-flicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    92% { opacity: 1; filter: brightness(1); }
    93% { opacity: 0.8; filter: brightness(1.5); }
    94% { opacity: 1; filter: brightness(1); }
    95% { opacity: 0.9; filter: brightness(1.2); }
    96% { opacity: 1; filter: brightness(1); }
}

/* LED Bar */
.led-bar {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    opacity: 0.5;
    animation: led-pulse 2s infinite alternate;
}

@keyframes led-pulse {
    from { opacity: 0.2; box-shadow: 0 0 5px var(--cyan); }
    to { opacity: 0.8; box-shadow: 0 0 15px var(--cyan); }
}

/* Industrial Brackets */
.panel-bracket {
    position: absolute;
    width: 30px;
    height: 4px;
    background: #2a2d35;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 6;
}

.top-bracket { top: -8px; left: 50%; transform: translateX(-50%); }
.bottom-bracket { bottom: -8px; left: 50%; transform: translateX(-50%); }

.panel-bracket::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--cyan);
}

/* Holographic Wings */
.hologram-wing {
    position: absolute;
    top: 5%;
    height: 90%;
    width: 60px;
    background: linear-gradient(to right, rgba(40, 224, 233, 0.1), transparent);
    border-left: 2px solid rgba(40, 224, 233, 0.4);
    pointer-events: none;
    z-index: -1;
    animation: wing-pulse 4s infinite alternate;
}

@keyframes wing-pulse {
    from { opacity: 0.4; transform: scaleX(1); }
    to { opacity: 0.8; transform: scaleX(1.1); }
}

.left-panel .hologram-wing {
    left: -40px;
    transform: perspective(500px) rotateY(35deg);
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.right-panel .hologram-wing {
    right: -40px;
    transform: perspective(500px) rotateY(-35deg);
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
    background: linear-gradient(to left, rgba(40, 224, 233, 0.1), transparent);
    border-left: none;
    border-right: 2px solid rgba(40, 224, 233, 0.4);
}

/* Scanline Effect */
.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(40, 224, 233, 0.1);
    box-shadow: 0 0 10px rgba(40, 224, 233, 0.2);
    pointer-events: none;
    z-index: 10;
    animation: scanline-move 3s linear infinite;
}

@keyframes scanline-move {
    0% { top: 0%; }
    100% { top: 100%; }
}

/* Tech Label */
.tech-label {
    position: absolute;
    bottom: -20px;
    right: 5px;
    font-size: 7px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
    font-weight: 300;
}

.side-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 2;
}

.side-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    opacity: 0.5;
    animation: scanline 4s linear infinite;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

.panel-header {
    font-size: 8px;
    color: var(--cyan);
    letter-spacing: 2px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(40, 224, 233, 0.4);
    padding-bottom: 3px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header::after {
    content: 'SYS_04';
    font-size: 6px;
    opacity: 0.5;
}

.panel-content {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

#data-feed {
    height: 60px;
    overflow: hidden;
}

/* Chat Styles */
.chat-msg {
    font-size: 0.6rem;
    line-height: 1.4;
    margin-bottom: 6px;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.chat-tag {
    font-weight: 700;
    margin-right: 5px;
}

.chat-tag.world { color: #ff9d00; }
.chat-tag.team { color: #00d2ff; }

.chat-user {
    color: #fff;
    font-weight: 600;
    margin-right: 4px;
}

/* Vitals Styles */
.vitals-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px 0;
}

.vital-icon {
    font-size: 0.8rem;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: help;
    transition: all 0.2s ease;
}

.vital-icon:hover {
    background: rgba(40, 224, 233, 0.2);
    border-color: var(--cyan);
    transform: scale(1.1);
}

.vital-icon.health { color: #ff4d4d; }
.vital-icon.hunger { color: #ffa64d; }
.vital-icon.thirst { color: #4da6ff; }
.vital-icon.stamina { color: #ffff4d; }

/* Hotbar Styles */
.hotbar {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hotbar-slot {
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.hotbar-slot.active {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    background: rgba(40, 224, 233, 0.1);
}

.hotbar-slot:hover {
    border-color: #fff;
    transform: translateY(-2px);
}

.slot-num {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
}

.slot-item {
    font-size: 1.2rem;
}

/* Interaction Prompt */
.interaction-prompt {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--cyan);
    padding: 5px 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-container:hover .interaction-prompt {
    opacity: 1;
    top: -50px;
}

.key-hint {
    background: #fff;
    color: #000;
    padding: 2px 6px;
    border-radius: 2px;
    font-weight: 900;
    font-size: 0.8rem;
}

.cta-container {
    margin-top: 0; /* Override previous margin */
}

@media (max-width: 900px) {
    .cta-section {
        flex-direction: column;
        gap: 20px;
    }
    .side-panel {
        width: 280px;
    }
}

/* Main CTA Button */
.main-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 50px;
    background: linear-gradient(135deg, #28e0e9 0%, #1a9ba1 100%);
    color: #000;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 0 30px rgba(40, 224, 233, 0.4);
    cursor: pointer;
    overflow: hidden;
}

.main-cta:hover {
    transform: scale(1.05) skewX(-2deg);
    box-shadow: 0 0 50px rgba(40, 224, 233, 0.7);
    background: linear-gradient(135deg, #fff 0%, #28e0e9 100%);
}

.main-cta::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--cyan);
    z-index: -1;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    opacity: 0.5;
}

.cta-glitch-text {
    position: relative;
    z-index: 2;
}

.cta-glitch-text::before,
.cta-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: -1;
}

.main-cta:hover .cta-glitch-text::before {
    animation: glitch-anim 0.3s infinite;
    color: #ff00c1;
}

.main-cta:hover .cta-glitch-text::after {
    animation: glitch-anim 0.3s infinite reverse;
    color: #00fff9;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.cta-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.main-cta:hover .cta-glow {
    left: 100%;
}

.gacha-cost::before {
    content: '✦';
    font-size: 1rem;
}

/* Hover Effects */
.gacha-btn:hover {
    transform: translateY(-5px) scale(1.05);
}

.gacha-btn-single:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px var(--cyan);
}

.gacha-btn-multi:hover::before {
    opacity: 1;
    box-shadow: 0 0 20px var(--orange);
}

.gacha-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Shine Animation */
.gacha-btn-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(30deg);
    transition: all 0.5s;
}

.gacha-btn:hover .gacha-btn-content::after {
    left: 150%;
    transition: all 0.5s;
}

@media (max-width: 768px) {
    .gacha-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .gacha-btn {
        min-width: 280px;
    }
}

/* CTA Button */
.cta-container {
    margin-top: 20px;
}

.cta-glow-button {
    position: relative;
    display: inline-block;
    padding: 2px; /* Border thickness */
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 20px rgba(40, 224, 233, 0.3), 0 0 20px rgba(255, 126, 33, 0.3);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-glow-button::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(90deg, var(--cyan), var(--orange));
    filter: blur(15px);
    opacity: 0.4;
    z-index: -1;
}

.cta-text {
    display: block;
    background: rgba(11, 16, 32, 0.9);
    color: var(--text-white);
    padding: 16px 60px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: background 0.2s ease;
}

.cta-glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(40, 224, 233, 0.5), 0 0 30px rgba(255, 126, 33, 0.5);
}

.cta-glow-button:hover .cta-text {
    background: rgba(11, 16, 32, 0.7);
}

@media (max-width: 768px) {
    .hud-layer { display: none; }
    .header { margin-top: 20px; }
    #logo { width: 200px; }
    .content { margin-bottom: 40px; }
    .cta-text { padding: 12px 40px; font-size: 1.2rem; }
}
