/* Island map: the district picker and the glowing map in the opening story. Overlays share the image rectangle. */
.island-map{position:relative;aspect-ratio:1672/941;width:100%;overflow:hidden;border-radius:14px;background:#071d2b}
.island-map>img{position:absolute;inset:0;width:100%;height:100%;display:block}
.island-glow{opacity:0;transition:opacity .9s ease;pointer-events:none}
.island-glow.on{opacity:1}
.motion-off .island-glow{transition:none}
.island-hub{display:grid;gap:16px}
.island-head{display:flex;justify-content:space-between;align-items:end;gap:20px}
.island-head h1{margin:0}
.island-frame{width:min(100%,calc((100vh - 230px)*1672/941));margin:0 auto}
.map-hits{position:absolute;inset:0;width:100%;height:100%}
.map-hit{fill:transparent;cursor:pointer}
.map-label{position:absolute;transform:translate(-50%,-50%);display:grid;gap:2px;padding:10px 18px;border:2px solid #35d4ed;border-radius:10px;background:#071d2bee;color:#f3f8fa;text-align:center;font:inherit;cursor:pointer;max-width:30%}
.map-label strong{font-size:clamp(16px,1.6vw,28px)}
.map-label small{font-size:clamp(12px,.95vw,17px);color:#bfdae4}
.map-label:hover,.map-label:focus-visible{background:#0f3347;outline:3px solid #35d4ed}
.map-label:disabled{opacity:.5;cursor:default}
.map-label.done{border-color:#9fc1d1;cursor:default}
.map-label.done.anchor-top{transform:translate(-50%,0)}
.map-label.done ul{margin:4px 0 0;padding:0;list-style:none;font-size:clamp(12px,.95vw,17px);text-align:left}
.island-map>img.map-done{right:auto;bottom:auto;width:clamp(28px,2.3vw,44px);height:auto;transform:translate(-50%,-50%)}
.island-foot{display:grid;gap:12px}
/* Opening story: the map fills the stage behind Silas; the scene painting sits in a small inset. */
.intro-map{position:absolute;left:50%;top:0;transform:translateX(-50%);width:min(100%,calc(100vh*1672/941));border-radius:0;z-index:0}
.intro-inset{position:absolute;z-index:1;right:3%;top:9%;width:min(30vw,420px);aspect-ratio:16/9;overflow:hidden;border:3px solid #f3f8fa;border-radius:12px;box-shadow:0 8px 30px #000a}
/* TV navigation: back to the island, and its confirm. */
.hub-back{position:fixed;z-index:60;top:12px;left:50%;transform:translateX(-50%);padding:8px 18px;border:2px solid #f3f8fa88;border-radius:8px;background:#071d2bcc;color:#f3f8fa;font-size:clamp(14px,1.2vw,20px);cursor:pointer}
.hub-confirm{position:fixed;inset:0;z-index:120;display:grid;place-items:center;background:#071d2bcc}
.hub-confirm>div{padding:28px 36px;border-radius:14px;background:#0d2c3d;border:2px solid #35d4ed;text-align:center;color:#f3f8fa}
.hub-confirm h2{margin:0 0 18px}
.hub-confirm button{margin:0 8px;font-size:clamp(16px,1.4vw,22px)}
@media (max-width:700px){
  .island-head{flex-direction:column;align-items:start}
  .island-frame{width:100%}
  .island-map.picker{overflow:visible}
  .map-label{padding:3px 6px;max-width:44%;border-width:1px}
  .map-label strong{font-size:12px}
  .map-label small,.map-label.done ul{font-size:10px}
  .map-label:not(.done) small{display:none}
  .hub-back{top:auto;bottom:10px}
}
/* Sound blocked: a large control that stays until a tap unlocks audio. */
/* Top centre, in one row (playtest 4: at the bottom it covered the story caption and the footer). */
.sound-unlock{position:fixed;z-index:110;left:50%;top:12px;transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;gap:14px}
#sound-unlock-btn{font-size:clamp(20px,2vw,32px);padding:12px 30px;border:3px solid #f3f8fa;border-radius:16px;background:#ff8a48;color:#071d2b;font-weight:700;cursor:pointer;box-shadow:0 8px 30px #000c;animation:sound-pulse 2.4s ease-in-out infinite}
#sound-keep-off{background:none;border:0;color:#cde;text-decoration:underline;cursor:pointer;font-size:16px}
@keyframes sound-pulse{50%{box-shadow:0 8px 40px #ff8a48aa}}
.motion-off #sound-unlock-btn{animation:none}
@media (prefers-reduced-motion:reduce){#sound-unlock-btn{animation:none}}
.sound-gear.is-muted{outline:3px solid #ff8a48;color:#ff8a48;opacity:1}
.sound-gear.is-muted::after{content:"";position:absolute;left:50%;top:50%;width:70%;height:3px;background:#ff8a48;transform:translate(-50%,-50%) rotate(-45deg);border-radius:2px}
/* The sound control overlays the bottom of the page (it never adds height, so the TV does not scroll at 1080p or 768p). */
/* With "Back to the island" at the top centre, the sound control sits just to its right, stacked, clear of both. */
@media (min-width:900px){body:has(#back-to-island) .sound-unlock{left:calc(50% + 125px);transform:none;flex-direction:column;align-items:flex-start;gap:4px;top:8px}
body:has(#back-to-island) #sound-unlock-btn{font-size:clamp(18px,1.5vw,26px);padding:8px 22px}}
