/* SIKHUR — Premium Design System 2026 — see index.html for full app */

@font-face {
    font-family: 'Rabar';
    src: url('assets/fonts/Rabar.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-primary: #090B14;
    --bg-surface: #111522;
    --bg-card: #181D2D;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(255, 255, 255, 0.14);
    --blue: #2EC5FF;
    --purple: #7C4DFF;
    --pink: #FF4D88;
    --gold: #FFC83D;
    --green: #00D084;
    --danger: #FF4B5C;
    --orange: #FF9F43;
    --text-primary: #F5F7FA;
    --text-secondary: rgba(245, 247, 250, 0.65);
    --text-muted: rgba(245, 247, 250, 0.38);
    --gradient-blue: linear-gradient(135deg, #2EC5FF 0%, #7C4DFF 100%);
    --gradient-purple: linear-gradient(135deg, #7C4DFF 0%, #FF4D88 100%);
    --gradient-pink: linear-gradient(135deg, #FF4D88 0%, #FF4B5C 100%);
    --gradient-gold: linear-gradient(135deg, #FFC83D 0%, #FF9F43 100%);
    --gradient-green: linear-gradient(135deg, #00D084 0%, #2EC5FF 100%);
    --gradient-spy: linear-gradient(135deg, rgba(255, 75, 92, 0.25) 0%, rgba(255, 77, 136, 0.18) 100%);
    --gradient-civilian: linear-gradient(135deg, rgba(46, 197, 255, 0.22) 0%, rgba(124, 77, 255, 0.16) 100%);
    --gradient-word: linear-gradient(135deg, rgba(124, 77, 255, 0.22) 0%, rgba(255, 77, 136, 0.14) 100%);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);
    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.04);
    --glow-blue: 0 0 40px rgba(46, 197, 255, 0.4);
    --glow-purple: 0 0 40px rgba(124, 77, 255, 0.4);
    --glow-pink: 0 0 40px rgba(255, 77, 136, 0.4);
    --glow-gold: 0 0 40px rgba(255, 200, 61, 0.4);
    --glow-green: 0 0 40px rgba(0, 208, 132, 0.35);
    --app-max-width: 440px;
    --nav-height: 80px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 200ms;
    --duration-normal: 300ms;
    --duration-slow: 400ms;
    --font-display: 'Plus Jakarta Sans', 'Manrope', 'Inter', 'Noto Sans Arabic', 'Rabar', sans-serif;
    --font-body: 'Inter', 'Manrope', 'Noto Sans Arabic', 'Rabar', sans-serif;
    --font-kurdish: 'Rabar', 'Noto Sans Arabic', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { width: 100%; min-height: 100%; overflow-x: hidden; -webkit-text-size-adjust: 100%; touch-action: manipulation; font-size: 15px; }
body { font-family: var(--font-kurdish); background: var(--bg-primary); color: var(--text-primary); direction: rtl; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
input, textarea, button { font-family: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

.ambient-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 77, 255, 0.08) 0%, transparent 60%); }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.55; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-blue { width: 420px; height: 420px; background: radial-gradient(circle, rgba(46, 197, 255, 0.28) 0%, transparent 70%); top: -12%; right: -18%; }
.orb-purple { width: 380px; height: 380px; background: radial-gradient(circle, rgba(124, 77, 255, 0.22) 0%, transparent 70%); bottom: 18%; left: -22%; animation-delay: -5s; }
.orb-pink { width: 320px; height: 320px; background: radial-gradient(circle, rgba(255, 77, 136, 0.16) 0%, transparent 70%); top: 48%; right: 28%; animation-delay: -9s; }
.orb-gold { width: 260px; height: 260px; background: radial-gradient(circle, rgba(255, 200, 61, 0.12) 0%, transparent 70%); bottom: 5%; right: 10%; animation-delay: -3s; }
.noise-overlay { position: absolute; inset: 0; opacity: 0.035; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.grid-overlay { position: absolute; inset: 0; opacity: 0.025; background-image: linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px); background-size: 40px 40px; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(25px, -18px) scale(1.1); } }

.app-shell { position: relative; z-index: 1; max-width: var(--app-max-width); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 20px 20px calc(var(--nav-height) + 28px); overflow-y: auto; overflow-x: hidden; }
.page { animation: pageEnter var(--duration-normal) var(--ease-out); }
.page.active { display: block; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.creator-toast-link { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 10000; }
.creator-toast { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(17, 21, 34, 0.9); backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); box-shadow: var(--shadow-md); animation: toastIn 0.5s var(--ease-out), toastOut 0.4s var(--ease-out) 4.5s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); visibility: hidden; } }

.hero { text-align: center; margin-bottom: 28px; padding-top: 8px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; margin-bottom: 16px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); background: rgba(255,255,255,0.04); border: 1px solid var(--border); backdrop-filter: blur(12px); animation: pageEnter var(--duration-normal) var(--ease-out); }
.hero-eyebrow svg { width: 14px; height: 14px; color: var(--gold); }
.hero-mascot-wrap { position: relative; display: inline-block; margin-bottom: 24px; }
.hero-mascot { width: 148px; height: 148px; border-radius: 38px; object-fit: cover; display: block; box-shadow: var(--shadow-md); }
@keyframes heroGlow { 0% { opacity: 0.5; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1.08); } }
@keyframes ringPulse { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.04); } }
.hero-title { font-family: var(--font-display); font-size: 3rem; font-weight: 800; background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.65; max-width: 300px; margin: 0 auto; }

.glass-card { background: var(--glass); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.06); transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), border-color var(--duration-normal) var(--ease-out); position: relative; overflow: hidden; }
.glass-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,0.06) 0%, transparent 42%, rgba(46,197,255,0.04) 100%); pointer-events: none; border-radius: inherit; opacity: 0.85; }
.glass-card > * { position: relative; z-index: 1; }
.glass-card:hover { border-color: var(--border-glow); }
.gradient-border { position: relative; }
.gradient-border::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(46,197,255,0.3), rgba(124,77,255,0.2), rgba(255,77,136,0.15)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

