:root {
    --bg-color: #0f172a;
    --bg-body-gradient: radial-gradient(circle at top left, #1e1b4b, #0f172a 40%),
                        radial-gradient(circle at bottom right, #312e81, #0f172a 60%);
    --card-bg: rgba(30, 41, 59, 0.85); /* Glassmorphism */
    --modal-bg: #0f172a;
    --item-card-bg: rgba(30, 41, 59, 0.65);
    --item-card-hover: rgba(30, 41, 59, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(59, 130, 246, 0.5);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --accent-gold: #f59e0b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --input-bg: rgba(15, 23, 42, 0.9);
    --input-color: #ffffff;
    --key-bg: rgba(30, 41, 59, 0.75);
    --key-hover: rgba(51, 65, 85, 0.95);
    --key-text: #f8fafc;
    --shadow-main: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family: var(--font-body);
}

/* Light Mode (Daylight Honey) */
html[data-theme="light"] {
    --bg-color: #fdfbf7;
    --bg-body-gradient: radial-gradient(circle at top left, #fef3c7, #fdfbf7 50%),
                        radial-gradient(circle at bottom right, #fed7aa, #fffbeb 60%);
    --card-bg: rgba(255, 255, 255, 0.92);
    --modal-bg: #ffffff;
    --item-card-bg: #f8fafc;
    --item-card-hover: #f1f5f9;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-focus: rgba(37, 99, 235, 0.5);
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #059669;
    --danger: #dc2626;
    --accent-gold: #d97706;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --input-bg: #ffffff;
    --input-color: #0f172a;
    --key-bg: #f1f5f9;
    --key-hover: #e2e8f0;
    --key-text: #0f172a;
    --shadow-main: 0 20px 40px -10px rgba(0, 0, 0, 0.09);
}

/* Forest Meadow (Emerald) */
html[data-theme="forest"] {
    --bg-color: #062319;
    --bg-body-gradient: radial-gradient(circle at top left, #064e3b, #062319 50%),
                        radial-gradient(circle at bottom right, #042f2e, #021a12 60%);
    --card-bg: rgba(6, 44, 33, 0.88);
    --modal-bg: #062319;
    --item-card-bg: rgba(6, 78, 59, 0.5);
    --item-card-hover: rgba(6, 78, 59, 0.75);
    --border-subtle: rgba(52, 211, 153, 0.2);
    --border-focus: rgba(16, 185, 129, 0.6);
    --primary: #10b981;
    --primary-hover: #059669;
    --success: #34d399;
    --danger: #f87171;
    --accent-gold: #fbbf24;
    --text-main: #f0fdf4;
    --text-muted: #86efac;
    --input-bg: rgba(2, 26, 18, 0.9);
    --input-color: #f0fdf4;
    --key-bg: rgba(6, 78, 59, 0.7);
    --key-hover: rgba(6, 95, 70, 0.9);
    --key-text: #f0fdf4;
    --shadow-main: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* Cyberpunk Synthwave (Neon Violet & Pink) */
html[data-theme="cyberpunk"] {
    --bg-color: #0d0720;
    --bg-body-gradient: radial-gradient(circle at top left, #2e1065, #0d0720 50%),
                        radial-gradient(circle at bottom right, #4a044e, #090314 60%);
    --card-bg: rgba(30, 16, 60, 0.88);
    --modal-bg: #120826;
    --item-card-bg: rgba(49, 21, 95, 0.6);
    --item-card-hover: rgba(74, 4, 78, 0.7);
    --border-subtle: rgba(236, 72, 153, 0.25);
    --border-focus: rgba(236, 72, 153, 0.6);
    --primary: #ec4899;
    --primary-hover: #db2777;
    --success: #06b6d4;
    --danger: #f43f5e;
    --accent-gold: #38bdf8;
    --text-main: #fdf4ff;
    --text-muted: #c084fc;
    --input-bg: rgba(13, 7, 32, 0.9);
    --input-color: #fdf4ff;
    --key-bg: rgba(49, 21, 95, 0.75);
    --key-hover: rgba(74, 4, 78, 0.9);
    --key-text: #fdf4ff;
    --shadow-main: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

/* Sunset Amber (Warm Gold & Crimson) */
html[data-theme="sunset"] {
    --bg-color: #1c0a00;
    --bg-body-gradient: radial-gradient(circle at top left, #451a03, #1c0a00 50%),
                        radial-gradient(circle at bottom right, #701a75, #14050a 60%);
    --card-bg: rgba(45, 17, 10, 0.88);
    --modal-bg: #1f0b05;
    --item-card-bg: rgba(67, 26, 15, 0.6);
    --item-card-hover: rgba(120, 53, 15, 0.7);
    --border-subtle: rgba(251, 146, 60, 0.25);
    --border-focus: rgba(249, 115, 22, 0.6);
    --primary: #ea580c;
    --primary-hover: #c2410c;
    --success: #eab308;
    --danger: #ef4444;
    --accent-gold: #facc15;
    --text-main: #fff7ed;
    --text-muted: #fdba74;
    --input-bg: rgba(28, 10, 0, 0.9);
    --input-color: #fff7ed;
    --key-bg: rgba(67, 26, 15, 0.75);
    --key-hover: rgba(120, 53, 15, 0.9);
    --key-text: #fff7ed;
    --shadow-main: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

body {
    background-color: var(--bg-color);
    background: var(--bg-body-gradient);
    color: var(--text-main);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#app {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.hidden {
    display: none !important;
}

/* Micro Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes pop {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.screen.active {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shake {
    animation: shake 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1, h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
    font-weight: 450;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    padding: 16px 36px;
    font-size: 1.25rem;
    margin-top: 25px;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px -5px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, var(--primary-hover), #4f46e5);
}

.primary-btn:active {
    transform: translateY(1px);
}

.secondary-btn {
    background: rgba(51, 65, 85, 0.7);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover {
    background: rgba(71, 85, 105, 0.9);
    transform: translateY(-2px);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 10px;
}

.lives-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-restart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.icon-restart-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-1px) rotate(-45deg);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.icon-restart-btn:active {
    transform: translateY(1px) scale(0.95);
}

.icon-restart-btn svg {
    display: block;
}

.lives {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--danger);
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.score {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--success);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.game-container {
    width: 100%;
    position: relative;
}

.difficulty-badge {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: white;
}

.difficulty-badge.easy { background: var(--success); }
.difficulty-badge.medium { background: #f59e0b; }
.difficulty-badge.hard { background: #f97316; }
.difficulty-badge.expert { background: var(--danger); }

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

input {
    width: 100%;
    padding: 20px;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: white;
    text-align: center;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

input.error-shake {
    animation: shake 0.4s ease;
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

input.success-pop {
    animation: pop 0.4s ease;
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.feedback-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 10;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.feedback-toast.correct {
    background: var(--success);
}

.feedback-toast.incorrect {
    background: var(--danger);
}

/* Virtual Keyboard */
.virtual-keyboard {
    margin-top: 24px;
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    gap: 7px;
    width: 100%;
}

.key-btn {
    flex: 1;
    min-width: 0;
    height: 56px;
    max-width: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgba(45, 58, 80, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
    color: var(--text-main);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.1s ease, box-shadow 0.08s ease, border-color 0.1s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
    padding: 0;
    touch-action: manipulation;
}

.key-btn:hover {
    background: linear-gradient(180deg, rgba(59, 75, 102, 0.95) 0%, rgba(40, 54, 77, 1) 100%);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.key-btn:active, .key-btn.pressed {
    transform: translateY(3px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.key-btn.action-key {
    flex: 1.5;
    max-width: 68px;
    background: linear-gradient(180deg, rgba(65, 80, 105, 0.9) 0%, rgba(45, 58, 80, 0.95) 100%);
    font-size: 1.05rem;
    border-radius: 11px;
}

.key-btn.enter-key {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.35) 0%, rgba(5, 150, 105, 0.45) 100%);
    color: #6ee7b7;
    border-color: rgba(52, 211, 153, 0.55);
    font-size: 1.4rem;
    box-shadow: 0 4px 0 rgba(4, 120, 87, 0.6);
}

.key-btn.enter-key:hover {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.5) 0%, rgba(5, 150, 105, 0.6) 100%);
    border-color: #34d399;
}

.key-btn.backspace-key {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.4) 100%);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.5);
    box-shadow: 0 4px 0 rgba(153, 27, 27, 0.6);
}

.key-btn.backspace-key:hover {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.55) 100%);
    border-color: #f87171;
}

.options-container {
    margin-top: 20px;
    width: 100%;
}
.options-container .instruction {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 600;
}
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.option-btn {
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    font-size: 1.3rem;
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.option-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.option-btn:disabled {
    cursor: default;
    opacity: 0.8;
}
.option-btn.correct {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: white;
}
.option-btn.wrong {
    background: var(--danger) !important;
    border-color: var(--danger) !important;
    color: white;
}

/* Voice, Word Bank, Starting Lives & Keyboard Selector Styling */
.voice-selector-container, .word-list-selector-container, .lives-selector-container, .keyboard-selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 15px 0 10px 0;
    width: 100%;
}

.voice-selector-container label, .word-list-selector-container label, .lives-selector-container label, .keyboard-selector-container label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.voice-select, .word-list-select {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-align-last: center; /* Center-align the text in select */
    -webkit-appearance: none; /* Hide default dropdown arrow for cleaner custom style */
    appearance: none;
}

.voice-select:hover, .word-list-select:hover {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.voice-select:focus, .word-list-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* ==========================================================================
   Modernized Landing Page Styles with Rich Graphics & Amber/Cosmic Aesthetics
   ========================================================================== */
.landing-screen {
    padding: 30px 24px 22px 24px !important;
    gap: 14px;
    max-width: 540px;
}

.landing-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: -4px;
}

.settings-circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.settings-circle-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--primary);
    transform: rotate(45deg) scale(1.08);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.settings-gear-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.mascot-badge-wrapper {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.mascot-ambient-glow {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.4) 0%, rgba(139, 92, 246, 0.2) 50%, transparent 70%);
    filter: blur(16px);
    z-index: 0;
    animation: pulseRing 3.5s ease-in-out infinite alternate;
}

.mascot-glow-ring {
    position: absolute;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.6), rgba(244, 114, 182, 0.6), rgba(99, 102, 241, 0.6));
    padding: 3px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 1;
    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mascot-crown-badge {
    position: absolute;
    top: -10px;
    right: -4px;
    font-size: 1.4rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transform: rotate(15deg);
    animation: floatCrown 2.2s ease-in-out infinite alternate;
    z-index: 3;
}

@keyframes floatCrown {
    from { transform: translateY(0) rotate(15deg); }
    to { transform: translateY(-4px) rotate(20deg); }
}

.start-mascot-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
    animation: mascotHover 2.2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes pulseRing {
    from { transform: scale(0.9); opacity: 0.5; }
    to { transform: scale(1.15); opacity: 0.9; }
}

.landing-title {
    font-size: 3.1rem !important;
    line-height: 1.1;
    margin-bottom: 4px !important;
    background: linear-gradient(135deg, #60a5fa, #c084fc, #f472b6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
    text-shadow: 0 0 30px rgba(192, 132, 252, 0.3);
}

.landing-subtitle {
    font-size: 1.02rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.landing-meta-pills-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 8px 0 10px 0;
}

.rich-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.rich-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pill-amber {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fde68a;
}
.pill-amber .pill-dot { background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }

.pill-indigo {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
}
.pill-indigo .pill-dot { background: #818cf8; box-shadow: 0 0 6px #818cf8; }

.pill-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #e9d5ff;
}
.pill-purple .pill-dot { background: #c084fc; box-shadow: 0 0 6px #c084fc; }

.landing-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 2px 0;
}

.landing-play-btn {
    width: 100%;
    max-width: 360px;
    padding: 15px 28px !important;
    font-size: 1.3rem !important;
    font-family: var(--font-display);
    font-weight: 800 !important;
    letter-spacing: 0.5px;
    border-radius: 16px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6) !important;
    background-size: 200% 200%;
    box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.5), 0 0 15px rgba(59, 130, 246, 0.3) !important;
    animation: gradientShift 4s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.landing-play-btn:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 16px 36px -4px rgba(99, 102, 241, 0.6), 0 0 20px rgba(59, 130, 246, 0.4) !important;
}

.btn-shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shineSweep 4s ease-in-out infinite;
}

@keyframes shineSweep {
    0%, 60% { left: -100%; }
    100% { left: 160%; }
}

.btn-play-icon {
    font-size: 1.15rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.landing-play-btn:hover .btn-play-icon {
    transform: translateX(3px);
}

/* Gamification Hub Cards Grid with Unique Gradients */
.landing-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

.hub-card {
    border-radius: 16px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.hub-card-stickers {
    border: 1px solid rgba(245, 158, 11, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(245, 158, 11, 0.1) 100%);
}
.hub-card-stickers:hover {
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.3);
}

.hub-card-wallpapers {
    border: 1px solid rgba(139, 92, 246, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(139, 92, 246, 0.1) 100%);
}
.hub-card-wallpapers:hover {
    border-color: #a855f7;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(168, 85, 247, 0.3);
}

.hub-card-misspelled {
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(239, 68, 68, 0.1) 100%);
}
.hub-card-misspelled:hover {
    border-color: #ef4444;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.hub-card-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    font-size: 1.45rem;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.hub-card-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.hub-card-badge-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}
.hub-card-badge-pill.highlight {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Compact Settings 2x2 Card */
.landing-settings-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 16px;
    width: 100%;
}

.settings-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.settings-card-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    width: 100%;
}

.setting-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.setting-field label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-left: 2px;
}

.compact-select {
    width: 100%;
    padding: 8px 10px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font-body);
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-select:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(51, 65, 85, 0.9);
}

.compact-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.compact-select option {
    background-color: #0f172a;
    color: white;
}

.landing-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0;
}

.admin-footer-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.75;
}

