.subgame-label{font-size:.875rem;letter-spacing:.12em;color:#b0bee5;margin:0 0 12px;font-weight:700}
.subgame-choices{gap:12px}.subgame-choices>button{position:relative;min-height:135px;justify-content:flex-start;padding:15px 17px;border-color:#43527b;border-radius:14px;background:#181d2c;text-align:left}
.subgame-choices>button[aria-pressed=true]{border-color:var(--subgame-color);background:linear-gradient(125deg,#242c42,#181d2c);box-shadow:inset 4px 0 var(--subgame-color)}
.subgame-choices .subgame-number{font-size:.75rem;letter-spacing:.1em;color:var(--subgame-color);margin-bottom:4px}.subgame-choices strong{font-size:1.0625rem;color:#f1f3fa}.subgame-choices>button>span:last-child{font-size:.875rem;line-height:1.5;color:#bec9e9}
.subgame-detail{font-size:.875rem;line-height:1.55;color:#b8c5e8;text-align:left;margin:14px 0 0}.subgame-detail strong{color:var(--subgame-color)}
#game-dialog.has-replay #replay-setup{width:min(680px,100%)}#game-dialog.has-replay[data-phase=intro] .game-overlay{justify-content:flex-start}#game-dialog.has-replay[data-phase=intro] .game-overlay>.instructions{margin:10px 0}#replay-stop{min-height:44px;font-size:.875rem;color:#b6c3e7}.subgame-result-name{color:#acbbe3!important;font-weight:700}
.has-subgame-board{display:flex;flex-direction:column;gap:10px;position:relative}.subgame-board-message{flex:0 0 auto;font-size:.9375rem;line-height:1.45;text-align:center;color:#e2e7f5;margin:0 4px 8px;max-width:100%}
#game-dialog .has-subgame-board .memory-board{flex:1;min-height:0;max-height:calc(100% - 54px)}
.memory-sequence .memory-cell{border-radius:50%;border:2px solid #49818c;background:#12313c;color:#83b2c0;font-size:1.5rem}.memory-sequence .memory-cell.flipped{background:#99f3df;box-shadow:0 0 18px #68edda55;color:#183734}
.memory-snapshot .memory-cell{border-radius:5px;border-color:#586ba0;background:#202639}.memory-snapshot .memory-cell.flipped{background:#bac6e8;color:#232a3f}
.cards-moving{opacity:.6;transform:scale(.96);transition:transform .3s,opacity .3s}.memory-board{transition:transform .3s,opacity .3s}
.mine-start{box-shadow:inset 0 0 0 3px #80dfff!important}.mine-exit{box-shadow:inset 0 0 0 3px #a3b4e0!important;color:#a3b4e0!important}.mine-cleared{background:#244c38!important;color:#b1f5ac!important}
.survey-wrap{width:min(520px,100%);height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;gap:12px}.survey-board{display:grid;gap:4px;width:100%;flex:1;min-height:0}.survey-count{display:grid;place-items:center;background:#252d43;border-radius:5px;color:#d6def2;font-weight:750;font-size:1rem}.survey-check{min-height:48px;flex-shrink:0}
#game-dialog .has-subgame-board .fusion-board{flex:1;min-height:0;max-height:calc(100% - 60px)}.fusion-cell[role=button]{cursor:pointer;touch-action:none}.fusion-cell[role=button]:focus-visible{outline:3px solid #c9d3ed;outline-offset:-3px}.fusion-selected{box-shadow:inset 0 0 0 5px #d941b5}
.fusion-tower{background:linear-gradient(0deg,#244c65,#142432)!important;border-bottom:7px solid #75dcff;gap:8px}.fusion-alchemy{background:#1e2537!important;border:2px solid #697bad;border-radius:22px}.fusion-alchemy .fusion-cell{border-radius:50%}
@media(max-width:600px){.subgame-choices{gap:9px}.subgame-choices>button{padding:12px;min-height:160px}.subgame-choices strong{font-size:.9375rem}.subgame-choices>button>span:last-child{font-size:.875rem}.subgame-detail{font-size:.875rem}}
@media(max-height:500px) and (orientation:landscape){.subgame-choices>button{min-height:115px}.subgame-choices{gap:9px}#game-dialog.has-replay .game-overlay h3{font-size:1.4rem}.subgame-board-message{font-size:.875rem;margin-bottom:4px}.survey-wrap{flex-direction:row;max-width:none;gap:8px}.survey-wrap>.subgame-board-message{max-width:120px}.survey-check{max-width:115px;white-space:normal}.survey-board{height:100%;min-width:0}.subgame-label{margin-bottom:7px}}
@media(prefers-reduced-motion:reduce){.cards-moving,.memory-board{transition:none}}