.home-section { margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-heading { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.section-heading svg { width: 18px; height: 18px; color: var(--gold); }
.section-link { font-size: 0.82rem; color: var(--blue); font-weight: 600; padding: 4px 8px; border-radius: 8px; transition: background var(--duration-fast); }
.section-link:hover { background: rgba(46, 197, 255, 0.1); }

.continue-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; background: linear-gradient(135deg, rgba(46, 197, 255, 0.08) 0%, rgba(124, 77, 255, 0.06) 100%); animation: pageEnter var(--duration-normal) var(--ease-out); }
.continue-card:hover { transform: translateY(-3px); box-shadow: var(--glow-blue), var(--shadow-md); }
.continue-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gradient-blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-blue); flex-shrink: 0; }
.continue-icon svg { width: 24px; height: 24px; color: white; }
.continue-content { flex: 1; }
.continue-label { font-size: 0.78rem; color: var(--text-muted); display: block; }
.continue-title { font-size: 1rem; font-weight: 700; }
.continue-arrow svg { width: 20px; height: 20px; opacity: 0.5; }

.daily-challenge-preview { display: flex; align-items: center; gap: 14px; padding: 18px; cursor: pointer; transition: all var(--duration-normal) var(--ease-out); }
.daily-challenge-preview:hover { transform: translateY(-2px); box-shadow: var(--glow-gold), var(--shadow-md); }
.daily-challenge-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.daily-challenge-icon svg { width: 26px; height: 26px; color: white; }
.daily-challenge-content { flex: 1; }
.daily-challenge-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.daily-challenge-desc { font-size: 0.8rem; color: var(--text-secondary); }
.daily-challenge-badge { padding: 5px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; background: var(--gradient-gold); color: #1a1a1a; }
.daily-challenge-preview.completed { opacity: 0.75; border-color: rgba(0, 208, 132, 0.3); }

.achievements-preview { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; scrollbar-width: none; }
.achievements-preview::-webkit-scrollbar { display: none; }
.achievement-preview-item { flex-shrink: 0; width: 80px; padding: 14px 10px; text-align: center; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border); transition: all var(--duration-normal) var(--ease-out); }
.achievement-preview-item.unlocked { border-color: rgba(255, 200, 61, 0.35); background: rgba(255, 200, 61, 0.06); }
.achievement-preview-item.locked { opacity: 0.35; filter: grayscale(1); }
.achievement-preview-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.achievement-preview-icon svg { width: 18px; height: 18px; color: #1a1a1a; }
.achievement-preview-name { font-size: 0.65rem; color: var(--text-secondary); line-height: 1.3; }

.recent-activity-list { display: flex; flex-direction: column; gap: 8px; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border); animation: pageEnter var(--duration-normal) var(--ease-out) backwards; }
.activity-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.activity-icon svg { width: 20px; height: 20px; color: white; }
.activity-content { flex: 1; }
.activity-title { font-size: 0.88rem; font-weight: 600; }
.activity-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.activity-empty { text-align: center; padding: 32px 20px; color: var(--text-muted); font-size: 0.9rem; }
.activity-empty svg { width: 40px; height: 40px; margin-bottom: 12px; opacity: 0.3; display: block; margin-inline: auto; }

.action-cards { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.action-card { display: flex; align-items: center; gap: 16px; padding: 24px 22px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: linear-gradient(160deg, rgba(24, 29, 45, 0.92) 0%, rgba(17, 21, 34, 0.75) 100%); backdrop-filter: blur(32px); cursor: pointer; text-align: right; transition: all var(--duration-normal) var(--ease-out); position: relative; overflow: hidden; min-height: 96px; box-shadow: var(--shadow-float); }
.action-card-glow { position: absolute; width: 140px; height: 140px; border-radius: 50%; filter: blur(40px); opacity: 0; transition: opacity var(--duration-normal); pointer-events: none; top: -20px; left: -20px; }
.action-card-blue .action-card-glow { background: rgba(46, 197, 255, 0.35); }
.action-card-pink .action-card-glow { background: rgba(255, 77, 136, 0.35); right: -20px; left: auto; }
.action-card:hover .action-card-glow { opacity: 1; }
.action-card-shimmer { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%); transform: translateX(-100%); transition: transform 0.8s ease; }
.action-card:hover .action-card-shimmer { transform: translateX(100%); }
.action-card::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--duration-normal); }
.action-card-blue::before { background: linear-gradient(135deg, rgba(46, 197, 255, 0.14) 0%, rgba(124, 77, 255, 0.1) 100%); }
.action-card-pink::before { background: linear-gradient(135deg, rgba(255, 77, 136, 0.14) 0%, rgba(255, 75, 92, 0.1) 100%); }
.action-card:hover { transform: translateY(-5px); border-color: var(--border-glow); }
.action-card:hover::before { opacity: 1; }
.action-card:active { transform: scale(0.98) translateY(-2px); }
.action-card-blue:hover { box-shadow: var(--glow-blue), var(--shadow-float); }
.action-card-pink:hover { box-shadow: var(--glow-pink), var(--shadow-float); }
.action-card-icon { width: 64px; height: 64px; border-radius: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; }
.action-card-blue .action-card-icon { background: var(--gradient-blue); box-shadow: var(--glow-blue); }
.action-card-pink .action-card-icon { background: var(--gradient-pink); box-shadow: var(--glow-pink); }
.action-card-icon svg { width: 30px; height: 30px; color: white; }
.action-card-content { flex: 1; display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1; }
.action-card-title { font-size: 1.22rem; font-weight: 800; font-family: var(--font-display); }
.action-card-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.4; }
.action-card-arrow { position: relative; z-index: 1; opacity: 0.4; transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast); }
.action-card:hover .action-card-arrow { transform: translateX(-6px); opacity: 1; }
.action-card-arrow svg { width: 22px; height: 22px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.feature-card { padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform var(--duration-normal) var(--ease-out); }
.card-float { animation: cardFloatSoft 5s ease-in-out infinite alternate; }
.card-float:nth-child(2) { animation-delay: -1.2s; }
.card-float:nth-child(3) { animation-delay: -2.4s; }
.card-float:nth-child(4) { animation-delay: -3.6s; }
@keyframes cardFloatSoft { 0% { transform: translateY(0); } 100% { transform: translateY(-4px); } }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--glow-blue), var(--shadow-md); }
.feature-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 22px; height: 22px; color: white; }
.feature-icon-blue { background: var(--gradient-blue); }
.feature-icon-gold { background: var(--gradient-gold); }
.feature-icon-purple { background: var(--gradient-purple); }
.feature-icon-green { background: var(--gradient-green); }
.feature-value { font-size: 1.75rem; font-weight: 800; font-family: var(--font-display); line-height: 1; }
.feature-label { font-size: 0.78rem; color: var(--text-secondary); }

