.island-shell {
 --island-ink:#214a49;
 --island-muted:#405e5e;
 --island-line:#cee1d7;
 --island-paper:#fffcf6;
 max-width:1120px;
 margin-inline:auto;
 color:var(--island-ink);
}
.island-shell .island-top {
 display:grid;
 grid-template-columns:auto 1fr auto;
 align-items:center;
 gap:12px;
 margin-bottom:14px;
}
.island-top h1 {
 margin:0;
 text-align:center;
 font-size:clamp(1.44rem,4vw,2.25rem);
 line-height:1.05;
 color:var(--island-ink);
}
.island-shell button {min-inline-size:60px;min-block-size:60px}
.island-shell button:focus-visible,.island-shell.keyboard-navigation button:focus {outline:3px solid #315953;outline-offset:3px}
.island-intro,.island-ending,.island-field {
 position:relative;
 isolation:isolate;
 overflow:hidden;
 border:2px solid #a8cfc4;
 border-radius:28px;
 background:#bde3db;
}
.island-illustration {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;z-index:-1}
.island-intro {
 display:grid;
 align-items:end;
 min-height:clamp(25rem,51vw,34rem);
}
.island-intro-content {
 position:relative;
 display:flex;
 align-items:end;
 gap:clamp(0px,2vw,20px);
 padding:clamp(12px,3vw,33px);
 background:linear-gradient(transparent,#17494444);
}
.island-intro-crew {width:clamp(98px,26vw,210px);flex:none;position:relative}
.island-intro-crew > svg:first-child {width:100%;display:block}
.island-intro-crew > svg:nth-child(2) {
 position:absolute;
 width:45%;
 right:-5%;
 top:-12%;
 transform:rotate(8deg);
 filter:drop-shadow(0 2px 3px #2e514328);
}
.island-intro-copy,.island-ending-card {
 padding:clamp(15px,2.5vw,26px);
 background:var(--island-paper);
 border:2px solid #e0d6b9;
 border-radius:23px;
 box-shadow:0 6px 0 #31595335;
}
.island-shell h2 {font-size:clamp(1.32rem,3.7vw,2.1rem);color:var(--island-ink);margin:0}
.island-intro-copy p,.island-ending-card p {margin:8px 0 14px;font-size:clamp(1.03rem,2vw,1.21rem);line-height:1.32}
.island-actions {display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.island-shell .island-primary {background:#cce8da;color:#244d45;border-color:#97beb0;box-shadow:0 4px 0 #97beb0}
.island-actions .audio-btn,.island-feedback .audio-btn,.island-task-head .audio-btn {display:grid;place-items:center;padding:0;border-color:#d0ddd4;color:var(--island-ink)}
.island-shell .island-puzzle-link {display:block;margin:16px auto 6px}
.island-layout {display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:14px;align-items:start}
.island-field {aspect-ratio:1.25;min-height:300px;touch-action:pan-y}
.island-field .island-illustration {object-fit:fill}
.island-trails {position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.island-trails polyline {stroke:#785d4b;stroke-width:3px;stroke-dasharray:5 8;stroke-linecap:round;fill:none;vector-effect:non-scaling-stroke;opacity:.68}
.island-shell .island-stop {
 position:absolute;
 left:clamp(32px,var(--x),calc(100% - 32px));
 top:var(--y);
 translate:-50% -50%;
 z-index:2;
 display:grid;
 place-content:center;
 justify-items:center;
 width:60px;
 height:60px;
 padding:3px;
 border:2px solid #809d80;
 border-radius:50%;
 background:#fff9e9;
 box-shadow:0 3px 0 #546b527a;
 color:#274e50;
}
.island-stop-sign {font-size:1.58rem;line-height:1}
.island-stop-name {
 position:absolute;
 bottom:-20px;
 width:max-content;
 max-width:106px;
 padding:2px 5px;
 background:#fffcf2;
 color:#214747;
 border:1px solid #cbdacc;
 border-radius:9px;
 font-size:.76rem;
 line-height:1.1;
 font-weight:800;
 pointer-events:none;
}
.island-panel {min-width:0;display:grid;gap:10px}
.island-feedback {
 display:grid;
 grid-template-columns:1fr 60px;
 gap:9px;
 align-items:center;
 min-height:150px;
 padding:13px;
 border:2px solid var(--island-line);
 border-radius:21px;
 background:var(--island-paper);
 position:relative;
}
.island-message {min-width:0;padding:0 2px}
.island-message p {margin:0;font-weight:800;font-size:1rem;line-height:1.22;overflow-wrap:anywhere;min-height:2.4em}
.island-message small,.island-ending-card small {display:block;color:var(--island-muted);font-size:.82rem;line-height:1.25;margin-top:4px}

.island-shell .island-crew-button {
 background:#fffdf7;
 border:2px solid var(--island-line);
 border-radius:17px;
 display:grid;
 place-items:center;
 gap:2px;
 min-width:60px;
 padding:6px 2px;
 color:var(--island-ink);
 font-size:clamp(.70rem,2.7vw,.95rem);
 touch-action:none;
 user-select:none;
}
.island-shell .island-crew-button[aria-pressed=true] {border-color:#5c9d8b;background:#dbefe3;box-shadow:inset 0 -3px 0 #a9cebd}
.island-crew-button.feed-lifting {opacity:.32}
.island-crew-art {height:58px;width:57px;pointer-events:none}
.island-drag-art {width:100%;height:100%}
.island-ending {min-height:420px;display:grid;place-items:center;padding:16px}
.island-ending-card {width:min(100%,420px);text-align:center}
.island-ending-card > svg {width:118px;height:115px}
.island-ending-card .island-actions {justify-content:center;margin-top:14px}
.island-pause {display:none}
.island-paused > :not(.island-top,.island-pause) {display:none}
.island-paused .island-pause {display:grid;place-items:center;padding:30px}
@media(max-width:850px) {
 .island-layout {display:flex;flex-direction:column;max-width:660px;margin-inline:auto}
 .island-field,.island-panel {width:100%}
 .island-field {aspect-ratio:1.55;min-height:280px}
 .island-feedback {min-height:95px}
}
@media(max-width:450px) {
 .island-shell .island-top {gap:5px}
 .island-shell .star-bank {padding:5px 8px;min-width:48px}
 .island-shell .star-bank svg {width:18px}
 .island-field {aspect-ratio:auto;height:clamp(300px,75vw,335px)}
 .island-stop-name {font-size:.68rem;max-width:82px}
 .island-intro {min-height:420px}
 .island-intro-content {display:grid;gap:0;padding:10px}
 .island-intro-crew {margin-left:auto;margin-right:12px}
 .island-intro-copy {padding:12px}
 .island-actions .island-primary {padding-inline:11px}
}

.island-shell .island-stop-open {
 border-color:#50795c;
 background:#fff1b9;
 box-shadow:0 0 0 4px #fffbe2,0 0 0 7px #50795c5e,0 5px 0 #587550;
}
.island-shell .island-stop-open:hover,.island-shell .island-stop-open.island-over {background:#ffdf8f}
.island-shell .island-stop:disabled {opacity:1}
.island-shell .island-stop-locked {
 border-style:dashed;
 border-color:#698075;
 background:#ecede3;
 box-shadow:0 3px 0 #546b5248;
}
.island-stop-locked .island-stop-sign {filter:saturate(.4)}
.island-shell .island-stop-solved {border-color:#689776;background:#e8f6db}
.island-stop-state {
 display:grid;
 place-items:center;
 position:absolute;
 top:-5px;
 right:-5px;
 width:24px;
 height:24px;
 border:1px solid #fffbed;
 border-radius:50%;
 background:#f7f6eb;
 box-shadow:0 2px 3px #31484238;
 color:#3c5650;
}
.island-stop-state svg {width:15px;height:15px}
.island-stop-open .island-stop-state {background:#326752;color:#fffbed}
.island-stop-solved .island-stop-state {background:#e2f3d9;color:#2f6345;font-weight:900}
.island-stop-open .island-stop-name {border-color:#809473}
.island-progress {
 display:flex;
 align-items:center;
 justify-content:center;
 gap:clamp(5px,2vw,12px);
 padding:4px 0;
}
.island-progress span {
 display:grid;
 place-items:center;
 width:clamp(27px,6vw,38px);
 aspect-ratio:1;
 border:1px dashed #8faaa1;
 border-radius:50%;
 background:#fffcf6;
 color:#48655d;
 font-weight:850;
 font-size:.86rem;
}
.island-progress .island-stamp-done {border:1px solid #729a77;background:#ddf1d9;color:#23563e}

.island-challenge {
 --island-chapter:#f8eed4;
 position:relative;
 max-width:740px;
 margin-inline:auto;
 padding:clamp(10px,3.5vw,26px);
 border:2px solid #bcd5c6;
 border-radius:26px;
 background:linear-gradient(160deg,var(--island-chapter),#fffaf2 85%);
 box-shadow:0 6px 0 #bfd4c65e;
}
.island-task-head {
 display:grid;
 grid-template-columns:auto minmax(0,1fr) 60px;
 align-items:center;
 gap:clamp(6px,2vw,17px);
 padding:clamp(8px,2vw,15px);
 background:#fffdf5;
 border:1px solid #d5dfcf;
 border-radius:20px;
}
.island-task-hero {width:clamp(64px,13vw,108px);aspect-ratio:1}
.island-task-hero svg {width:100%;height:100%}
.island-task-copy p {font-size:clamp(1.04rem,2.7vw,1.34rem);font-weight:850;line-height:1.24;margin:5px 0}
.island-task-copy small {display:block;color:var(--island-muted);font-size:.83rem;line-height:1.28}
.island-task-body {margin:14px auto 0;max-width:540px}
.island-sum,.island-pattern,.island-chest-task {
 display:flex;
 align-items:center;
 justify-content:center;
 gap:clamp(4px,1.6vw,10px);
 min-height:82px;
 border:1px solid #d3d4b4;
 border-radius:19px;
 margin:0 0 12px;
 padding:8px 5px;
 background:#fffdf5;
}
.island-sum > b,.island-pattern > b {font-size:clamp(1.05rem,3.4vw,1.8rem)}
.island-sum > .island-coins {display:flex}
.island-pattern svg {width:16%;max-width:68px}
.island-chest-task {position:relative}
.island-chest-task svg:first-child {width:100px;height:89px}
.island-chest-task svg:nth-child(2) {width:63px;height:63px}
.island-choices {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(6px,2vw,12px)}
.island-shell .island-choice {
 display:grid;
 place-items:center;
 min-height:clamp(84px,18vw,138px);
 padding:clamp(4px,1.4vw,10px);
 border:2px solid #abc9b6;
 border-radius:18px;
 background:#fffdf7;
 box-shadow:0 4px 0 #abc9b6;
 color:#27524a;
}
.island-choice > span {display:grid;justify-items:center;width:100%;pointer-events:none}
.island-choice svg {width:100%;height:clamp(63px,15vw,110px)}
.island-shell .island-choice:hover {background:#f0f8e9}
.island-shell .island-choice.island-choice-retry {background:#fcebbe;border-color:#b7894c;box-shadow:0 4px #d9b77a}
.island-number {font-size:clamp(1.8rem,5.8vw,3rem);line-height:1.04}
.island-coins {display:grid;grid-template-columns:repeat(3,auto);gap:3px;justify-content:center}
.island-coin {
 display:grid;
 place-items:center;
 width:clamp(16px,4.5vw,26px);
 aspect-ratio:1;
 border:1.5px solid #a16b31;
 border-radius:50%;
 background:#f9d681;
 box-shadow:inset 0 0 0 2px #ffebad;
 color:#815421;
 font-size:.76rem;
 font-style:normal;
}
.island-task-feedback {min-height:2.6em;margin:13px 2px 0;font-size:.94rem;font-weight:760;color:#634924}
.island-clue-sticker {
 position:relative;
 display:grid;
 place-items:center;
 width:88px;
 aspect-ratio:1;
 margin:0 auto 10px;
 background:#fff1bd;
 border:2px solid #dfbf76;
 border-radius:28px;
 font-size:2.7rem;
}
.island-clue-sticker span {position:absolute;right:-7px;top:-13px;font-size:1.8rem;color:#8e641c}
@media(max-width:450px) {
 .island-task-head {grid-template-columns:minmax(0,1fr) 60px}
 .island-task-copy {grid-area:1 / 1 / span 2}
 .island-task-hero {grid-column:2;justify-self:center;width:53px}
 .island-task-head .audio-btn {grid-column:2}
 .island-task-copy small {font-size:.76rem}
}

.island-fleet {
 padding:clamp(10px,3vw,25px);
 border:2px solid var(--island-line);
 border-radius:24px;
 background:#fffdf5;
}
.island-fleet-head {
 display:flex;justify-content:space-between;align-items:center;
 gap:12px;margin-bottom:14px;
}
.island-fleet-head p {margin:4px 0 0;color:var(--island-muted);font-size:1rem}
.island-fleet-head .audio-btn {width:60px;padding:0;flex:none;display:grid;place-items:center}
.island-map-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.island-shell .island-map-card {
 display:grid;text-align:left;min-width:0;padding:0;
 overflow:hidden;border:2px solid #b5cfc2;border-radius:20px;
 color:var(--island-ink);background:var(--card-tint);
}
.island-map-card:focus-visible {outline-offset:1px}
.island-map-cover {position:relative;height:clamp(85px,18vw,150px);isolation:isolate;overflow:hidden}
.island-map-thumbnail {width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-1}
.island-map-captain,.island-map-loot {
 display:grid;place-items:center;position:absolute;bottom:6px;
 background:#fffaf1d9;border:1px solid #fcfae6;border-radius:40%;
}
.island-map-captain {left:10px;width:clamp(55px,8vw,89px);aspect-ratio:1}
.island-map-loot {right:9px;width:clamp(35px,6vw,62px);aspect-ratio:1}
.island-map-captain svg,.island-map-loot svg,.island-crew-art svg,.island-drag-art svg {width:100%;height:100%;object-fit:contain}
.island-map-details {display:grid;align-content:start;gap:4px;padding:9px 10px;font-size:.95rem;line-height:1.16}
.island-map-details strong {font-size:clamp(.96rem,2.3vw,1.27rem)}
.island-map-details small {font-size:.8rem;color:var(--island-muted);font-weight:800}
.island-fleet-footer {display:flex;flex-wrap:wrap;gap:10px;margin-top:15px}
.island-fleet-footer .secondary {display:flex;align-items:center;gap:6px}
.island-loot-card {min-height:125px}
.island-loot-illustration {width:min(90px,75%);margin:0 auto}
.island-loot-illustration svg {width:100%;height:88px}
.island-collection .island-map-details {text-align:center}
.island-intro-crew > svg {display:block;width:100%;filter:drop-shadow(0 3px 4px #63563160)}
.island-captain-actions {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px}
.island-captain-actions .island-crew-button {display:flex;gap:5px;padding:4px 7px}
.island-captain-actions .island-primary {padding-inline:8px}
.island-captain-actions .island-crew-art {height:44px;width:44px}
.island-map-mission {min-height:99px}
.island-map-mission .island-message p {font-size:1.2rem;min-height:0}
.island-progress {gap:clamp(3px,1vw,8px);flex-wrap:wrap}
.island-progress span {width:clamp(22px,5vw,33px);flex:none}
.island-picture-group {
 display:grid;grid-template-columns:repeat(3,max-content);align-items:center;justify-content:center;
 gap:clamp(0px,.8vw,5px);
}
.island-picture-cell {position:relative;font-size:clamp(.88rem,3.1vw,1.48rem);line-height:1.2}
.island-picture-crossed::after {
 content:'';position:absolute;left:-2px;right:-2px;top:50%;height:3px;
 background:#a34b4d;transform:rotate(-35deg);border-radius:2px;
}
.island-fleet-pattern .island-picture-cell {font-size:clamp(1.3rem,4.4vw,2.15rem)}
.island-fleet-pattern {min-height:73px}
.island-single-picture {font-size:clamp(1.9rem,7vw,4rem)}
.island-size-choice {font-size:calc(clamp(1.36rem,4vw,2.35rem) * var(--size-factor));line-height:1}
.island-count-tile {display:grid;place-items:center;width:clamp(34px,8vw,55px);aspect-ratio:1;border-radius:10px;background:#f5ead1}
.island-treasure-art {position:relative;width:185px;height:122px;margin-inline:auto}
.island-treasure-art svg {width:125px;height:115px;position:absolute;bottom:0;left:0}
.island-treasure-art svg:nth-child(2) {
 width:83px;height:83px;left:auto;right:0;bottom:16px;
 background:#fff4cb;border:2px solid #e9c674;border-radius:25px;
}
.island-replay {margin-top:13px}
.island-audio-status {font-size:.85rem;text-align:center;color:#633f30;margin:10px 0}
.island-audio-status:empty {display:none}
.island-shell .island-audio-retry {background:#fff0be;border-color:#a66d3c}
@media(max-width:650px) {
 .island-map-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .island-field {height:clamp(370px,87vw,450px);aspect-ratio:auto}
 .island-stop:not(.island-stop-open) .island-stop-name {display:none}
 .island-stop-name {max-width:90px;white-space:normal}
}
@media(max-width:370px) {
 .island-map-details {padding:8px 6px}
 .island-captain-actions .island-crew-art {width:38px;height:38px}
 .island-stop-state {top:-2px;right:-2px}
}
.island-shell .island-primary > svg,.island-fleet-footer .secondary > svg,.island-pause .primary > svg {
 width:25px;height:25px;flex:none;
}
.island-progress {display:grid;grid-template-columns:repeat(10,minmax(0,1fr));width:min(100%,370px);margin-inline:auto}
.island-progress span {width:100%;max-width:33px;justify-self:center}
