/* ARCVEL V39 — guided tutorial (hero guide + speech bubble). Visual only; logic lives in game.js (GUIDED TUTORIAL). */
.guideOverlay{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:14px;background:rgba(6,9,28,.82);backdrop-filter:blur(3px)}
.guideOverlay.hidden{display:none!important}
.guideCard{display:flex;align-items:flex-end;gap:10px;width:min(860px,100%);max-height:96vh}
.guideHero{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;width:236px}
.guideSprite{display:block;width:236px;height:190px;image-rendering:pixelated;animation:guideBob 2.4s ease-in-out infinite;filter:drop-shadow(0 8px 0 rgba(0,0,0,.35))}
@keyframes guideBob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.guideName{font-size:12px;letter-spacing:2px;color:#ffc94d;background:#0a0e24;border:2px solid #ffc94d;border-radius:6px;padding:3px 10px;white-space:nowrap}
.guideBubble{position:relative;flex:1;min-width:0;background:linear-gradient(180deg,#252f6a,#1b2250);border:3px solid #0a0e24;border-radius:14px;box-shadow:0 7px 0 #0a0e24,0 0 0 3px #4aa8ff55,0 24px 70px #000b;padding:18px 20px 16px;max-height:88vh;overflow:auto;animation:guidePop .28s ease-out}
.guideBubble::before{content:"";position:absolute;left:-15px;bottom:46px;width:0;height:0;border-top:11px solid transparent;border-bottom:11px solid transparent;border-right:15px solid #0a0e24}
.guideBubble::after{content:"";position:absolute;left:-9px;bottom:49px;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:11px solid #252f6a}
@keyframes guidePop{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.guideStepTag{display:inline-block;font-size:11px;letter-spacing:3px;color:#0a0e24;background:#ffc94d;border-radius:6px;padding:2px 9px;font-weight:700}
.guideBubble h3{margin:10px 0 8px;font-size:clamp(20px,3.4vw,28px);color:#4aa8ff;letter-spacing:1px}
.guideBody{font-size:clamp(14px,2.2vw,16px);line-height:1.65;color:#dfe6ff}
.guideBody p{margin:0 0 10px;color:#dfe6ff!important;font-size:inherit!important}
.guideBody b{color:#ffc94d}
.guideBody .gHint{color:#9fe4c2!important;font-size:.92em!important}
.gList{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:7px}
.gList li{display:block;background:#141a45;border:2px solid #0a0e24;border-radius:8px;padding:6px 10px}
.gList.keys li{display:flex;align-items:center;gap:10px}
.gList .gKeys{flex:none;min-width:108px;display:flex;gap:4px;align-items:center}
.guideBody kbd{background:#0a0e24;border:2px solid #4aa8ff;border-radius:5px;padding:1px 7px;color:#fff;font-size:.9em;font-family:inherit}
.gRow{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px;align-items:center}
.gChip{background:#141a45;border:2px solid #0a0e24;border-radius:8px;padding:5px 10px;font-size:.9em;color:#fff;white-space:nowrap}
.gSoul{background:#0a0e24;border:2px solid #b69cff;color:#e6dcff;border-radius:8px;padding:5px 12px;font-size:1.05em;letter-spacing:1px}
.gSoul b{color:#ffc94d}
.gBtn{background:#ffc94d;color:#0a0e24;border:3px solid #0a0e24;border-radius:8px;box-shadow:0 4px 0 #0a0e24;padding:5px 12px;font-weight:700;font-size:.95em}
.gToast{display:inline-grid;gap:1px;text-align:center;background:#0a0e24;border:2px solid #5be3b0;border-radius:10px;padding:8px 18px;margin:2px 0 12px;box-shadow:0 0 18px #5be3b055}
.gToast small{color:#9fe4c2;letter-spacing:3px;font-size:.62em}.gToast strong{color:#fff;font-size:1em}.gToast span{color:#ffc94d;font-size:1.15em}.gToast em{font-style:normal;color:#b9c4ee;font-size:.7em}
.gTabs{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 12px}
.gTab{background:#252f6a;border:2px solid #0a0e24;border-radius:7px;padding:4px 10px;font-size:.88em;color:#fff}
.gTab.on{background:#4aa8ff;color:#0a0e24;font-weight:700}
.gRar{font-size:.8em;border-radius:6px;padding:3px 9px;border:2px solid #0a0e24;font-weight:700}
.gRar.rare{background:#38bdf8;color:#0a0e24}.gRar.epic{background:#a78bfa;color:#0a0e24}.gRar.legend{background:#ffc94d;color:#0a0e24}.gRar.mythic{background:#f0abfc;color:#0a0e24}
.guideDots{display:flex;gap:6px;justify-content:center;margin:12px 0 4px}
.guideDots i{width:9px;height:9px;border-radius:2px;background:#3a4590;border:1px solid #0a0e24}
.guideDots i.on{background:#ffc94d;box-shadow:0 0 8px #ffc94d}
.guideDots i.done{background:#4aa8ff}
.guideActions{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:10px;flex-wrap:wrap}
.guideActions button{font-family:inherit;font-size:14px;padding:9px 14px;border-radius:8px;border:3px solid #0a0e24;background:#252f6a;color:#fff;cursor:pointer;box-shadow:0 4px 0 #0a0e24;font-weight:700;letter-spacing:1px}
.guideActions button:hover:not(:disabled){background:#3340a0}
.guideActions button:disabled{opacity:.4;cursor:default}
.guideActions #guideSkip{background:transparent;border-color:#52618f;box-shadow:none;color:#b9c4ee;font-weight:400}
.guideActions #guideSkip:hover{background:#ffffff14;color:#fff}
.guideActions .guideRight{display:flex;gap:8px;margin-left:auto}
.guideActions #guideNext{background:#ffc94d;color:#0a0e24;font-size:16px}
.guideActions #guideNext:hover{background:#ffd978}
#guideReplayBtn{margin-top:10px}
@media(max-width:640px){
 .guideCard{flex-direction:column;align-items:center;gap:4px}
 .guideHero{width:auto;flex-direction:row;gap:10px}
 .guideSprite{width:130px;height:105px}
 .guideBubble::before,.guideBubble::after{display:none}
 .guideBubble{padding:14px 14px 12px;width:100%}
 .gList .gKeys{min-width:84px}
}
@media(prefers-reduced-motion:reduce){.guideSprite,.guideBubble{animation:none}}

/* V49: the Knight on the guide is the real in-game hero drawn on a canvas -> no frame, no page-canvas styling */
html body .guideCard canvas.guideSprite{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;aspect-ratio:auto!important;max-width:none;animation:guideBob 2.4s ease-in-out infinite!important}
/* V49: slightly smaller guide text on desktop so the longer steps fit (touch landscape keeps the bigger size) */
html body .guideOverlay .guideBody,html body .guideOverlay .guideBody *{font-size:19px!important;line-height:1.3!important}
html body .guideOverlay .guideBody .gList li{padding:5px 10px}
html body .guideOverlay .guideBody .gKeys kbd{font-size:16px!important}
@media (pointer:coarse){html body .guideOverlay .guideBody,html body .guideOverlay .guideBody *{font-size:21px!important}}
