body.beads{background:#f9eee2;color:#493b45}.beads main{max-width:760px}.beads header small{color:#80526c}.beads .primary{background:#75466f;border-color:#75466f}.beads .guide{background:#fffaf0;border-color:#d6bbaa}.beads #example{flex:none;width:48px;height:48px;display:grid;place-items:center}.beads #example svg{width:44px;height:44px}.beads #world{display:grid;gap:8px}.beads #reference{background:#fffaf1;border:1px solid #d6bbaa;border-radius:16px;padding:7px}.pattern-top{display:flex;justify-content:space-between;align-items:center;gap:5px}.pattern-top strong{font-size:14px}.beads #pattern{display:flex;justify-content:center;flex-wrap:wrap;gap:3px;padding:4px}.pattern-bead{width:clamp(23px,6.8vw,42px);height:clamp(23px,6.8vw,42px);display:grid;place-items:center;border-radius:9px;border:1px solid transparent}.pattern-bead svg{width:100%;height:100%}.pattern-bead.next{outline:2px solid #865329;outline-offset:1px}.pattern-bead.past{background:#e8f4da}.beads #board{position:relative;width:100%;max-width:550px;height:clamp(238px,53vw,320px);margin:auto;border-radius:22px;border:2px solid #c9a48d;background:radial-gradient(ellipse at 42% 25%,#fff5dc,transparent 58%),repeating-linear-gradient(45deg,#f3d9b8 0,#f3d9b8 1px,#f6dfc4 1px,#f6dfc4 7px);box-shadow:inset 0 0 0 5px #fff3db75,0 3px 7px #b58e6825;overflow:hidden}.cord{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.board-center{position:absolute;top:31%;left:25%;right:25%;text-align:center;display:grid;justify-items:center;gap:3px;color:#805d4f}.board-center span{font-size:32px;color:#ae8356}.board-center strong{font-size:15px}.beads #slots{position:absolute;inset:0;pointer-events:none}.beads .bead-slot{position:absolute;transform:translate(-50%,-50%);width:clamp(44px,11vw,62px);height:clamp(44px,11vw,62px);padding:0;min-width:44px;min-height:44px;border-radius:50%;display:grid;place-items:center;pointer-events:auto;background:#fff9e6d9;border:2px dashed #b39272;color:#805d4f;font-size:23px}.beads .bead-slot:disabled{opacity:1;cursor:default}.beads .bead-slot.filled{border-color:transparent;background:transparent}.beads .bead-slot.next{border:3px solid #80512e;background:#fff1b7;box-shadow:0 0 0 3px #fff8df}.beads .bead-slot svg,.beads .bead-choice svg{width:100%;height:100%;display:block}.beads #palette{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;padding:8px;background:#fffaf2;border:1px solid #d6bbaa;border-radius:16px}.beads .bead-choice{width:clamp(44px,13vw,64px);height:clamp(44px,13vw,64px);padding:2px;border-radius:15px;background:#fff7e8;border:1px solid #d2b79f}.beads .bead-choice[aria-pressed=true]{border:3px solid #70476c;background:#f4dff2}.beads .bead-choice.hint{outline:3px dashed #8b5a24;outline-offset:1px}.beads #board.finished{box-shadow:inset 0 0 0 5px #fff3db75,0 0 18px #e8ba6a85}.beads #board.finished .board-center span{color:#a76b27}.beads #result{background:#fffaf0;border-radius:15px;padding:6px}.beads #finish{background:#f7e4b7}.beads #pattern .covered{font-size:22px;color:#805d4f}.beads .bead-slot.threaded svg{animation:bead-pop .24s ease-out}@keyframes bead-pop{from{transform:scale(.75)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.beads .bead-slot.threaded svg{animation:none}}@media(max-width:370px){.beads #palette{gap:4px;padding:5px}.beads #board{height:238px}.beads .bead-slot{width:44px;height:44px}}@media(max-height:500px) and (orientation:landscape){.beads #world{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);align-items:center}.beads #reference{grid-column:2;grid-row:1}.beads #board{grid-column:1;grid-row:1/span 3;height:240px}.beads #palette{grid-column:2;grid-row:2}.beads #world .actions{grid-column:2;grid-row:3}}

@media(max-height:500px) and (orientation:landscape){.beads .bead-slot{width:50px;height:50px}}
