/* CCN Casual Games · Twist Cube · © Computational Classnotes · CC BY-NC-SA 4.0 */
#stage-wrap { position: relative; max-width: 560px; margin: 10px 0; }
#scene { width: 100%; aspect-ratio: 1 / 1; height: auto; display: block; border-radius: 12px; border: 3px solid var(--ink); background: var(--paper); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: grab; }
#scene.over-sticker { cursor: pointer; }
.hud { gap: 8px; } .hud h2 { margin-right: auto; } .score { font: 700 2rem var(--head); }
.faces { gap: 6px; max-width: 560px; }
.faces button { min-width: 52px; justify-content: center; font-weight: 800; color: #fff; border: 2px solid var(--ink); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
#dir[aria-pressed="true"] { background: var(--ink); color: #fff; }
#note { position: absolute; top: 14px; left: 0; right: 0; text-align: center; margin: 0; font: 700 1.3rem var(--head); color: var(--ink); pointer-events: none; opacity: 0; transition: opacity 0.4s; }
#note.show { opacity: 1; transition: none; }
/* the six face colours (kit/k3d.js PALETTE.pieces, in the order U, D, R, L, F, B) */
.f-U { background: #ff7a00; } .f-D { background: #00b8a3; } .f-R { background: #7a2cff; }
.f-L { background: #c79a00; } .f-F { background: #1f6bff; } .f-B { background: #ff2e7a; }
