/* Arcade Gaming Theme */
:root {
    --arcade-bg: #0b0c10;
    --neon-cyan: #66fcf1;
    --neon-green: #45a29e;
    --neon-amber: #f5b041;
    --neon-red: #e74c3c;
    --correct-bg: #10B981;
    --partial-bg: #F59E0B;
    --wrong-bg: #374151;
}

.game-container {
    background: var(--arcade-bg);
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    margin-top: 2rem;
}

.neon-title {
    font-family: 'Lexend', sans-serif;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.game-tab {
    cursor: pointer;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    color: #c5c6c7;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.game-tab.active {
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 2rem auto;
}

.search-input {
    width: 100%;
    background: #1f2833;
    border: 1px solid var(--neon-green);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    outline: none;
    transition: box-shadow 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 10px var(--neon-green);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f2833;
    border: 1px solid var(--neon-green);
    border-top: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(69, 162, 158, 0.2);
}

.autocomplete-item:hover {
    background: var(--neon-green);
    color: var(--arcade-bg);
}

/* Attribute Grid */
.guess-row {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    perspective: 1000px;
}

.poke-row { grid-template-columns: repeat(6, 1fr); }
.lol-row { grid-template-columns: repeat(6, 1fr); }
.wordle-row { 
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.tile {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    text-align: center;
    border-radius: 0.5rem;
    background: var(--wrong-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.6s;
    position: relative;
    min-width: 50px;
}

.tile span { font-size: 0.6rem; opacity: 0.6; margin-bottom: 2px; }

.tile.flip {
    transform: rotateX(180deg);
}

.tile-front, .tile-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

.tile-back {
    transform: rotateX(180deg);
}

.tile.correct .tile-back { background-color: var(--correct-bg); }
.tile.partial .tile-back { background-color: var(--partial-bg); }
.tile.wrong .tile-back { background-color: var(--wrong-bg); }

/* Wordle Specific */
.wordle-tile {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    text-transform: uppercase;
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.arrow-up, .arrow-down {
    display: inline-block;
    animation: bounce 1s infinite;
}

.arrow-up { color: var(--neon-cyan); }
.arrow-down { color: var(--neon-red); }

.win-alert {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Range Input Styling */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--neon-cyan);
    margin-top: -6px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--neon-cyan);
}

input[type=range].accent-neon-amber::-webkit-slider-thumb {
    background: var(--neon-amber);
    box-shadow: 0 0 10px var(--neon-amber);
}