.text-link-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 16px; color: var(--text-secondary); font-size: 0.95rem; transition: color var(--duration-fast); margin-top: 8px; }
.text-link-btn:hover { color: var(--blue); }
.text-link-btn svg { width: 18px; height: 18px; }

.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header.compact { justify-content: center; }
.page-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.header-spacer { width: 40px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast) var(--ease-out); }
.icon-btn:hover { background: var(--glass-hover); border-color: var(--border-glow); }
.icon-btn svg { width: 20px; height: 20px; }

.btn-gradient { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 60px; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700; color: white; border: none; cursor: pointer; position: relative; overflow: hidden; transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out); margin-top: 12px; }
.btn-gradient svg { width: 20px; height: 20px; }
.btn-gradient::after { content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent); transform: skewX(-20deg); transition: left 0.7s ease; }
.btn-gradient:hover::after { left: 150%; }
.btn-gradient:hover { transform: translateY(-3px); }
.btn-gradient:active { transform: scale(0.97); }
.btn-blue { background: var(--gradient-blue); box-shadow: 0 8px 28px rgba(46, 197, 255, 0.35); }
.btn-blue:hover { box-shadow: var(--glow-blue), 0 14px 36px rgba(46, 197, 255, 0.45); }
.btn-purple { background: var(--gradient-purple); box-shadow: 0 8px 28px rgba(124, 77, 255, 0.35); }
.btn-purple:hover { box-shadow: var(--glow-purple), 0 14px 36px rgba(124, 77, 255, 0.45); }
.btn-gold { background: var(--gradient-gold); color: #1a1a1a; box-shadow: 0 8px 28px rgba(255, 200, 61, 0.35); }
.btn-gold:hover { box-shadow: var(--glow-gold), 0 14px 36px rgba(255, 200, 61, 0.45); }
.btn-pink { background: var(--gradient-pink); box-shadow: 0 8px 28px rgba(255, 77, 136, 0.35); }
.btn-ghost { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 24px; border-radius: var(--radius-md); background: var(--glass); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 600; transition: all var(--duration-fast) var(--ease-out); width: 100%; }
.btn-ghost:hover { background: var(--glass-hover); color: var(--text-primary); }
.btn-ghost svg { width: 18px; height: 18px; }

.wizard-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; padding: 0 4px; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.35; transition: opacity var(--duration-normal); }
.wizard-step.active, .wizard-step.completed { opacity: 1; }
.wizard-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all var(--duration-normal) var(--ease-out); }
.wizard-dot-icon { width: 16px; height: 16px; color: var(--text-muted); }
.wizard-step.active .wizard-dot { background: rgba(46, 197, 255, 0.15); border-color: var(--blue); box-shadow: var(--glow-blue); transform: scale(1.1); }
.wizard-step.active .wizard-dot-icon { color: var(--blue); }
.wizard-step.completed .wizard-dot { background: rgba(0, 208, 132, 0.15); border-color: var(--green); box-shadow: var(--glow-green); }
.wizard-step.completed .wizard-dot-icon { color: var(--green); }
.wizard-step span { font-size: 0.68rem; color: var(--text-muted); font-weight: 600; }
.wizard-step.active span { color: var(--text-secondary); }
.wizard-line { width: 36px; height: 2px; background: var(--border); margin: 0 6px; margin-bottom: 22px; border-radius: 1px; }
.wizard-panel { animation: pageEnter var(--duration-normal) var(--ease-out); }
.wizard-card { padding: 32px 24px; text-align: center; margin-bottom: 20px; }
.wizard-icon { width: 68px; height: 68px; border-radius: var(--radius-md); background: var(--gradient-blue); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--glow-blue); }
.wizard-icon svg { width: 34px; height: 34px; color: white; }
.wizard-icon-danger { background: var(--gradient-pink); box-shadow: var(--glow-pink); }
.wizard-icon-purple { background: var(--gradient-purple); box-shadow: var(--glow-purple); }
.wizard-heading { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.wizard-desc { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.55; }
.wizard-nav { display: flex; gap: 12px; }
.wizard-nav .btn-gradient { flex: 1; margin-top: 0; }
.wizard-nav .btn-ghost { flex: 0.55; }

.number-picker { display: flex; align-items: center; justify-content: center; gap: 28px; margin-bottom: 24px; }
.picker-btn { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--glass-strong); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast) var(--ease-out); }
.picker-btn:hover { background: var(--glass-hover); border-color: var(--blue); box-shadow: 0 0 20px rgba(46, 197, 255, 0.25); transform: scale(1.05); }
.picker-btn:active { transform: scale(0.92); }
.picker-btn svg { width: 24px; height: 24px; }
.picker-value-wrap { display: flex; flex-direction: column; align-items: center; min-width: 90px; }
.picker-value { font-size: 3.6rem; font-weight: 800; font-family: var(--font-display); line-height: 1; background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; transition: transform var(--duration-fast) var(--ease-spring); }
.picker-value.bump { animation: valueBump 0.3s var(--ease-spring); }
@keyframes valueBump { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.picker-value-danger { background: var(--gradient-pink); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.picker-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; }
.slider-wrap { margin-top: 8px; }
.premium-slider { width: 100%; height: 8px; -webkit-appearance: none; appearance: none; background: var(--border); border-radius: 4px; outline: none; }
.premium-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-blue); box-shadow: var(--glow-blue); cursor: pointer; border: 2px solid rgba(255,255,255,0.2); }
.slider-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 0.75rem; color: var(--text-muted); }

