/*
Theme Name: English Quest - 英语闯关岛
Theme URI: https://englishquest.com
Author: Yutong Team
Author URI: https://englishquest.com
Description: 英语闯关岛 WordPress 主题 - 每天玩5分钟，轻松积累英语词汇，通过游戏来学习英语。包含猜单词、打地鼠、连连看、消消乐等趣味游戏。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yutong
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Tags: education, learning, english, game, children, colorful, responsive, custom-menu, custom-logo
*/

/* =====================================================
   CSS Variables & Root Settings
   ===================================================== */
:root {
    /* Primary Colors */
    --eq-primary: #22c55e;
    --eq-primary-dark: #16a34a;
    --eq-primary-light: #86efac;
    --eq-secondary: #8b5cf6;
    --eq-secondary-dark: #7c3aed;
    --eq-secondary-light: #c4b5fd;
    
    /* Accent Colors */
    --eq-orange: #f97316;
    --eq-blue: #3b82f6;
    --eq-pink: #ec4899;
    --eq-red: #ef4444;
    --eq-yellow: #eab308;
    --eq-teal: #14b8a6;
    
    /* Neutral Colors */
    --eq-white: #ffffff;
    --eq-gray-50: #f9fafb;
    --eq-gray-100: #f3f4f6;
    --eq-gray-200: #e5e7eb;
    --eq-gray-300: #d1d5db;
    --eq-gray-400: #9ca3af;
    --eq-gray-500: #6b7280;
    --eq-gray-600: #4b5563;
    --eq-gray-700: #374151;
    --eq-gray-800: #1f2937;
    --eq-gray-900: #111827;
    
    /* Background Gradients */
    --eq-sky-gradient: linear-gradient(180deg, #87CEEB 0%, #E0F4FF 50%, #ffffff 100%);
    --eq-card-green: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    --eq-card-purple: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    --eq-card-orange: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    --eq-card-blue: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    
    /* Typography */
    --eq-font-main: 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --eq-font-heading: 'Fredoka One', 'Nunito', sans-serif;
    
    /* Spacing */
    --eq-radius-sm: 8px;
    --eq-radius-md: 12px;
    --eq-radius-lg: 20px;
    --eq-radius-xl: 28px;
    --eq-radius-full: 9999px;
    
    /* Shadows */
    --eq-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --eq-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --eq-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --eq-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* =====================================================
   Reset & Base Styles
   ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--eq-font-main);
    color: var(--eq-gray-800);
    background-color: var(--eq-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

/* =====================================================
   Header / Navigation
   ===================================================== */
.eq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--eq-shadow-sm);
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 登录用户有 WordPress 管理栏时，header 下移避开 */
body.admin-bar .eq-header {
    top: 46px;
}

.eq-header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eq-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.15rem;
}

.eq-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--eq-teal) 0%, var(--eq-blue) 100%);
    border-radius: var(--eq-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.eq-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: var(--eq-radius-md);
    flex-shrink: 0;
}

.eq-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.eq-logo-text .en {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.eq-logo-text .cn {
    font-size: 0.65rem;
    color: var(--eq-gray-400);
}

/* Main Navigation */
/* ---- Primary Navigation Container ---- */
.eq-nav-container {
    /* flex container handled by .eq-header-inner */
}

.eq-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Nav items (top-level <li>) */
.eq-nav-item {
    position: relative;
    list-style: none;
}

/* Nav links (top-level <a>) */
.eq-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--eq-radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eq-gray-700);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.eq-nav-link:hover,
.eq-nav-link:focus,
.eq-nav .current-menu-item > .eq-nav-link,
.eq-nav .current-menu-parent > .eq-nav-link {
    color: var(--eq-primary);
    background: var(--eq-primary-light);
}

.eq-nav .current-menu-item > .eq-nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--eq-primary);
    border-radius: 2px;
}

/* Dropdown arrow */
.eq-nav-arrow {
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

/* =====================================================
   Dropdown Submenus
   ===================================================== */
.eq-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    padding: 8px 0;
    margin: 6px 0 0;
    background: var(--eq-white);
    border-radius: var(--eq-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 999;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show submenu on hover */
.eq-nav-item--has-children:hover > .eq-submenu,
.eq-nav-item--has-children:focus-within > .eq-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Rotate arrow on hover */
.eq-nav-item--has-children:hover > .eq-nav-link .eq-nav-arrow {
    transform: rotate(180deg);
}

/* Submenu items */
.eq-submenu .eq-nav-item {
    display: block;
    position: relative;
}

.eq-submenu .eq-nav-link {
    display: block;
    padding: 10px 20px;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eq-gray-700);
    background: transparent;
}

.eq-submenu .eq-nav-link:hover,
.eq-submenu .eq-nav-link:focus {
    color: var(--eq-primary);
    background: var(--eq-gray-50);
}

/* Nested submenu (level 2) */
.eq-submenu .eq-submenu {
    top: -8px;
    left: 100%;
    transform: none;
    margin: 0 0 0 4px;
}

.eq-nav-item--has-children .eq-nav-item--has-children:hover > .eq-submenu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Divider line at top of submenu for visual polish */
.eq-submenu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--eq-white);
}

.eq-submenu .eq-submenu::before {
    display: none;
}

/* =====================================================
   RPG Group Dropdown (New Navigation)
   ===================================================== */
.eq-nav--rpg {
    gap: 2px;
}

.eq-nav-link--group {
    cursor: pointer;
    font-weight: 700;
}

/* RPG Dropdown Menu */
.eq-nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px 0;
    margin: 6px 0 0;
    background: var(--eq-white);
    border-radius: var(--eq-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    z-index: 999;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.eq-nav-item--has-dropdown:hover > .eq-nav-dropdown,
.eq-nav-item--has-dropdown:focus-within > .eq-nav-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

.eq-nav-item--has-dropdown:hover > .eq-nav-link .eq-nav-arrow {
    transform: rotate(180deg);
}

.eq-nav-dropdown li {
    list-style: none;
    display: block;
}

.eq-nav-dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--eq-gray-700);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.eq-nav-dropdown li a:hover,
.eq-nav-dropdown li a:focus {
    color: var(--eq-primary);
    background: var(--eq-gray-50);
}

