:root{
  --orange:#E6680C; --yellow:#FFD813; --red:#E52720; --green:#40AB34; --navy:#2D296E;
  --ink:#181729; --muted:#737286; --page:#F7F7FB; --card:#fff; --line:#E7E6F0;
  --soft-navy:#F0EFFA; --soft-yellow:#FFF8D2; --soft-green:#EEF8ED; --soft-red:#FEEFED;
  --shadow:0 20px 56px rgba(45,41,110,.11);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font-family:"Montserrat",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
h1,h2,h3,.pally,.score-big{font-family:"Pally","Montserrat",system-ui,sans-serif;letter-spacing:-.03em}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
.wrap{width:min(1180px,calc(100% - 32px));margin:auto}
.topbar{position:sticky;top:0;z-index:50;background:rgba(247,247,251,.93);backdrop-filter:blur(16px);border-bottom:1px solid rgba(45,41,110,.08)}
.nav{min-height:72px;display:flex;align-items:center;gap:24px}
.brand img{height:52px;width:auto;display:block}
.links{display:flex;align-items:center;gap:22px;font-size:14px;font-weight:800;color:#56556a}
.links a:hover,.links a[aria-current="page"]{color:var(--navy)}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.streak{background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 12px;font-weight:900;color:var(--red)}
.avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--navy);color:#fff;font-weight:900}
.mobile-menu{display:none;border:1px solid var(--line);background:#fff;border-radius:12px;padding:9px 11px;color:var(--navy);font-weight:900}
.breadcrumb{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:22px 0 0;color:#7c7b8d;font-size:12px;font-weight:750}
.breadcrumb a{color:var(--navy)}
.page-hero{padding:26px 0 14px}
.page-hero-card{background:var(--navy);color:#fff;border-radius:28px;padding:36px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.page-hero-card:before{content:"";position:absolute;left:0;top:0;width:100%;height:7px;background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,var(--navy) 80%)}
.page-hero h1{font-size:clamp(38px,6vw,68px);line-height:1;margin:0 0 12px;max-width:900px}
.page-hero p{max-width:760px;color:#d9d7f4;line-height:1.65;font-weight:650;margin:0}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.btn,.btn-secondary,.btn-light{border:0;border-radius:15px;padding:13px 17px;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn{background:var(--yellow);color:#272252}
.btn-secondary{background:var(--navy);color:#fff}
.btn-light{background:#fff;color:var(--navy)}
.section{padding:28px 0}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:17px}
.section h2{font-size:30px;margin:0}
.sub{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.55;font-weight:650}
.card-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.card{background:#fff;border:1px solid var(--line);border-radius:21px;padding:20px;min-height:205px;box-shadow:0 8px 23px rgba(45,41,110,.05);transition:.16s;display:flex;flex-direction:column}
.card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(45,41,110,.09)}
.card .emoji{font-size:38px;margin-bottom:14px}
.card h3{font-size:22px;margin:0 0 7px}
.card p{color:var(--muted);font-size:12px;line-height:1.55;font-weight:650;margin:0 0 15px}
.card-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto;color:#737286;font-size:11px;font-weight:850}
.card-link{color:var(--navy);font-weight:900}
.accent-yellow{box-shadow:inset 0 4px 0 var(--yellow)}
.accent-orange{box-shadow:inset 0 4px 0 var(--orange)}
.accent-green{box-shadow:inset 0 4px 0 var(--green)}
.accent-red{box-shadow:inset 0 4px 0 var(--red)}
.accent-navy{box-shadow:inset 0 4px 0 var(--navy)}
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:11px}
.category{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;min-height:108px;display:flex;flex-direction:column;justify-content:space-between;font-weight:900;transition:.16s}
.category:hover{transform:translateY(-2px);border-color:#c8c6df}
.category b{font-size:28px}
.category small{display:block;color:var(--muted);font-weight:700;margin-top:4px}
.content-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px}
.panel h2,.panel h3{margin-top:0}
.panel p,.prose p{color:var(--muted);font-size:13px;line-height:1.75;font-weight:620}
.list{display:grid;gap:0}
.list-row{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}
.list-row:last-child{border-bottom:0}
.rank{font-family:"Pally","Montserrat",sans-serif;font-size:21px;font-weight:900;color:var(--navy)}
.list-row h3{font-size:15px;margin:0 0 3px}
.list-row small{color:var(--muted);font-size:11px;font-weight:700}
.tag{border-radius:999px;padding:7px 9px;background:var(--soft-navy);color:var(--navy);font-size:10px;font-weight:900}
.seo-copy{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px}
.seo-copy h2{font-size:25px}
.seo-copy p{color:var(--muted);font-size:13px;line-height:1.75;font-weight:620}
.inline-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:13px}
.inline-links a{background:var(--soft-navy);color:var(--navy);border-radius:999px;padding:8px 11px;font-size:11px;font-weight:900}
.knowledge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.knowledge{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
.knowledge h3{font-size:18px;margin:0 0 8px}
.knowledge p{margin:0;color:var(--muted);font-size:12px;line-height:1.7;font-weight:620}
.socials{display:flex;gap:9px;flex-wrap:wrap}
.social-link{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:10px 13px;color:var(--navy);font-size:12px;font-weight:900}
.social-dot{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px}
.youtube{background:var(--red)}
.instagram{background:linear-gradient(135deg,var(--orange),var(--red),var(--navy))}
.footer{padding:44px 0 68px}
.footer-grid{border-top:1px solid var(--line);padding-top:24px;display:grid;grid-template-columns:1fr auto;gap:22px}
.footer-logo{height:45px;width:auto}
.footer-copy{color:#858496;font-size:11px;line-height:1.6;font-weight:700}
.footer-links{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;color:var(--navy);font-size:11px;font-weight:850}
.challenge-wrap{padding:24px 0 10px}
.challenge{background:var(--navy);border-radius:28px;color:#fff;box-shadow:var(--shadow);overflow:hidden}
.challenge:before{content:"";display:block;height:7px;background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,var(--navy) 80%)}
.challenge-inner{max-width:820px;margin:auto;text-align:center;padding:30px 22px 29px}
.challenge-labels{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}
.challenge-pill{border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.07);padding:7px 11px;border-radius:999px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.challenge-question{font-size:clamp(35px,5vw,59px);line-height:1.04;margin:18px auto 23px;text-wrap:balance}
.answers{display:grid;grid-template-columns:1fr 1fr;gap:13px;max-width:760px;margin:auto}
.answer{min-height:70px;border:2px solid transparent;border-radius:17px;background:#fff;color:var(--navy);font-weight:900;text-align:left;padding:15px 17px;display:flex;gap:11px;align-items:center;box-shadow:0 10px 18px rgba(0,0,0,.08);transition:.15s}
.answer:hover{transform:translateY(-2px);border-color:#c9c7e6}
.answer .key{width:32px;height:32px;border-radius:10px;background:var(--soft-navy);display:grid;place-items:center;flex:none}
.answer.correct{background:var(--soft-green);border-color:var(--green);color:#1f7128}
.answer.wrong{background:var(--soft-red);border-color:var(--red);color:#9d201c}
.answer:disabled{cursor:default;transform:none}
.feedback-area{min-height:105px;margin-top:16px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px}
.feedback{font-weight:900;line-height:1.45}
.feedback small{display:block;color:#d9d7f4;font-weight:650;margin-top:4px}
.points{font-family:"Pally","Montserrat",sans-serif;color:var(--yellow);font-size:25px;font-weight:900;opacity:0;transform:translateY(5px);transition:.2s}
.points.show{opacity:1;transform:none}
.next{min-width:290px;min-height:58px;border:0;border-radius:17px;background:var(--yellow);color:#262151;font-size:18px;font-weight:950}
.next[hidden]{display:none}
.quiz-progress{max-width:760px;margin:9px auto 0}
.progress-head{display:flex;justify-content:space-between;color:#d9d7f4;font-size:11px;font-weight:850;margin-bottom:7px}
.progress{height:7px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--yellow),var(--orange));transition:.25s}
.quiz-tools{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:10px;color:#d9d7f4;font-size:11px;font-weight:750}
.skip{border:0;background:transparent;color:#fff;text-decoration:underline;text-underline-offset:3px;font-weight:850;padding:0}
.quiz-page{max-width:920px;margin:auto}
.question-guide{display:grid;gap:10px}
.qa{background:#fff;border:1px solid var(--line);border-radius:17px;padding:17px}
.qa h3{font-size:16px;margin:0 0 8px}
.qa p{font-size:12px;line-height:1.65;color:var(--muted);margin:0}
.qa strong{color:var(--ink)}
.game-stage{background:var(--navy);color:#fff;border-radius:26px;padding:28px;box-shadow:var(--shadow)}
.game-stage h1{font-size:clamp(37px,5vw,62px);margin:0 0 10px}
.game-stage p{color:#d8d6f4;font-weight:650;line-height:1.6}
.demo-box{background:#fff;color:var(--ink);border-radius:20px;padding:22px;margin-top:20px}
.flag-big{font-size:88px;text-align:center;margin:10px}
.game-choices{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.game-choice{background:var(--soft-navy);border:2px solid transparent;border-radius:14px;padding:14px;color:var(--navy);font-weight:900}
.game-choice:hover{border-color:#c8c6e2}
.word-grid{display:grid;grid-template-columns:repeat(5,52px);gap:7px;justify-content:center;margin:20px 0}
.word-cell{width:52px;height:52px;border:2px solid #d8d7e4;border-radius:9px;display:grid;place-items:center;font-weight:950;font-size:23px;text-transform:uppercase}
.word-input{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.word-input input{border:2px solid var(--line);border-radius:13px;padding:12px 14px;text-transform:uppercase;font-weight:900;letter-spacing:.12em;max-width:220px}
.modal{position:fixed;inset:0;display:none;place-items:center;background:rgba(16,14,38,.74);backdrop-filter:blur(8px);padding:18px;z-index:100}
.modal.show{display:grid}
.result{width:min(610px,100%);background:#fff;border-radius:27px;overflow:hidden;box-shadow:0 30px 90px rgba(0,0,0,.3)}
.result-head{background:var(--navy);color:#fff;text-align:center;padding:25px}
.result-logo{height:56px;width:auto}
.result-head h2{font-size:34px;margin:8px 0}
.result-score{font-family:"Pally","Montserrat",sans-serif;color:var(--yellow);font-size:54px;font-weight:950}
.result-body{padding:22px;text-align:center}
.share-grid{font-size:22px;letter-spacing:2px;margin:13px 0}
.result-actions{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;margin-top:15px}
.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);background:#17162d;color:#fff;border-radius:999px;padding:11px 15px;font-size:11px;font-weight:850;opacity:0;transition:.18s;z-index:120}
.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:920px){
  .links{display:none}.mobile-menu{display:block}
  .card-grid{grid-template-columns:repeat(2,1fr)}
  .category-grid{grid-template-columns:repeat(3,1fr)}
  .content-grid{grid-template-columns:1fr}
  .knowledge-grid{grid-template-columns:1fr}
}
@media(max-width:620px){
  .wrap{width:min(100% - 18px,1180px)}
  .nav{min-height:64px}.brand img{height:43px}.avatar{display:none}
  .page-hero-card{padding:28px 20px}.page-hero h1{font-size:42px}
  .challenge-wrap{padding-top:10px}.challenge{border-radius:22px}
  .challenge-inner{padding:25px 15px 22px}.challenge-question{font-size:37px}
  .answers{grid-template-columns:1fr}.answer{min-height:61px;padding:13px 14px}
  .next{width:100%;min-width:0}
  .card-grid{grid-template-columns:1fr 1fr;gap:10px}.card{padding:16px;min-height:195px}.card h3{font-size:19px}
  .category-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr}
  .game-choices{grid-template-columns:1fr}
}
.share-modal{
  position:fixed;inset:0;display:none;place-items:end center;background:rgba(17,15,40,.68);
  backdrop-filter:blur(8px);padding:16px;z-index:200
}
.share-modal.show{display:grid}
.share-sheet{
  width:min(620px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:28px;
  padding:22px;box-shadow:0 30px 90px rgba(0,0,0,.28);position:relative
}
.share-close{
  position:absolute;right:16px;top:13px;border:0;background:var(--soft-navy);color:var(--navy);
  width:36px;height:36px;border-radius:50%;font-size:22px;line-height:1
}
.share-kicker{font-size:10px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;color:var(--green)}
.share-sheet h2{font-size:28px;margin:6px 0 14px}
.share-preview{margin:0 0 15px}
.share-card{
  background:var(--navy);color:#fff;border-radius:21px;padding:22px;text-align:center;
  border-top:7px solid var(--yellow)
}
.share-card-brand{font-size:12px;font-weight:950;letter-spacing:.1em;text-transform:uppercase;color:#d7d5f4}
.share-card-game{font-size:18px;font-weight:900;margin-top:9px}
.share-card-score{font-family:"Pally","Montserrat",sans-serif;font-size:45px;color:var(--yellow);font-weight:950;margin:12px 0 6px}
.share-card-extra{display:grid;gap:3px;color:#e5e3f6;font-size:11px;font-weight:750}
.share-card-grid{font:21px/1.5 Arial,sans-serif;letter-spacing:2px;white-space:pre-wrap;margin:13px 0 0}
.share-card-cta{margin-top:13px;font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.07em}
.share-actions{display:grid;grid-template-columns:1.25fr 1fr;gap:8px}
.share-actions button,.share-channels button{
  border:0;border-radius:13px;padding:12px 13px;font-weight:900
}
.share-main{background:var(--navy);color:#fff}
.share-secondary{background:#f2f1f6;color:var(--navy)}
.share-channels{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:8px}
.share-channels button{font-size:10px;background:#fff;border:1px solid var(--line);color:var(--navy)}
.data-strip{
  display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px
}
.data-metric{background:#fff;border:1px solid var(--line);border-radius:15px;padding:13px}
.data-metric strong{display:block;font-size:20px;color:var(--navy)}
.data-metric span{display:block;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;margin-top:3px}
.player-data-card{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.player-data-card>div{background:#f7f7fb;border-radius:14px;padding:13px}
.player-data-card strong{display:block;color:var(--navy);font-size:19px}
.player-data-card span{display:block;color:var(--muted);font-size:9px;font-weight:900;margin-top:3px;text-transform:uppercase}
.data-table{display:grid;gap:0}
.data-row{display:grid;grid-template-columns:60px 1fr auto;gap:10px;padding:12px 10px;border-bottom:1px solid var(--line);align-items:center}
.data-row.is-me{background:var(--soft-yellow);border-radius:12px;border-bottom-color:transparent}
.data-rank{color:var(--navy);font-weight:950}.data-name{font-weight:800}.data-value{font-weight:950;color:var(--navy)}
.daily-score-card{
  background:var(--navy);color:#fff;border-radius:20px;padding:19px;display:grid;grid-template-columns:1fr auto;gap:15px;align-items:center
}
.daily-score-card strong{font-family:"Pally","Montserrat",sans-serif;font-size:34px;color:var(--yellow)}
.daily-score-card span{display:block;color:#d8d6f4;font-size:11px;font-weight:750;margin-top:3px}
@media(max-width:620px){
  .share-modal{padding:0;align-items:end}
  .share-sheet{border-radius:26px 26px 0 0;max-height:94vh}
  .share-actions{grid-template-columns:1fr}
  .share-channels{grid-template-columns:1fr 1fr}
  .data-strip{grid-template-columns:1fr 1fr}
  .player-data-card{grid-template-columns:1fr}
}
.quiz-modal{position:fixed;inset:0;background:rgba(15,14,35,.68);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;padding:18px;z-index:160}
.quiz-modal.show{display:flex}
.quiz-modal-card{
  width:min(560px,100%);background:#fff;border-radius:28px;padding:26px 24px 22px;
  box-shadow:0 30px 100px rgba(0,0,0,.24);position:relative
}
.quiz-modal-close{
  position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;border-radius:50%;
  background:var(--soft-navy);color:var(--navy);font-size:24px;font-weight:900
}
.quiz-modal-card h3{margin:0 0 6px;font-size:34px;color:var(--navy)}
.quiz-modal-meta{color:var(--muted);font-size:13px;font-weight:800;margin-bottom:14px}
.quiz-modal-grid{
  white-space:pre-wrap;font-size:26px;line-height:1.4;letter-spacing:2px;
  text-align:center;background:#f8f7fb;border:1px solid var(--line);border-radius:18px;padding:16px;margin:10px 0 14px
}
.quiz-modal-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.inline-share{
  margin-top:16px;padding-top:16px;border-top:1px solid var(--line)
}
.inline-share-label{
  text-align:center;color:var(--ink);font-size:13px;font-weight:900;margin-bottom:10px
}
.inline-share-actions{
  display:grid;grid-template-columns:repeat(5,1fr);gap:8px
}
.inline-share-btn{
  border:1px solid var(--line);background:#fff;border-radius:16px;padding:10px 6px;
  display:grid;place-items:center;gap:4px;color:var(--navy);font-weight:900
}
.inline-share-btn span{font-size:20px;line-height:1}
.inline-share-btn small{font-size:10px;line-height:1.1}
.inline-share-btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(45,41,110,.08)}
.share-sheet{outline:none}
@media(max-width:620px){
  .quiz-modal-card{padding:24px 16px 18px;border-radius:22px}
  .quiz-modal-card h3{font-size:28px}
  .quiz-modal-grid{font-size:23px}
  .inline-share-actions{grid-template-columns:repeat(3,1fr)}
}
.daily-score-card{
  background:linear-gradient(135deg,#2D296E 0%, #37338a 100%);
  color:#fff;
  border-radius:28px;
  padding:26px;
  box-shadow:0 18px 40px rgba(45,41,110,.18)
}
.daily-score-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
  flex-wrap:wrap
}
.daily-score-copy{
  flex:1 1 620px;
  min-width:0
}
.daily-score-copy h2{
  margin:0 0 10px;
  font-size:24px;
  color:#fff
}
.daily-score-copy p{
  margin:0;
  color:#dddaf8;
  font-size:16px;
  line-height:1.65;
  font-weight:760
}
.daily-score-copy p strong{
  color:var(--yellow);
  font-weight:950
}
.daily-score-total{
  flex:0 0 340px;
  max-width:100%;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  border-radius:22px;
  padding:18px 20px
}
.daily-score-total-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#d8d6f4;
  font-weight:900
}
.daily-score-main{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin-top:8px
}
.daily-score-number{
  font-family:"Pally","Montserrat",sans-serif;
  font-size:68px;
  line-height:.9;
  color:var(--yellow)
}
.daily-score-outof{
  font-size:24px;
  color:#dddaf8;
  font-weight:900;
  padding-bottom:10px
}
.daily-score-note{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:#eceaf9;
  font-size:12px;
  font-weight:850
}
.daily-score-note strong{
  color:#fff
}
.daily-score-helper{
  margin:0 0 16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:16px
}
.daily-score-helper h3{
  margin:0 0 7px;
  font-size:15px;
  color:#fff
}
.daily-score-helper p{
  margin:0;
  color:#dddaf8;
  font-size:14px;
  line-height:1.65
}
.daily-score-breakdown{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.daily-score-item{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px
}
.daily-score-item-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px
}
.daily-score-item-name{
  font-size:14px;
  font-weight:900;
  color:#fff
}
.daily-score-item-value{
  font-size:22px;
  font-weight:950;
  color:var(--yellow);
  white-space:nowrap
}
.daily-score-progress{
  height:10px;
  background:rgba(255,255,255,.15);
  border-radius:999px;
  overflow:hidden
}
.daily-score-progress > span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--yellow),#ffe657)
}
.daily-score-item small{
  display:block;
  margin-top:8px;
  color:#dddaf8;
  font-size:11px;
  line-height:1.45;
  font-weight:800
}
@media(max-width:1100px){
  .daily-score-breakdown{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
@media(max-width:860px){
  .daily-score-card{
    padding:20px
  }
  .daily-score-total{
    flex:1 1 100%
  }
  .daily-score-copy p{
    font-size:15px
  }
  .daily-score-number{
    font-size:58px
  }
}
@media(max-width:620px){
  .daily-score-card{
    padding:18px;
    border-radius:22px
  }
  .daily-score-copy h2{
    font-size:22px
  }
  .daily-score-copy p,
  .daily-score-helper p{
    font-size:13px
  }
  .daily-score-breakdown{
    grid-template-columns:1fr
  }
  .daily-score-note{
    border-radius:18px
  }
  .daily-score-outof{
    font-size:20px
  }
}
.brain-score-section{padding-top:30px}
.brain-score-panel{
  background:linear-gradient(135deg,#2D296E 0%,#37338A 100%);
  color:#fff;
  border-radius:28px;
  padding:28px;
  box-shadow:0 18px 48px rgba(45,41,110,.18)
}
.brain-score-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:28px
}
.brain-score-copy{
  flex:1 1 auto;
  min-width:0
}
.brain-score-eyebrow{
  color:var(--yellow);
  font-size:11px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
  margin-bottom:6px
}
.brain-score-copy h2{
  margin:0 0 8px;
  color:#fff;
  font-size:30px
}
.brain-score-copy p{
  margin:0;
  max-width:780px;
  color:#dddaf8;
  font-size:14px;
  line-height:1.65;
  font-weight:700
}
.brain-score-copy p strong{color:var(--yellow)}
.brain-score-total{
  flex:0 0 auto;
  min-width:260px;
  text-align:right
}
.brain-score-total-label{
  display:block;
  color:#d8d6f4;
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:5px
}
.brain-score-total-line{
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap:8px
}
.brain-score-total-line strong{
  color:var(--yellow);
  font-family:"Pally","Montserrat",system-ui,sans-serif;
  font-size:58px;
  line-height:.9;
  letter-spacing:-.03em
}
.brain-score-total-line span{
  color:#dddaf8;
  font-size:18px;
  font-weight:900;
  padding-bottom:6px
}
.brain-score-status{
  margin:18px 0 20px;
  padding:13px 15px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
  border-radius:16px
}
.brain-score-status-line{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  color:#f0eefb;
  font-size:12px;
  font-weight:850
}
.brain-score-status-line strong{color:#fff}
.brain-score-dot{opacity:.55}
.brain-score-completion-track{
  height:6px;
  background:rgba(255,255,255,.14);
  border-radius:999px;
  overflow:hidden;
  margin-top:10px
}
.brain-score-completion-track span{
  display:block;
  height:100%;
  background:var(--yellow)
}
.brain-score-games{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.brain-score-game{
  min-width:0;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:15px
}
.brain-score-game-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:11px
}
.brain-score-game-head>div{
  min-width:0;
  display:flex;
  align-items:center;
  gap:8px
}
.brain-score-game-icon{
  flex:0 0 auto;
  font-size:17px
}
.brain-score-game-head strong{
  color:#fff;
  font-size:13px;
  white-space:nowrap
}
.brain-score-game-points{
  color:var(--yellow);
  font-size:20px;
  font-weight:950;
  white-space:nowrap
}
.brain-score-game-track{
  height:9px;
  background:rgba(255,255,255,.14);
  border-radius:999px;
  overflow:hidden
}
.brain-score-game-track span{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--yellow),#ffe75f)
}
.brain-score-game small{
  display:block;
  color:#dedcf5;
  font-size:10px;
  font-weight:800;
  line-height:1.45;
  margin-top:8px
}
.brain-score-explainer{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-top:15px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.11)
}
.brain-score-explainer strong{
  flex:0 0 auto;
  color:#fff;
  font-size:12px
}
.brain-score-explainer span{
  color:#d8d6f4;
  font-size:11px;
  line-height:1.55;
  font-weight:700
}
@media(max-width:1000px){
  .brain-score-games{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .brain-score-header{flex-direction:column}
  .brain-score-total{text-align:left;min-width:0}
  .brain-score-total-line{justify-content:flex-start}
}
@media(max-width:620px){
  .brain-score-panel{padding:19px;border-radius:22px}
  .brain-score-copy h2{font-size:25px}
  .brain-score-copy p{font-size:13px}
  .brain-score-total-line strong{font-size:50px}
  .brain-score-games{grid-template-columns:1fr}
  .brain-score-game-head strong{white-space:normal}
  .brain-score-explainer{flex-direction:column;gap:5px}
}
.auth-header-cta{
  border:0;
  border-radius:999px;
  padding:10px 13px;
  background:var(--yellow);
  color:var(--navy);
  font-size:11px;
  font-weight:950;
  white-space:nowrap
}
.auth-header-cta.is-saved{
  background:var(--soft-green);
  color:#28792c;
  border:1px solid #cae8c6
}
.auth-modal{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  padding:18px;
  background:rgba(17,15,40,.72);
  backdrop-filter:blur(8px);
  z-index:300
}
.auth-modal.show{display:grid}
.auth-dialog{
  width:min(520px,100%);
  max-height:92vh;
  overflow:auto;
  position:relative;
  background:#fff;
  border-radius:28px;
  padding:28px;
  box-shadow:0 30px 100px rgba(0,0,0,.28)
}
.auth-close{
  position:absolute;
  right:15px;
  top:15px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:var(--soft-navy);
  color:var(--navy);
  font-size:24px;
  font-weight:900
}
.auth-brandmark,.auth-success-icon{
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  margin-bottom:16px;
  background:var(--navy);
  color:#fff;
  font-family:"Pally","Montserrat",sans-serif;
  font-size:25px;
  font-weight:950
}
.auth-success-icon{background:var(--green)}
.auth-kicker{
  color:var(--green);
  font-size:10px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase
}
.auth-dialog h2{
  margin:5px 0 8px;
  color:var(--navy);
  font-size:31px
}
.auth-lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.65;
  font-weight:680
}
.auth-keep,.auth-success-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:0 0 18px
}
.auth-keep>div,.auth-success-stats>div{
  background:#f7f7fb;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px
}
.auth-keep strong,.auth-success-stats strong{
  display:block;
  color:var(--navy);
  font-size:14px
}
.auth-keep span,.auth-success-stats span{
  display:block;
  color:var(--muted);
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  margin-top:3px
}
.auth-provider-list{display:grid;gap:9px}
.auth-provider{
  width:100%;
  min-height:50px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:var(--ink);
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px
}
.auth-provider:hover{background:#fafafe}
.auth-provider-icon{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f0eff5;
  color:#20202b;
  font-weight:950
}
.auth-apple{background:#17171d;color:#fff;border-color:#17171d}
.auth-apple:hover{background:#24242c}
.auth-apple .auth-provider-icon{background:#fff;color:#17171d}
.auth-divider{
  display:flex;
  align-items:center;
  gap:10px;
  color:#9b9aaa;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
  margin:14px 0
}
.auth-divider:before,.auth-divider:after{
  content:"";
  height:1px;
  flex:1;
  background:var(--line)
}
.auth-email-form label,.profile-settings-grid label{
  display:block;
  margin-bottom:7px;
  color:var(--ink);
  font-size:11px;
  font-weight:900
}
.auth-email-row,.profile-setting-row{
  display:flex;
  gap:8px
}
.auth-email-row input,.profile-setting-row input{
  min-width:0;
  flex:1;
  border:2px solid var(--line);
  border-radius:13px;
  padding:12px 13px;
  outline:none
}
.auth-email-row input:focus,.profile-setting-row input:focus{
  border-color:#b9b6dc
}
.auth-email-row button,.profile-setting-row button{
  border:0;
  border-radius:13px;
  padding:0 16px;
  background:var(--navy);
  color:#fff;
  font-weight:900
}
.auth-error{
  min-height:17px;
  color:var(--red);
  font-size:10px;
  font-weight:800;
  margin-top:5px
}
.auth-not-now{
  display:block;
  margin:13px auto 0;
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:11px;
  font-weight:850
}
.auth-prototype-note{
  margin:14px 0 0;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:#9998a6;
  font-size:9px;
  line-height:1.55;
  text-align:center
}
.auth-demo-callout{
  display:grid;
  gap:3px;
  padding:14px;
  border-radius:14px;
  background:var(--soft-yellow);
  color:#655600;
  font-size:11px;
  margin:14px 0
}
.auth-primary,.auth-secondary,.auth-link-btn{
  min-height:48px;
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:950;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center
}
.auth-primary{width:100%;background:var(--navy);color:#fff}
.auth-secondary{background:#f1f0f6;color:var(--navy)}
.auth-success-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.save-progress-card{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  margin-top:16px;
  padding:13px;
  border:1px solid #e4dfac;
  border-radius:16px;
  background:var(--soft-yellow)
}
.save-progress-icon{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#fff;
  color:var(--navy);
  font-size:18px
}
.save-progress-copy strong{
  display:block;
  color:var(--ink);
  font-size:12px
}
.save-progress-copy span{
  display:block;
  color:#736d49;
  font-size:10px;
  line-height:1.45;
  font-weight:700;
  margin-top:2px
}
.save-progress-card button{
  border:0;
  border-radius:12px;
  background:var(--navy);
  color:#fff;
  padding:10px 12px;
  font-size:10px;
  font-weight:950
}
.auth-toast{
  position:fixed;
  left:50%;
  bottom:24px;
  transform:translate(-50%,14px);
  opacity:0;
  transition:.18s;
  z-index:400;
  background:#19182d;
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font-size:11px;
  font-weight:850
}
.auth-toast.show{opacity:1;transform:translate(-50%,0)}
.profile-guest-hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  margin-bottom:20px
}
.profile-guest-hero h1{
  margin:5px 0 9px;
  color:var(--navy);
  font-size:34px
}
.profile-guest-hero p{
  color:var(--muted);
  line-height:1.65;
  font-size:13px;
  font-weight:650
}
.profile-guest-hero .btn-light{border:1px solid var(--line);margin-left:6px}
.profile-guest-preview{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px
}
.profile-guest-preview>div{
  background:#f7f7fb;
  border-radius:15px;
  padding:14px
}
.profile-guest-preview strong{
  display:block;
  color:var(--navy);
  font-size:20px
}
.profile-guest-preview span{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  text-transform:uppercase
}
.profile-account-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:22px;
  margin-top:18px
}
.profile-account-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px
}
.profile-account-head h2{margin:4px 0 3px;font-size:27px}
.profile-account-head p{margin:0;color:var(--muted);font-size:11px;font-weight:700}
.profile-cloud-badge{
  background:var(--soft-green);
  color:#28792c;
  border-radius:999px;
  padding:8px 10px;
  font-size:10px;
  font-weight:900
}
.profile-settings-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.profile-leaderboard-setting{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  border:1px solid var(--line);
  border-radius:13px;
  padding:8px 10px
}
.profile-leaderboard-setting span{font-size:11px;color:var(--muted);font-weight:700}
.profile-leaderboard-setting button{
  border:0;
  background:var(--soft-navy);
  color:var(--navy);
  border-radius:10px;
  padding:8px 10px;
  font-size:9px;
  font-weight:900
}
.auth-signout{
  margin-top:18px;
  border:0;
  background:transparent;
  color:var(--red);
  font-size:10px;
  font-weight:900
}
@media(max-width:820px){
  .auth-header-cta{display:none}
  .profile-guest-hero{grid-template-columns:1fr}
}
@media(max-width:620px){
  .auth-dialog{padding:24px 16px 18px;border-radius:23px}
  .auth-keep,.auth-success-stats{grid-template-columns:1fr}
  .auth-success-actions{grid-template-columns:1fr}
  .auth-email-row{flex-direction:column}
  .auth-email-row button{min-height:46px}
  .save-progress-card{grid-template-columns:auto 1fr}
  .save-progress-card button{grid-column:1/-1;width:100%}
  .profile-guest-preview{grid-template-columns:1fr 1fr}
  .profile-settings-grid{grid-template-columns:1fr}
}
.rankings-shell{padding:26px 0 56px}
.rankings-intro{background:var(--navy);color:#fff;border-radius:28px;padding:30px;position:relative;overflow:hidden}
.rankings-intro:before{content:"";position:absolute;left:0;right:0;top:0;height:7px;background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,#fff0 80%)}
.rankings-intro h1{font-size:clamp(42px,6vw,68px);margin:0 0 8px}
.rankings-intro p{margin:0;color:#dddaf8;max-width:760px;line-height:1.65;font-size:13px;font-weight:680}
.ranking-mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0 12px}
.ranking-mode-tabs button{min-height:48px;border:1px solid var(--line);background:#fff;border-radius:15px;color:var(--navy);font-weight:950}
.ranking-mode-tabs button.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.ranking-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;background:#fff;border:1px solid var(--line);border-radius:19px;padding:12px;margin-bottom:16px}
.ranking-filter label{display:block;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase;margin:0 0 5px 2px}
.ranking-filter select{width:100%;border:1px solid var(--line);background:#f8f8fb;border-radius:12px;padding:10px 11px;color:var(--ink);font-weight:850}
.ranking-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-bottom:14px}
.ranking-summary>div{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px}
.ranking-summary span{display:block;color:var(--muted);font-size:9px;font-weight:900;text-transform:uppercase}
.ranking-summary strong{display:block;color:var(--navy);font-size:13px;margin-top:3px}
.ranking-podium{display:grid;grid-template-columns:1fr 1.12fr 1fr;gap:12px;align-items:end;margin:18px 0}
.podium-card{min-height:205px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative}
.podium-card.first{min-height:245px;border-top:6px solid var(--yellow)}
.podium-card.second{border-top:6px solid #b7bbc6}
.podium-card.third{border-top:6px solid #c6854f}
.podium-card.is-me{box-shadow:0 0 0 3px rgba(64,171,52,.23)}
.podium-medal{font-size:28px;position:absolute;top:12px;right:13px}
.ranking-avatar{width:54px;height:54px;border-radius:50%;background:var(--soft-navy);color:var(--navy);display:grid;place-items:center;font-size:20px;font-weight:950;margin-bottom:9px}
.ranking-avatar.small{width:34px;height:34px;font-size:13px;margin:0;flex:none}
.ranking-crest{width:56px;height:62px;clip-path:polygon(50% 0,92% 17%,84% 72%,50% 100%,16% 72%,8% 17%);background:var(--crest,#FFD813);display:grid;place-items:center;font-size:25px;margin-bottom:9px;box-shadow:inset 0 0 0 3px rgba(255,255,255,.45)}
.podium-name{color:var(--ink);font-size:16px}
.podium-country{color:var(--muted);font-size:10px;font-weight:750;margin-top:4px}
.podium-score{color:var(--navy);font-size:25px;font-weight:950;margin-top:11px}
.podium-card small{color:var(--muted);font-size:9px;margin-top:4px;font-weight:800}
.ranking-list{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.ranking-list-head,.ranking-row{display:grid;grid-template-columns:74px 1fr minmax(110px,auto);gap:12px;align-items:center}
.ranking-list-head{padding:11px 16px;background:#f6f5fa;color:var(--muted);font-size:9px;font-weight:950;text-transform:uppercase}
.ranking-row{padding:13px 16px;border-top:1px solid var(--line)}
.ranking-row.is-me{background:var(--soft-yellow)}
.ranking-position{font-family:"Pally","Montserrat",sans-serif;color:var(--navy);font-size:19px;font-weight:950}
.ranking-identity{display:flex;align-items:center;gap:10px;min-width:0}
.ranking-identity .ranking-crest{width:38px;height:42px;font-size:16px;margin:0;flex:none}
.ranking-identity strong{display:block;font-size:12px}
.ranking-identity small{display:block;color:var(--muted);font-size:9px;font-weight:700;margin-top:2px}
.ranking-row-score{text-align:right;color:var(--navy);font-size:14px;font-weight:950}
.your-rank-card{margin-top:12px;background:var(--navy);color:#fff;border-radius:18px;padding:14px 16px;display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center}
.your-rank-card>div:first-child span{display:block;color:#d8d6f4;font-size:9px;font-weight:900;text-transform:uppercase}
.your-rank-card>div:first-child strong{display:block;color:var(--yellow);font-size:28px}
.your-rank-name{display:flex;align-items:center;gap:9px}
.your-rank-name .ranking-crest{width:36px;height:40px;font-size:15px;margin:0}
.your-rank-score{font-size:18px;font-weight:950}
.your-rank-card.unavailable{background:#fff;color:var(--ink);border:1px solid var(--line);grid-template-columns:1fr}
.your-rank-card.unavailable strong{color:var(--navy)}
.ranking-warning{display:block;color:var(--red);font-size:10px;font-weight:850}
.ranking-more-wrap{text-align:center;margin-top:13px}
.ranking-more{border:0;border-radius:14px;background:var(--navy);color:#fff;padding:12px 18px;font-weight:900}
.ranking-gate{background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.ranking-gate strong{display:block;color:var(--navy);font-size:18px}
.ranking-gate span{display:block;color:var(--muted);font-size:11px;line-height:1.55;margin-top:4px}
.social-section-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.social-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:20px}
.social-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.social-panel-head h2{margin:0;font-size:25px}
.social-panel-head p{margin:4px 0 0;color:var(--muted);font-size:10px;line-height:1.5;font-weight:700}
.friend-code{display:flex;align-items:center;gap:6px;background:#f7f7fb;border-radius:12px;padding:7px 8px}
.friend-code span{font-size:8px;color:var(--muted);font-weight:900;text-transform:uppercase}
.friend-code strong{color:var(--navy);font-size:11px}
.friend-code button{border:0;background:var(--soft-navy);color:var(--navy);border-radius:8px;padding:6px 7px;font-size:8px;font-weight:900}
.add-friend-row{display:flex;gap:8px}
.add-friend-row input,.social-input{min-width:0;width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;outline:none}
.add-friend-row button{border:0;background:var(--navy);color:#fff;border-radius:12px;padding:0 13px;font-weight:900;white-space:nowrap}
.social-subtitle{margin:16px 0 7px;color:var(--muted);font-size:9px;font-weight:950;text-transform:uppercase}
.friend-list{display:grid;gap:7px}
.friend-row{display:grid;grid-template-columns:auto 1fr auto auto auto;gap:9px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:9px}
.social-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--soft-navy);color:var(--navy);font-size:12px;font-weight:950}
.friend-row strong{display:block;font-size:11px}.friend-row small{display:block;color:var(--muted);font-size:8px;font-weight:700}
.friend-stat{text-align:right}.friend-stat strong{color:var(--navy)}.friend-stat span{font-size:7px;color:var(--muted);font-weight:900;text-transform:uppercase}
.friend-menu{border:0;background:#f4f3f7;color:var(--muted);width:28px;height:28px;border-radius:9px}
.friend-action{border:0;border-radius:9px;padding:7px 9px;font-size:8px;font-weight:900}
.friend-action.primary{background:var(--green);color:#fff}
.social-ranking-link{display:inline-block;margin-top:12px;color:var(--navy);font-size:10px;font-weight:900}
.social-locked{min-height:150px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px dashed #d3d1e1;border-radius:16px;padding:17px;background:#fafafd}
.social-locked strong{display:block;color:var(--navy);font-size:15px}.social-locked span{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:3px}
.group-grid{display:grid;gap:10px}
.group-card{border:1px solid var(--line);border-radius:16px;padding:13px}
.group-card-head{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}
.social-group-crest{width:46px;height:51px;clip-path:polygon(50% 0,92% 17%,84% 72%,50% 100%,16% 72%,8% 17%);background:var(--crest);display:grid;place-items:center;font-size:19px}
.group-card h3{margin:0;font-size:16px}.group-card small{color:var(--muted);font-size:8px;font-weight:750}
.group-edit{border:0;background:var(--soft-navy);color:var(--navy);border-radius:9px;padding:7px 8px;font-size:8px;font-weight:900}
.group-member-stack{display:flex;margin:12px 0}
.group-member-stack span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#f0eff7;color:var(--navy);border:2px solid #fff;font-size:9px;font-weight:950;margin-left:-5px}
.group-member-stack span:first-child{margin-left:0}
.group-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.group-stats>div{background:#f8f8fb;border-radius:10px;padding:9px}
.group-stats strong{display:block;color:var(--navy);font-size:13px}.group-stats span{display:block;color:var(--muted);font-size:7px;font-weight:900;text-transform:uppercase}
.group-card-actions{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
.group-card-actions a{color:var(--navy);font-size:9px;font-weight:900}.group-card-actions button{border:0;background:transparent;color:var(--red);font-size:8px;font-weight:900}
.group-empty{border:1px dashed var(--line);border-radius:15px;padding:18px;text-align:center}.group-empty strong{display:block}.group-empty span{color:var(--muted);font-size:10px}
.social-modal{position:fixed;inset:0;display:none;place-items:center;background:rgba(17,15,40,.7);backdrop-filter:blur(7px);padding:18px;z-index:320}
.social-modal.show{display:grid}
.social-dialog{width:min(530px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:24px;padding:24px;position:relative}
.social-modal-close{position:absolute;right:14px;top:13px;width:36px;height:36px;border:0;border-radius:50%;background:var(--soft-navy);color:var(--navy);font-size:22px}
.social-dialog h2{margin:4px 0 7px;font-size:28px}
.social-label{display:flex;justify-content:space-between;margin:14px 0 6px;font-size:10px;font-weight:900;color:var(--ink)}
.social-choice-row{display:flex;gap:7px;flex-wrap:wrap}
.social-icon-choice{width:42px;height:42px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:19px}
.social-icon-choice.active{box-shadow:0 0 0 3px rgba(45,41,110,.18);border-color:var(--navy)}
.social-color-choice{width:34px;height:34px;border:3px solid #fff;border-radius:50%;background:var(--choice);box-shadow:0 0 0 1px var(--line)}
.social-color-choice.active{box-shadow:0 0 0 3px var(--navy)}
.social-friend-select{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.social-friend-select label{display:grid;grid-template-columns:auto auto 1fr;gap:7px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:8px}
.social-friend-select strong{display:block;font-size:10px}.social-friend-select small{font-size:8px;color:var(--muted)}
@media(max-width:900px){.ranking-filters,.ranking-summary{grid-template-columns:repeat(2,1fr)}.social-section-grid{grid-template-columns:1fr}}
@media(max-width:650px){.ranking-mode-tabs{grid-template-columns:1fr}.ranking-filters,.ranking-summary{grid-template-columns:1fr}.ranking-podium{grid-template-columns:1fr}.podium-card,.podium-card.first{min-height:185px}.ranking-list-head,.ranking-row{grid-template-columns:55px 1fr auto}.your-rank-card{grid-template-columns:1fr auto}.your-rank-name{grid-column:1/-1}.friend-row{grid-template-columns:auto 1fr auto}.friend-stat{display:none}.social-friend-select{grid-template-columns:1fr}.social-panel-head{flex-direction:column}}
.rankings-title-row{
  display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 14px
}
.rankings-title-row h1{
  margin:0;color:var(--navy);font-size:clamp(34px,5vw,52px);line-height:1
}
.rankings-group-link{
  display:grid;grid-template-columns:auto auto;column-gap:8px;align-items:center;
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px 12px;color:var(--navy)
}
.rankings-group-link>span{grid-row:1/3;font-size:22px}
.rankings-group-link strong{font-size:10px}.rankings-group-link small{font-size:8px;color:var(--muted);font-weight:750}
.rankings-shell .ranking-mode-tabs{margin-top:0}
.groups-hero{padding:28px 0 8px}
.groups-hero-inner{
  background:var(--navy);color:#fff;border-radius:26px;padding:26px;
  display:flex;align-items:center;justify-content:space-between;gap:22px
}
.groups-hero h1{margin:3px 0 5px;font-size:48px}.groups-hero p{max-width:720px;margin:0;color:#dddaf8;font-size:13px;line-height:1.6}
.groups-ranking-cta{
  flex:0 0 310px;display:flex;align-items:center;gap:11px;background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.13);border-radius:17px;padding:14px;color:#fff
}
.groups-ranking-cta>span{font-size:27px}.groups-ranking-cta strong,.groups-ranking-cta small{display:block}
.groups-ranking-cta small{color:#d9d7ef;font-size:9px;margin-top:2px}
.groups-primary-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}
.groups-main-panel{min-height:330px}
.groups-side{display:grid;gap:9px;align-content:start}
.groups-feature-card{display:grid;grid-template-columns:35px 1fr;gap:9px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px}
.groups-feature-card>span{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--yellow);color:var(--navy);font-weight:950}
.groups-feature-card strong,.groups-feature-card small{display:block}.groups-feature-card strong{font-size:11px}.groups-feature-card small{font-size:8px;color:var(--muted);margin-top:2px}
.groups-friends-link{text-align:center}
.home-group-card{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center;
  padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:22px
}
.home-group-card.has-group{grid-template-columns:auto minmax(0,1fr) auto auto}
.home-group-card .social-group-crest{margin:0;width:58px;height:64px;font-size:25px}
.home-group-symbol{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:var(--soft-yellow);font-size:27px}
.home-group-copy h2{margin:3px 0 4px;font-size:24px}.home-group-copy p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.home-group-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.home-group-actions>a:not(.btn-secondary){font-size:10px;color:var(--navy);font-weight:900}
.home-group-score{text-align:right}.home-group-score span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;font-weight:900}.home-group-score strong{display:block;color:var(--navy);font-size:25px}
.quiz-pack-wrap{padding-top:8px}
.quiz-pack-bar{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 12px
}
.quiz-pack-info strong,.quiz-pack-info span{display:block}
.quiz-pack-info strong{font-size:12px;color:var(--navy)}
.quiz-pack-info span{font-size:8px;color:var(--muted);font-weight:850;margin-top:2px;text-transform:uppercase}
.quiz-difficulty-tabs{display:flex;gap:7px}
.quiz-difficulty-tabs a{
  min-width:82px;text-align:center;border:1px solid var(--line);border-radius:11px;padding:8px 10px;
  color:var(--navy);font-size:10px;font-weight:900;background:#f8f8fb
}
.quiz-difficulty-tabs a.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.question-guide{counter-reset:none}
.qa h3{font-size:15px}
.card-meta span:first-child{white-space:nowrap}
@media(max-width:800px){
  .groups-hero-inner{flex-direction:column;align-items:flex-start}.groups-ranking-cta{flex-basis:auto;width:100%}
  .groups-primary-grid{grid-template-columns:1fr}
  .home-group-card,.home-group-card.has-group{grid-template-columns:auto 1fr}.home-group-actions,.home-group-score{grid-column:1/-1;justify-content:flex-start;text-align:left}
}
@media(max-width:620px){
  .rankings-title-row{align-items:flex-start}.rankings-group-link small{display:none}
  .quiz-pack-bar{align-items:flex-start;flex-direction:column}.quiz-difficulty-tabs{width:100%}.quiz-difficulty-tabs a{flex:1;min-width:0}
}
.daily-quiz-main{
  padding-top:24px
}
.daily-only-challenge{
  padding-top:0
}
.daily-only-challenge .challenge{
  margin-top:0
}
.daily-result-inline{
  text-align:center;
  padding:8px 0 2px
}
.daily-result-kicker{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(255,216,19,.13);
  color:var(--yellow);
  font-size:10px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase
}
.daily-result-inline h1{
  color:#fff;
  font-size:clamp(34px,5vw,52px);
  margin:12px 0 20px
}
.daily-result-score-row{
  display:grid;
  grid-template-columns:1.35fr repeat(3,1fr);
  gap:10px;
  max-width:820px;
  margin:0 auto
}
.daily-result-score,
.daily-result-stat{
  min-width:0;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  border-radius:18px;
  padding:17px 12px
}
.daily-result-score strong,
.daily-result-stat strong{
  display:block;
  color:var(--yellow);
  font-size:28px;
  line-height:1
}
.daily-result-score strong{
  font-size:42px
}
.daily-result-score span,
.daily-result-stat span{
  display:block;
  margin-top:6px;
  color:#dcdaf4;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase
}
.daily-result-grid{
  margin:16px auto 4px;
  color:#fff;
  font-size:23px;
  letter-spacing:3px
}
.daily-result-inline .inline-share{
  max-width:620px;
  margin:17px auto 0;
  border-top-color:rgba(255,255,255,.13)
}
.daily-result-inline .inline-share-label{
  color:#fff
}
.daily-result-inline .inline-share-btn{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.15);
  color:#fff
}
.daily-result-inline .inline-share-btn:hover{
  background:rgba(255,255,255,.15)
}
.daily-result-actions{
  display:flex;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
  margin-top:18px
}
.daily-result-actions .btn-light{
  display:inline-flex;
  align-items:center;
  justify-content:center
}
.daily-post-quiz{
  padding:26px 0 56px
}
.daily-post-quiz[hidden]{
  display:none !important
}
.daily-about{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px 22px;
  margin-bottom:18px
}
.daily-about h2{
  margin:0 0 7px;
  color:var(--ink);
  font-size:24px
}
.daily-about p{
  margin:0;
  max-width:920px;
  color:var(--muted);
  font-size:12px;
  line-height:1.7;
  font-weight:680
}
.daily-explanations{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:21px
}
.daily-explanations .section-head{
  margin-bottom:10px
}
.daily-explanations .question-guide{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px
}
.daily-explanations .qa{
  margin:0;
  height:100%
}
.daily-explanations .qa h3{
  font-size:13px;
  line-height:1.45
}
.daily-explanations .qa p{
  font-size:11px;
  line-height:1.6
}
@media(max-width:760px){
  .daily-result-score-row{
    grid-template-columns:repeat(2,1fr)
  }
  .daily-explanations .question-guide{
    grid-template-columns:1fr
  }
}
@media(max-width:520px){
  .daily-result-score-row{
    grid-template-columns:1fr 1fr
  }
  .daily-result-score strong{
    font-size:32px
  }
}
.friend-head-actions{
  display:flex;
  align-items:center;
  gap:7px
}
.friend-invite-button{
  width:36px;
  height:36px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:0;
  border-radius:11px;
  background:#25D366;
  color:#fff;
  font-size:18px;
  font-weight:950;
  line-height:1;
  box-shadow:0 7px 16px rgba(37,211,102,.16)
}
.friend-invite-button:hover{
  transform:translateY(-1px)
}
.friend-invite-banner{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  margin-bottom:16px;
  padding:13px 14px;
  border:1px solid #cae8c6;
  border-radius:16px;
  background:var(--soft-green)
}
.friend-invite-icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#fff;
  font-size:19px
}
.friend-invite-banner strong{
  display:block;
  color:var(--ink);
  font-size:12px
}
.friend-invite-banner span{
  display:block;
  margin-top:2px;
  color:#647162;
  font-size:9px;
  line-height:1.45;
  font-weight:700
}
.friend-invite-banner button{
  border:0;
  border-radius:11px;
  background:var(--green);
  color:#fff;
  padding:9px 11px;
  font-size:9px;
  font-weight:950
}
@media(max-width:620px){
  .friend-head-actions{
    width:100%;
    justify-content:space-between
  }
  .friend-invite-banner{
    grid-template-columns:auto 1fr
  }
  .friend-invite-banner button{
    grid-column:1/-1;
    width:100%
  }
}
.auth-email-tabs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:5px;
  margin-bottom:14px;
  border-radius:13px;
  background:#f3f2f7
}
.auth-email-tabs button{
  min-height:38px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:10px;
  font-weight:900
}
.auth-email-tabs button.active{
  background:#fff;
  color:var(--navy);
  box-shadow:0 3px 10px rgba(45,41,110,.08)
}
.auth-email-form{
  display:grid
}
.auth-full-input{
  width:100%;
  min-height:46px;
  border:2px solid var(--line);
  border-radius:13px;
  padding:11px 13px;
  margin-bottom:11px;
  outline:none;
  background:#fff;
  color:var(--ink)
}
.auth-full-input:focus{
  border-color:#b9b6dc
}
.auth-email-submit{
  margin-top:3px
}
.auth-forgot{
  justify-self:center;
  margin-top:10px;
  border:0;
  background:transparent;
  color:var(--navy);
  font-size:9px;
  font-weight:900
}
.auth-prototype-note code{
  font-size:8px;
  color:var(--navy)
}
.profile-cloud-badge{
  white-space:nowrap
}
.reset-password-main{
  min-height:68vh;
  display:grid;
  align-items:center;
  padding:42px 0
}
.reset-password-card{
  width:min(520px,100%);
  margin:0 auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:25px
}
.reset-password-card h1{
  margin:4px 0 8px;
  color:var(--navy);
  font-size:34px
}
.reset-password-card p{
  margin:0 0 17px;
  color:var(--muted);
  font-size:11px;
  line-height:1.6;
  font-weight:680
}
.reset-password-form{
  display:grid
}
.reset-password-success{
  padding:14px;
  border-radius:13px;
  background:var(--soft-green);
  color:#28792c;
  font-size:11px;
  font-weight:850
}
.profile-account-identity{
  display:flex;
  align-items:center;
  gap:12px
}
.profile-account-avatar{
  width:48px;
  height:48px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-size:20px;
  font-weight:950
}
.profile-cloud-badge.synced{
  background:var(--soft-green);
  color:#28792c
}
.profile-backend-warning{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:14px 0;
  padding:12px 13px;
  border:1px solid #ead69b;
  border-radius:13px;
  background:#fff9df
}
.profile-backend-warning strong{
  color:var(--ink);
  font-size:10px
}
.profile-backend-warning span{
  color:#776c4b;
  font-size:9px;
  line-height:1.5
}
.profile-backend-warning code{
  color:var(--navy);
  font-weight:850
}
.profile-settings-grid form label{
  display:block;
  margin-top:10px
}
.profile-settings-grid form label:first-child{
  margin-top:0
}
.profile-field-help{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:8px;
  line-height:1.45;
  font-weight:700
}
.profile-friend-code-box{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin-top:5px;
  padding:7px 8px 7px 11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8f8fb
}
.profile-friend-code-box strong{
  flex:1;
  color:var(--navy);
  letter-spacing:.04em;
  font-size:12px
}
.profile-friend-code-box button{
  border:0;
  border-radius:9px;
  padding:7px 9px;
  background:var(--soft-navy);
  color:var(--navy);
  font-size:8px;
  font-weight:900
}
.profile-account-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  margin:15px 0 4px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:8px
}
.profile-account-meta b{
  color:var(--ink)
}
@media(max-width:650px){
  .profile-account-identity{
    align-items:flex-start
  }
  .profile-backend-warning{
    align-items:flex-start;
    flex-direction:column
  }
}
.daily-load-error{
  min-height:260px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  text-align:center
}
.daily-load-error strong{
  color:#fff;
  font-size:22px
}
.daily-load-error span{
  color:#d8d6ef;
  font-size:11px;
  margin-bottom:8px
}
.daily-load-error .btn-secondary{
  border:0
}
.challenge[data-content-source="supabase"]{
  --daily-cloud-ready:1
}
.profile-progress-strip{
  grid-template-columns:repeat(auto-fit,minmax(125px,1fr))
}
.profile-period-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  margin-top:10px
}
.profile-period-card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background:#f8f8fb
}
.profile-period-card>span{
  display:block;
  color:var(--muted);
  font-size:8px;
  font-weight:950;
  text-transform:uppercase
}
.profile-period-card>strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-family:"Pally","Montserrat",sans-serif;
  font-size:22px
}
.profile-period-card small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:8px;
  line-height:1.45
}
.profile-period-card small b{
  color:var(--ink)
}
@media(max-width:620px){
  .profile-period-grid{grid-template-columns:1fr}
}
#homeQuiz .challenge-inner,
#leafQuiz .challenge-inner{
  min-height:360px
}
#homeQuiz .daily-load-error,
#leafQuiz .daily-load-error{
  min-height:330px
}
#homeQuiz .daily-load-error span,
#leafQuiz .daily-load-error span{
  max-width:520px
}
@media(max-width:620px){
  #homeQuiz .challenge-inner,
  #leafQuiz .challenge-inner{
    min-height:320px
  }
}
.daily-completed-state{
  width:100%;
  min-height:330px;
  display:flex;
  flex-direction:column;
  justify-content:center
}
.daily-completed-kicker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px
}
.daily-completed-kicker span{
  color:#d8d6ef;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase
}
.daily-completed-kicker strong{
  border-radius:999px;
  padding:7px 10px;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:9px
}
.daily-completed-state h1{
  margin:0;
  max-width:720px;
  color:#fff;
  font-size:34px;
  line-height:1.03
}
.daily-completed-lead{
  max-width:720px;
  margin:10px 0 16px;
  color:#d8d6ef;
  font-size:12px;
  line-height:1.6;
  font-weight:700
}
.daily-completed-main-stat,
.daily-completed-result-grid{
  margin-top:2px
}
.daily-completed-main-stat strong{
  display:block;
  color:var(--yellow);
  font-size:42px
}
.daily-completed-main-stat span{
  color:#fff;
  font-size:10px;
  font-weight:850
}
.daily-completed-result-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  max-width:650px
}
.daily-completed-result-grid>div{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.09)
}
.daily-completed-result-grid strong{
  display:block;
  color:var(--yellow);
  font-size:22px
}
.daily-completed-result-grid span{
  display:block;
  margin-top:2px;
  color:#d8d6ef;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase
}
.daily-completed-share{
  max-width:720px;
  margin-top:12px
}
.daily-completed-progress{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  max-width:720px;
  margin-top:14px
}
.daily-completed-progress>div{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.14)
}
.daily-completed-progress span{
  color:#d8d6ef;
  font-size:9px;
  font-weight:800
}
.daily-completed-progress strong{
  color:#fff;
  font-size:11px
}
.daily-next-block{
  margin-top:18px
}
.daily-next-heading{
  margin-bottom:8px
}
.daily-next-heading span{
  display:block;
  color:#d8d6ef;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase
}
.daily-next-heading strong{
  display:block;
  margin-top:2px;
  color:#fff;
  font-size:14px
}
.daily-next-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px
}
.daily-next-card{
  display:grid;
  grid-template-columns:34px 1fr auto;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:11px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  transition:transform .15s ease,box-shadow .15s ease
}
.daily-next-card:hover{
  transform:translateY(-1px);
  box-shadow:0 7px 18px rgba(17,17,55,.12)
}
.daily-next-card.is-complete{
  background:#f3fbf1;
  border-color:#cde8c7
}
.daily-next-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:var(--soft-navy);
  font-size:17px
}
.daily-next-copy{
  min-width:0
}
.daily-next-copy strong{
  display:block;
  overflow:hidden;
  color:var(--navy);
  font-size:10px;
  text-overflow:ellipsis;
  white-space:nowrap
}
.daily-next-copy span{
  display:block;
  margin-top:2px;
  overflow:hidden;
  color:var(--muted);
  font-size:8px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap
}
.daily-next-status{
  color:var(--navy);
  font-size:13px;
  font-weight:950
}
.daily-next-card.is-complete .daily-next-status{
  color:var(--green)
}
.daily-completed-tomorrow{
  margin-top:12px;
  color:#bdb9df;
  font-size:8px;
  font-weight:800
}
@media(max-width:760px){
  .daily-completed-state h1{font-size:28px}
  .daily-next-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .daily-completed-result-grid,
  .daily-completed-progress{
    grid-template-columns:1fr
  }
}
.daily-mechanic-page{
  padding:18px 0 10px
}
.daily-mechanic-shell{
  max-width:980px;
  margin:0 auto;
  padding:24px;
  border-radius:26px;
  background:var(--navy);
  position:relative;
  overflow:hidden;
  box-shadow:0 16px 42px rgba(45,41,110,.10)
}
.daily-mechanic-shell:before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:7px;
  background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,var(--navy) 80% 100%)
}
.daily-mechanic-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-top:5px;
  margin-bottom:18px
}
.daily-mechanic-eyebrow{
  display:inline-block;
  margin-bottom:6px;
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  text-transform:uppercase
}
.daily-mechanic-top h1{
  margin:0;
  color:#fff;
  font-size:34px
}
.daily-mechanic-top p{
  max-width:620px;
  margin:5px 0 0;
  color:#d8d6ef;
  font-size:11px;
  font-weight:750
}
.daily-mechanic-back{
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:999px;
  color:#fff;
  font-size:9px;
  font-weight:900;
  text-decoration:none
}
.daily-game-loading{
  min-height:300px;
  display:grid;
  place-items:center;
  text-align:center;
  color:#fff
}
.daily-game-loading strong{
  display:block;
  font-size:18px
}
.daily-game-loading span{
  display:block;
  margin-top:5px;
  color:#d8d6ef;
  font-size:10px
}
.daily-game-play{
  max-width:760px;
  margin:0 auto
}
.daily-game-meta{
  display:flex;
  align-items:center;
  gap:12px;
  color:#d8d6ef;
  font-size:9px;
  font-weight:850
}
.daily-game-meta strong{
  margin-left:auto;
  color:#fff;
  font-size:11px
}
.daily-game-progress{
  height:7px;
  margin:8px 0 18px;
  border-radius:999px;
  background:rgba(255,255,255,.13);
  overflow:hidden
}
.daily-game-progress i{
  display:block;
  width:10%;
  height:100%;
  border-radius:inherit;
  background:var(--yellow);
  transition:width .2s ease
}
.daily-game-visual{
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  border-radius:20px;
  background:rgba(255,255,255,.07);
  padding:18px
}
.daily-flag-emoji{
  font-size:92px;
  line-height:1
}
.map-hunt-clue-icon{
  font-size:38px
}
.map-hunt-clue-text{
  max-width:620px;
  margin-top:8px;
  color:#fff;
  font-size:18px;
  line-height:1.35;
  font-weight:900
}
.daily-game-question{
  margin:18px 0 12px;
  color:#fff;
  text-align:center;
  font-size:22px
}
.daily-game-choices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px
}
.daily-game-choice{
  min-height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 13px;
  border:2px solid transparent;
  border-radius:14px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-weight:900;
  text-align:left;
  cursor:pointer
}
.daily-game-choice .key{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  flex:0 0 28px;
  border-radius:8px;
  background:#f0eff9;
  font-size:10px
}
.daily-game-choice.correct{
  border-color:var(--green);
  background:#eef8ec;
  color:#237722
}
.daily-game-choice.wrong{
  border-color:var(--red);
  background:#fff0ef;
  color:#a4221d
}
.daily-game-choice:disabled{
  cursor:default
}
.daily-game-feedback{
  min-height:42px;
  display:grid;
  place-items:center;
  margin-top:10px;
  color:#fff;
  text-align:center;
  font-size:11px
}
.daily-game-feedback small{
  display:block;
  margin-top:2px;
  color:#d8d6ef
}
.daily-game-checking,
.daily-game-error{
  font-weight:850
}
.daily-game-error{color:#ffd0cc}
.daily-game-next-btn{
  display:block;
  min-width:250px;
  margin:8px auto 0;
  border:0
}
.daily-game-result{
  max-width:760px;
  min-height:330px;
  margin:0 auto;
  padding:20px 0 8px;
  color:#fff
}
.daily-game-result-kicker{
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  text-transform:uppercase
}
.daily-game-result h2{
  margin:6px 0 4px;
  color:#fff;
  font-size:32px
}
.daily-game-result>p{
  color:#d8d6ef;
  font-size:11px;
  font-weight:750
}
.daily-game-result-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:14px 0
}
.daily-game-result-stats>div{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.09)
}
.daily-game-result-stats strong{
  display:block;
  color:var(--yellow);
  font-size:22px
}
.daily-game-result-stats span{
  display:block;
  color:#d8d6ef;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase
}
.daily-game-next{
  margin-top:18px
}
.daily-game-next>span{
  display:block;
  margin-bottom:7px;
  color:#d8d6ef;
  font-size:9px;
  font-weight:900;
  text-transform:uppercase
}
.daily-game-hub-link{
  display:inline-block;
  margin-top:12px;
  color:#fff;
  font-size:9px;
  font-weight:900
}
.brainiword-meta span{
  white-space:nowrap
}
.bw-result .daily-game-next{
  margin-top:18px;
  text-align:left
}
.bw-result .daily-next-grid{
  margin-top:7px
}
@media(max-width:700px){
  .daily-mechanic-shell{padding:19px 14px}
  .daily-mechanic-top{display:block}
  .daily-mechanic-back{display:inline-block;margin-top:10px}
  .daily-game-choices{grid-template-columns:1fr}
  .daily-game-result-stats{grid-template-columns:1fr}
  .daily-flag-emoji{font-size:74px}
  .map-hunt-clue-text{font-size:16px}
}
.friend-cloud-status{
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin:8px 0 10px;
  padding:6px 9px;
  border-radius:999px;
  background:#f1faef;
  color:#277522;
  font-size:8px;
  font-weight:900
}
.friend-request-actions{
  display:flex;
  align-items:center;
  gap:5px
}
.friend-action{
  padding:6px 8px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:8px;
  font-weight:900;
  cursor:pointer
}
.friend-action.primary{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff
}
.friend-stat-xp{
  min-width:68px
}
.friend-empty-state{
  margin-top:9px;
  padding:14px;
  border:1px dashed #d8d7e7;
  border-radius:14px;
  background:#fafafe
}
.friend-empty-state strong{
  display:block;
  color:var(--navy);
  font-size:11px
}
.friend-empty-state span{
  display:block;
  max-width:620px;
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
  line-height:1.55;
  font-weight:700
}
.ranking-friends-empty{
  max-width:680px;
  margin:28px auto 0;
  padding:30px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  text-align:center
}
.ranking-friends-empty-icon{
  font-size:34px
}
.ranking-friends-empty h2{
  margin:8px 0 5px;
  color:var(--navy);
  font-size:22px
}
.ranking-friends-empty p{
  max-width:520px;
  margin:0 auto 14px;
  color:var(--muted);
  font-size:10px;
  line-height:1.6;
  font-weight:700
}
.ranking-friends-empty .btn-secondary{
  display:inline-flex;
  text-decoration:none
}
@media(max-width:760px){
  .friend-row{
    grid-template-columns:auto 1fr auto
  }
  .friend-row .friend-stat{
    display:none
  }
  .friend-request-actions{
    flex-direction:column
  }
}
.social-select{
  appearance:auto
}
.group-modal-empty{
  grid-column:1/-1;
  padding:12px;
  border:1px dashed var(--line);
  border-radius:12px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
  text-align:center
}
.group-modal-pending{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:10px;
  padding:10px;
  border-radius:12px;
  background:#fafafe
}
.group-modal-pending>strong{
  flex-basis:100%;
  color:var(--navy);
  font-size:9px
}
.group-modal-pending span{
  padding:5px 7px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:8px;
  font-weight:800
}
.group-invite-banner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:11px;
  align-items:center;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #e4d986;
  border-radius:15px;
  background:#fffbe3
}
.group-invite-banner-icon{
  font-size:25px
}
.group-invite-banner strong,
.group-invite-banner span{
  display:block
}
.group-invite-banner strong{
  color:var(--navy);
  font-size:11px
}
.group-invite-banner span{
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
  line-height:1.45;
  font-weight:700
}
.group-invite-banner button{
  border:0;
  border-radius:10px;
  padding:8px 10px;
  background:var(--navy);
  color:#fff;
  font:inherit;
  font-size:8px;
  font-weight:900;
  cursor:pointer
}
.group-panel-head{
  margin-bottom:2px
}
.group-invites-box{
  margin:10px 0 13px;
  padding:10px;
  border:1px solid #deddec;
  border-radius:14px;
  background:#fafafe
}
.group-invite-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:8px 0
}
.group-invite-row+.group-invite-row{
  border-top:1px solid var(--line)
}
.group-invite-row .social-group-crest{
  width:37px;
  height:41px;
  font-size:15px
}
.group-invite-row strong,
.group-invite-row small{
  display:block
}
.group-invite-row strong{
  color:var(--navy);
  font-size:10px
}
.group-invite-row small{
  margin-top:2px;
  color:var(--muted);
  font-size:8px
}
.group-invite-actions{
  display:flex;
  gap:5px
}
.group-grid-real{
  gap:12px
}
.group-card-real{
  padding:15px;
  border-radius:18px;
  background:#fff
}
.group-card-title{
  min-width:0
}
.group-card-title h3{
  margin-top:2px
}
.group-role-line{
  display:flex;
  align-items:center;
  gap:6px
}
.group-role-line>span{
  color:var(--muted);
  font-size:7px;
  font-weight:900;
  text-transform:uppercase
}
.group-eligible,
.group-ineligible{
  padding:3px 6px;
  border-radius:999px;
  font-size:7px;
  font-weight:950
}
.group-eligible{
  background:#edf8ea;
  color:#2a7923
}
.group-ineligible{
  background:#fff0ef;
  color:#a52b25
}
.group-score-rule{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:12px 0 7px;
  padding:7px 9px;
  border-radius:10px;
  background:var(--soft-yellow)
}
.group-score-rule span{
  color:var(--muted);
  font-size:8px;
  font-weight:850
}
.group-score-rule strong{
  color:var(--navy);
  font-size:9px
}
.group-stats-real{
  grid-template-columns:repeat(4,1fr)
}
.group-members-real{
  display:grid;
  gap:5px;
  margin-top:10px
}
.group-member-real{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  padding:7px 8px;
  border:1px solid #ecebf3;
  border-radius:11px
}
.group-member-real>div strong,
.group-member-real>div small{
  display:block
}
.group-member-real>div strong{
  color:var(--ink);
  font-size:9px
}
.group-member-real>div small{
  margin-top:1px;
  color:var(--muted);
  font-size:7px
}
.group-owner-tag{
  display:inline-block!important;
  margin-left:4px!important;
  padding:2px 4px;
  border-radius:999px;
  background:var(--soft-navy);
  color:var(--navy)!important;
  font-size:6px!important;
  font-weight:950
}
.group-member-remove{
  width:26px;
  height:26px;
  border:0;
  border-radius:50%;
  background:#fff0ef;
  color:var(--red);
  font-weight:950;
  cursor:pointer
}
.group-pending-list{
  display:flex;
  align-items:center;
  gap:5px;
  flex-wrap:wrap;
  margin-top:9px
}
.group-pending-list>strong{
  width:100%;
  color:var(--muted);
  font-size:7px;
  text-transform:uppercase
}
.group-pending-list span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 6px;
  border-radius:999px;
  background:#f7f7fb;
  color:var(--ink);
  font-size:7px;
  font-weight:800
}
.group-pending-list button{
  border:0;
  background:transparent;
  color:var(--red);
  font-weight:950;
  cursor:pointer
}
.group-ranking-lock{
  margin-top:9px;
  padding:9px 10px;
  border-radius:11px;
  background:#fff5f3
}
.group-ranking-lock strong,
.group-ranking-lock span{
  display:block
}
.group-ranking-lock strong{
  color:var(--red);
  font-size:9px
}
.group-ranking-lock span{
  margin-top:2px;
  color:#8e5d59;
  font-size:7px;
  font-weight:750
}
.group-actions-real{
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap
}
.group-actions-real a,
.group-actions-real button{
  min-height:29px;
  padding:6px 8px;
  border-radius:8px
}
.group-actions-real a{
  display:inline-flex;
  align-items:center;
  background:var(--soft-navy);
  text-decoration:none
}
.group-actions-real button{
  color:var(--navy);
  background:#f8f8fb;
  cursor:pointer
}
.group-actions-real button:last-child{
  margin-left:auto;
  color:var(--red);
  background:transparent
}
.group-empty-real{
  padding:28px
}
.group-empty-real>div{
  font-size:32px
}
.group-empty-real strong{
  margin-top:5px;
  color:var(--navy);
  font-size:15px
}
.group-empty-real span{
  display:block;
  max-width:500px;
  margin:5px auto 13px
}
.group-empty-real button{
  border:0;
  cursor:pointer
}
.group-ranking-waiting .ranking-friends-empty-icon .ranking-crest{
  width:54px;
  height:60px;
  display:grid;
  place-items:center;
  margin:0 auto
}
@media(max-width:760px){
  .group-stats-real{
    grid-template-columns:1fr 1fr
  }
  .group-invite-banner,
  .group-invite-row{
    grid-template-columns:auto 1fr
  }
  .group-invite-banner button,
  .group-invite-actions{
    grid-column:1/-1
  }
  .group-invite-actions{
    justify-content:flex-end
  }
}
@media(max-width:520px){
  .group-stats-real{
    grid-template-columns:1fr
  }
  .group-actions-real button:last-child{
    margin-left:0
  }
}
.ranking-privacy-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:16px 0 12px;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff
}
.ranking-privacy-card>div{
  min-width:0
}
.ranking-privacy-card strong,
.ranking-privacy-card span{
  display:block
}
.ranking-privacy-card strong{
  color:var(--navy);
  font-size:10px
}
.ranking-privacy-card span{
  max-width:720px;
  margin-top:2px;
  color:var(--muted);
  font-size:8px;
  line-height:1.5;
  font-weight:700
}
.ranking-privacy-card.private{
  border-color:#deddec;
  background:#fafafe
}
.ranking-privacy-card.public{
  border-color:#cfe7ca;
  background:#f5fbf3
}
.ranking-privacy-card.guest{
  background:#fffdf4
}
.ranking-privacy-action{
  flex:0 0 auto;
  border:1px solid var(--line);
  border-radius:10px;
  padding:8px 10px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:8px;
  font-weight:900;
  cursor:pointer
}
.ranking-privacy-action.primary{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff
}
.ranking-loading{
  min-height:330px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:var(--navy)
}
.ranking-loading strong{
  font-size:10px
}
.ranking-loading-dot{
  width:11px;
  height:11px;
  border:2px solid #d8d7e8;
  border-top-color:var(--navy);
  border-radius:50%;
  animation:ranking-spin .7s linear infinite
}
@keyframes ranking-spin{
  to{transform:rotate(360deg)}
}
.ranking-row.top-ten{
  background:#fffdf4
}
.ranking-row.top-ten.is-me{
  background:#f0f7ee
}
.ranking-row.top-ten .ranking-position{
  color:var(--navy);
  font-weight:950
}
.ranking-no-scores{
  margin-top:12px
}
.ranking-error-state{
  margin-top:18px
}
.ranking-error-state .btn-secondary{
  border:0;
  cursor:pointer
}
.ranking-warning{
  color:var(--red)!important;
  font-weight:900!important
}
.ranking-filters select:disabled{
  opacity:.55;
  cursor:not-allowed
}
.ranking-summary strong{
  white-space:normal
}
@media(max-width:700px){
  .ranking-privacy-card{
    align-items:flex-start;
    flex-direction:column
  }
  .ranking-privacy-action{
    width:100%
  }
}
.runtime-block{
  position:fixed;inset:0;z-index:9999;display:grid;place-items:center;
  padding:22px;background:rgba(245,245,248,.97);backdrop-filter:blur(8px)
}
.runtime-block-card{
  width:min(500px,100%);padding:30px;border:1px solid var(--line);
  border-radius:22px;background:#fff;text-align:center;
  box-shadow:0 16px 55px rgba(45,41,110,.12)
}
.runtime-block-card img{width:160px;max-width:60%;margin-bottom:18px}
.runtime-block-card h1{margin:7px 0;color:var(--navy);font-size:30px}
.runtime-block-card p{color:var(--muted);line-height:1.6;font-size:12px}
.runtime-block-card a{
  display:inline-flex;margin-top:8px;padding:9px 12px;border-radius:9px;
  background:var(--navy);color:#fff;text-decoration:none;font-size:9px;font-weight:900
}
[hidden]{display:none!important}
.challenge-inner{max-width:1080px}
.challenge-question{
  max-width:1040px;
  font-size:clamp(34px,4.2vw,55px);
  line-height:1.04;
  margin:16px auto 21px
}
.challenge-question.is-long{
  max-width:1120px;
  font-size:clamp(29px,3.25vw,43px);
  line-height:1.08
}
.challenge-question.is-very-long{
  max-width:1160px;
  font-size:clamp(25px,2.75vw,36px);
  line-height:1.1
}
.question-number{
  color:var(--yellow);
  font-size:.72em;
  white-space:nowrap
}
.answers{max-width:900px}
.daily-mechanic-page{padding-top:12px}
.daily-mechanic-shell{max-width:930px;padding:21px 24px 24px}
.daily-mechanic-top{margin-bottom:12px}
.daily-game-loading{
  min-height:86px;
  border-radius:16px;
  background:rgba(255,255,255,.055)
}
.daily-game-loading.compact{min-height:72px}
.daily-game-play{max-width:780px}
.daily-game-progress{margin-bottom:12px}
.daily-game-visual{min-height:105px;padding:12px 16px}
.daily-flag-emoji{font-size:76px}
.daily-game-question{margin:12px 0 10px;font-size:20px}
.daily-game-feedback{min-height:35px;margin-top:7px}
.daily-game-result{min-height:0;padding:25px 0 14px}
.simple-game-result,
.simple-daily-result{
  max-width:650px;
  margin:0 auto;
  text-align:center
}
.simple-game-result{padding:18px 0 12px}
.simple-result-kicker,
.simple-result-kicker-row span,
.simple-result-kicker{
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase
}
.simple-game-result h2,
.simple-daily-result h1{
  margin:8px 0 5px;
  color:#fff;
  font-size:clamp(38px,5vw,58px);
  line-height:1
}
.simple-game-result p,
.simple-daily-result .daily-completed-lead{
  margin:8px auto 0;
  color:#d8d6ef;
  font-size:12px;
  font-weight:750
}
.simple-result-actions{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:9px;
  width:min(520px,100%);
  margin:20px auto 0
}
.simple-result-play,
.simple-result-share{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  padding:10px 16px;
  font:inherit;
  font-size:11px;
  font-weight:950;
  text-decoration:none
}
.simple-result-play{
  border:2px solid var(--yellow);
  background:var(--yellow);
  color:#262151;
  box-shadow:0 8px 18px rgba(255,216,19,.13)
}
.simple-result-share{
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.08);
  color:#fff
}
.simple-result-play:hover{transform:translateY(-1px)}
.simple-result-share:hover{background:rgba(255,255,255,.13)}
.simple-daily-result{min-height:250px;justify-content:center}
.simple-result-kicker-row{max-width:650px;width:100%;margin:0 auto 6px}
.bw-result .simple-result-actions{margin-top:15px}
.bw-result .simple-result-share{
  border-color:var(--line);
  background:#fff;
  color:var(--navy)
}
.bw-result .simple-result-play{color:#262151}
.simple-quiz-result{position:relative;width:min(520px,100%)}
.simple-quiz-result .result-head{padding:25px 24px 20px}
.simple-quiz-result .result-logo{height:42px}
.simple-quiz-result .simple-result-kicker{
  margin-top:9px;
  color:#d8d6ef
}
.simple-quiz-result .result-score{font-size:58px;margin-top:6px}
.simple-quiz-result .simple-quiz-result-meta,
.simple-quiz-result [data-final-points]{
  margin-top:4px;
  color:#d8d6ef;
  font-size:11px;
  font-weight:800
}
.simple-quiz-result .result-body{padding:18px 22px 22px}
.simple-quiz-result .simple-result-actions{margin-top:0}
.simple-quiz-result .simple-result-share{
  border-color:var(--line);
  background:#fff;
  color:var(--navy)
}
.quiz-result-close{
  position:absolute;
  z-index:3;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  color:#fff;
  font-size:22px;
  line-height:1
}
.share-sheet{max-width:460px;padding:21px}
.share-kicker{display:none}
.share-sheet h2{font-size:23px;margin:0 0 11px}
.share-card{padding:16px}
.share-card-score{font-size:36px;margin:8px 0 4px}
.share-actions{grid-template-columns:1fr 1fr}
.share-channels{grid-template-columns:repeat(2,1fr)}
.games-choice-section{padding:24px 0 12px}
.games-choice-shell{
  position:relative;
  overflow:hidden;
  padding:30px;
  border-radius:27px;
  background:var(--navy);
  box-shadow:var(--shadow)
}
.games-choice-shell:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;height:7px;
  background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,var(--navy) 80%)
}
.games-choice-head{margin-bottom:20px}
.games-choice-kicker{
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em
}
.games-choice-head h1{
  max-width:none;
  margin:5px 0 0;
  color:#fff;
  font-size:clamp(34px,4.7vw,57px);
  line-height:1
}
.games-primary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px
}
.games-primary-card{
  min-width:0;
  display:grid;
  grid-template-columns:auto 1fr;
  gap:10px;
  align-items:center;
  padding:15px;
  border-radius:17px;
  border-top:5px solid var(--yellow);
  background:#fff;
  color:var(--navy);
  text-decoration:none;
  transition:.15s
}
.games-primary-card.accent-orange{border-top-color:var(--orange)}
.games-primary-card.accent-green{border-top-color:var(--green)}
.games-primary-card.accent-red{border-top-color:var(--red)}
.games-primary-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.16)}
.games-primary-icon{font-size:27px;grid-row:1/3}
.games-primary-card strong{display:block;font-size:15px}
.games-primary-card small{display:block;margin-top:3px;color:var(--muted);font-size:8px;line-height:1.4;font-weight:750}
.games-primary-arrow{grid-column:2;color:var(--navy);font-size:8px;font-weight:950}
.games-classic-section{padding-top:16px}
.games-classic-grid{grid-template-columns:repeat(3,1fr)}
.topic-rush-shell{max-width:900px}
.topic-rush-intro{
  max-width:660px;
  margin:18px auto 8px;
  padding:22px;
  border-radius:19px;
  background:rgba(255,255,255,.075);
  text-align:center
}
.topic-rush-label,
.topic-rush-active-topic span{
  display:block;
  color:#c8c5e7;
  font-size:8px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em
}
.topic-rush-intro h2{
  margin:5px 0 7px;
  color:#fff;
  font-size:clamp(28px,4vw,43px)
}
.topic-rush-intro p{margin:0 auto;color:#d8d6ef;font-size:11px;line-height:1.55;font-weight:700}
.topic-rush-target{margin-top:11px;color:var(--yellow);font-size:10px;font-weight:950}
.topic-rush-start{
  min-width:230px;
  min-height:49px;
  margin-top:16px;
  border:0;
  border-radius:14px;
  background:var(--yellow);
  color:#262151;
  font-size:11px;
  font-weight:950
}
.topic-rush-play{max-width:700px;margin:10px auto 4px}
.topic-rush-live{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}
.topic-rush-live>div{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.09);
  text-align:center
}
.topic-rush-live span{display:block;color:#d8d6ef;font-size:8px;font-weight:900;text-transform:uppercase}
.topic-rush-live strong{display:block;margin-top:2px;color:var(--yellow);font-size:27px}
.topic-rush-live strong.urgent{color:#ff8e86}
.topic-rush-active-topic{
  padding:10px 13px;
  border-radius:12px;
  background:rgba(0,0,0,.13)
}
.topic-rush-active-topic strong{display:block;margin-top:2px;color:#fff;font-size:15px}
.topic-rush-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}
.topic-rush-form input{
  min-width:0;
  height:52px;
  border:2px solid transparent;
  border-radius:14px;
  padding:0 15px;
  background:#fff;
  color:var(--navy);
  outline:none;
  font-size:14px;
  font-weight:850
}
.topic-rush-form input:focus{border-color:var(--yellow)}
.topic-rush-form button{
  min-width:100px;
  border:0;
  border-radius:14px;
  background:var(--yellow);
  color:#262151;
  font-weight:950
}
.topic-rush-feedback{min-height:30px;display:grid;place-items:center;color:#d8d6ef;font-size:10px;font-weight:850}
.topic-rush-feedback.good{color:#a9f3a1}.topic-rush-feedback.bad{color:#ffb6b1}.topic-rush-feedback.neutral{color:#fff4a5}
.topic-rush-answer-list{display:flex;gap:6px;flex-wrap:wrap;max-height:150px;overflow:auto;padding:2px}
.topic-rush-chip{padding:6px 8px;border-radius:999px;background:rgba(64,171,52,.18);color:#d9ffd4;font-size:8px;font-weight:850}
@media(max-width:900px){
  .games-primary-grid{grid-template-columns:1fr 1fr}
  .games-classic-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .challenge-inner{min-height:0!important;padding:23px 14px 21px}
  .challenge-question,
  .challenge-question.is-long,
  .challenge-question.is-very-long{font-size:clamp(25px,8vw,34px);line-height:1.08}
  .simple-result-actions{grid-template-columns:1fr}
  .daily-game-loading{min-height:70px}
  .daily-mechanic-shell{padding:19px 14px 20px}
  .games-choice-shell{padding:24px 15px 17px}
  .games-primary-grid,.games-classic-grid{grid-template-columns:1fr}
  .topic-rush-form{grid-template-columns:1fr}
  .topic-rush-form button{min-height:46px}
  .share-actions{grid-template-columns:1fr}
}
.rank-avatar{
  --ring:#b7b6c8;
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-weight:950;
  box-shadow:
    0 0 0 3px var(--ring),
    0 0 0 7px rgba(45,41,110,.07);
  flex:0 0 auto;
}
.rank-avatar.small{width:35px;height:35px;font-size:10px}
.rank-avatar>span{display:grid;place-items:center;width:100%;height:100%;border-radius:inherit}
.rank-rookie{--ring:#b8b7c5}
.rank-elementary{--ring:#65b85a}
.rank-highschool{--ring:#57a8d8}
.rank-college{--ring:#6f68c6}
.rank-graduate{--ring:#e6a63d}
.rank-phd{--ring:#bc72da}
.rank-researcher{--ring:#4e94a9}
.rank-professor{--ring:#e6680c}
.rank-dean{--ring:#c8a600}
.rank-nobel{
  --ring:#ffd813;
  box-shadow:
    0 0 0 3px #ffd813,
    0 0 0 7px rgba(255,216,19,.2),
    0 0 20px rgba(255,216,19,.35);
}
.brain-rank-badge{
  --rank:#b8b7c5;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--rank) 55%,#fff);
  border-radius:999px;
  background:#fff;
  color:var(--navy);
  font-size:9px;
  font-weight:950;
  box-shadow:0 5px 18px rgba(45,41,110,.06)
}
.brain-rank-badge small{color:var(--muted);font-size:7px}
.brain-rank-badge.rank-rookie{--rank:#b8b7c5}
.brain-rank-badge.rank-elementary{--rank:#65b85a}
.brain-rank-badge.rank-highschool{--rank:#57a8d8}
.brain-rank-badge.rank-college{--rank:#6f68c6}
.brain-rank-badge.rank-graduate{--rank:#e6a63d}
.brain-rank-badge.rank-phd{--rank:#bc72da}
.brain-rank-badge.rank-researcher{--rank:#4e94a9}
.brain-rank-badge.rank-professor{--rank:#e6680c}
.brain-rank-badge.rank-dean{--rank:#c8a600}
.brain-rank-badge.rank-nobel{--rank:#ffd813}
.brain-rank-icon{color:var(--rank);font-size:13px}
.avatar.rank-header-avatar{
  position:relative;
  overflow:hidden;
  border:3px solid var(--ring,#b8b7c5);
  box-shadow:0 0 0 3px rgba(45,41,110,.06);
}
.avatar.rank-header-avatar img{
  width:100%;height:100%;object-fit:cover;border-radius:50%;
}
.avatar.rank-rookie{--ring:#b8b7c5}
.avatar.rank-elementary{--ring:#65b85a}
.avatar.rank-highschool{--ring:#57a8d8}
.avatar.rank-college{--ring:#6f68c6}
.avatar.rank-graduate{--ring:#e6a63d}
.avatar.rank-phd{--ring:#bc72da}
.avatar.rank-researcher{--ring:#4e94a9}
.avatar.rank-professor{--ring:#e6680c}
.avatar.rank-dean{--ring:#c8a600}
.avatar.rank-nobel{
  --ring:#ffd813;
  box-shadow:0 0 0 3px rgba(255,216,19,.2),0 0 17px rgba(255,216,19,.3)
}
.account-popover{
  z-index:999;
  width:min(330px,calc(100vw - 24px));
  overflow:hidden;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  color:var(--ink);
  box-shadow:0 18px 55px rgba(32,29,79,.19)
}
.account-popover-head{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 10px 13px;
  border-bottom:1px solid var(--line)
}
.account-popover-head strong,
.account-popover-head span{display:block}
.account-popover-head strong{color:var(--navy);font-size:11px}
.account-popover-head span{margin-top:2px;color:var(--muted);font-size:8px;font-weight:800}
.account-menu-avatar{width:38px!important;height:38px!important}
.account-popover>a,
.account-popover>button{
  display:grid;
  grid-template-columns:25px 1fr;
  gap:8px;
  align-items:center;
  width:100%;
  padding:9px 10px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  text-decoration:none;
}
.account-popover>a:hover,
.account-popover>button:hover{background:#f5f4fa}
.account-popover>a>span,
.account-popover>button>span{
  color:var(--navy);
  text-align:center;
  font-size:13px
}
.account-popover strong,
.account-popover small{display:block}
.account-popover strong{font-size:9px}
.account-popover small{margin-top:2px;color:var(--muted);font-size:7px;line-height:1.35}
.games-v27{padding-bottom:25px}
.games-choice-hero{padding:24px 0 7px}
.games-choice-panel{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  padding:28px 30px;
  overflow:hidden;
  border-radius:24px;
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow)
}
.games-choice-panel:before,
.daily-overview-hero:before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;height:7px;
  background:linear-gradient(
    90deg,
    var(--orange) 0 25%,
    var(--yellow) 25% 50%,
    var(--red) 50% 75%,
    var(--green) 75% 100%
  )
}
.games-choice-eyebrow{
  color:var(--yellow);
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase
}
.games-choice-panel h1{
  margin:6px 0 5px;
  color:#fff;
  font-size:clamp(35px,5vw,59px);
  line-height:1
}
.games-choice-panel p{
  max-width:680px;
  margin:0;
  color:#d8d6ef;
  font-size:11px;
  line-height:1.55;
  font-weight:750
}
.games-anytime-section{padding-top:14px}
.anytime-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px
}
.anytime-game-card{
  min-width:0;
  padding:17px;
  border:1px solid var(--line);
  border-top:5px solid var(--navy);
  border-radius:17px;
  background:#fff;
  box-shadow:0 3px 18px rgba(45,41,110,.035)
}
.anytime-game-card.accent-yellow{border-top-color:var(--yellow)}
.anytime-game-card.accent-orange{border-top-color:var(--orange)}
.anytime-game-card.accent-green{border-top-color:var(--green)}
.anytime-game-card.accent-red{border-top-color:var(--red)}
.anytime-game-head{display:flex;gap:10px;align-items:flex-start}
.anytime-game-head>span{font-size:26px}
.anytime-game-head h2{margin:0;color:var(--navy);font-size:16px}
.anytime-game-head p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.45;font-weight:700}
.anytime-status{
  display:flex;
  align-items:center;
  gap:7px;
  min-height:25px;
  margin:10px 0 8px;
  color:var(--muted);
  font-size:8px;
  font-weight:850
}
.anytime-played{color:var(--green)}
.anytime-new{color:#9290a1}
.difficulty-actions{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px
}
.difficulty-actions a{
  display:grid;
  place-items:center;
  min-height:37px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#f9f9fc;
  color:var(--navy);
  text-decoration:none;
  font-size:8px;
  font-weight:950
}
.difficulty-actions a:hover{
  border-color:var(--navy);
  background:var(--navy);
  color:#fff
}
.daily-overview-page{padding:25px 0 50px}
.daily-overview-hero{
  position:relative;
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:end;
  overflow:hidden;
  padding:29px 30px;
  border-radius:24px;
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow)
}
.daily-overview-kicker{
  color:var(--yellow);
  font-size:8px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase
}
.daily-overview-hero h1{
  margin:6px 0 6px;
  color:#fff;
  font-size:clamp(34px,4.4vw,54px);
  line-height:1
}
.daily-overview-hero p{
  max-width:680px;
  margin:0;
  color:#d8d6ef;
  font-size:11px;
  line-height:1.55;
  font-weight:750
}
.daily-overview-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(90px,1fr));
  gap:7px
}
.daily-overview-summary>div{
  min-width:90px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.09);
  text-align:center
}
.daily-overview-summary strong,
.daily-overview-summary span{display:block}
.daily-overview-summary strong{color:var(--yellow);font-size:18px}
.daily-overview-summary span{margin-top:2px;color:#d9d7ef;font-size:7px;font-weight:850}
.daily-overview-loading,
.daily-overview-error{
  min-height:300px;
  display:grid;
  place-items:center;
  text-align:center
}
.daily-journey{
  margin-top:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff
}
.simple-game-result .daily-journey,
.simple-daily-result .daily-journey{
  width:min(920px,calc(100vw - 50px));
  margin:22px 50% 0;
  transform:translateX(-50%);
  color:var(--ink);
  text-align:left
}
.bw-result .daily-journey{
  width:100%;
  margin:18px 0 0;
  transform:none
}
.daily-journey.is-full{
  border-color:#b9deb3;
  box-shadow:0 0 0 3px rgba(64,171,52,.08)
}
.daily-journey-head{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:end
}
.daily-journey-eyebrow{
  color:var(--orange);
  font-size:7px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em
}
.daily-journey-head h3{
  margin:3px 0 0;
  color:var(--navy);
  font-size:17px
}
.daily-journey-score{text-align:right;white-space:nowrap}
.daily-journey-score strong{color:var(--navy);font-size:20px}
.daily-journey-score span{color:var(--muted);font-size:8px;font-weight:850}
.daily-journey-progress{
  height:6px;
  margin:10px 0 12px;
  overflow:hidden;
  border-radius:999px;
  background:#eeedf4
}
.daily-journey-progress span{
  display:block;height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--yellow),var(--green))
}
.daily-journey-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px
}
.daily-journey-card{
  min-width:0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  padding:11px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--navy);
  text-decoration:none
}
.daily-journey-card.is-complete{
  border-color:#c7e6c2;
  background:#f4fbf2
}
.daily-journey-card.is-pending{
  border-color:#eadf8b;
  background:#fffdf0;
  box-shadow:0 0 0 3px rgba(255,216,19,.08)
}
.daily-journey-card.is-current{
  outline:2px solid var(--navy);
  outline-offset:1px
}
.daily-journey-icon{font-size:21px}
.daily-journey-copy strong,
.daily-journey-copy small{display:block}
.daily-journey-copy strong{font-size:9px}
.daily-journey-copy small{margin-top:2px;color:var(--muted);font-size:7px;font-weight:800;line-height:1.3}
.daily-journey-state{font-size:15px;font-weight:950;color:var(--green)}
.daily-journey-card.is-pending .daily-journey-state{color:var(--orange)}
.daily-journey-foot{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid var(--line);
  font-size:7.5px
}
.daily-journey-foot strong{color:var(--navy)}
.daily-journey-foot span{color:var(--muted);font-weight:750}
.daily-rules-compact{
  display:grid;
  grid-template-columns:1fr 1fr auto;
  gap:12px;
  align-items:center;
  margin-top:14px;
  padding:14px 16px;
  border-radius:15px;
  background:#f0eff7
}
.daily-rules-compact strong,
.daily-rules-compact span{display:block}
.daily-rules-compact strong{color:var(--navy);font-size:9px}
.daily-rules-compact span{margin-top:2px;color:var(--muted);font-size:7.5px;line-height:1.45;font-weight:700}
.daily-rules-compact a{color:var(--navy);font-size:8px;font-weight:950;text-decoration:none;white-space:nowrap}
.simple-result-actions{
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto
}
.simple-result-progress{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 10px;
  color:#d8d6ef;
  font-size:8px;
  font-weight:900;
  text-decoration:none;
  white-space:nowrap
}
.bw-result .simple-result-progress{color:var(--navy)}
.inline-quiz-complete{
  min-height:520px;
  display:grid;
  place-items:center;
  padding:28px
}
.inline-quiz-result-inner{
  width:min(760px,100%);
  text-align:center
}
.inline-quiz-result-inner h1{
  margin:7px 0 6px;
  color:#fff;
  font-size:clamp(55px,8vw,88px);
  line-height:.95
}
.inline-quiz-result-score{
  margin:0;
  color:var(--yellow);
  font-size:14px;
  font-weight:950
}
.inline-quiz-result-note{
  max-width:610px;
  margin:9px auto 0;
  color:#d7d5ed;
  font-size:9px;
  line-height:1.55;
  font-weight:700
}
.inline-quiz-result-actions{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto;
  gap:9px;
  align-items:stretch;
  width:min(700px,100%);
  margin:20px auto 0
}
.inline-quiz-result-actions .simple-result-progress{min-height:50px}
.profile-v27-head{padding:23px 0 0}
.profile-v27-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  padding:23px 25px;
  border-radius:20px 20px 0 0;
  background:var(--navy);
  color:#fff
}
.profile-v27-title span{
  color:var(--yellow);
  font-size:8px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em
}
.profile-v27-title h1{margin:4px 0 0;color:#fff;font-size:35px}
.profile-tabs{
  display:flex;
  gap:4px;
  padding:7px;
  overflow:auto;
  border:1px solid var(--line);
  border-top:0;
  border-radius:0 0 16px 16px;
  background:#fff
}
.profile-tabs button{
  min-height:38px;
  padding:0 13px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  white-space:nowrap
}
.profile-tabs button:hover,
.profile-tabs button.active{
  background:#efeff7;
  color:var(--navy)
}
.profile-section{padding-top:18px}
.profile-rank-hero{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:18px;
  align-items:center;
  padding:18px 20px;
  margin-bottom:13px;
  border-radius:17px;
  background:linear-gradient(135deg,#2D296E,#3a357f);
  color:#fff
}
.profile-rank-avatar{width:70px;height:70px;font-size:22px;background:#fff}
.profile-rank-main>span{
  color:var(--yellow);
  font-size:7px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em
}
.profile-rank-main h2{margin:2px 0;color:#fff;font-size:26px}
.profile-rank-main p{margin:0;color:#d8d6ef;font-size:9px;font-weight:800}
.profile-rank-main small{display:block;margin-top:4px;color:#d8d6ef;font-size:7px}
.profile-rank-progress{
  height:6px;
  max-width:480px;
  margin-top:9px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.15)
}
.profile-rank-progress span{display:block;height:100%;background:var(--yellow)}
.profile-rank-link{
  color:#fff;
  font-size:8px;
  font-weight:950;
  text-decoration:none;
  white-space:nowrap
}
.profile-progress-layout{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:14px;
  margin-top:14px
}
.profile-section-intro{margin-bottom:13px}
.profile-section-intro>span,
.profile-settings-kicker{
  color:var(--orange);
  font-size:7px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em
}
.profile-section-intro h2{margin:3px 0;color:var(--navy);font-size:24px}
.profile-section-intro p{margin:0;color:var(--muted);font-size:9px;line-height:1.5;font-weight:700}
.profile-strength{margin:10px 0}
.profile-strength>div:first-child{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:8px;font-weight:850}
.profile-strength>div:nth-child(2){height:5px;margin-top:4px;overflow:hidden;border-radius:999px;background:#ecebf2}
.profile-strength>div:nth-child(2) span{display:block;height:100%;background:var(--green)}
.profile-inline-cta{display:inline-flex;margin-top:10px;color:var(--navy);font-size:8px;font-weight:950;text-decoration:none}
.profile-security-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px
}
.profile-security-card{
  padding:16px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#fff
}
.profile-security-card h2{margin:3px 0 7px;color:var(--navy);font-size:16px}
.profile-security-card p{color:var(--muted);font-size:8px;line-height:1.55;font-weight:700}
.profile-security-card dl{display:grid;grid-template-columns:80px 1fr;gap:0;margin:10px 0}
.profile-security-card dt,
.profile-security-card dd{margin:0;padding:6px 0;border-bottom:1px solid var(--line);font-size:8px}
.profile-security-card dt{color:var(--muted);font-weight:850}
.profile-security-card dd{color:var(--ink);word-break:break-word}
.profile-security-note{margin-top:10px}
.profile-edit-avatar{overflow:hidden}
.profile-edit-avatar img{width:100%;height:100%;object-fit:cover}
.profile-photo-note{
  display:flex;
  gap:8px;
  margin-top:12px;
  padding:9px 11px;
  border-radius:10px;
  background:#f4f4f8;
  font-size:8px
}
.profile-photo-note strong{color:var(--navy)}
.profile-photo-note span{color:var(--muted);font-weight:700}
.topic-rush-active-topic small{
  display:block;
  margin-top:4px;
  color:#d8d6ef;
  font-size:8px;
  line-height:1.45;
  font-weight:700
}
.answer:focus-visible,
.next:focus-visible,
.simple-result-play:focus-visible,
.simple-result-share:focus-visible,
.difficulty-actions a:focus-visible,
.daily-journey-card:focus-visible,
.profile-tabs button:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px
}
.daily-mechanic-back{white-space:nowrap}
@media(max-width:1000px){
  .anytime-grid{grid-template-columns:1fr 1fr}
  .daily-overview-hero{grid-template-columns:1fr}
  .daily-overview-summary{max-width:520px}
  .daily-journey-grid{grid-template-columns:1fr 1fr}
  .profile-security-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .games-choice-panel{align-items:flex-start;flex-direction:column;padding:25px 17px}
  .anytime-grid{grid-template-columns:1fr}
  .daily-overview-page{padding-top:15px}
  .daily-overview-hero{padding:25px 17px}
  .daily-overview-summary{grid-template-columns:repeat(3,1fr);width:100%}
  .daily-journey{padding:13px}
  .daily-journey-head{align-items:flex-start}
  .daily-journey-grid{grid-template-columns:1fr}
  .daily-journey-foot{flex-direction:column;gap:3px}
  .simple-game-result .daily-journey,
  .simple-daily-result .daily-journey{
    width:calc(100vw - 32px);
    margin-top:18px
  }
  .simple-result-actions,
  .inline-quiz-result-actions{grid-template-columns:1fr}
  .simple-result-progress{min-height:36px}
  .inline-quiz-complete{min-height:430px;padding:21px 14px}
  .profile-v27-title{align-items:flex-start;flex-direction:column;padding:19px}
  .profile-tabs{padding:5px}
  .profile-rank-hero{grid-template-columns:auto 1fr}
  .profile-rank-link{grid-column:1/-1}
  .profile-progress-layout{grid-template-columns:1fr}
  .profile-security-grid{grid-template-columns:1fr}
}
@media(max-width:480px){
  .daily-overview-summary{grid-template-columns:1fr}
  .difficulty-actions a{min-height:41px}
  .profile-rank-avatar{width:58px;height:58px}
}
.rank-ring{
  box-shadow:0 0 0 3px var(--ring,#b8b7c5),0 0 0 7px rgba(45,41,110,.06)!important
}
.rank-ring.rank-nobel{
  box-shadow:0 0 0 3px #ffd813,0 0 0 7px rgba(255,216,19,.2),0 0 20px rgba(255,216,19,.32)!important
}
.rank-avatar img,
.account-menu-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
.account-popover-primary{
  margin-top:5px;
  background:#f2f1f8!important;
  color:var(--navy)!important;
}
.account-popover-primary strong{color:var(--navy)}
.account-popover-primary>span{font-size:16px!important}
.profile-photo-editor{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:16px;
  align-items:center;
  margin-top:15px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:15px;
  background:#f8f8fb;
}
.profile-photo-preview{
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  overflow:hidden;
  border-radius:50%;
  background:#fff;
  color:var(--navy);
  font-size:24px;
  font-weight:950;
}
.profile-photo-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-photo-copy label,
.profile-photo-copy strong,
.profile-photo-copy span{
  display:block;
}
.profile-photo-copy label{
  color:var(--orange);
  font-size:7px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.profile-photo-copy strong{
  margin-top:3px;
  color:var(--navy);
  font-size:13px;
}
.profile-photo-copy>span{
  margin-top:4px;
  color:var(--muted);
  font-size:8px;
  line-height:1.5;
  font-weight:700;
}
.profile-photo-actions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}
.profile-photo-actions button{
  min-height:36px;
  padding:0 12px;
  border:0;
  border-radius:9px;
  background:var(--navy);
  color:#fff;
  font-size:8px;
  font-weight:950;
}
.profile-photo-actions button.secondary{
  border:1px solid var(--line);
  background:#fff;
  color:var(--navy);
}
.profile-photo-actions button:disabled{
  opacity:.55;
  cursor:wait;
}
.home-daily-state{
  width:min(1120px,100%);
  margin:0 auto;
  padding:6px 0 0;
  text-align:left;
}
.home-daily-state-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:22px;
}
.home-daily-state-top span{
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.home-daily-state-top strong{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-size:8px;
}
.home-daily-state-copy{
  text-align:center;
}
.home-daily-state-copy h1{
  max-width:900px;
  margin:0 auto;
  color:#fff;
  font-size:clamp(37px,5.1vw,67px);
  line-height:.98;
}
.home-daily-state-copy p{
  max-width:760px;
  margin:12px auto 0;
  color:#d9d7ee;
  font-size:11px;
  line-height:1.55;
  font-weight:750;
}
.home-daily-state.is-caught-up .home-daily-state-copy h1{
  color:var(--yellow);
}
.home-daily-state-actions{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
  margin:22px 0 2px;
}
.home-daily-primary,
.home-daily-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:205px;
  min-height:48px;
  padding:0 18px;
  border-radius:11px;
  font-size:9px;
  font-weight:950;
  text-decoration:none;
}
.home-daily-primary{
  border:0;
  background:var(--yellow);
  color:var(--navy);
}
.home-daily-secondary{
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.09);
  color:#fff;
}
.home-daily-tertiary{
  padding:9px 5px;
  color:#d9d7ee;
  font-size:8px;
  font-weight:900;
  text-decoration:none;
}
.home-daily-state .daily-journey{
  margin-top:23px;
}
.home-daily-state .daily-journey h3,
.home-daily-state .daily-journey strong{
  color:var(--navy);
}
.home-daily-state .daily-journey-score strong{
  color:var(--navy);
}
.brain-score-daily-link{
  display:inline-flex;
  margin-top:14px;
  padding:9px 12px;
  border-radius:9px;
  background:var(--yellow);
  color:var(--navy);
  text-decoration:none;
  font-size:8px;
  font-weight:950;
}
.anytime-difficulty-label{
  margin:11px 0 6px;
  color:var(--muted);
  font-size:7px;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.difficulty-actions a{
  background:#fffdf2;
  border-color:#e9df9f;
}
.difficulty-actions a:nth-child(2){
  background:#f8f7fc;
  border-color:#d9d7e5;
}
.difficulty-actions a:nth-child(3){
  background:#fff3f2;
  border-color:#f0cecb;
}
@media(max-width:760px){
  .profile-photo-editor{
    grid-template-columns:1fr;
  }
  .profile-photo-preview{
    width:70px;
    height:70px;
  }
  .home-daily-state-top{
    margin-bottom:16px;
  }
  .home-daily-state-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .home-daily-primary,
  .home-daily-secondary{
    width:100%;
  }
}
.account-popover{
  padding:18px;
}
.account-popover-head{
  margin-bottom:14px;
  padding-bottom:16px;
  border-bottom:1px solid var(--line);
}
.account-popover-head strong{
  font-size:18px;
  line-height:1.15;
}
.account-popover-head span:last-child{
  font-size:12px;
}
.account-popover-row,
.account-popover button.account-popover-row,
.account-popover a.account-popover-row{
  display:block;
  width:100%;
  margin:0;
  padding:16px 18px;
  border:0;
  border-radius:18px;
  background:transparent;
  text-decoration:none;
  text-align:left;
  box-shadow:none;
}
.account-popover-row + .account-popover-row,
.account-popover-row + .account-popover-authbox,
.account-popover-authbox + .account-popover-row{
  margin-top:8px;
}
.account-popover-row:hover,
.account-popover button.account-popover-row:hover,
.account-popover a.account-popover-row:hover{
  background:#f4f3fa;
}
.account-popover-row strong{
  display:block;
  color:var(--navy);
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.account-popover-row small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}
.account-popover-primary{
  background:#f1f0f9!important;
}
.account-popover-danger{
  background:#fbfafc;
  border:1px solid var(--line);
}
.account-popover-authbox{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:8px;
}
.account-popover-authbtn{
  display:block;
  width:100%;
  padding:16px 16px 15px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#ffffff;
  text-align:left;
}
.account-popover-authbtn:hover{
  background:#f8f7fc;
}
.account-popover-authbtn-primary{
  background:var(--yellow);
  border-color:var(--yellow);
}
.account-popover-authbtn-primary:hover{
  background:#f3d30d;
}
.account-popover-authbtn strong{
  display:block;
  color:var(--navy);
  font-size:16px;
  line-height:1.2;
  font-weight:950;
}
.account-popover-authbtn small{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}
.account-popover-authbtn-primary small{
  color:#433f6b;
}
@media(max-width:760px){
  .account-popover-authbox{
    grid-template-columns:1fr;
  }
}
.daily-caught-up{
  position:relative;
  overflow:hidden;
  padding:26px 30px 28px;
  border-radius:24px;
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow);
}
.daily-caught-up:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:7px;
  background:linear-gradient(
    90deg,
    var(--orange) 0 25%,
    var(--yellow) 25% 50%,
    var(--red) 50% 75%,
    var(--green) 75% 100%
  );
}
.daily-caught-up .home-daily-state{
  padding-top:8px;
}
.daily-caught-up .daily-journey{
  margin-top:24px;
}
.daily-caught-up .home-daily-state-copy p{
  max-width:700px;
}
.daily-caught-up .home-daily-state-actions{
  margin-bottom:3px;
}
@media(max-width:760px){
  .daily-caught-up{
    padding:24px 16px 20px;
  }
}
.share-sheet-compact{
  width:min(560px,calc(100vw - 28px));
  padding:18px;
}
.share-sheet-compact .share-preview{
  margin-top:8px;
}
.share-icon-actions{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
  margin-top:14px;
}
.share-icon-btn{
  display:grid;
  place-items:center;
  aspect-ratio:1;
  min-width:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  color:var(--navy);
  box-shadow:0 5px 18px rgba(45,41,110,.05);
}
.share-icon-btn:hover{
  transform:translateY(-1px);
  border-color:#c8c5dd;
  background:#f8f7fc;
}
.share-icon-btn:focus-visible{
  outline:3px solid var(--yellow);
  outline-offset:3px;
}
.share-icon-btn svg{
  width:30px;
  height:30px;
  fill:currentColor;
}
.share-icon-btn.whatsapp{color:#25D366}
.share-icon-btn.telegram{color:#229ED9}
.share-icon-btn.x{color:#111}
.share-icon-btn.facebook{color:#1877F2}
.share-icon-btn.copy{color:var(--navy)}
.ranking-avatar img,
.rank-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
}
@media(max-width:560px){
  .share-icon-actions{gap:7px}
  .share-icon-btn{border-radius:13px}
  .share-icon-btn svg{width:25px;height:25px}
}
.home-anytime-section{
  padding-top:18px;
  padding-bottom:7px;
}
.daily-anytime-section{
  padding:0 0 46px;
}
.anytime-browser{
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:0 5px 24px rgba(45,41,110,.045);
}
.anytime-browser.is-daily-context{
  position:relative;
  margin-top:24px;
  padding-top:27px;
  border-top:5px solid var(--yellow);
}
.anytime-browser.is-daily-context:before{
  content:"";
  position:absolute;
  left:22px;
  right:22px;
  top:-16px;
  height:1px;
  background:var(--line);
}
.anytime-browser-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.anytime-browser-kicker{
  display:block;
  color:var(--orange);
  font-size:7.5px;
  font-weight:950;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.is-daily-context .anytime-browser-kicker{
  display:inline-flex;
  padding:6px 8px;
  border-radius:999px;
  background:#fff8c9;
  color:#6f5c00;
}
.anytime-browser-head h2{
  margin:5px 0 4px;
  color:var(--navy);
  font-size:clamp(25px,3vw,36px);
  line-height:1;
}
.anytime-browser-head p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
  font-weight:750;
}
.anytime-browser-all{
  flex:0 0 auto;
  padding:9px 11px;
  border-radius:9px;
  background:#f2f1f8;
  color:var(--navy);
  text-decoration:none;
  font-size:8px;
  font-weight:950;
  white-space:nowrap;
}
.anytime-browser .anytime-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.anytime-browser .anytime-game-card{
  padding:15px;
}
.anytime-browser .anytime-game-head h3{
  margin:0;
  color:var(--navy);
  font-size:15px;
}
.anytime-browser .anytime-game-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:8px;
  line-height:1.4;
  font-weight:700;
}
.home-groups-section{
  padding-top:11px;
}
@media(max-width:1000px){
  .anytime-browser .anytime-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:760px){
  .anytime-browser{
    padding:15px;
  }
  .anytime-browser-head{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .anytime-browser .anytime-grid{
    grid-template-columns:1fr;
  }
  .daily-anytime-section{
    padding-bottom:28px;
  }
}
main > .section,
main > section.section,
.footer{
  content-visibility:auto;
  contain-intrinsic-size:1px 520px;
}
.card,
.panel,
.stats-panel,
.home-group-card{
  contain:layout paint;
}


/* ===== V38 — Daily countdown + Brain Rank milestone ===== */

.next-daily-countdown{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  margin:14px auto 0;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
}

.next-daily-countdown span{
  color:#d9d7eb;
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.next-daily-countdown strong{
  color:var(--yellow);
  font-size:15px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}

.next-daily-countdown small{
  color:#a9a5cb;
  font-size:7px;
  font-weight:850;
}

.rank-up-toast{
  position:fixed;
  z-index:2200;
  right:18px;
  bottom:18px;
  width:min(360px,calc(100vw - 28px));
  padding:17px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:18px;
  background:var(--navy);
  color:#fff;
  box-shadow:0 20px 60px rgba(21,17,78,.28);
  opacity:0;
  transform:translateY(14px) scale(.98);
  transition:
    opacity .22s ease,
    transform .22s ease;
}

.rank-up-toast.show{
  opacity:1;
  transform:translateY(0) scale(1);
}

.rank-up-close{
  position:absolute;
  top:8px;
  right:9px;
  display:grid;
  width:29px;
  height:29px;
  place-items:center;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.1);
  color:#fff;
  font-family:inherit;
  font-size:18px;
  cursor:pointer;
}

.rank-up-kicker{
  display:block;
  padding-right:30px;
  color:var(--yellow);
  font-size:7px;
  font-weight:950;
  letter-spacing:.11em;
}

.rank-up-main{
  display:flex;
  align-items:center;
  gap:11px;
  margin-top:12px;
}

.rank-up-main>.brain-rank-icon{
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  border:2px solid var(--yellow);
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:var(--yellow);
  font-size:20px;
}

.rank-up-main strong,
.rank-up-main small{
  display:block;
}

.rank-up-main strong{
  color:#fff;
  font-size:23px;
  line-height:1;
}

.rank-up-main small{
  margin-top:4px;
  color:#c8c5e0;
  font-size:9px;
  font-weight:800;
}

.rank-up-toast p{
  margin:12px 0 0;
  color:#d9d7eb;
  font-size:9px;
  line-height:1.45;
  font-weight:700;
}

@media(max-width:600px){
  .rank-up-toast{
    right:14px;
    bottom:14px;
    width:calc(100vw - 28px);
  }

  .next-daily-countdown{
    width:100%;
  }
}

/* ===== End V38 milestone UX ===== */


/* ===== V39 — Monetization readiness ===== */

.brainilab-ad-slot[hidden]{
  display:none !important;
}

.brainilab-ad-slot{
  width:min(1180px,calc(100% - 32px));
  min-height:112px;
  margin:22px auto;
  padding:10px 12px 12px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  contain:layout paint;
}

.brainilab-ad-slot-result{
  width:100%;
  margin:18px 0 0;
}

.brainilab-ad-label{
  margin-bottom:7px;
  color:#9a98a9;
  font-size:8px;
  font-weight:800;
  letter-spacing:.08em;
  text-align:center;
  text-transform:uppercase;
}

.brainilab-ad-test{
  display:grid;
  min-height:92px;
  place-items:center;
  align-content:center;
  gap:4px;
  border:1px dashed #c8c6d8;
  border-radius:11px;
  background:#faf9fc;
  color:var(--muted);
  text-align:center;
}

.brainilab-ad-test span{
  color:var(--orange);
  font-size:8px;
  font-weight:950;
  letter-spacing:.1em;
}

.brainilab-ad-test strong{
  color:var(--navy);
  font-size:12px;
}

.brainilab-ad-test small{
  max-width:520px;
  font-size:8px;
  line-height:1.45;
  font-weight:700;
}

.account-popover-plus{
  background:#fff9d8;
}

.account-popover-plus strong{
  color:var(--navy);
}

.profile-plus-account-root{
  margin-bottom:14px;
}

.plus-account-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.plus-account-card.is-plus{
  border-color:#d9c536;
  background:#fffbe5;
}

.plus-account-card span,
.plus-current-card>span,
.plus-hero>span,
.plus-price-card>span{
  display:block;
  color:var(--orange);
  font-size:8px;
  font-weight:950;
  letter-spacing:.09em;
}

.plus-account-card strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-size:18px;
}

.plus-account-card p{
  max-width:650px;
  margin:5px 0 0;
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
  font-weight:700;
}

.plus-page{
  padding-bottom:50px;
}

.plus-page [data-plus-page-root]{
  margin-top:22px;
}

.plus-hero{
  position:relative;
  overflow:hidden;
  padding:44px;
  border-radius:28px;
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow);
}

.plus-hero:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:7px;
  background:linear-gradient(
    90deg,
    var(--orange) 0 20%,
    var(--yellow) 20% 40%,
    var(--red) 40% 60%,
    var(--green) 60% 80%,
    #fff 80%
  );
}

.plus-hero>span{
  color:var(--yellow);
}

.plus-hero h1{
  max-width:800px;
  margin:8px 0;
  font-size:clamp(42px,7vw,74px);
  line-height:.95;
}

.plus-hero p{
  max-width:680px;
  margin:0;
  color:#d9d7ef;
  font-size:14px;
  line-height:1.6;
  font-weight:700;
}

.plus-benefits{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

.plus-benefits article{
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}

.plus-benefits strong{
  color:var(--navy);
  font-size:18px;
}

.plus-benefits p{
  margin:7px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
  font-weight:680;
}

.plus-pricing-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.plus-price-card,
.plus-current-card{
  padding:24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
}

.plus-price-card.featured{
  border:2px solid var(--yellow);
  box-shadow:0 16px 38px rgba(45,41,110,.09);
}

.plus-price-card h2{
  margin:9px 0 0;
  color:var(--navy);
  font-size:42px;
  line-height:1;
}

.plus-price-card p{
  min-height:36px;
  margin:6px 0 16px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
  font-weight:700;
}

.plus-price-card button{
  width:100%;
}

.plus-current-card{
  margin-top:14px;
  background:#fffbe5;
}

.plus-current-card h2{
  margin:7px 0;
  color:var(--navy);
  font-size:30px;
}

.plus-current-card p{
  max-width:680px;
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
  font-weight:700;
}

.plus-fineprint{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:14px 16px;
  border-radius:14px;
  background:#efedf6;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
  font-weight:700;
}

.plus-fineprint strong{
  color:var(--navy);
}

.legal-copy{
  max-width:900px;
}

.legal-copy h2:not(:first-child){
  margin-top:28px;
}

.legal-copy a{
  color:var(--navy);
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media(max-width:760px){
  .plus-benefits,
  .plus-pricing-grid{
    grid-template-columns:1fr;
  }

  .plus-hero{
    padding:32px 22px;
  }

  .plus-account-card,
  .plus-fineprint{
    align-items:flex-start;
    flex-direction:column;
  }

  .brainilab-ad-slot{
    min-height:100px;
    margin:16px auto;
  }
}

/* ===== End V39 monetization ===== */


/* ===== V40.1 — deterministic Ads test mode ===== */

.brainilab-ads-test-indicator{
  position:fixed;
  z-index:99999;
  left:max(12px,env(safe-area-inset-left));
  bottom:max(12px,env(safe-area-inset-bottom));
  display:grid;
  gap:2px;
  max-width:min(430px,calc(100vw - 24px));
  padding:10px 12px;
  border:2px solid var(--yellow);
  border-radius:12px;
  background:var(--navy);
  color:#fff;
  box-shadow:0 12px 35px rgba(25,20,78,.3);
  pointer-events:none;
}

.brainilab-ads-test-indicator>span{
  color:var(--yellow);
  font-size:9px;
  font-weight:950;
  letter-spacing:.09em;
}

.brainilab-ads-test-indicator>strong{
  font-size:13px;
  line-height:1.1;
}

.brainilab-ads-test-indicator>small{
  overflow:hidden;
  color:#d9d7ee;
  font-size:8px;
  line-height:1.35;
  font-weight:700;
  text-overflow:ellipsis;
}

.brainilab-ad-slot:has(.brainilab-ad-test){
  display:grid;
  min-height:120px;
  align-items:center;
  border:2px dashed var(--orange);
  background:#fffaf5;
}

.brainilab-ad-test{
  width:100%;
}

@media(max-width:600px){
  .brainilab-ads-test-indicator{
    right:12px;
    left:12px;
    max-width:none;
  }
}

/* ===== End V40.1 Ads test mode ===== */


/* ===== Stripe checkout status ===== */

.plus-status{
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#f7f6fb;
  color:var(--navy);
  font-size:10px;
  line-height:1.5;
  font-weight:800;
}

.plus-status[hidden]{
  display:none !important;
}

.plus-status[data-state="error"]{
  border-color:#f1aaa7;
  background:#fff1f0;
  color:#8d1c17;
}

.plus-status[data-state="warning"]{
  border-color:#ead56a;
  background:#fffbe5;
  color:#665600;
}

.plus-status[data-state="success"]{
  border-color:#9ed397;
  background:#effaed;
  color:#24681e;
}

.plus-price-card button:disabled{
  cursor:wait;
  opacity:.68;
}

@media(max-width:760px){
  .plus-status{
    font-size:12px;
  }
}

/* ===== End Stripe checkout status ===== */


/* ===== V40.3 — hardened Plus checkout interaction ===== */

.plus-price-card{
  position:relative;
  z-index:1;
}

.plus-price-card button{
  position:relative;
  z-index:5;
  pointer-events:auto !important;
  touch-action:manipulation;
}



/* ===== End V40.3 ===== */
/* ==========================================================
   BrainiLab Visual Icon System — V41.2
   ========================================================== */

.braini-ui-icon,
.braini-inline-icon,
.braini-game-icon,
.braini-game-mini,
.braini-category-icon,
.braini-category-card-icon,
.brain-rank-halo,
.braini-group-symbol,
.social-choice-symbol,
.share-system-icon{
  display:block;
  width:1em;
  height:1em;
  object-fit:contain;
  flex:0 0 auto;
}

.braini-inline-icon{
  width:14px;
  height:14px;
  display:inline-block;
  vertical-align:-2px;
}

.streak{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:39px;
  padding-left:12px;
  font-size:18px;
  line-height:1;
  font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
  color:var(--navy);
}
.streak::before{
  content:none;
  display:none;
}
.streak span{
  font-size:14px;
  line-height:1;
  color:var(--red);
}

.help-dot{
  display:grid!important;
  place-items:center;
  font-size:0!important;
  background:#fff url("../icons/product/help-faq.svg") center/17px 17px no-repeat!important;
}

.card .emoji{
  height:42px;
  display:flex;
  align-items:center;
  font-size:0;
}
.braini-category-card-icon{
  width:40px;
  height:40px;
}

.anytime-category-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.anytime-category-icon .braini-category-icon,
.anytime-category-icon>img{
  width:42px;
  height:42px;
}
.anytime-game-head>span:first-child{
  font-size:0;
}

.brain-score-game-icon{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
}
.brain-score-game-icon .braini-game-mini,
.brain-score-game-icon>img{
  width:27px;
  height:27px;
}

.daily-journey-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  font-size:0!important;
}
.daily-journey-icon .braini-game-mini{
  width:30px;
  height:30px;
}
.daily-journey-state{
  display:grid;
  place-items:center;
}
.daily-journey-state .braini-inline-icon{
  width:17px;
  height:17px;
}

.anytime-played{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
}

/* Group crests — legacy database values, new visual language */
.braini-group-crest,
.ranking-crest,
.social-group-crest{
  --crest:#FFD813;
  position:relative;
  display:inline-grid;
  place-items:center;
  width:56px;
  height:62px;
  margin-bottom:9px;
  clip-path:polygon(50% 0,92% 17%,84% 72%,50% 100%,16% 72%,8% 17%);
  background:var(--crest);
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.5);
  overflow:hidden;
  flex:0 0 auto;
}
.braini-group-crest::after,
.ranking-crest::after,
.social-group-crest::after{
  content:"";
  position:absolute;
  inset:3px;
  clip-path:inherit;
  border:1px solid rgba(45,41,110,.12);
  pointer-events:none;
}
.braini-group-crest .braini-group-symbol,
.ranking-crest .braini-group-symbol,
.social-group-crest .braini-group-symbol{
  width:45%;
  height:45%;
  position:relative;
  z-index:1;
}

.ranking-identity .ranking-crest{
  width:38px;
  height:42px;
  margin:0;
}
.your-rank-name .ranking-crest{
  width:36px;
  height:40px;
  margin:0;
}
.social-group-crest{
  width:50px;
  height:55px;
  margin:0;
}
.social-icon-choice{
  display:grid;
  place-items:center;
  font-size:0!important;
}
.social-icon-choice .social-choice-symbol{
  width:23px;
  height:23px;
}
.home-group-symbol{
  display:grid;
  place-items:center;
  font-size:0!important;
}
.home-group-badge{
  width:62px;
  height:62px;
  display:block;
}
.groups-ranking-icon{
  display:grid!important;
  place-items:center;
}
.groups-ranking-icon img{
  width:24px;
  height:24px;
}

/* Podium medals use the BrainiLab achievement glyph, with the place as text. */
.podium-medal{
  position:relative;
  display:inline-grid!important;
  place-items:center;
  width:42px;
  height:42px;
  margin-inline:auto;
  font-size:0!important;
}
.podium-medal-icon{
  width:38px;
  height:38px;
  display:block;
}
.podium-medal strong{
  position:absolute;
  top:13px;
  left:0;
  right:0;
  text-align:center;
  font-size:10px;
  line-height:1;
  color:#fff;
  font-family:"Montserrat",system-ui,sans-serif;
  font-weight:950;
}

/* Subtle profile rank progression supplied by the icon system. */
.rank-avatar,
.avatar.rank-header-avatar,
.rank-ring{
  --rank-halo:url("../icons/rank-halos/starter.svg");
  --halo-rotate:0deg;
  position:relative;
  overflow:visible!important;
  border:0!important;
  box-shadow:none!important;
}
.rank-avatar{
  padding:4px;
  background:#fff;
}
.rank-avatar>span,
.rank-avatar>img,
.avatar.rank-header-avatar>img{
  position:relative;
  z-index:1;
}
.rank-avatar::after,
.avatar.rank-header-avatar::after,
.rank-ring::after{
  content:"";
  position:absolute;
  inset:-5px;
  z-index:2;
  pointer-events:none;
  background-image:var(--rank-halo);
  background-position:center;
  background-repeat:no-repeat;
  background-size:100% 100%;
  transform:rotate(var(--halo-rotate));
  transform-origin:center;
}
.rank-avatar.small::after{inset:-4px}

.rank-rookie{
  --rank-halo:url("../icons/rank-halos/starter.svg");
}
.rank-elementary{
  --rank-halo:url("../icons/rank-halos/learner.svg");
}
.rank-highschool{
  --rank-halo:url("../icons/rank-halos/scholar.svg");
}
.rank-college{
  --rank-halo:url("../icons/rank-halos/graduate.svg");
}
.rank-graduate{
  --rank-halo:url("../icons/rank-halos/doctorate.svg");
  --halo-rotate:-8deg;
}
.rank-phd{
  --rank-halo:url("../icons/rank-halos/doctorate.svg");
  --halo-rotate:8deg;
}
.rank-researcher{
  --rank-halo:url("../icons/rank-halos/professor.svg");
  --halo-rotate:-5deg;
}
.rank-professor{
  --rank-halo:url("../icons/rank-halos/professor.svg");
  --halo-rotate:5deg;
}
.rank-dean{
  --rank-halo:url("../icons/rank-halos/dean.svg");
}
.rank-nobel{
  --rank-halo:url("../icons/rank-halos/laureate.svg");
}
.rank-nobel::after,
.rank-avatar.rank-nobel::after,
.avatar.rank-nobel::after{
  filter:drop-shadow(0 2px 5px rgba(255,216,19,.18));
}

.brain-rank-icon{
  width:22px;
  height:22px;
  display:inline-grid;
  place-items:center;
  font-size:0!important;
}
.brain-rank-halo{
  width:22px;
  height:22px;
}
.rank-up-main>.brain-rank-icon{
  width:48px;
  height:48px;
}
.rank-up-main>.brain-rank-icon .brain-rank-halo{
  width:48px;
  height:48px;
}

/* Product-glyph close/delete states */
.share-close,
.social-modal-close,
.auth-close,
.rank-up-close{
  font-size:0!important;
  background-image:url("../icons/product/close.svg")!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:18px 18px!important;
}
.friend-menu{
  font-size:0!important;
  background-image:url("../icons/product/delete.svg")!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:16px 16px!important;
}
.auth-success-icon{
  display:grid;
  place-items:center;
  font-size:0!important;
}
.auth-state-icon{
  width:34px;
  height:34px;
  display:block;
}
.auth-brandmark-icon{
  display:grid!important;
  place-items:center;
}
.auth-brandmark-icon .auth-state-icon{
  width:28px;
  height:28px;
}
.auth-success-stats strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
}
.share-system-icon{
  width:25px;
  height:25px;
}
.suggestions-success-icon{
  display:grid!important;
  place-items:center;
}
.suggestions-success-icon img{
  width:30px;
  height:30px;
  display:block;
}


/* V41.8.0 — robust World Flags question emoji */
.question-flag-emoji{
  display:inline-block;
  width:48px;
  height:36px;
  object-fit:contain;
  vertical-align:-10px;
  margin:0 8px 0 4px;
}
.question-flag-text{
  display:inline-block;
  font-family:"Apple Color Emoji","Noto Color Emoji","Segoe UI Emoji",sans-serif;
  font-size:38px;
  line-height:1;
  vertical-align:-8px;
  margin:0 8px 0 4px;
}
@media (max-width:700px){
  .question-flag-emoji{width:42px;height:32px;vertical-align:-9px;margin-right:6px}
  .question-flag-text{font-size:34px;vertical-align:-7px;margin-right:6px}
}

/* ===== V41.3 Past Daily archive ===== */
.games-archive-section{
  padding-top:8px;
  padding-bottom:30px
}
.games-archive-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:10px
}
.games-archive-head h2{
  margin:5px 0 4px;
  color:var(--navy);
  font-size:clamp(24px,3vw,34px);
  line-height:1.05
}
.games-archive-head p{
  margin:0;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.5;
  font-weight:700
}
.games-archive-head .games-choice-eyebrow{color:var(--orange)}
.archive-date-control{
  display:grid;
  gap:5px;
  min-width:190px;
  color:var(--navy);
  font-size:8px;
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase
}
.archive-date-control input{
  min-height:42px;
  width:100%;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--navy);
  font:inherit;
  font-size:9px;
  font-weight:900;
  letter-spacing:0;
  text-transform:none
}
.archive-context{
  display:flex;
  gap:8px;
  align-items:center;
  min-height:26px;
  margin-bottom:10px;
  color:var(--muted);
  font-size:8px;
  font-weight:800
}
.archive-context strong{
  display:inline-flex;
  align-items:center;
  min-height:23px;
  padding:0 8px;
  border-radius:999px;
  background:var(--navy);
  color:#fff;
  font-size:8px
}
.archive-games-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.archive-game-card{
  display:flex;
  min-height:205px;
  flex-direction:column
}
.archive-game-card .anytime-game-head{flex:1}
.archive-card-meta{
  min-height:25px;
  margin:10px 0 8px;
  color:var(--muted);
  font-size:7.5px;
  line-height:1.35;
  font-weight:850
}
.archive-play-action{
  display:grid;
  place-items:center;
  min-height:40px;
  padding:0 12px;
  border-radius:10px;
  background:var(--navy);
  color:#fff;
  text-decoration:none;
  font-size:8.5px;
  font-weight:950;
  transition:transform .16s ease,opacity .16s ease
}
.archive-play-action:hover{transform:translateY(-1px);opacity:.94}
.archive-practice-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:8px;
  line-height:1.45;
  font-weight:750
}
.archive-result-note{
  margin:12px auto 0!important;
  max-width:560px;
  color:#d8d6ef!important;
  font-size:8.5px!important;
  line-height:1.45;
  font-weight:800
}
.archive-result-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:min(520px,100%)!important
}
.archive-result-other{text-decoration:none}
.bw-result .archive-result-note{color:var(--muted)!important}
@media (max-width:600px){
  .archive-result-actions{grid-template-columns:1fr!important}
}

/* ============================================================
   V41.4 — Connections
   ============================================================ */
.connections-page{padding:22px 0 54px}
.connections-shell{overflow:hidden;border-radius:26px;background:var(--navy);color:#fff;box-shadow:var(--shadow)}
.connections-shell:before{content:"";display:block;height:7px;background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,var(--navy) 80%)}
.connections-top{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;padding:25px 28px 0}
.connections-top h1{margin:5px 0 5px;color:#fff;font-size:clamp(34px,5vw,55px);line-height:1}
.connections-top p{max-width:610px;margin:0;color:#d8d6ef;font-size:10px;line-height:1.55;font-weight:750}
.connections-eyebrow{color:var(--yellow);font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.connections-back{color:#fff;font-size:9px;font-weight:900;text-decoration:none;white-space:nowrap}
.connections-intro,.connections-loading,.connections-game,.connections-result{width:min(900px,calc(100% - 34px));margin:22px auto 30px}
.connections-intro{text-align:center;padding:28px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.055)}
.connections-intro h2{margin:7px auto 8px;color:#fff;font-size:clamp(26px,4vw,39px)}
.connections-intro p{max-width:650px;margin:0 auto;color:#d8d6ef;font-size:10px;line-height:1.6;font-weight:700}
.connections-intro-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:560px;margin:20px auto}
.connections-intro-stats div{padding:12px;border-radius:13px;background:rgba(255,255,255,.08)}
.connections-intro-stats strong,.connections-intro-stats span{display:block}.connections-intro-stats strong{color:var(--yellow);font-size:22px}.connections-intro-stats span{margin-top:2px;color:#d8d6ef;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.connections-start{min-height:46px;padding:0 24px;border:0;border-radius:12px;background:var(--yellow);color:var(--navy);font-weight:950;cursor:pointer}
.connections-livebar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;font-size:9px;font-weight:900}.connections-livebar strong{color:var(--yellow);font-size:13px}
.connections-progress-track{height:7px;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}.connections-progress-track span{display:block;height:100%;width:0;background:var(--yellow);transition:width .25s ease}
.connections-prompt{text-align:center;margin:22px auto 14px}.connections-prompt span{display:block;color:var(--yellow);font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}.connections-prompt h2{margin:5px 0 0;color:#fff;font-size:clamp(26px,4vw,40px)}
.connections-clues{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.connections-clue{display:grid;place-items:center;min-height:92px;padding:16px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:#fff;color:var(--navy);font-size:clamp(18px,2.7vw,28px);font-weight:950;text-align:center}
.connections-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}
.connections-choice{min-height:58px;padding:12px 14px;border:1px solid rgba(255,255,255,.15);border-radius:13px;background:rgba(255,255,255,.09);color:#fff;font:inherit;font-size:10px;font-weight:900;cursor:pointer;transition:.15s ease}
.connections-choice:hover:not(:disabled){background:rgba(255,255,255,.16);transform:translateY(-1px)}
.connections-choice.wrong{border-color:#ff7770;background:rgba(229,39,32,.2);color:#ffd9d6}.connections-choice.correct{border-color:#6cd263;background:rgba(64,171,52,.23);color:#fff}
.connections-choice:disabled{cursor:default}
.connections-feedback{min-height:42px;margin:12px 0 0;text-align:center;color:#fff;font-size:9px;font-weight:800}.connections-feedback strong,.connections-feedback span{display:block}.connections-feedback strong{color:#87dc80;font-size:11px}.connections-feedback strong+span{margin-top:4px;color:#d8d6ef;font-weight:700;line-height:1.45}
.connections-next{display:block;min-width:170px;min-height:43px;margin:11px auto 0;border:0;border-radius:11px;background:var(--yellow);color:var(--navy);font-weight:950;cursor:pointer}
.connections-result{min-height:470px;display:grid;place-items:center;text-align:center}.connections-result-inner{width:min(720px,100%)}.connections-result-inner h2{margin:8px 0 3px;color:#fff;font-size:clamp(52px,8vw,84px);line-height:.95}.connections-result-inner h2 small{font-size:.25em;color:#d8d6ef}.connections-result-inner>p{margin:0;color:var(--yellow);font-size:12px;font-weight:900}.connections-result-rounds{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px auto;width:min(620px,100%)}.connections-result-rounds div{padding:12px;border-radius:12px;background:rgba(255,255,255,.08)}.connections-result-rounds strong,.connections-result-rounds span{display:block}.connections-result-rounds strong{font-size:9px}.connections-result-rounds span{margin-top:3px;color:#d8d6ef;font-size:8px;font-weight:700}
.anytime-category-icon .connections-icon{color:var(--navy)}
@media(max-width:700px){.connections-top{padding:20px 18px 0}.connections-top{display:block}.connections-back{display:inline-block;margin-top:10px}.connections-intro,.connections-loading,.connections-game,.connections-result{width:calc(100% - 24px);margin-top:17px}.connections-intro{padding:20px 14px}.connections-clues,.connections-choices{grid-template-columns:1fr 1fr}.connections-clue{min-height:76px;font-size:18px}.connections-choice{min-height:54px;font-size:9px}.connections-result-rounds{grid-template-columns:1fr}.connections-intro-stats{gap:5px}.connections-intro-stats strong{font-size:18px}}
.difficulty-actions.single-action{grid-template-columns:1fr}
.difficulty-actions.single-action a{min-height:37px}

/* ==========================================================
   V41.5 — Survival / Odd One Out / Higher or Lower
   ========================================================== */
.labgame-page{padding:22px 0 54px}
.labgame-shell{overflow:hidden;border-radius:26px;background:var(--navy);color:#fff;box-shadow:var(--shadow)}
.labgame-shell:before{content:"";display:block;height:7px;background:linear-gradient(90deg,var(--orange) 0 20%,var(--yellow) 20% 40%,var(--red) 40% 60%,var(--green) 60% 80%,#fff 80%)}
.labgame-top{display:flex;justify-content:space-between;gap:22px;align-items:flex-start;padding:25px 28px 0}
.labgame-top h1{margin:5px 0 5px;color:#fff;font-size:clamp(34px,5vw,55px);line-height:1}
.labgame-top p{max-width:650px;margin:0;color:#d8d6ef;font-size:10px;line-height:1.55;font-weight:750}
.labgame-eyebrow{color:var(--yellow);font-size:8px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.labgame-back{color:#fff;font-size:9px;font-weight:900;text-decoration:none;white-space:nowrap}
.labgame-intro,.labgame-loading,.labgame-stage,.labgame-result{width:min(900px,calc(100% - 34px));margin:22px auto 30px}
.labgame-intro{text-align:center;padding:28px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:rgba(255,255,255,.055)}
.labgame-intro h2{margin:7px auto 8px;color:#fff;font-size:clamp(26px,4vw,39px)}
.labgame-intro p{max-width:680px;margin:0 auto;color:#d8d6ef;font-size:10px;line-height:1.6;font-weight:700}
.labgame-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:600px;margin:20px auto}
.labgame-stats div{padding:12px;border-radius:13px;background:rgba(255,255,255,.08)}
.labgame-stats strong,.labgame-stats span{display:block}.labgame-stats strong{color:var(--yellow);font-size:22px}.labgame-stats span{margin-top:2px;color:#d8d6ef;font-size:8px;font-weight:850;text-transform:uppercase;letter-spacing:.05em}
.labgame-start,.labgame-next{min-height:46px;padding:0 24px;border:0;border-radius:12px;background:var(--yellow);color:var(--navy);font-weight:950;cursor:pointer}
.labgame-next{display:block;min-width:170px;margin:14px auto 0}
.labgame-livebar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:9px;font-size:9px;font-weight:900}
.labgame-livebar strong{color:var(--yellow);font-size:13px}
.labgame-progress{height:7px;border-radius:999px;background:rgba(255,255,255,.13);overflow:hidden}
.labgame-progress span{display:block;height:100%;width:0;background:var(--yellow);transition:width .25s ease}
.labgame-question{text-align:center;margin:24px auto 16px}
.labgame-question .meta{display:block;color:var(--yellow);font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.labgame-question h2{margin:6px auto 0;color:#fff;font-size:clamp(27px,4.3vw,44px);max-width:800px;line-height:1.08}
.labgame-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px auto;max-width:780px}
.labgame-answer{min-height:68px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:#fff;color:var(--navy);font:inherit;font-size:12px;font-weight:950;cursor:pointer;transition:.15s ease}
.labgame-answer:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.labgame-answer.correct{border-color:#74db70;background:#dff7dc}.labgame-answer.wrong{border-color:#ff7770;background:#ffe0de}
.labgame-answer:disabled{cursor:default}
.labgame-feedback{min-height:52px;margin:12px auto;text-align:center;color:#fff;font-size:9px;font-weight:800;max-width:760px}
.labgame-feedback strong,.labgame-feedback span{display:block}.labgame-feedback strong{font-size:11px;color:#87dc80}.labgame-feedback strong+span{margin-top:5px;color:#d8d6ef;line-height:1.5}
.labgame-result{min-height:480px;display:grid;place-items:center;text-align:center}.labgame-result-inner{width:min(720px,100%)}
.labgame-result-inner h2{margin:8px 0 3px;color:#fff;font-size:clamp(52px,8vw,84px);line-height:.95}.labgame-result-inner h2 small{font-size:.24em;color:#d8d6ef}
.labgame-result-inner>p{margin:0;color:var(--yellow);font-size:12px;font-weight:900}
.labgame-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:20px auto;width:min(620px,100%)}
.labgame-result-grid div{padding:12px;border-radius:12px;background:rgba(255,255,255,.08)}.labgame-result-grid strong,.labgame-result-grid span{display:block}.labgame-result-grid span{font-size:8px;color:#d8d6ef}.labgame-result-grid strong{margin-top:3px;font-size:14px}
.survival-lives{display:flex;gap:4px;align-items:center}.survival-life{font-size:17px;line-height:1}.survival-life.lost{filter:grayscale(1);opacity:.28}
.survival-difficulty{display:inline-flex;padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.09);color:#fff;margin-left:6px}
.odd-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:720px;margin:18px auto}.odd-item{min-height:100px;font-size:clamp(18px,3vw,28px)}
.hl-comparison{display:grid;grid-template-columns:1fr auto 1fr;gap:12px;align-items:stretch;max-width:780px;margin:20px auto}.hl-card{min-height:190px;padding:24px 18px;border-radius:18px;background:#fff;color:var(--navy);display:grid;place-items:center;text-align:center}.hl-card small,.hl-card strong,.hl-card span{display:block}.hl-card small{text-transform:uppercase;letter-spacing:.06em;font-size:8px;color:#777597;font-weight:900}.hl-card strong{font-size:clamp(24px,4vw,40px);line-height:1.05}.hl-card .hl-value{margin-top:10px;font-size:18px;color:var(--orange);font-weight:950}.hl-vs{align-self:center;font-size:11px;font-weight:950;color:var(--yellow)}
.hl-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:520px;margin:0 auto}.hl-choice{min-height:58px;border:0;border-radius:14px;font:inherit;font-weight:950;font-size:12px;cursor:pointer}.hl-choice.higher{background:var(--green);color:#fff}.hl-choice.lower{background:var(--orange);color:#fff}.hl-choice:disabled{opacity:.55;cursor:default}
.content-import-hub{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0 16px}.content-import-card{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff}.content-import-card strong,.content-import-card span{display:block}.content-import-card span{margin-top:4px;font-size:9px;color:var(--muted);line-height:1.45}.content-import-card .admin-button{margin-top:10px}
.admin-analytics-signal{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:8px;font-weight:900}.admin-analytics-signal.top{background:#e6f6e4;color:#23771d}.admin-analytics-signal.mid{background:#f3f1ff;color:#3b3482}.admin-analytics-signal.low{background:#fff2d6;color:#9a5b00}
@media(max-width:700px){.labgame-top{display:block;padding:20px 18px 0}.labgame-back{display:inline-block;margin-top:10px}.labgame-intro,.labgame-loading,.labgame-stage,.labgame-result{width:calc(100% - 24px);margin-top:17px}.labgame-intro{padding:20px 14px}.labgame-answers,.odd-items{grid-template-columns:1fr}.labgame-stats{gap:5px}.labgame-stats strong{font-size:18px}.hl-comparison{grid-template-columns:1fr}.hl-vs{justify-self:center}.hl-card{min-height:135px}.content-import-hub{grid-template-columns:1fr}}

/* V41.8.0 — Survival flag rendering */
.survival-question-flag{
  display:inline-block;
  width:86px;
  height:auto;
  margin-top:14px;
  vertical-align:middle;
  border-radius:4px;
  box-shadow:0 4px 14px rgba(0,0,0,.16);
}
@media (max-width:700px){
  .survival-question-flag{width:68px;margin-top:10px}
}

/* V41.8.0 — Math Rush, Number Route, Sequence, Daily Try First */
.mathrush-timer{font-size:18px!important;color:var(--yellow)!important}.mathrush-problem{margin:28px auto 18px;text-align:center;color:#fff;font-size:clamp(44px,8vw,78px);font-weight:950;letter-spacing:-.03em}.mathrush-answer-form{display:flex;gap:10px;justify-content:center;max-width:520px;margin:12px auto}.mathrush-answer-form input{min-width:0;flex:1;min-height:58px;border:2px solid rgba(255,255,255,.18);border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-size:24px;font-weight:950;text-align:center;outline:none}.mathrush-answer-form input:focus{border-color:var(--yellow);box-shadow:0 0 0 3px rgba(255,216,19,.18)}.mathrush-actions{display:flex;gap:9px;justify-content:center}.mathrush-actions .labgame-next{margin:0;min-width:130px}.mathrush-timebar span{transition:width 1s linear}
.number-route-target{width:150px;margin:20px auto 14px;padding:12px 16px;border-radius:16px;background:var(--yellow);color:var(--navy);text-align:center}.number-route-target span,.number-route-target strong{display:block}.number-route-target span{font-size:8px;font-weight:950;text-transform:uppercase;letter-spacing:.08em}.number-route-target strong{font-size:34px;line-height:1.05}.number-route-board{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:18px auto}.number-route-number{display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:#fff;color:var(--navy);font-size:28px;font-weight:950}.number-route-number.used{box-shadow:0 0 0 3px rgba(255,216,19,.45)}.number-route-slot{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:rgba(255,255,255,.1);color:var(--yellow);font-size:22px;font-weight:950}.number-route-current{max-width:500px;margin:12px auto;text-align:center}.number-route-current span,.number-route-current strong,.number-route-current small{display:block}.number-route-current span{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:#cbc9e7;font-weight:900}.number-route-current strong{margin-top:3px;color:#fff;font-size:32px}.number-route-current small{margin-top:5px;color:#cbc9e7;font-size:9px}.number-route-ops{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;max-width:520px;margin:15px auto}.number-route-op{min-height:58px;border:0;border-radius:14px;background:#fff;color:var(--navy);font:inherit;font-size:24px;font-weight:950;cursor:pointer}.number-route-op:hover:not(:disabled){background:var(--yellow)}.number-route-op:disabled{opacity:.22;cursor:not-allowed}
.sequence-display{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:30px auto 12px}.sequence-display span{display:grid;place-items:center;min-width:70px;height:70px;padding:0 10px;border-radius:17px;background:#fff;color:var(--navy);font-size:24px;font-weight:950}.sequence-display .sequence-missing{background:var(--yellow);font-size:32px}
.try-first-shell{min-height:600px}.try-first-notice{width:min(900px,calc(100% - 34px));margin:18px auto 0;padding:12px 15px;border-radius:14px;background:rgba(255,216,19,.12);border:1px solid rgba(255,216,19,.3)}.try-first-notice strong,.try-first-notice span{display:block}.try-first-notice strong{color:var(--yellow);font-size:9px;text-transform:uppercase;letter-spacing:.06em}.try-first-notice span{margin-top:3px;color:#e4e2f3;font-size:9px;line-height:1.5}.try-first-help{text-align:center;color:#e4e2f3;font-size:11px}
.daily-journey-card-v2{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:16px;background:#fff}.daily-journey-card-v2.is-complete{background:#f4fbf2}.daily-journey-card-main{display:flex;align-items:center;gap:10px}.daily-journey-card-main .daily-journey-copy{flex:1}.daily-journey-actions{display:grid;grid-template-columns:1fr 1.45fr;gap:8px}.daily-journey-try,.daily-journey-play{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:10px;text-decoration:none;font-size:9px;font-weight:950}.daily-journey-try{border:1px solid #d8d6e8;color:var(--navy);background:#fff}.daily-journey-play{background:var(--navy);color:#fff}.daily-journey-card-v2.is-current{box-shadow:0 0 0 2px var(--yellow)}
@media(max-width:700px){.mathrush-answer-form{flex-direction:column}.number-route-number{width:56px;height:56px;font-size:22px}.number-route-slot{width:34px;height:34px}.number-route-ops{gap:6px}.number-route-op{min-height:52px}.sequence-display span{min-width:52px;height:56px;font-size:19px}.daily-journey-actions{grid-template-columns:1fr}.try-first-notice{width:calc(100% - 24px)}}

/* V41.8.0 integrated Daily archive + completed lock + Try First */
.games-past-picker{grid-column:1/-1;display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fff}.games-past-picker .archive-context{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.past-daily-card-action{margin-top:10px}.archive-unavailable{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px dashed #d8d6e8;border-radius:11px;color:#858397;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.daily-journey-completed-lock{display:flex;align-items:center;justify-content:center;min-height:38px;border-radius:10px;background:#e8f7e5;color:#187522;font-size:9px;font-weight:950}.try-first-global-banner{position:sticky;top:0;z-index:9999;display:flex;justify-content:center;gap:10px;align-items:center;padding:9px 16px;background:#fff4b7;color:var(--navy);border-bottom:1px solid #ead36a;font-size:11px}.try-first-global-banner strong{font-weight:950}.try-first-global-banner span{font-weight:750}.labgame-mode-note{font-size:11px;font-weight:850;color:#5d5a78}
