/**
 * Family TV Games - Stylesheet
 * Optimized for Android Xiaomi TV Box, Tablets, Mobile Phones & Desktop
 *
 * Developer: Γαλανάκης Βασίλειος Μάριος
 * Company: Opticweb
 * Phone: +30 6983623929
 * Email: support@opticweb.gr & info@opticweb.gr
 */

:root {
    --bg-primary: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-card-hover: rgba(51, 65, 85, 0.95);
    --border-card: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gold: #f59e0b;
    --accent-glow: rgba(245, 158, 11, 0.6);
    --focus-border: #facc15;
    --focus-glow: 0 0 24px rgba(250, 204, 21, 0.85);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --safe-pad: clamp(16px, 3vh, 32px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: radial-gradient(circle at top center, #1e1b4b 0%, #0f172a 50%, #030712 100%);
    color: var(--text-primary);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* TV Focus Styling (Neon Gold Ring with Scale) */
.tv-focusable {
    outline: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tv-focusable.tv-focused,
.tv-focusable:focus-visible {
    outline: 4px solid var(--focus-border) !important;
    box-shadow: var(--focus-glow), 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.06) !important;
    z-index: 10 !important;
}

/* Main Container with TV Safe-Zone Padding */
#app-root {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: var(--safe-pad);
    display: flex;
    flex-direction: column;
    flex: 1;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* --- Hub Header --- */
.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: clamp(20px, 3.5vh, 40px);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hub-logo-icon {
    font-size: clamp(2.5rem, 5vw, 4rem);
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.4));
}

.hub-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.6vw, 1.25rem);
}

.header-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-status {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

.badge-status.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #6ee7b7;
}

.btn-icon {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Game Selection Grid --- */
.game-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    flex: 1;
}

.game-launcher-card {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vh, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}

