﻿html, body { height: 100%; }
body.cabins-page { margin: 0; overflow: hidden; background: #050a1e; color: var(--ink); font-family: var(--f-ui); }

.cabins-page .nav__right { display: none !important; }
.cabins-page [hidden] { display: none !important; }
.stage { position: fixed; inset: 0; background: #050a1e; }
.stage canvas { display: block; width: 100%; height: 100%; }
.still { position: absolute; inset: 0; overflow: hidden; }
.still img { position: absolute; left: 50%; top: 50%; width: 112%; height: 112%; object-fit: cover; transform: translate(-50%, -50%) translate(var(--px, 0), var(--py, 0)); transition: transform .6s var(--ease); will-change: transform; }
.stage .fx-scan, .stage .fx-grain { position: absolute; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.fade { position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 1; transition: opacity 1.4s ease; }
.fade.is-clear { opacity: 0; }
.fade.is-black { opacity: 1; transition: opacity .5s ease; }

.loading { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; overflow: hidden; background: #140904; transition: opacity 1.3s ease .1s, visibility 1.4s; }
.loading.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.loading.is-out .loading__box { transform: scale(1.04); opacity: 0; }
.loading__planks { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 115%, rgba(255, 120, 30, .34), rgba(120, 40, 10, .12) 45%, transparent 70%),
  radial-gradient(90% 70% at 50% 40%, transparent 40%, rgba(6, 2, 1, .75) 100%),
  repeating-linear-gradient(90deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 118px),
  repeating-linear-gradient(90deg, rgba(255, 200, 150, .025) 0 1px, transparent 1px 9px, rgba(0, 0, 0, .05) 9px 10px, transparent 10px 23px),
  linear-gradient(180deg, #2a140a, #3a1d0e 55%, #2a1308); }
.loading__fire { position: absolute; left: 50%; bottom: -18vh; width: min(120vw, 1300px); height: 60vh; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 60%, rgba(255, 150, 50, .5), rgba(255, 100, 20, .18) 45%, transparent 72%); filter: blur(10px); animation: ld-fire 2.6s ease-in-out infinite alternate; pointer-events: none; }
@keyframes ld-fire { 0% { opacity: .75; transform: translateX(-50%) scale(1); } 40% { opacity: .95; } 55% { opacity: .82; } 100% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
.loading__embers i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #ffe2a8; box-shadow: 0 0 6px 2px rgba(255, 170, 60, .9), 0 0 16px 4px rgba(255, 110, 20, .45); opacity: 0; animation: ld-ember var(--d) linear infinite; animation-delay: var(--w); }
.loading__embers i:nth-child(1) { --x: 12%; --s: 4px; --d: 6s; --w: 0s; } .loading__embers i:nth-child(2) { --x: 22%; --s: 3px; --d: 7.5s; --w: -2s; }
.loading__embers i:nth-child(3) { --x: 31%; --s: 5px; --d: 5.5s; --w: -4s; } .loading__embers i:nth-child(4) { --x: 40%; --s: 3px; --d: 8s; --w: -1s; }
.loading__embers i:nth-child(5) { --x: 47%; --s: 4px; --d: 6.5s; --w: -5s; } .loading__embers i:nth-child(6) { --x: 53%; --s: 3px; --d: 7s; --w: -3s; }
.loading__embers i:nth-child(7) { --x: 60%; --s: 5px; --d: 6s; --w: -6s; } .loading__embers i:nth-child(8) { --x: 68%; --s: 3px; --d: 8.5s; --w: -2.5s; }
.loading__embers i:nth-child(9) { --x: 76%; --s: 4px; --d: 5.8s; --w: -4.5s; } .loading__embers i:nth-child(10) { --x: 84%; --s: 3px; --d: 7.2s; --w: -.5s; }
.loading__embers i:nth-child(11) { --x: 91%; --s: 4px; --d: 6.8s; --w: -3.5s; } .loading__embers i:nth-child(12) { --x: 6%; --s: 3px; --d: 9s; --w: -7s; }
@keyframes ld-ember { 0% { opacity: 0; transform: translate(0, 0) scale(1); } 10% { opacity: 1; } 50% { transform: translate(24px, -48vh) scale(.85); } 80% { opacity: .7; } 100% { opacity: 0; transform: translate(-18px, -92vh) scale(.4); } }
.loading__box { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding: 0 24px; transition: transform 1.3s var(--ease), opacity 1s ease; }
.loading__logo { margin: 0; animation: ld-rise 1.4s var(--ease) both .2s; }
.loading__logo img { display: block; width: min(560px, 78vw); height: auto; filter: drop-shadow(0 0 1px #fff3d6) drop-shadow(0 0 10px rgba(255, 179, 90, .75)) drop-shadow(0 0 30px rgba(255, 128, 20, .55)) drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); animation: ld-lit 5s ease-in-out infinite; }
@keyframes ld-lit { 0%, 100% { filter: drop-shadow(0 0 1px #fff3d6) drop-shadow(0 0 10px rgba(255, 179, 90, .75)) drop-shadow(0 0 30px rgba(255, 128, 20, .55)) drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); } 50% { filter: drop-shadow(0 0 2px #fff3d6) drop-shadow(0 0 14px rgba(255, 179, 90, .9)) drop-shadow(0 0 44px rgba(255, 128, 20, .7)) drop-shadow(0 10px 30px rgba(0, 0, 0, .55)); } }
.loading__trail { position: relative; width: min(320px, 70vw); height: 16px; margin-top: 10px; padding: 3px; border-radius: 9px; background: repeating-linear-gradient(90deg, #3b2112 0 26px, #4a2a16 27px 29px, #3b2112 30px 60px), #3b2112; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 170, 90, .22), 0 10px 30px -12px rgba(0, 0, 0, .9); animation: ld-rise 1.2s var(--ease) both .5s; }
.loading__trail span { position: relative; display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #b8410c, #ff8a1f 60%, #ffd08a); box-shadow: 0 0 12px rgba(255, 138, 31, .7), 0 0 26px rgba(255, 110, 10, .35); transition: width .6s var(--ease); }
.loading__trail span::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle, #fff3d6, #ffb24a 45%, rgba(255, 120, 20, 0) 70%); animation: ld-pulse .9s ease-in-out infinite alternate; }
@keyframes ld-pulse { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.25); opacity: 1; } }
.loading__step { margin: 0; min-height: 1.3em; color: rgba(255, 220, 190, .8); letter-spacing: .24em; animation: ld-rise 1.2s var(--ease) both .65s; }
.loading.is-ready .loading__trail, .loading.is-ready .loading__step { display: none; }
.loading__go { position: relative; margin-top: 6px; height: 54px; padding: 0 30px; border: 0; border-radius: 16px; cursor: pointer; font: 800 13px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: #1c0b02; background: linear-gradient(180deg, #ffe0a8, #ffb24a 50%, #ff7a12); box-shadow: 0 0 0 1px rgba(255, 220, 170, .5) inset, 0 12px 30px -10px rgba(0, 0, 0, .8), 0 0 34px -4px rgba(255, 140, 30, .85); animation: ld-rise .9s var(--ease) both, ld-call 2.4s ease-in-out infinite .9s; transition: transform .2s var(--ease), filter .2s; }
.loading__go:hover { filter: brightness(1.07); transform: translateY(-2px); }
.loading__go:active { transform: scale(.97); }
.loading__go:focus-visible { outline: 2px solid #fff1dc; outline-offset: 4px; }
.loading__go[hidden] { display: none; }
@keyframes ld-call { 50% { box-shadow: 0 0 0 1px rgba(255, 220, 170, .5) inset, 0 12px 30px -10px rgba(0, 0, 0, .8), 0 0 52px 2px rgba(255, 150, 40, .95); } }
@keyframes ld-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .loading__fire, .loading__embers i, .loading__logo img, .loading__trail span::after, .loading__go { animation: none; }
  .loading__embers { display: none; }
}

.hud { position: fixed; z-index: 10; }
.hud--top { left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; padding: clamp(14px, 2vw, 26px) clamp(16px, 2.6vw, 34px); pointer-events: none; }
.hud--top > * { pointer-events: auto; }
.hud__back { color: rgba(244, 236, 230, .78); text-decoration: none; padding: 10px 14px; border-radius: 999px; background: rgba(5, 10, 30, .55); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); transition: color .2s, border-color .2s; }
.hud__back:hover { color: #fff; border-color: rgba(255, 176, 31, .5); }
.hud__left { display: flex; align-items: center; gap: 8px; }
.hud__sound { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: rgba(5, 10, 30, .55); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); color: rgba(244, 236, 230, .78); cursor: pointer; transition: color .2s, border-color .2s; }
.hud__sound:hover { color: #fff; border-color: rgba(255, 176, 31, .5); }
.hud__sound i { width: 14px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 4h3l4-3.5v11L3 8H0z'/%3E%3Cpath d='M9.5 3.2a4 4 0 0 1 0 5.6M11.3 1.4a6.6 6.6 0 0 1 0 9.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 12'%3E%3Cpath d='M0 4h3l4-3.5v11L3 8H0z'/%3E%3Cpath d='M9.5 3.2a4 4 0 0 1 0 5.6M11.3 1.4a6.6 6.6 0 0 1 0 9.2' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat; }
.hud__sound.is-off { color: rgba(244, 236, 230, .45); }
.hud__sound.is-off i { opacity: .5; }
.hud--br { right: clamp(18px, 3vw, 56px); bottom: clamp(34px, 7vh, 80px); }
body[data-sign="gold"], body { --sgA: #fff0a8; --sgB: #ffc233; --sgC: #f08a0a; --sgText: #1f0e00; --sgGlow: rgba(255, 176, 31, .75); --sgKeyBg: #1f0e00; --sgKeyFg: #ffd45c; --sgSpark: #fff4c2; --sgMark: "✦"; }
body[data-sign="ice"] { --sgA: #f4fcff; --sgB: #a8e0ff; --sgC: #4aa3ee; --sgText: #06244a; --sgGlow: rgba(120, 200, 255, .8); --sgKeyBg: #06244a; --sgKeyFg: #c8ecff; --sgSpark: #eaf8ff; --sgMark: "❆"; }
body[data-sign="ember"] { --sgA: #ffe0a8; --sgB: #ff9a3a; --sgC: #d9480f; --sgText: #2a0c02; --sgGlow: rgba(255, 120, 40, .8); --sgKeyBg: #2a0c02; --sgKeyFg: #ffc27a; --sgSpark: #ffe2b8; --sgMark: "✦"; }

.sign { display: grid; justify-items: end; gap: 2px; text-decoration: none; transform: translateY(28px); opacity: 0; transition: transform 1s var(--ease), opacity 1s; cursor: pointer; }
.sign:not(.is-in) { pointer-events: none; }
.sign.is-in { transform: none; opacity: 1; }
.sign__float { display: grid; justify-items: end; gap: 4px; animation: sign-float 3.6s ease-in-out infinite; }
@keyframes sign-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@keyframes sign-sheen { 0%, 20% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }

.sign__arrowWrap { --tilt: perspective(596px) translate(-77px, -13px) rotateY(-33deg) rotate(12.5deg) scale(2); position: relative; transform: var(--tilt); transform-origin: 100% 50%; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .6)) drop-shadow(0 0 16px var(--sgGlow)) drop-shadow(0 0 42px var(--sgGlow)) drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); transition: transform .35s var(--ease), filter .35s; }
.sign__arrow {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 17px 40px 15px 62px; overflow: hidden; isolation: isolate;
  color: var(--sgText); background: linear-gradient(180deg, var(--sgA) 0%, var(--sgB) 52%, var(--sgC) 100%);
  clip-path: polygon(0% 50%, 40px 0%, 100% 0%, calc(100% - 18px) 50%, 100% 100%, 40px 100%);
}
.sign__arrow::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%) 0 0 / 250% 100% no-repeat; animation: sign-sheen 5.5s ease-in-out infinite; animation-delay: .4s; }
.sign__arrow::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .1) 2px 4px), linear-gradient(180deg, rgba(255, 255, 255, .55), transparent 18%); }
.sign__txt { font: italic 900 clamp(24px, 2.5vw, 38px)/1 var(--f-display); font-stretch: 110%; text-transform: uppercase; letter-spacing: .01em; white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, .45); }
.sign__spark { position: absolute; color: var(--sgSpark); font-size: 16px; line-height: 1; text-shadow: 0 0 8px var(--sgGlow), 0 0 16px var(--sgGlow); pointer-events: none; animation: sign-twinkle 2.8s ease-in-out infinite; }
.sign__spark::before { content: var(--sgMark); }
.sign__spark:nth-child(1) { right: -14px; top: -10px; }
.sign__spark:nth-child(2) { left: 38%; top: -16px; font-size: 12px; animation-delay: .9s; }
.sign__spark:nth-child(3) { right: 26px; bottom: -14px; font-size: 13px; animation-delay: 1.6s; }
.sign__spark:nth-child(4) { left: 16%; bottom: -12px; font-size: 10px; animation-delay: 2.2s; }
@keyframes sign-twinkle { 0%, 100% { opacity: .25; transform: scale(.75) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(25deg); } }
.sign:hover .sign__arrowWrap, .sign:focus-visible .sign__arrowWrap { transform: var(--tilt) translateX(-8px) scale(1.03); filter: drop-shadow(0 0 3px rgba(255, 255, 255, .8)) drop-shadow(0 0 22px var(--sgGlow)) drop-shadow(0 0 60px var(--sgGlow)) drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.sign:active .sign__arrowWrap { transform: var(--tilt) translateX(-4px) scale(.98); }
.sign:focus-visible { outline: none; }
.sign.is-go { pointer-events: none; opacity: 0; transform: translateY(10px) scale(1.06); transition: transform .8s var(--ease), opacity .55s ease .15s; }
.sign.is-go .sign__arrowWrap { transform: var(--tilt) translateX(-90px); transition: transform .8s var(--ease), filter .35s; }

.hud--dev { left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 999px; background: rgba(5, 10, 30, .7); border: 1px solid rgba(255, 255, 255, .08); color: var(--ink-2); }
.hud--dev select, .hud--dev button { background: #0c1226; color: var(--ink); border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; padding: 4px 8px; font: 600 12px var(--f-ui); }
.hud--dev input[type="range"] { width: 120px; vertical-align: middle; }
.ref { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; }
.ref img { width: 100%; height: 100%; object-fit: cover; }


@media (max-width: 720px) {
  .sign__txt { font-size: 21px; }
  .sign__arrow { padding: 13px 30px 11px 46px; }
  .sign__arrowWrap { --tilt: perspective(596px) translate(-10px, -6px) rotateY(-33deg) rotate(12.5deg) scale(1.35); }
  .hud--dev { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sign__float, .sign__arrow::before, .sign__spark { animation: none; } }
