/* The transmitted window casts light; the surrounding UI yields to the glass. */
.glass-reward.payoff-sample .reward-object {isolation:isolate;}
.glass-reward.payoff-sample .reward-back {background:#183b43;}
.glass-reward.payoff-sample .reward-still {filter:none;}
.glass-reward.payoff-sample .trial-reward-light {opacity:.5;mix-blend-mode:screen;}
.glass-reward.payoff-sample .trial-reward-light::before {
    background:linear-gradient(123deg,transparent 24%,#fff6c82e 28%,transparent 32%,transparent 48%,#e6f9e522 51%,transparent 57%);
    background-size:160% 160%;background-position:var(--reflection-x,38%) var(--reflection-y,45%);
}
.glass-reward.payoff-sample .reward-contact {opacity:.3;filter:blur(10px);background:linear-gradient(100deg,#218aa366,#f6ba4f99,#348b9166);transform:translateY(12px) scaleX(.86);}
:root body.tutorial-reward #screen-game .restoration-frame {height:100svh;min-height:0;display:flex;flex-direction:column;align-items:center;}
body.tutorial-reward #screen-game #game-container {display:flex!important;flex:1;min-height:160px;width:100%!important;height:100%!important;max-width:none!important;padding:0!important;overflow:visible!important;background:transparent!important;border:0!important;box-shadow:none!important;}
body.tutorial-reward #screen-game #game-container .glass-reward {position:absolute;inset:0;}
body.tutorial-reward #screen-game #game-container > :not(.glass-reward) {visibility:hidden;}
body.tutorial-reward #screen-game :is(.board-tools,.puzzle-progress,#attempt-status,#puzzle-subtitle) {display:none!important;}
:root body.tutorial-reward #screen-game #tutorial-guide {order:2;width:min(100%,420px);padding:4px 12px 10px;}
body.tutorial-reward #screen-game #puzzle-title {flex:0 0 auto;margin:12px 0 4px;}
body.tutorial-reward #screen-game #tutorial-instruction {font-size:.88rem;line-height:1.35;}
body.tutorial-reward #screen-game #tutorial-continue {margin-top:8px;}
body.tutorial-reward #screen-game #tutorial-skip {display:none!important;}
body.tutorial-reward #screen-game .game-topbar {display:none!important;}
@media(max-height:450px) and (min-width:650px) {
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) {display:grid;grid-template-columns:minmax(0,58fr) minmax(0,42fr);grid-template-rows:auto auto auto 1fr;column-gap:12px;padding:20px;}
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) #game-container.has-depth-reward {grid-column:1;grid-row:1/5;width:100%;height:100%;max-height:none;min-height:0;}
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) .game-topbar {grid-column:2;grid-row:1;padding:20px 0 0;}
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) > #puzzle-title {grid-column:2;grid-row:2;margin-top:8px;}
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) .win-note {grid-column:2;grid-row:3;}
 :root body.solved-phase-2 #screen-game .restoration-frame:has(.payoff-sample) .win-actions {grid-column:2;grid-row:4;align-self:start;justify-content:center;}
 :root body.tutorial-reward #screen-game .restoration-frame {display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,36%);grid-template-rows:1fr;gap:8px;}
 body.tutorial-reward #screen-game #game-container {grid-column:1;grid-row:1/3;min-height:0;}
 body.tutorial-reward #screen-game #puzzle-title {grid-column:2;grid-row:1;align-self:end;}
 :root body.tutorial-reward #screen-game #tutorial-guide {grid-column:2;grid-row:1;align-self:center;}
}
@media(prefers-reduced-motion:reduce) {.glass-reward.payoff-sample .trial-reward-light{display:none;}}
