@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@600;700;800;900&family=Noto+Sans+Devanagari:wght@500;600;700;800&display=swap');
@import url('/site-brand.css');

/* Shared SanskritPlayground theme. The landing page remains owned by homepage-refresh.css. */
:root {
  --sp-ink: #183c57;
  --sp-ink-soft: #41627a;
  --sp-sky: #62d8eb;
  --sp-sky-light: #c9f7fa;
  --sp-teal: #087e91;
  --sp-coral: #ff705e;
  --sp-mango: #ffd348;
  --sp-leaf: #75cf72;
  --sp-violet: #a875e8;
  --sp-paper: #fffdf2;
  --sp-border: #d8e9df;
  --sp-shadow: rgba(24, 60, 87, .12);
}

body:not(:has(#homepage)) {
  /* Bridge older lesson tokens to the same palette, including Mathura. */
  --ink: var(--sp-ink);
  --muted: var(--sp-ink-soft);
  --paper: var(--sp-paper);
  --cream: #fff0b3;
  --coral: var(--sp-coral);
  --coral-dark: #a53d30;
  --sun: var(--sp-mango);
  --leaf: #1d7c46;
  --sky: var(--sp-sky-light);
  --lilac: #efe4ff;
  --line: var(--sp-border);
  --white: var(--sp-paper);
  --display: "Fredoka", "Noto Sans Devanagari", sans-serif;
  --body: "Nunito", "Noto Sans Devanagari", sans-serif;
  color-scheme: light;
  color: var(--sp-ink);
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
  background:
    radial-gradient(ellipse at 3% 2%, rgba(98, 216, 235, .42), transparent 36rem),
    radial-gradient(ellipse at 97% 7%, rgba(255, 211, 72, .42), transparent 34rem),
    radial-gradient(ellipse at 3% 72%, rgba(117, 207, 114, .28), transparent 32rem),
    radial-gradient(ellipse at 97% 66%, rgba(168, 117, 232, .22), transparent 34rem),
    linear-gradient(145deg, #e0f8f8 0%, #fff3cf 48%, #e7f4df 100%);
  background-attachment: fixed;
}

body:not(:has(#homepage)) :where(h1, h2, h3, h4):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .edu-success, .edu-error, .is-success, .is-error
)) {
  color: var(--sp-ink);
  font-family: "Fredoka", "Noto Sans Devanagari", sans-serif;
  font-weight: 600;
  text-shadow: none;
  -webkit-text-fill-color: currentColor;
}

body:not(:has(#homepage)) :where(p, label, small, li) {
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
}

body:not(:has(#homepage)) :where([lang="sa"], [lang="hi"], .dv, .sanskrit, .sanskrit-term,
  .word-game-question, .story-word, .we-dv, .a-dev, .d-dev, .clue-dv, .letter) {
  font-family: "Noto Sans Devanagari", "Nunito", sans-serif;
}

body:not(:has(#homepage)) :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #8e3dd0;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--sp-paper);
}

body:not(:has(#homepage)) :where(input, select, textarea) {
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
}

body:not(:has(#homepage)) :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="hidden"]),
  select, textarea
) {
  color: #183c57;
  background-color: #fffdf2;
  border-color: #6f8b96;
}

body:not(:has(#homepage)) :where(input, textarea)::placeholder {
  color: #526d7c;
  opacity: 1;
}

body:not(:has(#homepage)) select option {
  color: #183c57;
  background: #fffdf2;
}

body:not(:has(#homepage)) :where(button, .btn, .button, .primary-button, .soft-button,
  .sound-button, .edu-btn, .search-btn, .path-button, .path-button-secondary,
  .cta-primary, .cta-secondary, .start-btn, .back-home, .back-link, .bk, .back-btn):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again, .selected, .active, .matched,
  .revealed, .is-locked, .is-success, .is-error, .edu-success, .edu-error, [aria-pressed="true"],
  [aria-selected="true"], :disabled, [disabled]
)) {
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
  font-weight: 900;
  border-radius: 16px;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}

/* Soft tactile surfaces for the common page and learning panels; gameplay canvases are untouched. */
body:not(:has(#homepage)) :where(
  main, .content, .path-panel, .detail-card, .quiz-box, .word-entry, .search-wrap,
  .arcade-game-card, .stats-section, .activity-panel, .edu-question, .level,
  .kosha-grid > *, .agni-card, .teacher-week, .teacher-lesson-guide, .game-area, .arcade-header,
  .password-box, .header,
  .container:not(:has(canvas)), .game-container:not(:has(canvas)), .game-wrapper:not(:has(canvas))
) {
  border-radius: 22px;
  border-color: var(--sp-border);
  box-shadow: 0 7px 0 rgba(8, 126, 145, .08), 0 14px 30px var(--sp-shadow);
}

body:not(:has(#homepage)) :where(
  .arcade-game-card, .detail-card, .quiz-box, .word-entry, .search-wrap,
  .stats-section, .activity-panel, .edu-question, .path-panel, .game-area,
  .arcade-header, .password-box, .header,
  .container:not(:has(canvas)), .game-container:not(:has(canvas))
) {
  background: linear-gradient(145deg, #fff2c5 0%, #f5e9ff 54%, #ddf7f5 100%);
}

/* Give the shared content shells and repeated learning cards the same bright color rhythm as home. */
body:not(:has(#homepage)) .path-shell {
  background: transparent;
}

body:not(:has(#homepage)) :where(
  .container:not(:has(canvas)), .game-container:not(:has(canvas)), .content,
  .path-panel, .arcade-header, .header, .game-area, .activity-panel,
  .quiz-box, .detail-card, .word-entry, .search-wrap, .edu-question,
  .roadmap, .intro-main, .intro-aside, .result-card, .result-top
) {
  color: var(--sp-ink);
  background: linear-gradient(135deg, #e0f8f7 0%, #fff2c7 58%, #f5eaff 100%);
}

body:not(:has(#homepage)) :where(
  .card, [class$="-card"], [class$="-box"], .roadmap-step, .preview-step,
  .path-step, .step-card, .lesson-step, .guide-card
):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)) {
  color: var(--sp-ink);
  border-color: #b8dfe3;
  background: #e1f8f5;
}

body:not(:has(#homepage)) :where(
  .card, [class$="-card"], [class$="-box"], .roadmap-step, .preview-step,
  .path-step, .step-card, .lesson-step, .guide-card
):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)):nth-child(5n + 2) {
  border-color: #f0d488;
  background: #fff1bf;
}

body:not(:has(#homepage)) :where(
  .card, [class$="-card"], [class$="-box"], .roadmap-step, .preview-step,
  .path-step, .step-card, .lesson-step, .guide-card
):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)):nth-child(5n + 3) {
  border-color: #f0b9a9;
  background: #ffe5dd;
}

body:not(:has(#homepage)) :where(
  .card, [class$="-card"], [class$="-box"], .roadmap-step, .preview-step,
  .path-step, .step-card, .lesson-step, .guide-card
):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)):nth-child(5n + 4) {
  border-color: #cbb5ed;
  background: #efe6ff;
}

body:not(:has(#homepage)) :where(
  .card, [class$="-card"], [class$="-box"], .roadmap-step, .preview-step,
  .path-step, .step-card, .lesson-step, .guide-card
):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)):nth-child(5n + 5) {
  border-color: #9adce7;
  background: #d8f5fc;
}

body:not(:has(#homepage)) #password-screen {
  color: var(--sp-ink);
  background:
    radial-gradient(ellipse at 10% 10%, rgba(98, 216, 235, .3), transparent 30rem),
    radial-gradient(ellipse at 90% 90%, rgba(255, 211, 72, .34), transparent 26rem),
    var(--sp-paper);
}

body:not(:has(#homepage)) .password-box :where(h1, h2, h3, p) {
  color: var(--sp-ink);
}

body:not(:has(#homepage)) .password-input-group input {
  border-color: #b9e9eb;
  color: var(--sp-ink);
  background: #fffdf2;
}

body:not(:has(#homepage)) .password-submit {
  border: 2px solid #fff0b3;
  border-radius: 16px;
  color: #55340b;
  background: var(--sp-mango);
  box-shadow: 0 4px 0 #df9a23;
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
  font-weight: 900;
}

body:not(:has(#homepage)) .password-back {
  color: var(--sp-teal);
}

/* Standalone game HUDs adopt the home palette while their playable rendering stays intact. */
body:not(:has(#homepage)) :where(.stats, .game-stats, .score-bar, .sb, .stat-card,
  .progress-capsule, .game-header, .arcade-header, .back-home, .bk) {
  color: var(--sp-ink);
}

body:not(:has(#homepage)) :where(.sb, .stat-card, .progress-capsule, .score-bar span) {
  border: 1px solid #b9e9eb;
  border-radius: 14px;
  background: #f3ffff;
  box-shadow: 0 3px 0 rgba(8, 126, 145, .09);
}

body:not(:has(#homepage)) :where(.sb span, .stat-number, .stat-card span:last-child):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-success, .is-error
)) {
  color: var(--sp-teal);
  text-shadow: none;
}

body:not(:has(#homepage)) :where(.back-home, .bk, .back-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: .45rem .85rem;
  border: 2px solid #b9e9eb;
  color: #17516a;
  background: #f3ffff;
  text-decoration: none;
}

body:not(:has(#homepage)) :where(.btn, .button, .primary-button, .edu-btn, .search-btn,
  .path-button, .cta-primary, .start-btn, .bp, .btn-p, .btn-primary):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again, .selected, .active, .matched,
  .revealed, .is-locked, .is-success, .is-error, .edu-success, .edu-error, [aria-pressed="true"],
  [aria-selected="true"], :disabled, [disabled]
)) {
  border: 2px solid #fff0b3;
  color: #55340b;
  background: var(--sp-mango);
  box-shadow: 0 4px 0 #df9a23;
}

body:not(:has(#homepage)) :where(.btn, .button, .primary-button, .edu-btn, .search-btn,
  .path-button, .cta-primary, .start-btn, .bp, .btn-p, .btn-primary):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again, .selected, .active, .matched,
  .revealed, .is-locked, .is-success, .is-error, .edu-success, .edu-error, [aria-pressed="true"],
  [aria-selected="true"], :disabled, [disabled]
)):hover {
  background: #ffe06e;
  box-shadow: 0 6px 0 #df9a23;
  transform: translateY(-2px);
}

body:not(:has(#homepage)) :where(.soft-button, .sound-button, .path-button-secondary,
  .cta-secondary, .bs, .btn-g, .btn-secondary, .back-btn):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again, .selected, .active, .matched,
  .revealed, .is-locked, .is-success, .is-error, .edu-success, .edu-error, [aria-pressed="true"],
  [aria-selected="true"], :disabled, [disabled]
)) {
  border: 2px solid #b9e9eb;
  color: #17516a;
  background: #f3ffff;
  box-shadow: 0 3px 0 rgba(8, 126, 145, .12);
}

body:not(:has(#homepage)) :where(.soft-button, .sound-button, .path-button-secondary,
  .cta-secondary, .bs, .btn-g, .btn-secondary, .back-btn):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again, .selected, .active, .matched,
  .revealed, .is-locked, .is-success, .is-error, .edu-success, .edu-error, [aria-pressed="true"],
  [aria-selected="true"], :disabled, [disabled]
)):hover {
  background: #d7f8fa;
}

/* Match the home palette on room and lesson controls without touching selected/correct states. */
body:not(:has(#homepage)) :where(.letter-button:not([aria-pressed="true"]),
  .practice-modes button:not(.is-active), .word-game-choices button:not(.is-right):not(.is-try-again),
  .teacher-week:not(.is-active):not(.is-locked)) {
  border-color: #b9e9eb;
  color: #17516a;
  background: #f3ffff;
}

body:not(:has(#homepage)) :where(.letter-button:not([aria-pressed="true"]),
  .practice-modes button:not(.is-active), .word-game-choices button:not(.is-right):not(.is-try-again),
  .teacher-week:not(.is-active):not(.is-locked)):hover {
  border-color: #53becd;
  background: #d7f8fa;
}

body:not(:has(#homepage)) :where(button, .btn, .button, .primary-button, .edu-btn,
  .search-btn, .path-button, .cta-primary, .start-btn, .bp, .btn-p, .btn-primary):disabled,
body:not(:has(#homepage)) :where(button, .btn, .button, .primary-button, .edu-btn,
  .search-btn, .path-button, .cta-primary, .start-btn, .bp, .btn-p, .btn-primary)[disabled] {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

body:not(:has(#homepage)) button:disabled:not(:is(.correct, .wrong, .is-right, .is-wrong,
  .is-correct, .selected, .active, .matched, [aria-pressed="true"], [aria-selected="true"])) {
  color: var(--sp-ink-soft);
  background: #edf2f3;
  border-color: #bdced1;
  box-shadow: none;
}

/* Readable shared navigation and headers, rather than legacy purple/dark skins. */
body:not(:has(#homepage)) :where(.navbar) {
  color: var(--sp-ink);
  background: var(--sp-paper);
  border-bottom: 2px solid #b9e9eb;
  box-shadow: 0 4px 0 rgba(8, 126, 145, .08);
}

body:not(:has(#homepage)) :where(.nav-logo, .nav-logo span, .logo-text) {
  font-family: "Fredoka", "Noto Sans Devanagari", sans-serif;
}

body:not(:has(#homepage)) :where(.hero) {
  color: var(--sp-ink);
  background: linear-gradient(125deg, #c9f7fa, #fff0b3);
}

body:not(:has(#homepage)) :where(.hero p, .hero small, .arcade-subtitle, .arcade-header p,
  .eyebrow, .heading-aside, .speech-note, .top-note, .teacher-voice-note, .teacher-audio-disclosure) {
  color: var(--sp-ink-soft);
}

body:not(:has(#homepage)) .welcome-copy h1 span {
  color: #a53d30;
}

body:not(:has(#homepage)) .arcade-game-card {
  border-top: 6px solid var(--sp-sky);
}

body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 1) { background: #e2fbfd; }
body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 2) { background: #fff0b3; border-top-color: var(--sp-mango); }
body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 3) { background: #e2f7df; border-top-color: var(--sp-leaf); }
body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 4) { background: #ffe5df; border-top-color: var(--sp-coral); }
body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 5) { background: #efe4ff; border-top-color: var(--sp-violet); }
body:not(:has(#homepage)) .arcade-game-card:nth-child(6n + 6) { background: #e2fbfd; border-top-color: var(--sp-teal); }

/* Snake uses swipes/keys, not canvas coordinates: proportional scaling is safe. */
body:not(:has(#homepage)) > canvas#gc {
  max-width: 100%;
  height: auto;
}

body:not(:has(#homepage)) .game-header {
  background: var(--sp-sky-light);
}

body:not(:has(#homepage)) .game-title {
  color: var(--sp-ink);
  font-family: "Fredoka", "Noto Sans Devanagari", sans-serif;
}

body:not(:has(#homepage)) .stat-box {
  background: var(--sp-ink);
  color: white;
}

body:not(:has(#homepage)) .coins-display {
  background: var(--sp-leaf);
  color: var(--sp-ink);
}

body:not(:has(#homepage)) .game-badge-arcade {
  background: #efe4ff;
  color: var(--sp-ink);
  box-shadow: 0 3px 0 rgba(168, 117, 232, .25);
}

/* Legacy game help used white text on their former dark page backgrounds. */
body:not(:has(#homepage)) > :is(.controls, .instructions, .game-instructions, .controls-info,
  .controls-hint, .hint, .info) {
  color: var(--sp-ink-soft);
}

/* This platformer's world remains 1200×700; only its display scales. */
body:has(#shootBtn):has(#keys) .game-container {
  max-width: 100%;
  min-width: 0;
}

body:has(#shootBtn):has(#keys) #gameCanvas {
  width: 100%;
  min-width: 0;
  height: auto;
}

body:has(#shootBtn):has(#keys) .start-overlay {
  width: 100%;
  height: 100%;
  color: var(--sp-ink);
  background: linear-gradient(135deg, #c9f7fa, #fff0b3);
}

body:has(#shootBtn):has(#keys) :where(.start-title, .start-hint) {
  color: var(--sp-ink);
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

@media (max-width: 600px) {
  body:not(:has(#homepage)) :where(.game-header, .header-stats, .movement-controls) {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 100%;
  }
  body:not(:has(#homepage)) .room-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 12px 10px;
    column-gap: 8px;
  }
  body:not(:has(#homepage)) .room-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 36px;
    height: 40px;
  }
  body:not(:has(#homepage)) .room-icon svg { width: 30px; height: 30px; }
  body:not(:has(#homepage)) .room-label {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    line-height: 1.2;
    overflow-wrap: normal;
    word-break: normal;
  }
  body:not(:has(#homepage)) .room-hint { grid-column: 2; grid-row: 2; }
  body:not(:has(#homepage)) .room-arrow { display: none; }
  body:has(#shootBtn):has(#keys) .start-title { font-size: 28px; margin-bottom: 8px; }
  body:has(#shootBtn):has(#keys) .start-overlay .start-btn { font-size: 18px; padding: 12px 18px; }
  body:has(#shootBtn):has(#keys) .start-hint { font-size: 12px; margin-top: 10px; }
}

/* Homepage contrast touch-ups only; its composition and colors remain unchanged. */
#homepage .nav-links > a.games-btn,
#homepage .nav-links > a.games-btn:hover,
#homepage .arcade-button-label {
  color: #0c293f;
}

#homepage .arcade-big-button,
#homepage .arcade-big-button:hover {
  color: #041827;
}

#homepage :where(.modal-content) {
  border-color: #b9e9eb;
  border-radius: 24px;
  background: var(--sp-paper);
}

#homepage :where(.modal-header) {
  border-color: #b9e9eb;
  background: #c9f7fa;
}

#homepage :where(.settings-section, .profile-avatar) {
  border-color: #d8e9df;
  border-radius: 18px;
  background: #fffaf0;
  box-shadow: 0 3px 0 rgba(8, 126, 145, .08);
}

#homepage :where(.setting-item, .achievement:not(.earned):not(.locked)) {
  border-color: #b9e9eb;
  border-radius: 14px;
  background: #fffdf2;
}

#homepage :where(.settings-btn.primary) {
  border: 2px solid #fff0b3;
  border-radius: 16px;
  color: #55340b;
  background: var(--sp-mango);
  box-shadow: 0 4px 0 #df9a23;
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
  font-weight: 900;
}

#homepage :where(.settings-btn.primary):hover {
  background: #ffe06e;
  box-shadow: 0 6px 0 #df9a23;
}

#homepage :where(.settings-btn.secondary, .change-avatar-btn) {
  border: 2px solid #b9e9eb;
  border-radius: 16px;
  color: #17516a;
  background: #f3ffff;
  font-family: "Nunito", "Noto Sans Devanagari", sans-serif;
  font-weight: 900;
}

#homepage :where(.settings-btn.secondary, .change-avatar-btn):hover {
  background: #d7f8fa;
}

#homepage .avatar-display {
  border: 4px solid #fff;
  background: var(--sp-mango);
  color: #183c57;
  box-shadow: 0 4px 0 #df9a23;
}

#homepage #settings-modal .settings-section[style*="linear-gradient"] {
  border: 2px solid #b9e9eb;
  background: #c9f7fa !important;
}

#homepage #settings-modal .settings-section[style*="linear-gradient"] a,
#homepage #settings-modal .settings-section[style*="linear-gradient"] p {
  color: #183c57 !important;
}

@media (prefers-reduced-motion: reduce) {
  body:not(:has(#homepage)) *,
  body:not(:has(#homepage)) *::before,
  body:not(:has(#homepage)) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Final color harmonization: warm, bright paper with playful stained-glass learning cards. */
/* #homepage is an inner DIV, so scope every shared-page surface to pages without it. */
body:not(:has(#homepage)) :where(.intro-aside) {
  color: var(--sp-ink);
  background: linear-gradient(145deg, #c9f7fa 0%, #fff0b3 100%);
}

body:not(:has(#homepage)) :where(.intro-aside h1, .intro-aside h2, .intro-aside h3,
  .intro-aside p, .intro-aside footer, .intro-aside .aside-top, .preview-step) {
  color: var(--sp-ink);
}

body:not(:has(#homepage)) :where(.preview-step) {
  border-color: rgba(8, 126, 145, .2);
  background: rgba(255, 253, 242, .76);
}

body:not(:has(#homepage)) :where(.preview-step span) {
  color: #17516a;
  background: #c9f7fa;
}

/* Gentle surface lift gives interactive learning tiles a clear, tactile hover. */
body:not(:has(#homepage)) :where(.card, [class$="-card"], [class$="-box"],
  .roadmap-step, .preview-step, .path-step, .step-card, .lesson-step, .guide-card):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)) {
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body:not(:has(#homepage)) :where(.card, [class$="-card"], [class$="-box"],
  .roadmap-step, .preview-step, .path-step, .step-card, .lesson-step, .guide-card):not(:is(
  .correct, .wrong, .is-right, .is-wrong, .is-correct, .is-try-again,
  .selected, .active, .is-active, .matched, .revealed, .is-locked,
  .is-success, .is-error, .edu-success, .edu-error, :disabled, [disabled],
  [aria-pressed="true"], [aria-selected="true"]
)):hover {
  border-color: #82cdd3;
  box-shadow: 0 9px 0 rgba(8, 126, 145, .09), 0 18px 34px rgba(24, 60, 87, .14);
}
