html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle, #25231a 0%, #0d0c0a 100%);
    color: #e1e1e6;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

/* Creative Game HUD Scanline Overlay Layer */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 13, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.35;
}

/* Central Title Area Content Container */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 24px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo-wrapper {
    margin-bottom: 25px;
    animation: floatingLogo 4s ease-in-out infinite;
}

.brand-logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(197, 179, 130, 0.2));
}

/* Dynamic Chromatic Aberration Glitch text */
.brand-title {
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    position: relative;
    margin: 0 0 45px 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.brand-title::before,
.brand-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
}

.brand-title:hover::before {
    opacity: 0.8;
    left: 3px;
    text-shadow: -2px 0 #ff0055;
    clip: rect(35px, 900px, 46px, 0);
    animation: glitchEffect 1s infinite linear alternate-reverse;
}

.brand-title:hover::after {
    opacity: 0.8;
    left: -3px;
    text-shadow: -2px 0 #00fffa;
    clip: rect(70px, 900px, 105px, 0);
    animation: glitchEffect2 1.5s infinite linear alternate-reverse;
}

/* Arcade Vertical Stack Navigation Menu */
.button-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 300px;
}

.btn-primary, .btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a8a8b3;
    background: rgba(28, 26, 23, 0.5);
    border: 1px solid #474134;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    white-space: nowrap;
}

/* Targeting Corner Brackets Styling */
.btn::before, .btn::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
}

.btn::before {
    top: 0; left: 0;
    border-top-color: #c5b382;
    border-left-color: #c5b382;
    transform: translate(-6px, -6px);
}

.btn::after {
    bottom: 0; right: 0;
    border-bottom-color: #c5b382;
    border-right-color: #c5b382;
    transform: translate(6px, 6px);
}

/* Menu Hover Actions */
.btn:hover {
    color: #ffffff;
    background: rgba(197, 179, 130, 0.08);
    border-color: #c5b382;
    letter-spacing: 3px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(197, 179, 130, 0.15);
}

.btn:hover::before {
    opacity: 1;
    transform: translate(4px, 4px);
}

.btn:hover::after {
    opacity: 1;
    transform: translate(-4px, -4px);
}

/* Primary Scanner Glow Config */
.btn-primary {
    border-color: #574e3b;
    color: #dfdfe5;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(197, 179, 130, 0.25), transparent);
    transform: skewX(-20deg);
}

.btn-primary:hover .btn-glow {
    animation: scannerBeam 1.8s infinite ease-in-out;
}

/* Corner Footer Layout Window Pinned Frame */
.pinned-footer {
    position: fixed;
    bottom: 20px;
    right: 30px;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 0.8rem;
    color: #737380;
    background: transparent;
    z-index: 100;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* System Animation Mechanics */
@keyframes floatingLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes scannerBeam {
    100% { left: 180%; }
}
@keyframes glitchEffect {
    0% { clip: rect(12px, 900px, 55px, 0); }
    50% { clip: rect(32px, 900px, 15px, 0); }
    100% { clip: rect(85px, 900px, 63px, 0); }
}
@keyframes glitchEffect2 {
    0% { clip: rect(76px, 900px, 116px, 0); }
    50% { clip: rect(5px, 900px, 45px, 0); }
    100% { clip: rect(120px, 900px, 22px, 0); }
}

/* Responsive UI Viewport Compression Adjustments */
@media (max-width: 768px) {
    .brand-title { font-size: 2.6rem; letter-spacing: 5px; margin-bottom: 35px; }
}