/* The active lesson is a small set of real actions, not an instruction over a free board. */
:root body #screen-game[data-tutorial='true'] .cell[aria-disabled='true'] {cursor:default;}
:root body #screen-game[data-tutorial='true'] .cell.tutorial-target {outline:3px solid #a56a1e;outline-offset:-3px;}
:root body #screen-game #tutorial-start {display:none!important;}


/* Each choice is the framed picture. Its name is engraved on the lower rail. */
:root body #screen-commissions {padding:12px 14px 10px;gap:0;}
:root body #screen-commissions .gallery-heading {position:static;inset:auto;min-height:48px;width:100%;padding:4px 52px;margin:0 0 8px;display:block;}
:root body #screen-commissions .gallery-heading h2 {font-size:1.7rem;line-height:1.2;margin:4px 0 0;}
:root body #screen-commissions #commissions-back-button {position:absolute;left:12px;top:12px;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;border-radius:50%;margin:0;}
:root body #screen-commissions #commissions-back-button svg {width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
:root body #screen-commissions .level-grid {flex:1;min-height:0;max-height:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:20px 18px;padding:12px 6px 24px;overflow-y:auto;}
:root body #screen-commissions .level-card {display:flex;flex-direction:column;gap:0;padding:9px 9px 6px;border:0;border-radius:1px;overflow:hidden;position:relative;background:linear-gradient(135deg,oklch(79% .075 83),oklch(64% .067 78) 48%,oklch(74% .073 82));box-shadow:inset 2px 2px 1px oklch(91% .055 86),inset -3px -3px 1px oklch(33% .035 78),3px 6px 8px oklch(12% .02 170 / .5);transform:none;}
:root body #screen-commissions .level-card:hover {transform:translateY(-2px);box-shadow:inset 2px 2px 1px oklch(94% .055 86),inset -3px -3px 1px oklch(33% .035 78),3px 9px 12px oklch(12% .02 170 / .5);}
:root body #screen-commissions .level-card:focus-visible {outline:3px solid oklch(93% .07 86);outline-offset:3px;}
:root body #screen-commissions .level-thumb {display:block;position:relative;width:100%;height:auto;aspect-ratio:1;margin:0;padding:0;border:3px solid oklch(25% .025 163);border-radius:0;background:oklch(20% .015 170);box-shadow:0 1px 0 oklch(87% .055 83);overflow:hidden;}
:root body #screen-commissions .level-thumb::before,:root body #screen-commissions .level-thumb::after {display:none;}
:root body #screen-commissions .level-thumb-art {display:block;position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;border:0;border-radius:0;background-size:100% 100%;background-position:center;box-shadow:none;filter:none;transform:none;}
:root body #screen-commissions .level-thumb-art.is-mystery {inset:0;width:100%;height:100%;margin:0;border:0;background:linear-gradient(135deg,oklch(25% .018 167),oklch(16% .012 167) 65%,oklch(23% .018 167));box-shadow:inset 1px 1px 3px oklch(8% .012 167 / .8);opacity:1;}
:root body #screen-commissions .level-thumb-art.is-mystery::before,:root body #screen-commissions .level-thumb-art.is-mystery::after {display:none;}
:root body #screen-commissions .level-card-info {width:100%;min-height:52px;padding:8px 2px 1px;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;}
:root body #screen-commissions .level-card-title {font-family:var(--font-display,Lora,serif);font-size:1rem;font-weight:700;line-height:1.25;color:oklch(22% .025 78);min-height:0;}
:root body #screen-commissions :is(.level-card-meta,.level-card-set) {font-size:.75rem;font-weight:500;line-height:1.2;color:oklch(23% .025 78);letter-spacing:0;}
:root body #screen-commissions .level-card-meta {display:flex;justify-content:center;gap:6px;flex-wrap:wrap;width:100%;padding:0;margin-top:auto;}
:root body #screen-commissions .level-card-date {color:inherit;}
:root body #screen-commissions .level-lock {position:absolute;inset:auto 8px 8px auto;width:26px;height:26px;border-radius:50%;background:oklch(23% .02 167);color:oklch(88% .07 84);padding:4px;}
:root body #screen-commissions .gallery-footer {padding:4px 0 0;gap:0;}
:root body #screen-commissions #gallery-scroll-hint {display:none!important;}
:root body #gallery-browser {position:relative;align-self:flex-end;flex:0 0 auto;margin:0 6px 0 0;z-index:20;}
:root body #gallery-browser[hidden],:root body #gallery-browser .gallery-filters[hidden] {display:none;}
:root body #gallery-browser summary {display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 14px;color:oklch(95% .025 86);background:oklch(29% .055 167);border:1px solid var(--metal);border-radius:6px;font:600 .8rem/1.2 var(--font-ui);cursor:pointer;list-style:none;}
:root body #gallery-browser summary::-webkit-details-marker {display:none;}
:root body #gallery-browser summary:focus-visible {outline:2px solid var(--ivory);outline-offset:-3px;}
:root body #gallery-browser .gallery-toolbar {position:absolute;top:100%;right:0;width:min(330px,calc(100vw - 40px));display:flex;flex-direction:column;gap:14px;padding:14px;background:var(--surface);color:var(--text-primary);border:1px solid var(--metal);border-radius:6px;box-shadow:0 6px 20px oklch(12% .02 167 / .5);}
:root body #gallery-browser:not([open]) .gallery-toolbar {display:none;}
:root body #gallery-browser .gallery-set-control {display:flex;flex-direction:column;gap:6px;width:100%;align-items:stretch;}
:root body #gallery-browser .gallery-filters {width:100%;}
@media(min-width:700px){:root body #screen-commissions .level-grid {grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,1060px);align-self:center;gap:24px;padding-inline:10px;}}
@media(prefers-reduced-motion:reduce){:root body #screen-commissions .level-card:hover {transform:none;}}

/* The same pane image is visible through the reverse side of the complete case. */
:root body #screen-game #frame-instructions {display:none!important;}
:root body .glass-reward .reward-object {isolation:auto;transition:none;transform-style:preserve-3d;}
:root body .glass-reward.reward-ready {cursor:grab;touch-action:none;}
:root body .glass-reward .reward-object:is(.is-dragging,.is-spinning) {will-change:transform;}
/* A blending descendant flattens the case in Chromium, hiding its edges at 90 degrees. */
:root body .glass-reward .trial-reward-light {mix-blend-mode:normal;}
:root body .glass-reward :is(.reward-still,.reward-glass,.reward-surround,.trial-reward-light) {backface-visibility:hidden;-webkit-backface-visibility:hidden;}
:root body .glass-reward .reward-back {transform:translateZ(-28px) rotateY(180deg);backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:none;background:oklch(24% .025 165);}
:root body .glass-reward .reward-back .reward-reverse {position:absolute;inset:7.41%;width:85.18%;height:85.18%;object-fit:contain;transform:scaleX(-1);pointer-events:none;}
:root body .glass-reward .reward-back .depth-frame {position:absolute;inset:0;width:100%;height:100%;pointer-events:none;--frame-light:#bda66f;--frame-mid:#75603b;--frame-dark:#403623;--frame-groove:#242823;--inner-top:#322d20;--inner-left:#62583b;--inner-right:#a79864;--inner-bottom:#bca976;--frame-rim:#34372a;}
:root body .glass-reward .reward-side-top {position:absolute;left:-8.7%;right:-8.7%;height:28px;top:-8.7%;transform-origin:center top;transform:rotateX(-90deg);background:linear-gradient(0deg,#65583c,#a8915d);}
:root body .glass-reward .reward-contact {display:none;}
.reward-spark {position:absolute;width:10px;height:10px;background:var(--spark-color);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);filter:drop-shadow(0 0 2px #5c4319);pointer-events:none;z-index:12;opacity:0;}
.reward-spark.is-glass-shard {width:4px;height:9px;clip-path:polygon(12% 0,100% 22%,78% 100%,0 70%);}
@media(prefers-reduced-motion:reduce){.reward-spark{display:none;}}
