@font-face { font-family: Lilita; src: url("assets/art/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
:root {
    --stage-scale: 1;
    --stage-height: 1920px;
    --world-width: 1080px;
    --environment-scale: 1;
    --office-intro-zoom: 2;
    --office-intro-y: 198px;
    --office-gameplay-zoom: .78;
    --office-gameplay-y: -372.78px;
    --end-background-size: 1920px;
    --content-offset: 0px;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.18, .88, .26, 1.17);
    --ease-in: cubic-bezier(.55, .02, .78, .4);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; background: #30271f; }
body { font-family: Lilita, sans-serif; color: #202552; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button { appearance: none; border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible { outline: 5px solid #fff1a2; outline-offset: 3px; }
img { display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
#game { position: fixed; inset: 0; pointer-events: none; opacity: 0; }
#stage, .loader-art { position: absolute; width: 1080px; height: 1920px; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--stage-scale)); transform-origin: center; }
#stage { height: var(--stage-height); overflow: visible; isolation: isolate; }
#office-scene { position: absolute; left: 0; top: var(--content-offset); width: 1080px; height: 1920px; opacity: 0; transform: translateY(var(--office-intro-y)) scale(var(--office-intro-zoom)); transform-origin: 540px 650px; transition: transform 2000ms cubic-bezier(.22,.72,.15,1), opacity 900ms ease; }
body[data-phase="intro"] #office-scene { opacity: 1; }
body[data-phase="playing"] #office-scene, body[data-phase="revealing"] #office-scene, body[data-phase="solved"] #office-scene { opacity: 1; transform: translateY(var(--office-gameplay-y)) scale(var(--office-gameplay-zoom)); }
.office-background { position: absolute; left: -433px; top: -376px; width: 2078px; height: 3638px; max-width: none; }
.office-environment { position: absolute; inset: 0; transform: scale(var(--environment-scale)); transform-origin: 540px 650px; }
.scene-prop, .character { position: absolute; }
.character { transform-origin: 50% 95%; }
.character::before { content: ""; position: absolute; left: 8%; bottom: -7px; width: 84%; height: 26px; background: radial-gradient(ellipse, #3a21074d 0%, #3a210724 44%, #3a210700 73%); }
.character > img { width: 100%; height: 100%; transform-origin: 50% 95%; animation: breathing 4.7s ease-in-out var(--breath-delay) infinite alternate; }
.detective > img { animation-duration: 3.9s; }
.door-note { transform-origin: 50% 10%; animation: note-sway 5s ease-in-out infinite alternate; }
@keyframes breathing { from { transform: translateY(0) rotate(-.35deg) scale(1); } to { transform: translateY(-2px) rotate(.35deg) scale(1.009, 1.014); } }
@keyframes note-sway { from { transform: rotate(-.65deg); } to { transform: rotate(.65deg); } }
#hud { position: absolute; inset: 0 0 auto; height: 180px; z-index: 10; opacity: 0; pointer-events: none; transform: translateY(-40px); transition: opacity 650ms ease, transform 900ms var(--ease-spring); }
#hud.is-visible { opacity: 1; transform: translateY(0); }
.hud-button { position: absolute; top: 18px; width: 162px; height: 162px; pointer-events: auto; transition: transform 300ms var(--ease-spring), filter 300ms ease; }
.hud-button:active { transform: translateY(4px) scale(.93); }
.hud-button:hover { filter: brightness(1.06); }
.hud-button img { width: 100%; height: 100%; object-fit: contain; }
#brand-button { left: 17px; }
#case-board { position: absolute; left: 16px; top: calc(714px + var(--content-offset)); width: 1046px; height: 758px; z-index: 3; opacity: 0; transform: translateY(210px) rotateX(13deg) scale(.91); transform-origin: 50% 75%; pointer-events: none; transition: transform 1100ms var(--ease-spring), opacity 650ms ease; }
#case-board.is-visible { opacity: 1; transform: translateY(0) rotateX(0) scale(1); pointer-events: auto; }
.board-background { position: absolute; width: 100%; height: 100%; }
#timetable { position: absolute; inset: 0; z-index: 2; }
.time-header { position: absolute; top: 18px; width: 241px; height: 99px; }
.time-header > .tile { width: 100%; height: 100%; }
.time-header > .time-text { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); height: 41px; width: auto; }
.person-label { position: absolute; left: 50px; width: 205px; height: 147px; }
.person-label .tile { width: 205px; height: 147px; }
.person-label .avatar { position: absolute; bottom: 7px; left: 4px; height: 132px; width: auto; transform-origin: bottom; transition: transform 550ms var(--ease-spring); }
.person-label .name { position: absolute; left: 114px; top: 60px; width: auto; height: 27px; }
.person-label[data-person="marcus"] .name { left: 102px; top: 65px; height: 22px; }
.person-label.is-complete .avatar { transform: translateY(-3px) scale(1.03); }
.evidence-cell { position: absolute; width: 241px; height: 147px; border-radius: 24px; transition: transform 220ms var(--ease-out), filter 220ms ease; }
.evidence-cell > .tile { position: absolute; width: 100%; height: 100%; inset: 0; }
.evidence-cell:hover:not(:disabled) { filter: brightness(1.025); }
.evidence-cell:active:not(:disabled) { transform: scale(.97); }
.evidence-cell.is-active { filter: brightness(1.035); }
.evidence-cell.is-active::after { content: ""; position: absolute; inset: 2px; border: 4px solid #e9ba5e; border-radius: 23px; opacity: .8; }
.evidence-cell:disabled { cursor: default; }
.success-glow { position: absolute; left: -37px; top: -37px; width: 315px; height: 221px; opacity: 0; pointer-events: none; }
.is-correct .success-glow { animation: answer-glow 1500ms ease-in-out both; }
@keyframes answer-glow { 0% { opacity: 0; transform: scale(.88); } 25%, 60% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.035); } }
.answer-icon { position: absolute; width: 141px; height: 124px; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.answer-icon > img.icon-main { position: absolute; max-width: 141px; max-height: 124px; width: auto; height: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.answer-icon.clean { width: 120px; }
.answer-icon.restroom { width: 112px; }
.answer-icon.clean .icon-main, .answer-icon.restroom .icon-main { left: 0; top: 0; width: 88px; height: 124px; transform: none; }
.answer-icon .icon-badge { position: absolute; left: 51px; top: 46px; width: 69px; height: 59px; }
.answer-icon.restroom .icon-badge { left: 74px; top: 25px; width: 38px; height: 84px; filter: hue-rotate(-45deg) saturate(1.5); }
.icon-flight { position: absolute; z-index: 18; pointer-events: none; }
.icon-flight .answer-icon { left: 0; top: 0; transform: none; }
#culprit-glow { position: absolute; left: 25px; top: 545px; width: 991px; height: 198px; z-index: 1; opacity: 0; pointer-events: none; transition: opacity 700ms ease; }
#culprit-tint { position: absolute; left: 48px; top: 569px; width: 945px; height: 149px; z-index: 3; opacity: 0; mix-blend-mode: multiply; pointer-events: none; transition: opacity 800ms ease; }
#case-board.is-solved #culprit-glow { opacity: 1; animation: culprit-pulse 1300ms ease-in-out 2 alternate; }
#case-board.is-solved #culprit-tint { opacity: .42; }
@keyframes culprit-pulse { from { filter: brightness(.9); } to { filter: brightness(1.25); } }
#clue-deck { position: absolute; left: 0; top: calc(1508px + var(--content-offset)); width: 1080px; height: 380px; z-index: 4; perspective: 1200px; pointer-events: none; }
.clue-slot { position: absolute; top: 0; width: 360px; height: 370px; }
.clue-slot:nth-child(1) { left: 0; }
.clue-slot:nth-child(2) { left: 360px; }
.clue-slot:nth-child(3) { left: 720px; }
.clue-card { position: absolute; left: 50%; top: 0; transform: translateX(-50%); transform-origin: 50% 8%; pointer-events: auto; border-radius: 22px; opacity: 0; }
.clue-card img { width: 100%; height: 100%; }
.clue-card.is-hinted { filter: drop-shadow(0 0 12px #fff9b276); }
.clue-card:focus-visible { outline-offset: -18px; }
.clue-check { position: absolute; width: 76px !important; height: 65px !important; right: 12px; top: 18px; filter: drop-shadow(0 4px 3px #265a3544); }
#choice-popup { position: absolute; z-index: 15; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.9); transform-origin: var(--arrow-x, 50%) top; pointer-events: none; background: #ecd5a8; border: 4px solid #b48b58; border-radius: 34px; box-shadow: 0 8px 0 #aa7d4c70, 0 15px 30px #422b173b, inset 0 3px 0 #fff5d6; padding: 13px 18px; transition: opacity 180ms ease, transform 400ms var(--ease-spring), visibility 0s 400ms; }
#choice-popup.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; transition: opacity 220ms ease, transform 420ms var(--ease-spring), visibility 0s; }
#choice-popup::before { content: ""; position: absolute; width: 56px; height: 56px; top: -31px; left: calc(var(--arrow-x) - 28px); transform: rotate(45deg); background: #ecd5a8; border-top: 4px solid #b48b58; border-left: 4px solid #b48b58; border-radius: 5px 0 0; z-index: -1; }
#choice-popup.above { transform-origin: var(--arrow-x) bottom; }
#choice-popup.above::before { top: auto; bottom: -31px; transform: rotate(225deg); }
.choice-options { display: flex; gap: 22px; }
.choice-option { position: relative; width: 193px; height: 193px; border-radius: 32px; transition: transform 220ms var(--ease-spring); }
.choice-option > .tile { width: 100%; height: 100%; }
.choice-option:active { transform: scale(.94); }
.choice-option .wrong-glow { position: absolute; inset: -18px; width: 229px; height: 229px; opacity: 0; }
.choice-option.is-wrong .wrong-glow { animation: wrong-glow 540ms ease-in-out both; }
.choice-option.is-wrong { animation: card-shake 540ms ease-in-out both; }
@keyframes wrong-glow { 0%, 100% { opacity: 0; } 25%, 70% { opacity: 1; } }
@keyframes card-shake { 0%, 100% { transform: translateX(0) rotate(0); } 20% { transform: translateX(-7px) rotate(-2deg); } 40% { transform: translateX(6px) rotate(1.5deg); } 65% { transform: translateX(-3px) rotate(-.7deg); } 85% { transform: translateX(1px); } }
.evidence-cell.is-hinted { animation: cell-hint 1700ms ease-in-out infinite; }
@keyframes cell-hint { 0%, 100% { filter: brightness(1); box-shadow: 0 0 0 0 #ffe48c00; } 50% { filter: brightness(1.025); box-shadow: 0 0 12px 4px #ffe48caa; } }
#hint-cursor { position: absolute; left: 0; top: 0; width: 696px; height: 863px; z-index: 19; pointer-events: none; opacity: 0; transform: translate(var(--hint-x, 0px), var(--hint-y, 0px)) scale(.72); transform-origin: 78px 20px; transition: opacity 260ms ease, transform 750ms var(--ease-out); }
#hint-cursor img { width: 100%; height: 100%; transform-origin: 78px 20px; animation: hint-tap 1750ms cubic-bezier(.3,.05,.3,1) infinite; animation-play-state: paused; }
#hint-cursor.is-visible { opacity: 1; }
#hint-cursor.is-visible img { animation-play-state: running; }
@keyframes hint-tap { 0%, 100% { transform: rotate(1deg) scale(.98); } 45%, 65% { transform: rotate(0) scale(1); } }
#solved-overlay { position: absolute; inset: 0; z-index: 25; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity 600ms ease, visibility 0s 600ms; }
#solved-overlay::before { content: ""; position: absolute; left: calc(50% - var(--world-width) / 2); top: 0; width: var(--world-width); height: 100%; background: #000b; }
#solved-overlay.is-visible { opacity: 1; visibility: visible; transition: opacity 600ms ease; }
#solved-stamp { position: absolute; left: -5px; top: calc(675px + var(--content-offset)); width: 1091px; height: 606px; opacity: 0; transform: translateY(-130px) rotate(-9deg) scale(1.6); filter: drop-shadow(0 20px 12px #0007); }
#endcard { position: absolute; inset: 0; z-index: 30; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 900ms ease, visibility 0s 900ms; }
#endcard.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity 900ms ease; }
.endcard-background { position: absolute; left: 50%; top: 50%; width: var(--end-background-size); height: var(--end-background-size); transform: translate(-50%, -50%); filter: blur(3px); }
.endcard-shade { position: absolute; left: calc(50% - var(--world-width) / 2); top: 0; width: var(--world-width); height: 100%; background: #000b; }
#packshot-cta { position: absolute; left: 0; top: var(--content-offset); width: 100%; height: 1920px; }
.endcard-logo { position: absolute; left: 166px; top: 406px; width: 747px; height: 471px; opacity: 0; }
.endcard-note { position: absolute; inset: 0; opacity: 0; transform-origin: 540px 990px; }
.endcard-paper { position: absolute; left: 107px; top: 836px; width: 850px; height: 815px; }
.endcard-text { position: absolute; left: 265px; top: 1112px; width: 534px; height: 281px; }
.endcard-underline { position: absolute; left: 240px; top: 1393px; width: 582px; height: 49px; }
#initial-loader { position: fixed; inset: 0; z-index: 100; background: linear-gradient(175deg, #ffd6b0, #ffc06e); opacity: 1; transition: opacity 750ms ease, visibility 0s 750ms; overflow: hidden; }
#initial-loader.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { position: absolute; left: 305px; top: 604px; width: 470px; height: 470px; }
.loader-base { position: absolute; left: 82px; top: 1159px; width: 917px; height: 152px; }
.loader-fill { position: absolute; left: 111px; top: 1180px; width: 0; height: 127px; overflow: hidden; transition: width 400ms cubic-bezier(.2,.7,.2,1); }
.loader-fill > img { width: 100%; height: 127px; }
.loader-shine { position: absolute; top: 11px; bottom: 30px; width: 100px; background: linear-gradient(100deg, transparent, #fff8, transparent); transform: translateX(-150px) skewX(-14deg); animation: loading-shine 1600ms ease-in-out infinite; border-radius: 20px; }
@keyframes loading-shine { 0% { transform: translateX(-150px) skewX(-14deg); opacity: 0; } 25% { opacity: .8; } 85% { opacity: .5; } 100% { transform: translateX(900px) skewX(-14deg); opacity: 0; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body.is-ad-hidden *, body.is-ad-hidden *::before, body.is-ad-hidden *::after { animation-play-state: paused !important; }
