/* v0.2.17 font pairing: Pretendard for legibility, Hahmlet for Korean
   fantasy headings, and Cinzel for Latin titles. System fallbacks stay usable
   without an internet connection. */
:root {
  color-scheme: dark;
  --bv-font-ui: 'Pretendard','Pretendard Medium','Malgun Gothic','Apple SD Gothic Neo','Noto Sans KR',Arial,sans-serif;
  --bv-font-story: 'Hahmlet','MaruBuri SemiBold','Batang','Noto Serif KR',serif;
  --bv-font-title: 'Cinzel','Cinzel Bold',Georgia,serif;
  font-family: var(--bv-font-ui);
}
* {box-sizing:border-box;}
html, body {margin:0; width:100%; height:100%; background:#0c0d0b; overflow:hidden; overscroll-behavior:none;}
button {font:inherit; cursor:url("../assets/cursors/point.png") 7 5, pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent;}
#game-shell {position:fixed; inset:0; overflow:hidden; background:#111411; user-select:none; -webkit-user-select:none; touch-action:none;}
/* Only suppress native page interactions inside the actual game surface. */
#game-shell { -webkit-touch-callout: none; }
#game-shell img { -webkit-user-drag: none; }
#game {position:absolute; inset:0; width:100%;height:100%; display:block; touch-action:none; cursor:url("../assets/cursors/normal.png") 1 1, auto;}
/* Default field/title cursor uses the existing arrow; portal exits use footsteps. */
html, body, #game-shell, .joystick {cursor:url("../assets/cursors/normal.png") 1 1, auto;}
html.cursor-pressed, html.cursor-pressed body,
html.cursor-pressed #game-shell, html.cursor-pressed #game,
html.cursor-pressed button, html.cursor-pressed input, html.cursor-pressed .joystick,
html.cursor-pressed .stick {cursor:url("../assets/cursors/pressed.png") 1 1, auto;}
.frame-vignette {position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 87% 80% at 50% 48%,transparent 45%,rgba(3,5,4,.50) 100%);}
.top-ui {position:absolute;left:0;top:0;right:0;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:calc(23px + env(safe-area-inset-top)) calc(26px + env(safe-area-inset-right)) 0 calc(28px + env(safe-area-inset-left));pointer-events:none;}
.brand-block {filter:drop-shadow(0 2px 6px #050504);min-width:0;}
.eyebrow {display:block;font-size:9px;font-weight:750;letter-spacing:3.4px;color:#c4ab7c;opacity:.82;}
h1 {margin:5px 0 4px;font-size:clamp(24px,3.1vw,36px);line-height:1.03;letter-spacing:4px;font-weight:850;color:#f0e9d8;text-shadow:0 2px 0 #111;}
.brand-dot {color:#b99151;}
.place {display:block;margin-top:6px;font-size:11px;font-weight:600;letter-spacing:.3px;color:#c6bb9b;}
.place-icon {color:#c6a778;margin-right:5px;} .place i {color:#8d7b5f;font-style:normal;}
.top-actions {pointer-events:auto;display:flex;align-items:center;gap:7px;}
.status-pill {display:flex;align-items:center;gap:9px;padding:0 13px;height:32px;border:1px solid #7b715b6b;border-radius:6px;background:rgba(13,17,14,.82);color:#a7b49e;font-size:10px;letter-spacing:1.1px;font-weight:800;white-space:nowrap;}
.green-light {width:6px;height:6px;border-radius:50%;background:#7fc695;box-shadow:0 0 9px #7fc69599;}
.square-btn {border:1px solid #88745388;background:rgba(15,17,14,.82);color:#e9e0c8;border-radius:5px;width:34px;height:32px;font-weight:700;font-size:19px;}
.square-btn:hover {background:#53452d;}
/* Responsive zoom slider in place of the +/- buttons. */
.zoom-control {display:flex;align-items:center;gap:9px;height:32px;padding:0 10px;border:1px solid #88745388;border-radius:5px;background:rgba(15,17,14,.82);color:#cfc2a4;white-space:nowrap;}
.zoom-label {font-size:10px;font-weight:650;letter-spacing:.2px;}
#zoom-slider {appearance:none;-webkit-appearance:none;display:block;cursor:inherit;flex:0 0 126px;width:126px;height:22px;background:transparent;touch-action:pan-x;accent-color:#c4a16a;}
#zoom-slider::-webkit-slider-runnable-track {height:4px;border:1px solid #827152;background:#373629;border-radius:4px;}
#zoom-slider::-webkit-slider-thumb {-webkit-appearance:none;appearance:none;width:15px;height:15px;border-radius:50%;background:#d8c092;border:2px solid #504027;box-shadow:0 1px 3px #0009;margin-top:-6px;}
#zoom-slider::-moz-range-track {height:4px;border:1px solid #827152;background:#373629;border-radius:4px;}
#zoom-slider::-moz-range-thumb {width:12px;height:12px;border-radius:50%;background:#d8c092;border:2px solid #504027;box-shadow:0 1px 3px #0009;}
#zoom-value {min-width:38px;text-align:right;font-variant-numeric:tabular-nums;color:#f0dfbd;font-size:10px;font-weight:700;}
.player-hud {position:absolute;top:calc(125px + env(safe-area-inset-top));left:calc(29px + env(safe-area-inset-left));display:flex;align-items:center;gap:10px;padding:10px 12px 10px 9px;min-width:225px;border:1px solid rgba(156,132,90,.39);border-radius:7px;background:linear-gradient(120deg,rgba(12,15,13,.91),rgba(22,24,19,.74));box-shadow:0 7px 24px #06080755;pointer-events:none;}
.avatar {display:flex;justify-content:center;align-items:center;width:44px;height:44px;background:#2a2b20;border:1px solid #8b7959;border-radius:4px;color:#d8c49d;font-size:22px;}
.player-info {min-width:143px;flex:1;}
.name-line {display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px;font-size:12px;color:#e7ddc5;}
.name-line small {font-size:10px;color:#b9a17b;}
.meter {width:100%;height:11px;margin-bottom:5px;position:relative;overflow:hidden;background:#242d26;border:1px solid #4b4d3e;border-radius:2px;}
.meter:last-child {margin-bottom:0;}
.hp {display:block;width:100%;height:100%;background:linear-gradient(90deg,#702e29,#bc5a43);}
.mp {display:block;width:100%;height:100%;background:linear-gradient(90deg,#2b526c,#4b86a9);}
.meter-text {position:absolute;inset:0;text-align:center;line-height:9px;color:#f9f8f2;font-size:8px;text-shadow:0 1px #111;}
.mini-map {position:absolute;right:calc(26px + env(safe-area-inset-right));top:calc(77px + env(safe-area-inset-top));padding:9px;width:210px;background:rgba(12,15,13,.85);border:1px solid #8b795966;border-radius:6px;box-shadow:0 10px 28px #0006;pointer-events:none;}
.minimap-caption {display:flex;justify-content:space-between;align-items:center;color:#c8b58b;font-size:9px;letter-spacing:1px;margin-bottom:6px;}
.minimap-caption span:last-child {color:#9b9a88;letter-spacing:0;}
#minimap {display:block;width:100%;height:auto;border:1px solid #5a513b;}
.bottom-ui {position:absolute;bottom:calc(16px + env(safe-area-inset-bottom));left:calc(28px + env(safe-area-inset-left));right:calc(28px + env(safe-area-inset-right));color:#ccc0a5;text-shadow:0 2px 4px #000;display:flex;justify-content:space-between;align-items:center;gap:15px;pointer-events:none;font-size:10px;letter-spacing:.5px;}
.keyboard-help {background:#0e120eb8;padding:9px 11px;border:1px solid #84745342;border-radius:4px;}
.keyboard-help b {font-size:9px;color:#e8ddc5;letter-spacing:1px;}
.dotsep {color:#8c7f5f;margin:0 7px;}
.mode-label {color:#c4a57466;white-space:nowrap;letter-spacing:1.1px;font-size:9px;}
.version-sep {color:#b8ac8e;margin:0 4px;}
.toast {position:absolute;top:73%;left:50%;transform:translate(-50%,10px);opacity:0;transition:opacity .22s,transform .22s;pointer-events:none;padding:10px 17px;background:#111913ed;color:#e9d9b2;border:1px solid #806d4a;border-radius:5px;font-size:12px;text-align:center;max-width:min(94%,430px);z-index:6;}
.toast.show {opacity:1;transform:translate(-50%,0);}
.touch-controls {position:absolute;bottom:calc(52px + env(safe-area-inset-bottom));left:calc(22px + env(safe-area-inset-left));right:calc(22px + env(safe-area-inset-right));display:none;justify-content:space-between;align-items:flex-end;pointer-events:none;}
.joystick {position:relative;width:128px;height:128px;border-radius:50%;border:2px solid #d2b98d55;background:radial-gradient(circle,#493e2f55,#1e211e9c);box-shadow:inset 0 0 23px #03070560, 0 4px 14px #0005;pointer-events:auto;touch-action:none;display:grid;place-items:center;}
.joystick-cross {font-size:64px;line-height:1;color:#b5a47a24;}
.stick {position:absolute;left:50%;top:50%;margin-left:-29px;margin-top:-29px;width:58px;height:58px;border-radius:50%;background:linear-gradient(135deg,#827151aa,#342e26f0);border:2px solid #d6bd92bb;box-shadow:0 4px 15px #0007;will-change:transform;}
.touch-actions {display:flex;align-items:flex-end;gap:16px;pointer-events:auto;}
.action {background:linear-gradient(135deg,#5c4b30de,#1a1c18e8);border:1px solid #c7a77699;border-radius:50%;color:#f1dfba;box-shadow:inset 0 1px #eee2a922,0 6px 15px #0008;font-size:22px;font-weight:700;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:2px;}
.action span {font-size:9px;letter-spacing:1px;color:#eadcc3;}
.action.attack {width:81px;height:81px;font-size:27px;}
.action.run {width:65px;height:65px;font-size:11px;}
.action.run.active {background:linear-gradient(135deg,#ad7a37,#3c291d);border-color:#f1ca74;}
.loading {position:absolute;inset:0;background:#0d0f0e;display:flex;align-items:center;justify-content:center;z-index:20;overflow:hidden;transition:opacity .55s;}
.loading.done {opacity:0;pointer-events:none;}
.load-backdrop,.load-vignette {position:absolute;inset:0;pointer-events:none;}
.load-backdrop {background-position:center center;background-size:cover;background-repeat:no-repeat;filter:brightness(1.5) saturate(1.08) contrast(1.06);transform:scale(1.02);}
.load-vignette {background:radial-gradient(circle at 50% 38%,rgba(0,0,0,.01),rgba(0,0,0,.13) 53%,rgba(0,0,0,.43) 100%),linear-gradient(180deg,rgba(8,8,8,.10),rgba(6,6,7,.28));}
.load-frame {position:relative;z-index:1;width:min(360px,calc(100% - 46px));text-align:center;padding:22px 24px 20px;border:1px solid #8d72504a;border-radius:8px;background:linear-gradient(180deg,rgba(14,14,13,.62),rgba(12,11,10,.74));box-shadow:0 18px 50px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,241,214,.08);backdrop-filter:blur(2px);}
.load-mark {font-size:34px;color:#c39c63;}
.load-title {margin-top:4px;font-weight:900;letter-spacing:6px;font-size:29px;color:#f0e5ca;}
.load-kicker {margin-top:9px;font:700 10px/1.1 'Cinzel',serif;letter-spacing:3px;color:#c4aa7a;}
.load-sub {font-size:12px;color:#e4d7bd;margin:16px 0 10px;}
.load-flavor {min-height:32px;font-size:11px;line-height:1.55;color:#b8aa8d;margin:0 0 14px;}
.load-track {height:4px;background:rgba(85,74,54,.84);border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.35);}
.load-bar {height:100%;width:0;background:linear-gradient(90deg,#8e6338,#d0af77 55%,#f1d2a1);transition:width .18s;border-radius:999px;}
@media (pointer:coarse), (max-width:780px) { .touch-controls {display:flex;} .keyboard-help {display:none;} .bottom-ui {bottom:calc(9px + env(safe-area-inset-bottom));} .mode-label {font-size:8px;}}
@media (max-width:650px) { .top-ui {padding:calc(14px + env(safe-area-inset-top)) 15px 0 15px;} .brand-block .eyebrow {font-size:8px;letter-spacing:1.7px;} h1 {font-size:22px;letter-spacing:2px;margin:3px 0;} .place{font-size:10px;margin-top:4px;} .status-pill {display:none;} .top-actions{gap:3px;} .zoom-control{height:28px;gap:5px;padding:0 6px;} .zoom-label{font-size:9px;} #zoom-slider{width:72px;flex-basis:72px;} #zoom-value{min-width:32px;font-size:9px;} .square-btn{width:28px;height:28px;font-size:16px;} .player-hud {top:calc(86px + env(safe-area-inset-top));left:15px;min-width:183px;padding:7px;gap:7px;} .avatar {width:32px;height:32px;font-size:15px;} .player-info {min-width:127px;} .mini-map {width:134px;top:calc(84px + env(safe-area-inset-top));right:12px;padding:6px;} .minimap-caption {font-size:7px;margin-bottom:4px;} .touch-controls {left:14px;right:14px;bottom:calc(45px + env(safe-area-inset-bottom));} .joystick {width:106px;height:106px;} .stick{width:50px;height:50px;margin-left:-25px;margin-top:-25px;} .action.attack{width:72px;height:72px;} .action.run{width:59px;height:59px;} .touch-actions {gap:8px;} .bottom-ui {right:14px;left:14px;} }
@media (max-height:420px) { .player-hud {top:calc(75px + env(safe-area-inset-top));} .mini-map{top:calc(64px + env(safe-area-inset-top));width:140px;} .touch-controls{bottom:calc(23px + env(safe-area-inset-bottom));} .joystick{width:92px;height:92px;} .action.attack{width:69px;height:69px;} .action.run{width:53px;height:53px;} }

@media (max-width:390px){.zoom-label{display:none;} #zoom-slider{flex-basis:68px;width:68px;} .zoom-control{gap:4px;} #zoom-value{min-width:30px;}}

/* v0.2.0 — target, exp and auto hunt. Every action is a real button, no canvas overlays intercept clicks. */
.player-hud {flex-wrap:wrap;}
.stat-underhud{width:100%;font-size:9px;letter-spacing:.4px;color:#bfae86;margin-left:54px;margin-top:-2px;white-space:nowrap;}
.target-panel{position:absolute;right:calc(26px + env(safe-area-inset-right));top:calc(258px + env(safe-area-inset-top));width:210px;box-sizing:border-box;padding:9px 10px;border:1px solid #9a654477;border-radius:6px;background:#131611e6;color:#e6dbc1;pointer-events:none;box-shadow:0 7px 20px #0008;}
.target-panel[hidden]{display:none;}
.target-head{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:11px;margin-bottom:7px;}
.target-head small{color:#be9977;font-size:9px;white-space:nowrap;}
.target-hp-wrap{position:relative;height:13px;overflow:hidden;background:#271f1c;border:1px solid #795544;border-radius:2px;}
.target-hp-fill{height:100%;width:100%;background:linear-gradient(90deg,#783425,#c85a3e);transition:width .1s linear;}
#target-hp-text{position:absolute;inset:0;color:#faeee1;font-size:9px;text-align:center;line-height:12px;text-shadow:0 1px #100d0b;}
.target-hint{font-size:9px;color:#ae9f84;margin-top:6px;}
.auto-hunt-wrap{position:relative;display:flex;align-items:center;gap:4px;flex-direction:column;pointer-events:auto;}
.auto-hunt{background:none;border:none;padding:0;position:relative;width:64px;height:64px;display:grid;place-items:center;touch-action:manipulation;cursor:inherit;filter:drop-shadow(0 3px 5px #050505b0);}
.auto-hunt img:first-child{display:block;width:60px;height:60px;object-fit:contain;}
.auto-hunt .auto-pulse{position:absolute;top:50%;left:50%;width:76px;height:76px;object-fit:contain;transform:translate(-50%,-50%) scale(.55);opacity:0;pointer-events:none;}
.auto-hunt.active .auto-pulse{animation:bbSwordPulse 1.3s ease-out infinite;}
@keyframes bbSwordPulse{0%{transform:translate(-50%,-50%) scale(.60);opacity:.52;}65%{opacity:.2;}100%{transform:translate(-50%,-50%) scale(1.45);opacity:0;}}
#auto-label{color:#bca780;font-size:9px;letter-spacing:1px;text-shadow:0 2px 4px #000;white-space:nowrap;}
.combat-log{position:absolute;left:calc(28px + env(safe-area-inset-left));bottom:calc(68px + env(safe-area-inset-bottom));color:#efc88c;font-size:11px;line-height:1.5;text-shadow:0 1px 4px #000;pointer-events:none;max-width:320px;}
.combat-log:empty{display:none;}
@media (pointer:coarse),(max-width:780px){.combat-log{bottom:calc(202px + env(safe-area-inset-bottom));}}
@media (max-width:650px){.target-panel{top:calc(219px + env(safe-area-inset-top));right:12px;width:142px;padding:6px;}.target-hint{display:none;}.target-head{font-size:9px;}.auto-hunt{width:54px;height:54px;}.auto-hunt img:first-child{width:52px;height:52px;}.auto-hunt .auto-pulse{width:65px;height:65px;}.stat-underhud{font-size:8px;margin-left:41px;}.player-hud{max-width:190px;}}
@media (max-height:420px){.target-panel{top:calc(197px + env(safe-area-inset-top));}}
@media (min-width:651px){.target-panel{top:calc(296px + env(safe-area-inset-top));}}


/* v0.2.5 HUD refresh: remove top-left title and use uploaded gauge assets. */
.top-ui-minimal{justify-content:flex-end;}
.player-hud{position:absolute;top:calc(78px + env(safe-area-inset-top));left:calc(22px + env(safe-area-inset-left));display:block;width:246px;min-width:0;padding:0;border:none;background:none;box-shadow:none;pointer-events:none;}
.hud-frame{position:absolute;left:0;top:0;display:block;filter:drop-shadow(0 4px 10px #06080788);}
.player-info.themed{position:relative;width:217px;height:72px;}
.player-info.themed .name-line{position:absolute;left:54px;top:-14px;right:0;display:flex;justify-content:space-between;align-items:baseline;margin:0;font-size:12px;color:#e7ddc5;text-shadow:0 1px 2px #090907;}
.player-info.themed .name-line small{font-size:10px;color:#b9a17b;}
.gauge-frame{position:absolute;left:57px;overflow:hidden;height:13px;}
.gauge-hp{top:8px;width:146px;}
.gauge-mp{top:34px;width:143px;}
.gauge-fill{position:relative;height:13px;overflow:hidden;}
.gauge-fill .fill-base{display:block;position:absolute;left:0;top:0;pointer-events:none;}
.gauge-fill .fill-wave{position:absolute;left:0;top:2px;height:9px;opacity:.44;mix-blend-mode:screen;animation:bvGaugeWave 2.2s linear infinite;pointer-events:none;}
.gauge-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;line-height:1;font-weight:700;color:#f8f4eb;text-shadow:0 1px 2px #090907;}
.xp-wrap{position:absolute;left:0;top:74px;width:222px;height:18px;filter:drop-shadow(0 3px 6px #06080766);}
.xp-bg{display:block;position:absolute;left:0;top:0;}
.xp-fill{position:absolute;left:1px;top:4px;width:0;height:10px;overflow:hidden;}
.xp-base{display:block;position:absolute;left:0;top:0;}
.xp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;color:#efe4c2;text-shadow:0 1px 2px #090907;}
.stat-underhud{position:absolute;left:0;top:96px;width:222px;margin:0;padding-left:4px;color:#c5b99d;font-size:10px;font-weight:600;text-shadow:0 1px 2px #090907;}
@keyframes bvGaugeWave{from{transform:translateX(-96px);}to{transform:translateX(0px);}}
@media (max-width: 900px){.player-hud{transform:scale(.92);transform-origin:top left;}}
@media (max-width: 700px){.player-hud{transform:scale(.84);}}


/* v0.2.6 HUD cleanup */
.brand-block{display:none !important;}
.top-ui{justify-content:flex-end !important;}
.player-hud{position:absolute !important;top:calc(56px + env(safe-area-inset-top)) !important;left:calc(18px + env(safe-area-inset-left)) !important;display:block !important;width:222px !important;min-width:0 !important;padding:0 !important;border:none !important;background:none !important;box-shadow:none !important;pointer-events:none;}
.hud-frame{position:absolute;left:0;top:0;display:block;filter:drop-shadow(0 4px 10px #06080788);}
.hud-level{position:absolute;left:10px;top:16px;width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;color:#efe6d1;text-shadow:0 1px 2px #090907,0 0 8px rgba(0,0,0,.5);letter-spacing:.2px;}
.player-info.themed{position:relative;width:222px;height:118px;}
.gauge-frame{position:absolute;left:56px;overflow:hidden;height:13px;}
.gauge-hp{top:11px;width:146px;}
.gauge-mp{top:31px;width:143px;}
.gauge-fill{position:relative;height:13px;overflow:hidden;}
.gauge-fill .fill-base{display:block;position:absolute;left:0;top:0;pointer-events:none;}
.gauge-fill .fill-wave{position:absolute;left:0;top:2px;height:9px;opacity:.44;mix-blend-mode:screen;animation:bvGaugeWave 2.2s linear infinite;pointer-events:none;}
.gauge-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;line-height:1;font-weight:700;color:#f8f4eb;text-shadow:0 1px 2px #090907;}
.xp-wrap{position:absolute;left:0;top:76px;width:222px;height:18px;filter:drop-shadow(0 3px 6px #06080766);}
.xp-bg{display:block;position:absolute;left:0;top:0;}
.xp-fill{position:absolute;left:1px;top:4px;width:0;height:10px;overflow:hidden;}
.xp-base{display:block;position:absolute;left:0;top:0;}
.xp-text{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:8px;font-weight:700;color:#efe4c2;text-shadow:0 1px 2px #090907;}
.stat-underhud{position:absolute;left:0;top:96px;width:222px;margin:0;padding-left:2px;color:#c5b99d;font-size:10px;font-weight:600;text-shadow:0 1px 2px #090907;white-space:nowrap;}
@media (max-width:650px){.player-hud{top:calc(48px + env(safe-area-inset-top)) !important;left:12px !important;transform:scale(.92);transform-origin:top left;}.hud-level{left:10px;top:16px;width:33px;height:33px;font-size:14px;}.target-panel{top:calc(180px + env(safe-area-inset-top));}}

/* v0.2.11 — top-right menu refresh and channel selector */
.top-actions-game{
  align-items:flex-start;
  gap:10px;
}
.status-pill,.zoom-control{display:none !important;}
.square-btn{display:none;}
.channel-wrap,.menu-wrap{position:relative;}
.channel-btn{
  display:flex;align-items:center;gap:9px;
  min-height:40px;padding:7px 12px;
  border:1px solid rgba(140,119,84,.88);
  border-radius:7px;
  background:linear-gradient(180deg,rgba(22,24,20,.96),rgba(11,13,11,.95));
  color:#e9dec5;
  box-shadow:0 6px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,241,210,.06);
}
.channel-btn:hover,.channel-btn:focus-visible,.icon-menu-btn:hover,.icon-menu-btn:focus-visible,.menu-option:hover,.menu-option:focus-visible,.channel-option:hover,.channel-option:focus-visible{
  outline:none;
  border-color:#b89860;
  filter:brightness(1.05);
}
.channel-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:66px;line-height:1;}
.channel-eyebrow{font-size:9px;font-weight:800;letter-spacing:.9px;color:#c0a57a;}
.channel-current-label{margin-top:4px;font-size:12px;font-weight:800;color:#f2ead7;letter-spacing:.2px;white-space:nowrap;}
.channel-status-text{font-size:10px;font-weight:700;color:#dbc79a;white-space:nowrap;}
.channel-caret{font-size:10px;color:#bda574;opacity:.94;}
.signal-bars{display:flex;align-items:flex-end;gap:2px;height:16px;}
.signal-bars span{
  display:block;width:4px;border-radius:1px;background:rgba(133,124,101,.34);
  border:1px solid rgba(77,67,49,.55);
}
.signal-bars span:nth-child(1){height:5px;}
.signal-bars span:nth-child(2){height:8px;}
.signal-bars span:nth-child(3){height:11px;}
.signal-bars span:nth-child(4){height:14px;}
.signal-bars[data-level="1"] span:nth-child(-n+1),
.signal-bars[data-level="2"] span:nth-child(-n+2),
.signal-bars[data-level="3"] span:nth-child(-n+3),
.signal-bars[data-level="4"] span:nth-child(-n+4){
  background:linear-gradient(180deg,#e8d59f,#b7955e);
  border-color:rgba(145,110,58,.78);
  box-shadow:0 0 6px rgba(227,199,140,.22);
}
.quick-menu{display:flex;align-items:center;gap:6px;}
.icon-menu-btn{
  width:42px;height:42px;padding:0;
  display:grid;place-items:center;
  border:none;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.icon-menu-btn img{display:block;width:34px;height:34px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55));}
.slide-panel{
  position:absolute;right:0;top:calc(100% + 8px);min-width:172px;
  padding:7px;border:1px solid rgba(131,110,77,.88);border-radius:8px;
  background:linear-gradient(180deg,rgba(19,21,18,.98),rgba(10,11,10,.97));
  box-shadow:0 14px 26px rgba(0,0,0,.45);
  opacity:0;transform:translateY(-6px);pointer-events:none;
  transition:opacity .16s ease,transform .16s ease;
  z-index:8;
}
.slide-panel.is-open{opacity:1;transform:translateY(0);pointer-events:auto;}
.slide-panel-title{
  padding:4px 7px 8px;color:#d7c39c;font-size:10px;font-weight:800;letter-spacing:.8px;
}
.channel-panel{min-width:206px;}
.channel-option,.menu-option{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 9px;border:1px solid transparent;border-radius:6px;
  background:rgba(255,255,255,.02);color:#ede3d1;text-align:left;
}
.channel-option + .channel-option,.menu-option + .menu-option{margin-top:4px;}
.channel-option-copy{display:flex;flex-direction:column;align-items:flex-start;line-height:1.1;}
.channel-option-copy strong{font-size:12px;font-weight:800;color:#f2ead7;}
.channel-option-copy small{margin-top:4px;font-size:10px;color:#c9b287;}
.channel-option.is-current{background:rgba(189,149,83,.12);border-color:rgba(189,149,83,.42);}
.menu-panel{min-width:166px;}
.menu-option{justify-content:flex-start;font-size:12px;font-weight:700;color:#efe2c4;}
.menu-option-muted{color:#b9a98a;}
.menu-option:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.4);}
.bottom-ui-compact{justify-content:flex-end;}
.bottom-ui-compact .mode-label{
  background:#0e120eb8;padding:9px 11px;border:1px solid #84745342;border-radius:4px;
}
@media (pointer:coarse), (max-width:780px){
  .bottom-ui-compact{bottom:calc(9px + env(safe-area-inset-bottom));}
}
@media (max-width:650px){
  .top-actions-game{gap:6px;}
  .channel-btn{min-height:34px;padding:6px 9px;gap:7px;}
  .channel-copy{min-width:54px;}
  .channel-eyebrow{font-size:8px;}
  .channel-current-label{font-size:11px;}
  .channel-status-text{display:none;}
  .icon-menu-btn{width:36px;height:36px;}
  .icon-menu-btn img{width:29px;height:29px;}
  .slide-panel{min-width:154px;}
  .channel-panel{min-width:182px;}
}
@media (max-width:390px){
  .channel-btn{padding:6px 8px;gap:6px;}
  .channel-copy{min-width:46px;}
  .channel-current-label{font-size:10px;}
  .channel-caret{display:none;}
}

/* v0.2.17: Clear typographic hierarchy without resizing the existing HUD. */
.load-title,.eyebrow,.minimap-caption,.mode-label,.load-mark{font-family:var(--bv-font-title);}
.slide-panel-title,.channel-eyebrow,.channel-current-label,
.channel-option-copy strong,.target-head strong,.load-sub{font-family:var(--bv-font-story);}
.bv-hud-nickname,.bv-hud-meter-text,.bv-hud-power,.bv-hud-level,
.channel-status-text,.channel-option-copy small,.menu-option,
#target-hp-text,.target-hint,.toast,.combat-log,.action,
#auto-label{font-family:var(--bv-font-ui);}

/* Normal arrow, portal footsteps, combat cursor and UI finger; purely
   local display, never a gameplay decision or server-side tick. */
html, body, #game-shell, .joystick, #game {
  cursor:url('../assets/cursors/normal.png') 1 1, auto;
}
html.cursor-pressed, html.cursor-pressed body,
html.cursor-pressed #game-shell, html.cursor-pressed .joystick,
html.cursor-pressed #game {
  cursor:url('../assets/cursors/pressed.png') 1 1, auto;
}
/* On the map a monster is attackable; the signed-in server still validates it. */
#game.bv-cursor-attack {
  cursor:url('../assets/cursors/attack.png') 7 4, crosshair !important;
}
html.cursor-pressed #game.bv-cursor-attack {
  cursor:url('../assets/cursors/attack_pressed.png') 7 4, crosshair !important;
}
/* Visible exit strips use the footprint cursor only, not the UI hand. */
#game.bv-cursor-portal {
  cursor:url('../assets/cursors/move.png') 12 16, pointer !important;
}
html.cursor-pressed #game.bv-cursor-portal {
  cursor:url('../assets/cursors/move_pressed.png') 12 16, pointer !important;
}
/* NPC dialogue targets have their own talking cursor; portal ground stays footprints. */
#game.bv-cursor-npc, html.cursor-pressed #game.bv-cursor-npc {
  cursor:url('../assets/cursors/npc_talk.png') 5 5, pointer !important;
}
/* Interactive UI receives the same finger cursor, including title / dialogs. */
button:not(:disabled), a[href], [role='button'], select, input[type='range'],
.bv-story-screen, .bv-class-choice:not(.bv-class-locked),
#zoom-slider, .joystick button {
  cursor:url('../assets/cursors/point.png') 7 5, pointer !important;
}
html.cursor-pressed button:not(:disabled), html.cursor-pressed a[href],
html.cursor-pressed [role='button'], html.cursor-pressed select,
html.cursor-pressed input[type='range'], html.cursor-pressed .bv-story-screen,
html.cursor-pressed .bv-class-choice:not(.bv-class-locked),
html.cursor-pressed #zoom-slider, html.cursor-pressed .joystick button {
  cursor:url('../assets/cursors/point_pressed.png') 7 5, pointer !important;
}
/* Editable fields keep an I-beam for text selection. */
input:not([type='range']), textarea {cursor:text !important;}

/* v0.2.41 — Region entrance and minimap portal hints (client-side only). */
.minimap-caption #minimap-region {
  min-width:0;max-width:125px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  color:#e7d4a8;font-family:var(--bv-font-ui,'Pretendard','Malgun Gothic',sans-serif);
  font-size:10px;font-weight:700;letter-spacing:.1px;
}
.minimap-legend {
  display:flex;align-items:center;justify-content:flex-end;gap:5px;
  padding-top:5px;color:#c0ac88;font-size:9px;letter-spacing:0;line-height:1;
}
.minimap-portal-dot {width:7px;height:7px;display:inline-block;border:1px solid #e4be75;
  background:#f1c778;border-radius:50%;box-shadow:0 0 0 2px #090c09cc;}
.region-entry[hidden] {display:none!important;}
.region-entry {
  position:absolute;left:50%;top:clamp(126px,18vh,190px);z-index:6;
  width:min(360px,calc(100% - 120px));box-sizing:border-box;
  transform:translate(-50%,-8px);opacity:0;pointer-events:none;
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;
  padding:17px 26px 18px;
  color:#f2e5c8;text-shadow:0 2px 5px #080706,0 0 18px #000;
  background:linear-gradient(90deg,transparent,rgba(13,16,13,.72) 20%,rgba(13,16,13,.72) 80%,transparent);
  transition:opacity .28s ease,transform .28s ease;
}
.region-entry::before,.region-entry::after {
  content:"";display:block;position:absolute;left:15%;right:15%;height:1px;
  background:linear-gradient(90deg,transparent,#b69a64aa 24%,#b69a64aa 76%,transparent);
}
.region-entry::before {top:7px;}.region-entry::after {bottom:7px;}
.region-entry.is-visible {opacity:1;transform:translate(-50%,0);}
.region-entry-kicker {font:700 10px/1.1 'Cinzel',serif;letter-spacing:3.4px;color:#bfa675;}
.region-entry-name {font:650 22px/1.3 'Hahmlet','Malgun Gothic',serif;letter-spacing:1px;}
.region-entry-detail {font-size:10px;letter-spacing:.5px;color:#bfb5a2;}
@media (max-width:650px){
  .minimap-caption #minimap-region {font-size:8px;max-width:83px;}
  .minimap-legend {font-size:8px;padding-top:4px;}
  .region-entry {top:clamp(113px,22vh,170px);width:min(310px,calc(100% - 40px));padding:13px 18px 15px;}
  .region-entry-name {font-size:18px;}
}
@media (prefers-reduced-motion:reduce){.region-entry{transition:none;}}

/* v0.2.42.2: server-confirmed rare loot notification (visual only). */
.toast.is-loot-rare {
  border-color:#c7a65b;color:#f9dc8c;
  background:linear-gradient(90deg,#1b1a13f2,#342a16f2,#1b1a13f2);
  box-shadow:0 0 14px #bd913544,inset 0 0 0 1px #ae853020;
  font-weight:600;letter-spacing:.15px;
}