.player-cards-list { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; overflow-x: hidden; padding: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.player-cards-list::-webkit-scrollbar { display: none; }
.player-input-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); border-radius: var(--radius-md); transition: all var(--duration-normal) var(--ease-out); animation: pageEnter var(--duration-normal) var(--ease-out) backwards; }
.player-input-card:focus-within { border-color: var(--blue); box-shadow: 0 0 24px rgba(46, 197, 255, 0.18); background: rgba(46, 197, 255, 0.06); transform: translateX(-2px); }
.player-avatar { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; font-size: 1rem; color: white; box-shadow: var(--shadow-sm); }
.player-input-card input { flex: 1; background: transparent; border: none; outline: none; font-size: 1.02rem; color: var(--text-primary); direction: rtl; text-align: right; }
.player-input-card input::placeholder { color: var(--text-muted); }
.avatar-blue { background: var(--gradient-blue); }
.avatar-purple { background: var(--gradient-purple); }
.avatar-pink { background: var(--gradient-pink); }
.avatar-gold { background: var(--gradient-gold); color: #1a1a1a; }
.avatar-green { background: var(--gradient-green); }

.segmented-progress { margin-bottom: 28px; }
.progress-segments { display: flex; gap: 5px; margin-bottom: 14px; }
.progress-segment { flex: 1; height: 8px; border-radius: 4px; background: var(--border); transition: all var(--duration-normal) var(--ease-out); }
.progress-segment.done { background: var(--gradient-blue); box-shadow: 0 0 10px rgba(46, 197, 255, 0.45); }
.progress-segment.current { background: var(--gradient-gold); box-shadow: var(--glow-gold); animation: segmentPulse 1.5s ease-in-out infinite; }
@keyframes segmentPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
.progress-label { text-align: center; font-size: 0.92rem; color: var(--text-secondary); font-weight: 600; }
.progress-avatars { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.progress-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--glass); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; transition: all var(--duration-normal) var(--ease-out); }
.progress-avatar.done { background: var(--gradient-blue); border-color: transparent; color: white; box-shadow: 0 0 8px rgba(46, 197, 255, 0.4); }
.progress-avatar.current { border-color: var(--gold); box-shadow: var(--glow-gold); transform: scale(1.2); }

.card-stage-wrap { position: relative; margin: 20px 0; }
.card-stage-wrap::before { content: ''; position: absolute; inset: 10% 5%; background: radial-gradient(ellipse at center, rgba(124, 77, 255, 0.18) 0%, transparent 70%); filter: blur(24px); pointer-events: none; z-index: 0; }
.card-stage { perspective: 1400px; min-height: 360px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.reveal-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 10; }
.reveal-particle { position: absolute; border-radius: 50%; animation: particleBurst 0.8s ease-out forwards; }
@keyframes particleBurst { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; } }

.flip-card { width: 100%; min-height: 360px; height: auto; cursor: pointer; position: relative; }
.flip-card-inner { width: 100%; min-height: 360px; height: auto; position: relative; transform-style: preserve-3d; transition: transform 0.8s var(--ease-spring); }
.flip-card.flipped .flip-card-inner { transform: rotateY(180deg) scale(1.02); }
.flip-card-front, .flip-card-back { position: absolute; top: 0; left: 0; right: 0; min-height: 360px; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 22px; text-align: center; }
.flip-card-front { background: linear-gradient(155deg, #1a1f32 0%, #252a42 45%, #161a28 100%); border: 1px solid var(--border-glow); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(124,77,255,0.12); animation: cardFloat 3.5s ease-in-out infinite alternate; transition: opacity 0s linear 0.4s, visibility 0s linear 0.4s; }
.tap-ripple { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 50%, rgba(124,77,255,0.15) 0%, transparent 55%); animation: tapPulse 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes tapPulse { 0%, 100% { opacity: 0.35; transform: scale(0.95); } 50% { opacity: 0.85; transform: scale(1); } }
@keyframes cardFloat { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); box-shadow: var(--shadow-lg), 0 24px 48px rgba(0,0,0,0.35); } }
.flip-card.flipped .flip-card-front { animation: none; visibility: hidden; opacity: 0; pointer-events: none; }
.flip-card-back { transform: rotateY(180deg); justify-content: flex-start; padding-top: 20px; padding-bottom: 20px; background: linear-gradient(155deg, #1a1f32 0%, #252a42 45%, #161a28 100%); border: 1px solid var(--border-glow); }
.mystery-icon { width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--gradient-purple); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; box-shadow: var(--glow-purple); animation: mysteryPulse 2.5s ease-in-out infinite; }
.mystery-icon svg { width: 32px; height: 32px; color: white; }
@keyframes mysteryPulse { 0%, 100% { transform: scale(1); box-shadow: var(--glow-purple); } 50% { transform: scale(1.08); box-shadow: 0 0 70px rgba(124, 77, 255, 0.55); } }
.mystery-name { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; font-family: var(--font-display); }
.mystery-hint { display: flex; align-items: center; gap: 8px; padding: 12px 22px; background: var(--glass); border: 1px solid var(--border); border-radius: 100px; font-size: 0.9rem; color: var(--text-secondary); animation: hintPulse 2s ease-in-out infinite; }
@keyframes hintPulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; border-color: var(--border-glow); } }
.mystery-hint svg { width: 16px; height: 16px; color: var(--gold); }

