/* Fine game grain at a fixed scale; no stretched cover texture. */
body{background:#0d1011}
.wrap{padding-inline:clamp(25px,5vw,70px)}
.site-header{background:#0c100fed;isolation:isolate}
.site-header:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(assets/game-grain.webp) 0 0/480px auto repeat;opacity:.035}

/* Each section owns its background. The first scene ends before the next title. */
.world-section{background:#0d1011}
.world-section:before{inset:0;background-position:center 55%;mask-image:linear-gradient(transparent,#000 12%,#000 70%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 12%,#000 70%,transparent)}
.path-section{position:relative;isolation:isolate;background:#0d1011}
.path-section:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,#090d0ee8,#090d0edb 48%,#090d0edb),url(assets/gallery-depths.webp) center 58%/cover no-repeat;mask-image:linear-gradient(transparent,#000 8%,#000 86%,transparent);-webkit-mask-image:linear-gradient(transparent,#000 8%,#000 86%,transparent)}
.paths{padding-top:100px;padding-bottom:105px}
.paths .section-head{margin-bottom:48px}
.mechanics article{background:#0b1012}
.mechanics article:after{background:linear-gradient(0deg,#0b1012 0%,#0b1012f5 18%,#0b1012d9 40%,#0b101235 85%,#0b101225)}
.closing{background:transparent}

/* Draw the whole ornament proportionally; never squeeze its height. */
.site-header:after,.site-footer:before,.hero-languages:after,.dialog-top:after{left:50%;right:auto;transform:translateX(-50%);width:min(580px,76%);height:30px;background:url(assets/divider-proportional.webp) center/contain no-repeat;opacity:.66}
.site-header:after{bottom:-10px;pointer-events:none}
.hero-languages:after{width:min(290px,80%);height:25px;bottom:-5px}
.site-footer:before{top:-15px;width:min(480px,74%)}
.dialog-top:after{bottom:-10px;width:min(460px,70%);height:30px}
.site-footer{background:#0b0e0f;justify-content:space-between;padding-block:30px}
.site-footer>span{font-size:12px;color:#a6a89b}

/* One continuous backing and one overlaid frame: no separate side strips. */
dialog{border:0;background:#0d1011;isolation:isolate;box-shadow:0 28px 120px #000c}
dialog:before{content:'';position:absolute;inset:0;z-index:-1;background:url(assets/game-grain.webp) 0 0/480px auto repeat;opacity:.035;pointer-events:none}
dialog:after{content:'';position:absolute;inset:0;z-index:9;pointer-events:none;border:14px solid transparent;border-image:url(assets/frame-relief.webp) 155 / 14px / 0 stretch}
.dialog-top{background:none;padding:30px 30px 28px}
.demo-note{background:none;padding:19px 22px 23px}
.fishing-shell{background:#0d1011}
@media(max-width:650px){
 .site-header{background:#0c100fed}
 .world-section:before{inset:0}
 .paths{padding-top:75px;padding-bottom:75px}
 .path-section:before{background-position:45% center}
 .paths .section-head{margin-bottom:32px}
 .site-header:after{width:80%;height:24px;bottom:-8px}
 .hero-languages:after{height:21px;bottom:-5px}
 .site-footer:before{height:24px;top:-12px}
 .dialog-top{padding:22px 20px 24px}
 .dialog-top:after{height:24px;bottom:-8px;width:75%}
 .demo-note{padding:14px 17px 20px}
 .site-footer{padding-block:30px;gap:20px}
}

/* Soft photographic joins share the same backing color, without rectangular bands. */
.hero:before{background:linear-gradient(0deg,#0d1011 0%,#0d1011e8 5%,#0d101166 18%,#0d101110 35%,#0a130d05 65%,#08100d55),linear-gradient(90deg,#07100b30,#07100b20)}
.world-section,.path-section{background:transparent}
.world-section:after{display:none}
.world-section:before{inset:0;mask-image:linear-gradient(transparent,#000 180px,#000 calc(100% - 180px),transparent);-webkit-mask-image:linear-gradient(transparent,#000 180px,#000 calc(100% - 180px),transparent)}
.river-section:before{background:linear-gradient(90deg,#0d1011e8 0%,#0d1011c4 30%,#0d10112b 65%),linear-gradient(0deg,#0d1011,transparent 25%,transparent 75%,#0d1011)}
.site-header{background:linear-gradient(#0c100ff2,#0c100fe8 65%,#0c100f00);box-shadow:none}
.site-header:before{mask-image:linear-gradient(#000 65%,transparent);-webkit-mask-image:linear-gradient(#000 65%,transparent)}
.site-header:after{bottom:12px;height:20px}
.site-footer{background:linear-gradient(transparent,#0b0e0f 70%);padding-top:44px}
.site-footer:before{top:10px;height:20px}
.dialog-top{padding-bottom:42px}
.dialog-top:after{bottom:10px;height:24px}
dialog{width:min(1200px,96vw,calc((96svh - 205px)*1.7778))}

/* Three original strips, overlapped rather than joined by CSS border-image. */
.button,.header-cta,.fishing-toolbar button,.mobile-controls button{--button-left:url(assets/button-normal-left.webp);--button-right:url(assets/button-normal-right.webp);--button-middle:url(assets/button-normal-middle.webp);--button-height:54px}
.button:hover,.header-cta:hover,.fishing-toolbar button:hover,.mobile-controls button:hover{--button-left:url(assets/button-hover-left.webp);--button-right:url(assets/button-hover-right.webp);--button-middle:url(assets/button-hover-middle.webp)}
.button:active,.header-cta:active,.fishing-toolbar button:active,.mobile-controls button:active{--button-left:url(assets/button-pressed-left.webp);--button-right:url(assets/button-pressed-right.webp);--button-middle:url(assets/button-pressed-middle.webp)}
.button:disabled,.header-cta:disabled,.fishing-toolbar button:disabled,.mobile-controls button:disabled{--button-left:url(assets/button-disabled-left.webp);--button-right:url(assets/button-disabled-right.webp);--button-middle:url(assets/button-disabled-middle.webp)}
.header-cta{--button-height:44px}
.button:before,.header-cta:before,.button:hover:before,.button:active:before,.button:disabled:before,.header-cta:hover:before,.header-cta:active:before{border:0;border-image:none;background-image:var(--button-left),var(--button-right),var(--button-middle);background-position:left center,right center,center center;background-repeat:no-repeat;background-size:calc(var(--button-height)*.7625) 100%,calc(var(--button-height)*.7625) 100%,calc(100% - var(--button-height)*1.475) 100%}
.fishing-toolbar button,.mobile-controls button{--button-height:32px;height:var(--button-height);min-height:var(--button-height);border:0;border-image:none;white-space:nowrap;padding:4px 25px;background-image:var(--button-left),var(--button-right),var(--button-middle);background-position:left center,right center,center center;background-repeat:no-repeat;background-size:calc(var(--button-height)*.7625) 100%,calc(var(--button-height)*.7625) 100%,calc(100% - var(--button-height)*1.475) 100%}
.fishing-toolbar button:hover,.fishing-toolbar button:active,.mobile-controls button:hover,.mobile-controls button:active{border-image:none}
@media(max-width:650px){
 .site-header{height:144px;align-items:flex-start;padding-top:16px;background:linear-gradient(#0c100ff5,#0c100fe8 75%,transparent)}
 .site-header nav{top:72px;background:none}
 .site-header:after{bottom:12px;height:24px}
 .site-footer{padding-top:44px}
 .site-footer:before{top:10px;height:20px}
 .dialog-top{padding-bottom:36px}
 .dialog-top:after{bottom:8px;height:22px}
 .fishing-toolbar button{--button-height:28px;padding:3px 20px}
 .mobile-controls button{--button-height:44px;padding:0 20px}
 .river-section:before{background:linear-gradient(0deg,#0d1011,#0d1011d9 35%,#0d101120 80%,#0d1011 100%),linear-gradient(90deg,#0d101170,transparent)}
}
.language-memory{display:block;margin:-13px auto 24px;padding:3px 8px;border:0;background:none;color:#b6b39e;font:10px/1.5 var(--sans);cursor:pointer}.language-memory:hover{color:#ecd6a7}
.cookie-notice{position:fixed;z-index:50;right:22px;bottom:22px;width:min(470px,calc(100vw - 30px));background:#101415;color:#e8dfcc;padding:25px 25px 23px;box-shadow:0 15px 70px #000b;border:1px solid #a48b5466}
.cookie-notice[hidden]{display:none}.cookie-notice h2{font:28px/1.15 var(--serif);padding-right:30px}.cookie-notice p{font:12px/1.8 var(--sans);margin:15px 0 20px;color:#bfc2b5}.cookie-close{position:absolute;right:12px;top:10px;width:32px;height:32px;border:0;background:none;color:#c5b384;font:26px var(--serif)}.cookie-actions{display:flex;gap:12px;flex-wrap:wrap}.cookie-notice .button{--button-height:42px;min-height:42px;font-size:10px;padding:10px 25px}.cookie-notice .button:before{filter:brightness(.9)}
@media(max-width:650px){.cookie-notice{right:15px;bottom:15px;padding:23px 22px}.cookie-notice h2{font-size:26px}.cookie-actions .button{flex:1;white-space:nowrap;font-size:9px;padding-inline:22px}.language-memory{font-size:9px;margin-top:-12px}}

/* Crossfade complete photographs, rather than fading two pictures through a black band. */
main{position:relative;isolation:isolate;--section-blend:clamp(220px,18vw,420px)}
.hero{isolation:auto}
.hero-art{z-index:0}
.hero:before{z-index:1;background:linear-gradient(0deg,#080c0c99,#080c0c4d 30%,#080c0c0d 65%,#080c0c40),linear-gradient(90deg,#07100b30,#07100b20)}
.hero:after{z-index:2}
.hero-content{position:relative;z-index:4}
.hero-bottom,.scene-credit{z-index:4}
.world-section,.path-section{isolation:auto}
.world,.paths{position:relative;z-index:4}
.world-section:before,.path-section:before{z-index:3;top:calc(-1*var(--section-blend));bottom:0;mask-size:100% 100%;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;-webkit-mask-repeat:no-repeat}
.world-section:before{mask-image:linear-gradient(to bottom,#0000 0px,#00000007 calc(var(--section-blend)*.1),#0000001b calc(var(--section-blend)*.2),#00000037 calc(var(--section-blend)*.3),#0000005a calc(var(--section-blend)*.4),#00000080 calc(var(--section-blend)*.5),#000000a5 calc(var(--section-blend)*.6),#000000c8 calc(var(--section-blend)*.7),#000000e4 calc(var(--section-blend)*.8),#000000f8 calc(var(--section-blend)*.9),#000 var(--section-blend));-webkit-mask-image:linear-gradient(to bottom,#0000 0px,#00000007 calc(var(--section-blend)*.1),#0000001b calc(var(--section-blend)*.2),#00000037 calc(var(--section-blend)*.3),#0000005a calc(var(--section-blend)*.4),#00000080 calc(var(--section-blend)*.5),#000000a5 calc(var(--section-blend)*.6),#000000c8 calc(var(--section-blend)*.7),#000000e4 calc(var(--section-blend)*.8),#000000f8 calc(var(--section-blend)*.9),#000 var(--section-blend))}
.path-section:before{mask-image:linear-gradient(to bottom,#0000,#00000007 calc(var(--section-blend)*.1),#0000001b calc(var(--section-blend)*.2),#00000037 calc(var(--section-blend)*.3),#0000005a calc(var(--section-blend)*.4),#00000080 calc(var(--section-blend)*.5),#000000a5 calc(var(--section-blend)*.6),#000000c8 calc(var(--section-blend)*.7),#000000e4 calc(var(--section-blend)*.8),#000000f8 calc(var(--section-blend)*.9),#000 var(--section-blend),#000 calc(100% - 250px),#000000e4 calc(100% - 200px),#000000a5 calc(100% - 150px),#0000005a calc(100% - 100px),#0000001b calc(100% - 50px),#0000);-webkit-mask-image:linear-gradient(to bottom,#0000,#00000007 calc(var(--section-blend)*.1),#0000001b calc(var(--section-blend)*.2),#00000037 calc(var(--section-blend)*.3),#0000005a calc(var(--section-blend)*.4),#00000080 calc(var(--section-blend)*.5),#000000a5 calc(var(--section-blend)*.6),#000000c8 calc(var(--section-blend)*.7),#000000e4 calc(var(--section-blend)*.8),#000000f8 calc(var(--section-blend)*.9),#000 var(--section-blend),#000 calc(100% - 250px),#000000e4 calc(100% - 200px),#000000a5 calc(100% - 150px),#0000005a calc(100% - 100px),#0000001b calc(100% - 50px),#0000)}
.river-art,.river-section:before{mask-image:linear-gradient(transparent,#000 220px,#000 calc(100% - 220px),transparent);-webkit-mask-image:linear-gradient(transparent,#000 220px,#000 calc(100% - 220px),transparent)}
.river-section:before{background:linear-gradient(90deg,#080c0de8,#080c0dad 35%,#080c0d16 75%)}
@media(min-width:651px){.site-header>.brand-group,.site-header>nav,.site-header>.header-end{transform:translateY(-7px)}.site-header:after{bottom:19px}}
@media(max-width:650px){main{--section-blend:220px}.river-art,.river-section:before{mask-image:linear-gradient(transparent,#000 160px,#000 calc(100% - 160px),transparent);-webkit-mask-image:linear-gradient(transparent,#000 160px,#000 calc(100% - 160px),transparent)}.river-section:before{background:linear-gradient(0deg,#080c0de6,#080c0d80 45%,#080c0d22)}}

/* A contained journey panel, rather than isolated captions at the viewport edges. */
.hero-bottom{isolation:isolate;left:50%;right:auto;transform:translateX(-50%);width:min(1080px,calc(100% - 100px));bottom:32px;padding:18px 29px;min-height:66px;background:linear-gradient(100deg,#0b1112c9,#0b11129c,#0b1112c9);backdrop-filter:blur(7px);gap:28px;color:#c6c5af}
.hero-bottom:before{content:'';position:absolute;inset:0;z-index:-1;border:15px solid transparent;border-image:url(assets/frame-relief.webp) 155 / 15px / 0 stretch;opacity:.57;pointer-events:none}
.hero-bottom>span[data-i18n]{display:flex;align-items:center;gap:17px;font-size:10px;line-height:1.6;letter-spacing:.13em;max-width:none}
.hero-bottom>span[data-i18n]:before{content:'';display:block;flex:0 0 12px;width:12px;height:22px;background:url(assets/ornament-emerald.webp) center/contain no-repeat}
.hero-bottom>a{display:inline-flex;align-items:center;gap:16px;font:17px/1.2 var(--serif);letter-spacing:0;color:#e2c895;white-space:nowrap}
.hero-bottom>a>span{font-size:23px;margin:0;color:#c5a76c}
.hero-bottom>a:hover{color:#fff0c8}
@media(max-width:650px){.hero-bottom{width:calc(100% - 44px);bottom:20px;min-height:90px;padding:16px 19px;flex-direction:column;justify-content:center;gap:10px}.hero-bottom>span[data-i18n]{font-size:8px;letter-spacing:.09em;gap:10px;max-width:100%;justify-content:center}.hero-bottom>span[data-i18n]:before{width:9px;height:17px;flex-basis:9px}.hero-bottom>a{font-size:16px;max-width:none;text-align:center;gap:12px}.hero-bottom>a>span{font-size:19px}}
