/* Tutorial is a lightweight client-only presentation over the unchanged world. */
.bv-tutorial-overlay{position:fixed;inset:0;z-index:310;display:flex;align-items:flex-end;justify-content:center;padding:20px 18px 7vh;background:linear-gradient(180deg,transparent 20%,rgba(3,6,5,.45) 75%);box-sizing:border-box}
.bv-tutorial-overlay[hidden],.bv-tutorial-tracker[hidden]{display:none!important}
.bv-tutorial-card{width:min(740px,95vw);padding:20px 24px 22px;box-sizing:border-box;border:1px solid #6e5a38;border-radius:3px;background:linear-gradient(155deg,#22231e,#111411 80%);color:#e6d9bb;box-shadow:0 9px 50px #000d;font-family:inherit}
.bv-tutorial-overlay.is-thought{align-items:center;background:#05070688}
.bv-tutorial-overlay.is-thought .bv-tutorial-card{width:min(610px,94vw);text-align:center}
.bv-tutorial-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.bv-tutorial-kicker{letter-spacing:.16em;font-size:10px;color:#b49b68}
.bv-tutorial-speaker{display:block;font-size:18px;color:#e5c788;margin:4px 0 12px}
.bv-tutorial-text{margin:0;white-space:pre-line;min-height:70px;line-height:1.65;font-size:16px;word-break:keep-all}
.bv-tutorial-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:18px 0 7px}
.bv-tutorial-actions button{padding:10px 15px;min-height:41px;color:#e7d9bc;background:#31352d;border:1px solid #8c7958;border-radius:3px;cursor:pointer;font:inherit}
.bv-tutorial-actions button:hover{background:#544b32}
.bv-tutorial-hint{font-size:11px;opacity:.65}
.bv-tutorial-tracker{position:fixed;z-index:62;top:315px;right:22px;max-width:244px;min-width:200px;padding:11px 14px;border:1px solid #826a41;border-radius:3px;background:#12170fdd;box-shadow:0 3px 14px #0009;color:#e9dfc4;pointer-events:none;box-sizing:border-box}
.bv-tutorial-tracker small{display:block;color:#c0a87a;font-size:10px;letter-spacing:.05em;margin-bottom:5px}
.bv-tutorial-tracker strong{display:block;font-size:13px;margin-bottom:5px}
.bv-tutorial-tracker span{display:block;font-size:12px;line-height:1.45;color:#e1cf9a}
@media(max-width:650px){.bv-tutorial-overlay{padding:12px 10px 10vh}.bv-tutorial-card{padding:14px 15px}.bv-tutorial-text{font-size:14px;min-height:62px}.bv-tutorial-tracker{top:auto;bottom:120px;right:12px;min-width:0;max-width:190px;padding:9px 10px}.bv-tutorial-actions button{font-size:13px}}

/* v0.2.64.1: tutorial dialogues share the existing NPC/shop conversation frame.
   They stay bottom-docked on desktop and mobile, never OS-style centered popups. */
.bv-tutorial-overlay{z-index:3600;align-items:flex-end;justify-content:center;
  padding:0 0 env(safe-area-inset-bottom) 0;
  background:linear-gradient(180deg,transparent 26%,rgba(5,7,5,.16) 55%,rgba(0,0,0,.52) 100%)}
.bv-tutorial-overlay.is-thought{align-items:flex-end;background:linear-gradient(180deg,transparent 23%,rgba(5,7,5,.17) 55%,rgba(0,0,0,.52) 100%)}
.bv-tutorial-card,.bv-tutorial-overlay.is-thought .bv-tutorial-card{width:auto;max-width:1340px;
  padding:0;min-height:clamp(208px,29vh,244px);text-align:left;
  background:linear-gradient(180deg,rgba(15,17,14,.9),rgba(10,11,9,.97));
  border:1px solid #8f774c;border-radius:3px 3px 0 0}
.bv-tutorial-portrait{width:var(--npc-portrait-width);display:flex;align-items:flex-end;justify-content:center}
.bv-tutorial-portrait-image{width:100%;height:100%;object-fit:contain;object-position:left bottom;
  image-rendering:auto;filter:drop-shadow(9px 5px 14px rgba(0,0,0,.68)) saturate(.91) brightness(.96);
  mask-image:none;-webkit-mask-image:none}
.bv-tutorial-thought-mark{display:block;align-self:flex-end;margin-bottom:54px;
  color:#cab785;font:700 21px/1.3 var(--bv-font-story,serif);letter-spacing:.13em;
  text-shadow:0 1px 9px #090c07}
.bv-tutorial-thought-mark[hidden],.bv-tutorial-portrait-image[hidden]{display:none!important}
.bv-tutorial-content{min-height:clamp(208px,29vh,244px)}
.bv-tutorial-speaker{margin:0;color:#f6e6c6;font:700 clamp(18px,2vw,23px)/1.45 var(--bv-font-story,serif)}
.bv-tutorial-role{color:#baaa8b;font-size:11px}
.bv-tutorial-text{min-height:58px;margin:12px 0 10px;color:#ebe0c8;
  font:400 clamp(13px,1.3vw,15px)/1.7 var(--bv-font-story,serif);white-space:pre-line}
.bv-tutorial-actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin:auto 0 5px}
.bv-tutorial-actions button{padding:7px 14px;min-height:36px;
  background:linear-gradient(#3d3525,#29281c);border:1px solid #967a4a;border-radius:3px;
  color:#f1dfb4;font:inherit}
.bv-tutorial-actions button:hover{background:#5a4830;border-color:#d4b67b}
.bv-tutorial-hint{color:#b8aa8b;font-size:10px;opacity:.8}
@media(max-width:650px){
 .bv-tutorial-overlay,.bv-tutorial-overlay.is-thought{padding:0 0 env(safe-area-inset-bottom) 0}
 .bv-tutorial-card,.bv-tutorial-overlay.is-thought .bv-tutorial-card{min-height:218px}
 .bv-tutorial-portrait-image{width:100%;height:100%;object-fit:cover;object-position:51% bottom}
 .bv-tutorial-thought-mark{font-size:13px;margin-bottom:30px;letter-spacing:.02em}
 .bv-tutorial-content{min-height:218px}
 .bv-tutorial-text{min-height:42px;font-size:12px;margin:8px 0 7px;line-height:1.5;max-height:26vh;overflow:auto}
 .bv-tutorial-actions button{padding:5px 8px;font-size:11px;min-height:28px}
}
@media(max-height:470px){
 .bv-tutorial-card,.bv-tutorial-overlay.is-thought .bv-tutorial-card{min-height:150px}
 .bv-tutorial-content{min-height:150px}
 .bv-tutorial-text{min-height:25px;max-height:18vh}
 .bv-tutorial-portrait-image{width:100%;height:100%;object-fit:cover;object-position:50% bottom}
}
/* Spotlight the single requested UI to prevent an accidental step skip. */
.bv-tutorial-focus-bag #bag-btn,.bv-tutorial-focus-auto_hunt #auto-btn,
.bv-tutorial-focus-potion #bv-quickslots-stack{outline:2px solid #d4a761;outline-offset:4px;
  box-shadow:0 0 15px #bd8c426b;z-index:90}

/* v0.2.70.21: retain full-screen tap handling, but keep the WORLD fully
   visible. Dialogue is drawn through the existing overhead chat renderer. */
.bv-soliloquy{position:fixed;inset:0;z-index:5500;background:transparent;display:flex;
  flex-direction:column;align-items:center;justify-content:flex-end;text-align:center;
  padding:20px 16px calc(9vh + env(safe-area-inset-bottom));box-sizing:border-box;
  cursor:pointer;user-select:none;pointer-events:auto}
.bv-soliloquy[hidden]{display:none!important}
.bv-soliloquy-copy{position:absolute;width:1px;height:1px;overflow:hidden;
  clip-path:inset(50%);white-space:nowrap} /* accessible spoken text; visual via bubble */
.bv-soliloquy small{font-size:12px;color:#ebd7ad;background:#0b100d9c;
  border:1px solid #a78a576b;border-radius:3px;padding:6px 12px;
  text-shadow:0 1px 5px #000;animation:bv-coach-float 2s ease-in-out infinite}
/* Tutorial focus is client-only; non-target controls are covered by four scrims. */
.bv-coach{position:fixed;inset:0;z-index:3900;pointer-events:none}
.bv-coach[hidden]{display:none!important}
.bv-coach-scrim{position:fixed;background:rgba(1,3,2,.57);pointer-events:auto}
.bv-coach-outline{position:fixed;pointer-events:none;border:2px solid #efc775;border-radius:6px;
  box-shadow:0 0 18px #ffc36baa,inset 0 0 10px #b9954044;animation:bv-coach-pulse 1.8s ease-in-out infinite}
.bv-coach-arrow{position:fixed;width:40px;height:40px;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 0 5px #e7bd63);animation:bv-coach-float 1.8s ease-in-out infinite}
.bv-coach-caption{position:fixed;left:50%;bottom:calc(11vh + env(safe-area-inset-bottom));transform:translateX(-50%);
  max-width:min(520px,88vw);width:max-content;padding:12px 18px;box-sizing:border-box;
  background:#161710eb;border:1px solid #998158;color:#f3e4bc;text-align:center;
  box-shadow:0 8px 25px #0009;pointer-events:none;font:500 clamp(12px,2vw,16px)/1.5 var(--bv-font-story,serif)}
/* Keep the quickslot lesson readable while the slot near the lower-right is spotlighted. */
.bv-coach-quickslot .bv-coach-caption{bottom:auto;top:calc(10vh + env(safe-area-inset-top));}
.bv-coach-quickslot .bv-coach-outline{box-shadow:0 0 22px #efbb67bb,inset 0 0 8px #ba934844;}
/* Lift the relevant existing window above the dimming scrims without changing its appearance. */
html.bv-tutorial-focus-equip #inventory-panel,
html.bv-tutorial-focus-auto_potion #inventory-panel,
html.bv-tutorial-focus-bind #inventory-panel,
html.bv-tutorial-focus-equip #item-popup,
html.bv-tutorial-focus-auto_potion #item-popup,
html.bv-tutorial-focus-bind #item-popup{z-index:3895}
@keyframes bv-coach-float{0%,100%{translate:0 -4px}50%{translate:0 5px}}
@keyframes bv-coach-pulse{0%,100%{opacity:1}50%{opacity:.65}}
/* The right-side target window is retired; field-name and overhead health remain. */
#target-panel{display:none!important}

/* v0.2.70.27 — tutorial soliloquy uses the game's original finger cursor. */
.bv-soliloquy, .bv-soliloquy small {
 cursor:url('../assets/cursors/point.png') 7 5, pointer !important;
}
html.cursor-pressed .bv-soliloquy, html.cursor-pressed .bv-soliloquy small {
 cursor:url('../assets/cursors/point_pressed.png') 7 5, pointer !important;
}
/* Dialogue responses float in the scene center, not inside the bottom portrait bar. */
.bv-tutorial-choice-panel{z-index:5;}
.bv-tutorial-choice-panel[hidden]{display:none!important}
.bv-tutorial-actions{display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;
 margin:7px 0 0;gap:5px;}
.bv-tutorial-actions button{width:100%;min-height:38px;padding:9px 12px;
 text-align:left;font:500 12px/1.45 var(--bv-font-story,serif);}
@media(max-width:650px){
 .bv-tutorial-actions{gap:5px;margin:6px 0 0}
 .bv-tutorial-actions button{min-height:34px;padding:7px 10px;font-size:11px}
}