.role-card { width: 100%; padding: 22px 18px; border-radius: var(--radius-xl); text-align: center; animation: revealBurst 0.65s var(--ease-spring); position: relative; overflow: hidden; }
.role-card::before { content: ''; position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
@keyframes revealBurst { 0% { opacity: 0; transform: scale(0.75) rotateX(12deg); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1) rotateX(0); } }
.role-card-spy { background: var(--gradient-spy); border: 1px solid rgba(255, 75, 92, 0.45); box-shadow: var(--glow-pink), var(--shadow-md); }
.role-card-spy::before { background: radial-gradient(circle at 50% 0%, rgba(255, 75, 92, 0.2) 0%, transparent 60%); }
.role-card-civilian { background: var(--gradient-civilian); border: 1px solid rgba(46, 197, 255, 0.45); box-shadow: var(--glow-blue), var(--shadow-md); }
.role-card-civilian::before { background: radial-gradient(circle at 50% 0%, rgba(46, 197, 255, 0.2) 0%, transparent 60%); }
.role-card-word { background: var(--gradient-word); border: 1px solid rgba(124, 77, 255, 0.45); box-shadow: var(--glow-purple), var(--shadow-md); }
.role-card-word::before { background: radial-gradient(circle at 50% 0%, rgba(124, 77, 255, 0.2) 0%, transparent 60%); }
.role-illustration { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 120px; height: 120px; border-radius: 50%; opacity: 0.35; filter: blur(2px); pointer-events: none; }
.role-theme-spy .role-illustration { background: radial-gradient(circle, rgba(255, 77, 136, 0.5) 0%, transparent 70%); }
.role-theme-civilian .role-illustration { background: radial-gradient(circle, rgba(46, 197, 255, 0.5) 0%, transparent 70%); }
.role-theme-word .role-illustration { background: radial-gradient(circle, rgba(124, 77, 255, 0.5) 0%, transparent 70%); }
.role-theme-diff .role-illustration { background: radial-gradient(circle, rgba(255, 159, 67, 0.55) 0%, transparent 70%); }
.role-theme-diff { background: linear-gradient(135deg, rgba(255, 159, 67, 0.22) 0%, rgba(255, 77, 136, 0.16) 100%); border-color: rgba(255, 159, 67, 0.45); box-shadow: 0 0 40px rgba(255, 159, 67, 0.35), var(--shadow-md); }
.role-mission-tips { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 10px 12px; text-align: right; font-size: 0.78rem; line-height: 1.5; color: var(--text-secondary); background: rgba(0,0,0,0.28); border: 1px solid var(--border); border-radius: var(--radius-md); position: relative; z-index: 1; }
.role-mission-tips svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.role-icon-wrap { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; position: relative; z-index: 1; }
.role-card-spy .role-icon-wrap { background: var(--gradient-pink); box-shadow: var(--glow-pink); }
.role-card-civilian .role-icon-wrap { background: var(--gradient-blue); box-shadow: var(--glow-blue); }
.role-icon-wrap svg { width: 28px; height: 28px; color: white; }
.role-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.role-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 10px; position: relative; z-index: 1; }
.word-display { font-size: 2rem; font-weight: 800; padding: 14px 28px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-glow); border-radius: var(--radius-md); display: inline-block; margin-top: 10px; text-shadow: 0 0 24px rgba(255, 255, 255, 0.25); position: relative; z-index: 1; animation: wordGlow 2s ease-in-out infinite alternate; }
@keyframes wordGlow { 0% { box-shadow: 0 0 20px rgba(255,255,255,0.05); } 100% { box-shadow: 0 0 40px rgba(255,255,255,0.12); } }
.cospy-box { margin-top: 12px; padding: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 77, 136, 0.35); border-radius: var(--radius-md); position: relative; z-index: 1; }
.cospy-label { font-size: 0.85rem; color: var(--pink); margin-bottom: 8px; }
.cospy-name { font-size: 1.25rem; font-weight: 700; margin: 4px 0; }
.reveal-burst { position: fixed; inset: 0; pointer-events: none; z-index: 9999; animation: burstFade 0.9s ease-out forwards; }
.reveal-burst-spy { background: radial-gradient(circle, rgba(255, 75, 92, 0.35) 0%, transparent 65%); }
.reveal-burst-civilian { background: radial-gradient(circle, rgba(46, 197, 255, 0.35) 0%, transparent 65%); }
.reveal-burst-word { background: radial-gradient(circle, rgba(124, 77, 255, 0.35) 0%, transparent 65%); }
@keyframes burstFade { 0% { opacity: 1; } 100% { opacity: 0; } }