/* Dropdown arrow pointer */
.eq-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 24px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--eq-white);
}

/* =====================================================
   Mobile Navigation Groups
   ===================================================== */
.eq-mobile-group-title {
    padding: 16px 16px 8px;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--eq-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eq-mobile-group-title:first-child {
    padding-top: 8px;
}

/* Header Actions */
.eq-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eq-search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eq-gray-100);
    color: var(--eq-gray-600);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.eq-search-btn:hover {
    background: var(--eq-gray-200);
}

.eq-btn-login {
    padding: 8px 20px;
    border-radius: var(--eq-radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--eq-gray-700);
    background: transparent;
    border: 2px solid var(--eq-gray-300);
    transition: all 0.3s ease;
}

.eq-btn-login:hover {
    border-color: var(--eq-primary);
    color: var(--eq-primary);
}

.eq-btn-signup {
    padding: 8px 20px;
    border-radius: var(--eq-radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    background: linear-gradient(135deg, var(--eq-primary) 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(34,197,94,0.35);
    transition: all 0.3s ease;
}

.eq-btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34,197,94,0.45);
}

/* =====================================================
   RPG User Dropdown (Header)
   ===================================================== */
.eq-user-dropdown {
    position: relative;
}

.eq-user-rpg-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 10px;
    border-radius: var(--eq-radius-full);
    background: linear-gradient(135deg, var(--eq-primary) 0%, #10b981 100%);
    font-size: 0.78rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34,197,94,0.35);
    transition: all 0.25s ease;
    border: 1.5px solid rgba(255,255,255,0.25);
    cursor: pointer;
    white-space: nowrap;
}

.eq-user-rpg-badge:hover,
.eq-user-rpg-badge[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34,197,94,0.45);
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.eq-dd-arrow {
    transition: transform 0.25s ease;
}

.eq-user-rpg-badge[aria-expanded="true"] .eq-dd-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Panel */
.eq-user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #ffffff;
    border-radius: var(--eq-radius-xl);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.08);
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.22s ease;
    z-index: 1100;
    border: 1px solid rgba(0,0,0,0.06);
}

.eq-user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: rotate(45deg);
}

.eq-user-dropdown.open .eq-user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Rows */
.eq-dd-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.eq-dd-row:last-of-type {
    border-bottom: none;
    margin-bottom: 4px;
}

.eq-dd-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.eq-dd-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
}

.eq-dd-label {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.eq-dd-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

.eq-dd-xp-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 3px;
}

.eq-dd-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Dropdown Profile Link */
.eq-dd-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 0;
    margin-top: 4px;
    border-radius: var(--eq-radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--eq-primary);
    text-decoration: none;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    transition: all 0.2s ease;
}

.eq-dd-profile-link:hover {
    background: linear-gradient(135deg, #d1fae5 0%, #dcfce7 100%);
    color: #059669;
}

/* Level badge inside dropdown trigger */
.eq-rpg-level {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Mobile Menu Toggle */
.eq-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--eq-gray-700);
}

/* Mobile Navigation Overlay */
.eq-mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.eq-mobile-nav-overlay.open {
    display: block;
    opacity: 1;
}

.eq-mobile-nav-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,0.12);
    padding: 60px 0 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}
.eq-mobile-nav-overlay.open .eq-mobile-nav-content {
    transform: translateX(0);
}

.eq-mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--eq-gray-100);
    border: none;
    font-size: 1.2rem;
    color: var(--eq-gray-600);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.eq-mobile-close:hover {
    background: var(--eq-gray-200);
}

/* Mobile menu items (flat + dropdown) */
.eq-mobile-menu-list {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    list-style: none;
    margin: 0;
}

.eq-mobile-menu-list .eq-nav-item {
    border-bottom: 1px solid var(--eq-gray-100);
}

.eq-mobile-menu-list .eq-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--eq-gray-800);
    text-decoration: none;
    border-radius: var(--eq-radius-md);
    transition: all 0.2s ease;
}

.eq-mobile-menu-list .eq-nav-link:hover,
.eq-mobile-menu-list .current-menu-item > .eq-nav-link {
    color: var(--eq-primary);
    background: var(--eq-primary-light);
}

.eq-mobile-menu-list .eq-nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Mobile submenus: expanded by JS toggle */
.eq-mobile-menu-list .eq-submenu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
    margin: 0;
    padding: 0 0 0 16px;
    background: var(--eq-gray-50);
    min-width: 0;
    transform: none;
}

.eq-mobile-menu-list .eq-submenu.open {
    display: block;
}

.eq-mobile-menu-list .eq-submenu .eq-nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 12px;
}

.eq-mobile-menu-list .eq-submenu::before {
    display: none;
}

/* Mobile auth section */
.eq-mobile-auth {
    padding: 20px 24px;
    margin-top: 12px;
    border-top: 1px solid var(--eq-gray-100);
}

/* Mobile Bottom Nav (for mobile view) */
.eq-bottom-nav {
    display: none;
}

/* =====================================================
   Hero Section (Homepage)
   ===================================================== */
.eq-hero {
    background: var(--eq-sky-gradient);
    min-height: 480px;
    position: relative;
    overflow: visible;
    padding: 40px 24px 0;
    margin-top: 70px;
}

/* 登录用户有管理栏时额外偏移 */
body.admin-bar .eq-hero {
    margin-top: 116px;
}

.eq-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 50px;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60px 30px at 10% bottom, transparent 98%, white) left top / 51% 100% no-repeat,
        radial-gradient(ellipse 60px 30px at 90% bottom, transparent 98%, white) right top / 51% 100% no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 50' preserveAspectRatio='none'%3E%3Cpath d='M0,25 Q150,5 300,20 T600,15 T900,22 T1200,12 L1200,50 L0,50 Z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.eq-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.eq-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.eq-hero-content {
    animation: fadeInLeft 0.8s ease;
}

.eq-hero-title {
    font-family: var(--eq-font-heading);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--eq-gray-900);
    margin-bottom: 12px;
}

.eq-hero-title span {
    color: var(--eq-blue);
}

.eq-hero-subtitle {
    font-size: 1.15rem;
    color: var(--eq-gray-600);
    margin-bottom: 28px;
    font-weight: 500;
}