.admin-footer-btn:hover {
    opacity: 1;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Misspelled Words Studio Screen & Rich Cards
   ========================================================================== */
.misspelled-studio-screen {
    max-width: 660px !important;
    padding: 28px 24px !important;
    text-align: left;
    gap: 14px;
}

.misspelled-header-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin-bottom: 2px;
}

.misspelled-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25));
    border: 1px solid rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.misspelled-header-text h2 {
    font-size: 1.9rem;
    margin: 0 0 2px 0;
    text-align: left;
    background: linear-gradient(135deg, #f87171, #fbbf24, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.misspelled-header-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: left;
}

.misspelled-stats-row {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.stat-pill-label {
    color: var(--text-muted);
}

.stat-pill-val {
    color: #fde68a;
    font-weight: 800;
}

.practice-cta-pill {
    margin-left: auto;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
    cursor: pointer;
}

.practice-cta-pill:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

.practice-cta-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.misspelled-search-container {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.misspelled-search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

.search-icon-prefix {
    position: absolute;
    left: 12px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0.7;
}

.misspelled-search-input-wrap input {
    width: 100%;
    padding: 9px 34px 9px 34px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.misspelled-search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.9);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 4px 6px;
    cursor: pointer;
}

.misspelled-action-btns {
    display: flex;
    gap: 6px;
}

.secondary-btn-pill {
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.export-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}
.export-pill:hover {
    background: #10b981;
    color: white;
}

.clear-pill {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}
.clear-pill:hover {
    background: var(--danger);
    color: white;
}

/* Filter Chips */
.misspelled-filter-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
}

.filter-chip {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    font-family: var(--font-display);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgba(51, 65, 85, 0.8);
    color: var(--text-main);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Rich Word Mastery Cards Grid */
.misspelled-cards-wrapper {
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.misspelled-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.word-mastery-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    position: relative;
}

.word-mastery-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.card-word-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-word-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #fde68a;
    letter-spacing: 0.4px;
}

.card-pill-tags {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-diff {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 10px;
}
.badge-diff.diff-easy { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-diff.diff-medium { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-diff.diff-hard { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-diff.diff-expert { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.4); }

.badge-freq {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.audio-pulse-btn {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-display);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.audio-pulse-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.card-remove-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid transparent;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.card-remove-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

.card-def-block {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.5);
    padding: 8px 12px;
    border-radius: 10px;
    border-left: 3px solid #60a5fa;
}

.pos-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #93c5fd;
    margin-right: 4px;
}

.card-sentence-block {
    font-size: 0.82rem;
    font-style: italic;
    color: #94a3b8;
    padding-left: 6px;
}

.attempts-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.attempts-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.attempt-tag {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
    font-family: var(--font-display);
    font-size: 0.76rem;
    padding: 2px 8px;
    border-radius: 8px;
    text-decoration: line-through;
}

.misspelled-bottom-bar {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.back-main-btn {
    padding: 11px 26px !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
    background: rgba(51, 65, 85, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    box-shadow: none !important;
}

.back-main-btn:hover {
    background: rgba(71, 85, 105, 0.95) !important;
    border-color: white !important;
}

/* Mascot Feedback Reaction Popup */
.mascot-popup {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.mascot-popup-graphic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(239, 68, 68, 0.4);
    border: 4px solid var(--danger);
    background: #0f172a;
    animation: pop 0.35s ease;
}

.mascot-popup.correct .mascot-popup-graphic {
    border-color: var(--success);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(16, 185, 129, 0.5);
}

.mascot-popup-message {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
    background: rgba(30, 41, 59, 0.95);
    padding: 6px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Missed Words Card Review List */
.wrong-words-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.missed-word-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 10px;
}

.missed-word-text {
    font-family: var(--font-display);
    font-weight: 700;
    color: #f87171;
    font-size: 1.05rem;
}

.missed-word-def {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.3;
}

.speaker-btn-sm {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.speaker-btn-sm:hover {
    background: var(--primary);
    color: white;
}

/* Style select options background so they are readable in dark mode */
.voice-select option, .word-list-select option {
    background-color: var(--bg-color);
    color: white;
    padding: 10px;
}

/* Hint Buttons & Display Styling */
.tertiary-btn {
    background: rgba(30, 41, 59, 0.4);
    color: var(--text-muted);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.tertiary-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.15);
    color: var(--text-main);
    border-color: var(--primary);
    border-style: solid;
    transform: translateY(-1px);
}

.tertiary-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    border-style: dashed;
}

.hint-container {
    margin: 15px 0 25px 0;
    width: 100%;
}

.hint-display-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    margin-top: 15px;
    position: relative;
    text-align: left;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.35s ease forwards;
}

.hint-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hint-text {
    font-size: 0.98rem;
    color: var(--text-main);
    margin: 5px 0 0 0;
    line-height: 1.55;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Panel Styles */
.admin-controls-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

@media (min-width: 480px) {
    .admin-controls-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: end;
    }
}

.difficulty-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.difficulty-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.difficulty-tabs {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    width: 100%;
}

.diff-tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 8px;
    padding: 8px 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.diff-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.diff-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
}

.admin-search-bar-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.admin-words-list-wrapper {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    width: 100%;
}

.admin-words-list-header {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-words-list {
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
    width: 100%;
}

/* Custom Scrollbar for admin words list */
.admin-words-list::-webkit-scrollbar {
    width: 8px;
}
.admin-words-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.admin-words-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
.admin-words-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-word-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease;
}

.admin-word-row:last-child {
    border-bottom: none;
}

.admin-word-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.admin-word-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
    padding-right: 10px;
}

.admin-word-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-word-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-word-valid-spells {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-word-actions {
    display: flex;
    gap: 6px;
}

.action-btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(30, 41, 59, 0.6);
    color: white;
}

.action-btn-sm:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary);
}

