/**
 * @author      Mike Fairbrother <mike@fairbrother.me>
 * @copyright   2024-2026 Mike Fairbrother. All rights reserved.
 * @license     PROPRIETARY - No rights to copy, modify, distribute, or reuse
 *              any part of this code without explicit written permission from the author.
 */
/* Word Meteor - Styles */

.wm-logo { font-size: 64px; text-align: center; margin-bottom: 8px; line-height: 1.2; }
.wm-title { font-size: 28px; font-weight: 800; text-align: center; background: linear-gradient(135deg, #ffd93d, #ff9f43); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 4px; }
.wm-subtitle { font-size: 14px; color: rgba(255,255,255,0.5); text-align: center; margin-bottom: 16px; }
.menu-best { font-size: 13px; color: rgba(255,255,255,0.4); text-align: center; margin-bottom: 20px; }

/* Difficulty pills */
.wm-difficulty { margin: 0 0 20px; text-align: center; }
.wm-diff-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.wm-diff-pills { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.wm-pill { padding: 8px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); font-size: 12px; font-weight: 700; cursor: pointer; transition: all 150ms; font-family: inherit; }
.wm-pill.active { background: rgba(255,217,61,0.2); border-color: rgba(255,217,61,0.4); color: #ffd93d; }

/* Game area */
#game-area { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 12px 16px; overflow: hidden; }

/* Clue bar */
.wm-clue { font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.6); text-align: center; min-height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 12px; line-height: 1.3; }

/* Word progress bar */
.wm-word-bar { display: flex; gap: 6px; justify-content: center; margin: 10px 0 16px; min-height: 48px; align-items: center; flex-wrap: wrap; }
.wm-slot { width: 38px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.06); border: 2px dashed rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #ffd93d; transition: all 200ms; text-transform: uppercase; }
.wm-slot.filled { background: rgba(255,217,61,0.15); border: 2px solid rgba(255,217,61,0.4); animation: wm-slot-pop 250ms ease; }

@keyframes wm-slot-pop {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Meteor field */
.wm-meteor-field { flex: 1; width: 100%; position: relative; overflow: hidden; min-height: 200px; }

/* Meteor letter circles */
.wm-meteor { position: absolute; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; color: #fff; cursor: pointer; user-select: none; -webkit-user-select: none; text-transform: uppercase; transition: transform 100ms, box-shadow 100ms; background: radial-gradient(circle at 35% 35%, #5b6abf, #2d2a6e 60%, #1a1640 100%); border: 2px solid rgba(255,217,61,0.3); box-shadow: 0 0 18px rgba(255,217,61,0.25), 0 0 6px rgba(139,132,255,0.3), inset 0 -3px 6px rgba(0,0,0,0.3); animation: wm-float 3s ease-in-out infinite; z-index: 5; }
.wm-meteor:active { transform: scale(0.9); }
.wm-meteor.wm-correct-tap { animation: wm-correct-fly 400ms ease forwards; z-index: 10; }
.wm-meteor.wm-wrong-tap { animation: wm-shake 350ms ease; border-color: #ff4757; box-shadow: 0 0 20px rgba(255,71,87,0.5); }
.wm-meteor.wm-used { opacity: 0; pointer-events: none; transition: opacity 200ms; }

/* Meteor glow colours per position for variety */
.wm-meteor.wm-glow-1 { background: radial-gradient(circle at 35% 35%, #7b6bbf, #3d2a8e 60%, #1a1640 100%); }
.wm-meteor.wm-glow-2 { background: radial-gradient(circle at 35% 35%, #6b9fbf, #2a5a8e 60%, #0f1c40 100%); }
.wm-meteor.wm-glow-3 { background: radial-gradient(circle at 35% 35%, #bf8b6b, #8e4a2a 60%, #401a0f 100%); }
.wm-meteor.wm-glow-4 { background: radial-gradient(circle at 35% 35%, #6bbf8b, #2a8e4a 60%, #0f4020 100%); }
.wm-meteor.wm-glow-5 { background: radial-gradient(circle at 35% 35%, #bf6b9f, #8e2a5a 60%, #400f2a 100%); }

@keyframes wm-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes wm-correct-fly {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.8; }
    100% { transform: scale(0.2) translateY(-80px); opacity: 0; }
}

@keyframes wm-shake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-8px); }
    30% { transform: translateX(8px); }
    45% { transform: translateX(-6px); }
    60% { transform: translateX(6px); }
    75% { transform: translateX(-3px); }
    90% { transform: translateX(3px); }
}

/* Word complete celebration */
.wm-celebrate { animation: wm-celebrate-pulse 600ms ease; }
@keyframes wm-celebrate-pulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.08); }
    60% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

/* Stars burst on correct word */
.wm-star { position: absolute; pointer-events: none; font-size: 20px; z-index: 100; animation: wm-star-burst 700ms ease-out forwards; }
@keyframes wm-star-burst {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* Game over stats */
.wm-stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 20px 0; }
.wm-stat-box { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 14px 8px; text-align: center; }
.wm-stat-num { display: block; font-size: 24px; font-weight: 800; color: #fff; }
.wm-stat-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255,255,255,0.35); margin-top: 2px; display: block; }

/* Help modal sections */
.help-section { margin-bottom: 16px; text-align: left; }
.help-section h4 { font-size: 14px; font-weight: 700; color: #ffd93d; margin-bottom: 4px; }
.help-section p { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }

/* Lives hearts */
.wm-hearts { color: #ff4757; letter-spacing: 2px; }

/* Level up flash */
.wm-level-up { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 32px; font-weight: 800; color: #ffd93d; text-shadow: 0 0 20px rgba(255,217,61,0.6); z-index: 50; pointer-events: none; animation: wm-level-flash 1.2s ease-out forwards; }
@keyframes wm-level-flash {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
