
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&display=swap');

:root{
  --bg:#ecfffb;
  --panel:#ffffff;
  --panel-soft:#f6fffd;
  --teal-900:#0f766e;
  --teal-700:#0d9488;
  --teal-500:#2dd4bf;
  --teal-300:#99f6e4;
  --yellow-500:#facc15;
  --yellow-300:#fde68a;
  --ink:#164e63;
  --muted:#4b6b73;
  --border:#cceee8;
  --shadow:0 12px 30px rgba(13,148,136,.12);
  --radius:26px;
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;padding:0}
body{
  font-family:'Fredoka',system-ui,sans-serif;
  background:linear-gradient(180deg,#e7fffb 0%, #f6fffd 100%);
  color:var(--ink);
}
a{color:inherit}
img{max-width:100%;display:block}

.site-header{
  background:linear-gradient(135deg,var(--teal-900),var(--teal-700));
  color:white;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.header-inner{
  max-width:1180px;margin:0 auto;padding:18px 18px 16px;
}
.brand{
  display:flex;align-items:center;gap:18px;
}
.brand-mark{
  width:68px;height:68px;border-radius:22px;
  background:linear-gradient(135deg,var(--yellow-500),#ffe78a);
  display:grid;place-items:center;
  color:#684b00;font-size:28px;box-shadow:inset 0 2px 3px rgba(255,255,255,.45);
  transition:transform .22s ease, box-shadow .22s ease;
  transform-origin:center;
  position:relative;
  z-index:2;
}
.brand-mark:hover{
  transform:scale(4);
  box-shadow:0 18px 36px rgba(0,0,0,.22), inset 0 2px 3px rgba(255,255,255,.45);
  z-index:30;
}
.brand h1{margin:0;font-size:2rem;line-height:1}
.brand p{margin:4px 0 0;font-size:.98rem;opacity:.92}
.player-panel{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  margin-left:auto;
  text-align:center;
}
.player-label{
  margin:0;
  font-size:.9rem;
  line-height:1.2;
  color:white;
  opacity:.96;
}
.player-label strong{
  display:block;
  font-size:1rem;
}

.main-nav{
  display:flex;flex-wrap:wrap;gap:10px;margin-top:14px
}
.main-nav a{
  text-decoration:none;
  background:rgba(255,255,255,.18);
  color:white;padding:11px 16px;border-radius:999px;
  font-weight:600;border:1px solid rgba(255,255,255,.12);
}
.main-nav a.active,.main-nav a:hover{
  background:var(--yellow-500);color:#584300;
}

.page{
  max-width:1180px;margin:24px auto;padding:0 18px 48px;
}

.hero, .card, .resource-card, .stats-card, .question-card, .print-sheet, .subject-tile{
  background:var(--panel);
  border:2px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero{
  padding:24px 26px;display:grid;grid-template-columns:1fr;gap:10px;
  background:
   radial-gradient(circle at top right, rgba(250,204,21,.22), transparent 28%),
   linear-gradient(135deg,#ffffff 0%, #f7fffd 100%);
}
.hero h2{margin:0 0 8px;color:var(--teal-900);font-size:2.05rem}
.hero p{margin:0;color:var(--muted);font-size:1.02rem;line-height:1.5;max-width:860px}
.hero-bubbles{
  display:none;
  min-height:210px;border-radius:22px;
  background:
    radial-gradient(circle at 25% 30%, rgba(45,212,191,.35), transparent 16%),
    radial-gradient(circle at 65% 25%, rgba(250,204,21,.35), transparent 18%),
    radial-gradient(circle at 80% 65%, rgba(45,212,191,.25), transparent 18%),
    linear-gradient(180deg,#dffbf7,#faffee);
  position:relative;overflow:hidden;
}
.hero-bubbles:before,.hero-bubbles:after{
  content:"";position:absolute;left:-12%;right:-12%;height:72px;border-radius:999px;
  background:rgba(13,148,136,.15)
}
.hero-bubbles:before{bottom:34px;transform:rotate(-3deg)}
.hero-bubbles:after{bottom:-6px;background:rgba(250,204,21,.24);transform:rotate(2deg)}
.hero-icons{
  position:absolute;inset:0;display:grid;place-items:center;font-size:3.4rem;color:var(--teal-900)
}
.row-buttons,.button-row{
  display:flex;gap:12px;flex-wrap:wrap
}
.btn{
  appearance:none;border:none;cursor:pointer;text-decoration:none;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 18px;border-radius:18px;font:600 1rem 'Fredoka',sans-serif;
  background:var(--teal-700);color:white;box-shadow:0 8px 18px rgba(13,148,136,.18);
}
.btn:hover{transform:translateY(-1px)}
.btn.secondary{background:var(--yellow-500);color:#5a4300}
.btn.ghost{background:#effcf9;color:var(--teal-900);border:2px solid var(--border);box-shadow:none}
.btn.big{
  width:100%;justify-content:flex-start;padding:20px 22px;border-radius:24px;font-size:1.2rem;
}

.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.three-col{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:18px;align-items:start}
.card{padding:22px}
.card h3,.stats-card h3,.question-card h2,.resource-card h3,.subject-tile h3{margin:0 0 12px;color:var(--teal-900)}
.card p,.card li,.stats-card p,.question-card p{color:var(--muted);line-height:1.55}
ul.pretty{margin:0;padding-left:22px}
ul.pretty li{margin:8px 0}

label{display:block;margin:10px 0 6px;font-weight:600;color:var(--teal-900)}
select,input[type="text"],input[type="password"],input[type="number"]{
  width:100%;padding:13px 14px;border-radius:18px;border:2px solid var(--border);
  font:500 1rem 'Fredoka',sans-serif;color:var(--ink);background:#fcfffe;
}
.setup-card{
  background:
    radial-gradient(circle at top right, rgba(250,204,21,.18), transparent 26%),
    linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
}
.returning-card[hidden],
#setupPlayerCard[hidden]{
  display:none !important;
}
.returning-card{
  background:#fcfffe;
  border:2px solid var(--border);
  border-radius:24px;
  padding:18px;
}
.returning-pin{
  margin-top:10px;
  padding:16px;
  background:#f6fffd;
  border:2px solid var(--border);
  border-radius:22px;
}
.returning-pin[hidden]{
  display:none !important;
}
.setup-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.setup-preview{
  min-width:220px;
  display:flex;
  align-items:center;
  gap:12px;
  background:#f6fffd;
  border:2px solid var(--border);
  border-radius:22px;
  padding:12px 14px;
}
.setup-preview strong{
  display:block;
  font-size:1.15rem;
  color:var(--teal-900);
}
.setup-preview p{
  margin:4px 0 0;
  font-size:.92rem;
}
.setup-preview-avatar{
  width:62px;
  height:62px;
  flex:0 0 62px;
  display:grid;
  place-items:center;
  border-radius:20px;
  background:linear-gradient(135deg,var(--yellow-500),#ffe78a);
}
.setup-step{
  display:grid;
  grid-template-columns:52px 1fr;
  gap:14px;
  align-items:start;
  margin-top:14px;
  padding:16px;
  background:#fcfffe;
  border:2px solid var(--border);
  border-radius:24px;
}
.setup-number{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--teal-700);
  color:white;
  font-weight:600;
  font-size:1.05rem;
  margin-top:2px;
}
.setup-content label{
  margin-top:0;
}
.field-help{
  margin:8px 0 0;
  font-size:.94rem;
  color:var(--muted);
}
.profile-status{
  min-height:28px;
  margin:14px 0 0;
  font-weight:500;
  color:var(--teal-900);
}
.lock-card{
  max-width:720px;
  margin:12px auto 0;
  text-align:center;
  background:
    radial-gradient(circle at top right, rgba(250,204,21,.18), transparent 24%),
    linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
}
.lock-badge{
  display:inline-block;
  margin-bottom:16px;
  padding:8px 14px;
  border-radius:999px;
  background:var(--yellow-300);
  color:#6b5600;
  font-weight:600;
}
.lock-preview{
  justify-content:center;
  margin-bottom:16px;
}
.lock-input-wrap{
  max-width:260px;
  margin:18px auto 0;
  text-align:left;
}
.lock-actions{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}
.lock-input{
  text-align:center;
  font-size:1.1rem;
  letter-spacing:.12em;
}
.range-wrap{
  background:#f7fffd;border:2px solid var(--border);padding:14px;border-radius:20px;margin-top:8px
}
.range-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.range-value{
  background:var(--yellow-300);padding:8px 12px;border-radius:999px;color:#6b5600;font-weight:600
}
input[type="range"]{width:100%}
.range-labels{display:flex;justify-content:space-between;color:var(--muted);font-size:.9rem;margin-top:6px}

.practice-layout{display:grid;grid-template-columns:280px 1fr 280px;gap:18px;align-items:start}
.question-card{padding:22px;text-align:center;transition:border-color .18s ease, box-shadow .18s ease, background .18s ease}
.question-card.is-complete{
  box-shadow:0 16px 34px rgba(13,148,136,.14);
}
.question-card.is-correct{
  border-color:#9adf8f;
  background:linear-gradient(180deg,#ffffff 0%, #f5fff2 100%);
}
.question-card.is-incorrect{
  border-color:#f3e7a6;
  background:linear-gradient(180deg,#ffffff 0%, #fffdf3 100%);
}
.question-top{font-size:.98rem;color:var(--muted);margin-bottom:4px}
.question-big{
  font-size:clamp(2.4rem,6vw,4.6rem);
  line-height:1.08;color:var(--teal-900);margin:12px 0 18px;font-weight:600
}
.answer-row{max-width:320px;margin:0 auto}
.answer-row input:disabled{
  background:#eef8f5;
  color:var(--muted);
  cursor:not-allowed;
}
.answer-row input[aria-invalid="true"]{
  border-color:#f59e0b;
  box-shadow:0 0 0 3px rgba(245,158,11,.16);
}
.feedback{
  min-height:60px;margin-top:14px;font-size:1.08rem;font-weight:500;
  color:var(--teal-900)
}
.skip-link{
  appearance:none;
  background:none;
  border:none;
  margin-top:10px;
  color:var(--teal-900);
  font:600 .98rem 'Fredoka',sans-serif;
  text-decoration:underline;
  cursor:pointer;
}
.skip-link:hover{
  color:var(--teal-700);
}
.lock-space-link{
  margin-top:12px;
}
.header-lock-link{
  margin-top:0;
  color:white;
  opacity:.95;
  font-size:.9rem;
}
.header-lock-link:hover{
  color:var(--yellow-300);
}
.notice{
  display:inline-block;background:#f6ffec;border:2px solid #e7f7bf;color:#5b6500;
  padding:10px 14px;border-radius:18px;margin-top:8px
}
.stats-card{padding:20px}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat{
  background:var(--panel-soft);border:2px solid var(--border);border-radius:20px;padding:14px;text-align:center
}
.stat strong{display:block;font-size:1.8rem;color:var(--teal-900)}
.streak-pill{
  display:inline-flex;align-items:center;gap:8px;background:var(--yellow-300);
  color:#6a5400;padding:10px 16px;border-radius:999px;font-weight:600;margin-bottom:12px
}
.progress-bar{
  height:18px;background:#e8fffb;border-radius:999px;overflow:hidden;border:2px solid var(--border)
}
.progress-bar > span{
  display:block;height:100%;background:linear-gradient(90deg,var(--teal-700),var(--yellow-500));width:0%
}
.badge-list{
  display:flex;flex-wrap:wrap;gap:10px
}
.badge{
  background:#fdfdf0;border:2px solid #f3e7a6;border-radius:16px;padding:10px 12px;color:#6a5400;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:8px;
}
.badge.locked{
  background:#f5fbfb;border-color:var(--border);color:#7b9497
}
#progressBadges{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.badge-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  padding:14px 16px;
}
.badge-title{
  font-size:1rem;
  color:inherit;
  display:flex;
  align-items:center;
  gap:10px;
}
.badge-desc{
  font-size:.92rem;
  line-height:1.45;
  font-weight:500;
  color:#7a6200;
}
.badge.locked .badge-desc{
  color:#6e8a8e;
}
.badge-icon-img{
  width:52px;
  height:52px;
  object-fit:contain;
  flex:0 0 52px;
}
.badge-pill-img{
  width:28px;
  height:28px;
  object-fit:contain;
  flex:0 0 28px;
}
.header-badge{
  overflow:hidden;
  padding:0;
}
.header-badge-img{
  width:100%;
  height:100%;
  object-fit:contain;
}
.avatar-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:10px;margin-top:10px;
  overflow:visible;
}
.avatar-btn{
  background:#f8fffd;border:2px solid var(--border);border-radius:20px;padding:10px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;gap:6px;font:500 .92rem 'Fredoka',sans-serif;color:var(--ink);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  transform-origin:center;
  position:relative;
  z-index:1;
}
.avatar-btn.active{border-color:var(--teal-700);box-shadow:0 0 0 3px rgba(13,148,136,.12)}
.avatar-btn:hover{
  box-shadow:0 10px 18px rgba(13,148,136,.12);
  border-color:var(--teal-500);
}
.avatar-thumb{font-size:2rem}

.resource-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px
}
.resource-card{padding:22px}
.resource-preview{
  background:
   radial-gradient(circle at 15% 15%, rgba(45,212,191,.2), transparent 16%),
   linear-gradient(180deg,#ffffff 0%, #f8fffc 100%);
  border:2px dashed var(--border);border-radius:22px;padding:18px;min-height:220px
}
.table-grid{display:grid;grid-template-columns:repeat(13,1fr);gap:4px;font-size:.84rem}
.table-grid .cell,.hundred-grid .cell{
  background:white;border:1px solid var(--border);border-radius:8px;padding:6px 4px;text-align:center
}
.table-grid .head{background:var(--yellow-300);font-weight:600}
.hundred-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.resource-mini-list{margin:0;padding-left:20px}
.resource-mini-list li{margin:7px 0;color:var(--muted)}
.print-sheet{padding:24px}
.sheet-questions{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin-top:16px}
.sheet-q{
  background:#fff;border:2px dashed var(--border);border-radius:16px;padding:14px 16px;min-height:56px;font-size:1.15rem
}

.progress-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}
.topic-row{margin:14px 0}
.topic-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-weight:600;color:var(--teal-900)}
.goal-box{
  background:linear-gradient(135deg,#f6ffec,#fffdf2);
  border:2px solid #f3e7a6;border-radius:24px;padding:18px
}

.subject-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:18px}
.subject-tile{padding:22px}

.footer{
  text-align:center;color:var(--muted);padding:0 18px 28px
}
.footer-links{
  margin-top:10px;
}
.footer-links a{
  display:inline-block;
  color:var(--teal-900);
  font-weight:600;
  text-decoration:none;
  border-bottom:2px solid rgba(13,148,136,.24);
  padding-bottom:2px;
}
.footer-links a:hover{
  color:var(--teal-700);
  border-bottom-color:var(--teal-700);
}
.info-card p{
  margin-bottom:12px;
}

@media print{
  .site-header,.button-row,.row-buttons,.no-print{display:none!important}
  body{background:white}
  .page{max-width:none;margin:0;padding:0}
  .resource-card,.print-sheet,.card,.question-card,.stats-card{box-shadow:none}
  body[data-page="progress"] .hero,
  body[data-page="progress"] .progress-grid,
  body[data-page="progress"] #topicProgress,
  body[data-page="progress"] footer{
    display:none!important;
  }
  body[data-page="progress"] .page{
    padding:0;
  }
  body[data-page="progress"] .report-card{
    margin-top:0!important;
    border:none;
    box-shadow:none;
    padding:0;
    background:white;
  }
  body[data-page="progress"] .progress-report{
    margin-top:0;
    border:none;
    border-radius:0;
    padding:0;
    background:white;
  }
  body[data-page="progress"] .report-title{
    border-bottom:2px solid #d9ece7;
    padding-bottom:10px;
    margin-bottom:12px;
  }
  body[data-page="progress"] .report-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:12px;
  }
  body[data-page="progress"] .report-box{
    background:white;
    border:1px solid #d9ece7;
    border-radius:12px;
    padding:10px 12px;
    break-inside:avoid;
  }
  body[data-page="progress"] .report-badges,
  body[data-page="progress"] .report-topic-list{
    margin-top:14px;
  }
  body[data-page="progress"] .report-topic-row{
    background:white;
    border:1px solid #d9ece7;
    border-radius:12px;
    padding:10px 12px;
    break-inside:avoid;
  }
  body[data-page="progress"] .badge-list{
    gap:8px;
  }
  body[data-page="progress"] .badge{
    border-width:1px;
    padding:8px 10px;
  }
}
@media (max-width:980px){
  .practice-layout,.three-col,.hero{grid-template-columns:1fr}
  .resource-grid,.progress-grid,.two-col,.subject-grid,.sheet-questions{grid-template-columns:1fr}
  .setup-top{
    flex-direction:column;
  }
  .setup-preview{
    min-width:0;
    width:100%;
  }
}


/* Refined resource + worksheet layouts */
.resource-hub{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.resource-tile{
  background:linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
  border:2px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:22px;
}
.resource-button{
  width:100%;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  background:linear-gradient(135deg,#eafff9 0%, #ffffff 100%);
  border:2px solid var(--border);
  border-radius:26px;
  padding:22px 24px;
  font:600 1.25rem 'Fredoka',sans-serif;
  color:var(--teal-900);
  cursor:pointer;
  box-shadow:0 8px 18px rgba(13,148,136,.08);
}
.resource-button:hover{transform:translateY(-1px)}
.resource-button small{
  display:block;
  color:var(--muted);
  font:500 .92rem 'Fredoka',sans-serif;
  margin-top:4px;
}
.resource-icon{
  font-size:2.1rem;
  flex:0 0 auto;
}
.resource-panel{
  margin-top:14px;
  background:#fcfffe;
  border:2px dashed var(--border);
  border-radius:24px;
  padding:18px;
}
.resource-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}
.resource-actions .btn{flex:1 1 180px}

.worksheet-layout{
  display:grid;
  grid-template-columns:300px 1fr;
  gap:18px;
  align-items:start;
}
.sticky-card{
  position:sticky;
  top:112px;
}
.print-sheet{
  min-height:560px;
}
.sheet-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.sheet-sub{
  color:var(--muted);
  margin:0;
}
.sheet-questions.one-col{
  grid-template-columns:1fr;
}
.sheet-questions .sheet-q{
  display:flex;
  align-items:center;
}
.sheet-q span{
  display:inline-block;
}
@media (max-width:980px){
  .resource-hub,.worksheet-layout{grid-template-columns:1fr}
  .sticky-card{position:static}
}


/* SVG avatar styling */
.avatar-brand{
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.site-avatar-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
}
.avatar-thumb{
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
}
.avatar-option-img{
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
}
.inline-avatar-img{
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.08));
}


.site-header .brand{
  gap: 16px;
}
.site-logo-link{
  display:grid;
  place-items:center;
  text-decoration:none;
  border-radius:28px;
}
.site-logo-link:focus-visible{
  outline:3px solid rgba(250,204,21,.9);
  outline-offset:6px;
}
.site-logo{
  width: 180px;
  height: 180px;
  flex: 0 0 180px;
  display: grid;
  place-items: center;
}
.site-logo-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:transform .18s ease, filter .18s ease;
}
.site-logo-link:hover .site-logo-img,
.site-logo-link:focus-visible .site-logo-img{
  transform:scale(1.08);
  filter:drop-shadow(0 12px 22px rgba(0,0,0,.16));
}
.site-header .brand > div:nth-child(2){
  min-width: 0;
}
.avatar-grid{
  min-height: 120px;
}
.avatar-btn{
  min-height: 108px;
}
.avatar-option-img{
  width: 56px;
  height: 56px;
  display: block;
}
@media (max-width:980px){
  .site-logo{
    width: 132px;
    height: 132px;
    flex: 0 0 132px;
  }
}

.landing-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:18px;
  margin-top:18px;
  align-items:start;
}
.login-card,
.selected-player-card{
  background:linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
}
.card-intro p{margin-top:0}
.empty-note{
  margin:12px 0 0;
  padding:14px 16px;
  border:2px dashed var(--border);
  border-radius:20px;
  background:#f8fffd;
}
.saved-players{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
  margin-top:14px;
}
.saved-player-card{
  appearance:none;
  border:2px solid var(--border);
  background:#fcfffe;
  border-radius:24px;
  padding:16px 14px;
  cursor:pointer;
  text-align:center;
  color:var(--ink);
  font:600 1rem 'Fredoka',sans-serif;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.saved-player-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(13,148,136,.14);
  border-color:var(--teal-500);
}
.saved-player-card.active{
  border-color:var(--teal-700);
  box-shadow:0 0 0 3px rgba(13,148,136,.12);
}
.saved-player-card.unlocked{
  background:linear-gradient(180deg,#ffffff 0%, #f3fff8 100%);
}
.saved-player-card strong{
  display:block;
  margin-top:10px;
  color:var(--teal-900);
}
.saved-player-card span{
  display:block;
  margin-top:6px;
  font-size:.9rem;
  color:var(--muted);
}
.saved-player-avatar{
  width:72px;
  height:72px;
  margin:0 auto;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(135deg,var(--yellow-500),#ffe78a);
}
.selected-player-card{
  margin-top:16px;
  padding:18px;
  border:2px solid var(--border);
  border-radius:24px;
}
.selected-player-preview{
  justify-content:space-between;
}
.landing-actions{margin-top:14px}
.lock-players{margin:18px 0}
@media (max-width:980px){
  .landing-grid{grid-template-columns:1fr}
}

.topic-helper{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top:12px;
  padding:14px;
  border:2px solid var(--border);
  border-radius:20px;
  background:#f8fffd;
}
.topic-helper-icon{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:linear-gradient(135deg,var(--yellow-500),#ffe78a);
  color:#684b00;
  font-size:1.35rem;
  font-weight:700;
}
.topic-helper strong{
  display:block;
  color:var(--teal-900);
  margin-top:2px;
}
.topic-helper p{
  margin:4px 0 0;
  font-size:.94rem;
  line-height:1.45;
}

.subject-grid-rich{
  align-items:stretch;
}
.subject-card-live{
  display:flex;
  flex-direction:column;
  gap:14px;
  background:linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
}
.subject-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.subject-icon{
  min-width:56px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg,var(--yellow-500),#ffe78a);
  color:#684b00;
  font-weight:700;
  font-size:1rem;
}
.subject-sub{
  margin:4px 0 0;
  font-size:.95rem;
}
.subject-panel{
  border:2px solid var(--border);
  border-radius:22px;
  background:#fcfffe;
  padding:16px;
  min-height:150px;
}
.subject-panel strong{
  display:block;
  color:var(--teal-900);
  margin-bottom:6px;
  font-size:1.08rem;
}
.subject-panel p{
  margin:6px 0 0;
}
.subject-answer{
  margin-top:10px;
  padding:10px 12px;
  border-radius:16px;
  background:#f6ffec;
  border:2px solid #e7f7bf;
  color:#5b6500;
  font-weight:600;
}
.subject-actions{
  margin-top:auto;
}

.player-top{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
}
.header-badges{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  justify-content:flex-end;
  max-width:140px;
}
.header-badge{
  min-width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.2);
  color:white;
  font-size:.78rem;
  font-weight:700;
  padding:0 8px;
}
.report-card{
  background:linear-gradient(180deg,#ffffff 0%, #f8fffd 100%);
}
.report-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.progress-report{
  margin-top:16px;
  border:2px solid var(--border);
  border-radius:24px;
  background:#fcfffe;
  padding:20px;
}
.report-title{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.report-meta{
  color:var(--muted);
  margin-top:6px;
}
.report-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}
.report-box{
  border:2px solid var(--border);
  border-radius:20px;
  background:#f8fffd;
  padding:14px;
}
.report-box strong{
  display:block;
  color:var(--teal-900);
  margin-bottom:6px;
}
.report-box span{
  display:block;
  font-size:1.1rem;
  font-weight:600;
  color:var(--ink);
}
.report-topic-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.report-topic-row{
  border:2px solid var(--border);
  border-radius:18px;
  padding:12px 14px;
  background:white;
}
.report-badges{
  margin-top:18px;
}
.report-badges .badge-list{
  margin-top:10px;
}
@media (max-width:980px){
  .report-head,.report-title{flex-direction:column}
  .report-grid{grid-template-columns:1fr}
  .player-top{flex-direction:column}
  .header-badges{justify-content:center;max-width:none}
}