.action-btn-sm.toggle-active-btn {
    border-color: rgba(255, 255, 255, 0.15);
}

.action-btn-sm.toggle-active-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.action-btn-sm.delete-btn {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.action-btn-sm.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

.admin-actions-card {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    text-align: left;
    margin-top: 20px;
    width: 100%;
}

.admin-actions-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-actions-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-actions-buttons button {
    flex: 1;
    min-width: 140px;
}

.no-words-message {
    padding: 30px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    width: 100%;
}

/* Restart Confirmation Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.2s ease forwards;
}

.modal-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-highlight {
    color: var(--success);
    font-weight: 700;
}

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

.modal-btn {
    flex: 1;
    margin: 0 !important;
    padding: 12px 20px;
    font-size: 1rem;
}

.modal-btn.danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 6px 16px -2px rgba(239, 68, 68, 0.4);
}

.modal-btn.danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    box-shadow: 0 8px 20px -2px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   Gamification Suite: Coin HUD, Flying Mascot, Sticker Shop, Wallpaper Gallery
   ========================================================================== */

/* Coin Badges and HUD */
.header-right-hud {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-hud {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    padding: 5px 12px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.coin-badge-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.coin-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    animation: pop 0.4s ease;
}

/* Flying Bee Mascot Cheer Overlay */
.flying-mascot-container {
    position: fixed;
    top: 25%;
    right: -250px;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flying-mascot-container.fly-in {
    animation: mascotFlyAcross 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes mascotFlyAcross {
    0% {
        transform: translateX(0) rotate(5deg) scale(0.7);
        opacity: 0;
    }
    15% {
        transform: translateX(-380px) rotate(-6deg) scale(1.05);
        opacity: 1;
    }
    30% {
        transform: translateX(-360px) rotate(4deg) scale(1);
        opacity: 1;
    }
    75% {
        transform: translateX(-360px) rotate(-3deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-750px) translateY(-80px) rotate(-15deg) scale(0.6);
        opacity: 0;
    }
}

.mascot-flight-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: mascotHover 0.8s ease-in-out infinite alternate;
}

@keyframes mascotHover {
    from { transform: translateY(0px) rotate(-2deg); }
    to { transform: translateY(-12px) rotate(3deg); }
}

.mascot-img {
    width: 95px;
    height: 95px;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5));
}

.mascot-speech-bubble {
    background: rgba(30, 41, 59, 0.95);
    color: white;
    border: 2px solid #fbbf24;
    border-radius: 16px;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.4);
    position: relative;
}

