.yt iframe { width:100%; aspect-ratio:16/9; border:0; }
.game,.selfie { margin:1.5rem 0; }
.game .bar,.selfie .bar { display:flex; flex-wrap:wrap; gap:.6rem 1rem; align-items:center; margin:.8rem 0; }
.game button,.selfie button { font:inherit; cursor:pointer; }
.game .bar button,.selfie .bar button { padding:.5rem 1rem; border:0; border-radius:.3rem; background:var(--deep); color:#fff; }
.game .won { font-weight:700; color:#1f6b2c; }
.ws table { border-collapse:collapse; width:100%; max-width:34rem; table-layout:fixed; background:#fff; user-select:none; -webkit-user-select:none; }
.ws.on table { touch-action:none; cursor:pointer; }
.ws td { border:1px solid var(--line); text-align:center; aspect-ratio:1; padding:0; font:600 clamp(.7rem,3.2vw,1.1rem)/1 system-ui; }
.ws td:focus-visible { outline-offset:-3px; }
.ws td.pick { background:#f7cdb5; } .ws td.hit { background:#bfe3c5; } .ws td.hint { background:#fff0a8; }
.ws .words { list-style:none; padding:0; display:flex; flex-wrap:wrap; gap:.3rem 1.2rem; }
.ws .words .hit { text-decoration:line-through; color:var(--muted); }
.sliderpuzzle .board { position:relative; width:100%; background:var(--stage); overflow:hidden; border-radius:.4rem; }
.sliderpuzzle .board button { position:absolute; border:1px solid #fff; padding:0; background-repeat:no-repeat; transition:left .15s,top .15s; }
.sliderpuzzle .peek { width:100%; }
.memory .board { display:grid; gap:.4rem; max-width:34rem; }
.memory .board button { padding:0; border:0; border-radius:.3rem; overflow:hidden; aspect-ratio:1; background:var(--stage); }
.memory img { width:100%; height:100%; object-fit:cover; } .memory .matched { opacity:.55; }
.dragmatch .board { position:relative; aspect-ratio:4/3; background-size:cover; border-radius:.4rem; overflow:hidden; }
.dragmatch .board button { position:absolute; padding:0; border:0; background:transparent center/100% 100% no-repeat; }
.dragmatch .stone { touch-action:none; filter:drop-shadow(0 2px 3px rgb(0 0 0/.6)); z-index:1; }
.dragmatch .stone[aria-pressed=true] { outline:3px solid var(--accent); z-index:2; }
.dragmatch .done { opacity:0; pointer-events:none; transition:opacity .3s; }
.selfie canvas { display:block; width:100%; max-width:34rem; touch-action:none; cursor:grab; background:var(--stage); border-radius:.4rem; }
.selfie > img { max-width:min(100%,24rem); } .selfie input[type=file] { position:absolute; opacity:0; width:1px; height:1px; }
.selfie label.button { cursor:pointer; } .selfie input:focus-visible + label { outline:3px solid var(--accent); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .sliderpuzzle .board button,.dragmatch .done { transition:none; } }
