/* ==========================================================================
VOID EMPIRE — Endeavour UI kit restyle (batch 4)
========================================================================== */

@font-face {
font-family: 'Orbitron';
src: url('orbitron-var-v1.woff2') format('woff2');
font-weight: 400 900;
font-display: swap;
}

.ve-icon-sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}

.ve-icon {
width: 24px;
height: 24px;
flex-shrink: 0;
display: inline-block;
vertical-align: middle;
}

/* Page shell: background only — no color/font cascade into #authModal */
.ve-page-body {
overflow: hidden;
background-color: #0D0F16;
}

/* Tokens live on .ve-layout (header + workspace); #authModal is outside */
.ve-layout {
--ve-bg: #0D0F16;
--ve-accent: #00FFFF;
--ve-accent-2: #8A2BE2;
--ve-complete: #2DD4BF;
--ve-attention: #F59E0B;
--ve-text: #E0E0E0;
--ve-muted: #9CA3AF;
--ve-glass: rgba(15, 23, 42, 0.3);
--ve-border: rgba(0, 255, 255, 0.2);
--ve-success: #4ADE80;
--ve-danger: #F87171;
--ve-warning: #FACC15;
--ve-btn-cyan-bg: rgba(6, 182, 212, 0.2);
--ve-btn-cyan-bg-hover: rgba(6, 182, 212, 0.4);
--ve-btn-cyan-border: rgba(6, 182, 212, 0.5);
--ve-btn-cyan-text: #67E8F9;
--ve-btn-violet-bg: rgba(139, 92, 246, 0.2);
--ve-btn-violet-bg-hover: rgba(139, 92, 246, 0.4);
--ve-btn-violet-border: rgba(139, 92, 246, 0.5);
--ve-btn-violet-text: #C4B5FD;
--ve-btn-gray-bg: rgba(107, 114, 128, 0.2);
--ve-btn-gray-border: rgba(107, 114, 128, 0.5);
--ve-btn-gray-text: #D1D5DB;
--ve-font-display: 'Orbitron', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--ve-font-body: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
--ve-motion-fast: 200ms;
--ve-motion-base: 300ms;
--ve-motion-slow: 500ms;
height: 100vh;
height: 100dvh;
}

.ve-header {
border-radius: 0;
border-bottom: 1px solid var(--ve-border);
background: var(--ve-glass);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

.ve-brand-link {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
}

.ve-title {
font-family: var(--ve-font-display);
color: var(--ve-accent);
text-shadow: 0 0 5px rgba(0, 255, 255, 0.6), 0 0 8px rgba(0, 255, 255, 0.4);
font-weight: 700;
letter-spacing: 2px;
}

/* Two-column flex container */
.ve-workspace {
display: flex;
flex: 1;
height: calc(100vh - 68px);
height: calc(100dvh - 68px);
overflow: hidden;
}

/* --------------------------------------
ENHANCED LEFT SIDEBAR
-------------------------------------- */
.ve-workspace .sidebar-nav {
width: 270px;
height: 100%;
border-top: none;
border-bottom: none;
border-left: none;
border-radius: 0;
padding: 20px 0;
overflow-y: auto;
z-index: 10;
background: var(--ve-glass);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-right: 1px solid var(--ve-border);
box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
}

.sidebar-menu {
display: flex;
flex-direction: column;
gap: 2px;
}

.ve-workspace .nav-section-title {
font-family: var(--ve-font-display);
font-size: 0.75rem;
font-weight: 700;
color: var(--ve-accent);
letter-spacing: 1.5px;
padding: 18px 24px 6px 24px;
text-shadow: 0 0 5px rgba(0, 255, 255, 0.35);
}

.ve-workspace .sidebar-item {
padding: 10px 24px;
color: var(--ve-muted);
text-decoration: none;
font-family: var(--ve-font-display);
font-weight: 700;
font-size: 0.88rem;
letter-spacing: 0.5px;
transition: all var(--ve-motion-fast) ease;
border-left: 3px solid transparent;
display: flex;
align-items: center;
gap: 10px;
}

.ve-workspace .ve-icon {
opacity: 0.85;
color: currentColor;
}

.ve-workspace .sidebar-item:hover {
background: rgba(0, 255, 255, 0.08);
color: var(--ve-text);
border-left-color: rgba(0, 255, 255, 0.5);
padding-left: 28px;
}

.ve-workspace .sidebar-item.active {
background: rgba(0, 255, 255, 0.12);
color: var(--ve-accent);
border-left: 3px solid var(--ve-accent);
box-shadow: inset 5px 0 15px -3px rgba(0, 255, 255, 0.3);
}

.ve-workspace .sidebar-item.active .ve-icon {
opacity: 1;
filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.6));
}

