.little-game{padding:22px;background:#f0f2e6;color:#665274}
.little-hud{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;padding:0 0 18px}
.little-hud>span{font-size:12px;text-align:right}
.little-hint{font-size:12px;text-align:center;line-height:1.7;margin:15px auto;max-width:520px}
.little-game button:focus-visible,.puzzle-tools summary:focus-visible{outline:3px solid #80639e;outline-offset:3px}
.little-game button[disabled]{opacity:.5;cursor:default}
.simon-game{text-align:center;background:radial-gradient(ellipse at 50% 0,#fff7dd,#dce9d3)}
.simon-friend{display:flex;align-items:center;justify-content:center;gap:8px;height:75px;margin:-10px 0 10px}
.simon-friend svg{width:85px;height:85px;overflow:visible}
.simon-friend p{font:italic 16px Georgia,serif;color:#7d8060}
.simon-board{display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:480px;margin:15px auto 23px}
.simon-pad{border:3px solid #a4ad90;border-radius:30px;min-height:133px;padding:10px;box-shadow:0 6px 0 #b8bea5;background:#c7dfbb;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;position:relative}
.simon-pad>span{font-size:42px;line-height:1.1}.simon-pad strong{font-size:14px}.simon-pad small{font-size:10px;opacity:.8}
.pad-1{background:#ebc9d6;border-color:#bd9bb4;box-shadow:0 6px 0 #cba8bf}.pad-2{background:#f6e2a9;border-color:#c4af81;box-shadow:0 6px 0 #d1bd92}.pad-3{background:#d6ccec;border-color:#ab99bf;box-shadow:0 6px 0 #b9a8ca}
.simon-pad[aria-disabled=true]{cursor:default}.simon-pad.lit{border-color:#6c517f;background:#fff9e9;outline:4px solid #fff7db;box-shadow:0 6px 0 #9e84b2,0 0 0 8px #b9a5c8}.simon-pad.lit:after{content:'WATCH';position:absolute;right:8px;top:7px;font-size:9px;font-weight:bold;background:#796089;color:white;border-radius:6px;padding:3px 5px}
.repeat-pattern{font-size:12px;min-height:44px}
.simon-pad>span svg{width:44px;height:44px;display:block}
.shell-game,.castle-game{background:linear-gradient(#eef4e7,#f5e4c5)}
.shell-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:17px;background:#f9f0d8;border:2px dashed #ceb991;border-radius:22px;max-width:570px;margin:auto;min-height:250px}
.shell-piece{border:2px solid #d6bda8;background:#fffaf2;border-radius:17px;min-height:108px;padding:7px;box-shadow:0 4px 0 #dbc8aa;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}
.shell-piece svg{width:65px;height:65px}.shell-piece>span{font-size:11px}.shell-piece[aria-pressed=true]{border:3px solid #83629a;background:#ede3f5;box-shadow:0 4px 0 #af92bf}
.shell-baskets{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:570px;margin:22px auto 10px}
.shell-basket{border:2px solid #af9780;border-radius:15px 15px 33px 33px;background:repeating-linear-gradient(0deg,#e9cea3 0px,#e9cea3 7px,#e0c398 8px,#e0c398 10px);min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;box-shadow:0 5px 0 #c4a986}
.shell-basket svg{width:56px;height:56px}.shell-basket strong{font-size:12px}.shell-basket>span{font:italic 12px Georgia,serif}
.castle-board{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;max-width:410px;background:#d3b991;border:8px solid #d3b991;border-radius:15px;margin:10px auto 22px}
.castle-tile{aspect-ratio:1;border:1px solid #aa9789;border-radius:7px;background:#f7e2ba;padding:0;position:relative;overflow:hidden;box-shadow:0 3px 0 #ad977f}
.castle-tile svg{display:block;width:100%;height:100%}.castle-tile>span{position:absolute;top:4px;left:5px;border:1px solid #b49abd;border-radius:7px;background:#fffaf2dd;font-weight:bold;font-size:12px;min-width:23px;padding:3px;color:#654e74}
.castle-gap{display:grid;place-items:center;aspect-ratio:1;border:2px dashed #aa947c;border-radius:9px;color:#8f7d72}.castle-gap>span{font-size:30px}
.puzzle-tools{display:flex;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:12px 25px;margin:15px auto}.puzzle-tools>button,.puzzle-tools summary{font-size:12px;min-height:44px;padding:9px;cursor:pointer;text-align:center}.puzzle-tools summary{text-decoration:underline;text-underline-offset:4px}.puzzle-tools details{text-align:center;max-width:200px}.castle-plan svg{width:160px;display:block;margin:auto}.castle-plan>span{display:block;font-size:12px;line-height:1.6;margin:8px}
.ice-game,.spin-game{background:linear-gradient(#e8edf8,#eae3f2)}
.ice-board{display:grid;grid-template-columns:repeat(8,1fr);max-width:500px;margin:8px auto;border:5px solid #c3c0d7;border-radius:15px;overflow:hidden;background:#bcdce8;gap:2px;padding:2px}
.ice-cell{aspect-ratio:1;background:#d8ecf1;display:grid;place-items:center;position:relative;min-width:0;border-radius:4px;box-shadow:inset 0 -2px 0 #bcd6e2}.ice-cell:after{content:'';position:absolute;width:25%;height:1px;top:30%;left:17%;background:#f5fbff;transform:rotate(-25deg);pointer-events:none}.ice-cell.rock-cell{background:#c8c8dc;box-shadow:inset 0 4px 0 #fffaff,inset 0 -6px 0 #b4aec9;color:#a3a1b8;font-size:20px}.ice-cell.rock-cell:after{display:none}.ice-cell.cabin-cell{background:#f9e5bd;font-size:38px;color:#aa7e7d}.ice-crystal{font-size:38px;color:#997aaa;text-shadow:0 2px 0 white}.ice-cell svg{position:absolute;width:160%;height:160%;z-index:1;pointer-events:none;max-width:none}.ice-arrows{display:flex;justify-content:center;gap:12px;margin:20px auto 8px}.ice-arrows .control{min-width:58px;min-height:48px;padding:8px 15px}
.spin-board{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;max-width:450px;margin:20px auto;background:#c3bad7;padding:9px;border-radius:16px}
.spin-tile{aspect-ratio:1;background:#f6f6ff;border:2px solid #b0abc7;border-radius:11px;padding:0;position:relative;overflow:hidden;box-shadow:0 3px 0 #a49bb9}.spin-tile svg{display:block;width:100%;height:100%}.trail-border{fill:none;stroke:#b5c5dc;stroke-width:29;stroke-linecap:round}.trail-center{fill:none;stroke:#dfebfa;stroke-width:20;stroke-linecap:round}.spin-tile.connected{background:#f5f2d9;border-color:#beaa7f}.connected .trail-border{stroke:#cfb28c}.connected .trail-center{stroke:#ffe7ab}.turn-mark{position:absolute;bottom:3px;right:4px;font-size:15px;color:#a799b7}.trail-label{position:absolute;top:3px;left:3px;right:3px;background:#fffaf2e8;border:1px solid #cbb8cb;border-radius:5px;font-size:9px;padding:2px}.trail-source,.trail-end{border:3px solid #a78db4}
.game-simon{background:#dcebd2;color:#8fa67b}.game-shellsort,.game-castle{background:#f6e4bf;color:#bd9f75}.game-ice,.game-spin{background:#e4e7f6;color:#a29bbe}
@media(max-width:650px){.little-game{padding:17px 12px}.little-hud{font-size:12px;padding-bottom:10px}.little-hud>span{font-size:10px}.little-hint{font-size:11px}.simon-friend p{font-size:13px}.simon-pad{min-height:105px;border-radius:22px}.simon-pad>span{font-size:34px}.simon-pad strong{font-size:12px}.simon-board{gap:13px;margin-inline:6px}.shell-tray{padding:10px;gap:9px;min-height:200px}.shell-piece{min-height:89px;padding:5px}.shell-piece svg{width:52px;height:52px}.shell-piece>span{font-size:9px}.shell-baskets{gap:9px}.shell-basket{padding:7px 4px;min-height:108px}.shell-basket strong{font-size:10px}.shell-basket svg{width:45px;height:45px}.castle-board{gap:4px;border-width:6px}.castle-tile>span{font-size:10px;min-width:20px;padding:2px;top:2px;left:2px}.ice-board{border-width:3px;gap:1px}.ice-arrows{gap:9px}.ice-arrows .control{min-width:48px;padding:8px 12px}.ice-crystal{font-size:26px}.ice-cell.cabin-cell{font-size:28px}.ice-cell.rock-cell{font-size:15px}.spin-board{gap:5px;padding:7px}.trail-label{font-size:8px;padding:1px;top:1px;left:1px;right:1px}.turn-mark{font-size:12px}.puzzle-tools{gap:8px}}
