:root{color-scheme:dark;--ink:#f1e6cf;--dim:#c6c3b3;--gold:#d0b47a;--night:#141c1b}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--night);color:var(--ink);font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-underline-offset:5px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #f6ce85;outline-offset:5px}button:disabled{cursor:wait}button{min-height:44px}button,[role=button]{touch-action:manipulation}[hidden]{display:none!important}
#stage{position:fixed;inset:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}canvas{width:100%;height:100%;display:block;touch-action:none;outline:none}.cover{position:absolute;inset:0}#welcome{isolation:isolate;display:flex;flex-direction:column;overflow:auto;background:#18201d}.room-view{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#121e1ded 0%,#15201de0 30%,#131e1b6b 65%,#171d1738),linear-gradient(0deg,#101d1cf7 0%,transparent 40%,#121b1b66 100%),url(room.png) center/cover no-repeat}.room-view:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 85% 30%,#dfb06d20,transparent 55%);pointer-events:none}.arrival-header{display:flex;align-items:center;justify-content:space-between;padding:34px clamp(24px,5vw,84px);padding-right:340px;gap:24px}.world-mark{display:flex;align-items:center;gap:15px;font-size:12px;font-weight:600;letter-spacing:.24em;white-space:nowrap}.world-mark:first-letter{font:30px Georgia,serif}.mark-line{height:22px;width:1px;background:#bda98066}.edition{font:italic 15px Georgia,serif;color:#d8c7aa;white-space:nowrap}.arrival-main{flex:1;display:flex;justify-content:space-between;align-items:center;gap:40px;padding:24px clamp(24px,6vw,100px) 35px;min-height:470px}.story{width:min(630px,60%)}.eyebrow{font-size:10px;line-height:1.5;letter-spacing:.2em;text-transform:uppercase;margin:0 0 18px;color:var(--gold);font-weight:600}.eyebrow span{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--gold);margin:0 9px 2px 0}h1{font-size:clamp(52px,8vw,112px);line-height:.95;font-weight:250;letter-spacing:.13em;margin:0 0 25px}h2{font:normal clamp(26px,3vw,39px)/1.15 Georgia,"Times New Roman",serif;margin:0 0 18px}.premise{font-size:16px;line-height:1.75;color:#d0d1c4;margin:0 0 30px}.launch-block{max-width:485px}.launch-actions{display:flex;gap:24px;align-items:center}.primary{display:flex;align-items:center;justify-content:space-between;gap:32px;min-width:208px;border:1px solid #eed39f;background:#e6cf9f;color:#1d2925;padding:14px 21px;border-radius:2px;box-shadow:0 6px 30px #0002;font-weight:600}.primary:hover{background:#f6dfae}.primary span{font-size:22px;line-height:1}.text-button{color:#e1d1b0;background:transparent;border:0;border-bottom:1px solid #c3b28777;padding:8px 2px}.text-button:hover{color:#fff3d9;border-color:#fff3d9}.launch-note{font-size:12px;color:#c5c9bd;max-width:340px;margin:13px 0 0;line-height:1.5}.room-card{align-self:center;width:252px;flex-shrink:0;padding:23px 23px 18px;color:#24332d;background:#e7ddc4f2;box-shadow:0 8px 55px #0004;transform:rotate(2deg);border-top:4px solid #b19a66}.card-top{display:flex;justify-content:space-between;font-size:9px;font-weight:700;letter-spacing:.2em;border-bottom:1px solid #8a856c66;padding-bottom:12px}.room-number{display:flex;align-items:center;gap:18px;font:70px/1.2 Georgia,serif;margin:12px 0}.room-number span{font:italic 13px/1.45 Georgia,serif;color:#556050}.guest-line{display:flex;align-items:baseline;justify-content:space-between;font-size:9px;letter-spacing:.16em;padding:8px 0 15px;border-bottom:1px dashed #8a856c99}.unrecorded{font:italic 18px Georgia,serif;letter-spacing:0}.room-card p{font-size:10px;margin:14px 0 0;color:#5c6654}.arrival-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px clamp(24px,5vw,84px);border-top:1px solid #b5b8a424;background:#111d1b55}.places{display:flex;gap:13px;align-items:center;color:#dfd8c6;font:italic 13px Georgia,serif;white-space:nowrap}.places i{width:23px;height:1px;background:#b2b5a259}.arrival-footer p{color:#bdc2b6;font-size:11px;margin:0;line-height:1.5;text-align:right}#game-nav{position:absolute;z-index:12;right:24px;top:20px;display:flex;align-items:center;gap:22px}#game-nav .guide-open{display:none}#back{font-size:12px;min-height:44px;display:inline-flex;align-items:center;color:#e6d9bf;padding:8px 0}#game-nav.in-game{right:4px;top:4px;gap:16px;padding:0 12px;background:#14201bef;border:1px solid #d0b47a36}#game-nav.in-game .guide-open{display:block;font-size:12px;border:0}#game-nav.in-game #back{font-size:12px}.loading-heading{display:flex;justify-content:space-between;gap:14px;font-size:13px;color:var(--ink);margin:5px 0 10px}progress{display:block;width:100%;height:4px;appearance:none;-webkit-appearance:none;border:0;background:#7a81654d;accent-color:var(--gold)}progress::-webkit-progress-bar{background:#7a81654d}progress::-webkit-progress-value{background:var(--gold)}progress::-moz-progress-bar{background:var(--gold)}.load-stages{display:flex;justify-content:space-between;gap:12px;list-style:none;margin:13px 0 0;padding:0;color:#b4baad;font-size:10px;letter-spacing:.06em}.load-stages .active{color:#f3d9a1}.load-stages .done{color:#dfdfd1}#status{font-size:12px;line-height:1.5;color:#d7dbc9;margin:12px 0 0;max-width:440px}#status:empty{display:none}#load-error{padding-top:8px}#issue{color:#ffcfb5;font-size:14px;line-height:1.6}.secondary{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:10px 17px;background:#28362d;color:#f3e2bf;border:1px solid #b8a47699;border-radius:2px;text-decoration:none;font:14px system-ui,sans-serif}#load-error details{font-size:12px;margin-top:12px;color:#e5ccae}#error-detail{max-width:100%;max-height:100px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}#rotate{display:none;z-index:30;padding:30px 25px;place-content:center;justify-items:center;gap:15px;text-align:center;background:radial-gradient(ellipse at 80% 20%,#384438,#14201c 65%)}#rotate h2{max-width:280px;margin:0}#rotate p{max-width:290px;margin:0;color:#d0d1c4;font-size:14px}#rotate .eyebrow{font-size:10px;color:var(--gold)}#rotate .rotate-note{font-size:12px;color:#b6bcac;margin-bottom:10px}.rotate-mark{font-size:70px;line-height:1;color:var(--gold)}#pointer-notice{position:absolute;left:12px;bottom:8px;max-width:470px;padding:10px 14px;background:#171e1bf5;border-left:2px solid #d0b47a;font-size:12px;line-height:1.5;z-index:20;pointer-events:none;color:#e4decf;margin:0}
dialog{border:1px solid #aa9b735c;padding:0;border-radius:3px;width:min(800px,calc(100% - 32px));max-height:calc(100% - 32px);background:#16231f;color:var(--ink);box-shadow:0 20px 80px #0008}dialog::backdrop{background:#07110fba;backdrop-filter:blur(4px)}.guide-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:28px 32px 22px;border-bottom:1px solid #8d9c7d33}.guide-top .eyebrow{font-size:9px;margin-bottom:10px}.guide-top h2{margin:0;font-size:35px}#guide-close{background:transparent;color:var(--ink);font:30px/1 system-ui;border:1px solid #b5b69755;width:44px;flex-shrink:0}.guide-scroll{padding:22px 32px 28px;overflow:auto;max-height:calc(100dvh - 185px)}.guide-intro{font:italic 18px/1.6 Georgia,serif;color:#d1d6c0;margin:0 0 24px;max-width:600px}.guide-columns{display:grid;grid-template-columns:1fr 1fr;gap:35px}.guide-columns h3{font-size:10px;color:var(--gold);letter-spacing:.16em;text-transform:uppercase;margin:0 0 16px}.guide-columns p{font-size:13px;color:#c6cebe;line-height:1.65;margin:0 0 13px}.guide-columns strong{font-weight:500;color:#f1e6cf}dl{margin:0}dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;border-bottom:1px solid #8a9a752b;padding:8px 0;font-size:12px}dt{color:#c6cebe}dd{text-align:right;margin:0;color:#f1dfb8}kbd{font:11px system-ui,sans-serif;padding:2px 5px;border:1px solid #a1ad8559;border-radius:3px;background:#243329;white-space:nowrap}summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:13px;color:#eadab9}details>p{font-size:13px;color:#c6cebe;line-height:1.7;margin:0 0 15px}.first-lead{margin-top:20px;border-top:1px solid #8a9a7545}.browser-help{border-top:1px solid #8a9a752b}.save-note{font-size:11px;line-height:1.65;color:#b5c0ad;padding:16px 18px;margin:16px 0 0;background:#0e1a164d;border-left:2px solid #8a9a756b}
@media(min-width:1000px) and (min-height:640px){.story{animation:arrive .65s ease-out both}.room-card{animation:ticket .85s ease-out both}@keyframes arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes ticket{from{opacity:0;transform:translateY(8px) rotate(2deg)}to{opacity:1;transform:translateY(0) rotate(2deg)}}}
@media(max-width:1000px){.arrival-header{padding-right:240px}.room-card{width:215px;padding:18px}.room-number{font-size:58px;gap:12px}.room-number span{font-size:12px}.arrival-main{gap:22px}.story{width:65%}#game-nav{right:24px}.edition{display:none}}
@media(max-width:680px){.room-card{display:none}.story{width:100%}.arrival-header{padding:24px;padding-right:180px}.arrival-main{padding:20px 28px 30px;min-height:430px}.arrival-footer{flex-direction:column;align-items:flex-start;padding:18px 28px;gap:12px}.arrival-footer p{text-align:left}.room-view{background-position:62% center}.world-mark{font-size:9px;letter-spacing:.15em;gap:10px}#game-nav{top:14px;right:20px}#back{font-size:11px}.guide-columns{grid-template-columns:1fr;gap:25px}.guide-top{padding:20px}.guide-top h2{font-size:28px}.guide-scroll{padding:20px;max-height:calc(100dvh - 160px)}.premise{font-size:15px}h1{font-size:clamp(44px,11.5vw,74px);margin-bottom:24px}.eyebrow{font-size:9px}.launch-actions{gap:18px}.primary{min-width:190px}.text-button{font-size:13px}}
@media(max-height:540px) and (min-width:681px){.arrival-header{padding:16px 32px}.arrival-main{padding:6px 32px 18px;min-height:0;gap:30px;align-items:center}.story{width:66%}h1{font-size:53px;margin-bottom:11px}h2{font-size:25px;margin-bottom:10px}.eyebrow{font-size:8px;margin-bottom:10px}.premise{font-size:12px;line-height:1.5;margin-bottom:15px}.premise br{display:none}.premise br:after{content:' '}.launch-note{font-size:10px;max-width:400px;margin-top:6px}.primary{padding:9px 15px;font-size:13px;min-width:170px}.primary span{font-size:18px}.text-button{font-size:12px}.room-card{width:190px;padding:15px;transform:rotate(2deg)}.room-number{font-size:48px;margin:6px 0}.room-number span{font-size:11px}.card-top{font-size:8px}.room-card p{font-size:9px}.guest-line{padding-bottom:10px}.arrival-footer{padding:10px 32px}.arrival-footer p{font-size:9px}.places{font-size:11px}.places i{width:12px}#game-nav{top:6px;right:24px}.loading-heading{font-size:11px;margin:0 0 6px}.load-stages{margin-top:8px;font-size:9px}#status{font-size:10px;margin-top:7px}.guide-top{padding:15px 22px}.guide-top h2{font-size:27px}.guide-top .eyebrow{margin-bottom:6px}.guide-scroll{max-height:calc(100dvh - 145px);padding:16px 22px}.guide-intro{font-size:15px}.guide-columns{gap:24px}.room-view{background-position:center}}
@media(orientation:portrait) and (pointer:coarse){#rotate{display:grid}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep browser help clear of the preserved game's top-right journal and menu. */
#game-nav.in-game{top:auto;bottom:12px;right:12px}

/* Reserve a separate strip for page help while a native review panel is open.
   The Unity canvas ends above it, so native actions never sit behind these links. */
#stage:has(#game-nav.in-game:not([hidden])) #unity-canvas{height:calc(100% - 52px)}
#game-nav.in-game{top:auto;bottom:0;left:0;right:0;height:52px;min-height:52px;justify-content:flex-end;padding:0 16px;border-width:1px 0 0;gap:16px}

/* Keep the opening in normal flow when an error or expanded details makes it
   taller than the viewport. The existing welcome panel handles scrolling. */
#welcome > .arrival-header,
#welcome > .arrival-footer{flex-shrink:0}
#welcome > .arrival-main{flex:1 0 auto}

/* Keep the opening return link readable over the room card while scrolling.
   Native play uses .in-game and retains its separate help strip unchanged. */
#game-nav:not(.in-game) #back{padding:8px 12px;background:#14201bef;border:1px solid #d0b47a36;border-radius:2px}
