:root{--bg:#0f172a;--surface:#1e293b;--surface-2:#263449;--border:#334155;--text:#f1f5f9;--text-muted:#94a3b8;--primary:#3b82f6;--primary-hover:#2563eb;--success:#10b981;--success-bg:#10b98124;--warning:#f59e0b;--danger:#ef4444;--danger-bg:#ef444424;--radius:14px}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:radial-gradient(circle at top, #172554 0%, var(--bg) 55%);color:var(--text);min-height:100dvh;margin:0;padding:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow-x:hidden}button{touch-action:manipulation;font-family:inherit}.shrink-0{flex-shrink:0}.app-shell{max-width:1360px;padding:14px 18px calc(28px + env(safe-area-inset-bottom));margin:0 auto}.top-bar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:var(--radius);background:#1e293bd9;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:12px 16px;display:flex}.brand{align-items:center;gap:10px;display:flex}.brand-icon{color:#fff;background:linear-gradient(135deg,#2563eb,#10b981);border-radius:10px;flex-shrink:0;place-items:center;width:38px;height:38px;display:grid}.brand-title-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.brand h1{letter-spacing:-.02em;margin:0;font-size:1.15rem;font-weight:700}.daily-chip{color:#93c5fd;background:#3b82f629;border:1px solid #3b82f659;border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.72rem;font-weight:600;display:inline-flex}.brand-sub{color:var(--text-muted);margin:2px 0 0;font-size:.76rem}.mode-tabs{gap:8px;display:flex}.mode-tab{border:1px solid var(--border);background:var(--surface-2);min-height:40px;color:var(--text);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:7px 12px;font-size:.86rem;font-weight:600;transition:all .15s;display:inline-flex}.mode-tab:hover:not(:disabled){border-color:var(--primary)}.mode-tab.is-active{background:var(--primary);border-color:var(--primary);color:#fff}.mode-tab.is-locked{opacity:.55;cursor:not-allowed}.mode-pill{background:#0f172a73;border-radius:999px;padding:2px 7px;font-size:.74rem}.header-stats{align-items:center;gap:8px;display:flex}.score-badge{color:#fbbf24;background:#f59e0b24;border:1px solid #f59e0b59;border-radius:10px;align-items:center;gap:6px;min-height:38px;padding:6px 11px;font-size:.86rem;font-weight:700;display:inline-flex}.icon-btn{border:1px solid var(--border);background:var(--surface-2);width:38px;height:38px;color:var(--text-muted);cursor:pointer;border-radius:10px;place-items:center;transition:all .15s;display:grid}.icon-btn:hover{color:var(--text);border-color:var(--text-muted)}.google-btn{color:#0f172a;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:10px;align-items:center;gap:8px;min-height:38px;padding:6px 12px;font-size:.83rem;font-weight:600;transition:background .15s,transform .1s;display:inline-flex}.google-btn:hover{background:#f1f5f9}.google-icon{flex-shrink:0;width:16px;height:16px}.user-chip{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;align-items:center;gap:7px;padding:3px 4px 3px 8px;display:inline-flex}.user-avatar{object-fit:cover;border-radius:999px;width:24px;height:24px}.user-name{text-overflow:ellipsis;white-space:nowrap;max-width:110px;font-size:.82rem;font-weight:600;overflow:hidden}.logout-btn{background:0 0;border:none;width:30px;height:30px}.auth-error-banner{background:var(--danger-bg);color:#fca5a5;border:1px solid #ef444459;border-radius:10px;margin-bottom:12px;padding:9px 13px;font-size:.83rem}.auth-gate-shell{min-height:100dvh;padding:20px 16px calc(24px + env(safe-area-inset-bottom));place-items:center;display:grid}.auth-gate-card{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--border);text-align:center;background:#1e293beb;border-radius:18px;flex-direction:column;align-items:center;gap:14px;width:100%;max-width:420px;padding:28px 24px;display:flex;box-shadow:0 20px 45px #00000059}.auth-gate-logo{border-radius:14px;width:54px;height:54px}.auth-gate-card h1{letter-spacing:-.02em;margin:0;font-size:1.55rem;font-weight:800}.auth-gate-desc{color:var(--text-muted);margin:0;font-size:.9rem;line-height:1.45}.auth-gate-error{width:100%;margin-bottom:0}.auth-gate-btn{justify-content:center;width:100%;min-height:48px;margin-top:4px;font-size:.95rem}.auth-gate-hint{color:var(--text-muted);margin:0;font-size:.78rem}.unlock-banner{color:#bfdbfe;background:#3b82f61f;border:1px solid #3b82f64d;border-radius:10px;align-items:center;gap:10px;margin-bottom:14px;padding:9px 13px;font-size:.82rem;line-height:1.35;display:flex}.game-layout{grid-template-columns:1.2fr .95fr;align-items:start;gap:16px;display:grid}@media (width<=960px){.game-layout{grid-template-columns:1fr}.challenge-panel{order:-1}}.map-panel{border:1px solid var(--border);border-radius:var(--radius);background:#1e293bd9;padding:12px}.map-wrapper{flex-direction:column;gap:8px;display:flex}.map-toolbar{justify-content:space-between;align-items:center;gap:8px;display:flex}.map-toolbar-title{color:var(--text-muted);font-size:.82rem;font-weight:600}.zoom-controls{align-items:center;gap:6px;display:flex}.zoom-btn{border:1px solid var(--border);background:var(--surface-2);min-width:34px;min-height:34px;color:var(--text);cursor:pointer;border-radius:8px;place-items:center;padding:0 8px;display:grid}.zoom-btn:disabled{opacity:.4;cursor:not-allowed}.zoom-label{color:var(--text-muted);text-align:center;min-width:38px;font-size:.78rem;font-weight:600}.map-scroll-container{-webkit-overflow-scrolling:touch;background:radial-gradient(circle at 55% 45%,#16243d 0%,#0f172a 100%);border:1px solid #33415599;border-radius:10px;width:100%;overflow:auto}.france-svg{height:auto;display:block}.map-section-label{fill:#94a3b8;letter-spacing:.02em;font-size:12px;font-weight:600}.inset-box{fill:#0f172a8c;stroke:#334155;stroke-width:1.2px;stroke-dasharray:4 3}.dept-path{fill:#334155;stroke:#0f172a;stroke-width:.9px;stroke-linejoin:round;transition:fill .15s,stroke .15s}.france-svg.is-interactive .dept-path{cursor:pointer}.dept-path.dept-hover{fill:#60a5fa;stroke:#fff;stroke-width:1.3px}.dept-path.dept-done-perfect{fill:#059669}.dept-path.dept-done-partial{fill:#d97706}.dept-path.dept-wrong{fill:#ef4444}.dept-path.dept-target-solved{fill:#10b981;stroke:#fff;stroke-width:1.6px}.pin-circle{fill:#0f172a;stroke:#34d399;stroke-width:2.2px}.pin-text{fill:#fff;font-size:11px;font-weight:700}.map-footer{text-align:center;min-height:22px}.map-hint{color:var(--text-muted);font-size:.82rem}.map-hint.active{color:#60a5fa;font-weight:600}.map-hint.solved{color:#34d399;font-weight:600}.challenge-card{border:1px solid var(--border);border-radius:var(--radius);background:#1e293beb;flex-direction:column;gap:14px;padding:18px;display:flex}.challenge-top{justify-content:space-between;align-items:center;gap:8px;display:flex}.progress-label{color:var(--text-muted);font-size:.86rem;font-weight:600}.diff-badge{border-radius:999px;padding:4px 10px;font-size:.74rem;font-weight:700}.diff-badge.easy{color:#34d399;background:#10b98126}.diff-badge.hard{color:#fbbf24;background:#f59e0b26}.progress-bar{background:var(--surface-2);border-radius:999px;height:6px;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#3b82f6,#10b981);height:100%;transition:width .25s}.stepper{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.step-dot{text-align:center;background:var(--surface-2);color:var(--text-muted);border:1px solid #0000;border-radius:7px;padding:5px 4px;font-size:.74rem;font-weight:600}.step-dot.is-current{border-color:var(--primary);color:#93c5fd;background:#3b82f629}.step-dot.is-done{color:#34d399;background:#10b98124}.clue-box{text-align:center;background:linear-gradient(135deg,#1e3a8a,#1e293b);border:1px solid #60a5fa66;border-radius:12px;padding:12px 14px}.clue-label{text-transform:uppercase;letter-spacing:.05em;color:#93c5fd;margin-bottom:4px;font-size:.74rem;display:block}.clue-value{color:#fff;word-break:break-word;font-size:1.4rem;font-weight:800}.completed-steps{flex-wrap:wrap;gap:6px;display:flex}.completed-pill{border-radius:8px;align-items:center;gap:5px;padding:5px 9px;font-size:.78rem;display:inline-flex}.completed-pill.is-ok{background:var(--success-bg);color:#6ee7b7}.completed-pill.is-ko{background:var(--danger-bg);color:#fca5a5}.pill-label{opacity:.85}.active-step-box{flex-direction:column;gap:12px;display:flex}.field-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.field-header label{color:#cbd5e1;font-size:.9rem}.eval-tag{border-radius:6px;align-items:center;gap:5px;padding:3px 8px;font-size:.8rem;font-weight:600;display:inline-flex}.eval-tag.is-ok{background:var(--success-bg);color:#34d399}.eval-tag.is-ko{background:var(--danger-bg);color:#fca5a5}.qcm-grid{grid-template-columns:1fr 1fr;gap:8px;display:grid}.qcm-btn{border:1px solid var(--border);background:var(--surface-2);min-height:46px;color:var(--text);text-align:left;word-break:break-word;cursor:pointer;border-radius:10px;padding:9px 10px;font-size:.86rem;font-weight:500;line-height:1.25;transition:all .12s}.qcm-btn:hover:not(:disabled){border-color:var(--primary);background:#3b82f624}.qcm-btn.is-correct{border-color:var(--success);background:var(--success-bg);color:#6ee7b7;font-weight:600}.qcm-btn.is-wrong{border-color:var(--danger);background:var(--danger-bg);color:#fca5a5}.hard-step-form{flex-direction:column;gap:10px;display:flex}.autocomplete-wrapper{position:relative}.text-input{border:1px solid var(--border);width:100%;min-height:46px;color:var(--text);background:#0f172a;border-radius:10px;outline:none;padding:10px 12px;font-size:16px;transition:border-color .15s}.text-input:focus{border-color:var(--primary)}.text-input:disabled{opacity:.7}.autocomplete-list{z-index:20;border:1px solid var(--border);background:#0f172a;border-radius:10px;max-height:210px;margin:0;padding:4px;list-style:none;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;box-shadow:0 12px 28px #00000073}.autocomplete-item{cursor:pointer;border-radius:6px;align-items:center;min-height:40px;padding:8px 10px;font-size:.92rem;display:flex}.autocomplete-item:hover,.autocomplete-item.is-active{background:var(--primary);color:#fff}.btn-primary,.btn-secondary,.btn-share{cursor:pointer;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:11px 16px;font-size:.92rem;font-weight:600;transition:all .15s;display:inline-flex}.btn-share{color:#fff;background:linear-gradient(135deg,#10b981,#059669)}.btn-share:hover{filter:brightness(1.08)}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-primary:disabled{opacity:.45;cursor:not-allowed}.btn-secondary{background:var(--surface-2);border:1px solid var(--border);color:var(--text)}.btn-secondary:hover{border-color:var(--text-muted)}.full-width{width:100%}.map-step-box{background:#3b82f621;border:1px solid #3b82f659;border-radius:10px;flex-direction:column;gap:8px;padding:14px;display:flex}.map-step-title{color:#bfdbfe;align-items:center;gap:8px;font-size:.92rem;display:flex}.map-attempts{color:var(--text-muted);font-size:.8rem}.wrong-toast{background:var(--danger-bg);color:#fca5a5;border-radius:8px;align-items:center;gap:8px;padding:8px 10px;font-size:.84rem;display:flex}.round-done-box{flex-direction:column;gap:12px;padding-top:4px;display:flex}.round-done-summary{text-align:center;font-size:.92rem;font-weight:600}.done-perfect{color:#34d399}.done-partial{color:#fbbf24}.done-revealed{color:#fca5a5}.summary-container{max-width:980px;margin:0 auto}.summary-card{border:1px solid var(--border);border-radius:var(--radius);background:#1e293be6;flex-direction:column;gap:18px;padding:22px;display:flex}.summary-header{text-align:center}.summary-icon{color:#fbbf24;margin-bottom:8px}.summary-header h2{margin:0 0 8px;font-size:1.25rem}.summary-score{margin:0 0 12px;font-size:1.05rem}.unlock-result{border-radius:8px;padding:8px 14px;font-size:.88rem;font-weight:600;display:inline-block}.unlock-result.is-success{background:var(--success-bg);color:#34d399}.unlock-result.is-fail{background:var(--danger-bg);color:#fca5a5}.summary-actions{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.summary-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;display:grid}.summary-item{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.summary-item.is-perfect{border-color:#10b98166}.summary-item.is-partial{border-color:#f59e0b66}.summary-item-title{align-items:center;gap:6px;font-size:.9rem;display:flex}.dept-code-tag{color:#93c5fd;background:#0f172a;border-radius:5px;padding:2px 6px;font-size:.75rem;font-weight:700}.summary-item-meta{color:var(--text-muted);font-size:.78rem}.summary-item-pts{color:#fbbf24;font-size:.78rem;font-weight:700}@media (width<=480px){.app-shell{padding:10px 10px calc(24px + env(safe-area-inset-bottom))}.top-bar{gap:10px;padding:10px 12px}.brand-sub{display:none}.mode-tabs{order:3;width:100%}.mode-tab{flex:1;padding:7px 8px;font-size:.82rem}.challenge-card{gap:12px;padding:14px}.clue-value{font-size:1.25rem}.qcm-btn{padding:8px;font-size:.81rem}.map-panel{padding:10px}}