.starter-box { padding: 20px 18px; text-align: center; background: linear-gradient(135deg, rgba(255, 200, 61, 0.14) 0%, rgba(255, 159, 67, 0.1) 100%); border: 1px solid rgba(255, 200, 61, 0.35); border-radius: var(--radius-xl); margin: 16px 0; animation: pageEnter var(--duration-normal) var(--ease-out); }
.starter-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: var(--glow-gold); }
.starter-icon svg { width: 26px; height: 26px; color: #1a1a1a; }
.starter-message { font-size: 1rem; color: var(--text-secondary); margin-bottom: 8px; }
.starter-name { font-size: 1.8rem; font-weight: 800; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; }
.starter-tip { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.all-done-card { padding: 22px 20px; text-align: center; background: var(--glass); border: 1px solid var(--border-glow); border-radius: var(--radius-xl); animation: pageEnter var(--duration-normal) var(--ease-out); }
.all-done-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--gradient-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; box-shadow: var(--glow-green); }
.all-done-icon svg { width: 34px; height: 34px; color: white; }
.all-done-title { font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; color: var(--gold); }
.all-done-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

.reveal-stage { margin-bottom: 24px; }
.reveal-card { padding: 36px 28px; text-align: center; background: var(--glass); border: 1px solid var(--border-glow); border-radius: var(--radius-xl); animation: pageEnter var(--duration-slow) var(--ease-out); box-shadow: var(--shadow-md); }
.reveal-card-icon { width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; animation: mysteryPulse 3s ease-in-out infinite; }
.reveal-card-icon svg { width: 40px; height: 40px; color: white; }
.reveal-card-icon.spy { background: var(--gradient-pink); box-shadow: var(--glow-pink); }
.reveal-card-icon.diff { background: var(--gradient-purple); box-shadow: var(--glow-purple); }
.reveal-label { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 10px; }
.person-name { font-size: 2.2rem; font-weight: 800; margin: 14px 0 24px; font-family: var(--font-display); }
.reveal-names-list { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 24px; }
.reveal-name-item { padding: 14px 22px; background: rgba(255, 77, 136, 0.12); border: 1px solid rgba(255, 77, 136, 0.35); border-radius: var(--radius-md); font-size: 1.25rem; font-weight: 700; }
.word-reveal-box { padding: 22px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: var(--radius-md); margin-top: 18px; }
.word-reveal-label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; }
.word-reveal-value { font-size: 1.9rem; font-weight: 800; }
.word-reveal-value.diff { color: var(--pink); }

