:root {
    color-scheme: dark;
    --transition-navy: #07172c;
    --transition-gold: #d7a94f;
    --transition-cream: #fff8e8;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; overflow: hidden; }
body { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; background: #050b13; color: #fff; }
button, a { -webkit-tap-highlight-color: transparent; }
.transition-page { position: relative; width: 100vw; height: 100vh; overflow: hidden; isolation: isolate; }
.transition-video { position: absolute; inset: 0; z-index: -5; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.transition-shade { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(2,10,22,.78) 0%, rgba(2,10,22,.42) 36%, rgba(2,10,22,.08) 67%, rgba(2,10,22,.28) 100%), linear-gradient(180deg, rgba(0,5,13,.28), transparent 55%, rgba(0,5,13,.7)); }
.transition-brand { position: absolute; z-index: 10; top: 24px; left: clamp(24px, 4vw, 72px); display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; filter: drop-shadow(0 4px 12px rgba(0,0,0,.32)); }
.transition-brand-logo { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 7px 16px rgba(0,0,0,.34)); }
.transition-brand strong { display: grid; font-size: 17px; line-height: 1.25; }
.transition-brand small { margin-top: 3px; color: rgba(255,255,255,.7); font-size: 9px; letter-spacing: .12em; }
.transition-skip { position: absolute; z-index: 20; top: 28px; right: clamp(24px, 4vw, 72px); min-height: 46px; padding: 0 22px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; background: rgba(7,18,34,.52); color: #fff; font-weight: 800; cursor: pointer; backdrop-filter: blur(14px); transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.transition-skip:hover { transform: translateY(-2px); background: rgba(193,142,54,.78); border-color: #f3ce84; }
.transition-progress { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.16); }
.transition-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #c28a34, #ffe4a5, #d2a24c); box-shadow: 0 0 16px rgba(255,210,119,.9); }

.guide-message-card { position: absolute; z-index: 5; left: clamp(28px, 6vw, 110px); bottom: clamp(65px, 10vh, 120px); width: min(660px, calc(100vw - 56px)); padding: clamp(26px, 3.5vw, 50px); border: 1px solid rgba(234,199,132,.35); border-radius: 28px; background: linear-gradient(135deg, rgba(5,18,37,.88), rgba(7,20,39,.58)); box-shadow: 0 30px 70px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.guide-eyebrow { color: #e9bd69; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.guide-message-card h1 { max-width: 560px; margin: 14px 0 22px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(32px, 4vw, 62px); line-height: 1.25; font-weight: 650; }
.guide-message { display: none; margin: 0; color: rgba(255,255,255,.84); font-size: clamp(16px, 1.3vw, 22px); line-height: 1.8; }
.guide-message.is-active { display: block; animation: message-in .6s ease both; }
.guide-direction { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; color: #f4d18e; }
.guide-direction span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(244,209,142,.6); border-radius: 50%; font-size: 30px; animation: direction-pulse 1.25s ease-in-out infinite; }
.walking-light { position: absolute; z-index: -2; top: -20%; width: 12vw; height: 150%; transform: skewX(-13deg); background: linear-gradient(180deg, transparent, rgba(255,224,169,.16), transparent); filter: blur(8px); animation: walking-light 2.6s linear infinite; }
.walking-light-one { left: 33%; }
.walking-light-two { left: 64%; animation-delay: -1.3s; }

.ride-shade { background: radial-gradient(circle at 50% 40%, rgba(0,0,0,.08), rgba(1,6,12,.46) 74%), linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.52)); }
.ride-console { position: absolute; z-index: 6; left: 50%; top: 50%; width: min(510px, calc(100vw - 42px)); min-height: 430px; padding: 40px 48px; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 2px solid rgba(224,175,81,.84); border-radius: 28px; background: rgba(2,13,25,.78); box-shadow: 0 0 50px rgba(217,166,68,.18), inset 0 0 40px rgba(44,101,151,.12); backdrop-filter: blur(12px); }
.ride-console > span { color: #e4b65e; font-size: 12px; font-weight: 900; letter-spacing: .22em; }
.ride-console h1 { margin: 16px 0 7px; font-size: clamp(26px, 3vw, 42px); }
.ride-console > p { margin: 0; color: #b9c8d7; }
.ride-floor-number { margin: 28px 0 0; color: #ffd98d; font-size: clamp(78px, 10vw, 142px); line-height: .9; text-shadow: 0 0 30px rgba(255,199,94,.36); }
.ride-floor-number small { font-size: .27em; }
.ride-arrow { margin: 12px 0; color: #f1c875; font-size: 42px; animation: elevator-arrow 1s ease-in-out infinite; }
.ride-status { display: none; min-height: 28px; color: rgba(255,255,255,.8) !important; font-size: 15px; line-height: 1.7; }
.ride-status.is-active { display: block; animation: message-in .5s ease both; }
.ride-speed-lines { position: absolute; inset: -40%; z-index: -1; opacity: .36; background: repeating-linear-gradient(90deg, transparent 0 12%, rgba(255,214,129,.38) 12.4% 12.8%, transparent 13.2% 25%); animation: speed-lines .52s linear infinite; }
.ride-door { position: absolute; top: 0; bottom: 0; z-index: 12; width: 50.5%; background: linear-gradient(90deg, #755026 0%, #d8ad62 35%, #98662f 68%, #e2bd75 100%); box-shadow: inset 0 0 0 1px rgba(255,231,180,.35); animation-duration: 1.15s; animation-fill-mode: forwards; animation-timing-function: cubic-bezier(.25,.7,.2,1); }
.ride-door-left { left: -50.5%; animation-name: ride-close-left; }
.ride-door-right { right: -50.5%; animation-name: ride-close-right; }
.ride-progress { z-index: 30; }

@keyframes ride-close-left { 0% { left: -50.5%; } 58% { left: 0; } 100% { left: 0; opacity: 0; } }
@keyframes ride-close-right { 0% { right: -50.5%; } 58% { right: 0; } 100% { right: 0; opacity: 0; } }
@keyframes walking-light { from { transform: translateX(-22vw) skewX(-13deg); } to { transform: translateX(50vw) skewX(-13deg); } }
@keyframes direction-pulse { 50% { transform: translateX(7px); box-shadow: 0 0 22px rgba(244,209,142,.25); } }
@keyframes elevator-arrow { 50% { transform: translateY(-8px); text-shadow: 0 0 18px rgba(241,200,117,.8); } }
@keyframes speed-lines { from { transform: translateY(-5%); } to { transform: translateY(5%); } }
@keyframes message-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
    .transition-brand { top: 18px; left: 18px; }
    .transition-brand-logo { width: 46px; height: 46px; }
    .transition-brand strong { font-size: 14px; }
    .transition-brand small { display: none; }
    .transition-skip { top: 20px; right: 18px; min-height: 42px; padding: 0 16px; }
    .guide-message-card { left: 18px; right: 18px; bottom: 45px; width: auto; padding: 24px; }
    .guide-message-card h1 { font-size: 32px; }
    .ride-console { min-height: 390px; padding: 32px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .walking-light, .guide-direction span, .ride-arrow, .ride-speed-lines, .ride-door { animation: none; }
}

/* Fixed-position three-image concierge guide. Keep the final image visible until navigation completes. */
.transition-guide-slideshow,
.transition-guide-slideshow .transition-page {
    background: #f6f3ed;
}
.transition-fullscreen-player {
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
}
.transition-guide-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #f6f3ed;
}
.transition-guide-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transform: none;
    animation: none;
    transition: opacity .16s linear;
    user-select: none;
    pointer-events: none;
}
.transition-guide-slide.is-active {
    opacity: 1;
}
.transition-guide-slideshow.is-leaving .transition-guide-slides {
    opacity: 1;
    transition: none;
}
.transition-skip-minimal {
    z-index: 30;
    top: 24px;
    right: 28px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(3,10,20,.42);
    box-shadow: 0 8px 28px rgba(0,0,0,.22);
    backdrop-filter: blur(8px);
}
@media (max-width: 760px) {
    .transition-guide-slide { object-position: center center; }
    .transition-skip-minimal { top: 16px; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .transition-guide-slide { transition: none; }
}

/* V1.0.2: preserve the guide artwork aspect ratio and use the 4K source without stretching. */
.transition-guide-slide {
    display: block;
    max-width: none;
    max-height: none;
    image-rendering: auto;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}