.eq-hero-tags {
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.eq-tag-pill {
    padding: 8px 18px;
    border-radius: var(--eq-radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eq-tag-pill.green { background: #dcfce7; color: #15803d; }
.eq-tag-pill.purple { background: #f3e8ff; color: #7c3aed; }
.eq-tag-pill.orange { background: #ffedd5; color: #c2410c; }

.eq-btn-start {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;
    border-radius: var(--eq-radius-full);
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--eq-orange) 0%, #fb923c 100%);
    box-shadow: 0 8px 24px rgba(249,115,22,0.4);
    transition: all 0.3s ease;
}

.eq-btn-start:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 30px rgba(249,115,22,0.5);
}

.eq-btn-start .icon {
    font-size: 1.4rem;
}

/* Hero Illustration */
.eq-hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}

.eq-hero-scene {
    width: 100%;
    max-width: 550px;
}

/* Decorative elements in hero */
.eq-float-badge {
    position: absolute;
    padding: 10px 18px;
    border-radius: var(--eq-radius-lg);
    background: white;
    box-shadow: var(--eq-shadow-lg);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
/*  display: none;*/ /* 隐藏首页 banner 浮动徽章 */}

.eq-float-badge.badge-1 { top: 10%; left: 0; color: #15803d; animation-delay: 0s; }
.eq-float-badge.badge-2 { top: 30%; right: 5%; color: #7c3aed; animation-delay: 0.5s; }
.eq-float-badge.badge-3 { bottom: 20%; right: 0%; color: #c2410c; animation-delay: 1s; }

/* =====================================================
   Feature Cards Section (Homepage)
   ===================================================== */
.eq-section {
    padding: 32px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.eq-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.eq-feature-card {
    border-radius: var(--eq-radius-xl);
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.04);
}

.eq-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--eq-shadow-xl);
}

.eq-feature-card.green { background: var(--eq-card-green); }
.eq-feature-card.purple { background: var(--eq-card-purple); }
.eq-feature-card.orange { background: var(--eq-card-orange); }
.eq-feature-card.blue { background: var(--eq-card-blue); }

.eq-feature-label {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.eq-feature-card.green .eq-feature-label { color: #15803d; }
.eq-feature-card.purple .eq-feature-label { color: #7c3aed; }
.eq-feature-card.orange .eq-feature-label { color: #c2410c; }
.eq-feature-card.blue .eq-feature-label { color: #1d4ed8; }

.eq-feature-desc {
    font-size: 0.9rem;
    color: var(--eq-gray-500);
    margin-bottom: 8px;
    font-weight: 500;
}

.eq-feature-meta {
    font-size: 0.82rem;
    color: var(--eq-gray-400);
    margin-bottom: 20px;
    font-weight: 600;
}

.eq-feature-card {
    display: flex;
    flex-direction: column;
}

.eq-feature-img {
    width: 100%;
    max-width: 140px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 12px;
    align-self: flex-end;
}

.eq-feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--eq-radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.eq-feature-card.green .eq-feature-btn { background: linear-gradient(135deg, #22c55e, #10b981); }
.eq-feature-card.purple .eq-feature-btn { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.eq-feature-card.orange .eq-feature-btn { background: linear-gradient(135deg, #f97316, #fb923c); }
.eq-feature-card.blue .eq-feature-btn { background: linear-gradient(135deg, #3b82f6, #60a5fa); }

.eq-feature-btn:hover {
    transform: scale(1.05);
}

/* =====================================================
   RPG Quest Card Badges
   ===================================================== */
.eq-card-quest-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.08);
    border-radius: var(--eq-radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: inherit;
    opacity: 0.8;
}

.eq-card-icon-area {
    font-size: 3rem;
    text-align: center;
    padding: 12px 0;
    line-height: 1.2;
}

.eq-card-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 8px 0 12px;
    overflow: hidden;
}

.eq-card-progress-bar {
    display: block;
    height: 100%;
    background: rgba(255,255,255,0.7);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Coming Soon Card */
.eq-feature-card.coming-soon {
    opacity: 0.7;
    filter: grayscale(30%);
    pointer-events: none;
}

.eq-feature-card.coming-soon::after {
    content: '🚧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    opacity: 0.3;
}

.eq-feature-card.coming-soon .eq-feature-btn {
    pointer-events: auto;
}

.eq-feature-btn--locked {
    cursor: not-allowed !important;
    opacity: 0.5;
    background: var(--eq-gray-300) !important;
    color: var(--eq-gray-500) !important;
    box-shadow: none !important;
}

.eq-feature-btn--locked:hover {
    transform: none !important;
}

/* Feature Grid 2-col variant */
.eq-feature-grid--2col {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Headers */
.eq-section-header {
    text-align: center;
    margin-bottom: 36px;
}

.eq-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--eq-gray-800);
    margin-bottom: 8px;
}

.eq-section-subtitle {
    font-size: 1rem;
    color: var(--eq-gray-500);
    margin: 0;
}

/* =====================================================
   Ranking & Stats Section (Homepage)
   ===================================================== */
.eq-stats-row {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    margin-top: 48px;
}

.eq-stats-section {
    padding-bottom: 42px;
}

.eq-ranking-panel,
.eq-join-panel {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 24px 28px;
    box-shadow: var(--eq-shadow-sm);
}

.eq-panel-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--eq-gray-900);
    margin-bottom: 18px;
}

/* Ranking List */
.eq-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.eq-ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--eq-radius-md);
    transition: background 0.3s ease;
}

.eq-ranking-item:hover { background: var(--eq-gray-50); }

.eq-rank-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.eq-rank-num.gold { background: #fef3c7; color: #d97706; }
.eq-rank-num.silver { background: #f3f4f6; color: #6b7280; }
.eq-rank-num.bronze { background: #ffedd5; color: #c2410c; }

.eq-rank-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--eq-primary-light), var(--eq-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.eq-rank-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.92rem;
}

.eq-rank-score {
    font-weight: 800;
    color: var(--eq-primary);
    font-size: 0.92rem;
}

.eq-view-all-link {
    text-align: center;
    margin-top: 16px;
    color: var(--eq-blue);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.eq-view-all-link:hover { text-decoration: underline; }

/* Join/Stats Panel */
.eq-join-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    text-align: center;
}

.eq-stat-item .stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.eq-stat-item .stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--eq-gray-900);
}

.eq-stat-item .stat-value.green { color: var(--eq-primary); }
.eq-stat-item .stat-value.purple { color: var(--eq-secondary); }
.eq-stat-item .stat-value.orange { color: var(--eq-orange); }
.eq-stat-item .stat-value.blue { color: var(--eq-blue); }

.eq-stat-item .stat-label {
    font-size: 0.82rem;
    color: var(--eq-gray-500);
    font-weight: 600;
}

.eq-quote {
    margin-top: 20px;
    padding: 16px;
    background: var(--eq-gray-50);
    border-radius: var(--eq-radius-md);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--eq-gray-600);
    text-align: center;
}

/* =====================================================
   Footer Features Bar
   ===================================================== */
.eq-footer-bar {
    background: white;
    border-top: 1px solid var(--eq-gray-100);
    padding: 24px 24px;
}

.eq-footer-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.eq-footer-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.eq-footer-feature .icon {
    width: 44px;
    height: 44px;
    border-radius: var(--eq-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.eq-footer-feature .icon.green { background: #dcfce7; }
.eq-footer-feature .icon.purple { background: #f3e8ff; }
.eq-footer-feature .icon.orange { background: #ffedd5; }
.eq-footer-feature .icon.blue { background: #dbeafe; }

.eq-footer-feature h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--eq-gray-800);
    margin-bottom: 4px;
}

.eq-footer-feature p {
    font-size: 0.82rem;
    color: var(--eq-gray-500);
}

/* =====================================================
   Page Layout
   ===================================================== */
.eq-page-wrapper {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

.eq-page-header {
    background: transparent;
    padding: 40px 24px 32px;
    text-align: center;
}

/* Global Page Banner (in header, shared across sub-pages) */
.eq-global-banner {
    position: relative;
    min-height: 400px;
    background: var(--eq-sky-gradient);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 56px;
    margin-bottom: -40px;
    margin-top: 70px; /* 清除固定头部高度 */
    /* All four corners rounded — image is clipped inside */
    border-radius: 32px;
}

/* 登录用户有管理栏时，banner 再下移 46px */
body.admin-bar .eq-global-banner {
    margin-top: 116px;
}

.eq-global-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.eq-global-banner-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 960px;
    width: 100%;
    padding-left: 24px;
}

/* Breadcrumb inside banner */
.eq-banner-breadcrumb {
    margin-bottom: 10px;
}
.eq-banner-breadcrumb .eq-breadcrumb {
    justify-content: flex-start;
    font-size: 0.85rem;
    color: var(--eq-gray-600);
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 6px 18px;
    display: inline-flex;
}
.eq-banner-breadcrumb .eq-breadcrumb a {
    color: var(--eq-primary);
    text-decoration: none;
}
.eq-banner-breadcrumb .eq-breadcrumb a:hover {
    text-decoration: underline;
}
.eq-banner-breadcrumb .eq-breadcrumb .separator {
    margin: 0 8px;
    color: var(--eq-gray-400);
}

.eq-banner-title {
    font-family: var(--eq-font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--eq-gray-900);
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.eq-banner-subtitle {
    font-size: 0.92rem;
    color: var(--eq-gray-600);
    margin: 0;
}

.eq-page-title {
    font-family: var(--eq-font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--eq-gray-900);
    margin-bottom: 8px;
}

.eq-page-subtitle {
    font-size: 1.1rem;
    color: var(--eq-gray-600);
}

.eq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--eq-gray-500);
}

.eq-breadcrumb a { color: var(--eq-blue); font-weight: 600; }
.eq-breadcrumb a:hover { text-decoration: underline; }

/* =====================================================
   Oxford Tree Level Cards
   ===================================================== */
.eq-level-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 40px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.eq-level-card {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 24px;
    text-align: center;
    box-shadow: var(--eq-shadow-sm);
    border: 1px solid var(--eq-gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.eq-level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--eq-shadow-lg);
}

.eq-level-card.locked {
    opacity: 0.65;
}

.eq-level-card.locked .lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.eq-level-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.eq-level-card:nth-child(1) .eq-level-name { color: #22c55e; }
.eq-level-card:nth-child(2) .eq-level-name { color: #3b82f6; }
.eq-level-card:nth-child(3) .eq-level-name { color: #8b5cf6; }
.eq-level-card:nth-child(4) .eq-level-name { color: #f97316; }
.eq-level-card:nth-child(5) .eq-level-name { color: #ec4899; }
.eq-level-card:nth-child(6) .eq-level-name { color: #14b8a6; }
.eq-level-card:nth-child(7) .eq-level-name { color: #6366f1; }
.eq-level-card:nth-child(8) .eq-level-name { color: #ef4444; }
.eq-level-card:nth-child(9) .eq-level-name { color: #eab308; }

.eq-level-word-count {
    font-size: 0.85rem;
    color: var(--eq-gray-500);
    margin-bottom: 16px;
}

.eq-level-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 16px;
}

.eq-progress-bar {
    width: 100%;
    height: 10px;
    background: var(--eq-gray-200);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.eq-progress-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #22c55e, #10b981);
    transition: width 0.5s ease;
}

.eq-level-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.eq-level-status.completed { color: var(--eq-primary); }
.eq-level-status.in-progress { color: var(--eq-blue); }
.eq-level-status.locked-text { color: var(--eq-gray-400); }

/* =====================================================
   Quiz / Challenge Page
   ===================================================== */
.eq-quiz-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

.eq-quiz-main {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 32px;
    box-shadow: var(--eq-shadow-md);
}

.eq-quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.eq-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--eq-radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--eq-gray-700);
    background: var(--eq-gray-100);
    transition: all 0.3s ease;
}

.eq-back-btn:hover { background: var(--eq-gray-200); }

.eq-question-counter {
    font-weight: 700;
    color: var(--eq-gray-700);
}

.eq-listen-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--eq-radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--eq-blue);
    background: #dbeafe;
    transition: all 0.3s ease;
    cursor: pointer;
}

.eq-listen-btn:hover { background: #bfdbfe; transform: scale(1.03); }

/* Question Progress */
.eq-question-progress {
    margin-bottom: 28px;
}

.eq-progress-track {
    width: 100%;
    height: 8px;
    background: var(--eq-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.eq-progress-fill-question {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #10b981);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Quiz Image Area */
.quiz-image-area {
    background: #f0fdf4;
    border-radius: var(--eq-radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 28px;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-image-area img {
    max-height: 180px;
    object-fit: contain;
}

/* Quiz Question Text */
.quiz-question-text {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--eq-gray-900);
    margin-bottom: 24px;
}

/* Answer Options */
.eq-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 28px;
}

.eq-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--eq-gray-200);
    border-radius: var(--eq-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.eq-option:hover {
    border-color: var(--eq-primary-light);
    background: #f0fdf4;
}

.eq-option.selected {
    border-color: var(--eq-primary);
    background: #dcfce7;
}

.eq-option.correct {
    border-color: var(--eq-primary);
    background: #dcfce7;
}

.eq-option.wrong {
    border-color: var(--eq-red);
    background: #fee2e2;
}

.eq-option-letter {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: var(--eq-gray-100);
    color: var(--eq-gray-700);
    transition: all 0.3s ease;
}

.eq-option.selected .eq-option-letter,
.eq-option.correct .eq-option-letter {
    background: var(--eq-primary);
    color: white;
}

.eq-option.wrong .eq-option-letter {
    background: var(--eq-red);
    color: white;
}

.eq-option-text {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--eq-gray-800);
}

/* Quiz Actions */
.eq-quiz-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eq-action-group {
    display: flex;
    gap: 10px;
}

.eq-btn-outline {
    padding: 10px 22px;
    border-radius: var(--eq-radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--eq-gray-300);
    color: var(--eq-gray-700);
    background: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.eq-btn-outline:hover { border-color: var(--eq-primary); color: var(--eq-primary); }

.eq-btn-primary {
    padding: 12px 32px;
    border-radius: var(--eq-radius-full);
    font-weight: 800;
    font-size: 1rem;
    color: white;
    background: linear-gradient(135deg, var(--eq-primary), #10b981);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(34,197,94,0.3);
    transition: all 0.3s ease;
}

.eq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(34,197,94,0.4);
}

/* Quiz Sidebar */
.eq-quiz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eq-sidebar-card {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 20px;
    box-shadow: var(--eq-shadow-sm);
}

.sidebar-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--eq-gray-500);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.sidebar-stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--eq-gray-600);
}

.sidebar-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--eq-gray-900);
}

/* Streak Calendar */
.streak-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.streak-day {
    aspect-ratio: 1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--eq-gray-400);
    background: var(--eq-gray-100);
}

.streak-day.done {
    background: #22c55e;
    color: white;
}

.streak-day.today {
    border: 2px dashed var(--eq-orange);
    color: var(--eq-orange);
    background: white;
}

/* Words List */
.words-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.word-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--eq-radius-sm);
    transition: background 0.3s ease;
}

.word-item:hover { background: var(--eq-gray-50); }

.word-item-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--eq-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--eq-gray-100);
}

.word-item-text {
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.word-item-cn {
    color: var(--eq-gray-400);
    font-size: 0.82rem;
}

.word-item-check {
    color: var(--eq-primary);
    font-size: 1.1rem;
}

.word-item-lock {
    color: var(--eq-gray-300);
    font-size: 1rem;
}

/* Feedback Banner */
.eq-feedback-banner {
    margin-top: 20px;
    padding: 16px 24px;
    border-radius: var(--eq-radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideUp 0.4s ease;
}

.eq-feedback-banner.success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.eq-feedback-banner.error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.feedback-icon {
    font-size: 1.8rem;
}

.feedback-text strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 2px;
}

.feedback-text span {
    font-size: 0.85rem;
    color: var(--eq-gray-600);
}

.feedback-mascot {
    margin-left: auto;
    font-size: 2.5rem;
}

/* =====================================================
   Game Modules Common Styles
   ===================================================== */
.eq-game-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.eq-game-card {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 32px;
    box-shadow: var(--eq-shadow-lg);
}

.eq-game-header {
    text-align: center;
    margin-bottom: 28px;
}

.eq-game-header h2 {
    font-family: var(--eq-font-heading);
    font-size: 1.6rem;
    color: var(--eq-gray-900);
    margin-bottom: 8px;
}

.eq-game-header p {
    color: var(--eq-gray-500);
    font-size: 0.95rem;
}

.eq-game-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.score-item {
    text-align: center;
}

.score-item .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--eq-primary);
}

.score-item .label {
    font-size: 0.8rem;
    color: var(--eq-gray-500);
    font-weight: 600;
}

/* Wordle Specific */
.wordle-board {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
}

.wordle-row {
    display: flex;
    gap: 6px;
}

.wordle-tile {
    width: 52px;
    height: 52px;
    border: 2px solid var(--eq-gray-300);
    border-radius: var(--eq-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background: white;
}

.wordle-tile.filled {
    border-color: var(--eq-gray-400);
    animation: popIn 0.1s ease;
}

.wordle-tile.correct {
    background: #22c55e;
    border-color: #22c55e;
    color: white;
    animation: flipIn 0.5s ease;
}

.wordle-tile.present {
    background: #eab308;
    border-color: #eab308;
    color: white;
    animation: flipIn 0.5s ease;
}

.wordle-tile.absent {
    background: var(--eq-gray-400);
    border-color: var(--eq-gray-400);
    color: white;
    animation: flipIn 0.5s ease;
}

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.wordle-keyboard-row {
    display: flex;
    gap: 5px;
}

.wordle-key {
    min-width: 36px;
    height: 52px;
    padding: 0 10px;
    border-radius: var(--eq-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--eq-gray-200);
    color: var(--eq-gray-700);
    transition: all 0.15s ease;
    user-select: none;
}

.wordle-key:hover { background: var(--eq-gray-300); }
.wordle-key.wide { min-width: 58px; font-size: 0.75rem; }

.wordle-key.correct { background: #22c55e; color: white; }
.wordle-key.present { background: #eab308; color: white; }
.wordle-key.absent { background: var(--eq-gray-500); color: white; }

/* Whack-a-Mole / Listening Game */
.whack-game-area {
    background: linear-gradient(180deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
    border-radius: var(--eq-radius-lg);
    padding: 32px;
    min-height: 360px;
    position: relative;
    margin-bottom: 24px;
}

.whack-holes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 420px;
    margin: 0 auto;
}

.whack-hole {
    aspect-ratio: 1;
    background: #92400e;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    box-shadow: inset 0 -8px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}

.whack-mole {
    position: absolute;
    bottom: -80%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 75%;
    height: 80%;
    background: #a16207;
    border-radius: 50% 50% 45% 45%;
    transition: bottom 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-transform: capitalize;
}

.whack-hole.active .whack-mole {
    bottom: 15%;
}

.whack-hole.hit .whack-mole {
    background: var(--eq-red);
}

.whack-instruction {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 16px;
}

.whack-speaker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.whack-speaker:hover { transform: scale(1.1); }
.whack-speaker.playing { animation: pulse 0.6s ease infinite; }

/* Match Game (连连看) */
.match-game-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.match-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.match-column-title {
    text-align: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--eq-gray-500);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--eq-gray-200);
}

.match-card {
    padding: 14px 20px;
    border: 2px solid var(--eq-gray-200);
    border-radius: var(--eq-radius-md);
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    user-select: none;
}

.match-card:hover { border-color: var(--eq-blue); background: #eff6ff; }
.match-card.selected { 
    border-color: var(--eq-blue); 
    background: #dbeafe; 
    box-shadow: 0 0 0 3px rgba(59,130,246,0.2);
}
.match-card.matched { 
    border-color: var(--eq-primary); 
    background: #dcfce7; 
    opacity: 0.6;
    pointer-events: none;
}
.match-card.wrong {
    border-color: var(--eq-red);
    background: #fee2e2;
    animation: shake 0.4s ease;
}

/* Synonym Crush (消消乐) */
.crush-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-width: 450px;
    margin: 0 auto 24px;
}

.crush-cell {
    aspect-ratio: 1;
    border-radius: var(--eq-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    user-select: none;
    text-transform: capitalize;
}

.crush-cell:hover { transform: scale(1.08); }

.crush-cell.c1 { background: #dcfce7; color: #15803d; }
.crush-cell.c2 { background: #dbeafe; color: #1d4ed8; }
.crush-cell.c3 { background: #fef3c7; color: #b45309; }
.crush-cell.c4 { background: #f3e8ff; color: #7c3aed; }
.crush-cell.c5 { background: #ffe4e6; color: #be185d; }
.crush-cell.c6 { background: #ccfbf1; color: #0f766e; }

.crush-cell.selected { 
    border-color: var(--eq-gray-800); 
    transform: scale(1.1);
    box-shadow: var(--eq-shadow-lg);
}

.crush-cell.matched {
    animation: crushPop 0.4s ease forwards;
    opacity: 0;
    transform: scale(0);
}

/* Daily Challenge / Check-in */
.daily-challenge-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

.checkin-calendar {
    background: white;
    border-radius: var(--eq-radius-xl);
    padding: 32px;
    box-shadow: var(--eq-shadow-lg);
    text-align: center;
}

.checkin-title {
    font-family: var(--eq-font-heading);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.checkin-streak-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.streak-fire { font-size: 2rem; }
.streak-count { font-size: 2rem; font-weight: 800; color: var(--eq-orange); }
.streak-label { font-size: 0.9rem; color: var(--eq-gray-500); font-weight: 600; }

.checkin-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.checkin-day {
    aspect-ratio: 0.85;
    border-radius: var(--eq-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--eq-gray-200);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.checkin-day:hover { border-color: var(--eq-primary); }

.checkin-day .day-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--eq-gray-700);
}

.checkin-day .day-label {
    font-size: 0.62rem;
    color: var(--eq-gray-400);
    font-weight: 600;
    margin-top: 2px;
}

.checkin-day.checked {
    background: #f0fdf4;
    border-color: #86efac;
    color: var(--eq-gray-700);
}

.checkin-day.checked .day-num,
.checkin-day.checked .day-label { color: #15803d; }

.checkin-day.today {
    border-color: var(--eq-primary);
    border-width: 3px;
    background: #f0fdf4;
}

.checkin-day.today .day-num { color: var(--eq-primary); }

.checkin-day .check-icon {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--eq-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.checkin-rewards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.reward-item {
    text-align: center;
    padding: 12px 20px;
    border-radius: var(--eq-radius-md);
    background: var(--eq-gray-50);
}

.reward-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
.reward-item .value { font-weight: 800; font-size: 1.1rem; color: var(--eq-gray-800); }
.reward-item .label { font-size: 0.75rem; color: var(--eq-gray-500); }

.btn-checkin {
    padding: 14px 48px;
    border-radius: var(--eq-radius-full);
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--eq-primary), #10b981);
    box-shadow: 0 6px 20px rgba(34,197,94,0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-checkin:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(34,197,94,0.45);
}

/* =====================================================
   Rankings Page
   ===================================================== */
.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ranking-tab {
    padding: 10px 22px;
    border-radius: var(--eq-radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--eq-gray-200);
    color: var(--eq-gray-600);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab.active {
    border-color: var(--eq-primary);
    background: #dcfce7;
    color: #15803d;
}

.podium-container {
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
    border-radius: var(--eq-radius-xl);
    padding: 40px 24px 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.podium-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--eq-shadow-md);
}

.podium-crown { font-size: 1.6rem; margin-bottom: -8px; z-index: 2; }

.podium-name {
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 4px;
}

.podium-score {
    font-weight: 800;
    font-size: 1.2rem;
}

.podium-block {
    width: 80px;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
}

.podium-block.gold-block { height: 100px; background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.podium-block.silver-block { height: 70px; background: linear-gradient(180deg, #d1d5db, #9ca3af); }
.podium-block.bronze-block { height: 50px; background: linear-gradient(180deg, #fb923c, #ea580c); }

/* Full ranking table */
.full-ranking-table {
    background: white;
    border-radius: var(--eq-radius-xl);
    overflow: hidden;
    box-shadow: var(--eq-shadow-sm);
}

.full-ranking-item {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--eq-gray-100);
    transition: background 0.3s ease;
}

.full-ranking-item:hover { background: var(--eq-gray-50); }
.full-ranking-item:last-child { border-bottom: none; }

.fr-rank {
    width: 40px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--eq-gray-400);
    flex-shrink: 0;
}

.fr-rank.top1 { color: #f59e0b; }
.fr-rank.top2 { color: #9ca3af; }
.fr-rank.top3 { color: #ea580c; }

.fr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
}

.fr-info { flex: 1; }
.fr-name { font-weight: 700; font-size: 0.95rem; }
.fr-streak { font-size: 0.8rem; color: var(--eq-gray-400); font-weight: 600; }

.fr-score { font-weight: 800; font-size: 1.1rem; color: var(--eq-primary); margin-right: 16px; }
.fr-change { font-size: 0.85rem; font-weight: 700; }
.fr-change.up { color: var(--eq-primary); }
.fr-change.down { color: var(--eq-red); }

/* My Rank Card */
.my-rank-card {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: var(--eq-radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.my-rank-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--eq-primary);
}

.my-rank-info { flex: 1; }
.my-rank-name { font-weight: 800; font-size: 1.1rem; }
.my-rank-detail { font-size: 0.85rem; color: var(--eq-gray-600); font-weight: 600; }

.my-rank-motivation {
    font-size: 0.85rem;
    color: var(--eq-gray-500);
    font-style: italic;
    max-width: 160px;
    line-height: 1.4;
}

.my-rank-mascot { font-size: 3rem; }

/* =====================================================
   Profile Page
   ===================================================== */
.profile-header {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #fef3c7 100%);
    padding: 40px 24px;
    border-radius: 0 0 var(--eq-radius-xl) var(--eq-radius-xl);
}

.profile-header-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar-large {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--eq-primary-light), var(--eq-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    border: 4px solid white;
    box-shadow: var(--eq-shadow-md);
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--eq-radius-full);
    background: var(--eq-primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-member-since {
    font-size: 0.85rem;
    color: var(--eq-gray-500);
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.profile-stat-card {
    background: white;
    border-radius: var(--eq-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--eq-shadow-sm);
}

.profile-stat-card .icon { font-size: 1.8rem; margin-bottom: 6px; }
.profile-stat-card .value { font-size: 1.3rem; font-weight: 800; }
.profile-stat-card .label { font-size: 0.78rem; color: var(--eq-gray-500); font-weight: 600; }

/* Badges section */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.badge-item {
    text-align: center;
    padding: 16px 10px;
    border-radius: var(--eq-radius-lg);
    background: white;
    box-shadow: var(--eq-shadow-sm);
}

.badge-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.badge-icon-circle.unlocked { background: #dcfce7; }
.badge-icon-circle.locked { background: var(--eq-gray-100); opacity: 0.5; }

.badge-name { font-size: 0.8rem; font-weight: 700; }
.badge-desc { font-size: 0.68rem; color: var(--eq-gray-400); margin-top: 2px; }

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: white;
    border-radius: var(--eq-radius-md);
    box-shadow: var(--eq-shadow-sm);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.activity-text { flex: 1; font-weight: 600; font-size: 0.92rem; }
.activity-points { font-weight: 800; color: var(--eq-primary); font-size: 0.92rem; }
.activity-time { font-size: 0.78rem; color: var(--eq-gray-400); }

/* Profile settings links */
.settings-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: white;
    border-radius: var(--eq-radius-md);
    box-shadow: var(--eq-shadow-sm);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.settings-link:hover {
    transform: translateX(4px);
    box-shadow: var(--eq-shadow-md);
}

.settings-link .arrow { color: var(--eq-gray-400); }

/* =====================================================
   Animations
   ===================================================== */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes popIn {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes flipIn {
    0% { transform: rotateX(90deg); }
    100% { transform: rotateX(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes crushPop {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes molePop {
    0% { bottom: -80%; }
    100% { bottom: 15%; }
}

/* =====================================================
   Responsive Design
   ===================================================== */

/* ---- Tablet: ≤1024px ---- */
@media (max-width: 1024px) {
    .eq-feature-grid { grid-template-columns: repeat(2, 1fr); }
    .eq-level-grid { grid-template-columns: repeat(3, 1fr); }
    .eq-quiz-container { grid-template-columns: 1fr; }
    .eq-quiz-sidebar { order: -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .eq-footer-bar-inner { grid-template-columns: repeat(2, 1fr); }
    .eq-global-banner { min-height: 240px; padding: 32px 24px 48px; }
    .eq-hero-inner { gap: 32px; }
}

/* ---- Mobile: ≤768px ---- */
@media (max-width: 768px) {
    /* ---- Navigation ---- */
    .eq-nav-container { display: none; }
    .eq-header-actions .eq-btn-login,
    .eq-header-actions .eq-btn-signup { display: none; }
    .eq-mobile-toggle { display: flex; }

    /* ---- Hero ---- */
    .eq-hero { padding: 32px 16px 0; min-height: auto; }
    .eq-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
    .eq-hero-title { font-size: 2rem; }
    .eq-hero-subtitle { font-size: 1rem; margin-bottom: 20px; }
    .eq-hero-tags { justify-content: center; gap: 8px; }
    .eq-hero-illustration { display: none; }
    .eq-float-badge { display: none; }
    .eq-btn-start { padding: 14px 40px; font-size: 1.1rem; }

    /* ---- Sections ---- */
    .eq-section { padding: 24px 16px; }
    .eq-section-title { font-size: 1.4rem; }
    .eq-section-subtitle { font-size: 0.9rem; }
    .eq-section-header { margin-bottom: 24px; }

    /* ---- Feature Cards ---- */
    .eq-feature-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .eq-feature-card { padding: 18px 14px; }
    .eq-feature-label { font-size: 1rem; }
    .eq-feature-desc { font-size: 0.8rem; }
    .eq-card-icon-area { font-size: 2.2rem; padding: 8px 0; }
    .eq-feature-btn { padding: 8px 18px; font-size: 0.82rem; }
    .eq-feature-grid--2col { max-width: 100%; }

    /* ---- Stats & Ranking ---- */
    .eq-stats-row { grid-template-columns: 1fr; gap: 16px; }
    .eq-join-stats { grid-template-columns: repeat(2, 1fr); }
    .eq-ranking-panel,
    .eq-join-panel { padding: 20px; }

    /* ---- Level Grid ---- */
    .eq-level-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px 16px; }

    /* ---- Quiz ---- */
    .eq-options-grid { grid-template-columns: 1fr; }
    .eq-quiz-main { padding: 20px 16px; }
    .quiz-image-area { padding: 24px; min-height: 160px; }
    .eq-quiz-actions { flex-direction: column; gap: 12px; }
    .eq-quiz-actions .eq-btn-outline,
    .eq-quiz-actions .eq-btn-primary { width: 100%; justify-content: center; }
    .eq-action-group { display: flex; gap: 8px; }
    .eq-action-group .eq-btn-outline { flex: 1; }

    /* ---- Quiz Sidebar ---- */
    .eq-quiz-sidebar { grid-template-columns: 1fr 1fr; gap: 12px; order: -1; }

    /* ---- Games ---- */
    .match-game-area { grid-template-columns: 1fr; }
    .crush-grid { grid-template-columns: repeat(4, 1fr); }
    .whack-holes { grid-template-columns: repeat(3, 1fr); gap: 12px; }

    /* ---- Rankings ---- */
    .podium-container { padding: 24px 12px 32px; gap: 8px; }
    .podium-avatar { width: 56px; height: 56px; }
    .podium-block { width: 60px; }
    .podium-block.gold-block { height: 80px; }
    .podium-block.silver-block { height: 56px; }
    .podium-block.bronze-block { height: 40px; }

    /* ---- Profile ---- */
    .profile-header-inner { flex-direction: column; text-align: center; }
    .profile-stats-row { grid-template-columns: repeat(2, 1fr); }
    .badges-grid { grid-template-columns: repeat(3, 1fr); }

    /* ---- Footer ---- */
    .eq-footer-bar-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .eq-footer-bar { padding: 20px 16px 100px; }
    .eq-footer-feature { flex-direction: column; align-items: center; text-align: center; }
    .eq-site-footer { padding-bottom: 100px; }

    /* ---- Global Banner ---- */
    .eq-global-banner { min-height: 200px; padding: 32px 16px 48px; border-radius: 20px; }
    .eq-banner-title { font-size: 1.4rem; }
    .eq-banner-subtitle { font-size: 0.85rem; }

    /* ---- Bottom Mobile Navigation ---- */
    .eq-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
        z-index: 1000;
        padding: 8px 0 env(safe-area-inset-bottom, 8px);
        border-top: 1px solid var(--eq-gray-100);
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 6px 0;
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--eq-gray-400);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .bottom-nav-item.active { color: var(--eq-primary); }
    .bottom-nav-item:active { transform: scale(0.92); }
    .bottom-nav-item .nav-icon { font-size: 1.4rem; line-height: 1; }

    /* ---- RPG User Dropdown Mobile ---- */
    .eq-user-dropdown-menu { right: -60px; width: 240px; }
    .eq-user-rpg-badge { padding: 4px 10px; font-size: 0.7rem; }
}

/* ---- Small Mobile: ≤480px ---- */
@media (max-width: 480px) {
    /* ---- Typography ---- */
    .eq-hero-title { font-size: 1.6rem; }
    .eq-btn-start { padding: 12px 32px; font-size: 1rem; }

    /* ---- Feature Cards ---- */
    .eq-feature-grid { grid-template-columns: 1fr; }
    .eq-card-quest-badge { font-size: 0.65rem; padding: 2px 8px; }

    /* ---- Level Grid ---- */
    .eq-level-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .eq-level-card { padding: 16px 12px; }
    .eq-level-name { font-size: 1rem; }
    .eq-level-img-wrapper { height: 60px; }

    /* ---- Quiz ---- */
    .quiz-question-text { font-size: 1.15rem; }
    .eq-option { padding: 12px 14px; }
    .eq-option-text { font-size: 0.92rem; }
    .eq-option-letter { width: 28px; height: 28px; font-size: 0.8rem; }

    /* ---- Games ---- */
    .wordle-tile { width: 44px; height: 44px; font-size: 1.1rem; }
    .wordle-key { min-width: 26px; height: 40px; font-size: 0.68rem; padding: 0 6px; }
    .crush-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
    .crush-cell { font-size: 0.72rem; }

    /* ---- Daily / Check-in ---- */
    .checkin-calendar { padding: 24px 16px; }
    .checkin-days { gap: 6px; }
    .checkin-day .day-num { font-size: 0.95rem; }
    .checkin-streak-info { gap: 10px; }
    .streak-fire { font-size: 1.6rem; }
    .streak-count { font-size: 1.6rem; }
    .btn-checkin { padding: 12px 36px; font-size: 1rem; }
    .checkin-rewards { flex-direction: column; gap: 8px; }

    /* ---- Quick Challenges ---- */
    .quick-challenges { grid-template-columns: 1fr; gap: 12px; }
    .quick-card { padding: 20px 16px; }

    /* ---- Quiz Sidebar ---- */
    .eq-quiz-sidebar { grid-template-columns: 1fr; }

    /* ---- Footer ---- */
    .eq-footer-bar-inner { grid-template-columns: 1fr; }
    .eq-footer-feature { flex-direction: row; text-align: left; }
    .eq-footer-feature p { display: none; }
    .eq-footer-feature .icon { width: 36px; height: 36px; font-size: 1rem; }

    /* ---- Quiz Actions ---- */
    .eq-quiz-actions { flex-direction: column; }
    .eq-quiz-actions .eq-btn-primary,
    .eq-quiz-actions .eq-btn-outline { width: 100%; justify-content: center; }
    .eq-quiz-nav { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .question-counter { width: 100%; text-align: center; order: -1; margin-bottom: 4px; }
}

/* ---- Large Desktop (extra wide layout) ---- */
@media (min-width: 1440px) {
    .eq-hero-title { font-size: 3.6rem; }
    .eq-section { max-width: 1320px; }
    .eq-feature-grid { gap: 28px; }
}

/* =====================================================
   Utility Classes
   ===================================================== */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.hidden { display: none !important; }

/* Loading spinner */
.eq-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--eq-gray-200);
    border-top-color: var(--eq-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
