:root {
    --bg-color: #08090f;
    --panel-bg: rgba(15, 18, 36, 0.7);
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-color: #f1f2f6;
    --text-muted: #8b92b6;
    
    --neon-pink: #ff2a74;
    --neon-cyan: #00f2fe;
    --neon-green: #39ff14;
    --neon-yellow: #f39c12;
    --neon-purple: #9d4edd;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Particle Canvas */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* HERO HEADER */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--panel-border);
}

.logo-wrapper {
    flex: 1;
    min-width: 300px;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 2.2rem;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.logo-accent {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 42, 116, 0.5), 0 0 35px var(--neon-pink);
}

.glow-purple {
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.4), 0 0 30px var(--neon-purple);
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Stats dashboard */
.dashboard-panel {
    display: flex;
    gap: 25px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 15px 30px;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.dash-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.dash-stat-val {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.1rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* GAMES GRID (Image Based) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    padding: 10px;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
    }
}

.game-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 1; /* Make them perfect squares */
    cursor: pointer;
    border: 2px solid transparent;
}

.game-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 14, 21, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
    text-align: center;
}

.game-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.play-btn {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.6rem;
    padding: 10px 15px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    transform: translateY(20px);
}

/* Hover Effects */
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

.game-card:hover .game-cover {
    transform: scale(1.1);
    filter: blur(2px) grayscale(50%);
}

.game-card:hover .hover-overlay {
    opacity: 1;
}

.game-card:hover .game-title,
.game-card:hover .play-btn {
    transform: translateY(0);
}

.play-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px var(--neon-cyan);
}
}

.play-btn .arrow {
    display: inline-block;
    transition: transform 0.3s;
}

.play-btn:hover .arrow {
    transform: translateX(4px);
}

/* FEEDBACK / RESEÑAS */
.feedback-section {
    padding-top: 20px;
}

.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.feedback-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .feedback-wrapper {
        grid-template-columns: 1fr;
    }
}

.comment-form {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.comment-form h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    color: #fff;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.form-group select,
.form-group textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--panel-border);
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--neon-purple);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Star Rating UI */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.star {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: color 0.2s;
}

.star:hover,
.star:hover ~ .star,
.star.selected,
.star.selected ~ .star {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neon-purple), #5e17eb);
    border: none;
    color: #fff;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(94, 23, 235, 0.4);
}

.submit-btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.6);
    transform: translateY(-1px);
}

/* Reviews List */
.comments-list-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments-list-box h3 {
    font-size: 1.2rem;
    color: #fff;
}

.comments-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom scrollbar */
.comments-container::-webkit-scrollbar {
    width: 6px;
}
.comments-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.comments-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.review-item {
    background: rgba(14, 17, 33, 0.4);
    border: 1px solid var(--panel-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.4s ease-out;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.review-game-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--neon-cyan);
}

.review-stars {
    color: var(--neon-yellow);
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.9rem;
    color: #c9d1f5;
    line-height: 1.4;
}

.review-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    align-self: flex-end;
}

/* GAME MODAL (IFRAME CONTAINER) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 7, 10, 0.85);
    backdrop-filter: blur(15px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 760px;
    height: 90vh;
    max-height: 640px;
    background: #0d0e15;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(157, 78, 221, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-header {
    background: rgba(14, 17, 33, 0.9);
    border-bottom: 1px solid var(--panel-border);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.9rem;
    color: #fff;
    letter-spacing: -0.5px;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-controls button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-controls button:hover {
    color: #fff;
}

#modal-close-btn {
    font-size: 2rem;
    line-height: 1;
}

.modal-body {
    flex: 1;
    background: #06070a;
    position: relative;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1.5rem;
    }
    .hero {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-panel {
        justify-content: space-between;
    }
    .app-container {
        padding: 20px 10px;
        gap: 35px;
    }
}
