/* Playable island scenes. Scoped to subject maps; no scroll/auth/device ownership. */
html body #app .subject-travel-map.island-harbors{
  --harbor-ink:#f6f4d8;--harbor-muted:#d0ddbf;--harbor-sign:#173b2ef5;--harbor-edge:#c4d8a6;
  position:relative!important;display:block!important;aspect-ratio:16/9;min-height:340px!important;padding:0!important;margin:0 0 10px!important;
  border:1px solid #789c77!important;border-radius:10px!important;background:#284f3d!important;box-shadow:inset 0 0 0 2px #e6ecc13b!important;overflow:hidden;isolation:isolate;
}
html body #app .island-harbors[data-harbor-island=toeic]{--harbor-sign:#123e53f5;--harbor-muted:#c8e3e9;--harbor-edge:#b8dbe2;border-color:#86b9bc!important;background:#187f9d!important}
html body #app .island-harbors .harbor-chart{position:absolute;inset:0;display:block;pointer-events:none;transform:none;transition:none}
html body #app .island-harbors .harbor-chart>img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;border-radius:0;opacity:1;filter:none}
html body #app .island-harbors .harbor-chart-caption{position:absolute;z-index:2;left:12px;top:12px;padding:4px 8px;border:1px solid #d8e9c76b;border-radius:4px;background:var(--harbor-sign)!important;color:#f5f3d8!important;font-size:12px;line-height:1.5;letter-spacing:.04em;pointer-events:none}
html body #app .island-harbors .harbor-stop{
  position:absolute!important;z-index:3;left:calc(var(--pin-x)*1%)!important;top:calc(var(--pin-y)*1%)!important;right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
  display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;
  width:142px!important;max-width:none!important;min-width:0!important;min-height:84px!important;height:auto!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:8px!important;background:transparent!important;color:var(--harbor-ink)!important;box-shadow:none!important;filter:none!important;
  text-decoration:none;text-align:center!important;line-height:1.4;cursor:pointer;touch-action:manipulation;transition:none!important;
}
html body #app .island-harbors .harbor-stop:before,html body #app .island-harbors .harbor-stop:after{display:none!important}
html body #app .island-harbors .harbor-sign{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-height:54px;padding:6px 9px;border:1px solid var(--harbor-edge);border-radius:5px;background:var(--harbor-sign)!important;box-shadow:0 3px 0 #132f29cc,0 5px 12px #001b3455;position:relative}
html body #app .island-harbors .harbor-sign:before{content:'';position:absolute;left:5px;top:5px;width:3px;height:3px;border-radius:50%;background:var(--harbor-edge);box-shadow:0 36px var(--harbor-edge)}
html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .wn-entry-t{font-size:16px!important;font-weight:700;line-height:1.4;white-space:nowrap;color:var(--harbor-ink)!important;letter-spacing:0;margin:0}
html body #app .island-harbors .world-place-name{display:block;font-size:11px!important;line-height:1.5;color:var(--harbor-muted)!important;white-space:nowrap;margin:0;letter-spacing:0}
html body #app .island-harbors .harbor-pin{display:grid;place-items:center;flex:none;width:38px;height:38px;padding:6px;border:2px solid #f2e9b9;border-radius:50%;background:var(--harbor-sign)!important;color:#fff2c4!important;box-shadow:0 2px 0 #183f34,0 3px 8px #001b3466;transition:transform .16s,box-shadow .16s}
html body #app .island-harbors .harbor-pin svg{width:22px;height:22px;display:block}
html body #app .island-harbors .harbor-stop:focus-visible{outline:3px solid #fff0a5!important;outline-offset:4px}
html body #app .island-harbors .harbor-stop:focus-visible .harbor-sign,html body #app .island-harbors .harbor-stop.harbor-selected .harbor-sign{border-color:#fff2b7;box-shadow:0 0 0 2px #fff2b7,0 4px 14px #001b3499}
html body #app .island-harbors .harbor-stop:active .harbor-pin{transform:translateY(2px);box-shadow:0 0 0 5px #fff3b455}
html body #app .island-harbors .wn-entry-n{display:none!important}
/* Keep the scene as the content, with the island name already in the device crown. */
html body #app .toeic-menu:has(.island-harbors)>.world-island-banner{display:none!important}
html body #app .world-map-help{font-size:12px!important;text-align:center;margin:8px 4px!important}
@media(hover:hover){html body #app .island-harbors .harbor-stop:hover .harbor-pin{transform:translateY(-3px);box-shadow:0 0 0 4px #fff3b466,0 4px 12px #001b3499}html body #app .island-harbors .harbor-stop:hover .harbor-sign{border-color:#fff2b7;background:#245445f7!important}}
@media(max-width:700px){
  html body #app .subject-travel-map.island-harbors{aspect-ratio:3/4;min-height:0!important}
  html body #app .island-harbors .harbor-stop{left:calc(var(--mobile-x)*1%)!important;top:calc(var(--mobile-y)*1%)!important;width:124px!important;gap:3px}
  html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .wn-entry-t{font-size:15px!important}
  html body #app .island-harbors .harbor-chart-caption{font-size:11px;top:10px;left:10px}
}
@media(max-width:360px){
  html body #app .island-harbors .harbor-stop{width:114px!important;gap:2px}
  html body #app .island-harbors .harbor-sign{padding:5px 6px;min-height:49px}
  html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .wn-entry-t{font-size:14px!important}
  html body #app .island-harbors .world-place-name{font-size:10px!important}
  html body #app .island-harbors .harbor-pin{width:34px;height:34px;padding:5px}
}
@media(prefers-reduced-motion:reduce){html body #app .island-harbors *,html body #app .island-harbors .harbor-chart,html body #app .island-harbors .harbor-foreground{animation:none!important;transition:none!important}html body #app .island-harbors .harbor-chart,html body #app .island-harbors .harbor-foreground,html body #app .island-harbors .harbor-pin{transform:none!important}}
/* Text-sized plaques inside the unchanged, larger map touch controls. */
html body #app .island-harbors .harbor-sign{align-self:center;width:max-content;max-width:150px;min-height:0!important;height:auto;padding:4px 9px;border-radius:4px;background:color-mix(in srgb,var(--harbor-sign) 88%,transparent)!important;box-shadow:0 1px 5px #001b3455}
html body #app .island-harbors .harbor-sign:before{display:none}
html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .harbor-sign .wn-entry-t{font-size:14px!important;line-height:1.3!important;white-space:normal;text-align:center}
@media(max-width:700px){html body #app .island-harbors .harbor-sign{max-width:124px;padding:4px 7px}html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .harbor-sign .wn-entry-t{font-size:13px!important}}
/* Scene-only viewport fit; the camera keeps all waypoint controls in view. */
html body .device-content:has(>.island-harbors){display:flex;flex-direction:column}
html body .device-content>.toeic-menu:has(.island-harbors){display:flex;flex-direction:column;min-height:0;height:100%;padding:0!important;margin:0!important}
html body .device-content>.toeic-menu:has(.island-harbors)>#toeicSection:empty{display:none}
html body .device-content:has(.island-harbors) .world-map-help{display:none!important}
html body #app .subject-travel-map.island-harbors{flex:1 0 260px;aspect-ratio:auto!important;width:100%!important;height:100%;min-height:260px!important;margin:0!important;border-radius:6px!important}
html body #app .island-harbors .harbor-chart{inset:auto;z-index:1;transform:none}
html body #app .island-harbors .harbor-chart>img{object-fit:contain}
/* Top safe space is already inside the border-box padding; the measured footer
   height already contains its bottom safe space. Do not subtract either twice. */
html body #app:has(.island-harbors){display:flex!important;flex-direction:column;height:calc(var(--study-viewport-height,100dvh) - var(--study-footer-height,80px) - 16px)!important;max-height:none!important;min-height:260px!important}
html body #app:has(.island-harbors)>.device-content{flex:1;min-height:0;padding-bottom:2px!important}
html body.subject-map-history .device-content>.help,html body.subject-map-history .history-map-title{display:none!important}
html body.subject-map-history .device-content>.footer{display:none!important;margin:0!important;padding:0!important}
@media(max-width:700px){html body #app:has(.island-harbors){width:100%!important;max-width:none!important;margin:0!important;padding:calc(6px + env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) 4px max(8px,env(safe-area-inset-left,0px))!important;border-width:3px!important;border-top-width:7px!important;border-radius:26px!important}html body #app:has(.island-harbors)>.device-content{padding-inline:0!important}}
html body #app .island-harbors :is(.harbor-chart-caption,.harbor-sign .world-place-name){display:none!important}

/* The landmark and its destination form one fixed, legible signpost. */
html body #app .island-harbors{--harbor-sign:#073b49f5;--harbor-edge:#c1e9e3;--harbor-ink:#f8fff5}
html body #app .island-harbors[data-harbor-island=history]{--harbor-sign:#193c29f5;--harbor-edge:#e0dca6}
html body #app .island-harbors .harbor-pin{width:42px;height:42px;border:1px solid var(--harbor-edge);border-radius:13px 13px 13px 3px;box-shadow:0 3px 8px #001b3480,inset 0 0 0 3px #ffffff16;color:#f4edc3!important;transition:box-shadow .2s,border-color .2s}
html body #app .island-harbors .harbor-sign{padding:6px 10px;border-radius:5px;border-color:var(--harbor-edge);background:var(--harbor-sign)!important;box-shadow:0 3px 10px #001b3470;min-width:72px}
html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .harbor-sign .wn-entry-t{font-size:15px!important;line-height:1.4!important;letter-spacing:.01em}
html body #app .island-harbors .harbor-stop:focus-visible .harbor-pin,html body #app .island-harbors .harbor-stop.harbor-selected .harbor-pin{box-shadow:0 0 0 5px #fff5bb40,0 0 22px #b9ffdc99}
@media(hover:hover){html body #app .island-harbors .harbor-stop:hover .harbor-pin{transform:none;box-shadow:0 0 0 5px #fff5bb30,0 0 20px #bbffec80}}
@media(max-width:700px){html body #app .island-harbors .harbor-sign{max-width:124px;padding:5px 8px}html body #app .island-harbors .harbor-sign>strong,html body #app .island-harbors .harbor-sign .wn-entry-t{font-size:14px!important}}

/* Ambient weather is entirely local: clear light -> passing cloud -> a gentle
   shower -> clearing. Opacity changes over tens of seconds; never flash. */
html body .scene-atmosphere{position:absolute;display:block;inset:0;overflow:hidden;pointer-events:none!important;isolation:isolate;contain:layout paint;z-index:1;background:transparent!important}
html body .scene-atmosphere *{pointer-events:none!important}
html body .scene-atmosphere :is(.scene-weather,.scene-rain,.scene-leaves){position:absolute;display:block;inset:0;background:transparent!important}
html body .scene-atmosphere .scene-cloud{position:absolute;display:block;width:64%;height:21%;top:-6%;left:-17%;border-radius:50%;background:radial-gradient(ellipse at 35% 50%,#f3ffff8c,transparent 63%),radial-gradient(ellipse at 65% 60%,#e6f3ff99,transparent 62%)!important;animation:scene-cloud-pass 52s linear infinite!important;opacity:.32}
html body .scene-atmosphere .scene-cloud-near{top:2%;left:40%;width:80%;height:24%;animation-duration:73s!important;animation-delay:-33s!important;opacity:.21}
html body .scene-atmosphere .scene-sunlight{position:absolute;inset:0;display:block;background:radial-gradient(ellipse at 78% -12%,#fff0b45c,transparent 62%)!important;animation:scene-daylight 150s ease-in-out infinite!important}
html body .scene-atmosphere .scene-overcast{position:absolute;inset:0;display:block;background:linear-gradient(160deg,#183c6399,#254a683d 60%,#102f4b40)!important;opacity:0;animation:scene-overcast 150s ease-in-out infinite!important}
html body .scene-atmosphere .scene-rain{opacity:0;animation:scene-shower 150s ease-in-out infinite!important}
html body .scene-atmosphere .scene-rain>i{position:absolute;left:var(--drop-x);top:var(--drop-y);width:1px;height:17px;background:linear-gradient(transparent,#defbff99)!important;animation:scene-raindrop 1.3s var(--delay) linear infinite!important}
html body .scene-atmosphere .scene-mist{position:absolute;display:block;left:-10%;right:-10%;bottom:6%;height:28%;background:radial-gradient(ellipse at 25% 60%,#e7fffa22,transparent 60%),radial-gradient(ellipse at 80% 80%,#cbf8ff33,transparent 55%)!important;animation:scene-mist 26s ease-in-out infinite alternate!important}
html body .scene-atmosphere .scene-water{position:absolute;display:block;left:44%;top:58%;width:38%;height:22%;background:transparent!important}
html body .scene-atmosphere .scene-water>i{position:absolute;left:var(--ripple-x);top:var(--ripple-y);width:clamp(14px,2vw,34px);height:5px;border-top:1px solid #e2ffffbb;border-radius:50%;opacity:0;animation:scene-ripple 6.3s var(--delay) ease-out infinite!important}
html body .scene-atmosphere .scene-leaves>i{position:absolute;left:var(--leaf-x);top:-3%;width:5px;height:10px;border-radius:1px 80%;background:#d1d98b!important;opacity:0;animation:scene-leaf 19s var(--delay) linear infinite!important}
html body .scene-atmosphere[data-scene=toeic] .scene-leaves{display:none}
html body .scene-atmosphere[data-scene=history] .scene-sunlight{background:conic-gradient(from 138deg at 82% -12%,transparent 0deg,#fff0a438 7deg,transparent 15deg,#eaffbd22 21deg,transparent 29deg)!important}
html body .scene-atmosphere[data-scene=history] .scene-mist{bottom:29%;height:30%;opacity:.7}
html body .scene-atmosphere[data-scene=history] .scene-water{left:5%;top:72%;width:28%;height:13%}
html body .scene-atmosphere[data-scene=account] .scene-water,html body .scene-atmosphere[data-scene=inquiry] .scene-water,html body .scene-atmosphere[data-scene=hall] .scene-water{display:none}
html body .scene-atmosphere[data-scene=ice] .scene-rain>i{width:3px;height:3px;border-radius:50%;background:#efffff!important;animation-duration:7s!important}
html body .scene-atmosphere[data-scene=ice] .scene-leaves,html body .scene-atmosphere[data-scene=ice] .scene-water{display:none}
@keyframes scene-cloud-pass{from{transform:translateX(-18%)}to{transform:translateX(45%)}}
@keyframes scene-daylight{0%,18%,100%{opacity:.85}42%,76%{opacity:.12}}
@keyframes scene-overcast{0%,18%,100%{opacity:0}42%,68%{opacity:.7}82%{opacity:.18}}
@keyframes scene-shower{0%,38%,86%,100%{opacity:0}52%,66%{opacity:.44}}
@keyframes scene-raindrop{from{transform:translate3d(0,-100px,0) rotate(12deg)}to{transform:translate3d(-35px,160px,0) rotate(12deg)}}
@keyframes scene-mist{from{transform:translateX(-3%);opacity:.35}to{transform:translateX(4%);opacity:.8}}
@keyframes scene-ripple{0%,100%{opacity:0;transform:scaleX(.5)}30%{opacity:.7}85%{opacity:0;transform:scaleX(1.45)}}
@keyframes scene-leaf{0%{opacity:0;transform:translate3d(0,0,0) rotate(-20deg)}12%,75%{opacity:.65}100%{opacity:0;transform:translate3d(var(--drift),440px,0) rotate(230deg)}}
@media(max-width:700px){html body .harbor-chart .scene-atmosphere .scene-water{left:30%;top:58%;width:26%;height:19%}html body .harbor-chart .scene-atmosphere[data-scene=history] .scene-water{left:5%;top:75%;width:39%;height:14%}.scene-atmosphere .scene-rain>i:nth-child(even){display:none}}
/* No JS frame loop/timer; paused animations keep their phase on return. */
html.world-motion-paused body .scene-atmosphere *,html.world-low-power body .scene-atmosphere *,html body .scene-atmosphere.scene-offscreen *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){html body .scene-atmosphere :is(.scene-cloud,.scene-sunlight,.scene-overcast,.scene-rain,.scene-rain>i,.scene-mist,.scene-water>i,.scene-leaves>i){animation:none!important;transition:none!important}html body .scene-atmosphere :is(.scene-rain,.scene-leaves,.scene-cloud,.scene-mist){display:none!important}html body .scene-atmosphere .scene-overcast{opacity:0}html body .scene-atmosphere .scene-sunlight{opacity:.4}}

html body>.scene-atmosphere.scene-backdrop{position:fixed;inset:0;z-index:-1}
html body>.scene-backdrop :is(.scene-rain,.scene-water,.scene-leaves){display:none!important}
@media(max-width:1180px){html body>.scene-atmosphere.scene-backdrop{display:none!important}}
html body #app .world-inquiry-desk{position:relative;isolation:isolate;min-height:70dvh;background:#0a252d!important;padding:24px!important;border-radius:14px}
html body #app .world-inquiry-desk>.world-scenery{inset:0 0 auto;z-index:-2;height:480px;opacity:.65}
html body #app .world-inquiry-desk:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#06262cc4,#082229eb 280px,#082229 480px)!important}
html body #app .world-inquiry-desk>:not(.world-scenery){position:relative;background:transparent!important}
html body #app .world-inquiry-desk>h1{margin:24px 0 12px;font-size:clamp(26px,5vw,36px)!important;color:#f2fff5!important;text-shadow:0 2px 8px #062029}
html body #app .world-inquiry-desk #content{min-width:0;color:#e7f5ed!important}
html body #app .world-inquiry-desk #content>form{padding:18px!important;border:1px solid #719c8f!important;border-radius:12px;background:#0b292de8!important}
html body #app .world-inquiry-desk :is(input,textarea){width:100%;min-height:44px;font-size:16px!important;background:#071e25!important;color:#f2fff5!important;border:1px solid #91b5ab!important;border-radius:7px;padding:10px!important}
html body #app .world-inquiry-desk :is(button,a){min-height:44px;display:inline-flex;align-items:center;padding:8px 12px;border-radius:7px;color:#def8ed!important}
html body #app .world-inquiry-desk nav{gap:8px}
@media(max-width:520px){html body #app .world-inquiry-desk{padding:16px 12px!important}html body #app .world-inquiry-desk #content>form{padding:12px!important}}

/* The water renderer shares the chart's exact fitted image coordinates. No
   terrain, buildings, controls or full photograph is translated or rotated. */
html body #app .harbor-chart .living-water-surface{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;pointer-events:none;z-index:0}
html body #app .harbor-chart .living-water-plate{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;pointer-events:none;z-index:0}
html body #app .harbor-chart .living-water-surface[hidden]{display:none!important}
html body #app .harbor-chart.living-water-ready>img:not(.living-boat){opacity:0}
html body #app .harbor-chart .living-boat{position:absolute;display:block;max-width:none;pointer-events:none;z-index:1;object-fit:fill;will-change:transform}
html body #app .harbor-chart .scene-atmosphere .scene-water{display:none!important}
html body #app .harbor-chart .scene-atmosphere{z-index:2}
html[data-hanq-theme=terminal] body[data-island=history]::before{background:linear-gradient(180deg,#05170c33,#05170c99),url('world-art/history-palace-wide-v1.webp') center/cover no-repeat!important}
@media(prefers-reduced-motion:reduce){html body #app .harbor-chart .living-boat{will-change:auto}}
/* The native toggle exposes a paused preference without changing OS/browser settings. */
html body #app .harbor-control-host{position:relative!important}
html body #app .harbor-motion-toggle{position:absolute!important;z-index:5;display:inline-flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;white-space:nowrap!important;right:auto!important;bottom:auto!important;width:max-content!important;max-width:none!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:6px 10px!important;border:1px solid #c1d9bd!important;border-radius:7px!important;background:#0d302aeb!important;color:#f4fff5!important;font-size:12px!important;line-height:1.3!important;box-shadow:0 2px 8px #001b3455!important;transform:none!important;cursor:pointer}
html body #app .harbor-motion-toggle[hidden]{display:none!important}
html body #app .harbor-motion-toggle:focus-visible{outline:3px solid #fff2ad!important;outline-offset:2px}
/* The palace, pavilion and study hall themselves are the native menu buttons. */
html body #app .island-harbors[data-harbor-island=history] .history-landmark{display:block!important;min-width:44px!important;min-height:44px!important;max-width:none!important;padding:0!important;transform:none!important;border:2px solid transparent!important;border-radius:12px!important;background:transparent!important;box-shadow:none!important;cursor:pointer;transition:background-color .16s,border-color .16s!important}
html body #app .history-landmark .harbor-pin{position:absolute;left:50%;top:35%;opacity:0;transform:translate(-50%,-50%)!important;pointer-events:auto}
html body #app .history-landmark .harbor-sign{position:absolute;left:50%;top:7px;bottom:auto;transform:translateX(-50%);box-sizing:border-box;width:max-content;min-width:0!important;max-width:calc(100% - 8px)!important;padding:5px 9px!important;border:1px solid #c9ab72!important;border-radius:3px;background:repeating-linear-gradient(90deg,#8d67300c 0 2px,transparent 2px 7px),linear-gradient(180deg,#704b2d,#432b1c 55%,#5d3d25)!important;box-shadow:inset 0 0 0 2px #352617,0 2px 6px #091c2466!important;pointer-events:auto}
html body #app .history-landmark .harbor-sign::before{content:'';display:block!important;position:absolute;left:8px;right:8px;top:-8px;width:auto;height:7px;border-left:2px solid #c5ad7a;border-right:2px solid #c5ad7a;border-radius:0;background:transparent!important;box-shadow:none!important}
html body #app .history-landmark .harbor-sign>strong{font-family:'Noto Serif KR','Batang','AppleMyungjo',serif!important;font-size:14px!important;font-weight:700;color:#fff0c1!important;letter-spacing:.02em!important;text-shadow:0 1px 1px #211509;white-space:normal!important;line-height:1.35!important}
html body #app .island-harbors .history-landmark:focus-visible,html body #app .island-harbors .history-landmark.harbor-selected{outline:3px solid #fff1ac!important;outline-offset:2px;border-color:#fff4b5!important;background:#f7efae14!important;box-shadow:inset 0 0 22px #fff3a91a!important}
@media(hover:hover){html body #app .island-harbors .history-landmark:hover{border-color:#fff1acaa!important;background:#f5f2b915!important;box-shadow:inset 0 0 24px #fff5c21a!important}html body #app .history-landmark:hover .harbor-sign{background:linear-gradient(180deg,#805b35,#4b311f)!important}}
html body #app .island-harbors[data-scene-fit=contain]{background:radial-gradient(ellipse at center,#245748,#092b26 78%)!important}
@media(max-height:500px) and (orientation:landscape){html body #app .subject-travel-map.island-harbors[data-harbor-island=history]{min-height:0!important;flex:1 1 0!important}html body #app .island-harbors .history-landmark .harbor-sign{top:5px;padding:3px 6px!important}html body #app .island-harbors .history-landmark .harbor-sign>strong{font-size:12px!important}}

html body #app .world-inquiry-desk>nav>a{background:#082229a8!important;border:1px solid #8cb3a566;text-decoration:underline;text-underline-offset:4px}
html body #app .world-inquiry-desk #content>p{width:fit-content;padding:8px 10px;border-radius:6px;background:#082229d9!important}
