/* The board in 3D (js/board3d.js) over its picture, beside text: the home page and The Calculator page. */
.hw3 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center; }
.hw3-text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.hw3-text > p { font-size: 18px; line-height: 1.5; color: var(--text-soft); }
.hw3-text > p.small { font-size: 14px; color: var(--text-muted); }
.hw3-list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; line-height: 1.45; color: var(--text-soft); }
.hw3-list strong { color: var(--text); }
.hw3-art { min-width: 0; position: relative; }
.hw3-art > .sound-btn { bottom: 98px; } /* over the stage's corner, where the hero's is */
.board-stage { position: relative; width: 100%; aspect-ratio: 1080 / 1120; overflow: hidden; border-radius: var(--r-lg); background: radial-gradient(closest-side, color-mix(in srgb, var(--text) 13%, transparent), transparent); touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
.board-stage.is-3d { cursor: grab; }
.board-stage.is-3d:active { cursor: grabbing; }
.board-still { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.board-stage canvas { position: absolute; inset: 0; opacity: 0; }
.board-stage.is-3d canvas { opacity: 1; }
.board-stage.is-3d .board-still { opacity: 0; }
/* Never hidden, only see-through: a hidden frame gets no animation frames. */
.board-lay { position: absolute; left: 0; top: 0; width: 534px; height: 277.5px; overflow: hidden; transform-origin: 0 0; opacity: 0.01; pointer-events: none; transition: opacity 200ms ease; }
.board-stage.is-3d .board-lay.is-live:not(.is-back) { opacity: 1; }
/* Paused: the app's last picture is on the 3D screen under it. */
.board-stage.is-3d .board-lay.is-live.is-held { opacity: 0.01; transition: none; }
.board-lay.is-back { transition: none; }
.board-lay iframe { position: absolute; left: -3px; top: 0; width: 540px; height: 285px; border: 0; background: transparent; pointer-events: none; }
/* The wheel's lesson: a small pill over the rim. */
.board-tip { position: absolute; z-index: 1; transform: translate(-50%, -100%); padding: 5px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 400ms ease; }
.board-tip.is-on { opacity: 1; animation: board-tip 1.8s ease-in-out 2; }
@keyframes board-tip { 50% { margin-top: -4px; } }
.hw3-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; margin-top: 8px; }
.hw3-foot .btn, .casebox .btn { flex: none; height: 44px; font-size: 15px; background: var(--surface-2); color: var(--text); box-shadow: 0 4px 0 var(--shadow); }
.hw3-foot .btn[hidden] { display: none; }
.hw3-foot #board-pause { min-width: 92px; margin-left: auto; }
#board-hint { margin: 0; font-size: 14px; color: var(--text-muted); }
/* A phone: the line over the buttons, its two lines kept free. */
@media (max-width: 640px) { .hw3-art > .sound-btn { bottom: 128px; } .hw3-foot { flex-wrap: wrap; align-content: flex-start; gap: 10px 12px; min-height: 102px; } #board-hint { flex: 1 1 100%; min-height: 40px; } .hw3-foot #board-pause { margin-left: 0; } .hw3-foot .btn { flex: 1 1 0; } }
@media (max-width: 860px) { .hw3 { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (prefers-reduced-motion: reduce) { .board-lay, .board-tip { transition: none; } .board-tip.is-on { animation: none; } }
