/* ============================================
   VEXEL - Page-Specific Styles
   ============================================ */

/* ============================================
   VEXEL PAGE - Body & Background
   ============================================ */

.page-vexel {
    --vexel-dark-bg: #050505;
    --vexel-dark-surface: #0a0a0a;
    --vexel-dark-text: #eeeeee;
    --vexel-dark-muted: #888888;
    --vexel-dark-accent: #ffffff;

    background: var(--vexel-dark-bg);
    color: var(--vexel-dark-text);
}

/* Animated game board grid - scrolls slowly like pieces being placed */
.page-vexel::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
        radial-gradient(circle at 50% 50%, rgba(122, 96, 232, 0.04), transparent 60%);
    pointer-events: none;
    z-index: -2;
    animation: vexelGridScroll 16s linear infinite;
}

@keyframes vexelGridScroll {
    from { background-position: 0 0, 0 0, center; }
    to   { background-position: 0 38px, 0 38px, center; }
}

/* Purple ambient glow */
.page-vexel::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 25% 20%, rgba(122, 96, 232, 0.1), transparent),
        radial-gradient(ellipse 60% 40% at 78% 78%, rgba(88, 64, 196, 0.08), transparent),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(150, 120, 255, 0.04), transparent);
    pointer-events: none;
    z-index: -1;
    animation: vexelGlow 25s ease-in-out infinite alternate;
}

@keyframes vexelGlow {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 1.0; transform: scale(1.06); }
}

/* ============================================
   VEXEL - Floating Game Tiles
   Each color represents a player
   ============================================ */

.vexel-tiles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.vexel-tile {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    width: 6px;
    height: 6px;
    animation: vexelTileDrift var(--dur, 22s) var(--delay, 0s) ease-in-out infinite alternate;
}

/* Player colors - muted to stay atmospheric */
.vexel-tile--a { background: rgba(122, 96, 232, 0.22); } /* purple */
.vexel-tile--b { background: rgba(220, 75, 75, 0.18); }  /* red */
.vexel-tile--c { background: rgba(75, 185, 105, 0.18); } /* green */
.vexel-tile--d { background: rgba(220, 185, 55, 0.18); } /* yellow */

@keyframes vexelTileDrift {
    from { transform: translate(0, 0); opacity: 0.4; }
    to   { transform: translate(var(--dx, 25px), var(--dy, 15px)); opacity: 0.7; }
}

/* ============================================
   VEXEL PAGE - Layout & Theme Overrides
   ============================================ */

/* Remove card styling to match game-about sections */
.page-vexel .info-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-subtle);
}

.page-vexel .info-card:first-child {
    padding-top: 0;
    border-top: none;
}

/* Strip containers - float on the void */
.page-vexel .game-header-centered,
.page-vexel .game-details {
    padding-bottom: var(--space-xl);
}

.page-vexel .game-header-centered .container,
.page-vexel .game-about .container {
    background: none;
    border: none;
    backdrop-filter: none;
}

/* Vexel wordmark logo */
.vexel-page-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.6vw, 1.1rem);
    margin-bottom: var(--space-xl);
    font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: .92;
    letter-spacing: 0;
    text-transform: uppercase;
    color: rgba(122, 96, 232, 0.9);
    text-shadow: none;
    opacity: 0.9;
}

.vexel-page-logo > span {
    flex: 0 0 auto;
    display: inline-block;
    transform: scaleY(1.08);
    transform-origin: center bottom;
}

@media (max-width: 500px) {
    .vexel-page-logo {
        gap: 0.5rem;
        font-size: 1.65rem;
    }
}

.page-vexel .game-header-tagline {
    color: #cccccc;
}

.page-vexel .section-header h2 {
    color: #ffffff;
}

.page-vexel .game-header-meta {
    color: var(--vexel-dark-muted);
}

.page-vexel .game-free-note {
    color: #888888;
    margin-top: var(--space-sm);
}

.page-vexel .about-text p {
    color: #cccccc;
}

.page-vexel .game-about {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.page-vexel .game-header-centered a,
.page-vexel .game-about a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.page-vexel .game-header-centered a:hover,
.page-vexel .game-about a:hover {
    color: #ffffff;
    text-decoration-color: #ffffff;
}

/* Ghost button */
.page-vexel .btn-primary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-vexel .btn-primary:hover {
    background: rgba(122, 96, 232, 0.12);
    border-color: rgba(122, 96, 232, 0.7);
    color: #ffffff;
}