.mascot-speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 10px 6px 0;
    border-style: solid;
    border-color: transparent #fbbf24 transparent transparent;
}

/* Modals: Sticker Shop & Wallpaper Gallery */
.sticker-shop-card, .wallpaper-gallery-card {
    max-width: 620px !important;
    width: 95% !important;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 24px 20px !important;
    text-align: left;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
}

.shop-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-coins-pill {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 14px;
    padding: 4px 10px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 800;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

/* Shop Tabs */
.shop-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
}

.shop-tab-btn {
    flex: 1;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Shop Controls: Search & Category Chips */
.shop-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.sticker-search-input {
    width: 100% !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    text-align: left !important;
    border-radius: 10px !important;
    background: rgba(15, 23, 42, 0.8) !important;
}

.sticker-categories-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
    scrollbar-width: thin;
}

.sticker-cat-chip {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(30, 41, 59, 0.7);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sticker-cat-chip.active {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border-color: var(--primary);
}

/* Stickers Grid */
.stickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    overflow-y: auto;
    max-height: 52vh;
    padding-right: 4px;
    width: 100%;
}

.sticker-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sticker-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.sticker-item.rarity-Common { border-color: rgba(148, 163, 184, 0.2); }
.sticker-item.rarity-Rare { border-color: rgba(59, 130, 246, 0.4); }
.sticker-item.rarity-Epic { border-color: rgba(168, 85, 247, 0.45); }
.sticker-item.rarity-Legendary {
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.sticker-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin: 4px 0;
    min-height: 68px;
    width: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sticker-item:hover .sticker-icon {
    transform: scale(1.15) rotate(4deg);
}

.custom-sticker-art {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease, opacity 0.25s ease;
}

.sticker-item:hover .custom-sticker-art {
    transform: scale(1.15) rotate(-3deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}

/* Unowned Stickers: Progressive Blur & Lock Indicator */
.unowned-sticker .custom-sticker-art {
    filter: blur(6px) grayscale(30%) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
    opacity: 0.88;
}

.unowned-sticker:hover .custom-sticker-art {
    filter: blur(3.5px) grayscale(15%) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
    opacity: 0.98;
}

.sticker-icon-emoji {
    display: inline-block;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.unowned-sticker .sticker-icon-emoji {
    filter: blur(5.5px) grayscale(30%);
    opacity: 0.85;
}

.unowned-sticker:hover .sticker-icon-emoji {
    filter: blur(3px) grayscale(15%);
    opacity: 0.98;
}

.sticker-lock-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    font-size: 0.72rem;
    line-height: 1;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 3;
    transition: transform 0.2s ease;
}

.sticker-item:hover .sticker-lock-badge {
    transform: scale(1.1);
}

html[data-theme="light"] .sticker-lock-badge {
    background: rgba(248, 250, 252, 0.92);
    border-color: rgba(148, 163, 184, 0.4);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sticker-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sticker-rarity {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 6px;
}

.sticker-rarity.Common { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.sticker-rarity.Rare { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.sticker-rarity.Epic { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; }
.sticker-rarity.Legendary { background: rgba(245, 158, 11, 0.25); color: #fde047; }

.sticker-buy-btn {
    width: 100%;
    padding: 6px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sticker-buy-btn.buy {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.sticker-buy-btn.buy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.5);
}

.sticker-buy-btn.buy:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sticker-buy-btn.owned {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    cursor: default;
}

/* Wallpapers Grid & Tile Matrix */
/* Dedicated Full-Screen Fixed Viewport Wallpaper Background (Optimized for Mobile & Desktop) */
#app-wallpaper-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    z-index: -999;
    pointer-events: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: opacity;
}

body.has-custom-wallpaper {
    background-color: transparent !important;
}

/* Wallpapers Grid & Tile Matrix */
.wallpapers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 58vh;
    max-height: 58dvh;
    padding-right: 4px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.wallpaper-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.wallpaper-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wp-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    word-break: break-word;
}

.wp-status-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.wp-status-badge.unlocked {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.wp-status-badge.locked {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.wp-preview-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 190px;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #090d16;
}

.wp-artwork-layer {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    transition: filter 0.4s ease-out;
    transform: scale(1.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.wp-art-emoji-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 3px 8px;
    font-size: 0.95rem;
    z-index: 2;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.wp-preview-center-emoji {
    font-size: 2.8rem;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
    transition: filter 0.4s ease-out;
}

.wp-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    background: rgba(15, 23, 42, 0.25);
    pointer-events: none;
}

.wp-blur-chip {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.wp-progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 10px;
    transition: width 0.4s ease;
}

.wp-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 2px 0 6px 0;
    line-height: 1.4;
}

.wp-equip-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: normal;
    text-align: center;
    word-break: break-word;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.wp-equip-btn.equip {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
}

.wp-equip-btn.equipped {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.4);
    cursor: default;
}

.wp-equip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(51, 65, 85, 0.6);
    color: var(--text-muted);
}

/* ==========================================================================
   Game Settings Modal Dialog Styling
   ========================================================================== */
.settings-modal-card {
    max-width: 520px !important;
    width: 95%;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 22px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.settings-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 2px;
}

.setting-item-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    transition: all 0.2s ease;
}

.setting-item-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(30, 41, 59, 0.85);
}

.setting-item-info {
    flex: 1;
}

.setting-item-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
}