.card-icon {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin: 10px 0 16px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.card-title {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.card-quiz .card-title { color: #38bdf8; }
.card-memory .card-title { color: #a78bfa; }
.card-mystery .card-title { color: #f472b6; }
.card-wheel .card-title { color: #f59e0b; }
.card-freeze .card-title { color: #38bdf8; }
.card-hunt .card-title { color: #f97316; }
.card-catcher .card-title { color: #eab308; }
.card-gym .card-title { color: #10b981; }

.card-desc {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    line-height: 1.5;
    margin-bottom: 24px;
    flex: 1;
}

.launcher-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.btn-play {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-play-sub {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
}

/* --- Footer --- */
.hub-footer {
    margin-top: clamp(24px, 4vh, 48px);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.controls-guide strong {
    color: #facc15;
}

.developer-info {
    font-size: 0.85rem;
    color: #64748b;
}

/* --- Common Game Card Shell --- */
.game-card {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.5vh, 28px);
    display: flex;
    flex-direction: column;
    min-height: 75vh;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.game-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
}

.turn-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.round-counter {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fbbf24;
}

.scoreboard-bar {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.player-score-chip {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 1.1rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.player-score-chip.active-turn {
    background: rgba(245, 158, 11, 0.2);
    border-color: #f59e0b;
    color: #fef08a;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* --- GAME 1: QUIZ --- */
.quiz-question-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: clamp(16px, 3vh, 28px);
    text-align: center;
    margin-bottom: clamp(16px, 2.5vh, 28px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quiz-question-text {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
}

.btn-speech-repeat {
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid #38bdf8;
    color: #7dd3fc;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
}

.quiz-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(12px, 2vw, 20px);
    margin-bottom: 20px;
}

.quiz-option-card {
    background: rgba(30, 41, 59, 0.95);
    border: 3px solid var(--accent-color, rgba(255, 255, 255, 0.2));
    border-radius: var(--radius-lg);
    padding: clamp(16px, 2.5vh, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    min-height: clamp(110px, 16vh, 180px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quiz-option-card .option-emoji {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.quiz-option-card .option-label {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 800;
}

.quiz-option-card.correct {
    background: #059669 !important;
    border-color: #34d399 !important;
    animation: bounce 0.5s ease;
}

.quiz-option-card.correct-highlight {
    background: rgba(5, 150, 105, 0.6) !important;
    border-color: #34d399 !important;
}

.quiz-option-card.wrong {
    background: #dc2626 !important;
    border-color: #f87171 !important;
    animation: shake 0.4s ease;
}

/* --- GAME 2: MEMORY --- */
.memory-grid {
    display: grid;
    gap: clamp(10px, 1.5vw, 18px);
    justify-content: center;
    margin: auto 0;
    perspective: 1000px;
}

.memory-grid.grid-6 {
    grid-template-columns: repeat(3, minmax(100px, 180px));
}

.memory-grid.grid-12 {
    grid-template-columns: repeat(4, minmax(90px, 160px));
}

.memory-grid.grid-16 {
    grid-template-columns: repeat(4, minmax(80px, 140px));
}

.memory-card {
    background: transparent;
    border: none;
    aspect-ratio: 1;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: var(--radius-lg);
}

.memory-card.flipped .card-inner,
.memory-card.matched .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-front {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: #94a3b8;
}

.card-back {
    background: var(--bg-card);
    border-color: var(--card-color, #f59e0b);
    transform: rotateY(180deg);
}

.card-back .card-emoji {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

.card-back .card-label {
    font-size: clamp(0.9rem, 1.4vw, 1.2rem);
    font-weight: 800;
    color: #fff;
    margin-top: 4px;
}

.memory-card.matched .card-inner {
    animation: matchGlow 1s ease infinite alternate;
}

@keyframes matchGlow {
    from { filter: drop-shadow(0 0 6px #10b981); }
    to { filter: drop-shadow(0 0 16px #34d399); }
}

/* --- GAME 3: MYSTERY PICTURE & WORD --- */
.mystery-main-content {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2.5vw, 32px);
    margin: auto 0;
}

.mystery-picture-container {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mystery-image-stage {
    position: relative;
    width: clamp(200px, 30vw, 300px);
    height: clamp(200px, 30vw, 300px);
    background: rgba(15, 23, 42, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.mystery-big-emoji {
    font-size: clamp(6rem, 12vw, 10rem);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
}

.mystery-tiles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
}

.mystery-tile {
    border-radius: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
}

.mystery-tile.covered {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.mystery-tile.revealed {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.6);
}

.mystery-clue-box {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.clue-text {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    line-height: 1.4;
    color: #f1f5f9;
}

.clue-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-reveal-tile {
    background: rgba(236, 72, 153, 0.25);
    border: 1px solid #ec4899;
    color: #f472b6;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
}

.btn-solve-word {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.mystery-letters-container {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.word-blanks-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.mystery-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(38px, 5vw, 54px);
    height: clamp(48px, 6vw, 68px);
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 5px solid #38bdf8;
    border-radius: 8px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 900;
    color: #f8fafc;
}

.mystery-letter.revealed {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    animation: bounce 0.4s ease;
}

.mystery-space {
    width: 20px;
}

.greek-keyboard-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.key-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 800;
    padding: 12px 6px;
    border-radius: 8px;
    min-height: 48px;
}

.key-btn.used {
    opacity: 0.25;
    background: rgba(0, 0, 0, 0.4);
    border-color: transparent;
    pointer-events: none;
}

/* --- GAME 4: ACTION WHEEL --- */
.wheel-stage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vh, 24px);
    margin: auto 0;
}

.wheel-wrapper {
    position: relative;
    width: clamp(280px, 45vw, 480px);
    height: clamp(280px, 45vw, 480px);
    display: flex;
    align-items: center;
    justify-content: center;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.6));
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2.2rem, 3.5vw, 3.2rem);
    color: #facc15;
    z-index: 20;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8));
    transition: transform 0.05s ease;
    transform-origin: top center;
}

.wheel-pointer.wobble {
    transform: translateX(-50%) rotate(-18deg);
}

.wheel-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-spin {
    padding: clamp(14px, 2.2vh, 22px) clamp(28px, 4vw, 44px);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    border-radius: var(--radius-lg);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.wheel-hint {
    color: var(--text-secondary);
    font-size: 1rem;
}

.wheel-challenge-modal {
    max-width: 640px;
}

.challenge-modal-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #facc15;
    margin-bottom: 8px;
}

.challenge-modal-desc {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.45;
    color: #f8fafc;
    background: rgba(15, 23, 42, 0.6);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- GAME 5: FREEZE DANCE --- */
.freeze-view.state-dance {
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.25) 0%, rgba(15, 23, 42, 0.9) 100%);
}

.freeze-view.state-frozen {
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.35) 0%, #082f49 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

.freeze-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 3vh, 36px);
    margin: auto 0;
}

.freeze-banner-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.freeze-main-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
}

.dance-pulse {
    color: #f472b6;
    animation: pulseDance 0.6s infinite alternate;
}

.ice-title {
    color: #38bdf8;
    text-shadow: 0 0 20px #0284c7, 0 0 40px #38bdf8;
}

.freeze-instruction {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: #e2e8f0;
}

.dancers-row {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 3vw, 36px);
    flex-wrap: wrap;
    margin: 10px 0;
}

.dancer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dancer-emoji {
    font-size: clamp(4rem, 8vw, 6.5rem);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.dancer-name {
    font-size: 1rem;
    font-weight: 700;
    color: #cbd5e1;
}

.animate-dance:nth-child(1) { animation: bounce 0.4s infinite alternate; }
.animate-dance:nth-child(2) { animation: danceSpin 0.6s infinite ease-in-out; }
.animate-dance:nth-child(3) { animation: bounce 0.5s 0.1s infinite alternate; }
.animate-dance:nth-child(4) { animation: danceSpin 0.7s 0.2s infinite ease-in-out; }
.animate-dance:nth-child(5) { animation: bounce 0.45s 0.15s infinite alternate; }

.frozen-dancers .dancer-item {
    animation: none !important;
    filter: drop-shadow(0 0 16px #38bdf8) grayscale(0.2);
    transform: rotate(-6deg) scale(0.95);
}

.btn-freeze-manual {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 2px solid #38bdf8;
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.5);
}

.freeze-scoring-bar {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@keyframes pulseDance {
    from { transform: scale(1); filter: drop-shadow(0 0 10px rgba(244, 114, 182, 0.6)); }
    to { transform: scale(1.08); filter: drop-shadow(0 0 25px rgba(244, 114, 182, 0.9)); }
}

@keyframes danceSpin {
    0% { transform: rotate(-12deg) translateY(0); }
    50% { transform: rotate(12deg) translateY(-14px); }
    100% { transform: rotate(-12deg) translateY(0); }
}

/* --- GAME 6: SCAVENGER HUNT --- */
.hunt-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 3vh, 28px);
    margin: auto 0;
    width: 100%;
    max-width: 800px;
}

.hunt-mission-card {
    background: rgba(15, 23, 42, 0.85);
    border: 3px solid var(--mission-color, #f59e0b);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vh, 40px);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.hunt-mission-emoji {
    font-size: clamp(5rem, 10vw, 7.5rem);
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

.hunt-mission-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #facc15;
}

.hunt-mission-desc {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    line-height: 1.45;
    color: #f8fafc;
}

.hunt-progress-wrapper {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.hunt-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    transition: width 1s linear;
}

.hunt-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-found {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* --- GAME 7: STAR CATCHER ARCADE --- */
.catcher-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

#catcher-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 800 / 520;
}

.touch-control-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    pointer-events: auto;
}

.touch-zone {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    font-size: 2.5rem;
    opacity: 0.15;
    user-select: none;
    touch-action: none;
}

.touch-left { justify-content: flex-start; }
.touch-right { justify-content: flex-end; }

/* --- GAME 8: FAMILY FIT GYM --- */
.gym-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(16px, 2.5vh, 24px);
    margin: auto 0;
    width: 100%;
    max-width: 820px;
}

.gym-card {
    background: rgba(15, 23, 42, 0.85);
    border: 3px solid var(--gym-accent, #10b981);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.5vh, 36px);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.gym-emoji-avatar {
    font-size: clamp(4.5rem, 9vw, 7rem);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.5));
    animation: bounce 0.6s infinite alternate;
}

.gym-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    color: #facc15;
}

.gym-reps-badge {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid #10b981;
    color: #6ee7b7;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 800;
}

.gym-desc {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.45;
    color: #f8fafc;
    margin-top: 4px;
}

.gym-timer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gym-progress-ring {
    width: clamp(75px, 12vw, 100px);
    height: clamp(75px, 12vw, 100px);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.8);
    border: 5px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.gym-countdown-number {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #facc15;
}

.gym-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-gym-done {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* --- STAGE SELECTOR (ΠΙΣΤΕΣ) --- */
.stage-select-view {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(16px, 2.5vh, 24px);
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(14px, 2vw, 22px);
    margin: auto 0;
    width: 100%;
}

.stage-card {
    background: rgba(30, 41, 59, 0.9);
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vh, 32px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stage-card.stage-random {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.stage-emoji {
    font-size: clamp(3rem, 6vw, 4.5rem);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.stage-name {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 800;
    color: #f8fafc;
}

.stage-card.stage-random .stage-name {
    color: #facc15;
}

.stage-desc {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* --- Modals & Results --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card);
    border: 3px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vh, 40px);
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-item-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.modal-emoji {
    font-size: clamp(5rem, 10vw, 7rem);
}

.modal-word {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #facc15;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.results-view {
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.results-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: #facc15;
}

.results-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.results-podium {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin: 10px 0;
}

.podium-card {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.podium-card.rank-1 {
    border-color: #f59e0b;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.podium-emoji {
    font-size: 3.5rem;
}

.podium-name {
    font-size: 1.4rem;
    font-weight: 800;
}

.podium-score {
    font-size: 1.2rem;
    color: #facc15;
    font-weight: 700;
}

.podium-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.results-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #fff;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.2rem;
}

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Responsive queries */
@media (max-width: 768px) {
    .greek-keyboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .quiz-options-grid {
        grid-template-columns: 1fr;
    }
}
