/* Steady hands, first version, in plain shapes. One explicit colour theme. */
:root { --wall: #2a0a14; --felt: #3d5a4c; --skin: #f2e2c4; --ink: #2a0a14; --gold: #c9a24b; --red: #e23b3b; --hole: #1a0d10; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--wall); color: var(--skin); font: 18px/1.5 Georgia, "Times New Roman", serif; }
main { max-width: 560px; margin: 0 auto; padding: 60px 16px 150px; text-align: center; }
h1 { margin: 0; font: bold 40px/1.1 Georgia, serif; letter-spacing: .04em; color: var(--gold); }
.say { margin: 8px 0 18px; font-style: italic; }
.table { background: var(--felt); border: 4px solid var(--gold); border-radius: 14px; padding: 8px; }
#board { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.shadow { fill: #0005; }
.body rect, .body circle { fill: var(--skin); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.lamp { fill: #7a2a2a; stroke: var(--ink); stroke-width: 2.5; }
.lamp.on { fill: var(--red); filter: drop-shadow(0 0 10px var(--red)); }
.slot { fill: var(--hole); stroke: #fffdf6; stroke-width: 3; }
.mouth { stroke: var(--gold); stroke-width: 7; stroke-linecap: butt; stroke-dasharray: 4 4; }
.thing { cursor: grab; outline: none; }
.thing:active { cursor: grabbing; }
.thing .halo { fill: none; stroke: none; }
.thing:focus-visible .halo { stroke: var(--gold); stroke-width: 3; }
.thing.out { display: none; }
.table.buzz { animation: buzz .32s linear; }
@media (prefers-reduced-motion: reduce) { .table.buzz { animation: none; } }
@keyframes buzz { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
.said { min-height: 1.5em; margin: 12px 0 6px; font-style: italic; color: var(--gold); }
.tray { position: relative; margin: 0 auto; max-width: 420px; padding: 22px 10px 10px; border: 4px solid var(--gold); border-radius: 10px; background: #dfe3ea; min-height: 96px; }
.tray::before { content: "tray"; position: absolute; left: 10px; top: 3px; font: italic 13px Georgia, serif; color: #55555f; }
.trayin { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.trayin a { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); }
.trayin a:hover, .trayin a:focus-visible { background: #fff3c9; outline: 3px solid var(--gold); }
.trayin svg { width: 40px; height: 40px; }
.again button { margin-top: 14px; padding: 6px 14px; border: 2px solid var(--gold); border-radius: 6px; background: none; color: var(--gold); font: 15px Georgia, serif; cursor: pointer; }
.quiet { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