.auth-required {
display: none;
}

/* --------------------------------------
RIGHT WORKSPACE & PURE CSS STARRY SKY
-------------------------------------- */
.ve-workspace .game-area {
flex: 1;
position: relative;
border-radius: 0;
overflow-y: auto;
display: flex;
align-items: flex-start;
justify-content: center;
background: var(--ve-bg);
font-family: var(--ve-font-body);
color: var(--ve-text);
font-size: 16px;
}

/* Cosmic Nebula Gradient Layer */
.cosmic-nebula {
position: absolute;
inset: 0;
background:
radial-gradient(circle at 20% 30%, rgba(138, 43, 226, 0.18) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.15) 0%, transparent 50%),
radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
z-index: 1;
animation: nebulaPulse 12s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
0% { opacity: 0.8; }
100% { opacity: 1; }
}

/* Artwork Background Wallpaper Layer */
.artwork-backdrop {
position: absolute;
inset: 0;
background-image:
radial-gradient(circle at center, rgba(2, 4, 10, 0.4) 0%, rgba(2, 4, 10, 0.95) 100%),
url('void_empire_card.webp');
background-size: cover;
background-position: center;
opacity: 0.25;
filter: blur(2px) contrast(1.1);
z-index: 2;
}

/* Multi-layer Starfields using SVG Data-URIs */
.stars-layer-1, .stars-layer-2 {
position: absolute;
inset: 0;
z-index: 3;
pointer-events: none;
}