.celebration-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; width: 10px; height: 10px; border-radius: 2px; animation: confettiFall 3.5s ease-out forwards; }
@keyframes confettiFall { 0% { transform: translateY(-20px) rotate(0deg); opacity: 1; } 100% { transform: translateY(450px) rotate(720deg); opacity: 0; } }
.results-hero { text-align: center; margin-bottom: 24px; position: relative; }
.trophy-wrap { position: relative; display: inline-block; margin-bottom: 18px; }
.trophy-icon { width: 88px; height: 88px; color: var(--gold); filter: drop-shadow(var(--glow-gold)); animation: trophyBounce 2.5s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes trophyBounce { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
.trophy-glow { position: absolute; inset: -24px; background: radial-gradient(circle, rgba(255, 200, 61, 0.35) 0%, transparent 70%); border-radius: 50%; animation: heroGlow 2.5s ease-in-out infinite alternate; }
.trophy-sparkles { position: absolute; inset: -30px; pointer-events: none; }
.results-title { font-size: 2.2rem; font-weight: 800; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.results-subtitle { color: var(--text-secondary); margin-top: 6px; font-size: 1rem; }
.results-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.result-stat { padding: 18px 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.result-stat svg { width: 22px; height: 22px; color: var(--blue); }
.result-stat-value { font-size: 1.3rem; font-weight: 800; font-family: var(--font-display); }
.result-stat-label { font-size: 0.72rem; color: var(--text-muted); }
.results-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.player-result { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md); animation: resultSlideIn 0.45s var(--ease-out) backwards; }
@keyframes resultSlideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
.player-result-name { font-size: 1.05rem; font-weight: 600; }
.badge { padding: 6px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; color: white; }
.badge-spy, .badge-diff { background: var(--gradient-pink); }
.badge-civilian, .badge-normal { background: var(--gradient-blue); }
.word-result-box { padding: 22px; text-align: center; background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.word-result-value { font-size: 1.9rem; font-weight: 800; margin-top: 8px; }
.word-result-value.diff { color: var(--pink); }
.results-actions { display: flex; flex-direction: column; gap: 12px; }
.results-actions .btn-gradient { margin-top: 0; }

.daily-streak-card { display: flex; align-items: center; gap: 16px; padding: 24px; margin-bottom: 20px; }
.streak-flame { width: 58px; height: 58px; border-radius: var(--radius-md); background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-gold); animation: flameFlicker 2s ease-in-out infinite; }
@keyframes flameFlicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.streak-flame svg { width: 30px; height: 30px; color: #1a1a1a; }
.streak-info { flex: 1; }
.streak-count { font-size: 2.2rem; font-weight: 800; font-family: var(--font-display); display: block; line-height: 1; }
.streak-label { font-size: 0.85rem; color: var(--text-secondary); }
.streak-days { display: flex; gap: 6px; }
.streak-day { width: 30px; height: 30px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; transition: all var(--duration-normal) var(--ease-out); }
.streak-day.active { background: var(--gradient-gold); color: #1a1a1a; box-shadow: var(--glow-gold); transform: scale(1.1); }
.challenges-list { display: flex; flex-direction: column; gap: 14px; }
.challenge-card-premium { min-height: 100px; padding: 22px 18px; }
.challenge-card-premium::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(46,197,255,0.35), rgba(124,77,255,0.2), rgba(255,200,61,0.25)); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.65; animation: borderShimmer 4s linear infinite; pointer-events: none; z-index: 2; }
.challenge-card-premium.completed::after { opacity: 0.25; animation: none; }
@keyframes borderShimmer { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
.challenge-reward-inline { font-size: 0.72rem; font-weight: 700; color: var(--gold); }
.challenge-card { display: flex; align-items: center; gap: 14px; padding: 20px 18px; position: relative; overflow: hidden; transition: all var(--duration-normal) var(--ease-out); }
.challenge-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.challenge-card.completed { opacity: 0.72; border-color: rgba(0, 208, 132, 0.3); }
.challenge-card.completed::after { content: ''; position: absolute; inset: 0; background: rgba(0, 208, 132, 0.06); border-radius: inherit; }
.challenge-icon { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.challenge-icon svg { width: 26px; height: 26px; color: white; }
.challenge-content { flex: 1; }
.challenge-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 4px; }
.challenge-desc { font-size: 0.8rem; color: var(--text-secondary); }
.challenge-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.challenge-difficulty { padding: 3px 8px; border-radius: 6px; font-size: 0.65rem; font-weight: 700; }
.difficulty-easy { background: rgba(0, 208, 132, 0.2); color: var(--green); }
.difficulty-medium { background: rgba(255, 200, 61, 0.2); color: var(--gold); }
.difficulty-hard { background: rgba(255, 75, 92, 0.2); color: var(--danger); }
.challenge-reward { padding: 5px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; background: var(--gradient-gold); color: #1a1a1a; flex-shrink: 0; }
.challenge-check { width: 32px; height: 32px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-green); flex-shrink: 0; }
.challenge-check svg { width: 18px; height: 18px; color: white; }

.profile-header { text-align: center; margin-bottom: 28px; }
.profile-avatar-wrap { position: relative; display: inline-block; margin-bottom: 14px; }
.profile-avatar-ring { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(124, 77, 255, 0.3); animation: ringPulse 3s ease-in-out infinite; }
.profile-avatar { width: 92px; height: 92px; border-radius: 50%; background: var(--gradient-purple); display: flex; align-items: center; justify-content: center; box-shadow: var(--glow-purple); }
.profile-avatar svg { width: 42px; height: 42px; color: white; }
.profile-level-badge { position: absolute; bottom: 0; left: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 800; color: #1a1a1a; border: 2px solid var(--bg-primary); }
.profile-name { font-size: 1.45rem; font-weight: 700; margin-bottom: 10px; }
.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; padding: 0 8px; }
.profile-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); }
.profile-badge svg { width: 14px; height: 14px; color: var(--blue); }
.btn-edit-profile { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 16px; padding: 10px 18px; border-radius: 100px; font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); background: var(--glass); border: 1px solid var(--border); transition: all var(--duration-fast) var(--ease-out); }
.btn-edit-profile:hover { color: var(--text-primary); border-color: var(--border-glow); box-shadow: var(--glow-purple); transform: translateY(-2px); }
.btn-edit-profile svg { width: 16px; height: 16px; }
.profile-input-label { display: block; text-align: right; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.profile-name-input { width: 100%; padding: 16px 18px; margin-bottom: 20px; border-radius: var(--radius-md); border: 1px solid var(--border); background: rgba(0,0,0,0.35); color: var(--text-primary); font-size: 1rem; text-align: right; direction: rtl; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.profile-name-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,197,255,0.2); }
.results-page { position: relative; overflow: hidden; }
.xp-bar-wrap { max-width: 280px; margin: 0 auto; }
.xp-bar { height: 10px; background: var(--border); border-radius: 5px; overflow: hidden; margin-bottom: 8px; position: relative; }
.xp-fill { height: 100%; background: var(--gradient-blue); border-radius: 5px; transition: width 0.7s var(--ease-out); box-shadow: 0 0 14px rgba(46, 197, 255, 0.55); position: relative; }
.xp-glow { position: absolute; top: 0; right: 0; width: 30px; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3)); animation: xpShimmer 2s ease-in-out infinite; }
@keyframes xpShimmer { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.xp-text { font-size: 0.82rem; color: var(--text-secondary); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-ring-card { padding: 22px 16px; text-align: center; transition: transform var(--duration-normal) var(--ease-out); }
.stat-ring-card:hover { transform: translateY(-3px); }
.progress-ring { width: 84px; height: 84px; margin: 0 auto 10px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--border); stroke-width: 6; }
.ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 0.9s var(--ease-out); }
.ring-blue { stroke: var(--blue); filter: drop-shadow(0 0 6px rgba(46,197,255,0.5)); }
.ring-gold { stroke: var(--gold); filter: drop-shadow(0 0 6px rgba(255,200,61,0.5)); }
.ring-purple { stroke: var(--purple); filter: drop-shadow(0 0 6px rgba(124,77,255,0.5)); }
.ring-green { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(0,208,132,0.5)); }
.stat-ring-value { font-size: 1.5rem; font-weight: 800; display: block; font-family: var(--font-display); }
.stat-ring-label { font-size: 0.75rem; color: var(--text-secondary); }

