:root{font-family:"Segoe UI","Microsoft YaHei",sans-serif;color:#1d3e4c;background:#f5f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e6ac48;outline-offset:5px}[hidden]{display:none!important}.shell{max-width:1536px;margin:0 auto;padding:0 48px}.topbar{height:105px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:inherit;text-decoration:none;font-size:21px;letter-spacing:3px;font-weight:750}.brand-icon{width:40px;height:43px;border:1px solid #a8bdbe;border-radius:13px;display:grid;place-items:center;font-size:30px;color:#346c7b;background:#ebf0eb}.brand small{display:block;font-size:9px;font-weight:600;letter-spacing:2.4px;margin-top:5px}.edition{display:flex;align-items:center;gap:9px;font-size:11px;color:#6f8588;letter-spacing:1px}.edition>span{width:6px;height:6px;background:#7ba78f;border-radius:50%}.edition i{font-style:normal;border-left:1px solid #ccd6d2;padding-left:12px;margin-left:4px;color:#9aaaab}.topbar nav{display:flex;align-items:center;gap:23px}.text-button,.icon-button{background:none;border:0;color:#56717a;font-size:12px}.text-button span{display:inline-grid;place-items:center;border:1px solid #a6b9bb;border-radius:50%;width:16px;height:16px;margin-left:8px;font-size:10px}.icon-button{border:1px solid #ced8d4;border-radius:50%;width:35px;height:35px;font-weight:750}.game-frame{position:relative;isolation:isolate;border-radius:16px;overflow:hidden;background:#a4dce5;aspect-ratio:16/9;box-shadow:0 16px 44px #27485812,0 1px 3px #304f4815}canvas{display:block;width:100%;height:100%;outline:0}.vignette{position:absolute;inset:0;box-shadow:inset 0 0 80px #14343c12;pointer-events:none;border:1px solid #ffffff66;border-radius:16px}.game-top,.game-bottom{position:absolute;left:3.5%;right:3.5%;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.game-top{top:5%}.game-bottom{bottom:5%;align-items:flex-end}.chapter{display:flex;flex-direction:column;gap:7px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:700;color:#6a909c}.chapter strong{font-size:17px;letter-spacing:2px;color:#173d52}.route{display:flex;align-items:center;gap:12px;color:#3e6c7d;font-size:10px}.route-track{position:relative;width:180px;height:3px;background:#6b99a44d;border-radius:3px}.route-track>i{display:block;height:100%;background:#1e6c7d;width:0}.route-track b{position:absolute;top:-3px;left:0;background:#f8bd63;width:9px;height:9px;border-radius:50%;border:2px solid white}.route-track em{position:absolute;left:40%;width:5px;height:5px;border:1px solid #6995a1;background:#c3e2e6;top:-1px;border-radius:50%}.glass-button{pointer-events:auto;background:#effaffaa;border:1px solid #fff8;border-radius:7px;color:#355f6d;padding:9px 12px;font-size:11px;display:flex;gap:9px;align-items:center;backdrop-filter:blur(10px)}kbd{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border:1px solid #c8d4cf;border-radius:4px;box-shadow:0 2px 0 #d7dfd7;color:#527078;background:#fafbf7;font:10px "Segoe UI",sans-serif}.glass-button kbd{min-width:17px;height:17px;font-size:9px;background:#fff7;box-shadow:none;border-color:#aac5cc}.movement{display:flex;gap:12px;align-items:center;color:white;text-shadow:0 1px 3px #163b5255}.movement>span{font-size:24px;border:1px solid #fff7;border-radius:50%;width:41px;height:41px;display:grid;place-items:center}.movement small{display:block;font-size:10px;letter-spacing:2px;margin-bottom:4px}.movement strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.movement em{font-style:normal;font-size:11px;font-weight:400;opacity:.7}.charge-box{width:206px;background:#123e5a9e;backdrop-filter:blur(14px);border:1px solid #dcfaff40;border-radius:10px;padding:14px 16px;color:#ecfbff}.charge-heading{display:flex;justify-content:space-between;font-size:11px;letter-spacing:1px}.charge-heading strong{font-size:12px;color:#ffd17c}.charge-track{height:5px;border-radius:10px;background:#e4f7ff26;margin:11px 0 8px;overflow:hidden}.charge-track i{display:block;background:#f8c367;height:100%;width:0;transition:width .08s}.charge-box>small{font-size:9px;letter-spacing:.4px;color:#b9d5df}.overlay{position:absolute;inset:0;display:flex;align-items:center;pointer-events:none}.intro{margin-left:6%;margin-top:-1%;pointer-events:auto}.intro-kicker{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:2px;color:#447382}.intro-kicker i{display:inline-block;width:18px;height:1px;background:#558897}h1{font-size:clamp(28px,4.35vw,65px);font-weight:800;letter-spacing:3px;line-height:1.4;margin:23px 0 19px;color:#173c50}h1 span{color:#337d8a}.intro p{font-size:13px;line-height:2.1;color:#4f7885;letter-spacing:1px}.primary-button{background:#173f51;color:#fffdf1;border:1px solid #173f51;border-radius:7px;padding:15px 23px;min-width:189px;font-size:13px;letter-spacing:1px;box-shadow:0 5px 12px #193f5220;transition:background .2s,transform .2s}.primary-button:hover{background:#286579;transform:translateY(-2px)}.primary-button span{margin-left:28px;color:#f4c77d;font-size:19px;line-height:10px}.intro .primary-button{margin-top:20px}.intro-note{display:flex;align-items:center;gap:9px;color:#638994;font-size:9px;margin-top:20px;letter-spacing:.4px}.intro-note b{font-weight:400;opacity:.5}.scene-caption{position:absolute;bottom:5%;left:6%;display:flex;align-items:center;gap:13px;font-size:9px;letter-spacing:1px;color:#d2eff0}.scene-caption i{width:24px;height:1px;background:#d1e9e88a}.bottom-bar{min-height:76px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce3da;gap:16px}.controls{display:flex;align-items:center;gap:17px;font-size:10px;color:#6c8389}.controls>span{display:flex;align-items:center;gap:5px}.controls b{font-weight:400;opacity:.4}.bottom-bar p{display:flex;align-items:center;gap:10px;font-size:10px;color:#65808a}.depth-symbol{letter-spacing:3px;font-size:15px}.auto-tag{font-size:8px;letter-spacing:1px;border:1px solid #c7d7ce;border-radius:3px;padding:3px 5px;color:#7e9789;margin-left:5px}.below{display:flex;justify-content:space-between;color:#96a69f;font-size:9px;letter-spacing:1px;padding:22px 0}.below i{font-style:normal;margin:0 8px}.overlay.modal{background:#18384a55;backdrop-filter:blur(7px);justify-content:center;pointer-events:auto}.dialog{padding:36px 44px;background:#f3f7f0f5;box-shadow:0 12px 50px #12334530;border:1px solid #fff9;border-radius:15px;min-width:370px;max-width:90%;text-align:center}.dialog h2{font-size:30px;letter-spacing:3px;margin:14px 0 10px}.dialog p{font-size:12px;line-height:1.9;color:#6c858d;white-space:pre-line}.dialog .primary-button{margin-top:15px}.dialog-restart{display:block;margin:17px auto 0;color:#80938f;border:0;background:none;font-size:11px}.help-grid{display:grid;grid-template-columns:auto auto;gap:14px 23px;text-align:left;align-items:center;font-size:11px;color:#56757f;margin:25px 0}.help-grid span:nth-child(odd){display:flex;gap:4px}.toast{position:absolute;left:50%;top:18%;transform:translate(-50%,-7px);border:1px solid #fff7;background:#133f55d9;color:#f8f7e9;border-radius:22px;padding:11px 22px;font-size:12px;letter-spacing:1px;opacity:0;transition:opacity .25s,transform .25s;pointer-events:none;white-space:nowrap}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.shell{padding:0 48px}.topbar{height:120px}}@media(max-width:850px){.shell{padding:0 18px}.topbar{height:80px}.brand{font-size:17px}.edition{display:none}.topbar nav{gap:10px}.bottom-bar{flex-wrap:wrap;gap:0;padding:14px 0}.bottom-bar p{margin-bottom:0}.below{font-size:8px;letter-spacing:0}.intro{margin-left:5%}.intro-kicker{font-size:8px}.intro p{font-size:10px}.intro-note{font-size:7px;margin-top:12px}.intro .primary-button{margin-top:6px;padding:10px 15px;min-width:150px;font-size:11px}h1{margin:10px 0;font-size:4.4vw}.game-top{top:4%}.route-track{width:100px}.chapter strong{font-size:12px}.chapter .eyebrow{font-size:7px}.charge-box{width:160px;padding:9px 12px}.charge-box>small{font-size:8px}.scene-caption{font-size:7px}.controls{gap:8px}.glass-button span{display:none}.dialog{padding:20px;min-width:320px}.dialog h2{font-size:23px}.help-grid{margin:15px 0;gap:10px 16px}.dialog p{margin:8px}.dialog .primary-button{padding:10px 15px}.movement strong{font-size:18px}}@media(max-width:550px){.shell{padding:0 10px}.brand-icon{width:30px;height:33px;font-size:23px}.brand small{font-size:7px}.text-button{font-size:10px}.game-frame{aspect-ratio:4/3}.intro-kicker{letter-spacing:1px}h1{font-size:6.5vw}.intro p{font-size:10px}.intro-note{display:none}.scene-caption{bottom:4%}.route{display:none}.charge-box{width:142px}.game-top,.game-bottom{left:5%;right:5%}.below span:last-child{display:none}.controls{font-size:9px}.bottom-bar p{font-size:9px}.dialog{min-width:280px;padding:18px}.help-grid{gap:8px 10px;font-size:9px}.dialog .eyebrow{font-size:8px}.dialog h2{font-size:21px;margin-top:8px}}
.underwater .chapter strong,.underwater .route{color:#d0eef2}.underwater .eyebrow{color:#a4d5df}.underwater .route-track{background:#d1f3f242}.underwater .route-track>i{background:#b1dfe1}
@media(max-width:550px){.toast{top:auto;bottom:37%;max-width:90%;white-space:normal;text-align:center;font-size:10px;padding:8px 14px}}
/* Graphite art uses warm, light paper even below the waterline. */
:root{background:#f4efe5;color:#3f443d}.game-frame{background:#eee7d8;border-color:#cfc8b9}.vignette{opacity:.22}
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.health-fish-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:3px}
.health-fish{position:relative;display:block;aspect-ratio:320/131;min-width:0}
.health-fish img{display:block;width:100%;height:100%;object-fit:contain;user-select:none}
.health-fish .fish-empty{opacity:.19}
.health-fish .fish-fill{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--fish-fill,100%)) 0 0);transition:clip-path .18s ease}
.chapter .health-box.low{background:transparent}
.health-box.low .fish-fill{filter:sepia(1) saturate(2.5) hue-rotate(310deg)}
.icon-button:disabled{opacity:.4;cursor:default}
@media(max-width:550px){.health-fish-track{gap:3px}.game-top{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.health-fish .fish-fill{transition:none}}
.underwater .chapter strong,.underwater .route{color:#40483d}.underwater .eyebrow{color:#6d7565}.underwater .route-track{background:#59614b33}.underwater .route-track>i{background:#807b58}
.movement{color:#41483e;text-shadow:0 1px 2px #f3ecde}.movement>span{border-color:#6c735e66}.scene-caption{color:#626d5c}.scene-caption i{background:#78816c88}

/* Journey cards share the drawing's paper, graphite and small amber landmarks. */
:root{--paper:#f4efe5;--paper-raised:#faf6ee;--graphite:#41483e;--pencil:#757968;--pencil-rule:#77745c38;--lamp:#ab8148}
.chapter-transition{position:absolute;inset:0;z-index:8;background:var(--paper);pointer-events:auto}
.overlay.modal{background:#46453742}.dialog{background:var(--paper-raised);border-color:var(--pencil-rule);color:var(--graphite);max-height:94%;overflow:auto;overscroll-behavior:contain;width:min(530px,90%)}
.dialog .eyebrow,.dialog p{color:var(--pencil)}.dialog h2{font-size:25px;letter-spacing:1px}
.dialog-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin-top:18px}.dialog-actions .dialog-restart{margin:0;padding:7px 0;color:var(--pencil)}
.dialog-restart:hover,.intro-chapters:hover{color:var(--graphite);text-decoration:underline;text-underline-offset:4px}
.chapter-story{margin:18px 0 4px;border-top:1px solid var(--pencil-rule);border-bottom:1px solid var(--pencil-rule);padding:14px 10px;color:var(--pencil);font-size:12px;line-height:2;white-space:pre-line}
.chapter-list{display:grid;gap:6px;margin:18px 0 0;text-align:left}.chapter-option{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:12px;min-height:48px;width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:0;padding:9px 14px;color:var(--graphite)}
.chapter-option strong{font-size:13px;font-weight:600;letter-spacing:1px}.chapter-option small{font-size:10px;color:var(--pencil)}.chapter-number{font-size:17px;font-variant-numeric:tabular-nums;color:var(--lamp)}
.chapter-option[aria-current]{background:transparent;border-color:transparent}.chapter-option[aria-current] strong{color:var(--lamp)}.chapter-option:hover:enabled{background:transparent}.chapter-option:hover:enabled strong,.chapter-option:focus-visible strong{text-decoration:underline;text-underline-offset:4px}.chapter-option:focus-visible{outline:none}.chapter-option:disabled{opacity:.45;cursor:default}.chapter-option:disabled .chapter-number{color:var(--pencil)}
.intro-chapters{display:block;margin-top:14px;padding:2px 0;border:0;background:none;color:var(--graphite);font-size:11px;letter-spacing:1px}.intro p.journey-status{font-size:10px;color:var(--pencil);margin:10px 0 0;line-height:1.5}.intro-note{margin-top:12px}
button:disabled{cursor:default}.primary-button:disabled{opacity:.65;transform:none}.text-button:disabled{opacity:.45}
.toast{top:25%;max-width:60%;white-space:normal;text-align:center;line-height:1.6}.toast[data-kind=story]{background:#f7f1e5f5;border-color:var(--pencil-rule);border-radius:5px;color:var(--graphite);letter-spacing:1.5px}.toast[data-kind=injury]{background:#785449ed}
@media(max-width:850px){.dialog{padding:18px 24px}.dialog h2{font-size:21px}.chapter-list{margin-top:10px;gap:4px}.chapter-option{min-height:39px;padding:6px 10px}.dialog-actions{margin-top:10px;gap:4px 14px}.dialog .primary-button{margin-top:10px}.chapter-story{margin:10px 0 0;padding:8px;font-size:11px}.intro-chapters{margin-top:10px}.intro p.journey-status{font-size:9px}.toast{font-size:10px}}
@media(max-width:550px){.topbar nav{gap:5px}.text-button{padding:4px}.text-button span{display:none}.dialog{min-width:0;width:94%;max-width:94%;padding:14px 16px}.dialog h2{font-size:19px;margin:8px 0}.dialog p{font-size:10px;margin:6px 0}.chapter-list{gap:3px;margin-top:8px}.chapter-option{min-height:34px;grid-template-columns:25px 1fr auto;gap:8px;padding:5px 9px}.chapter-number{font-size:14px}.chapter-option strong{font-size:11px}.chapter-option small{font-size:9px}.dialog .primary-button{padding:8px 12px;font-size:11px;min-width:160px;margin-top:8px}.dialog-actions .dialog-restart{font-size:10px;padding:5px 0}.chapter-story{font-size:10px;line-height:1.8;padding:6px}.toast{top:29%;bottom:auto;max-width:82%;padding:7px 12px}.intro .primary-button{min-width:185px}.intro-chapters{font-size:10px;margin-top:10px}.intro p.journey-status{margin-top:7px}.scene-caption{font-size:6px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.chapter{padding:10px 12px;background:#f4efe5ed;border:1px solid var(--pencil-rule);border-radius:8px}
.chapter .eyebrow,.underwater .chapter .eyebrow{color:#646d5d}.chapter strong,.underwater .chapter strong{color:var(--graphite)}
.chapter .health-box{background:transparent;border:0;padding:5px 0 0;width:159px;backdrop-filter:none}
.chapter .health-box.low{background:#fff0e8eb;border-radius:4px}
.movement{padding:9px 12px;background:#f4efe5ed;border:1px solid var(--pencil-rule);border-radius:8px;text-shadow:none}
.route{padding:8px 12px;background:#f4efe5ed;border:1px solid var(--pencil-rule);border-radius:6px}
.game-frame[data-mode=finished] .overlay.modal{background:transparent;backdrop-filter:none;justify-content:flex-start;padding-left:4%}
.game-frame[data-mode=finished] .dialog{width:38%;max-width:510px;min-width:0;padding:32px 28px;background:#faf6eef5;text-align:left;box-shadow:0 8px 30px #39382415}
.game-frame[data-mode=finished] .dialog h2{font-size:clamp(19px,2vw,27px);line-height:1.5;letter-spacing:1px}
.game-frame[data-mode=finished] .dialog p{line-height:2}.game-frame[data-mode=finished] .dialog-actions{justify-content:flex-start}
@media(max-width:850px){.chapter{padding:8px 10px}.chapter .health-box{width:133px}.movement{padding:7px 10px}.route{padding:6px 9px}.game-frame[data-mode=finished] .dialog{padding:22px 20px;width:42%}}
@media(max-width:550px){.chapter{padding:6px 8px}.chapter .health-box{width:118px}.movement{padding:6px 8px;gap:8px}.game-frame[data-mode=finished] .overlay.modal{justify-content:center;padding-left:0}.game-frame[data-mode=finished] .dialog{width:94%;max-width:94%;padding:18px 20px}.game-frame[data-mode=finished] .dialog h2{font-size:19px}.game-frame[data-mode=finished] .dialog p{font-size:11px}}

/* Observational pencil cloud masses carry text in their bright inner volume. */
:root{--cloud-art:url('./assets/ui/cloud-dialog.png');--cloud-toast:url('./assets/ui/cloud-toast.png')}
.dialog,.game-frame[data-mode=finished] .dialog{
  --cloud-rim:36px;border:var(--cloud-rim) solid transparent;
  border-image:none;background:var(--cloud-art) center / 100% 100% no-repeat border-box;
  border-radius:0;box-shadow:none;backdrop-filter:none;
  padding:32px 92px 24px;color:var(--graphite);scrollbar-width:thin;scrollbar-color:#9c998b transparent;
}
.dialog{width:min(850px,94%)}
.dialog h2{margin:10px 0 8px}
.dialog p{line-height:1.65}
.dialog .help-grid{gap:6px 23px;margin:12px 0}
.dialog .primary-button{margin-top:10px}
.game-frame[data-mode=help] .dialog-actions,.game-frame[data-mode=chapters] .dialog-actions{display:none}
.game-frame[data-mode=finished] .dialog{padding:32px 40px 24px}
.toast,.toast[data-kind]{
  --cloud-rim:22px;border:var(--cloud-rim) solid transparent;
  border-image:none;background:var(--cloud-toast) center / 100% 100% no-repeat border-box;
  border-radius:0;box-shadow:none;backdrop-filter:none;
  padding:8px 24px;color:var(--graphite);line-height:1.8;max-width:66%;
}
.overlay.modal~.scene-caption{visibility:hidden}
@media(max-width:850px){.dialog,.game-frame[data-mode=finished] .dialog{--cloud-rim:28px;padding:40px 34px 24px}.toast,.toast[data-kind]{--cloud-rim:18px;padding:6px 20px}}
@media(max-width:550px){.dialog,.game-frame[data-mode=finished] .dialog{--cloud-rim:20px;padding:28px 24px 18px;width:94%;max-width:94%}.toast,.toast[data-kind]{--cloud-rim:16px;padding:5px 16px;max-width:90%}}

/* The chapter and five-fish display sit inside the same simple ink cloud. */
.chapter{background:var(--cloud-toast) center / 100% 100% no-repeat;border:0;border-radius:0;padding:25px 34px 20px;gap:6px;text-align:center}
.chapter .health-box{align-self:center;padding-top:3px}
.chapter .health-box.low{background:transparent}
@media(max-width:850px){.chapter{padding:23px 28px 16px;gap:5px}}
@media(max-width:550px){.chapter{padding:20px 24px 12px;gap:4px}}

/* A pencil route drawn directly on the scene, with a travelling penguin. */
.route{padding:0;gap:12px;background:transparent;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;height:42px}
.route-nest{width:42px;height:22px;flex:none;background:url('./assets/level-01/pencil-v1/penguin-nest.png') center / contain no-repeat}
.route-flag{width:27px;height:34px;flex:none;background:url('./assets/ui/route-flag.svg') center / contain no-repeat}
.route-track{width:180px;height:2px;background:#77796a55;border-radius:40%}
.route-track>i{background:#777565;height:1px}
.route-track #route-dot{top:auto;bottom:-1px;left:0;width:34px;height:19px;border:0;border-radius:0;background:url('./assets/character/slide.png') center bottom / contain no-repeat;transform:translateX(-50%)}
.underwater .route-track{background:#77796a55}.underwater .route-track>i{background:#777565}
@media(max-width:850px){.route{padding:0;gap:8px}.route-track{width:100px}.route-nest{width:33px}.route-flag{width:23px}}

/* Keep the ending copy inside the cloud's broad central clearing. */
.game-frame[data-mode=finished] .dialog{width:min(610px,92%);max-width:610px;padding:80px 72px 44px;text-align:center}
.game-frame[data-mode=finished] .dialog h2{font-size:clamp(19px,2vw,27px);text-wrap:balance}
.game-frame[data-mode=finished] .dialog p{margin:12px auto;max-width:380px;text-wrap:pretty}
.game-frame[data-mode=finished] .dialog-actions{justify-content:center}
@media(max-width:850px){.game-frame[data-mode=finished] .dialog{width:80%;padding:62px 48px 32px}}
@media(max-width:550px){.game-frame[data-mode=finished] .dialog{width:94%;max-width:94%;padding:48px 28px 24px}.game-frame[data-mode=finished] .dialog h2{font-size:19px}}

@media(max-width:550px){
 .game-frame[data-mode=finished] .dialog{border:0;max-height:96%;padding:48px 42px 28px}
 .game-frame[data-mode=finished] .dialog h2{font-size:17px;line-height:1.4;margin:6px 0}
 .game-frame[data-mode=finished] .dialog p{font-size:10px;line-height:1.6;margin:8px auto}
 .game-frame[data-mode=finished] .dialog .primary-button{margin-top:6px}
 .game-frame[data-mode=finished] .dialog-actions{margin-top:6px}
}

/* Movement is represented by its icon alone. */
.movement{padding:0;gap:0;background:transparent;border:0;border-radius:0;box-shadow:none;text-shadow:none}

/* Temporary quiet start screen; keep the copy available for later revisions. */
.intro > :not(#start){display:none}
/* The scene's floating ice is the start control, aligned in canvas coordinates. */
.intro{position:absolute;inset:0;margin:0;width:auto;text-align:center;pointer-events:none}
.intro #start{position:absolute;left:37.65625%;top:60.833333%;width:24.21875%;height:20.138889%;min-width:0;margin:0;padding:1.1% 0 0;display:flex;align-items:flex-start;justify-content:center;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--graphite);font-family:Georgia,"Times New Roman",serif;font-size:clamp(13px,2.1vw,26px);font-weight:600;letter-spacing:2px;pointer-events:auto;clip-path:polygon(0 0,100% 0,100% 28%,87% 63%,72% 75%,53% 100%,32% 76%,13% 58%,0 28%);transition:color .15s}
.intro #start:hover{background:transparent;color:#a07838;transform:none}
.intro #start:active{transform:none;color:#735224}
.intro #start:focus-visible{outline:0;background:#d6b66a22;text-decoration:underline;text-underline-offset:5px}
.game-frame[data-mode=menu] .scene-caption{visibility:hidden}

/* A quiet pause menu: chapter count, resume, and the three journey actions. */
.game-frame[data-mode=paused] .dialog{padding-top:60px;padding-bottom:50px}
.game-frame[data-mode=paused] #dialog-kicker{display:block;font-size:14px;letter-spacing:2px}
.game-frame[data-mode=paused] #resume{margin-top:24px}
.game-frame[data-mode=paused] .dialog-actions{margin-top:24px}
@media(max-width:550px){.game-frame[data-mode=paused] .dialog{padding:40px 24px 32px}.game-frame[data-mode=paused] #resume{margin-top:18px}.game-frame[data-mode=paused] .dialog-actions{gap:8px 14px;margin-top:18px}}

/* Keep chapter names and completion labels in the cloud's central clearing. */
.game-frame[data-mode=chapters] .chapter-list{width:72%;max-width:400px;margin:18px auto 0}
.game-frame[data-mode=chapters] .chapter-option{grid-template-columns:30px minmax(0,1fr) auto;gap:10px;padding-left:6px;padding-right:6px}
.game-frame[data-mode=chapters] .chapter-option strong,.game-frame[data-mode=chapters] .chapter-option small{white-space:nowrap}
.game-frame[data-mode=chapters] #dialog-title{font-size:clamp(16px,2.2vw,25px);text-wrap:balance}
@media(max-width:550px){.game-frame[data-mode=chapters] .chapter-list{width:94%;margin-top:12px}.game-frame[data-mode=chapters] .chapter-option{grid-template-columns:23px minmax(0,1fr) auto;gap:6px;padding:5px 2px}}

/* Retry sits on the same pencil ice material as the scene. */
#retry{width:124px;height:48px;flex:none;justify-content:center;align-items:flex-start;gap:7px;padding:10px 8px 0;background-color:transparent;background-position:center;background-size:100% 100%;background-repeat:no-repeat;border:0;border-radius:0;box-shadow:none;backdrop-filter:none;color:var(--graphite);font-size:11px}
#retry:hover{color:var(--lamp)}
#retry #retry-label{display:inline}
@media(max-width:550px){#retry{width:108px;height:43px;padding-top:8px;font-size:10px;gap:5px}}

/* The chapter picker uses the wider toast cloud and a safe central text area. */
.game-frame[data-mode=chapters] .dialog{background-image:url('./assets/ui/cloud-toast.png');border:0;padding:150px 80px 42px;width:min(850px,94%)}
.game-frame[data-mode=chapters] #dialog-title{max-width:76%;margin:0 auto 14px;font-size:clamp(16px,2vw,23px);line-height:1.45;text-wrap:balance}
.game-frame[data-mode=chapters] .chapter-list{width:68%;margin:0 auto 12px}
@media(max-width:1100px){
 .game-frame[data-mode=chapters] .dialog{padding:110px 45px 24px}
 .game-frame[data-mode=chapters] #dialog-title{margin-bottom:8px}
 .game-frame[data-mode=chapters] .chapter-option{min-height:32px;padding-top:4px;padding-bottom:4px}
 .game-frame[data-mode=chapters] .chapter-list{gap:2px;margin-bottom:6px}
}
@media(max-width:550px){
 .game-frame[data-mode=chapters] .dialog{padding:70px 28px 16px;max-height:96%}
 .game-frame[data-mode=chapters] #dialog-title{max-width:84%;font-size:14px;margin-bottom:8px}
 .game-frame[data-mode=chapters] .chapter-list{width:88%;gap:0;margin-bottom:6px}
 .game-frame[data-mode=chapters] .chapter-option{min-height:20px;padding-top:2px;padding-bottom:2px}
 .game-frame[data-mode=chapters] #resume{margin-top:4px;padding:6px 12px;min-width:120px}
}

@media(max-width:550px){.game-frame[data-mode=chapters] .chapter-number{font-size:12px;line-height:16px}.game-frame[data-mode=chapters] .chapter-option{line-height:16px}.game-frame[data-mode=chapters] #resume{line-height:16px}}

/* Text return stays above the cloud's lower pencil rim. */
.game-frame[data-mode=chapters] #resume{min-width:0;margin:0 auto;padding:5px 16px;background:transparent;border:0;border-radius:0;box-shadow:none;color:var(--graphite);font-size:12px;line-height:18px}
.game-frame[data-mode=chapters] #resume:hover{background:transparent;transform:none;text-decoration:underline;text-underline-offset:4px}
.game-frame[data-mode=chapters] .chapter-list{margin-bottom:2px}
/* Preserve the original cloud proportions in the pause menu. */
.game-frame[data-mode=paused] .dialog{width:min(680px,94%);aspect-ratio:1657/949;border:0;padding:60px 48px 40px;background-size:contain;display:flex;flex-direction:column;align-items:center;justify-content:center}
@media(max-width:550px){.game-frame[data-mode=paused] .dialog{padding:38px 24px 24px}.game-frame[data-mode=paused] .dialog-actions{gap:4px 12px}.game-frame[data-mode=paused] .dialog-actions .dialog-restart{font-size:9px;padding:3px 0}}

/* Tilt both fish layers together so partial health remains aligned. */
.health-fish{transform:rotate(-18deg);transform-origin:center}
.health-fish-track{padding:3px 0}

/* Short completion content still needs a full, undistorted cloud. */
.game-frame[data-mode=chapter-complete] .dialog{width:min(620px,90%);aspect-ratio:1657/949;border:0;padding:50px 40px 34px;background-size:contain;display:flex;flex-direction:column;align-items:center;justify-content:center}
.game-frame[data-mode=chapter-complete] #dialog-kicker{display:block;margin:0 0 24px;letter-spacing:1px}
.game-frame[data-mode=chapter-complete] #resume{display:block;margin:0}
.game-frame[data-mode=chapter-complete] .dialog-actions{display:none}
@media(max-width:550px){.game-frame[data-mode=chapter-complete] .dialog{padding:32px 22px 20px}.game-frame[data-mode=chapter-complete] #dialog-kicker{margin-bottom:16px;font-size:9px}}

.game-frame[data-mode=chapter-complete] #dialog-kicker{font-size:18px;line-height:1.5;letter-spacing:1px}
@media(max-width:550px){.game-frame[data-mode=chapter-complete] #dialog-kicker{font-size:14px}}

/* Final completion shares the clear vertical layout of chapter completion. */
.game-frame[data-mode=finished] .dialog{width:min(620px,90%);max-width:620px;aspect-ratio:1657/949;border:0;padding:60px 40px 36px;background-size:contain;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.game-frame[data-mode=finished] #dialog-kicker{display:block;margin:0 0 24px;font-size:18px;line-height:1.5;letter-spacing:1px}
.game-frame[data-mode=finished] #resume{display:block;margin:0}
.game-frame[data-mode=finished] .dialog-actions{margin-top:18px}
@media(max-width:550px){.game-frame[data-mode=finished] .dialog{width:94%;padding:38px 24px 24px}.game-frame[data-mode=finished] #dialog-kicker{font-size:14px;margin-bottom:16px}.game-frame[data-mode=finished] .dialog-actions{margin-top:12px}}
