/* Candidate-only. Counted objects keep their identity throughout the media clock. */
.grade3-numbers1000-board .g3-bridge-board:has(.g3a-room){padding:0;min-height:0;background:#dcece7;overflow:hidden}
.g3a-room{width:100%;height:100%;display:grid;place-items:center;overflow:hidden;border-radius:24px}
.g3a-room svg{display:block;width:100%;height:100%;max-height:100%;overflow:hidden}
.grade3-numbers1000-board .g3-bridge-board:has(.g3a-workshop){width:100%;height:auto;aspect-ratio:4/3;max-height:none;min-height:0;align-self:center}
.g3a-workshop{height:auto;aspect-ratio:4/3;border-radius:20px}
.g3a-workshop svg{height:100%;width:100%}
.g3a-library.has-webgl{position:relative;background:#eee8d6;min-height:300px}
.g3a-library.has-webgl>svg{display:none}
.g3lib-3d-stage{position:absolute;inset:0 0 76px;overflow:hidden}
.g3lib-3d-stage canvas{display:block;width:100%;height:100%}
.g3lib-3d-caption{position:absolute;inset:auto 8px 8px;min-height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;text-align:center;color:#285349}
.g3lib-3d-caption strong{font-size:clamp(18px,2.4vw,27px);font-weight:900;line-height:1.12}
.g3lib-3d-caption span{font-size:clamp(11px,1.25vw,15px);font-weight:650;line-height:1.25}
.g3a-wall-equation{fill:#144e51;font-size:65px;font-weight:900}
.grade3-numbers1000-board .g3a-bookend{padding:0;display:block;isolation:isolate}
.grade3-numbers1000-board .g3a-bookend::after{display:none}
.g3a-bookend-title{fill:#215754;font-size:49px;font-weight:900}
.g3a-bookend-labels{fill:#fff9e7;font-size:35px;font-weight:850;paint-order:stroke;stroke:#285953;stroke-width:7px;stroke-linejoin:round}
.g3a-bookend-foot{fill:#234f48;font-size:35px;font-weight:850;paint-order:stroke;stroke:#ffe6bd;stroke-width:5px;stroke-linejoin:round}
.g3a-room-result.g3a-proved{fill:#087a5e}
.g3a-room-caption{fill:#fffdf0;font-size:35px;font-weight:850;paint-order:stroke;stroke:#235752;stroke-width:9px;stroke-linejoin:round}
.g3a-room-packages image,.g3a-room-books image{filter:drop-shadow(0 5px 3px #48351d30)}
.g3a-binding-ribbon{stroke:#178e84;stroke-width:5;filter:drop-shadow(0 1px .7px #124d4944)}
.g3a-ribbon-a,.g3a-ribbon-b{stroke-dasharray:1;stroke-dashoffset:1}
.g3a-ribbon-bow{stroke:#24ab9a;stroke-width:3.5}
.grade3-numbers1000-board .g3-place-model[data-table-world]{gap:0!important;min-height:0;border-radius:16px;overflow:hidden;background:#e0eee5;box-shadow:0 5px 12px #224f4420;isolation:isolate}
.grade3-numbers1000-board [data-table-world] .g3-place-column{display:contents}
.grade3-numbers1000-board [data-table-world] .g3-place-column header{grid-row:1;border-radius:0;padding:6px 10px;border-right:1px solid #fff7}
.grade3-numbers1000-board [data-table-world] .g3-place-column:nth-child(1) header{background:#197b73}
.grade3-numbers1000-board [data-table-world] .g3-place-column:nth-child(2) header{background:#ae623b}
.grade3-numbers1000-board [data-table-world] .g3-place-column:nth-child(3) header{background:#3479a0}
.grade3-numbers1000-board [data-table-world] .g3-model-items{display:none!important}
.grade3-numbers1000-board [data-table-world] .g3-counter-controls{grid-row:3}
.g3a-model-room{grid-column:1/-1;grid-row:2;min-height:0;line-height:0}
.g3a-model-room svg{display:block;width:100%;height:auto;overflow:hidden}
.g3a-empty-ten{fill:#8b4828;font-size:75px;font-weight:900;paint-order:stroke;stroke:#fff2cc;stroke-width:6px}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) .g3a-model-room{display:none}
.grade3-numbers1000-board [data-table-world] .g3-counter-controls:nth-child(1){grid-column:1}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) [data-table-world] .g3-place-column{display:contents}
.grade3-numbers1000-board.g3a-builder .g3-model-items{grid-auto-rows:minmax(0,1fr);align-content:stretch;overflow:hidden}
.grade3-numbers1000-board.g3a-builder .g3-model-items img{height:100%;max-height:54px;min-height:0}
.grade3-numbers1000-board .g3a-workbench{position:relative;width:100%;height:100%;overflow:hidden;border-radius:24px;background:#d9ede5;isolation:isolate}
.g3a-workshop-wall{position:absolute;inset:0;background:url('/demo/assets/generated/grade3/theme1/numbers1000-donation-center-v1.png') center 20%/cover;opacity:.5}
.g3a-table{position:absolute;inset:23% 2% 10%;border:5px solid #cc9459;border-bottom-width:12px;border-radius:22px;background:repeating-linear-gradient(1deg,#eed0a0 0 10px,#f2d7af 11px 20px);box-shadow:0 15px 18px #66462933,inset 0 3px 0 #fff9}
.g3a-mat{position:absolute;top:27%;bottom:16%;border:2px dashed #c2a67f;border-radius:16px;background:#fffaf0bb}
.g3a-left{left:5%;width:51%}.g3a-right{right:5%;width:36%}
.g3a-crate{position:absolute;left:8%;right:9%;top:29%;bottom:17%;border:9px solid #b87635;border-bottom-width:16px;border-radius:12px;background:#bb884c;box-shadow:0 8px 12px #7a431838,inset 0 5px 6px #62452350;opacity:0}
.g3a-crate div{position:absolute;left:0;right:0;top:47%;height:7px;background:#dca15d;box-shadow:0 6px 0 #875024}
.g3a-packages img,.g3a-books img{position:absolute;height:auto;object-fit:contain;filter:drop-shadow(0 4px 2px #5e422933);will-change:left,top;pointer-events:none}
.g3a-packages img{z-index:4}.g3a-books img{z-index:5}
.g3a-equation{position:absolute;left:50%;top:4%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:8px 18px;border:2px solid #fff;border-radius:18px;background:#fffcf4;color:#124b53;box-shadow:0 5px 15px #154c4922;font-size:clamp(19px,2.2vw,28px);font-weight:800;white-space:nowrap;z-index:6}
.g3a-equation b{color:#df793e}.g3a-equation strong{min-width:1.7em;text-align:center}.g3a-equation .g3a-proved{color:#007e72}
.g3a-workbench .g3a-caption{position:absolute;left:2%;right:2%;bottom:1%;margin:0!important;padding:8px 4px;text-align:center;color:#104d50;font-size:clamp(12px,1.35vw,18px)!important;font-weight:800;z-index:8}
.g3a-model .g3-place-column{transition:none;box-shadow:0 7px 0 #d5ece5;}
.g3a-model .g3-place-column:not(.g3a-revealed) .g3-zero-placeholder{visibility:hidden}
.g3a-model .g3-reading{border-color:#e5a64f}
.g3a-model .g3a-reading{border-color:#e5a64f;box-shadow:0 0 0 3px #f5cd8470}
.g3a-model .g3-expanded-number{margin-top:10px}
.g3a-flying-digit{position:fixed;z-index:9999;display:grid;place-items:center;border:2px solid #efb04e;border-radius:14px;background:#fff7df;color:#08555b;box-shadow:0 5px 15px #64471e30;font-weight:900;font-size:26px;pointer-events:none}
.g3-model-gallery [data-g3-model-card]{position:relative;overflow:hidden}
.g3-model-gallery .g3a-unpacked{position:absolute;left:5%;right:5%;top:5%;height:54%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,1fr);gap:1px;pointer-events:none;visibility:hidden}
.g3-model-gallery .g3a-unpacked img{width:100%!important;height:100%!important;max-height:100%;min-height:0;object-fit:contain;filter:drop-shadow(0 2px 1px #45382522)}
.g3-model-gallery .g3a-open>img{visibility:hidden}.g3-model-gallery .g3a-open .g3a-unpacked{visibility:visible}
.g3a-open .g3a-unpacked img{animation:g3a-unpack .45s both;animation-delay:calc(var(--unit)*45ms)}
@keyframes g3a-unpack{from{opacity:0;transform:translateY(16px) scale(.8)}to{opacity:1;transform:none}}
.g3a-builder .g3-model-items{align-content:end;padding-bottom:9px;background:linear-gradient(transparent calc(100% - 7px),#d0b38b 0)}
.g3a-auditorium{width:100%;max-width:620px;min-height:0;padding:10px;border-radius:18px;background:linear-gradient(#ebdfc7,#fff6e6);box-shadow:inset 0 0 0 2px #e0c9a0}
.g3a-stage-curtain{padding:5px 20px;margin-bottom:7px;border-radius:5px 5px 50% 50%;text-align:center;color:#fff;background:linear-gradient(90deg,#be6749,#97502f 20%,#dc8d69 50%,#97502f 80%,#be6749);font-size:12px;font-weight:700}
.g3a-seat-sectors{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;align-items:start}
.g3a-sector{border-radius:5px;padding:4px 2px;background:#fff9;min-width:0;text-align:center}
.g3a-sector>div{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:1px}.g3a-sector i{display:block;aspect-ratio:1;border-radius:2px 2px 0 0;background:#148b83}
.g3a-sector b{font-size:11px;color:#155b5b}
.g3a-front-row{display:flex;justify-content:center;gap:15px;padding-top:7px}
.g3a-front-row>div{display:flex;align-items:center;gap:2px}.g3a-front-row i{width:5px;height:7px;background:#de905a;border-radius:2px 2px 0 0}.g3a-front-row b{font-size:11px;color:#71542c;margin-left:3px}
.g3a-answer-proof{display:flex;align-items:center;justify-content:center;gap:6px;max-width:100%;margin-top:8px;color:#126458;font-size:20px;font-weight:800}.g3a-answer-proof strong{padding:5px 12px;border-radius:12px;background:#087e70;color:white}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer{gap:8px!important}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer h1{font-size:clamp(15px,2vw,22px)!important}
@media(max-width:600px){.g3a-seat-sectors{grid-template-columns:repeat(4,minmax(0,1fr))}.g3a-sector>div{max-width:49px;margin:auto}.g3a-auditorium{padding:6px}.g3a-sector b{font-size:10px}.g3a-front-row{gap:7px}.g3a-equation{font-size:24px}.g3a-answer-proof{font-size:16px}}
@media(prefers-reduced-motion:reduce){.g3a-open .g3a-unpacked img{animation:none!important}}
@media(max-width:600px){.lesson-shell:has(.grade3-numbers1000-board) .lesson-screen-meta{transform:translateY(10px);z-index:4}.lesson-shell:has(.grade3-numbers1000-board) .teaching-area{padding-top:12px!important}}
.lesson-shell:has(.grade3-numbers1000-board) .g3-digit-choices{display:grid;grid-template-columns:repeat(5,minmax(44px,1fr));gap:6px;width:100%}
.grade3-numbers1000-board .g3-counter-controls{grid-template-columns:44px minmax(0,1fr) 44px!important;gap:2px;padding:3px}
.grade3-numbers1000-board .g3-place-model:has(.g3-counter-controls){gap:3px}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method){gap:6px!important;padding:8px!important}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method)>.g3-place-model{height:auto;min-height:0;flex:none}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) .g3-model-items{display:none}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) .g3-place-column{display:flex;flex-direction:column}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) .g3-place-column header{padding:4px}
.grade3-numbers1000-board .g3-builder:has(.g3-support-method) .g3-place-column header span{width:20px;height:20px;font-size:14px}
.grade3-numbers1000-board .g3-builder .g3-abacus-method{min-height:0;height:154px;flex:none;padding:5px;border-width:2px;gap:4px}
.grade3-numbers1000-board .g3-builder .g3-abacus-method section{padding:4px;gap:3px}
.grade3-numbers1000-board .g3-builder .g3-abacus-rod{min-height:0;height:83px;gap:2px}
.grade3-numbers1000-board .g3-builder .g3-abacus-rod i{height:7px;flex:none}
.grade3-numbers1000-board .g3-builder .g3-abacus-method section strong{height:23px;width:23px;font-size:14px}
.grade3-numbers1000-board.g3-alternate-method .g3a-auditorium{display:none}
.grade3-numbers1000-board .g3-finish-card>div{flex-wrap:nowrap;font-size:14px;gap:5px}
.grade3-numbers1000-board .g3-finish-card>div :is(b,strong){min-width:0;padding:8px;font-size:16px}
.g3a-auditorium{background:repeating-linear-gradient(0deg,#c39667 0 2px,#d7b687 3px 18px);border-radius:20px 20px 9px 9px;padding:8px 12px 12px;box-shadow:inset 0 0 0 3px #a87949,0 7px 0 #bd905e}
.g3a-stage-curtain{padding:0;margin:-8px -12px 7px;border-radius:17px 17px 0 0;overflow:hidden;background:#225862;line-height:0}
.g3a-stage-curtain svg{display:block;width:100%;height:auto}
.g3a-sector{background:#4a6058;box-shadow:0 3px 0 #34413c;border-radius:3px 3px 8px 8px}
.g3a-sector b{color:#fff7e5}
.g3a-sector i{background:radial-gradient(ellipse at 50% 27%,#f4c49b 0 27%,transparent 32%),linear-gradient(transparent 50%,#5dc3bb 50% 80%,#286661 80%);border-radius:40% 40% 0 0}
.g3a-front-row i{background:radial-gradient(ellipse at 50% 24%,#f5c59d 0 27%,transparent 32%),linear-gradient(transparent 48%,#d76d53 48% 80%,#884d38 80%);height:9px}
.g3a-show-applause .g3a-puppets{transform-origin:350px 115px;animation:g3a-bow .85s ease-in-out}
.grade3-numbers1000-board .g3-transfer:has(.g3a-answer-proof)>.g3-word-parts{display:none}
.grade3-numbers1000-board .g3-transfer .g3a-auditorium{flex-shrink:0}
@keyframes g3a-bow{0%,100%{transform:scaleY(1)}45%{transform:scaleY(.82)}}
@media(prefers-reduced-motion:reduce){.g3a-show-applause .g3a-puppets{animation:none}}

/* Clear place-value columns: preserve the original PNG models and grouping. */
.grade3-numbers1000-board[data-g3a-phase] .g3-place-model:not([data-table-world]){gap:8px}
.grade3-numbers1000-board[data-g3a-phase] .g3-place-column{transition:border-color .18s,box-shadow .18s}
.grade3-numbers1000-board[data-g3a-phase] .g3-model-items{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-content:center;gap:4px;background:none;padding:6px}
.grade3-numbers1000-board[data-g3a-phase] .g3-model-items img{height:clamp(36px,7.8vh,58px);max-height:none;object-fit:contain}
.grade3-numbers1000-board[data-g3a-phase="7"] .g3-model-items{gap:2px;padding:3px}
.grade3-numbers1000-board[data-g3a-phase="7"] .g3-model-items img{height:clamp(28px,5.8vh,44px)}
.grade3-numbers1000-board[data-g3a-phase="7"] .g3-place-model{gap:4px}
.grade3-numbers1000-board .g3a-audience-png{padding:0;max-width:100%;width:100%;min-height:0;flex:1 1 auto!important;overflow:hidden;border-radius:16px;background:none;box-shadow:none;display:grid;place-items:center}
.grade3-numbers1000-board .g3a-audience-png .g3a-audience-art{width:100%;height:100%;min-height:0;object-fit:contain;border-radius:16px;display:block}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer{padding:12px!important;gap:8px!important}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer>:not(.g3a-audience-png){flex-shrink:0}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer h1{margin:0;font-size:clamp(16px,1.5vw,21px)!important;line-height:1.2}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer>p{margin:0;font-size:13px}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-word-parts{gap:8px}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-word-parts span{transition:box-shadow .16s,border-color .16s;}
.grade3-numbers1000-board[data-g3a-phase="8"] .g3-word-parts .g3a-value-focus{border-color:#eca548;box-shadow:0 0 0 3px #f5c16f88}
.grade3-numbers1000-board[data-g3a-phase] .g3-model-items{grid-auto-rows:minmax(0,1fr);align-content:stretch}
.grade3-numbers1000-board[data-g3a-phase] .g3-model-items:has(img:nth-child(9)){grid-template-columns:repeat(3,minmax(0,1fr))}
.grade3-numbers1000-board[data-g3a-phase] .g3-model-items img{height:100%;min-height:0;max-height:58px}
.grade3-numbers1000-board[data-g3a-phase="7"] .g3-model-items img{height:100%;max-height:44px}
@media(max-width:600px){
 .grade3-numbers1000-board[data-g3a-phase] .g3-place-model{gap:4px}
 .grade3-numbers1000-board[data-g3a-phase] .g3-model-items{gap:2px;padding:3px}
 .grade3-numbers1000-board[data-g3a-phase] .g3-model-items img{height:100%;max-height:43px}
 .grade3-numbers1000-board[data-g3a-phase="7"] .g3-model-items img{height:100%;max-height:33px}
 .grade3-numbers1000-board[data-g3a-phase="8"] .g3-transfer{padding:9px!important;gap:6px!important}
}
