/* Home actions retain their roles instead of inheriting one accent colour.
   Pastel surfaces with dark text keep each palette readable in every theme. */
.home-shell {
  --home-check-bg:#ffe0a3; --home-check-text:#51350a;
  --home-study-bg:#b9dcff; --home-study-text:#173d68;
  --home-class-bg:#b4ebce; --home-class-text:#194a32;
  --home-game-bg:#dcc8ff; --home-game-text:#49316d;
}
body[data-site-theme="midnight"] .home-shell {
  --home-check-bg:#f6cf83; --home-check-text:#48310c;
  --home-study-bg:#a8caff; --home-study-text:#19385e;
  --home-class-bg:#8ee1cb; --home-class-text:#123e34;
  --home-game-bg:#c5b6f7; --home-game-text:#3b2860;
}
body[data-site-theme="light"] .home-shell {
  --home-check-bg:#ffe1a4; --home-check-text:#61420f;
  --home-study-bg:#c3e4ff; --home-study-text:#17476b;
  --home-class-bg:#c4eddd; --home-class-text:#215b45;
  --home-game-bg:#dfd6ff; --home-game-text:#503876;
}
body[data-site-theme="sakura"] .home-shell {
  --home-check-bg:#ffc9dc; --home-check-text:#792643;
  --home-study-bg:#d5d2ff; --home-study-text:#413875;
  --home-class-bg:#d1ecdc; --home-class-text:#315841;
  --home-game-bg:#f3d2f3; --home-game-text:#70366e;
}
body[data-site-theme="latte"] .home-shell {
  --home-check-bg:#efd09b; --home-check-text:#604017;
  --home-study-bg:#bddbdc; --home-study-text:#2b5053;
  --home-class-bg:#d7dfa9; --home-class-text:#485121;
  --home-game-bg:#e6c6b5; --home-game-text:#613d30;
}
body[data-site-theme="forest"] .home-shell {
  --home-check-bg:#e7c17f; --home-check-text:#4c3515;
  --home-study-bg:#b6d58c; --home-study-text:#304719;
  --home-class-bg:#9bd4c3; --home-class-text:#204f40;
  --home-game-bg:#d7b2ce; --home-game-text:#5a3151;
}
body[data-site-theme="halloween"] .home-shell {
  --home-check-bg:#ffbd78; --home-check-text:#572b0e;
  --home-study-bg:#c8adf4; --home-study-text:#3e255e;
  --home-class-bg:#c5de8b; --home-class-text:#364918;
  --home-game-bg:#f0acd0; --home-game-text:#652447;
}
body .site-main .home-shell .btn {
  --home-button-bg:var(--home-check-bg);
  --home-button-text:var(--home-check-text);
  background:var(--home-button-bg);
  color:var(--home-button-text);
  border:1px solid var(--home-button-text);
  font-weight:700;
  text-shadow:none;
  box-shadow:0 3px 8px #00000012;
}
body .site-main .home-shell .btn.home-btn-student-page {
  --home-button-bg:var(--home-study-bg); --home-button-text:var(--home-study-text);
}
body .site-main .home-shell .btn.home-btn-meet {
  --home-button-bg:var(--home-class-bg); --home-button-text:var(--home-class-text);
}
body .site-main .home-shell .btn.home-btn-game {
  --home-button-bg:var(--home-game-bg); --home-button-text:var(--home-game-text);
}
body .site-main .home-shell .btn.home-btn-secondary {
  --home-button-bg:var(--site-inset,#172126); --home-button-text:var(--site-text,#eef5f3);
}
body .site-main .home-shell .btn:not(:disabled):not(.is-disabled):hover {
  background:var(--home-button-bg); color:var(--home-button-text);
  filter:brightness(.96); box-shadow:0 4px 12px #00000024;
}
body .site-main .home-shell .btn:focus-visible {
  outline:3px solid var(--site-accent,#8ce4df); outline-offset:3px;
}
body .site-main .home-shell .home-hero-actions .btn:is(:disabled,.is-disabled) {
  background:var(--site-inset,#172126); color:var(--site-muted,#b6cbd1);
  border-color:var(--site-border,#4c626c); box-shadow:none; opacity:1; filter:none;
}
body .site-main .home-shell .home-hero-actions .home-btn-attendance:disabled {
  background:var(--site-success-bg,#19392c); color:var(--site-success,#b0f0c6);
  border-color:var(--site-success,#b0f0c6);
}
.home-shell .home-stat-card--rank { border-color:var(--site-accent,#8ce4df); }
.home-shell .home-stat-card--rank .home-stat-value { color:var(--site-accent,#8ce4df); }
.home-shell .home-rank-next { margin:8px 0 0; color:var(--site-muted,#b6cbd1); font-size:.88rem; line-height:1.6; }
.home-shell .home-rank-next strong { color:var(--site-text,#eef5f3); }
