:root {
    --w-primary: #6c5ce7;
    --w-accent: #fd79a8;
    --w-success: #00b894;
    --w-error: #d63031;
    --w-bg: #f0f3f7;
}

.woofie-game-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--w-bg);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Fredoka One', 'Comic Sans MS', sans-serif;
    position: relative;
}

.woofie-hud {
    padding: 15px 20px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
}

.woofie-progress-track {
    flex-grow: 1;
    height: 12px;
    background: #eee;
    border-radius: 10px;
    margin-right: 20px;
    overflow: hidden;
}

.woofie-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--w-primary), var(--w-accent));
    transition: width 0.5s ease;
}

.woofie-hud-stats {
    display: flex;
    gap: 15px;
    font-weight: bold;
    color: #2d3436;
}

.woofie-stage-wrapper { position: relative; }

.woofie-stage {
    width: 100%;
    height: 350px;
    background: radial-gradient(circle at center, #ffffff 0%, #dfe6e9 100%);
    cursor: grab;
}

.woofie-feedback {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 15px;
    text-align: center;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 5;
    opacity: 0;
    min-width: 200px;
}

.woofie-feedback.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.woofie-feedback h2 { margin: 0; font-size: 2.5rem; line-height: 1.2; }
.woofie-feedback p { margin: 5px 0 0 0; font-size: 1.2rem; color: #636e72; }

.woofie-controls {
    padding: 20px;
    background: white;
    text-align: center;
}

.woofie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

/* MOBILE OPTIMIZATION: 2x2 Grid */
@media (max-width: 600px) {
    .woofie-grid {
        grid-template-columns: 1fr 1fr; /* Forces 2 columns */
    }
    /* Adjust height for smaller screens so it fits better */
    .woofie-stage { height: 280px; }
}

.woofie-opt-btn {
    background: white;
    border: 2px solid #dfe6e9;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #2d3436;
    font-weight: 600;
}

.woofie-opt-btn:hover {
    border-color: var(--w-primary);
    transform: translateY(-2px);
    background: #f8f9fa;
}

.woofie-opt-btn.correct {
    background: var(--w-success);
    color: white;
    border-color: var(--w-success);
}

.woofie-opt-btn.wrong {
    background: var(--w-error);
    color: white;
    border-color: var(--w-error);
    opacity: 0.6;
}

.woofie-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.woofie-card {
    text-align: center;
    max-width: 400px;
    padding: 20px;
}

.woofie-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.woofie-btn-primary, .woofie-btn-secondary, .woofie-btn-podcast {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    margin: 5px;
}

.woofie-btn-primary { background: var(--w-primary); color: white; font-size: 1.2rem; }
.woofie-btn-secondary { background: #b2bec3; color: white; }
.woofie-btn-podcast { background: #8e44ad; color: white; }
.woofie-btn-primary:hover { transform: scale(1.05); }