.weekly-section, .recent-sessions { padding: 22px 20px; margin-bottom: 16px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 700; margin-bottom: 18px; }
.section-title svg { width: 20px; height: 20px; color: var(--blue); }
.weekly-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 100px; padding-top: 8px; }
.chart-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chart-bar { width: 100%; max-width: 32px; border-radius: 6px 6px 4px 4px; background: var(--gradient-blue); min-height: 4px; transition: height 0.6s var(--ease-out); box-shadow: 0 0 8px rgba(46, 197, 255, 0.3); }
.chart-bar.today { background: var(--gradient-gold); box-shadow: var(--glow-gold); }
.chart-bar-label { font-size: 0.62rem; color: var(--text-muted); font-weight: 600; }
.sessions-list { display: flex; flex-direction: column; gap: 8px; }
.session-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); border: 1px solid var(--border); }
.session-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.session-icon svg { width: 18px; height: 18px; color: white; }
.session-info { flex: 1; }
.session-mode { font-size: 0.85rem; font-weight: 600; }
.session-detail { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.session-xp { font-size: 0.78rem; font-weight: 700; color: var(--gold); }
.sessions-empty { text-align: center; padding: 24px; color: var(--text-muted); font-size: 0.85rem; }
.achievements-section { padding: 22px 20px; margin-bottom: 20px; }
.achievements-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.achievement-item { text-align: center; padding: 14px 8px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); transition: all var(--duration-normal) var(--ease-out); }
.achievement-item.unlocked { border-color: rgba(255, 200, 61, 0.35); background: rgba(255, 200, 61, 0.06); }
.achievement-item.unlocked:hover { transform: translateY(-2px); box-shadow: var(--glow-gold); }
.achievement-item.locked { opacity: 0.35; filter: grayscale(1); }
.achievement-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--gradient-gold); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.achievement-icon svg { width: 20px; height: 20px; color: #1a1a1a; }
.achievement-name { font-size: 0.68rem; color: var(--text-secondary); line-height: 1.35; }

.settings-list { display: flex; flex-direction: column; gap: 10px; }
.settings-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; width: 100%; text-align: right; transition: all var(--duration-fast) var(--ease-out); }
.settings-item:hover { background: var(--glass-hover); transform: translateX(-2px); }
.settings-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-icon svg { width: 22px; height: 22px; color: white; }
.settings-icon-blue { background: var(--gradient-blue); }
.settings-icon-purple { background: var(--gradient-purple); }
.settings-icon-gold { background: var(--gradient-gold); }
.settings-icon-green { background: var(--gradient-green); }
.settings-icon-pink { background: var(--gradient-pink); }
.settings-content { flex: 1; }
.settings-label { display: block; font-weight: 600; font-size: 0.95rem; }
.settings-value { font-size: 0.8rem; color: var(--text-secondary); }
.settings-arrow { width: 18px; height: 18px; opacity: 0.4; }
.toggle-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 14px; cursor: pointer; transition: background var(--duration-fast); }
.toggle-slider::before { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: white; top: 3px; right: 3px; transition: transform var(--duration-fast) var(--ease-spring); box-shadow: var(--shadow-sm); }
.toggle-switch input:checked + .toggle-slider { background: var(--blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(-20px); }

.bottom-nav { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: calc(var(--app-max-width) - 32px); height: 68px; background: rgba(17, 21, 34, 0.88); backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px); border: 1px solid var(--border); border-radius: var(--radius-xl); display: flex; align-items: center; justify-content: space-around; padding: 0 6px; z-index: 1000; box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05); }
.nav-pill { position: absolute; height: 48px; border-radius: var(--radius-md); background: linear-gradient(135deg, rgba(46, 197, 255, 0.22) 0%, rgba(124, 77, 255, 0.16) 100%); border: 1px solid rgba(46, 197, 255, 0.3); box-shadow: 0 0 28px rgba(46, 197, 255, 0.25); transition: all var(--duration-normal) var(--ease-spring); pointer-events: none; top: 10px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 12px; min-width: 44px; min-height: 44px; border-radius: var(--radius-md); color: var(--text-muted); transition: color var(--duration-normal) var(--ease-out); position: relative; z-index: 1; flex: 1; }
.nav-item svg { width: 22px; height: 22px; transition: transform var(--duration-fast) var(--ease-out), filter var(--duration-fast); }
.nav-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-item.active { color: var(--blue); }
.nav-item.active svg { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(46, 197, 255, 0.6)); }
.nav-item:hover:not(.active) { color: var(--text-secondary); }
body.in-game-flow .bottom-nav { transform: translateX(-50%) translateY(120px); opacity: 0; pointer-events: none; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10000; animation: modalOverlayIn var(--duration-normal) var(--ease-out); }
@keyframes modalOverlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { width: 100%; max-width: 400px; padding: 36px 28px; text-align: center; animation: modalContentIn var(--duration-slow) var(--ease-spring); }
.modal-scroll { max-height: 80vh; overflow-y: auto; }
@keyframes modalContentIn { from { opacity: 0; transform: scale(0.9) translateY(24px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-icon { width: 68px; height: 68px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.modal-icon svg { width: 34px; height: 34px; color: white; }
.modal-icon-blue { background: var(--gradient-blue); box-shadow: var(--glow-blue); }
.modal-icon-purple { background: var(--gradient-purple); box-shadow: var(--glow-purple); }
.modal-icon-pink { background: var(--gradient-pink); box-shadow: var(--glow-pink); }
.modal-title { font-size: 1.45rem; font-weight: 800; margin-bottom: 14px; }
.modal-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 28px; text-align: right; padding: 18px; background: rgba(0, 0, 0, 0.25); border-radius: var(--radius-md); border: 1px solid var(--border); }
.instructions-text strong { color: var(--text-primary); }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.modal-actions .btn-gradient { margin-top: 0; }
.how-to-play-option { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; border-radius: var(--radius-md); font-weight: 700; color: white; margin-bottom: 10px; transition: all var(--duration-normal) var(--ease-out); }
.how-to-play-option svg { width: 20px; height: 20px; }
.option-blue { background: var(--gradient-blue); box-shadow: 0 6px 22px rgba(46, 197, 255, 0.3); }
.option-pink { background: var(--gradient-pink); box-shadow: 0 6px 22px rgba(255, 77, 136, 0.3); }
.how-to-play-option:hover { transform: translateY(-3px); }
.icon-sm { width: 16px; height: 16px; }

@media (max-width: 380px) {
    .hero-title { font-size: 2.4rem; }
    .hero-mascot { width: 124px; height: 124px; }
    .action-card { padding: 18px 16px; min-height: 88px; }
    .picker-value { font-size: 3rem; }
    .bottom-nav { height: 62px; }
    .nav-pill { height: 44px; top: 9px; }
    .results-stats-row { gap: 8px; }
    .result-stat { padding: 14px 8px; }
}
@media (min-width: 520px) {
    .nav-label { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; font-size: 0.62rem; font-weight: 600; }
}
@media (min-width: 768px) { .app-main { padding-top: 36px; } }
@media (min-width: 1200px) { body { display: flex; justify-content: center; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
button:focus-visible, input:focus-visible, .action-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
