/* Yellow Interactive Design System. All dimensions also support Arabic RTL. */
:root[data-theme="dark"]{
  --bg:#12161d;--surface:#18202a;--sunken:#1f2a37;--line:#2b3848;--line2:#384656;--muted:#9aa8b8;
  --accent:#ffc800;--accent-soft:rgba(255,200,0,0.16);--accent-ink:#1c1917;
  --duo-yellow:#ffc800;--duo-yellow-deep:#cca000;--duo-yellow-light:#ffd933;
  --duo-orange:#ff9600;--duo-orange-deep:#cc7a00;--duo-orange-light:#ffa826;
  --duo-blue:#1cb0f6;--duo-blue-deep:#1899d6;
}
body{line-height:1.65;font-family:var(--f-body)}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}

/* Tactile 3D Buttons (Refined depth) */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  min-height:40px;padding:8px 18px;border-radius:14px;
  font-weight:800;font-size:14px;letter-spacing:0.01em;
  border:2px solid var(--line2);background:var(--surface);color:#ffffff;
  box-shadow:0 2.5px 0 #121820;cursor:pointer;
  transform:translateY(0);
  transition:transform .08s ease,box-shadow .08s ease,background-color .12s ease;
  user-select:none;
}
.btn:hover:not([disabled]){background:#253342;border-color:#435468}
.btn:active:not([disabled]){transform:translateY(2px);box-shadow:0 0 0 transparent}
.btn[disabled]{opacity:.45;box-shadow:0 1.5px 0 #121820;cursor:not-allowed;transform:none}
.btn.sm{min-height:32px;padding:4px 12px;font-size:12.5px;border-radius:11px;box-shadow:0 2px 0 #121820}
.btn.sm:active:not([disabled]){transform:translateY(1.5px);box-shadow:0 0 0 transparent}

/* Primary Yellow Button */
.btn.pri,button.btn.pri{
  background:var(--duo-yellow);color:#1c1917;border-color:var(--duo-yellow-deep);
  box-shadow:0 2.5px 0 var(--duo-yellow-deep);font-weight:800;
}
.btn.pri:hover:not([disabled]){background:var(--duo-yellow-light);border-color:var(--duo-yellow-deep)}
.btn.pri:active:not([disabled]){transform:translateY(2px);box-shadow:0 0 0 transparent}

/* Streak Orange Button */
.btn.orange,.btn-orange{
  background:var(--duo-orange)!important;color:#ffffff!important;
  border-color:var(--duo-orange-deep)!important;box-shadow:0 2.5px 0 var(--duo-orange-deep)!important;
  font-weight:800;
}
.btn.orange:hover:not([disabled]),.btn-orange:hover:not([disabled]){background:var(--duo-orange-light)!important}
.btn.orange:active:not([disabled]),.btn-orange:active:not([disabled]){transform:translateY(2px)!important;box-shadow:0 0 0 transparent!important}

/* Tactile Chips */
.chip{
  min-height:36px;padding:7px 14px;border-radius:14px;
  border:2px solid var(--line2);background:var(--surface);color:#ffffff;
  box-shadow:0 2px 0 #121820;font-weight:700;font-size:13px;cursor:pointer;
  transition:transform .08s ease,box-shadow .08s ease,background-color .12s ease;
}
.chip:hover{background:var(--sunken);border-color:#435468}
.chip[aria-pressed="true"]{
  background:var(--accent-soft);border-color:var(--duo-yellow);color:var(--duo-yellow);
  box-shadow:0 2px 0 var(--duo-yellow-deep);
}
.chip:active{transform:translateY(1.5px);box-shadow:0 0 0 transparent}

/* Cards & Sunk containers */
.panel{border-radius:18px;border:2px solid var(--line);box-shadow:0 3px 0 #10151c;background:var(--surface)}
.sunk{border-radius:16px;border:2px solid var(--line);box-shadow:0 2.5px 0 #10151c;background:var(--sunken)}
.pad{padding:24px}.kpi{border-radius:14px;padding:20px;border:2px solid var(--line);box-shadow:0 2.5px 0 #10151c}
.kpi b{font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.plan li{padding-block:16px}.plan .n{background:var(--accent-soft);color:var(--accent);font-weight:800}
.duo-hero-game{display:flex;align-items:center;flex-wrap:wrap;gap:20px;background:linear-gradient(135deg,rgba(255,200,0,0.07) 0%,rgba(20,24,33,0.95) 100%);border:2px solid rgba(255,200,0,0.3);box-shadow:0 4px 0 #10151c;border-radius:20px}
.game-bee-avatar{filter:drop-shadow(0 4px 10px rgba(255,200,0,0.25));animation:duoFloat 4s ease-in-out infinite}
.big-flame{font-size:26px;filter:drop-shadow(0 0 8px rgba(255,150,0,0.5))}
.ww-dialog{border:2px solid var(--line2);border-radius:18px;box-shadow:0 3px 0 #10151c;padding:28px}
#main{min-width:0}#main>div{max-width:100%}
#main h2{line-height:1.3;font-weight:800}#main .cloze{line-height:2}
h1,h2,h3,.eyebrow{font-weight:800;letter-spacing:-0.01em}
textarea{line-height:1.8}select{max-width:100%}
input[type="text"],input[type="email"],input[type="password"],input[type="url"],select,textarea{
  border-radius:14px;border:2px solid var(--line2);background:#141b24;color:#ffffff;
  padding:10px 14px;font-size:14px;transition:border-color .15s ease,box-shadow .15s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--duo-blue);outline:none;box-shadow:0 0 0 3px rgba(28,176,246,0.25);
}
:focus-visible{outline:2px solid var(--duo-yellow);outline-offset:3px}

/* Mascot & Speech Bubble */
.duo-speech{display:flex;align-items:flex-start;gap:16px;margin-bottom:12px}
.duo-mascot{font-size:46px;line-height:1;filter:drop-shadow(0 3px 0 rgba(0,0,0,0.25));user-select:none;flex-shrink:0}
.duo-bubble{
  position:relative;background:var(--surface);border:2px solid var(--line2);
  border-bottom:3px solid var(--line);border-radius:18px;padding:14px 18px;
  font-size:15px;line-height:1.5;color:#ffffff;flex:1;font-weight:600;
}
.duo-bubble::before{
  content:"";position:absolute;inset-inline-start:-10px;top:18px;width:0;height:0;
  border-style:solid;border-width:8px 10px 8px 0;border-color:transparent var(--line2) transparent transparent;
}
:lang(ar) .duo-bubble::before{
  inset-inline-start:auto;inset-inline-end:-10px;border-width:8px 0 8px 10px;
  border-color:transparent transparent transparent var(--line2);
}

/* Progress Bar (Yellow Gradient) */
.duo-progress-wrap{display:flex;align-items:center;gap:12px;width:100%}
.duo-progress-bar{flex:1;height:16px;background:#18222e;border-radius:9999px;overflow:hidden;position:relative;border:2px solid #2b3848}
.duo-progress-fill{
  height:100%;background:linear-gradient(180deg,#ffe066 0%,#ffc800 100%);
  border-radius:9999px;box-shadow:inset 0 -2px 0 #cca000,inset 0 2px 0 rgba(255,255,255,0.4);
  transition:width 320ms cubic-bezier(0.34,1.56,0.64,1);
}
.duo-progress-count{font-weight:800;font-size:13px;color:var(--muted);min-width:32px}

/* Badges & Choice Cards */
.duo-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:9999px;font-size:12px;font-weight:800;letter-spacing:0.02em}
.duo-badge.yellow,.duo-badge.gold{background:rgba(255,200,0,0.16);color:var(--duo-yellow);border:1.5px solid var(--duo-yellow)}
.duo-badge.orange{background:rgba(255,150,0,0.16);color:var(--duo-orange);border:1.5px solid var(--duo-orange)}
.duo-badge.blue{background:rgba(28,176,246,0.16);color:var(--duo-blue);border:1.5px solid var(--duo-blue)}
.duo-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:14px}
.duo-choice-card{
  display:flex;flex-direction:column;justify-content:space-between;padding:18px;
  border-radius:20px;border:2px solid var(--line2);border-bottom:3.5px solid var(--line);
  background:var(--surface);box-shadow:0 3px 0 #10151c;gap:12px;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.duo-choice-card:hover{border-color:var(--duo-yellow);transform:translateY(-2px);box-shadow:0 5px 0 #10151c}
.duo-choice-card.highlight{border-color:var(--duo-yellow);border-bottom:3.5px solid var(--duo-yellow-deep);background:rgba(255,200,0,0.06)}
.duo-choice-card.highlight-orange{border-color:var(--duo-orange);border-bottom:3.5px solid var(--duo-orange-deep);background:rgba(255,150,0,0.06)}
.big-btn{min-height:44px;font-size:15px;font-weight:800;width:100%}
.duo-link{color:var(--duo-yellow);font-weight:800;text-decoration:underline}
.duo-footer-bar{padding-top:16px;border-top:2px solid var(--line)}
@media(min-width:1100px){
  #app{display:grid;grid-template-columns:222px minmax(0,1fr);align-items:start}
  .top{height:100dvh;overflow-y:auto;position:sticky;top:0;border-bottom:0;border-inline-end:1px solid var(--line);background:var(--bg,#12161d)}
  .top>.wrap{padding:22px 14px 28px;max-width:none;display:flex;flex-direction:column;gap:14px}
  
  .brand{display:flex;flex-direction:column;align-items:stretch;padding:0;gap:12px}
  .brand-top-row{display:flex;flex-direction:column;gap:12px;width:100%}
  .brand-title{display:flex;flex-direction:column;gap:3px}
  .brand-title h1{font-size:18px;line-height:1.3;display:flex;align-items:center;gap:8px;margin:0}
  .brand-title .eyebrow{font-size:10px;line-height:1.5;color:var(--muted);display:block}
  
  #hdrGame{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:5px;width:100%}
  #hdrGame .stat-capsule{justify-content:center;padding:5px 4px;font-size:11.5px;border-radius:10px}
  
  .brand-controls-row{display:flex;flex-direction:column;gap:7px;width:100%;padding-top:4px;border-top:1px solid rgba(255,255,255,0.06)}
  .hdr-actions{display:flex;align-items:center;gap:8px;width:100%;flex-wrap:nowrap}
  .hdr-actions select{flex:1 1 auto;width:auto!important;font-size:12px!important;padding:5px 8px;border-radius:10px;border:1px solid var(--border,#232f40);background:rgba(0,0,0,0.3);color:var(--ink)}
  .hdr-actions button[data-go="settings"]{flex:0 0 auto;padding:5px 12px;font-size:12px;display:inline-flex;align-items:center;gap:4px}
  
  .brand .status{font-size:10.5px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0.8}
  .brand .status::before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#48c774;flex-shrink:0}
  
  .tabs{display:flex;flex-direction:column;gap:5px;overflow:visible;padding:0}
  .tab{min-height:38px;padding:8px 10px;border:1px solid transparent;border-radius:10px;text-align:start;white-space:normal;font-size:12.5px;width:100%}
  .tab[aria-selected="true"]{background:var(--accent-soft,rgba(255,200,0,0.12));border-color:rgba(255,200,0,0.4);color:#fff}
  .tab:hover{background:var(--sunken,#1c2636)}
  
  #main.wrap{width:100%;max-width:1160px;padding:32px 36px 80px}
}

@media(max-width:1099px){
  .top{position:relative;background:var(--bg,#12161d);border-bottom:1px solid var(--line)}
  .top>.wrap{padding:10px 14px 4px}
  .brand{display:flex;flex-direction:column;gap:8px;padding-block:4px}
  .brand-top-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px}
  .brand-title h1{font-size:18px;margin:0;display:flex;align-items:center;gap:6px}
  .brand-title .eyebrow{display:none}
  
  #hdrGame{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}
  #hdrGame .stat-capsule{padding:4px 8px;font-size:12px;border-radius:10px}
  
  .brand-controls-row{display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;padding-top:2px}
  .hdr-actions{display:flex;align-items:center;gap:5px}
  .hdr-actions select{width:auto;max-width:105px;font-size:11px!important;padding:3px 6px;border-radius:7px}
  .hdr-actions .btn{padding:3px 7px;font-size:11.5px}
  
  .brand .status{font-size:10.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:160px;display:inline-flex;align-items:center;gap:4px;opacity:0.8}
  .brand .status::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#48c774;flex-shrink:0}
  
  .tabs{display:flex;gap:7px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:6px 2px}
  .tabs::-webkit-scrollbar{display:none}
  .tab{padding:6px 11px;border-radius:10px;font-size:12px;min-height:34px;flex-shrink:0}
  #main{padding-top:18px}.pad{padding:18px}
}

@media(prefers-reduced-motion:reduce){.btn,.chip,.tab{transition:none}}

/* Gamification Capsules */
.stat-capsule{display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:12px;font-size:12.5px;font-weight:800;line-height:1;border:1.5px solid rgba(255,255,255,0.08);background:rgba(18,24,38,0.75);backdrop-filter:blur(8px);user-select:none;transition:transform .15s,box-shadow .15s,border-color .15s}
.stat-capsule:hover{transform:translateY(-1px)}
.stat-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.35))}
.stat-flame-icon{width:26px;height:26px;filter:drop-shadow(0 2px 8px rgba(255,106,61,0.65));transition:transform .2s cubic-bezier(0.34,1.56,0.64,1)}
.stat-streak:hover .stat-flame-icon{transform:scale(1.2) rotate(-4deg)}
.stat-streak{color:#ff7e47;border-color:rgba(255,94,54,0.35);background:rgba(255,94,54,0.1)}
.stat-streak.stat-active{color:#ff9600;border-color:rgba(255,120,0,0.5);box-shadow:0 0 12px rgba(255,106,61,0.25)}
.stat-freeze{color:#38bdf8;border-color:rgba(56,189,248,0.35);background:rgba(56,189,248,0.09)}
.stat-freeze:hover .stat-icon{transform:scale(1.12)}
.stat-xp{color:var(--accent,#ffc800);border-color:rgba(255,200,0,0.35);background:rgba(255,200,0,0.09)}
.stat-xp:hover .stat-icon{transform:scale(1.15) rotate(5deg)}
.stat-num{font-variant-numeric:tabular-nums;display:inline-flex;align-items:baseline}
.stat-sep{opacity:0.55;font-size:11px;margin:0 1px}

/* 3D Navigation Tab Items */
.tab{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border,#232f40);background:rgba(0,0,0,0.22);color:var(--muted,#8e9bab);font-weight:700;user-select:none;transition:all .18s cubic-bezier(0.16,1,0.3,1);cursor:pointer}
.nav-3d-icon{width:22px;height:22px;object-fit:contain;vertical-align:middle;flex-shrink:0;transition:transform .2s ease;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3))}
.tab:hover{color:#fff;background:#1c2636;border-color:#2d3c52;transform:translateY(-1px)}
.tab:hover .nav-3d-icon{transform:scale(1.12)}
.tab[aria-selected="true"]{color:#fff;background:var(--accent-soft,rgba(255,200,0,0.12));border-color:rgba(255,200,0,0.45);box-shadow:0 4px 16px rgba(255,200,0,0.14)}
.tab[aria-selected="true"] .tab-label{color:var(--accent,#ffc800)}
.tab[aria-selected="true"] .nav-3d-icon{transform:scale(1.15);filter:drop-shadow(0 3px 6px rgba(255,200,0,0.45))}
.tab .cnt{background:var(--orange,#ff9600);color:#fff;font-size:10.5px;font-weight:800;padding:1px 6px;border-radius:8px;margin-inline-start:2px}

/* Hero Focus Stats (Dual Cards) */
.ww-focus-stats{display:flex;align-items:center;gap:14px;flex-shrink:0}
.ww-hero-stat{display:flex;align-items:center;gap:14px;padding:10px 18px;border-radius:18px;background:rgba(18,24,38,0.75);backdrop-filter:blur(10px);border:1.5px solid rgba(255,255,255,0.08);box-shadow:0 6px 20px rgba(0,0,0,0.28);transition:transform .2s cubic-bezier(0.16,1,0.3,1),box-shadow .2s,border-color .2s;user-select:none}
.ww-hero-stat:hover{transform:translateY(-2px)}
.ww-hero-streak{border-color:rgba(255,94,54,0.35);background:linear-gradient(135deg,rgba(255,94,54,0.12) 0%,rgba(18,24,38,0.8) 100%)}
.ww-hero-streak:hover{box-shadow:0 10px 28px rgba(255,94,54,0.28);border-color:rgba(255,94,54,0.6)}
.ww-flame-wrapper{position:relative;display:flex;align-items:center;justify-content:center;width:70px;height:70px;flex-shrink:0}
.ww-flame-hero{width:68px;height:68px;object-fit:contain;filter:drop-shadow(0 8px 24px rgba(255,106,61,0.7));transition:transform .25s cubic-bezier(0.34,1.56,0.64,1);animation:flameBreathe 3s ease-in-out infinite}
.ww-hero-streak:hover .ww-flame-hero{transform:scale(1.15) rotate(-3deg)}
@keyframes flameBreathe{0%,100%{transform:scale(1);filter:drop-shadow(0 6px 18px rgba(255,106,61,0.65))}50%{transform:scale(1.05) translateY(-2px);filter:drop-shadow(0 8px 24px rgba(255,140,0,0.8))}}
.ww-hero-stat-info{display:flex;flex-direction:column;gap:2px;min-width:0}
.ww-hero-stat-main{display:flex;align-items:center;gap:8px;line-height:1}
.ww-hero-streak-num{font-size:34px;font-weight:900;color:#ff8a3d;font-variant-numeric:tabular-nums;letter-spacing:-0.5px;text-shadow:0 2px 12px rgba(255,94,54,0.45)}
.ww-hero-freeze-tag{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:800;color:#38bdf8;background:rgba(56,189,248,0.15);border:1px solid rgba(56,189,248,0.35);padding:2px 6px;border-radius:99px}
.ww-hero-freeze-tag img{vertical-align:middle}
.ww-hero-stat-label{font-size:11.5px;font-weight:700;color:var(--muted,#8e9bab);text-transform:uppercase;letter-spacing:0.5px}

.ww-hero-goal{border-color:rgba(255,200,0,0.35);background:linear-gradient(135deg,rgba(255,200,0,0.1) 0%,rgba(18,24,38,0.8) 100%)}
.ww-hero-goal:hover{box-shadow:0 10px 28px rgba(255,200,0,0.22);border-color:rgba(255,200,0,0.55)}
.ww-goal-ring-wrapper{position:relative;width:54px;height:54px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.ww-goal-gem-icon{position:absolute;width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 2px 6px rgba(255,200,0,0.4));pointer-events:none;transition:transform .2s cubic-bezier(0.34,1.56,0.64,1)}
.ww-hero-goal:hover .ww-goal-gem-icon{transform:scale(1.18) rotate(6deg)}
.ww-hero-goal-num{font-size:26px;font-weight:900;color:var(--accent,#ffc800);font-variant-numeric:tabular-nums;letter-spacing:-0.5px}
.ww-hero-goal-sep{font-size:16px;font-weight:700;color:var(--muted,#8e9bab);margin:0 1px}
.ww-hero-goal-target{font-size:18px;font-weight:800;color:var(--muted,#8e9bab);font-variant-numeric:tabular-nums}
.ww-hero-goal-unit{font-size:12px;font-weight:800;color:var(--accent,#ffc800);margin-inline-start:4px}

@media(min-width:1100px) and (max-width:1320px){
  .ww-focus{align-items:flex-start}
  .ww-focus-stats{flex-direction:column;gap:10px;align-items:stretch}
  .ww-hero-stat{padding:8px 12px;gap:10px}
  .ww-flame-wrapper{width:48px;height:48px}
  .ww-flame-hero{width:48px;height:48px}
  .ww-goal-ring-wrapper{width:46px;height:46px}
  .ww-goal-ring-wrapper svg{width:46px;height:46px}
  .ww-hero-streak-num{font-size:24px}
  .ww-hero-goal-num{font-size:20px}
}
@media(max-width:560px){
  .ww-focus-stats{flex-direction:row;gap:8px;width:100%}
  .ww-hero-stat{flex:1 1 0;min-width:0;padding:8px 10px;gap:8px;border-radius:14px}
  .ww-flame-wrapper{width:44px;height:44px}
  .ww-flame-hero{width:44px;height:44px}
  .ww-goal-ring-wrapper{width:44px;height:44px}
  .ww-goal-ring-wrapper svg{width:44px;height:44px}
  .ww-hero-streak-num{font-size:22px}
  .ww-hero-goal-num{font-size:18px}
  .ww-hero-stat-label{font-size:9.5px}
}

@media(max-width:600px){
  .brand .status{display:none!important}
  .brand-controls-row{justify-content:flex-end!important}
}


/* ===================== DUOLINGO STREAK CELEBRATION MODAL ===================== */
.ww-duo-modal-overlay{position:fixed;inset:0;z-index:99999;background:rgba(10,14,22,0.85);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:16px;opacity:0;pointer-events:none;transition:opacity .25s ease}
.ww-duo-modal-overlay.is-visible{opacity:1;pointer-events:auto}
.ww-duo-modal-card{position:relative;background:#151c28;border:2px solid rgba(255,150,0,0.35);box-shadow:0 20px 60px rgba(0,0,0,0.6),0 0 40px rgba(255,106,61,0.2);border-radius:26px;width:100%;max-width:440px;padding:32px 24px 26px;display:flex;flex-direction:column;align-items:center;text-align:center;transform:scale(0.92) translateY(12px);transition:transform .28s cubic-bezier(0.34,1.56,0.64,1)}
.ww-duo-modal-overlay.is-visible .ww-duo-modal-card{transform:scale(1) translateY(0)}
.ww-duo-close-btn{position:absolute;top:16px;right:18px;width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,0.08);border:0;color:var(--muted,#8e9bab);font-size:16px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s}
html[dir="rtl"] .ww-duo-close-btn{right:auto;left:18px}
.ww-duo-close-btn:hover{background:rgba(255,255,255,0.18);color:#fff}

.ww-duo-flame-hero-wrap{position:relative;width:120px;height:120px;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.ww-duo-flame-hero-img{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 10px 28px rgba(255,106,61,0.7));animation:flamePulse 2.4s ease-in-out infinite}
.ww-duo-flame-num{position:absolute;bottom:12px;font-size:46px;font-weight:900;color:#fff;text-shadow:0 3px 12px rgba(0,0,0,0.8),0 0 20px rgba(255,150,0,0.9);letter-spacing:-1px}
@keyframes flamePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08) translateY(-4px)}}

.ww-duo-title{font-size:28px;font-weight:900;color:#ff9600;margin:6px 0 4px;letter-spacing:-0.5px}
.ww-duo-subtitle{font-size:14px;color:var(--muted,#8e9bab);margin:0 0 20px;line-height:1.5;max-width:320px}

.ww-duo-calendar-card{background:rgba(0,0,0,0.3);border:1.5px solid rgba(255,255,255,0.08);border-radius:18px;padding:16px 14px 12px;width:100%;margin-bottom:16px}
.ww-duo-cal-days{display:flex;justify-content:space-between;gap:6px;width:100%;margin-bottom:12px}
.ww-duo-cal-col{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1}
.ww-duo-cal-lbl{font-size:11px;font-weight:800;color:var(--muted,#8e9bab);text-transform:uppercase}
.ww-duo-cal-col.is-today .ww-duo-cal-lbl{color:#ff9600}
.ww-duo-cal-circle{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.06);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900;color:var(--muted,#8e9bab);border:1.5px solid transparent;transition:transform .2s}
.ww-duo-cal-circle.is-active{background:linear-gradient(135deg,#ff9600,#ff6a3d);color:#fff;border-color:#ffc800;box-shadow:0 4px 14px rgba(255,106,61,0.45);transform:scale(1.05)}
.ww-duo-cal-circle.is-frozen{background:linear-gradient(135deg,#0284c7,#38bdf8);color:#fff;border-color:#7dd3fc;box-shadow:0 4px 14px rgba(56,189,248,0.4)}
.ww-duo-cal-caption{font-size:11.5px;color:var(--muted,#8e9bab);line-height:1.5;margin:0;padding-top:8px;border-top:1px solid rgba(255,255,255,0.06)}

.ww-duo-milestone-box{width:100%;background:rgba(255,200,0,0.07);border:1px solid rgba(255,200,0,0.25);border-radius:14px;padding:10px 14px;margin-bottom:20px;font-size:12.5px;color:#ffda52}
.ww-duo-milestone-progress{display:flex;align-items:center;justify-content:center;gap:8px}
.ww-duo-milestone-progress b{color:#fff;font-size:14px}
.ww-duo-milestone-achieved{font-weight:700;color:#ffc800;line-height:1.4}

.ww-duo-btn-continue{width:100%;min-height:48px;font-size:16px;font-weight:800;border-radius:14px;box-shadow:0 6px 20px rgba(255,200,0,0.3);letter-spacing:0.5px}

/* Enhanced Massive Streak Number in Today Card */
.ww-hero-streak-num{font-size:56px!important;font-weight:900!important;color:#ff9600!important;line-height:0.95!important;font-variant-numeric:tabular-nums;letter-spacing:-1.5px;text-shadow:0 4px 22px rgba(255,120,0,0.65)!important}
@media(max-width:560px){
  .ww-hero-streak-num{font-size:46px!important}
}

/* RTL Hero Greeting Alignment */
html[dir="rtl"] .ww-greeting{flex-direction:row;text-align:right}
html[dir="rtl"] .ww-greeting-text{text-align:right}
html[dir="rtl"] .ww-greeting-text h2{text-align:right;margin-block:6px!important}
html[dir="rtl"] .ww-greeting-text p{text-align:right;margin:0}
html[dir="rtl"] .ww-kicker{text-align:right}

/* RTL Nahla Floating Pet Bubble Fix */
html[dir="rtl"] .nahla-pet-container{right:auto!important;left:24px!important;align-items:flex-start!important}
html[dir="rtl"] .nahla-bubble{direction:rtl!important;text-align:right!important;font-family:var(--f-ar)!important;border-bottom-right-radius:18px!important;border-bottom-left-radius:4px!important;margin-inline-start:12px!important}
html[dir="rtl"] .nahla-bubble::after{right:auto!important;left:24px!important;clip-path:polygon(0 0,100% 0,0 100%)!important}


/* ===================== GAME NUMBERS & DUOLINGO BOLD TYPOGRAPHY ===================== */
:root {
  --f-game: 'Fredoka', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

.stat-num,
.ww-hero-streak-num,
.ww-hero-goal-num,
.ww-duo-streak-count,
.ww-duo-title,
.ww-recall-summary strong,
.kpi b,
.ww-metric-main b,
.tab .cnt,
.ww-progress-label b {
  font-family: var(--f-game)!important;
  font-feature-settings: "tnum" 1;
}

.ww-duo-streak-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 6px;
}

.ww-duo-streak-count {
  font-size: 68px;
  font-weight: 900;
  line-height: 0.95;
  color: #ff9600;
  text-shadow: 0 4px 24px rgba(255, 120, 0, 0.6);
  letter-spacing: -1.5px;
}

.ww-duo-flame-hero-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.ww-duo-flame-hero-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(255, 106, 61, 0.7));
  animation: flamePulse 2.4s ease-in-out infinite;
}

.stat-capsule .stat-num {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  transform: translateY(1px);
}

.ww-hero-streak-num {
  font-size: 60px!important;
  font-weight: 900!important;
  color: #ff9600!important;
  line-height: 0.92!important;
  letter-spacing: -1.5px!important;
  text-shadow: 0 4px 22px rgba(255, 120, 0, 0.65)!important;
}

@media(max-width: 560px) {
  .ww-hero-streak-num {
    font-size: 48px!important;
  }
  .ww-duo-streak-count {
    font-size: 58px!important;
  }
}

/* ===================== NAHLA EMOTIONAL STATE WIDGETS ===================== */
/* 5 Duolingo-style notification banners shown on the dashboard hero area    */

.ww-nahla-state-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 18px;
  width: 100%;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: default;
  animation: bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes bannerSlideIn {
  from { opacity:0; transform:translateY(-10px) scale(0.97); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}

/* streak number pill shared across all states */
.ww-state-streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 99px;
  padding: 4px 10px 4px 8px;
  flex-shrink: 0;
}
.ww-state-streak-pill img { width: 22px; height: 22px; object-fit: contain; }
.ww-state-streak-num {
  font-family: var(--f-game) !important;
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #fff;
  display: inline-flex;
  align-items: center;
  transform: translateY(1.5px);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* warning badge (!) */
.ww-state-warn-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: #ff4b4b; color: #fff;
  font-size: 11px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 2px 6px rgba(255,75,75,0.5);
}

.ww-state-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ww-state-headline {
  font-family: var(--f-game) !important;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.ww-state-sub {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
  color: #fff;
}

.ww-state-emoji { font-size: 42px; line-height: 1; flex-shrink: 0; }

/* ── STATE 1: Last Chance (angry red) ── */
.ww-nahla-state--danger {
  background: linear-gradient(135deg, #7b1a1a 0%, #c0392b 100%);
  border: 1.5px solid rgba(255, 75, 75, 0.5);
  box-shadow: 0 6px 24px rgba(192,57,43,0.4);
  animation: dangerPulse 2s ease-in-out infinite, bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes dangerPulse {
  0%,100% { box-shadow: 0 6px 24px rgba(192,57,43,0.35); }
  50%      { box-shadow: 0 8px 32px rgba(255,75,75,0.65); }
}

/* ── STATE 2: Getting Late (sad purple) ── */
.ww-nahla-state--late {
  background: linear-gradient(135deg, #3b2270 0%, #6c3fa0 100%);
  border: 1.5px solid rgba(150,100,220,0.45);
  box-shadow: 0 6px 24px rgba(108,63,160,0.4);
}

/* ── STATE 3: Frozen (ice cyan) ── */
.ww-nahla-state--frozen {
  background: linear-gradient(135deg, #0a2d40 0%, #0e5f7a 100%);
  border: 1.5px solid rgba(56,189,248,0.5);
  box-shadow: 0 6px 24px rgba(56,189,248,0.3);
}

/* ── STATE 4: Ghost / ignored ── */
.ww-nahla-state--ghost {
  background: linear-gradient(135deg, #1a1f2b 0%, #2d3349 100%);
  border: 1.5px solid rgba(150,160,190,0.25);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  opacity: 0.9;
}

/* ── STATE 5: Pleading / miss you (warm orange) ── */
.ww-nahla-state--miss {
  background: linear-gradient(135deg, #a04a00 0%, #e07020 100%);
  border: 1.5px solid rgba(255,160,60,0.45);
  box-shadow: 0 6px 24px rgba(224,112,32,0.4);
}

/* RTL tweaks */
html[dir="rtl"] .ww-nahla-state-banner { flex-direction: row-reverse; }
html[dir="rtl"] .ww-state-text { text-align: right; }


.ww-state-nahla-img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.45));
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}


/* ── STATE 0: Repair banner (rich violet/magenta) ── */
.ww-nahla-state--repair {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #9333ea 100%);
  border: 1.5px solid rgba(192, 132, 252, 0.65);
  box-shadow: 0 6px 24px rgba(147, 51, 234, 0.45);
  animation: repairGlow 2.5s ease-in-out infinite, bannerSlideIn .35s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes repairGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(147, 51, 234, 0.4); }
  50%      { box-shadow: 0 8px 32px rgba(192, 132, 252, 0.75); }
}

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

/* ── Freeze Equip Sound & Animation ── */
.ww-freeze-equip-pulse {
  animation: freezeEquipPulse 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}
@keyframes freezeEquipPulse {
  0%   { transform: scale(1); filter: brightness(1); }
  35%  { transform: scale(1.22); filter: brightness(1.7) drop-shadow(0 0 16px #38bdf8); }
  65%  { transform: scale(0.95); filter: brightness(1.2) drop-shadow(0 0 8px #0ea5e9); }
  100% { transform: scale(1); filter: brightness(1); }
}
.ww-frost-ripple {
  position: absolute;
  inset: -10px;
  border: 2px solid #38bdf8;
  border-radius: 999px;
  pointer-events: none;
  animation: frostRippleExpand 0.9s ease-out forwards;
}
@keyframes frostRippleExpand {
  0%   { opacity: 0.95; transform: scale(0.7); }
  100% { opacity: 0; transform: scale(1.65); }
}

/* ── Modal: Streak Repair Box ── */
.ww-duo-repair-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(147,51,234,0.18), rgba(192,132,252,0.1));
  border: 1.5px solid rgba(192,132,252,0.45);
  border-radius: 14px;
  padding: 12px 14px;
  width: 100%;
  margin-top: 10px;
}
.ww-duo-repair-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ww-duo-repair-info b {
  font-size: 13px;
  color: #f3e8ff;
  line-height: 1.3;
}
.ww-duo-repair-info span {
  font-size: 11px;
  color: #d8b4fe;
}
.ww-duo-repair-btn {
  background: #a855f7 !important;
  border-color: #9333ea !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(168,85,247,0.4) !important;
  flex-shrink: 0;
}

/* ── Modal: Weekend Amulet Box ── */
.ww-duo-amulet-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 10px;
  width: 100%;
}
.ww-duo-amulet-icon {
  font-size: 26px;
  line-height: 1;
}
.ww-duo-amulet-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.ww-duo-amulet-info b {
  font-size: 13px;
  color: #f1f5f9;
}
.ww-duo-amulet-info span {
  font-size: 11px;
  color: #94a3b8;
}
.ww-duo-cal-circle.is-amulet {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
  background: rgba(56, 189, 248, 0.15) !important;
}

/* Custom Sleek Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 0, 0.25) transparent;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 200, 0, 0.45);
}

/* Guest CTA Pill in Header */
#hdrAccount.guest-pill {
  border-color: rgba(255, 200, 0, 0.35);
  background: rgba(255, 200, 0, 0.08);
  color: #ffc800;
  transition: all 0.15s ease;
}
#hdrAccount.guest-pill:hover {
  background: rgba(255, 200, 0, 0.18);
  border-color: #ffc800;
  transform: translateY(-1px);
}
