.island-atlas {grid-template-columns:minmax(0,2.2fr) minmax(255px,.86fr)}
.live-picture {overflow:hidden;min-height:0;aspect-ratio:3/2;flex:1;background:#53695a}
.forest-camera {position:absolute;inset:0;isolation:isolate;background-size:100% 100%;background-repeat:no-repeat}
.island-air,.drawbridge {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.island-air {z-index:0}
.island-air img {display:block}
.live-picture .forest-fog {background:linear-gradient(155deg,#dee4dd88,#8a9b9659 58%,#b1cbc167);pointer-events:none}
.forest-camera>svg polyline {stroke:#654f35;stroke-width:2.5;stroke-dasharray:1.6 6;opacity:.8}
.live-picture .island-caption {z-index:3;pointer-events:none;top:10px;left:10px;line-height:1.35}
.live-picture button.forest-pin {width:27px;height:27px;min-height:27px;padding:0;font-size:13px;border-width:1px;color:#213e37;background:#e5efdadb;box-shadow:0 2px 3px #1c362f66}
.live-picture button.forest-pin.mist {width:20px;height:20px;min-height:20px;color:#344a45;background:#edf0e3c9}
.live-picture button.forest-pin:not(:disabled):is(:hover,:active) {transform:translate(-50%,-50%);background:#f8edc9}
.live-picture button.forest-pin.frontier {background:#f0d7a1}
.live-picture .hero-token {z-index:3}
.trail-buddy {position:absolute;right:75%;bottom:10px;width:calc(var(--figure)*.44);height:calc(var(--figure)*.48);pointer-events:none;filter:drop-shadow(0 1px 1px #ffefd3) drop-shadow(0 2px 1px #293e3b88)}
.trail-buddy img {width:100%;height:100%;object-fit:contain;object-position:center bottom}
.hero-token.facing-left .trail-buddy {left:75%;right:auto}
.hero-token.facing-left .trail-buddy img {transform:scaleX(-1)}
.bridge-deck {transform-origin:0 0}
.bridge-deck.raised {transform:rotate(-60deg)}
.mill-wheel {position:absolute;left:41.3%;top:49%;width:7.1%;aspect-ratio:1;transform:translate(-50%,-50%) scaleX(.79);filter:drop-shadow(1px 1px 1px #44352699)}
.mill-wheel img {width:100%;height:100%}
.island-boat {position:absolute;width:7.8%;left:16%;top:82%;filter:drop-shadow(0 2px 1px #14565a9c)}
.cupola-light {position:absolute;top:12%;left:86%;width:1%;aspect-ratio:1;transform:translate(-50%,-50%);border-radius:50%;background:#4b4534;opacity:.6}
.cupola-light.lit {background:#fff7c5;box-shadow:0 0 6px 3px #ffd17a,0 0 18px 8px #f7bd4c8f;opacity:1}
.island-firefly {position:absolute;width:3px;height:3px;border-radius:100%;background:#fff0a2;box-shadow:0 0 5px 2px #e4b54d99}
.river-glint {position:absolute;width:5%;height:.65%;background:#defbf4;border-radius:100%;opacity:.5}
.glint-one {left:8%;top:88%}.glint-two {left:35%;top:75%}
.island-cascade {position:absolute;left:88.7%;top:40%;width:1.6%;height:9%;border-radius:50%;background:repeating-linear-gradient(165deg,transparent 0 8px,#ecfff6aa 10px,transparent 14px);transform:rotate(-15deg);opacity:.55}
.map-secret {position:absolute;z-index:2;display:grid;place-items:center;min-height:0;padding:0;border:0;background:transparent;box-shadow:none;transform:translate(-50%,-50%)}
.map-secret:not(:disabled):is(:hover,:active){transform:translate(-50%,-50%) scale(1.08);background:transparent;box-shadow:none}
.map-secret>img {display:block;width:100%;height:100%;object-fit:contain}
.map-secret.secret-guide {width:clamp(29px,3.8vw,46px);aspect-ratio:1;border:2px solid #ebd8a6;border-radius:50%;box-shadow:0 2px 5px #1d383aac;background:#264340}
.secret-guide img {border-radius:50%;object-fit:cover}
.secret-mail {width:clamp(23px,3vw,38px);height:clamp(28px,3.3vw,42px);filter:drop-shadow(0 1px 1px #394733)}
.secret-fish {width:clamp(29px,4vw,49px);height:32px}
.ripple {width:85%;height:26%;border:2px solid #d6fff0;border-radius:50%;box-shadow:0 0 0 2px #278f8c66}
.secret-fish .jump-fish {position:absolute;width:120%;height:90%;opacity:0;pointer-events:none}
.field-message {position:absolute;z-index:5;left:12px;top:12px;display:flex;align-items:flex-start;gap:8px;max-width:min(350px,calc(100% - 24px));padding:12px 12px 12px 16px;border:1px solid #aa9267;border-radius:10px;background:#faf5e8f7;color:#233f39;box-shadow:0 5px 20px #122e3644}
.field-message[hidden]{display:none}
.field-message p {margin:3px 0 0;font-size:.92rem;line-height:1.4}
.field-message button {border:0;background:transparent;min-height:32px;min-width:32px;padding:0;color:#31514b;font-size:1.35rem}
.journal-clue {margin:16px 0;padding:10px 0;border-block:1px solid #aec5b63b}
.journal-clue p {margin:3px 0 0;font-size:.94rem;color:#f2e9cc}
.island-atlas .island-journal {padding:clamp(17px,2.1vw,30px)}
.island-journal h1 {font-size:clamp(30px,3.2vw,48px)}
@media(prefers-reduced-motion:no-preference) {
  .walking .trail-buddy {animation:buddy-hop .48s ease-in-out infinite alternate}
  .bridge-deck.lowering {animation:deck-lower .85s ease-in-out both}
  .mill-wheel.running img {animation:mill-turn 8s linear infinite}
  .mill-wheel.starting img {animation-delay:1.8s}
  .island-boat {animation:boat-rock 4s ease-in-out infinite alternate}
  .island-firefly {animation:firefly-drift 5.2s ease-in-out var(--delay) infinite alternate}
  .river-glint,.ripple {animation:river-shine 2.8s ease-in-out infinite alternate}
  .glint-two {animation-delay:-1.6s}
  .island-cascade {animation:water-stream 1.4s linear infinite}
}
@keyframes buddy-hop {to{transform:translate(-3px,-6px) rotate(-5deg)}}
@keyframes deck-lower {from{transform:rotate(-60deg)}to{transform:rotate(0)}}
@keyframes mill-turn {to{transform:rotate(360deg)}}
@keyframes boat-rock {from{transform:translate(-1px,-1px) rotate(-3deg)}to{transform:translate(2px,2px) rotate(3deg)}}
@keyframes firefly-drift {0%,15%{opacity:0}70%{opacity:.9}100%{opacity:.2;transform:translate(7px,-9px)}}
@keyframes river-shine {from{opacity:.35;transform:scaleX(.75)}to{opacity:.92;transform:scaleX(1.12)}}
@keyframes water-stream {to{background-position:0 27px}}
@media(max-width:740px){
 .island-atlas {grid-template-columns:1fr}
 .live-picture {aspect-ratio:3/2;min-height:0;flex:auto}
 .live-picture .hero-token {--figure:clamp(36px,8.5vw,53px)}
 .island-atlas .island-journal {padding:18px}
 .live-picture button.forest-pin {width:23px;height:23px;min-height:23px}
 .secret-mail {width:22px;height:26px}
 .field-message {top:6px;left:6px;padding:8px 8px 8px 11px}
}
.trail-buddy img {width:auto;max-width:none;height:100%}
.island-dragonfly {position:absolute;left:25%;top:80%;height:2px;width:10px;background:#1a635e;border-radius:100%;transform:rotate(-25deg)}
.island-dragonfly::before,.island-dragonfly::after {content:"";position:absolute;left:45%;width:4px;height:7px;border-radius:100%;background:#c9f8ecc4;border:1px solid #5d8e87}
.island-dragonfly::before {bottom:1px;transform:rotate(28deg)}.island-dragonfly::after {top:1px;transform:rotate(-24deg)}
@media(prefers-reduced-motion:no-preference) {
 .island-dragonfly {animation:dragonfly-pass 10s ease-in-out infinite}
 .revealing-mist {position:absolute;width:25%;height:30%;border-radius:50%;background:radial-gradient(closest-side,#d4e4ddc9,transparent);animation:mist-lift 1.6s ease-out both}
}
@keyframes dragonfly-pass {0%,15%,100%{opacity:0;transform:translate(0,0) rotate(-25deg)}30%{opacity:1}55%{transform:translate(23px,-10px) rotate(3deg)}72%{opacity:1}90%{opacity:0;transform:translate(44px,-18px) rotate(-25deg)}}
@keyframes mist-lift {from{opacity:.9;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-40%,-70%)}}

/* В портретной раскладке планшета оставляем карте её нарисованные пропорции. */
@media (min-width:741px) and (max-width:1024px) and (orientation:portrait) {
  .island-atlas {grid-template-columns:minmax(0,1fr)}
  .live-picture {flex:none;width:100%;aspect-ratio:3/2}
  .island-atlas .island-journal {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);column-gap:28px;border-left:0}
  .island-journal>* {grid-column:1}
  .island-journal .journal-clue {grid-column:2;grid-row:2 / span 4;align-self:start;margin:0}
  .island-journal hr {width:100%}
  .island-journal button {justify-self:start}
}
@media (pointer:coarse) {
  .live-picture button.forest-pin.visited::before,
  .live-picture .map-secret::after {
    content:"";position:absolute;left:50%;top:50%;width:max(100%,40px);height:max(100%,40px);
    transform:translate(-50%,-50%);border-radius:50%;
  }
  .field-message button,.sheet-nav button {min-height:44px}
}
