/* First-run tutorial overlay — see js/12-tutorial.js. Sits above sheets
   (veil 60, sheet close 65) so it can point into the drop review, and
   below toasts / the power pop (70) so their feedback still shows. */
.tutorial{position:fixed;inset:0;z-index:66;pointer-events:none}
.tutorial[hidden]{display:none!important}   /* beats .center's display:grid */
.tutorial.center{pointer-events:auto;background:#050819c4;display:grid;place-items:center;padding:16px}
.tutorial.center .tutSpot{display:none}
.tutSpot{position:fixed;border-radius:14px;box-shadow:0 0 0 200vmax #050819b0,0 0 0 2px #c9b0ff;
  transition:left .18s,top .18s,width .18s,height .18s}
.tutorial.pulse .tutSpot{animation:tutPulse 1.4s ease-in-out infinite}
.tutorial.soft .tutSpot{box-shadow:0 0 0 200vmax #05081940,0 0 0 2px #c9b0ff}
.tutorial.soft.pulse .tutSpot{animation-name:tutPulseSoft}
@keyframes tutPulse{
  0%,100%{box-shadow:0 0 0 200vmax #050819b0,0 0 0 2px #c9b0ff,0 0 0 2px #c9b0ff00}
  50%{box-shadow:0 0 0 200vmax #050819b0,0 0 0 2px #c9b0ff,0 0 0 9px #c9b0ff3a}}
@keyframes tutPulseSoft{
  0%,100%{box-shadow:0 0 0 200vmax #05081940,0 0 0 2px #c9b0ff,0 0 0 2px #c9b0ff00}
  50%{box-shadow:0 0 0 200vmax #05081940,0 0 0 2px #c9b0ff,0 0 0 9px #c9b0ff3a}}
.tutBubble{position:fixed;pointer-events:auto;box-sizing:border-box;max-width:340px;padding:15px 16px 13px;
  background:#20264e;border:1px solid #8f7fc9;border-radius:16px;box-shadow:0 14px 40px #0009;color:#e7e9ff;
  font-family:'Work Sans',sans-serif}
.tutorial.center .tutBubble{position:relative;width:100%;padding:20px 18px 16px}
.tutCount{color:#b8a0ee;font-size:10px;font-weight:600;letter-spacing:.16em}
.tutTitle{display:block;margin:5px 0 6px;font-size:17px;font-weight:600;letter-spacing:-.02em}
.tutText{margin:0;color:#c3c8e6;font-size:13px;line-height:1.55}
.tutActs{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px}
.tutSkip{background:none;border:0;padding:6px 0;color:#9aa1c8;font:500 12px 'Work Sans',sans-serif;cursor:pointer}
.tutNext{margin-left:auto;min-height:38px;padding:0 16px;border:0;border-radius:10px;background:#7b5ce0;color:#fff;
  font:600 13px 'Work Sans',sans-serif;cursor:pointer}
.tutNext:active{transform:translateY(1px)}
.tutSkip[hidden],.tutNext[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.tutSpot{transition:none}.tutorial.pulse .tutSpot{animation:none}}
/* Settings › Replay tutorial is a real control among the pictured rows. */
.settingsAction{width:100%;border:0;font-family:inherit;text-align:left;cursor:pointer}
/* The "tutorial or not?" cards: the intro's welcome and every unlock offer. */
.tutIcons{display:flex;justify-content:center;gap:10px}
.tutIcons:empty{display:none}
.tutIcons img{width:42px;height:42px;object-fit:contain;filter:drop-shadow(0 3px 6px #0008)}
.tutorial.center .tutIcons{margin:2px 0 10px}
.tutorial.center .tutCount,.tutorial.center .tutTitle,.tutorial.center .tutText,.tutAsk{text-align:center}
.tutAsk{margin:12px 0 0;color:#e7e9ff;font-size:13px;font-weight:600}
.tutAsk[hidden]{display:none}
.tutorial.choice .tutBubble{max-width:360px}
.tutorial.choice .tutActs{flex-direction:column-reverse;align-items:stretch;gap:6px;margin-top:14px}
.tutorial.choice .tutNext{margin-left:0;min-height:44px;font-size:14px}
.tutorial.choice .tutSkip{min-height:40px;border:1px solid #4a5188;border-radius:10px;color:#c3c8e6;font-size:13px}
/* Settings › Tutorials */
.settingsRow.locked{cursor:default;opacity:.55}
.tutToggle{min-width:34px;padding:3px 8px;border-radius:999px;background:#3a4070;color:#aab0d8;font-size:11px;text-align:center}
.tutToggle.on{background:#7b5ce0;color:#fff}
/* Welcome card: "have you played an idle game before?" answers */
.tutChoices{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.tutChoices:empty{display:none}
.tutChoice{display:flex;flex-direction:column;align-items:center;gap:3px;min-height:56px;padding:9px 14px;border:1px solid #8f7fc9;
  border-radius:12px;background:#2c3368;color:#fff;font-family:'Work Sans',sans-serif;cursor:pointer}
.tutChoice b{font-size:14px;font-weight:600}
.tutChoice small{color:#d4d0f5;font-size:11.5px;font-weight:500}
.tutChoice:active{transform:translateY(1px)}
.tutorial.pick .tutActs{margin-top:6px}
.tutorial.pick .tutSkip{border:0;min-height:34px;color:#9aa1c8;font-size:12px}


.tutCompare{display:flex;gap:10px;margin:14px 0}.tutCompare>div{flex:1;display:grid;justify-items:center;gap:5px;padding:12px 8px;background:#171d3c;border:1px solid #6c6697;border-radius:12px}
.tutCompare small{color:#bfc7e8;font-size:11px}.tutCompare b{font-size:15px;color:#ffe2a1}
.tutDecisions{display:grid;gap:8px}.tutDecisions button{min-height:44px;padding:10px;border:1px solid #a58adb;border-radius:10px;background:#35305b;color:#fff;font:600 13px 'Work Sans',sans-serif;cursor:pointer}
.tutDecisions button:focus-visible,.tutNext:focus-visible,.tutChoice:focus-visible{outline:3px solid #ffdc85;outline-offset:3px}
.tutDecisions button:disabled{opacity:.65;cursor:default}.tutFeedback{font-size:12px;line-height:1.5;color:#ffdfa2;margin:12px 0 0}.tutFeedback.success{color:#9be6bb}.tutFeedback[hidden]{display:none}
.tutBubble{max-height:calc(100dvh - 24px);overflow:auto}


/* Practice uses the same visual language and controls as the real game. */
.tutGameScene{margin-top:12px;padding:12px;border:1px solid #60699c;border-radius:14px;background:#141a35;text-align:left}
.tutSimulationLabel{font-size:10px;letter-spacing:.03em;color:#b8c3e8;margin-bottom:10px}
.tutGameBar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.tutResource{display:inline-flex;gap:5px;align-items:center;font-size:12px}
.tutGameRow{display:flex;gap:10px;align-items:center;padding:10px 0}.tutGameRow>img,.tutGameRow>.itemframe{flex:none}
.tutGameRow>.itemframe{width:56px;height:56px;display:grid;place-items:center;border:1px solid #a38c60;border-radius:10px;background:#302d40}
.tutGameRow b,.tutGameRow small{display:block}.tutGameRow b{font-size:13px}.tutGameRow small{font-size:11px;line-height:1.45;color:#b8c3e8;margin-top:3px}
.tutDown{font-style:normal;color:#ff999c;font-weight:700}.tutGameScene .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tutGameScene .acts .btn{flex:1;min-width:90px;min-height:44px;padding:8px;font-size:12px;white-space:normal}
.tutGameScene .reviewFound{border-top:1px solid #414d79;margin-top:6px;padding-top:6px}
.tutSceneResult{display:grid;justify-items:center;gap:8px;padding:14px 0;text-align:center;color:#a4e6bc;font-size:13px}.tutSceneResult small{color:#c4cdeb;font-size:11px}
.tutIdleChest{display:grid;justify-items:center;gap:9px;border:1px solid #87774e;border-radius:12px;background:#2c2940;padding:12px;margin:8px 0}
.tutIdleChest .tutGameBar{margin:0}.tutIdleChest .btn{width:100%;min-height:44px}.tutWindowTitle{font-size:12px;color:#d4bcff;font-weight:700;border-bottom:1px solid #414d79;padding-bottom:8px}
.tutGameScene button:focus-visible{outline:3px solid #ffdc85;outline-offset:2px}