.stars-layer-1 {
background-image: radial-gradient(1px 1px at 20px 30px, #FFFFFF, rgba(0,0,0,0)),
radial-gradient(1px 1px at 40px 70px, rgba(0, 255, 255, 0.8), rgba(0,0,0,0)),
radial-gradient(1px 1px at 90px 40px, #FFFFFF, rgba(0,0,0,0)),
radial-gradient(1.5px 1.5px at 160px 120px, var(--ve-accent), rgba(0,0,0,0)),
radial-gradient(1px 1px at 230px 190px, #FFFFFF, rgba(0,0,0,0)),
radial-gradient(2px 2px at 300px 80px, rgba(138, 43, 226, 0.9), rgba(0,0,0,0));
background-repeat: repeat;
background-size: 350px 350px;
animation: starTwinkle 4s ease-in-out infinite alternate;
}

.stars-layer-2 {
background-image: radial-gradient(1px 1px at 50px 150px, #FFFFFF, rgba(0,0,0,0)),
radial-gradient(1.5px 1.5px at 110px 220px, var(--ve-accent), rgba(0,0,0,0)),
radial-gradient(1px 1px at 180px 30px, #FFFFFF, rgba(0,0,0,0)),
radial-gradient(2px 2px at 260px 270px, rgba(255, 255, 255, 0.9), rgba(0,0,0,0));
background-repeat: repeat;
background-size: 420px 420px;
animation: starTwinkle 7s ease-in-out infinite alternate;
opacity: 0.7;
}

@keyframes starTwinkle {
0% { opacity: 0.3; }
50% { opacity: 0.9; }
100% { opacity: 0.4; }
}

/* --------------------------------------
GLASS CARDS & HUD STYLING
-------------------------------------- */
.game-hub-container {
position: relative;
z-index: 5;
width: 100%;
padding: 0 40px;
max-width: 1350px;
margin: 40px auto;
}

.ve-tab-content {
display: none;
animation: fadeInTab 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ve-tab-content.active {
display: block;
}

@keyframes fadeInTab {
from {
opacity: 0;
transform: translateY(12px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}

.ve-workspace .ve-glow-card {
border-radius: 0.5rem;
padding: 40px;
background: var(--ve-glass);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--ve-border);
box-shadow: 0 0 5px rgba(0, 255, 255, 0.25), 0 0 10px rgba(0, 255, 255, 0.15);
}

.ve-workspace .ve-placeholder-box h2 {
font-family: var(--ve-font-display);
font-size: 2.2rem;
font-weight: 700;
color: var(--ve-text);
letter-spacing: 2px;
margin-bottom: 8px;
text-shadow: 0 0 5px rgba(0, 255, 255, 0.55), 0 0 8px rgba(0, 255, 255, 0.35);
}

.section-sub {
color: var(--ve-muted);
font-size: 1rem;
line-height: 1.6;
}

/* Status Badge with Glowing Dot */
.status-badge {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 6px 14px;
border-radius: 20px;
font-size: 0.75rem;
font-weight: 800;
letter-spacing: 1px;
}

.status-badge.live {
background: rgba(197, 34, 34, 0.15);
color: var(--ve-danger);
border: 1px solid rgba(197, 34, 34, 0.4);
box-shadow: 0 0 12px rgba(197, 34, 34, 0.2);
}

.pulse-dot {
width: 8px;
height: 8px;
background-color: var(--ve-danger);
border-radius: 50%;
box-shadow: 0 0 8px var(--ve-danger);
animation: dotPulse 1.8s infinite;
}

@keyframes dotPulse {
0% { transform: scale(0.95); opacity: 0.7; }
50% { transform: scale(1.3); opacity: 1; }
100% { transform: scale(0.95); opacity: 0.7; }
}

/* Card Grids */
.placeholder-card-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
margin-top: 24px;
}

.inner-card {
padding: 22px;
border-radius: 14px;
background: rgba(15, 25, 48, 0.6);
border: 1px solid rgba(255, 255, 255, 0.08);
position: relative;
transition: border-color 0.2s ease, transform 0.2s ease;
}

.inner-card:hover {
border-color: rgba(0, 255, 255, 0.4);
transform: translateY(-2px);
}

.inner-card h3 {
color: var(--ve-accent);
font-size: 1.05rem;
margin-bottom: 6px;
letter-spacing: 1px;
}

.inner-card p {
color: var(--ve-text);
font-size: 0.9rem;
}

.card-badge {
position: absolute;
top: 12px;
right: 14px;
font-size: 0.75rem;
font-weight: 800;
color: var(--ve-accent);
letter-spacing: 1px;
}

/* Custom Buttons & Links */
.inline-btn {
display: inline-block;
text-decoration: none;
margin-top: 18px;
}

.ve-workspace .patreon-btn {
margin-top: 18px;
background: var(--ve-btn-violet-bg);
border: 1px solid var(--ve-btn-violet-border);
color: var(--ve-btn-violet-text);
box-shadow: none;
}

/* Batch 3a: disabled Patreon + store buy (preview only) */
.ve-workspace .patreon-btn:disabled,
.ve-workspace .patreon-btn:disabled:hover,
.ve-workspace .ve-store-buy:disabled,
.ve-workspace .ve-store-buy:disabled:hover,
.ve-workspace .steam-btn:disabled,
.ve-workspace .steam-btn:disabled:hover,
.ve-workspace .ve-demo-btn:disabled,
.ve-workspace .ve-demo-btn:disabled:hover,
.ve-workspace .ve-contact-submit:disabled,
.ve-workspace .newsletter-form input:disabled,
.ve-workspace .newsletter-form button:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none;
box-shadow: none;
filter: none;
}

.ve-store-buy:disabled {
margin-top: 12px;
}

.ve-workspace .neon-badge,
.ve-workspace .badge.neon-badge {
font-family: var(--ve-font-display);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
background: rgba(0, 255, 255, 0.12);
border: 1px solid rgba(0, 255, 255, 0.5);
color: #A5F3FC;
margin-top: 16px;
display: inline-block;
padding: 6px 12px;
border-radius: 0.375rem;
}

.ve-sidebar-overlay {
display: none;
position: fixed;
top: 68px;
left: 0;
width: 100vw;
height: calc(100vh - 68px);
height: calc(100dvh - 68px);
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: 9;
}

.ve-sidebar-overlay.active {
display: block;
}

/* ==========================================================================
MARKETING, MEDIA & COMMUNITY UI (PHASE 3)
========================================================================== */

/* Trailer Placeholder */
.trailer-box {
width: 100%;
aspect-ratio: 16 / 9;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 16px;
margin-bottom: 24px;
background: rgba(2, 6, 23, 0.6);
color: var(--ve-muted);
font-weight: 700;
letter-spacing: 1px;
border: 1px solid rgba(255, 255, 255, 0.05);
}

.play-btn-mock {
width: 64px;
height: 64px;
background: rgba(0, 255, 255, 0.2);
color: var(--ve-accent);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.5rem;
border: 2px solid var(--ve-accent);
box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease;
}

.trailer-box:hover .play-btn-mock {
transform: scale(1.1);
background: rgba(0, 255, 255, 0.4);
}

/* Specific Call-to-Action Buttons */
.ve-workspace .steam-btn,
.ve-workspace .ve-demo-btn {
background: var(--ve-btn-gray-bg);
border: 1px solid var(--ve-btn-gray-border);
color: var(--ve-btn-gray-text);
box-shadow: none;
}

/* Screenshot Gallery */
.gallery-title {
margin: 40px 0 16px 0;
font-size: 1.1rem;
color: var(--ve-accent);
letter-spacing: 1.5px;
}

.screenshot-gallery {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}

.screen-mock {
aspect-ratio: 16 / 9;
display: flex;
align-items: center;
justify-content: center;
background: rgba(15, 25, 48, 0.4);
color: var(--ve-muted);
font-size: 0.85rem;
font-weight: bold;
transition: transform 0.2s ease, border-color 0.2s ease;
}

.screen-mock:hover {
transform: translateY(-2px);
border-color: rgba(0, 255, 255, 0.4);
}

/* Newsletter / Waitlist Signup */
.newsletter-box {
margin-top: 40px;
padding: 24px;
display: flex;
flex-direction: column;
gap: 16px;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.9) 100%);
border: 1px solid rgba(0, 255, 255, 0.2);
}

.newsletter-box h3 {
color: var(--ve-text);
font-size: 1.1rem;
margin-bottom: 4px;
}

.newsletter-box p {
color: var(--ve-muted);
font-size: 0.9rem;
}

.newsletter-form {
display: flex;
gap: 12px;
}

.newsletter-form input {
flex: 1;
padding: 12px 16px;
background: rgba(2, 6, 23, 0.8);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #fff;
border-radius: 8px;
font-size: 0.95rem;
}

.newsletter-form input:focus {
outline: none;
border-color: var(--ve-accent);
}

/* ==========================================================================
DESKTOP SPLIT GRID LAYOUT
========================================================================== */
.desktop-split-grid {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: 40px;
margin-top: 24px;
}

.split-col-left {
display: flex;
flex-direction: column;
}

.split-col-right .gallery-title {
margin-top: 0;
}

/* Stack into a single column on smaller laptops and tablets */
@media (max-width: 1100px) {
.desktop-split-grid {
grid-template-columns: 1fr;
}
.split-col-right .gallery-title {
margin-top: 40px;
}
}

/* ==========================================================================
MOBILE RESPONSIVE OVERRIDES (MAX-WIDTH: 820px)
========================================================================== */
@media (max-width: 820px) {
/* Mobile Sidebar Overrides */
.ve-workspace .sidebar-nav {
position: fixed;
top: 68px;
left: 0;
height: calc(100vh - 68px);
height: calc(100dvh - 68px);
transform: translateX(-100%);
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 10;
background: rgba(15, 23, 42, 0.92);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
.ve-icon {
width: 20px;
height: 20px;
}

.ve-workspace .sidebar-nav.open {
    transform: translateX(0);
}

/* 1. Fix Nested Padding Constraints (The core fix for the screenshot) */
.game-area.starry-screen {
    padding: 16px 0; /* Clears outer wrapper padding on small screens */
}

.game-hub-container {
    padding: 0 16px; 
    margin: 16px auto;
}

.ve-glow-card {
    padding: 24px 20px; /* Recovers internal card space */
}

/* 2. Prevent Header Squish & Overlap */
.hub-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.hub-header h2,
.ve-placeholder-box h2 {
    font-size: 1.55rem;
    word-wrap: break-word;
}

/* 3. Stack Action Buttons to use Full Width */
.hub-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
}

.hub-actions .btn-launch, 
.hub-actions .btn-secondary {
    width: 100%;
    text-align: center;
    margin: 0;
}

/* 4. Single Column Grids & Forms */
.placeholder-card-grid,
.screenshot-gallery {
    grid-template-columns: 1fr;
}

.newsletter-form {
    flex-direction: column;
}


}


/* Kit buttons (scoped — does not touch #authModal) */
.ve-workspace .btn-launch,
.ve-workspace .btn-secondary {
font-family: var(--ve-font-display);
font-weight: 700;
border-radius: 0.375rem;
border-width: 1px;
border-style: solid;
transition: background var(--ve-motion-fast) ease-out, border-color var(--ve-motion-fast) ease-out, box-shadow var(--ve-motion-fast) ease-out;
}
.ve-workspace .btn-launch {
background: var(--ve-btn-cyan-bg);
border-color: var(--ve-btn-cyan-border);
color: var(--ve-btn-cyan-text);
}
.ve-workspace .btn-launch:hover:not(:disabled) {
background: var(--ve-btn-cyan-bg-hover);
}
.ve-workspace .btn-secondary {
background: var(--ve-btn-gray-bg);
border-color: var(--ve-btn-gray-border);
color: var(--ve-btn-gray-text);
}
.ve-workspace .btn-secondary:hover:not(:disabled) {
background: rgba(107, 114, 128, 0.4);
}
.ve-workspace .btn-launch:focus-visible,
.ve-workspace .btn-secondary:focus-visible,
.ve-workspace .sidebar-item:focus-visible,
.ve-workspace .ve-form-field input:focus-visible,
.ve-workspace .ve-form-field select:focus-visible,
.ve-workspace .ve-form-field textarea:focus-visible,
.ve-workspace .newsletter-form input:focus-visible,
.ve-header .burger-btn:focus-visible,
.ve-workspace .ve-tab-content h2[tabindex="-1"]:focus-visible {
outline: 2px solid #00FFFF;
outline-offset: 2px;
}
.ve-workspace .inner-card,
.ve-workspace .glass-card,
.ve-workspace .trailer-box,
.ve-workspace .newsletter-box,
.ve-workspace .ve-contact-form {
background: var(--ve-glass);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border: 1px solid var(--ve-border);
}
.ve-workspace .inner-card h3,
.ve-workspace .gallery-title,
.ve-workspace .newsletter-box h3,
.ve-workspace .ve-form-field label {
font-family: var(--ve-font-display);
}
.ve-workspace .inner-card h3 { color: var(--ve-accent); }
.ve-workspace .section-sub,
.ve-workspace .newsletter-box p,
.ve-workspace .inner-card p {
font-family: var(--ve-font-body);
color: var(--ve-muted);
}

/* ==========================================================================
CONTACT FORM (TURNSTILE + LAMBDA)
========================================================================== */
.ve-contact-form {
margin-top: 20px;
padding: 24px;
border-radius: 14px;
border-left: 4px solid var(--ve-accent);
display: flex;
flex-direction: column;
gap: 16px;
max-width: 760px;
}

.ve-form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

.ve-form-field {
display: flex;
flex-direction: column;
gap: 6px;
}

.ve-form-field label {
font-size: 0.75rem;
font-weight: 800;
color: var(--ve-accent);
letter-spacing: 1.5px;
text-transform: uppercase;
}

.ve-form-field input,
.ve-form-field select,
.ve-form-field textarea {
width: 100%;
padding: 12px 16px;
background: rgba(2, 6, 23, 0.8);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #fff;
border-radius: 8px;
font-family: inherit;
font-size: 0.95rem;
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ve-form-field select option {
background: var(--ve-bg);
color: #fff;
}

.ve-form-field textarea {
resize: vertical;
min-height: 140px;
line-height: 1.5;
}

.ve-form-field input:focus,
.ve-form-field select:focus,
.ve-form-field textarea:focus {
outline: none;
border-color: var(--ve-accent);
box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.ve-form-field [aria-invalid="true"] {
border-color: var(--ve-danger);
box-shadow: 0 0 10px rgba(222, 74, 74, 0.25);
}

.ve-char-count {
align-self: flex-end;
font-size: 0.75rem;
color: var(--ve-muted);
}

/* Honeypot: off-screen for humans, still in the DOM for bots */
.ve-hp-field {
position: absolute;
left: -10000px;
width: 1px;
height: 1px;
overflow: hidden;
}

.ve-turnstile {
min-height: 65px;
}

.ve-contact-submit {
align-self: flex-start;
}

.ve-contact-submit:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none;
}

.ve-contact-status {
min-height: 1.2em;
font-size: 0.9rem;
font-weight: 700;
color: var(--ve-muted);
}

.ve-contact-status.success {
color: var(--ve-success);
}

.ve-contact-status.error {
color: var(--ve-danger);
}

@media (max-width: 820px) {
.ve-contact-form {
padding: 20px 16px;
}

.ve-form-row {
grid-template-columns: 1fr;
}

.ve-contact-submit {
width: 100%;
}
}

/* ==========================================================================
ACCESSIBILITY & MOBILE POLISH (BATCH 2)
========================================================================== */
/* Visually hidden but available to screen readers */
.ve-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

/* Buttons that look like the former text links (Sign Up, Register here, Log in here) */
.ve-link-btn {
background: none;
border: 0;
padding: 0;
margin: 0;
font-family: inherit;
color: #38bdf8; /* literal — used inside #authModal where --ve-* is undefined */
cursor: pointer;
text-decoration: none;
}

.ve-link-btn:hover {
text-decoration: underline;
}

.auth-switch .ve-link-btn {
font-size: inherit;
font-weight: inherit;
line-height: inherit;
}

.ve-workspace .scoreboard-toggle-bar button:focus-visible,
.ve-header .burger-btn:focus-visible {
outline: 2px solid #00FFFF;
outline-offset: 2px;
}
/* .ve-link-btn inside #authModal keeps style.css / browser focus — do not force cyan */

/* The auth modal covers the dynamic viewport on mobile browsers */
.auth-modal {
height: 100vh;
height: 100dvh;
}

/* Contact form: per-field error messages */
.ve-field-error {
font-size: 0.8rem;
font-weight: 600;
color: var(--ve-danger);
}

.ve-field-error:empty {
display: none;
}

/* Waitlist: disabled until the waitlist is live */
.ve-waitlist-note {
margin-top: -4px;
font-size: 0.85rem;
color: var(--ve-muted);
}

.ve-workspace .newsletter-form input:disabled,
.ve-workspace .newsletter-form button:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none;
}

/* Scoreboard view toggles */
.scoreboard-toggle-bar {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 20px;
}

.ve-workspace .scoreboard-toggle-bar .btn-secondary.active-toggle {
background: rgba(6, 182, 212, 0.3);
border-color: var(--ve-btn-cyan-border);
color: var(--ve-btn-cyan-text);
box-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
}

@media (max-width: 820px) {
/* Minimum 44x44 tap targets on touch screens */
.ve-header .burger-btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 44px;
min-height: 44px;
padding: 0;
}

.ve-header .btn-login {
min-height: 44px;
}

/* Logo link (home): at least a 44x44 tap target */
.ve-header .ve-brand-link {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 44px;
min-height: 44px;
}

.ve-header .register-link {
min-width: 44px;
min-height: 44px;
line-height: 44px;
padding: 0 8px;
}

.ve-workspace .sidebar-item {
min-height: 44px;
transition: all 0.2s ease, visibility 0s;
}

/* Closed off-canvas sidebar is hidden from keyboard and screen readers */
.ve-workspace .sidebar-nav {
visibility: hidden;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}

.ve-workspace .sidebar-nav.open {
visibility: visible;
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
}

/* Panel headings receive focus after a mobile sidebar pick (tabindex="-1" is set by void-empire.js) */
.ve-tab-content h2[tabindex="-1"] {
scroll-margin-top: 16px;
}

.ve-tab-content h2[tabindex="-1"]:focus {
outline: none;
}

.ve-workspace .ve-tab-content h2[tabindex="-1"]:focus-visible {
outline: 2px solid #00FFFF;
outline-offset: 4px;
}

/* Respect the reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
.cosmic-nebula,
.stars-layer-1,
.stars-layer-2,
.pulse-dot,
.ve-tab-content {
animation: none;
}

.sidebar-nav,
.ve-workspace .sidebar-nav.open,
.sidebar-item,
.inner-card,
.screen-mock,
.play-btn-mock {
transition: none;
}
}


/* Mobile: light blur / glow for performance */
@media (max-width: 768px), (hover: none) {
.ve-header,
.ve-workspace .sidebar-nav,
.ve-workspace .ve-glow-card,
.ve-workspace .inner-card,
.ve-workspace .glass-card,
.ve-workspace .trailer-box,
.ve-workspace .newsletter-box,
.ve-workspace .ve-contact-form {
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
box-shadow: none;
}
.ve-workspace .ve-glow-card {
box-shadow: none;
}
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
.ve-header,
.ve-workspace .sidebar-nav,
.ve-workspace .ve-glow-card,
.ve-workspace .inner-card,
.ve-workspace .glass-card,
.ve-workspace .trailer-box,
.ve-workspace .newsletter-box,
.ve-workspace .ve-contact-form {
background: rgba(15, 23, 42, 0.92);
backdrop-filter: none;
-webkit-backdrop-filter: none;
}
}

@media (prefers-reduced-motion: reduce) {
.ve-workspace .btn-launch,
.ve-workspace .btn-secondary,
.ve-workspace .sidebar-item {
transition: none;
}
}

/* Rev 4b: hero CTAs wrap cleanly on narrow viewports */
.ve-workspace .hub-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: stretch;
}
.ve-workspace .hub-actions .btn-launch,
.ve-workspace .hub-actions .btn-secondary {
white-space: normal;
line-height: 1.3;
text-align: center;
min-width: 0;
max-width: 100%;
height: auto;
box-sizing: border-box;
overflow-wrap: anywhere;
hyphens: auto;
}
@media (max-width: 390px) {
.ve-workspace .hub-actions .btn-launch,
.ve-workspace .hub-actions .btn-secondary {
font-size: 0.8rem;
padding-left: 12px;
padding-right: 12px;
}
}

/* --------------------------------------
BATCH 5: ENDEAVOUR SCROLLBARS (.game-area + sidebar)
Chromium/Safari: ::-webkit-scrollbar (standard props deliberately
NOT set there, or Chromium 121+ would ignore these pseudos).
Firefox: scrollbar-color/-width. Touch/coarse pointers: OS default.
-------------------------------------- */
.ve-layout {
--ve-scroll-track: #0D0F16;
--ve-scroll-thumb: #06B6D4;
--ve-scroll-thumb-hover: #00FFFF;
--ve-scroll-glow: rgba(0, 255, 255, 0.55);
}

.ve-workspace .game-area {
scrollbar-gutter: stable;
}

@media (hover: hover) and (pointer: fine) {
@supports not selector(::-webkit-scrollbar) {
.ve-workspace .game-area {
scrollbar-color: var(--ve-scroll-thumb) var(--ve-scroll-track);
}
.ve-workspace .sidebar-nav {
scrollbar-color: var(--ve-scroll-thumb) transparent;
scrollbar-width: thin;
}
}

.ve-workspace .game-area::-webkit-scrollbar { width: 10px; }
.ve-workspace .sidebar-nav::-webkit-scrollbar { width: 8px; }

.ve-workspace .game-area::-webkit-scrollbar-track { background: var(--ve-scroll-track); }
.ve-workspace .sidebar-nav::-webkit-scrollbar-track { background: transparent; }

.ve-workspace .game-area::-webkit-scrollbar-thumb,
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb {
min-height: 40px;
border: 2px solid transparent;
border-radius: 999px;
background: var(--ve-scroll-thumb) padding-box;
}
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb { border-width: 1px; }

.ve-workspace .game-area::-webkit-scrollbar-thumb:hover,
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb:hover,
.ve-workspace .game-area::-webkit-scrollbar-thumb:active,
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb:active {
background: var(--ve-scroll-thumb-hover) padding-box;
box-shadow: inset 0 0 6px var(--ve-scroll-glow);
}
}

@media (forced-colors: active) {
.ve-workspace .game-area,
.ve-workspace .sidebar-nav { scrollbar-color: auto; }
.ve-workspace .game-area::-webkit-scrollbar-track,
.ve-workspace .sidebar-nav::-webkit-scrollbar-track { background: Canvas; }
.ve-workspace .game-area::-webkit-scrollbar-thumb,
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb,
.ve-workspace .game-area::-webkit-scrollbar-thumb:hover,
.ve-workspace .sidebar-nav::-webkit-scrollbar-thumb:hover {
background: CanvasText padding-box;
box-shadow: none;
}
}
