.practice-heading { text-align: center; padding: 16px 0 28px; }
.practice-heading h1 { font-size: 32px; margin: 10px 0; }
.practice-heading h1 span { color: #e8af45; }
.practice-heading > p:last-child { color: #81748f; font-size: 14px; line-height: 1.8; }
.waiting-card, .practice-complete { max-width: 740px; margin: 0 auto; text-align: center; padding: 48px 35px; }
.waiting-art { display: flex; justify-content: center; gap: 20px; margin: 0 0 28px; }
.waiting-art span { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; font-size: 45px; background: #e0f3ec; color: #49a388; transform: rotate(-8deg); }
.waiting-art span:last-child { background: #fcebd5; color: #d99846; transform: rotate(9deg); }
.waiting-card h2, .practice-complete h2 { font-size: 24px; margin-bottom: 15px; }
.waiting-card p { color: #8c7e9b; line-height: 1.9; margin-bottom: 28px; }
.practice-game { max-width: 840px; margin: auto; }
.game-progress { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #8b78a3; padding: 3px 8px 18px; font-size: 13px; }
#game-progress-dots { display: flex; gap: 9px; }
#game-progress-dots > * { width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; border-radius: 50%; background: #dfd5ed; color: #7d6896; }
#game-progress-dots > .current { background: #8b70d8; box-shadow: 0 0 0 4px #eee7fa; }
#game-progress-dots > .correct { background: #54b69a; }
#game-progress-dots > .incorrect { background: #e8aa63; }
.question-card { text-align: center; padding: 37px 36px; position: relative; }
.question-number { display: inline-block; color: #8d6bc0; font-size: 13px; font-weight: 700; padding: 8px 15px; border-radius: 9px; background: #f1eafa; }
.question-prompt { font-size: 28px; line-height: 1.8; font-weight: 750; margin: 26px 0 17px; white-space: pre-wrap; overflow-wrap: anywhere; }
.question-instruction { color: #9583a7; font-size: 13px; }
.answer-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 26px 0 10px; }
.answer-button { border: 2px solid transparent; border-radius: 18px; padding: 24px 17px; min-height: 168px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.answer-button > span { font-size: 41px; line-height: 1.1; }
.answer-button b { font-size: 20px; }
.answer-button small { font-size: 12px; line-height: 1.6; }
.answer-true { background: #e5f5ee; color: #438d77; }
.answer-false { background: #fff0dc; color: #b48349; }
.answer-true:hover:not(:disabled), .answer-true.chosen { border-color: #78bda6; background: #dff2e8; }
.answer-false:hover:not(:disabled), .answer-false.chosen { border-color: #e6b374; background: #fce9cf; }
.answer-button:disabled { opacity: .62; }
.answer-button.chosen:disabled { opacity: 1; }
.answer-feedback { border-radius: 12px; background: #f3eef9; color: #8263a5; padding: 15px; margin-top: 19px; font-size: 15px; line-height: 1.7; }
.answer-feedback.correct { background: #e6f6ef; color: #448873; }
.answer-feedback.incorrect { background: #fcf0dd; color: #ae844c; }
.next-button { margin-top: 21px; min-width: 170px; }
.completion-icon { color: #b39be4; font-size: 72px; line-height: 1.3; margin-bottom: 14px; }
#complete-score { color: #876ba5; line-height: 1.8; margin: 16px 0 20px; font-size: 18px; }
.completed-answers { display: grid; gap: 10px; text-align: left; margin: 22px 0; }
.completed-answers > * { padding: 14px 17px; border-radius: 11px; background: #f6f2fb; font-size: 14px; line-height: 1.7; }
.completed-answers .correct { color: #508b76; background: #edf7f1; }
.completed-answers .incorrect { color: #b08451; background: #fcf4e8; }
.completed-answer { display: flex; justify-content: space-between; gap: 12px; }
.practice-complete > .primary { margin-top: 25px; }
dialog { color: var(--ink); width: calc(100% - 36px); max-width: 510px; border: 1px solid #e9e1f1; border-radius: 24px; padding: 36px; box-shadow: 0 25px 95px #39294b30; max-height: 90dvh; overflow: auto; }
dialog::backdrop { background: #211a3973; backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 15px; top: 15px; width: 44px; height: 44px; border-radius: 12px; color: #a292b7; background: #f4eff9; font-size: 19px; }
.resource-dialog { text-align: center; }
.resource-dialog-icon { color: #a689cd; background: #f2ebfa; width: 75px; height: 75px; font-size: 41px; display: grid; place-items: center; border-radius: 20px; margin: 15px auto 24px; }
.resource-dialog h2 { margin: 13px 0 17px; font-size: 25px; }
.resource-dialog > p { line-height: 1.9; color: #9987ac; }
.resource-dialog > .muted { margin-top: 10px; font-size: 14px; }
.resource-dialog > .primary { margin-top: 27px; }
.profile-dialog h2 { font-size: 24px; margin-bottom: 17px; }
.profile-dialog p { font-size: 14px; line-height: 1.9; color: #94829f; }
.dialog-actions { margin-top: 25px; display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); background: #463653ee; color: white; border-radius: 13px; padding: 15px 23px; font-size: 14px; line-height: 1.7; width: max-content; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 8px 35px #3a284a20; z-index: 40; }
.tool-button, .hint-button, .math-keyboard button { min-height: 44px; }
.math-keyboard button { min-width: 36px; }
.board-tip, .submit-caption, .explore-footer, .formula-label small, .board-tools > span { font-size: 12px; }
.board-tip { color: #9584a8; }
.explore-heading > div > p:last-child, .notebook-title p { color: #8b7c9b; }
.dimension { font-size: .45px; fill: #6b577d; }
.piece-label { font-size: .48px; }
@media (min-width: 1450px) {
  .classroom-screen { padding-left: 50px; padding-right: 50px; }
  .explore-layout { grid-template-columns: minmax(0, 1fr) 370px; }
  .notebook { padding: 28px; }
}
@media (min-width: 901px) and (max-height: 850px) {
  .app-header { height: 72px; }
  .activity-nav { padding: 15px 0 18px; }
  .explore-heading { margin-bottom: 19px; }
  .board-wrap svg { max-height: 350px; }
  .notebook-title { padding-bottom: 14px; }
  .formula-label { margin-top: 16px; }
  .notebook textarea { min-height: 72px; height: 72px; }
  .math-keyboard { margin-bottom: 14px; }
}
@media (max-width: 1180px) {
  .classroom-screen { padding: 0 26px 25px; }
  .header-right { gap: 13px; }
  .explore-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .workbench { padding: 18px 18px 0; }
  .notebook { padding: 22px 18px; }
  .explore-heading h1 { font-size: 25px; }
  .resource-button { min-width: 211px; }
  .math-keyboard { gap: 6px; }
  .explore-footer { flex-direction: column; gap: 5px; }
  .join-screen { gap: 35px; padding: 55px 35px 85px; }
  .join-art h1 { font-size: 38px; }
  .art-board { height: 290px; }
  .art-a { left: 25px; width: 180px; height: 90px; }
  .art-b { left: 218px; width: 120px; height: 90px; }
  .join-card { padding: 32px; }
}
@media (max-width: 900px) {
  .join-screen { grid-template-columns: 1fr; max-width: 650px; padding: 38px 30px 85px; gap: 28px; }
  .join-art h1 { font-size: 34px; margin-bottom: 12px; }
  .join-art h1 > span { font-size: 17px; }
  .art-board, .join-description { display: none; }
  .join-card { width: 100%; max-width: none; }
  .join-card .logo-mark { display: none; }
  .join-card .eyebrow { margin-top: 0; }
  .explore-layout { grid-template-columns: minmax(0, 1fr); }
  .notebook { padding: 25px; }
  .board-wrap svg { max-height: 540px; }
  .connection { display: none; }
  .app-header { height: 82px; }
  .explore-heading { gap: 16px; }
  .resource-button { min-width: 193px; padding: 12px; }
  .explore-heading h1 { font-size: 24px; }
  .workbench-bottom { padding: 12px 0; }
  .arrangement, .hint-button { font-size: 13px; }
  .math-keyboard button { min-width: 44px; }
}
@media (max-width: 580px) {
  .classroom-screen { padding: 0 15px 25px; }
  .app-header { height: auto; min-height: 78px; padding: 15px 0; gap: 12px; flex-wrap: wrap; }
  .brand { font-size: 19px; }
  .brand small { font-size: 9px; letter-spacing: 1px; }
  .header-right { margin-left: auto; gap: 9px; }
  .profile { max-width: 148px; }
  #student-label { max-width: 85px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .class-badge { padding: 7px; font-size: 10px; }
  .activity-nav { padding: 17px 0 20px; gap: 6px; }
  .nav-tab { flex: 1; justify-content: center; gap: 7px; padding: 12px 9px; font-size: 13px; }
  .tab-spark { display: none; }
  .explore-heading { align-items: stretch; flex-direction: column; margin: 2px 0 17px; }
  .explore-heading h1 { font-size: 23px; }
  .explore-heading > div > p:last-child { font-size: 13px; }
  .resource-button { min-width: 0; min-height: 62px; padding: 11px 15px; }
  .resource-button b { font-size: 13px; }
  .resource-button small { font-size: 11px; }
  .workbench { padding: 15px 12px 0; }
  .workbench-header { gap: 8px; }
  .canvas-title { font-size: 12px; gap: 6px; }
  .canvas-badges { gap: 8px; }
  .board-wrap svg { min-height: 205px; }
  .board-tip { font-size: 10px; bottom: 9px; }
  .board-tools { gap: 8px; }
  .board-tools > div { gap: 6px; }
  .tool-button { padding: 8px 10px; font-size: 12px; }
  .workbench-bottom { gap: 9px; align-items: flex-start; flex-direction: column; }
  .hint-button { padding: 0; }
  .notebook { padding: 23px 20px; }
  .notebook-title h2 { font-size: 19px; }
  .formula-label { font-size: 14px; }
  .reflection-label { font-size: 14px; }
  .notebook textarea { font-size: 14px; min-height: 104px; }
  .notebook textarea::placeholder { font-size: 13px; }
  .submit-button { font-size: 15px; }
  .discovery summary, .discovery p { font-size: 13px; }
  .discovery strong { font-size: 14px; }
  .join-screen { padding: 32px 19px 72px; gap: 14px; }
  .join-art h1 { font-size: 32px; }
  .join-art h1 > span { font-size: 16px; }
  .join-card { padding: 26px 23px; }
  .join-card h2 { font-size: 21px; }
  .join-footer { font-size: 11px; }
  .practice-heading { padding-top: 6px; }
  .practice-heading h1 { font-size: 27px; }
  .practice-heading > p:last-child { font-size: 13px; }
  .waiting-card, .practice-complete { padding: 33px 22px; }
  .waiting-card h2, .practice-complete h2 { font-size: 21px; }
  .question-card { padding: 28px 19px; }
  .question-prompt { font-size: 22px; margin-top: 22px; }
  .answer-buttons { gap: 12px; }
  .answer-button { padding: 20px 10px; min-height: 146px; }
  .answer-button small { font-size: 11px; }
  .game-progress { gap: 7px; font-size: 12px; padding-left: 0; padding-right: 0; }
  .completed-answers > * { font-size: 13px; }
  dialog { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
