.fairground-scene{display:flex;flex-direction:column;align-items:center;gap:14px;width:100%;min-width:0}.fairground-stage{width:min(100%,790px)}.fairground-stage .game-canvas{display:block;width:100%;border-radius:18px;box-shadow:0 15px 35px #0e173138;touch-action:none}.fairground-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;width:100%}.fairground-scene .game-button{min-height:46px;min-width:46px;font-size:16px}.fairground-secondary{filter:saturate(.7)}.fairground-status,.fairground-readout{font-size:16px;line-height:1.7;color:#fff5d2;text-align:center;max-width:760px;margin:0}.fairground-note{font-size:16px;line-height:1.85;text-align:center;max-width:760px;margin:0}.fairground-range-label{display:flex;flex-direction:column;gap:7px;font-size:14px;color:#fff5d2;width:min(100%,290px);min-width:0}.fairground-range{width:100%;height:44px;accent-color:#ffcf3f}.fairground-pad{display:grid;grid-template-columns:repeat(4,minmax(48px,1fr));gap:7px;width:min(100%,340px)}.fairground-scene .fairground-direction{font-size:24px;min-height:50px;padding:7px 14px}.fairground-word-current{font-size:clamp(23px,5vw,34px);font-weight:800;color:#fff5d2;text-align:center}.fairground-word-goal{font-size:18px;margin:0;color:#ffe477;text-align:center}.fairground-word-route{font-size:16px;line-height:1.9;max-width:740px;overflow-wrap:anywhere;text-align:center}.fairground-word-form{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;width:100%}.fairground-word-input{width:min(100%,260px);min-height:48px;background:#fff5d2;color:#1b2c50;border:2px solid #22c781;border-radius:11px;padding:8px 13px;font:700 22px system-ui;letter-spacing:.16em;text-transform:uppercase}.fairground-dictionary{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-height:240px;overflow:auto;background:#14203c;padding:14px;border-radius:14px;width:min(100%,740px)}.fairground-dictionary[hidden]{display:none}.fairground-dictionary-word{font-size:14px;line-height:1.8;padding:4px 8px;border-radius:8px;background:#1b2c50;color:#fff5d2}.fairground-scene:has(.fairground-dots-board) .fairground-stage,.fairground-scene:has(.fairground-word-current) .fairground-stage{width:min(100%,620px);overflow:hidden;border-radius:16px}.fairground-scene:has(.fairground-dots-board) .game-canvas,.fairground-scene:has(.fairground-word-current) .game-canvas{margin-top:0}.fairground-dots-board{position:relative;width:min(calc(100% - 48px),390px);aspect-ratio:1;margin:30px 24px;--cell:calc(100% / var(--dots-n));background:#22c781;box-shadow:0 8px 0 #3e5481,0 15px 28px #0e17313d;border-radius:10px}.fairground-dot{position:absolute;width:11px;height:11px;transform:translate(-50%,-50%);border-radius:50%;background:#fff5d2;box-shadow:0 2px 0 #3e5481;pointer-events:none;z-index:3}.fairground-edge{position:absolute;transform:translate(-50%,-50%);border:none;background:none;min-height:44px;min-width:44px;padding:0;cursor:pointer;z-index:2;border-radius:10px}.fairground-edge-h{width:var(--cell);height:44px}.fairground-edge-v{width:44px;height:var(--cell)}.fairground-edge:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:6px;background:#ffe4775c;box-shadow:0 2px 0 #3e54814d;transition:background .15s}.fairground-edge-h:before{height:9px;width:calc(100% - 17px)}.fairground-edge-v:before{width:9px;height:calc(100% - 17px)}.fairground-edge:hover:before,.fairground-edge:focus-visible:before,.fairground-edge.is-hint:before{background:#ffe477;box-shadow:0 0 13px #ffe477}.fairground-edge.is-player:before{background:#ffb73f}.fairground-edge.is-fox:before{background:#28c7ee}.fairground-edge:disabled{opacity:1;cursor:default}.fairground-edge:focus-visible{outline:2px solid #ffe477;outline-offset:-4px}.fairground-dots-box{position:absolute;width:calc(var(--cell) - 20px);height:calc(var(--cell) - 20px);transform:translate(-50%,-50%);border-radius:9px;display:grid;place-items:center;font-size:18px;font-weight:800;pointer-events:none;color:#1b2c50}.fairground-dots-box.is-player{background:#ffb73fbb}.fairground-dots-box.is-fox{background:#28c7eebf}
@media(max-width:680px){.fairground-scene{gap:10px}.fairground-scene .game-button{font-size:14px;padding:10px 12px}.fairground-scene .fairground-direction{font-size:24px}.fairground-status,.fairground-readout,.fairground-note{font-size:14px}.fairground-controls{gap:7px}.fairground-dots-board{width:calc(100% - 44px);margin:28px 22px}.fairground-word-current{font-size:22px}.fairground-scene:has(.fairground-dots-board) .fairground-stage,.fairground-scene:has(.fairground-word-current) .fairground-stage{max-height:none}.fairground-scene:has(.fairground-dots-board) .game-canvas,.fairground-scene:has(.fairground-word-current) .game-canvas{margin-top:0}}
@media(prefers-reduced-motion:reduce){.fairground-edge:before{transition:none}}

/* Play pieces are horizontal sprite slices, not illustrated thumbnails. */
.fairground-word-letters{display:flex;justify-content:center;gap:6px}
.fairground-letter-tile{position:relative;display:block;width:clamp(48px,12vw,140px);height:clamp(58px,14vw,160px)}
.fairground-letter-sprite{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fairground-letter-glyph{position:absolute;left:0;right:0;top:37%;text-align:center;line-height:1;font-size:clamp(22px,5vw,60px);font-weight:850;color:#1b2c50;pointer-events:none}
.fairground-word-meaning{display:block;font-size:17px;margin-top:3px;color:#fff5d2}
.fairground-dots-slices{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.fairground-dot{width:28px;height:28px;background:none;box-shadow:none;border-radius:0}
.fairground-peg-sprite{display:block;width:100%;height:100%;pointer-events:none}
.fairground-edge.is-player:before,.fairground-edge.is-fox:before{opacity:0}
.fairground-dots-box.is-player,.fairground-dots-box.is-fox{background:transparent}
