.game-home:has(.shelf-sequence){max-width:40rem}.play-surface:has(.shelf-sequence){background:var(--panel);padding:14px}.shelf-sequence{color:var(--ink);font-size:.875rem;line-height:1.45}.shelf-sequence :is(p,h1,h2,ol){margin:0}.shelf-sequence button,.shelf-sequence input{touch-action:manipulation;border-radius:6px;min-width:44px;min-height:44px;padding:8px 12px}.ss-masthead{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding-bottom:10px;display:flex}.ss-masthead h1{font-size:clamp(1.4rem,5.5vw,1.9rem);line-height:1.1}.ss-masthead p{color:var(--muted);margin-top:5px;font-size:.75rem}.ss-masthead button{background:var(--accent-soft);border-color:#0000}.ss-instruction{min-height:62px;padding:12px 0}.ss-puzzle{grid-template-columns:minmax(128px,.9fr) minmax(0,1.2fr);align-items:start;gap:16px;display:grid}.ss-section-label{color:var(--muted);min-height:32px;font-size:.75rem;font-weight:600}.ss-board{gap:6px;padding:0;list-style:none;display:grid;position:relative}.ss-board>li{grid-template-columns:10px minmax(0,1fr);align-items:center;gap:6px;display:grid}.shelf-sequence .ss-board button{text-align:left;background:var(--bg);width:100%;min-height:49px;box-shadow:0 3px 0 var(--line);cursor:grab;touch-action:pinch-zoom;align-items:center;gap:6px;padding:5px 7px;transition:transform .18s cubic-bezier(.2,.7,.2,1);display:flex}.ss-number{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.75rem}.ss-board svg{flex:0 0 27px;width:27px;height:30px}.ss-object-label{font-size:.8125rem;font-weight:650}.ss-destination{color:var(--focus-ring);margin-left:auto;display:none}.ss-board button[aria-pressed=true]{border-color:var(--focus-ring);outline:1px solid var(--focus-ring);background:var(--accent-soft)}.shelf-sequence[data-moving=true] .ss-board button:not([aria-pressed=true]){border-style:dashed;border-color:var(--focus-ring)}.shelf-sequence[data-moving=true] .ss-destination{display:inline}.ss-board button:disabled{opacity:1;cursor:default}.shelf-sequence[data-dragging=true] .ss-board button{cursor:grabbing}.shelf-sequence .ss-board button[data-lifted=true]{opacity:0}.shelf-sequence[data-repositioning=true] .ss-board button{transition:none}.shelf-sequence[data-dragging=true] .ss-board button{border-style:solid}.ss-drop-target{pointer-events:none;border:2px dashed var(--focus-ring);background:var(--accent-soft);color:var(--focus-ring);border-radius:6px;justify-content:center;align-items:center;font-size:.75rem;font-weight:650;display:flex;position:absolute}.shelf-sequence .ss-drag-ghost{z-index:1000;pointer-events:none;border:1px solid var(--focus-ring);background:var(--panel);opacity:.96;border-radius:6px;align-items:center;gap:6px;min-height:49px;padding:5px 7px;transition:none;display:flex;position:fixed;box-shadow:0 8px 20px #0003}.shelf-sequence .ss-drag-ghost[data-settling=true]{box-shadow:0 3px 0 var(--line);pointer-events:auto;cursor:grab;touch-action:pinch-zoom;transition:transform .18s cubic-bezier(.2,.7,.2,1),box-shadow .18s}.ss-drag-ghost svg{flex:0 0 27px;width:27px;height:30px}.ss-drag-ghost .ss-destination{display:none}.ss-clue-list{gap:8px;padding:0;list-style:none;display:grid}.ss-clue-list li{border-bottom:1px solid var(--line);align-items:baseline;gap:6px;padding-bottom:7px;font-size:.8125rem;display:flex}.ss-clue-mark{color:var(--muted);flex:0 0 13px;font-weight:750}.ss-clue-list li[data-met=true] .ss-clue-mark{color:var(--good)}.ss-clue-list li[data-met=false] .ss-clue-mark{color:var(--near)}.ss-status[data-quiet=true]{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;min-height:0;padding:0;position:absolute;overflow:hidden;margin:-1px!important}.ss-status{min-height:41px;margin:14px 0 10px!important}.ss-commands{gap:8px;display:flex}.shelf-sequence .ss-primary{background:var(--focus-ring);color:var(--bg);border-color:var(--focus-ring);font-weight:700}.shelf-sequence .ss-primary:not(:disabled):hover{background:var(--focus-ring);filter:brightness(.9);color:var(--bg)}.ss-result{border:1px solid var(--good);background:var(--good-soft);border-radius:6px;margin-top:12px;padding:14px}.ss-result h2{font-size:1.15rem}.ss-result p{margin:6px 0 12px}.ss-result button{width:100%}.ss-share-text{resize:vertical;background:var(--panel);width:100%;min-height:110px;color:var(--ink);border:1px solid var(--line);font:inherit;margin-top:12px;padding:8px;display:block}.ss-save{color:var(--muted);font-size:.75rem;margin-top:12px!important}.ss-today{min-height:44px;color:var(--focus-ring);padding:12px 0;display:block}.ss-archive{border-top:1px solid var(--line);color:var(--muted);margin-top:14px;padding-top:8px;font-size:.8125rem}.ss-archive summary{cursor:pointer;min-height:44px;color:var(--ink);padding:10px 0}.ss-archive form{flex-wrap:wrap;gap:8px;margin:10px 0;display:flex}.ss-archive label{width:100%}.ss-archive input{background:var(--panel);min-width:0;max-width:100%;color:var(--ink);border:1px solid var(--line)}.ss-archive ol{padding-left:20px}.ss-archive li{padding:4px 0}.ss-help-dialog{border:1px solid var(--line);background:var(--panel);width:min(30rem,100% - 24px);max-height:calc(100svh - 24px);color:var(--ink);border-radius:6px;padding:20px;font-size:.875rem;line-height:1.5;overflow:auto}.ss-help-dialog::backdrop{background:#0008}.ss-help-dialog header{justify-content:space-between;align-items:center;gap:12px;display:flex}.ss-help-dialog h2{font-size:1.35rem}.ss-help-dialog p,.ss-help-dialog ul{margin-top:14px}.ss-help-dialog li+li{margin-top:8px}.ss-demo{flex-wrap:wrap;gap:6px;margin-top:14px;display:flex}.ss-demo span{background:var(--accent-soft);border:1px solid var(--line);border-radius:6px;padding:8px}.shelf-sequence[data-celebrate=true] .ss-board{animation:.35s ease-out ss-finish}@keyframes ss-finish{50%{filter:brightness(1.08)}}@media (width<=350px){.ss-puzzle{grid-template-columns:minmax(110px,.85fr) minmax(0,1.15fr);gap:10px}.ss-board svg,.ss-drag-ghost svg{flex-basis:22px;width:22px}.ss-clue-list li{font-size:.75rem}.ss-destination{display:none!important}}@media (prefers-reduced-motion:reduce){.shelf-sequence *,.shelf-sequence :before{transition:none!important;animation:none!important}}
