[hidden]{display:none!important}
.three-options{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin:0 0 .6rem}
.three-tag{font-size:.75rem;font-weight:800;letter-spacing:.15em;color:#dcbc80}
#three-mode{overflow:hidden;border-radius:17px;border:1px solid #557772;background:#192d2e;box-shadow:0 15px 36px #0c17264a}
#three-area{position:relative;height:clamp(390px,58vh,695px);background:#a9c8bd;overflow:hidden;isolation:isolate}
#three-area:focus-visible{outline:2px solid #f9c779;outline-offset:-3px}
#world,#labels{width:100%;height:100%;position:absolute;inset:0;display:block}
#labels{cursor:pointer}
.three-badge{position:absolute;z-index:1;left:12px;top:12px;background:#122d29ed;border:1px solid #c8cf9b75;padding:.5rem .7rem;border-radius:.55rem;color:#faf1db;pointer-events:none}
.three-badge span{display:block;font-size:.68rem;letter-spacing:.14em;color:#f5cc8e;font-weight:800}
.three-badge strong{font-size:.94rem}
#three-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:.7rem;gap:.55rem}
.three-walk,.three-views{display:flex;gap:.32rem;align-items:center}
#three-controls button,#three-controls select{min-height:44px;border:1px solid #8da39b;border-radius:9px;color:#fff6e6;background:#294841;padding:.4rem .62rem;font-size:.87rem;font-weight:700}
#three-controls button:hover{background:#3e6458}
#three-controls button:active{background:#577469}
#three-controls button:focus-visible,#three-controls select:focus-visible{outline:2px solid #ffda88;outline-offset:2px}
#three-controls .three-walk button{width:44px;padding:0;font-size:1.25rem;touch-action:none;user-select:none}
#three-controls #three-enter{background:#f1cc89;color:#172d27}
#three-controls #three-enter:disabled{background:#2a443d;color:#dbe1d1;border-color:#688276;cursor:default;opacity:1}
.three-jump{display:flex;align-items:center;gap:.4rem;color:#e9e3c9;font-size:.83rem}
.three-jump select{max-width:13rem}
#view-village .world-disclaimer{margin-top:.9rem}
@media(max-width:720px){
 #three-area{height:clamp(255px,44vh,490px)}
 #three-controls{justify-content:center;gap:.44rem;padding:.55rem}
 .three-walk{justify-content:center;width:100%}
 .three-views{justify-content:center}
 #three-controls #three-enter{flex:1 1 10rem}
 .three-tag{letter-spacing:.08em}
 #view-village .walk-head{margin-bottom:.7rem}
 .three-badge{left:8px;top:8px;}
}
.mission-strip{display:flex;align-items:center;gap:10px;background:#1a3732;color:#fff2d7;padding:10px 13px;border-bottom:1px solid #779082}
.mission-mark{font-size:1.34rem;color:#ecca89;background:#2c4b42;width:34px;height:34px;display:grid;place-items:center;border-radius:50%;flex:none}
.mission-copy{display:flex;flex-direction:column;gap:3px;flex:1}
.mission-copy small{font-weight:800;font-size:.68rem;letter-spacing:.14em;color:#edcc93}
.mission-copy strong{font-size:.95rem;line-height:1.2}
#quest-log{font-size:.77rem;color:#d7e6d0}
#quest-guide{background:#2d5147;color:#fff6e4;border:1px solid #9fb4aa;border-radius:9px;min-height:44px;padding:0 .72rem;font-weight:700}
.game-help{font-size:.85rem;color:#e6e6d4;margin:0;padding:0 13px 10px}
#game-dialog{position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 32px));max-width:100%;padding:23px;border:1px solid #9cb3a2;border-radius:17px;background:#173a32;color:#fff5e0;box-shadow:0 16px 60px #12211ca1;z-index:900}
#game-dialog::backdrop{background:#102821b8}
#game-dialog-close{position:absolute;right:10px;top:10px;width:44px;height:44px;background:none;border:1px solid #7d9981;border-radius:8px;color:#fff5e0;font-size:1.3rem}
.game-kicker{font-weight:800;letter-spacing:.14em;font-size:.73rem;color:#f2ce8b;margin:0 45px 8px 0}
#game-dialog h2{font-size:1.62rem;margin:0 35px 10px 0}
#game-dialog-body{font-size:1rem;line-height:1.5;margin-bottom:1rem}
#game-dialog-action{min-height:44px;background:#f0cd91;color:#19332b;border:0;border-radius:9px;padding:.5rem .85rem;font-weight:800}
@media(max-width:720px){.mission-strip{padding:8px}.mission-mark{width:27px;height:27px}}
#three-area{
  background:
    radial-gradient(ellipse 19% 23% at 15% 31%,#ffda9e94,transparent 88%),
    radial-gradient(ellipse 11% 4% at 20% 23%,#ffe0b77d,transparent 91%),
    radial-gradient(ellipse 23% 6% at 26% 31%,#f6c1aa62,transparent 92%),
    radial-gradient(ellipse 24% 6% at 74% 24%,#ebc4b981,transparent 95%),
    radial-gradient(ellipse 31% 8% at 73% 40%,#edb7a65e,transparent 92%),
    linear-gradient(#506f84 1%,#81939a 26%,#cb9e94 51%,#e9b58d 69%,#e4bc9b 86%);
}
#three-area.eye-level{
 background:
   radial-gradient(circle at 20% 34%,#fff3cc 0 2.2%,#ffe3a0ad 2.6%,#ffd49742 8%,transparent 20%),
   radial-gradient(ellipse 28% 7% at 21% 34%,#f5c5ad85,transparent 95%),
   radial-gradient(ellipse 23% 7% at 71% 31%,#ebcac58c,transparent 95%),
   linear-gradient(#426a8a 0%,#7f9aa9 22%,#e2b5a1 55%,#ecc29c 79%,#efd1a6);
}
#labels{touch-action:none;cursor:grab}
#labels:active{cursor:grabbing}
#eye-shortcut{position:absolute;z-index:2;top:12px;right:12px;min-height:42px;padding:.35rem .68rem;border:1px solid #dcc397;border-radius:.52rem;background:#213d35ef;color:#fff1d9;font-size:.85rem;font-weight:750}
#eye-shortcut:focus-visible{outline:2px solid #ffdb9a;outline-offset:2px}
#world-reticle{position:absolute;pointer-events:none;left:50%;top:50%;width:7px;height:7px;border:1px solid #fff5da;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 3px #30251e}
@media(max-width:720px){#eye-shortcut{right:8px;top:8px}#three-area{height:clamp(270px,45vh,500px)}}
#immersive{background:#293e35;color:#fff5e0;border:1px solid #9fb4aa;border-radius:9px;min-height:44px;padding:0 .62rem;font-weight:700;white-space:nowrap}
body.village-expanded{overflow:hidden}
#three-mode.immersive-mode{
 position:fixed;inset:0;z-index:150;display:flex;flex-direction:column;height:100dvh;
 border:0;border-radius:0;box-shadow:none;
 padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.immersive-mode .mission-strip,.immersive-mode #three-controls{flex:none}
.immersive-mode #three-area{flex:1 1 auto;min-height:110px;height:auto}
.immersive-mode .game-help{display:none}
.immersive-mode #three-controls{max-height:37dvh;overflow-y:auto}
@media(max-width:480px){
 #immersive,#quest-guide{padding:0 .45rem;font-size:.79rem}
 .mission-copy strong{font-size:.82rem}
}
#walk-stick{position:absolute;z-index:3;display:block;left:15px;bottom:12px;width:108px;height:108px;touch-action:none;cursor:grab}
#walk-stick:active{cursor:grabbing}
.immersive-mode #walk-stick{width:126px;height:126px;left:max(15px,env(safe-area-inset-left));bottom:15px}
@media(max-width:480px){#walk-stick{left:9px;bottom:8px;width:98px;height:98px}.immersive-mode #walk-stick{width:116px;height:116px}}

#game-dialog-portrait:not([hidden]){display:block;width:112px;height:112px;object-fit:cover;border:2px solid #dcb879;border-radius:50%;margin:.4rem 0 .8rem;box-shadow:0 6px 18px #101c18}
#game-dialog-portrait[hidden]{display:none}

.flagship-music:not([hidden]){display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;padding:.65rem .85rem;margin:0 .7rem .45rem;border-radius:12px;border:1px solid #af8956;background:#1e2929;color:#fff4dc}
.flagship-music[hidden]{display:none}
.flagship-music-caption{display:grid;gap:.15rem;min-width:0}
.flagship-music-caption span,.flagship-track-label span{font-size:.76rem;color:#e1ccad}
.flagship-track-label{display:flex;flex:1;align-items:center;gap:.4rem;min-width:200px}
#flagship-track{min-width:0;width:100%;min-height:44px;border:1px solid #96724b;border-radius:7px;padding:.35rem;background:#18292a;color:#fff4dc}
.flagship-music-buttons{display:flex;gap:.4rem}
.flagship-music-buttons button{min-height:44px}
@media(max-width:520px){.flagship-music-caption{flex-basis:100%}.flagship-track-label{min-width:0;flex-basis:100%}}

#game-dialog-shop-logo:not([hidden]){display:block;width:min(100%,280px);height:auto;border-radius:5px;margin:.4rem 0 .8rem;box-shadow:0 5px 14px #101c18}
#game-dialog-shop-logo[hidden]{display:none}

.flagship-owners:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:.55rem .9rem;margin:0 .7rem .45rem;padding:.6rem .85rem;border:1px solid #93764c;border-radius:12px;background:#222e2c;color:#fff3d8}
.flagship-owners[hidden]{display:none}
.flagship-owners ul{display:flex;flex-wrap:wrap;gap:.45rem 1.15rem;list-style:none;padding:0;margin:0}
.flagship-owners li{display:flex;align-items:center;gap:.5rem}
.flagship-owners img{display:block;width:44px;height:44px;object-fit:contain;border:1px solid #b69560;border-radius:50%;background:#222628}
.flagship-owners img{object-fit:cover}
.flagship-owners b,.flagship-owners small{display:block}
.flagship-owners small{font-size:.74rem;color:#e2ca9d}

#flagship-ask-aj{min-height:44px;margin-inline-start:auto}