.setting-item-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.setting-item-control {
    min-width: 170px;
    max-width: 210px;
    flex-shrink: 0;
}

.modal-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.86rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.modal-select:hover {
    border-color: var(--primary);
}

.modal-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.settings-modal-footer {
    width: 100%;
    margin-top: 4px;
}

.save-settings-btn {
    width: 100%;
    padding: 12px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
    margin: 0 !important;
}

/* ==========================================================================
   PWA Install Button & Landing Actions
   ========================================================================== */
.landing-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #60a5fa;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.4);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pwa-install-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    border-color: #60a5fa;
    transform: translateY(-1px);
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.4);
}

.pwa-install-icon {
    font-size: 1rem;
}

.version-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s ease;
}

.version-pill-btn:hover {
    color: var(--text-main);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.version-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

/* ==========================================================================
   Version History & Changelog Modal
   ========================================================================== */
.version-modal-card {
    max-width: 540px !important;
    width: 95%;
    padding: 24px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 22px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.version-current-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.version-history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

.version-item-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    transition: all 0.2s ease;
}

.version-item-card.is-latest {
    border-color: rgba(96, 165, 250, 0.35);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(37, 99, 235, 0.08) 100%);
}

.version-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.version-item-tag {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.version-badge-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

.version-badge-tag.badge-new {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.version-badge-tag.badge-milestone {
    background: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.version-badge-tag.badge-feature {
    background: rgba(168, 85, 247, 0.25);
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.version-badge-tag.badge-initial {
    background: rgba(100, 116, 139, 0.25);
    color: #cbd5e1;
    border: 1px solid rgba(100, 116, 139, 0.4);
}

.version-item-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.version-item-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.version-highlights-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.version-highlights-list li {
    margin-bottom: 3px;
}

.version-modal-footer {
    width: 100%;
    margin-top: 4px;
}

.check-updates-btn {
    width: 100%;
    padding: 11px !important;
    font-size: 0.92rem !important;
    border-radius: 12px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ==========================================================================
   Floating Update Available Notification Toast
   ========================================================================== */
.update-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 480px;
    background: #0f172a;
    border: 1px solid rgba(96, 165, 250, 0.5);
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.25);
    z-index: 10000;
    animation: toastSlideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.update-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.update-toast-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.update-toast-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
}

.update-toast-sub {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.update-toast-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.update-toast-btn {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.84rem;
    padding: 7px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    white-space: nowrap;
}

.update-toast-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.6);
}

.update-dismiss-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.update-dismiss-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Daylight Honey (Light Theme) High-Legibility Polish
   ========================================================================== */
html[data-theme="light"] .landing-title {
    background: linear-gradient(135deg, #1e40af, #7c3aed, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

html[data-theme="light"] .landing-subtitle {
    color: #334155;
    font-weight: 600;
}

html[data-theme="light"] .pill-amber {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}
html[data-theme="light"] .pill-amber .pill-dot { background: #d97706; box-shadow: 0 0 6px #d97706; }

html[data-theme="light"] .pill-indigo {
    background: #e0e7ff;
    border-color: #a5b4fc;
    color: #3730a3;
}
html[data-theme="light"] .pill-indigo .pill-dot { background: #4f46e5; box-shadow: 0 0 6px #4f46e5; }

html[data-theme="light"] .pill-purple {
    background: #f3e8ff;
    border-color: #d8b4fe;
    color: #6b21a8;
}
html[data-theme="light"] .pill-purple .pill-dot { background: #9333ea; box-shadow: 0 0 6px #9333ea; }

html[data-theme="light"] .coin-badge {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

html[data-theme="light"] .settings-circle-btn {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pwa-install-btn {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

html[data-theme="light"] .hub-card {
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .hub-card-icon-wrap {
    background: #f1f5f9;
    box-shadow: none;
}

html[data-theme="light"] .hub-card-title {
    color: #0f172a;
}

html[data-theme="light"] .hub-card-badge-pill {
    background: #f1f5f9;
    color: #475569;
}

html[data-theme="light"] .hub-card-badge-pill.highlight {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

html[data-theme="light"] .version-pill-btn {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

html[data-theme="light"] .admin-footer-btn {
    color: #475569;
}
html[data-theme="light"] .admin-footer-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

html[data-theme="light"] .word-mastery-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .card-word-text {
    color: #0f172a;
}

html[data-theme="light"] .card-def-block {
    color: #1e293b;
    background: #f8fafc;
    border-left-color: #2563eb;
}

html[data-theme="light"] .pos-tag {
    color: #1d4ed8;
}

html[data-theme="light"] .card-sentence-block {
    color: #475569;
}

html[data-theme="light"] .badge-diff.diff-easy {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

html[data-theme="light"] .badge-diff.diff-medium {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

html[data-theme="light"] .badge-diff.diff-hard {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

html[data-theme="light"] .badge-diff.diff-expert {
    background: #f3e8ff;
    color: #6b21a8;
    border-color: #d8b4fe;
}

html[data-theme="light"] .badge-freq {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

html[data-theme="light"] .attempt-tag {
    background: #f1f5f9;
    color: #64748b;
    border-color: #cbd5e1;
}

html[data-theme="light"] .attempts-label {
    color: #64748b;
}

html[data-theme="light"] .stat-pill {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .stat-pill-label {
    color: #475569;
}

html[data-theme="light"] .stat-pill-val {
    color: #b45309;
}

html[data-theme="light"] .filter-chip {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

html[data-theme="light"] .filter-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
}

html[data-theme="light"] .filter-chip.active {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

html[data-theme="light"] .audio-pulse-btn {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

html[data-theme="light"] .card-remove-btn {
    background: #f1f5f9;
    color: #64748b;
}

html[data-theme="light"] .card-remove-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}

html[data-theme="light"] .key-btn {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #cbd5e1;
    box-shadow: 0 4px 0 #94a3b8, 0 2px 6px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .key-btn:hover {
    background: #f8fafc;
    border-color: #64748b;
    box-shadow: 0 5px 0 #64748b, 0 4px 10px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .key-btn.action-key {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
    box-shadow: 0 4px 0 #64748b;
}

html[data-theme="light"] .key-btn.enter-key {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 0 #047857;
}

html[data-theme="light"] .key-btn.backspace-key {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
    box-shadow: 0 4px 0 #f87171;
}

html[data-theme="light"] .setting-item-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .setting-item-title {
    color: #0f172a;
}

html[data-theme="light"] .setting-item-desc {
    color: #475569;
}

html[data-theme="light"] .modal-select {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

html[data-theme="light"] .modal-close-btn {
    color: #64748b;
}

html[data-theme="light"] .modal-close-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

html[data-theme="light"] .version-item-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .version-item-tag {
    color: #0f172a;
}

html[data-theme="light"] .version-item-title {
    color: #1e293b;
}

html[data-theme="light"] .version-highlights-list {
    color: #475569;
}

html[data-theme="light"] .sticker-item-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .sticker-name {
    color: #0f172a;
}

html[data-theme="light"] .sticker-price {
    color: #b45309;
}

html[data-theme="light"] .shop-coins-pill {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

html[data-theme="light"] .shop-tab-btn {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

html[data-theme="light"] .shop-tab-btn.active {
    background: #2563eb;
    color: #ffffff;
}

html[data-theme="light"] .sticker-cat-chip {
    background: #f1f5f9;
    color: #475569;
    border-color: #e2e8f0;
}

html[data-theme="light"] .sticker-cat-chip.active {
    background: #1e293b;
    color: #ffffff;
}

html[data-theme="light"] .sticker-search-input {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

html[data-theme="light"] .wallpaper-card {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .wp-title {
    color: #0f172a;
}

html[data-theme="light"] .wp-status-badge.locked {
    background: #fef3c7;
    color: #92400e;
}

html[data-theme="light"] .wp-equip-btn:disabled {
    background: #f1f5f9;
    color: #64748b;
}

html[data-theme="light"] .misspelled-search-input-wrap input {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

html[data-theme="light"] .secondary-btn-pill {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

html[data-theme="light"] .secondary-btn {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

html[data-theme="light"] .secondary-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

html[data-theme="light"] .hint-btn {
    background: #ffffff;
    color: #1e293b;
    border-color: #cbd5e1;
}

html[data-theme="light"] .hint-display {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

html[data-theme="light"] .hint-badge {
    background: #fef3c7;
    color: #92400e;
}

html[data-theme="light"] .hint-text {
    color: #1e293b;
}

html[data-theme="light"] .wrong-words-card {
    background: #ffffff;
    border-color: #fca5a5;
    color: #0f172a;
}

html[data-theme="light"] .wrong-words-card .word-title {
    color: #991b1b;
}

html[data-theme="light"] .wrong-words-card .word-def {
    color: #475569;
}

html[data-theme="light"] .update-toast {
    background: #ffffff;
    border-color: #bfdbfe;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .update-toast-title {
    color: #0f172a;
}

html[data-theme="light"] .update-toast-sub {
    color: #475569;
}

/* ==========================================================================
   Mobile Responsive Screen & UI Layout Optimizations
   ========================================================================== */
@media (max-width: 600px) {
    #app {
        padding: 10px 8px;
        max-width: 100%;
    }

    .screen {
        padding: 22px 14px !important;
        border-radius: 20px;
        gap: 12px;
    }

    /* Landing Screen Mobile Polish */
    .landing-top-bar {
        margin-bottom: 2px;
    }

    .coin-badge {
        padding: 4px 10px;
        font-size: 0.8rem;
    }

    .pwa-install-btn {
        padding: 4px 10px;
        font-size: 0.76rem;
    }

    .settings-circle-btn {
        width: 36px;
        height: 36px;
    }

    .start-mascot-logo {
        width: 76px;
        height: 76px;
    }

    .mascot-ambient-glow {
        width: 110px;
        height: 110px;
    }

    .landing-title {
        font-size: 2.35rem !important;
        letter-spacing: -0.02em;
    }

    .landing-subtitle {
        font-size: 0.88rem;
        margin-bottom: 2px;
    }

    .landing-meta-pills-row {
        gap: 6px;
        margin: 4px 0 8px 0;
    }

    .rich-pill {
        padding: 3px 10px;
        font-size: 0.74rem;
        gap: 4px;
    }

    .landing-play-btn {
        padding: 13px 22px !important;
        font-size: 1.15rem !important;
        border-radius: 14px !important;
        max-width: 100%;
    }

    .landing-hub-grid {
        gap: 6px;
    }

    .hub-card {
        padding: 10px 4px;
        border-radius: 14px;
        gap: 3px;
    }

    .hub-card-icon-wrap {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .hub-card-title {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .hub-card-badge-pill {
        font-size: 0.64rem;
        padding: 2px 6px;
    }

    /* In-Game Screen Mobile Polish */
    .game-header {
        width: 100%;
        margin-bottom: 6px;
    }

    .game-status {
        padding: 6px 10px;
        font-size: 0.82rem;
        gap: 6px;
    }

    .in-game-restart-btn {
        padding: 4px 8px;
        font-size: 0.78rem;
    }

    #word-display {
        font-size: 2.1rem;
        margin: 10px 0 8px 0;
        letter-spacing: 2px;
    }

    .input-wrapper {
        width: 100%;
        margin-bottom: 8px;
    }

    .input-wrapper input {
        height: 48px;
        font-size: 1.35rem;
        border-radius: 12px;
    }

    #action-buttons-container {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }

    .action-btn-pill, .hint-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 120px;
        padding: 8px 10px;
        font-size: 0.82rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .hint-display {
        padding: 8px 12px;
        font-size: 0.84rem;
        border-radius: 10px;
    }

    /* Virtual Keyboard Mobile Polish */
    .virtual-keyboard {
        margin-top: 16px;
        gap: 7px;
        width: 100%;
    }

    .keyboard-row {
        gap: 5px;
    }

    .key-btn {
        height: 50px;
        font-size: 1.22rem;
        font-weight: 800;
        border-radius: 9px;
        border: 1.5px solid rgba(255, 255, 255, 0.18);
        box-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
        max-width: 44px;
    }

    .key-btn.action-key {
        max-width: 58px;
        font-size: 0.95rem;
    }

    /* Misspelled Words Studio Screen Mobile Polish */
    .misspelled-studio-screen {
        padding: 18px 12px !important;
        gap: 12px;
    }

    .misspelled-badge-icon {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
        border-radius: 12px;
    }

    .misspelled-header-text h2 {
        font-size: 1.45rem;
    }

    .misspelled-header-text p {
        font-size: 0.82rem;
    }

    .misspelled-stats-row {
        gap: 6px;
    }

    .stat-pill {
        padding: 5px 9px;
        font-size: 0.76rem;
    }

    .practice-cta-pill {
        width: 100%;
        justify-content: center;
        padding: 9px 14px;
        font-size: 0.86rem;
        margin-top: 2px;
    }

    .misspelled-search-container {
        flex-direction: column;
        gap: 8px;
    }

    .misspelled-action-btns {
        width: 100%;
        display: flex;
        gap: 6px;
    }

    .secondary-btn-pill {
        flex: 1;
        justify-content: center;
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .word-mastery-card {
        padding: 12px 12px;
        border-radius: 14px;
        gap: 6px;
    }

    .card-word-text {
        font-size: 1.1rem;
    }

    .audio-pulse-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }

    .card-def-block {
        font-size: 0.82rem;
        padding: 6px 10px;
    }

    .card-sentence-block {
        font-size: 0.78rem;
    }

    /* Modal Cards Mobile Polish */
    .modal-card {
        width: 95% !important;
        max-height: 88vh;
        padding: 18px 14px !important;
        border-radius: 18px;
    }

    .modal-title {
        font-size: 1.3rem !important;
    }

    .setting-item-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 14px;
    }

    .setting-item-control {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }

    .modal-select {
        width: 100%;
        padding: 8px 10px;
        font-size: 0.88rem;
    }

    .stickers-grid {
        grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
        gap: 8px;
        max-height: 50vh;
    }

    .wallpapers-grid {
        max-height: calc(86dvh - 120px);
        max-height: calc(86vh - 120px);
        gap: 12px;
        padding-right: 2px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .wallpaper-gallery-card {
        max-height: 92dvh !important;
        max-height: 92vh !important;
        padding: 18px 14px 14px 14px !important;
        border-radius: 20px !important;
    }

    .wallpaper-card {
        padding: 12px 14px;
        border-radius: 14px;
        gap: 10px;
    }

    .wallpaper-card-header {
        align-items: flex-start;
        gap: 6px;
    }

    .wp-title {
        font-size: 0.98rem;
        line-height: 1.25;
    }

    .wp-status-badge {
        font-size: 0.7rem;
        padding: 2px 7px;
        border-radius: 6px;
        white-space: normal;
        text-align: right;
    }

    .wp-preview-box {
        aspect-ratio: 16 / 9;
        min-height: 120px;
        max-height: 165px;
        border-radius: 12px;
    }

    .wp-art-emoji-badge {
        bottom: 6px;
        right: 6px;
        font-size: 0.85rem;
        padding: 2px 6px;
    }

    .wp-blur-chip {
        font-size: 0.74rem;
        padding: 3px 10px;
        border-radius: 14px;
    }

    .wp-desc {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .wp-equip-btn {
        font-size: 0.86rem;
        padding: 10px 12px;
        min-height: 42px;
        border-radius: 10px;
    }

    .version-history-list {
        max-height: 52vh;
    }

    /* Floating Toast */
    .update-toast {
        width: 95%;
        bottom: 12px;
        padding: 10px 12px;
        border-radius: 14px;
    }

    .update-toast-icon-wrap {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .update-toast-title {
        font-size: 0.86rem;
    }

    .update-toast-sub {
        font-size: 0.72rem;
    }

    .update-toast-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
}

/* Extra small mobile screens (<= 380px) */
@media (max-width: 380px) {
    .landing-title {
        font-size: 2.05rem !important;
    }

    .rich-pill {
        font-size: 0.7rem;
        padding: 2px 7px;
    }

    .hub-card-title {
        font-size: 0.72rem;
    }

    .hub-card-badge-pill {
        font-size: 0.58rem;
        padding: 1px 4px;
    }

    .key-btn {
        height: 45px;
        font-size: 1.1rem;
        border-radius: 7px;
        max-width: 38px;
    }

    .key-btn.action-key {
        font-size: 0.85rem;
        max-width: 50px;
    }

    .stat-pill {
        font-size: 0.72rem;
        padding: 4px 7px;
    }

    .wallpaper-gallery-card {
        padding: 14px 10px 10px 10px !important;
        border-radius: 16px !important;
    }

    .wallpaper-card {
        padding: 10px;
        gap: 8px;
    }

    .wp-title {
        font-size: 0.92rem;
    }

    .wp-status-badge {
        font-size: 0.65rem;
        padding: 2px 5px;
    }

    .wp-preview-box {
        min-height: 100px;
        max-height: 140px;
    }

    .wp-equip-btn {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-height: 38px;
    }
}



