html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#d7efe8;color:#17324d}button{font:inherit}#activity-root{width:100%;height:100%;height:100dvh}.ad-production-status{font:18px/1.6 system-ui,sans-serif;padding:30px;max-width:900px;margin:auto;overflow:auto;max-height:100dvh;box-sizing:border-box}.ad-production-status h1{font-size:30px}.ad-scene{width:100%;height:100%;display:grid;grid-template-columns:minmax(80px,15%) minmax(0,1fr);gap:clamp(10px,2vw,26px);align-items:center;position:relative;color:#17324d;font-family:Fredoka,system-ui,sans-serif}.ad-scene *{box-sizing:border-box}.ad-actor{align-self:end;min-width:0;padding-bottom:16px}.ad-actor img{width:100%;max-height:340px;object-fit:contain;object-position:center bottom}.ad-math{min-width:0;max-height:100%;display:flex;flex-direction:column;gap:clamp(6px,1.2vh,12px);padding:clamp(8px,1vw,16px);background:rgba(255,251,235,.94);border-radius:16px;overflow:auto;overscroll-behavior:contain}.ad-goal{font-size:clamp(20px,2.4vw,31px);line-height:1.2;text-align:center;color:#4a3824;font-weight:600}.ad-goal strong{font-size:1.3em;font-variant-numeric:tabular-nums}.ad-goal>span{display:block;font-size:clamp(14px,1.5vw,19px);font-weight:400;margin-top:5px}.ad-math h2{font-size:clamp(16px,1.65vw,22px);line-height:1.2;font-weight:600;margin:0 0 7px;text-align:center}.ad-action{position:relative;min-width:48px;min-height:48px;border:1px solid #a9834d;background:#fff5d9;color:#4a3824;border-radius:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 10px;font-size:clamp(16px,1.6vw,21px);line-height:1.2;touch-action:none}.ad-action:focus-visible{outline:4px solid #174a7e;outline-offset:2px;z-index:2}.ad-action:hover:not(:disabled){background:#ffe6a4}.ad-action[aria-pressed=true]{outline:3px solid #174a7e;outline-offset:1px;background:#d2f9f6}.ad-action:disabled{opacity:.45;cursor:default}.ad-action img{width:32px;height:32px;object-fit:contain;pointer-events:none}.ad-small{font-size:clamp(13px,1.3vw,17px);line-height:1.3;text-align:center;margin:4px 0}.ad-status{margin:0;padding:7px 10px;min-height:36px;font-size:clamp(14px,1.45vw,18px);line-height:1.35;text-align:center;color:#17324d;background:#f4e6c8;border-radius:9px}.ad-pack-work{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px}.ad-pantry{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px;background:#ead3a3;border-radius:12px}.ad-pantry .ad-action{flex-direction:column;min-height:80px;width:100%}.ad-pantry .ad-action img{width:46px;height:46px}.ad-mat{background:#e4ebd1;border-radius:12px;padding:10px;text-align:center;min-width:0}.ad-working-blocks{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;min-height:52px;align-items:center;justify-items:center}.ad-working-blocks .ad-action{width:100%;min-width:0;min-height:48px;padding:1px;border:0;background:transparent}.ad-working-blocks .ad-action img{width:100%;height:40px;max-width:42px}.ad-packed{min-height:68px}.ad-bands{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.ad-bands .ad-action{padding:4px;min-width:0}.ad-ten{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;max-width:140px;width:100%;align-items:center}.ad-ten img{width:100%;height:auto;min-width:0;aspect-ratio:1;object-fit:contain}.ad-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ad-gallery>.ad-action{min-width:0;min-height:56px;padding:5px 7px;gap:6px}.ad-place{font-size:13px;font-weight:400;align-self:center;min-width:17px}.ad-number-band{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;flex:1;font-variant-numeric:tabular-nums}.ad-number-band span{border-bottom:1px solid #bca16f;padding:6px 0;font-size:clamp(12px,1.6vw,20px)}.ad-road{background:#efe0bb;border-radius:12px;padding:8px;text-align:center}.ad-current{font-size:24px;line-height:1.2;margin-bottom:6px}.ad-decade-road{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));list-style:none;padding:0;margin:5px 0 10px;gap:2px}.ad-decade-road li{font-size:clamp(12px,1.6vw,21px);font-variant-numeric:tabular-nums;padding:5px 0;border-bottom:2px solid #b18a4e}.ad-decade-road li[aria-current]{background:#174a7e;border-radius:7px;color:white}.ad-mini-tens{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%}.ad-mini-tens .ad-ten{max-width:105px;margin:auto;background:#fff4d2;padding:3px;border-radius:5px}.ad-amount{max-width:650px;margin:auto}.ad-ones{display:flex;justify-content:center;gap:3px;min-height:20px;margin-top:6px}.ad-ones img{width:clamp(16px,2vw,25px);height:clamp(16px,2vw,25px);object-fit:contain}.ad-trail{font-size:14px;line-height:1.3;margin:7px 0 0;font-variant-numeric:tabular-nums}.ad-step-controls,.ad-layout-controls{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.ad-step-controls .ad-action{min-width:64px;min-height:50px;font-size:23px}.ad-step-controls .ad-action:last-child{font-size:17px}.ad-tables{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ad-table{display:flex;flex-direction:column;align-items:center;background:#ead6a9;border-radius:12px;padding:10px;min-width:0;gap:6px}.ad-table-bands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:100%;min-height:56px;flex:1;align-content:start}.ad-table-bands .ad-action{min-width:0;width:100%;padding:4px;min-height:48px}.ad-spread .ad-table-bands{column-gap:12px;row-gap:12px}.ad-layout-controls .ad-action{font-size:15px;min-height:48px;padding:7px 15px}.ad-hand{position:fixed;width:64px;height:80px;object-fit:contain;transform:translate(-20%,-14%);pointer-events:none;z-index:1000}.ad-hand[hidden]{display:none}
@media(orientation:portrait){.ad-scene{grid-template-columns:1fr;align-content:center;gap:5px}.ad-actor{position:absolute;right:2px;bottom:0;width:70px;height:100px;pointer-events:none;z-index:1}.ad-actor img{height:100%;object-fit:contain}.ad-math{padding:9px;gap:8px}.ad-status{padding-right:58px;text-align:left;min-height:50px}.ad-goal{font-size:24px}.ad-goal>span{font-size:16px}.ad-pack-work{grid-template-columns:90px minmax(0,1fr);gap:8px}.ad-pantry{padding:6px}.ad-pantry .ad-action{padding:6px;font-size:15px;min-height:78px}.ad-working-blocks{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-height:100px}.ad-working-blocks .ad-action{height:48px}.ad-bands{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.ad-bands .ad-ten{max-width:94px}.ad-packed h2{font-size:16px}.ad-ten{gap:1px}.ad-gallery{gap:7px}.ad-gallery>.ad-action{min-height:60px;padding:4px}.ad-number-band{grid-template-columns:repeat(5,minmax(0,1fr));gap:0 2px}.ad-number-band span{font-size:16px;padding:1px 0}.ad-place{font-size:11px;min-width:12px}.ad-current{font-size:25px}.ad-mini-tens{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px}.ad-decade-road li{font-size:13px}.ad-tables{gap:8px}.ad-table{padding:7px;gap:5px}.ad-table h2{font-size:18px}.ad-table-bands{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.ad-table-bands .ad-action{min-height:48px;max-width:145px;justify-self:center}.ad-table-bands .ad-ten{max-width:96px}.ad-spread .ad-table-bands{row-gap:8px}.ad-step-controls{gap:6px}.ad-step-controls .ad-action{min-width:50px}.ad-layout-controls{gap:7px}.ad-same-hundred .ad-small{margin-right:45px}.ad-hand{width:56px;height:70px}}
@media(max-height:600px) and (orientation:landscape){.ad-math{gap:4px;padding:6px}.ad-goal{font-size:20px}.ad-goal>span{font-size:13px}.ad-gallery{gap:4px;grid-template-columns:repeat(5,minmax(0,1fr))}.ad-gallery>.ad-action{min-height:62px;flex-direction:column;gap:0;padding:3px}.ad-place{font-size:10px;align-self:flex-start;line-height:1}.ad-number-band{grid-template-columns:repeat(5,minmax(0,1fr));width:100%;font-size:14px}.ad-number-band span{font-size:14px;padding:1px 0}.ad-status{font-size:13px;min-height:28px;padding:4px 7px}.ad-actor img{max-height:180px}.ad-pack-work{grid-template-columns:100px minmax(0,1fr);gap:7px}.ad-pantry{padding:4px}.ad-pantry .ad-action{min-height:56px;flex-direction:row;font-size:13px}.ad-pantry .ad-action img{width:28px;height:28px}.ad-pantry h2,.ad-mat h2{font-size:14px;margin:0}.ad-pantry .ad-small{font-size:11px}.ad-mat{padding:4px}.ad-working-blocks{min-height:40px}.ad-working-blocks .ad-action{min-height:48px}.ad-working-blocks .ad-action img{height:34px}.ad-packed h2{font-size:15px;margin-bottom:3px}.ad-bands{grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.ad-packed .ad-small{display:none}.ad-bands .ad-ten{max-width:70px}.ad-current{font-size:18px;margin:0}.ad-road{padding:4px}.ad-decade-road{margin:3px 0}.ad-decade-road li{font-size:13px;padding:3px}.ad-mini-tens .ad-ten{max-width:70px;padding:1px}.ad-ones img{width:15px;height:15px}.ad-ones{min-height:15px;margin:3px 0}.ad-trail{font-size:11px;margin:2px 0}.ad-step-controls{gap:5px}.ad-step-controls .ad-action{min-height:48px;min-width:58px;font-size:19px}.ad-tables{gap:10px}.ad-table{padding:4px;gap:2px}.ad-table h2{font-size:16px;margin:0}.ad-table-bands{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;min-height:48px}.ad-table-bands .ad-action{min-height:48px;padding:2px}.ad-table>.ad-action{min-height:48px;font-size:14px}.ad-layout-controls .ad-action{font-size:13px;min-height:48px;padding:4px 12px}.ad-small{font-size:12px}.ad-spread .ad-table-bands{gap:7px}}
@media(prefers-reduced-motion:reduce){.ad-scene *{scroll-behavior:auto}}

.ad-scene .ad-action img,.ad-scene .ad-ten img,.ad-scene .ad-ones img{filter:none;max-width:100%;max-height:100%}.ad-scene .ad-hand{max-width:none;max-height:none;filter:none}

.ad-working-blocks{grid-template-columns:repeat(5,minmax(48px,1fr))}
@media(orientation:portrait){.ad-pack-work{grid-template-columns:1fr}.ad-pantry{flex-direction:row;gap:8px;justify-content:space-between}.ad-pantry h2{font-size:15px;margin:0}.ad-pantry .ad-action{width:auto;flex-direction:row;min-height:48px}.ad-pantry .ad-action img{width:30px;height:30px}.ad-pantry .ad-small{font-size:12px;max-width:65px}.ad-bands{grid-template-columns:repeat(5,minmax(0,1fr))}.ad-packed h2{font-size:15px}.ad-packed .ad-small{font-size:12px}}
@media(min-width:1150px) and (orientation:landscape){.ad-working-blocks{grid-template-columns:repeat(10,minmax(48px,1fr))}}

@media(max-height:600px) and (orientation:landscape){.ad-same-hundred .ad-goal{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 8px}.ad-same-hundred .ad-goal>span{display:inline;margin:0}.ad-same-hundred>.ad-small{display:none}.ad-same-hundred{display:grid;grid-template-columns:150px minmax(0,1fr)}.ad-same-hundred .ad-goal,.ad-same-hundred .ad-tables{grid-column:1/-1}.ad-same-hundred .ad-layout-controls{grid-column:1;grid-row:3;align-self:center}.ad-same-hundred .ad-status{grid-column:2;grid-row:3;align-self:center}.ad-same-hundred .ad-layout-controls .ad-action{min-width:60px}.ad-same-hundred .ad-status{font-size:13px}}

@media(max-height:600px) and (orientation:landscape){.ad-working-blocks{grid-template-columns:repeat(10,minmax(48px,1fr))}.ad-ten-at-a-time .ad-goal{display:flex;justify-content:center;align-items:baseline;gap:7px}.ad-ten-at-a-time .ad-goal>span{display:inline;margin:0}.ad-ten-at-a-time .ad-packed{min-height:40px}}

/* One reversible mat control returns one unit; the exact unit diagram stays countable. */
.ad-working-blocks.ad-action{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;width:100%;min-height:54px;padding:5px;border:1px solid #b5bd95;background:#f4f5e5}.ad-working-blocks.ad-action img{width:100%;height:auto;max-width:34px;aspect-ratio:1;justify-self:center}.ad-return-label{grid-column:1/-1;font-size:12px;line-height:1.1}.ad-table>[data-destination]{width:100%;min-height:48px;flex-direction:row;font-size:18px;padding:4px 8px;background:#fff5d9}.ad-table>[data-destination] .ad-small{margin:0 0 0 5px;font-size:12px}
@media(orientation:portrait){.ad-working-blocks.ad-action{grid-template-columns:repeat(10,minmax(0,1fr));gap:3px;padding:5px}.ad-working-blocks.ad-action img{max-width:28px}.ad-tables{grid-template-columns:1fr;gap:7px}.ad-table{padding:3px;gap:4px}.ad-table-bands{grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;min-height:0}.ad-table-bands .ad-action{padding:2px;min-height:48px;max-width:none}.ad-table-bands .ad-ten{max-width:58px}.ad-spread .ad-table-bands{row-gap:5px;column-gap:2px}.ad-same-hundred>.ad-small{display:none}.ad-same-hundred .ad-goal{font-size:22px}.ad-same-hundred .ad-goal>span{font-size:14px}.ad-same-hundred .ad-status{min-height:40px;font-size:13px}.ad-same-hundred .ad-layout-controls .ad-action{font-size:14px;padding:4px 10px}.ad-same-hundred{gap:6px}.ad-hundred-gallery .ad-gallery{gap:4px}.ad-hundred-gallery .ad-gallery>.ad-action{min-height:48px}.ad-hundred-gallery .ad-number-band span{font-size:14px}.ad-hundred-gallery .ad-goal{font-size:22px}.ad-hundred-gallery .ad-goal>span{font-size:14px}.ad-hundred-gallery .ad-status{font-size:13px;min-height:36px}.ad-hundred-gallery .ad-small{font-size:12px}}
@media(max-height:600px) and (orientation:landscape){.ad-working-blocks.ad-action{grid-template-columns:repeat(10,minmax(0,1fr));min-height:48px}.ad-working-blocks.ad-action img{max-width:24px}.ad-mat h2{font-size:13px}.ad-mat>[data-action=pack]{min-height:48px;font-size:15px}.ad-pack-work{gap:7px}.ad-packed .ad-bands .ad-action{min-height:48px}.ad-bands .ad-ten{max-width:58px}.ad-steps-to-one-hundred .ad-mini-tens .ad-ten{max-width:58px}.ad-steps-to-one-hundred .ad-road{padding:3px}.ad-steps-to-one-hundred .ad-trail{font-size:10px}.ad-steps-to-one-hundred .ad-current{font-size:17px}.ad-steps-to-one-hundred .ad-decade-road li{padding:1px 0}}

@media(orientation:portrait){.ad-ten-at-a-time{gap:6px}}
@media(max-height:600px) and (orientation:landscape){.ad-ten-at-a-time{gap:2px;padding:4px}}
@media(max-height:600px) and (orientation:landscape){.ad-ten-at-a-time .ad-mat>.ad-small{margin:0}}

/* Hundred Gallery: use the board slot for readable live numerals, not a scaled scene. */
body[data-adventure="hundred-gallery"] .ad-scene{grid-template-columns:clamp(105px,13vw,170px) minmax(0,1fr);align-content:stretch;align-items:stretch;gap:12px;min-height:0}
body[data-adventure="hundred-gallery"] .ad-actor{position:relative;inset:auto;width:auto;height:auto;padding:0 0 12px;align-self:end;pointer-events:none}
body[data-adventure="hundred-gallery"] .ad-actor img{width:100%;height:auto;max-width:100%;max-height:260px;filter:none;object-fit:contain}
body[data-adventure="hundred-gallery"] .ad-math{height:100%;min-height:0;max-height:none;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:8px;padding:12px;background:#fffae9;overflow:hidden}
body[data-adventure="hundred-gallery"] .ad-goal{font-size:clamp(22px,2.4vw,30px);line-height:1.15}
body[data-adventure="hundred-gallery"] .ad-goal>span{font-size:16px;line-height:1.25;margin-top:5px;color:#4a3824}
body[data-adventure="hundred-gallery"] .ad-gallery{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(5,minmax(68px,1fr));gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px;scrollbar-color:#a9834d #fff5d9;scrollbar-width:thin}
body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action{min-height:68px;min-width:0;flex-direction:row;padding:6px;gap:5px;border-color:#a9834d;background:#fff4d4;color:#17324d}
body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action:hover{background:#ffe6a4}
body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action[aria-pressed=true]{background:#d2f9f6;outline:3px solid #174a7e}
body[data-adventure="hundred-gallery"] .ad-place{font-size:12px;font-weight:500;min-width:16px;color:#665030}
body[data-adventure="hundred-gallery"] .ad-number-band{grid-template-columns:repeat(5,minmax(0,1fr));gap:3px 4px;width:100%;font-variant-numeric:tabular-nums;line-height:1.1}
body[data-adventure="hundred-gallery"] .ad-number-band span{font-size:clamp(20px,2.5vw,30px);font-weight:600;line-height:1.15;letter-spacing:0;padding:1px 0;border-bottom:0}
body[data-adventure="hundred-gallery"] .ad-small{font-size:15px;line-height:1.25;margin:0;color:#4a3824}
body[data-adventure="hundred-gallery"] .ad-status{font-size:15px;min-height:40px;padding:8px 10px;text-align:left}
@media(max-width:699px){
 body[data-adventure="hundred-gallery"] .ad-scene{grid-template-columns:minmax(0,1fr);gap:0}
 body[data-adventure="hundred-gallery"] .ad-math{padding:8px;gap:6px}
 body[data-adventure="hundred-gallery"] .ad-goal{font-size:22px}
 body[data-adventure="hundred-gallery"] .ad-goal>span{font-size:14px}
 body[data-adventure="hundred-gallery"] .ad-gallery{gap:6px;grid-template-rows:repeat(5,minmax(64px,1fr))}
 body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action{min-height:64px;gap:3px;padding:4px}
 body[data-adventure="hundred-gallery"] .ad-place{min-width:10px;font-size:10px}
 body[data-adventure="hundred-gallery"] .ad-number-band{gap:4px 1px}
 body[data-adventure="hundred-gallery"] .ad-number-band span{font-size:18px}
 body[data-adventure="hundred-gallery"] .ad-small{font-size:13px}
 body[data-adventure="hundred-gallery"] .ad-status{font-size:14px;min-height:104px;padding:10px 100px 10px 10px}
 body[data-adventure="hundred-gallery"] .ad-actor{position:absolute;right:10px;bottom:8px;width:88px;height:96px;padding:0;z-index:1}
 body[data-adventure="hundred-gallery"] .ad-actor img{height:100%;max-height:100%}
}
@media(max-height:600px) and (orientation:landscape){
 body[data-adventure="hundred-gallery"] .ad-scene{grid-template-columns:90px minmax(0,1fr);gap:8px}
 body[data-adventure="hundred-gallery"] .ad-math{padding:6px;gap:4px}
 body[data-adventure="hundred-gallery"] .ad-gallery{grid-template-rows:repeat(5,minmax(60px,1fr));gap:4px}
 body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action{min-height:60px}
 body[data-adventure="hundred-gallery"] .ad-number-band span{font-size:20px}
 body[data-adventure="hundred-gallery"] .ad-goal{font-size:22px}
 body[data-adventure="hundred-gallery"] .ad-goal>span{font-size:14px}
 body[data-adventure="hundred-gallery"] .ad-small{font-size:13px}
 body[data-adventure="hundred-gallery"] .ad-status{min-height:32px;font-size:13px;padding:6px 8px}
 body[data-adventure="hundred-gallery"] .ad-actor img{max-height:160px}
}
/* On short screens vertical touch scrolls the gallery; tap-swap and horizontal drag remain available. */
@media(max-height:600px) and (orientation:landscape){body[data-adventure="hundred-gallery"] .ad-gallery>.ad-action{touch-action:pan-y}}

/* Same Hundred: carved school trays, large intact tens, independent interior scrollports. */
body[data-adventure="same-hundred"] .ad-scene{grid-template-columns:clamp(100px,13vw,165px) minmax(0,1fr);align-content:stretch;align-items:stretch;min-height:0;gap:12px}
body[data-adventure="same-hundred"] .ad-actor{position:relative;inset:auto;width:auto;height:auto;align-self:end;padding:0 0 10px;pointer-events:none}
body[data-adventure="same-hundred"] .ad-actor img{width:100%;height:auto;max-width:100%;max-height:250px;filter:none}
body[data-adventure="same-hundred"] .ad-math{height:100%;max-height:none;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto auto;padding:0;gap:7px;background:none;overflow:hidden;border-radius:0}
body[data-adventure="same-hundred"] .ad-goal{grid-column:auto;font-size:clamp(25px,2.7vw,34px);line-height:1.1;background:#fff9e8;padding:8px 12px;border-radius:12px}
body[data-adventure="same-hundred"] .ad-goal>span{display:block;font-size:16px;line-height:1.2;margin-top:3px}
body[data-adventure="same-hundred"] .ad-tables{grid-column:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px;min-height:0}
body[data-adventure="same-hundred"] .ad-table{--sh-block:40px;display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;gap:8px;padding:6px;border:18px solid transparent;border-image:url(same-hundred/assets/counting-tray-v2.webp) 135 fill / 1 stretch;background:none;border-radius:0;overflow:hidden}
body[data-adventure="same-hundred"] .ad-table:has(.ad-table-bands>.ad-action:nth-child(5)){--sh-block:30px}
body[data-adventure="same-hundred"] .ad-table:has(.ad-table-bands>.ad-action:nth-child(7)){--sh-block:24px}
body[data-adventure="same-hundred"] .ad-table>[data-destination]{display:grid;grid-template-columns:1fr 1fr;gap:1px 8px;width:100%;min-height:64px;padding:2px 5px;background:transparent;border:0;border-radius:6px;line-height:1.1;color:#4a3824}
body[data-adventure="same-hundred"] .ad-tray-name{font-size:23px;font-weight:600;text-align:left}
body[data-adventure="same-hundred"] .ad-tray-move{grid-column:2;grid-row:1;font-size:13px;text-align:right;color:#174a7e}
body[data-adventure="same-hundred"] .ad-tray-target,body[data-adventure="same-hundred"] .ad-tray-now{font-size:16px;text-align:left;white-space:nowrap}
body[data-adventure="same-hundred"] .ad-tray-target strong,body[data-adventure="same-hundred"] .ad-tray-now strong{display:inline;font-size:27px;line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums;color:#17324d}
body[data-adventure="same-hundred"] .ad-table-bands{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:6px;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;padding:4px;overscroll-behavior:contain;scrollbar-color:#a9834d #fff5d9;scrollbar-width:thin;touch-action:pan-y}
body[data-adventure="same-hundred"] .ad-table-bands>.ad-action{min-width:0;min-height:64px;width:100%;max-width:none;padding:5px 4px;background:#fff9e8;border:1px solid #bfa575;border-radius:8px;touch-action:pan-y}
body[data-adventure="same-hundred"] .ad-table-bands>.ad-action[aria-pressed=true]{background:#d2f9f6;outline:3px solid #174a7e;outline-offset:0}
body[data-adventure="same-hundred"] .ad-ten{grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;width:100%;max-width:none}
body[data-adventure="same-hundred"] .ad-ten img{width:100%;height:var(--sh-block);max-width:100%;max-height:none;aspect-ratio:auto;object-fit:contain;filter:none}
body[data-adventure="same-hundred"] .ad-spread .ad-table-bands{gap:14px 10px;padding:8px}
body[data-adventure="same-hundred"] .ad-layout-controls{grid-column:auto;grid-row:auto;align-self:auto;gap:8px}
body[data-adventure="same-hundred"] .ad-layout-controls .ad-action{min-height:48px;min-width:104px;font-size:18px;background:#fff9e8}
body[data-adventure="same-hundred"] .ad-small{display:block;margin:0;font-size:15px;line-height:1.2;text-align:center;background:#fff9e8;padding:4px 8px;border-radius:7px}
body[data-adventure="same-hundred"] .ad-status{grid-column:auto;grid-row:auto;align-self:auto;padding:8px 12px;min-height:40px;font-size:15px;line-height:1.25;background:#fff9e8;text-align:left}
@media(max-width:699px){
 body[data-adventure="same-hundred"] .ad-scene{grid-template-columns:minmax(0,1fr);gap:0}
 body[data-adventure="same-hundred"] .ad-math{gap:5px}
 body[data-adventure="same-hundred"] .ad-goal{font-size:24px;padding:6px 8px}
 body[data-adventure="same-hundred"] .ad-goal>span{font-size:13px}
 body[data-adventure="same-hundred"] .ad-tables{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
 body[data-adventure="same-hundred"] .ad-table{--sh-block:27px;border-width:15px;padding:3px;gap:3px}
 body[data-adventure="same-hundred"] .ad-table:has(.ad-table-bands>.ad-action:nth-child(5)),body[data-adventure="same-hundred"] .ad-table:has(.ad-table-bands>.ad-action:nth-child(7)){--sh-block:25px}
 body[data-adventure="same-hundred"] .ad-table>[data-destination]{grid-template-columns:1fr 1fr 1fr;min-height:48px;gap:0 5px;padding:0}
 body[data-adventure="same-hundred"] .ad-tray-name{font-size:20px}
 body[data-adventure="same-hundred"] .ad-tray-move{grid-row:2;grid-column:1;text-align:left;font-size:11px}
 body[data-adventure="same-hundred"] .ad-tray-target,body[data-adventure="same-hundred"] .ad-tray-now{grid-row:1/3;font-size:12px;white-space:normal}
 body[data-adventure="same-hundred"] .ad-tray-target strong,body[data-adventure="same-hundred"] .ad-tray-now strong{display:block;font-size:26px}
 body[data-adventure="same-hundred"] .ad-table-bands{gap:4px;padding:3px}
 body[data-adventure="same-hundred"] .ad-table-bands>.ad-action{min-height:62px;padding:3px}
 body[data-adventure="same-hundred"] .ad-spread .ad-table-bands{gap:10px 7px;padding:5px}
 body[data-adventure="same-hundred"] .ad-layout-controls .ad-action{min-height:48px;min-width:95px;font-size:16px}
 body[data-adventure="same-hundred"] .ad-small{font-size:13px;margin-right:0}
 body[data-adventure="same-hundred"] .ad-status{font-size:13px;min-height:112px;padding:9px 106px 9px 9px}
 body[data-adventure="same-hundred"] .ad-actor{position:absolute;right:7px;bottom:5px;width:94px;height:104px;padding:0;z-index:1}
 body[data-adventure="same-hundred"] .ad-actor img{width:100%;height:100%;max-height:100%;object-fit:contain}
}
@media(max-height:600px) and (orientation:landscape){
 body[data-adventure="same-hundred"] .ad-scene{grid-template-columns:90px minmax(0,1fr);gap:7px}
 body[data-adventure="same-hundred"] .ad-math{grid-template-columns:160px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;gap:4px}
 body[data-adventure="same-hundred"] .ad-goal,body[data-adventure="same-hundred"] .ad-tables{grid-column:1/-1}
 body[data-adventure="same-hundred"] .ad-goal{display:block;font-size:22px;padding:4px}
 body[data-adventure="same-hundred"] .ad-goal>span{display:inline;font-size:13px;margin-left:7px}
 body[data-adventure="same-hundred"] .ad-table{--sh-block:25px;border-width:13px;padding:3px;gap:3px}
 body[data-adventure="same-hundred"] .ad-table>[data-destination]{min-height:48px;grid-template-columns:1fr 1fr 1fr}
 body[data-adventure="same-hundred"] .ad-tray-name{font-size:18px}
 body[data-adventure="same-hundred"] .ad-tray-move{display:none}
 body[data-adventure="same-hundred"] .ad-tray-target,body[data-adventure="same-hundred"] .ad-tray-now{font-size:12px}
 body[data-adventure="same-hundred"] .ad-tray-target strong,body[data-adventure="same-hundred"] .ad-tray-now strong{font-size:23px}
 body[data-adventure="same-hundred"] .ad-table-bands{gap:4px;padding:3px}
 body[data-adventure="same-hundred"] .ad-layout-controls{grid-column:1;grid-row:3;gap:4px}
 body[data-adventure="same-hundred"] .ad-layout-controls .ad-action{min-width:72px;font-size:14px;padding:4px}
 body[data-adventure="same-hundred"] .ad-math>.ad-small{display:none}
 body[data-adventure="same-hundred"] .ad-status{grid-column:2;grid-row:3;font-size:12px;min-height:48px;padding:5px 7px}
 body[data-adventure="same-hundred"] .ad-actor img{max-height:140px}
}
body[data-adventure="same-hundred"] .ad-table-bands{align-self:stretch;height:100%}
@media(min-width:700px) and (max-width:999px){body[data-adventure="same-hundred"] .ad-table-bands{grid-template-columns:1fr}}
@media(max-width:699px){body[data-adventure="same-hundred"] .ad-status{min-height:65px}body[data-adventure="same-hundred"] .ad-math>.ad-small{min-height:39px;padding:4px 106px 4px 8px;text-align:left}}
@media(max-width:699px){body[data-adventure="same-hundred"] .ad-spread .ad-table-bands{padding:3px}}

/* Quiet school materials stay beneath the real ten-block bands. */
body[data-adventure="same-hundred"] .ad-table{position:relative;isolation:isolate}
body[data-adventure="same-hundred"] .ad-table::after{content:"";position:absolute;right:8px;bottom:8px;width:150px;height:150px;background:url(same-hundred/assets/school-compass-square.webp) center/contain no-repeat;opacity:.45;pointer-events:none;z-index:0}
body[data-adventure="same-hundred"] .ad-table:first-child::after{left:8px;right:auto;height:105px;background-image:url(same-hundred/assets/school-pencil-ruler.webp)}
body[data-adventure="same-hundred"] .ad-table>[data-destination],body[data-adventure="same-hundred"] .ad-table-bands{position:relative;z-index:1}
@media(max-width:699px){body[data-adventure="same-hundred"] .ad-table::after{width:74px;height:74px;right:4px;bottom:4px}body[data-adventure="same-hundred"] .ad-table:first-child::after{left:4px;height:50px}}
@media(max-height:600px) and (orientation:landscape){body[data-adventure="same-hundred"] .ad-table::after{width:80px;height:80px}body[data-adventure="same-hundred"] .ad-table:first-child::after{height:54px}}
/* Steps prototype composition: one carved frame, real wooden ruler and counting grid. */
body[data-adventure="steps-to-one-hundred"] .ad-scene{grid-template-columns:clamp(170px,17vw,210px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-content:stretch;align-items:stretch;gap:5px;padding-top:10px;box-sizing:border-box}
body[data-adventure="steps-to-one-hundred"] .ad-actor{position:relative;inset:auto;align-self:end;width:clamp(185px,19vw,225px);height:auto;padding:0;z-index:2;pointer-events:none}
body[data-adventure="steps-to-one-hundred"] .ad-actor img{width:100%;height:auto;max-height:300px;object-fit:contain;object-position:center bottom;filter:none}
body[data-adventure="steps-to-one-hundred"] .ad-math{position:relative;height:100%;min-height:0;max-height:none;display:grid;grid-template-rows:minmax(0,1fr) 62px 38px;gap:7px;padding:5px 0 0;border:70px solid transparent;border-image:none;background:url(steps-to-one-hundred/assets/prototype-board.webp) center/100% 100% no-repeat border-box;border-radius:0;overflow:visible}
body[data-adventure="steps-to-one-hundred"] .ad-goal{position:absolute;top:-63px;left:12%;right:12%;z-index:1;min-height:64px;padding:9px 12px;background:linear-gradient(#fff8e6,#fff8e6) padding-box,url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% border-box;border:6px solid transparent;border-radius:18px;box-shadow:0 3px 4px #9b652e55;color:#142a49;font-size:clamp(29px,3.4vw,40px);font-weight:600;line-height:1.05;text-align:center}
body[data-adventure="steps-to-one-hundred"] .ad-goal strong{font-size:1em;font-weight:600;font-variant-numeric:tabular-nums}
body[data-adventure="steps-to-one-hundred"] .ad-goal>span{display:block;font-size:15px;line-height:1.2;margin-top:3px}
body[data-adventure="steps-to-one-hundred"] .ad-road{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(120px,1fr);grid-template-rows:121px minmax(0,1fr) 22px;gap:8px 14px;min-height:0;padding:3px 0 0;border:0;background:none;border-radius:0;position:relative;isolation:isolate}
body[data-adventure="steps-to-one-hundred"] .ad-road::after{display:none}
body[data-adventure="steps-to-one-hundred"] .ad-current{grid-column:2;grid-row:2;align-self:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;gap:3px;margin:0;padding:15px 8px;color:#142a49;font-size:31px;font-weight:600;line-height:1;background:#fff8e6;border:2px solid #e9d4aa;border-radius:20px;box-shadow:inset 0 2px 0 #fffdf4,0 4px 8px #ac7a3338}
body[data-adventure="steps-to-one-hundred"] .ad-current>strong{font-size:clamp(49px,6vw,75px);line-height:1.05;font-variant-numeric:tabular-nums}
body[data-adventure="steps-to-one-hundred"] .ad-current>span{font-size:14px;font-weight:400;line-height:1.25;margin-top:6px;color:#4a3824}
body[data-adventure="steps-to-one-hundred"] .ad-ruler{grid-column:1/-1;grid-row:1;min-width:0;padding:0 25px;background:url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% no-repeat;border:0;border-radius:0;box-shadow:none}
body[data-adventure="steps-to-one-hundred"] .ad-ruler-track{position:relative;height:118px}
body[data-adventure="steps-to-one-hundred"] .ad-ruler-track::before{content:"";position:absolute;top:42px;left:0;right:0;height:24px;background:repeating-linear-gradient(90deg,#142a49 0 1px,transparent 1px 1%),repeating-linear-gradient(90deg,#142a49 0 2px,transparent 2px 10%);background-size:100% 11px,100% 24px;background-repeat:no-repeat;border-top:2px solid #142a49}
body[data-adventure="steps-to-one-hundred"] .ad-decade-road{display:block;position:absolute;left:0;right:0;top:68px;margin:0;padding:0;height:25px}
body[data-adventure="steps-to-one-hundred"] .ad-decade-road li{position:absolute;transform:translateX(-50%);padding:0;border:0;font-size:23px;font-weight:600;line-height:1.1;color:#142a49;background:none;border-radius:0;font-variant-numeric:tabular-nums}
body[data-adventure="steps-to-one-hundred"] .ad-decade-road li[aria-current]{color:#142a49;background:none}
body[data-adventure="steps-to-one-hundred"] .ad-route-marker{position:absolute;top:0;width:0;height:66px;border-left:3px solid #142a49;z-index:1}
body[data-adventure="steps-to-one-hundred"] .ad-route-marker>span{position:absolute;left:-1px;top:0;transform:translateX(var(--label-shift));padding:3px 8px;border-radius:9px;white-space:nowrap;font-size:12px;background:#142a49;color:#fff9e8;line-height:1.05;box-shadow:0 2px 3px #11264238}
body[data-adventure="steps-to-one-hundred"] .ad-route-marker strong{font-size:26px;font-weight:600}
body[data-adventure="steps-to-one-hundred"] .ad-route-marker::after{content:"";position:absolute;left:-8px;top:31px;border-left:7px solid transparent;border-right:7px solid transparent;border-top:10px solid #142a49}
body[data-adventure="steps-to-one-hundred"] .ad-route-target{top:94px;height:23px;border-color:#55aaa6}
body[data-adventure="steps-to-one-hundred"] .ad-route-target>span{top:1px;background:#b1e5dc;color:#142a49;font-size:11px;padding:2px 7px}
body[data-adventure="steps-to-one-hundred"] .ad-route-target strong{font-size:20px}
body[data-adventure="steps-to-one-hundred"] .ad-route-target::after{top:-9px;border-top:0;border-bottom:10px solid #b1e5dc}
body[data-adventure="steps-to-one-hundred"] .ad-route-model{grid-column:1;grid-row:2;min-width:0;min-height:0;display:flex;flex-direction:column;gap:5px;padding:2px;overflow:hidden}
body[data-adventure="steps-to-one-hundred"] .ad-route-tens{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px;touch-action:pan-y}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens{display:grid;grid-template-columns:1fr;gap:8px;max-width:530px;width:100%;margin:auto}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens .ad-ten{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;max-width:none;gap:0;padding:0;border:3px solid #142a49;border-radius:15px;background:#142a49;overflow:hidden;margin:0}
body[data-adventure="steps-to-one-hundred"] .ad-ten img{width:100%;height:81px;aspect-ratio:auto;object-fit:contain;padding:7px;background:#fff6db;border:1px solid #142a49;min-width:0}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)) img{height:58px;padding:5px}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(3)) img{height:43px;padding:4px}
body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(7)) img{height:34px;padding:3px}
body[data-adventure="steps-to-one-hundred"] .ad-route-loose{display:flex;flex:none;justify-content:center;gap:4px;min-height:36px}
body[data-adventure="steps-to-one-hundred"] .ad-route-loose img{width:36px;height:36px;object-fit:contain}
body[data-adventure="steps-to-one-hundred"] .ad-route-zero{display:grid;place-items:center;min-height:90px;font-size:25px;color:#74613f}
body[data-adventure="steps-to-one-hundred"] .ad-trail{grid-column:1/-1;grid-row:3;margin:0;padding:3px 5px;border-radius:6px;background:#fff9e8;white-space:nowrap;overflow:auto;font-size:13px;line-height:1.15;color:#4a3824}
body[data-adventure="steps-to-one-hundred"] .ad-step-controls{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action{width:100%;min-width:0;min-height:58px;padding:4px 6px;background:url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% no-repeat;border:0;border-radius:12px;box-shadow:0 4px 0 #b77933,0 5px 5px #80542540;color:#142a49;font-size:34px;font-weight:600}
body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action:last-child{font-size:22px}
body[data-adventure="steps-to-one-hundred"] .ad-status{min-height:0;margin:0;padding:7px 9px;background:#fff8e6;border-radius:13px;font-size:15px;line-height:1.25;text-align:center;color:#142a49}
@media(max-width:699px){
 body[data-adventure="steps-to-one-hundred"] .ad-scene{grid-template-columns:1fr;gap:0;padding-top:6px}
 body[data-adventure="steps-to-one-hundred"] .ad-math{border-width:32px;grid-template-rows:minmax(0,1fr) 51px 127px;gap:5px;padding:12px 0 0}
 body[data-adventure="steps-to-one-hundred"] .ad-goal{top:-29px;left:10%;right:10%;min-height:43px;padding:4px;border-width:5px;border-radius:13px;font-size:24px}
 body[data-adventure="steps-to-one-hundred"] .ad-goal>span{font-size:11px;margin-top:1px}
 body[data-adventure="steps-to-one-hundred"] .ad-road{grid-template-columns:minmax(0,1.9fr) minmax(75px,1fr);grid-template-rows:103px minmax(0,1fr) 19px;gap:5px 7px;padding-top:4px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler{padding:0 14px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track{height:100px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track::before{top:33px;height:19px;background-size:100% 9px,100% 19px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road{top:54px;height:20px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road li{font-size:14px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker{height:52px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker>span{font-size:10px;padding:2px 5px;border-radius:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker strong{font-size:21px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker::after{top:25px;border-top-width:8px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target{top:76px;height:24px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target>span{font-size:9px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target strong{font-size:17px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target::after{top:-7px;border-top:0;border-bottom-width:8px}
 body[data-adventure="steps-to-one-hundred"] .ad-current{padding:8px 3px;font-size:18px;gap:2px;border-radius:14px}
 body[data-adventure="steps-to-one-hundred"] .ad-current>strong{font-size:39px}
 body[data-adventure="steps-to-one-hundred"] .ad-current>span{font-size:10px;margin-top:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-ten img{height:43px;padding:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)){grid-template-columns:1fr}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)) img{height:29px;padding:2px}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(3)) img{height:26px}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(7)) img{height:25px}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens .ad-ten{border-width:2px;border-radius:9px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-loose{min-height:19px;gap:2px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-loose img{width:19px;height:19px}
 body[data-adventure="steps-to-one-hundred"] .ad-trail{font-size:11px;padding:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action{font-size:24px;min-height:48px;padding:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action:last-child{font-size:14px}
 body[data-adventure="steps-to-one-hundred"] .ad-status{position:relative;isolation:isolate;align-self:start;height:50px;min-height:50px;background:none;font-size:12px;padding:8px 5px 6px 89px;text-align:left}
 body[data-adventure="steps-to-one-hundred"] .ad-status::before{content:"";position:absolute;left:83px;right:0;top:0;height:50px;background:#fff8e6;border-radius:11px;z-index:-1}
 body[data-adventure="steps-to-one-hundred"] .ad-math:has(.ad-route-stop){padding-top:26px}
 body[data-adventure="steps-to-one-hundred"] .ad-actor{position:absolute;left:0;right:auto;bottom:0;width:118px;height:154px;padding:0}
 body[data-adventure="steps-to-one-hundred"] .ad-actor img{width:100%;height:100%;max-height:100%;object-fit:contain}
}
@media(max-height:600px) and (orientation:landscape){
 body[data-adventure="steps-to-one-hundred"] .ad-scene{grid-template-columns:90px minmax(0,1fr);padding-top:5px;gap:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-math{border-width:25px;grid-template-rows:minmax(0,1fr) 48px 29px;gap:4px;padding-top:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-goal{top:-29px;left:19%;right:19%;min-height:34px;font-size:19px;padding:3px 5px;border-width:4px;border-radius:12px}
 body[data-adventure="steps-to-one-hundred"] .ad-goal>span{display:inline;font-size:11px;margin-left:5px}
 body[data-adventure="steps-to-one-hundred"] .ad-road{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(65px,.55fr);grid-template-rows:minmax(0,1fr) 18px;gap:4px 7px;padding-top:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler{grid-column:1;grid-row:1;align-self:center;padding:0 12px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track{height:88px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track::before{top:28px;height:17px;background-size:100% 8px,100% 17px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road{top:47px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road li{font-size:12px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker{height:45px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker>span{font-size:9px;padding:2px 4px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker strong{font-size:18px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker::after{top:22px;border-top-width:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target{top:66px;height:22px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target>span{font-size:9px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target strong{font-size:16px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target::after{top:-7px;border-top:0;border-bottom-width:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-model{grid-column:2;grid-row:1;gap:3px;padding:0}
 body[data-adventure="steps-to-one-hundred"] .ad-current{grid-column:3;grid-row:1;display:flex;padding:7px 3px;font-size:17px;border-radius:12px}
 body[data-adventure="steps-to-one-hundred"] .ad-current>strong{font-size:34px}
 body[data-adventure="steps-to-one-hundred"] .ad-current>span{font-size:9px;line-height:1.1}
 body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)){grid-template-columns:1fr}
 body[data-adventure="steps-to-one-hundred"] .ad-ten img,body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(2)) img,body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(3)) img,body[data-adventure="steps-to-one-hundred"] .ad-mini-tens:has(.ad-ten:nth-child(7)) img{height:26px;padding:2px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-loose{min-height:18px;gap:2px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-loose img{width:18px;height:18px}
 body[data-adventure="steps-to-one-hundred"] .ad-trail{grid-column:1/-1;grid-row:2;font-size:11px;padding:3px}
 body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action{min-height:48px;font-size:25px}
 body[data-adventure="steps-to-one-hundred"] .ad-step-controls .ad-action:last-child{font-size:16px}
 body[data-adventure="steps-to-one-hundred"] .ad-status{position:static;align-self:stretch;height:auto;background:#fff8e6;font-size:11px;min-height:0;padding:5px;text-align:center}
 body[data-adventure="steps-to-one-hundred"] .ad-status::before{display:none}
 body[data-adventure="steps-to-one-hundred"] .ad-actor{position:relative;left:auto;right:auto;bottom:auto;width:90px;height:auto;align-self:end}
 body[data-adventure="steps-to-one-hundred"] .ad-actor img{width:100%;height:auto;max-height:150px}
}

@media(min-width:700px) and (min-height:601px) and (max-height:760px){
 body[data-adventure="steps-to-one-hundred"] .ad-math:has(.ad-route-stop) .ad-goal{top:-89px}
 body[data-adventure="steps-to-one-hundred"] .ad-math{grid-template-rows:minmax(0,1fr) 62px 28px}
 body[data-adventure="steps-to-one-hundred"] .ad-road{grid-template-rows:92px minmax(0,1fr) 19px;gap:4px 14px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track{height:90px}
 body[data-adventure="steps-to-one-hundred"] .ad-ruler-track::before{top:28px;height:17px;background-size:100% 8px,100% 17px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road{top:46px}
 body[data-adventure="steps-to-one-hundred"] .ad-decade-road li{font-size:18px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker{height:45px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker>span{font-size:10px;padding:2px 5px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker strong{font-size:20px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-marker::after{top:21px;border-top-width:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target{top:70px;height:20px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target strong{font-size:16px}
 body[data-adventure="steps-to-one-hundred"] .ad-route-target::after{top:-7px;border-top:0;border-bottom-width:7px}
 body[data-adventure="steps-to-one-hundred"] .ad-status{padding:4px 8px;font-size:14px}
}
/* Ten at a Time: the countable model sits inside the season's carved school board. */
body[data-adventure="ten-at-a-time"] .ad-scene{grid-template-columns:clamp(150px,18vw,220px) minmax(0,1fr);grid-template-rows:minmax(0,1fr);align-items:stretch;align-content:stretch;gap:0;padding-top:8px;min-height:0}
body[data-adventure="ten-at-a-time"] .ad-actor{position:relative;inset:auto;width:112%;height:auto;padding:0;align-self:end;pointer-events:none;z-index:2}
body[data-adventure="ten-at-a-time"] .ad-actor img{width:100%;height:auto;max-height:390px;object-position:center bottom}
body[data-adventure="ten-at-a-time"] .ad-math{position:relative;height:100%;min-height:0;max-height:none;display:grid;grid-template-rows:65px minmax(154px,1.1fr) minmax(100px,1fr) auto;gap:10px;padding:0;border:44px solid transparent;background:url(steps-to-one-hundred/assets/prototype-board.webp) center/100% 100% no-repeat border-box;overflow:hidden;border-radius:0}
body[data-adventure="ten-at-a-time"] .ad-goal{align-self:center;padding:5px 8px;background:#fff8e6;color:#174a7e;border-radius:14px;font-size:clamp(30px,3.5vw,44px);line-height:1;box-shadow:none}
body[data-adventure="ten-at-a-time"] .ad-goal strong{font-size:1em}
body[data-adventure="ten-at-a-time"] .ad-goal>span{display:block;margin:5px 0 0;font-size:18px}
body[data-adventure="ten-at-a-time"] .ad-pack-work{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,2fr) minmax(104px,.72fr);gap:12px;min-height:0;align-items:stretch}
body[data-adventure="ten-at-a-time"] .ad-pantry{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:4px;justify-items:center;padding:8px 7px;background:url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% no-repeat;border-radius:12px}
body[data-adventure="ten-at-a-time"] h2{color:#174a7e;font-size:19px;line-height:1.1;margin:0;font-weight:500}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action{display:flex;flex-direction:column;gap:3px;min-height:68px;height:100%;width:100%;padding:4px;background:#fff8e6;border:0;box-shadow:none;font-size:20px;color:#174a7e}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action img{height:clamp(40px,7vh,70px);width:70px}
body[data-adventure="ten-at-a-time"] .ad-small{font-size:13px;margin:0;color:#174a7e}
body[data-adventure="ten-at-a-time"] .ad-mat{display:grid;grid-template-rows:auto minmax(0,1fr);gap:5px;padding:0;background:none;min-height:0;border:0;border-radius:0}
body[data-adventure="ten-at-a-time"] .ad-working-blocks.ad-action{display:flex;flex-direction:column;justify-content:center;gap:6px;width:100%;height:100%;min-height:100px;min-width:0;padding:0 0 19px;background:none;border:0;border-radius:0;opacity:1;position:relative}
body[data-adventure="ten-at-a-time"] .ad-ten-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));width:100%;max-height:150px;min-height:64px;flex:1;border:2px solid #174a7e;border-radius:9px;overflow:hidden;background:#fff8e6}
body[data-adventure="ten-at-a-time"] .ad-block-slot{display:grid;place-items:center;min-width:0;min-height:0;border-right:1px solid #174a7e;border-bottom:1px solid #174a7e}
body[data-adventure="ten-at-a-time"] .ad-block-slot:nth-child(5n){border-right:0}
body[data-adventure="ten-at-a-time"] .ad-block-slot:nth-child(n+6){border-bottom:0}
body[data-adventure="ten-at-a-time"] .ad-block-slot img{width:90%;height:90%;max-width:68px;max-height:65px;object-fit:contain}
body[data-adventure="ten-at-a-time"] .ad-return-label{position:absolute;bottom:0;font-size:12px;line-height:17px;color:#174a7e}
body[data-adventure="ten-at-a-time"] .ad-pack-count{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0}
body[data-adventure="ten-at-a-time"] .ad-pack-count p{margin:0;padding:10px 2px;background:#fff8e6;border-radius:12px;color:#174a7e;font-size:22px;text-align:center;line-height:1.1}
body[data-adventure="ten-at-a-time"] .ad-pack-count p strong{font-size:30px;font-weight:500}
body[data-adventure="ten-at-a-time"] [data-action="pack"]{width:100%;padding:8px 4px;font-size:18px;color:#174a7e;background:url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% no-repeat;border:0;min-height:52px}
body[data-adventure="ten-at-a-time"] .ad-packed{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px;min-height:0;padding-top:5px;border-top:1px solid #c4a06b}
body[data-adventure="ten-at-a-time"] .ad-packed h2{font-size:22px;background:#fff8e6;padding:4px;border-radius:10px}
body[data-adventure="ten-at-a-time"] .ad-bands{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:8px;min-height:0;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:4px;scrollbar-width:thin;scrollbar-color:#ac7f42 #fff8e6}
body[data-adventure="ten-at-a-time"] .ad-bands>.ad-action{display:block;min-width:0;min-height:62px;padding:0;background:#fff8e6;border:2px solid #174a7e;border-radius:8px;overflow:hidden;touch-action:pan-y}
body[data-adventure="ten-at-a-time"] .ad-ten{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;max-width:none;width:100%}
body[data-adventure="ten-at-a-time"] .ad-ten img{width:100%;height:clamp(26px,4.5vh,40px);padding:2px;border-right:1px solid #174a7e;border-bottom:1px solid #174a7e;aspect-ratio:auto}
body[data-adventure="ten-at-a-time"] .ad-ten img:nth-child(5n){border-right:0}
body[data-adventure="ten-at-a-time"] .ad-ten img:nth-child(n+6){border-bottom:0}
body[data-adventure="ten-at-a-time"] .ad-pack-empty{grid-column:1/-1;padding:18px 8px;color:#96764b;text-align:center;font-size:17px;border:2px dashed #c4a06b;border-radius:9px}
body[data-adventure="ten-at-a-time"] .ad-status{min-height:36px;padding:6px 8px;text-align:center;background:#fff8e6;color:#174a7e;font-size:16px;line-height:1.2}
@media(max-width:699px){
body[data-adventure="ten-at-a-time"] .ad-scene{grid-template-columns:minmax(0,1fr);padding-top:0}
body[data-adventure="ten-at-a-time"] .ad-math{border-width:22px;grid-template-rows:57px minmax(170px,1fr) minmax(90px,.75fr) 70px;gap:7px}
body[data-adventure="ten-at-a-time"] .ad-goal{font-size:30px;padding:4px}
body[data-adventure="ten-at-a-time"] .ad-goal>span{font-size:15px}
body[data-adventure="ten-at-a-time"] .ad-pack-work{grid-template-columns:76px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 48px;gap:5px 8px}
body[data-adventure="ten-at-a-time"] .ad-pantry{grid-row:1/3;padding:6px 4px;gap:4px}
body[data-adventure="ten-at-a-time"] .ad-pantry h2{font-size:16px}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action{font-size:16px;min-height:64px;flex-direction:column}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action img{width:48px;height:48px}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-small{font-size:11px}
body[data-adventure="ten-at-a-time"] .ad-mat h2{font-size:15px}
body[data-adventure="ten-at-a-time"] .ad-working-blocks.ad-action{min-height:88px;gap:4px;padding-bottom:17px}
body[data-adventure="ten-at-a-time"] .ad-block-slot img{max-height:48px}
body[data-adventure="ten-at-a-time"] .ad-pack-count{grid-column:2;flex-direction:row;gap:5px;align-items:center;justify-content:center}
body[data-adventure="ten-at-a-time"] .ad-pack-count p{font-size:17px;padding:3px 6px;white-space:nowrap}
body[data-adventure="ten-at-a-time"] .ad-pack-count p strong{font-size:24px}
body[data-adventure="ten-at-a-time"] [data-action="pack"]{font-size:14px;min-height:48px;width:auto;flex:1}
body[data-adventure="ten-at-a-time"] .ad-packed h2{font-size:17px}
body[data-adventure="ten-at-a-time"] .ad-bands{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:3px}
body[data-adventure="ten-at-a-time"] .ad-ten img{height:28px;padding:1px}
body[data-adventure="ten-at-a-time"] .ad-status{font-size:13px;padding:8px 78px 8px 7px;text-align:left;min-height:70px}
body[data-adventure="ten-at-a-time"] .ad-actor{position:absolute;right:15px;bottom:15px;width:83px;height:108px;padding:0}
body[data-adventure="ten-at-a-time"] .ad-actor img{height:100%;width:100%;max-height:none}
body[data-adventure="ten-at-a-time"] .ad-small{font-size:11px}
}
@media(max-height:600px) and (orientation:landscape){
body[data-adventure="ten-at-a-time"] .ad-scene{grid-template-columns:100px minmax(0,1fr);padding-top:0}
body[data-adventure="ten-at-a-time"] .ad-actor img{max-height:190px}
body[data-adventure="ten-at-a-time"] .ad-math{border-width:25px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:43px minmax(0,1fr) 32px;gap:5px 12px}
body[data-adventure="ten-at-a-time"] .ad-goal{grid-column:1/-1;display:block;font-size:27px;min-height:0;padding:2px}
body[data-adventure="ten-at-a-time"] .ad-goal>span{display:inline;font-size:15px;margin-left:8px}
body[data-adventure="ten-at-a-time"] .ad-pack-work{grid-template-columns:78px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 48px;gap:5px 8px}
body[data-adventure="ten-at-a-time"] .ad-pantry{grid-row:1/3;padding:4px;gap:3px}
body[data-adventure="ten-at-a-time"] .ad-pantry h2{font-size:15px}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action{flex-direction:column;font-size:16px;padding:3px;min-height:48px}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action img{height:38px;width:42px}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-small{font-size:10px}
body[data-adventure="ten-at-a-time"] .ad-mat h2{font-size:14px}
body[data-adventure="ten-at-a-time"] .ad-working-blocks.ad-action{min-height:70px;gap:3px;padding-bottom:16px}
body[data-adventure="ten-at-a-time"] .ad-ten-slots{min-height:42px}
body[data-adventure="ten-at-a-time"] .ad-block-slot img{max-height:40px}
body[data-adventure="ten-at-a-time"] .ad-return-label{font-size:10px}
body[data-adventure="ten-at-a-time"] .ad-pack-count{grid-column:2;flex-direction:row;gap:5px;align-items:center}
body[data-adventure="ten-at-a-time"] .ad-pack-count p{font-size:15px;padding:4px;white-space:nowrap}
body[data-adventure="ten-at-a-time"] .ad-pack-count p strong{font-size:21px}
body[data-adventure="ten-at-a-time"] [data-action="pack"]{min-height:48px;font-size:13px;padding:4px}
body[data-adventure="ten-at-a-time"] .ad-packed{grid-column:2;grid-row:2;padding:0;border:0;gap:4px}
body[data-adventure="ten-at-a-time"] .ad-packed h2{font-size:16px}
body[data-adventure="ten-at-a-time"] .ad-packed .ad-small{display:block;font-size:10px}
body[data-adventure="ten-at-a-time"] .ad-bands{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:3px}
body[data-adventure="ten-at-a-time"] .ad-ten img{height:25px;padding:1px}
body[data-adventure="ten-at-a-time"] .ad-status{grid-column:1/-1;font-size:12px;min-height:28px;padding:4px 6px}
}
/* Keep the wood at button scale and the mathematical cells exact at short heights. */
body[data-adventure="ten-at-a-time"] .ad-pantry{background:#f4e5c5;box-shadow:inset 0 0 0 2px #d9b77e}
body[data-adventure="ten-at-a-time"] .ad-pantry .ad-action>span{width:100%;padding:8px 2px;background:url(steps-to-one-hundred/assets/wood-surface.webp) center/100% 100% no-repeat;border-radius:8px;font-weight:500}
body[data-adventure="ten-at-a-time"] .ad-goal,body[data-adventure="ten-at-a-time"] .ad-pack-count p,body[data-adventure="ten-at-a-time"] .ad-packed h2{font-weight:600}
body[data-adventure="ten-at-a-time"] .ad-block-slot{position:relative}
body[data-adventure="ten-at-a-time"] .ad-block-slot img{position:absolute;inset:5%;width:90%;height:90%;max-height:none;max-width:none;min-height:0}
body[data-adventure="ten-at-a-time"] .ad-bands:not(:has(>.ad-action:nth-child(3))){grid-template-columns:repeat(2,minmax(0,1fr))}
body[data-adventure="ten-at-a-time"] .ad-bands:not(:has(>.ad-action:nth-child(3))) .ad-ten img{height:clamp(30px,6.4vh,56px)}
body[data-adventure="ten-at-a-time"] .ad-bands:has(.ad-pack-empty){grid-template-rows:minmax(0,1fr);height:100%}
body[data-adventure="ten-at-a-time"] .ad-pack-empty{display:grid;place-items:center;min-height:0}
@media(max-width:699px){body[data-adventure="ten-at-a-time"] .ad-bands:not(:has(>.ad-action:nth-child(3))) .ad-ten img{height:37px}}
@media(max-height:600px) and (orientation:landscape){body[data-adventure="ten-at-a-time"] .ad-bands:not(:has(>.ad-action:nth-child(3))) .ad-ten img{height:27px}}
body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:65px minmax(154px,230px) minmax(100px,1fr) auto}
@media(orientation:portrait) and (min-width:700px){body[data-adventure="ten-at-a-time"] .ad-math{max-height:800px;align-self:center}body[data-adventure="ten-at-a-time"] .ad-scene{align-items:center}body[data-adventure="ten-at-a-time"] .ad-actor{align-self:center;transform:translateY(155px)}}
@media(max-width:699px){body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:57px minmax(170px,1fr) minmax(90px,.75fr) 70px}}
@media(max-height:600px) and (orientation:landscape){body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:43px minmax(0,1fr) 32px}}
body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:65px minmax(154px,1.05fr) minmax(150px,1fr) auto}
@media(min-height:601px) and (max-height:760px) and (min-width:700px){body[data-adventure="ten-at-a-time"] .ad-math{border-width:32px;grid-template-rows:52px minmax(130px,1fr) minmax(130px,1fr) auto;gap:6px}body[data-adventure="ten-at-a-time"] .ad-goal{font-size:32px}body[data-adventure="ten-at-a-time"] .ad-packed h2{font-size:19px}body[data-adventure="ten-at-a-time"] .ad-status{font-size:14px;min-height:30px}body[data-adventure="ten-at-a-time"] .ad-ten img{height:28px}}
@media(max-width:699px){body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:57px minmax(170px,1fr) minmax(90px,.75fr) 70px}}
@media(max-height:600px) and (orientation:landscape){body[data-adventure="ten-at-a-time"] .ad-math{grid-template-rows:43px minmax(0,1fr) 32px}body[data-adventure="ten-at-a-time"] .ad-working-blocks.ad-action{overflow-y:auto;overflow-x:hidden;justify-content:flex-start;touch-action:pan-y;overscroll-behavior:contain;padding-bottom:0;min-height:64px}body[data-adventure="ten-at-a-time"] .ad-ten-slots{flex:0 0 64px;min-height:64px}body[data-adventure="ten-at-a-time"] .ad-return-label{position:static;flex-shrink:0}}
@media(max-height:700px) and (orientation:portrait){
body[data-adventure="ten-at-a-time"] .ad-math{border-width:16px;grid-template-rows:43px minmax(130px,1fr) minmax(114px,1fr) 46px;gap:4px}
body[data-adventure="ten-at-a-time"] .ad-goal{font-size:26px}body[data-adventure="ten-at-a-time"] .ad-goal>span{font-size:13px;margin-top:2px}
body[data-adventure="ten-at-a-time"] .ad-mat h2{font-size:13px}body[data-adventure="ten-at-a-time"] .ad-working-blocks.ad-action{min-height:60px;overflow-y:auto;overflow-x:hidden;justify-content:flex-start;touch-action:pan-y;padding-bottom:0}
body[data-adventure="ten-at-a-time"] .ad-ten-slots{flex:0 0 60px;min-height:60px}body[data-adventure="ten-at-a-time"] .ad-return-label{position:static;flex-shrink:0}
body[data-adventure="ten-at-a-time"] .ad-status{min-height:46px;padding:4px 70px 4px 6px;font-size:12px}
body[data-adventure="ten-at-a-time"] .ad-actor{width:70px;height:90px;right:9px;bottom:8px}
}
