/* One persistent illustration, one dialog, with controls on its tabletop. */
.tarot-room.story-room{background:#211424!important;isolation:isolate}
.story-room-backdrop{position:fixed;inset:0;z-index:0;overflow:hidden;pointer-events:none;background:#211424;contain:paint}
.story-room-backdrop>img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.story-room-backdrop>span,.story-room-backdrop>i{display:none}
.story-room .t-main,.story-room .t-progress{z-index:2}
.tarot-room.story-room .t-header{position:fixed;inset:0 0 auto;z-index:40;pointer-events:none;background:linear-gradient(#120d16a6,transparent)}
.story-room .t-header button{pointer-events:auto}
.tarot-room.story-room .t-scene-window{width:100%;min-width:0;height:100dvh;aspect-ratio:auto;margin:0}
.story-room .t-scene-canvas{border-radius:0;background:none}
.tarot-room.story-room.t-at-table .t-main{min-height:100dvh;padding:0}
.tarot-room.story-room .t-table-content{left:12%;top:59dvh;width:76%;height:27dvh}
.story-room .t-table-cue{top:65dvh}
.story-room.t-at-table .t-scene-window>.t-heading{left:3%;top:16dvh;width:25%;border-left:2px double #cfa96288;background:linear-gradient(90deg,#160f19b3,#160f1944 75%,transparent)}
.story-room.t-at-table .t-main>.t-actions{position:absolute;left:5%;right:5%;bottom:8dvh;margin:0;z-index:15}
.tarot-room.story-room[data-step=tuning] .t-main{height:100dvh;min-height:100dvh;overflow:hidden}
.tarot-room.story-room[data-step=tuning] .t-target-name{position:absolute;left:50%;bottom:calc(8dvh + 64px);transform:translateX(-50%);margin:0;z-index:20}
.story-room.t-at-table .t-main>.t-whisper{position:absolute;left:5%;right:5%;bottom:12dvh;margin:0;z-index:15;text-shadow:0 2px 5px #000}
.story-room.t-at-table .t-main>.t-footnote{position:absolute;left:5%;right:5%;bottom:3dvh;margin:0;font-size:9px;text-shadow:0 2px 4px #000}
.story-room .t-progress{position:fixed;bottom:0;left:50%;transform:translateX(-50%);background:linear-gradient(90deg,transparent,#140d18cc 15%,#140d18cc 85%,transparent);border-top:1px solid #c5a15e55;backdrop-filter:blur(4px);padding:7px 22px!important}
.story-room.t-at-table .t-main>.t-cut-actions{position:absolute;left:5%;right:5%;bottom:12dvh;z-index:15;margin:0;gap:8px}
.story-room[data-step=cut] .t-main>.t-whisper{bottom:18dvh}
.story-room .t-main>.t-draw-controls{position:absolute;left:5%;right:5%;bottom:8dvh;z-index:15;margin:0}
.story-room[data-step=draw] .t-main>.t-whisper{bottom:4.8dvh}.story-room[data-step=draw] .t-main>.t-footnote{display:none}
.story-room[data-step=reveal] #t-envelope-space{position:absolute;left:0;right:0;bottom:10dvh;z-index:15}
.tarot-room.story-room.t-without-scene .t-header{position:fixed}
.tarot-room.story-room.t-without-scene .t-main{padding:51dvh 3% 80px;min-height:100dvh}
.story-room.t-reading-panel .t-main>.t-heading{margin:0 auto 15px;text-shadow:0 2px 8px #000}
.story-room.t-reading-panel .t-heading h1{font-size:26px;margin:8px 0}.story-room.t-reading-panel .t-heading p{margin:4px 0}
.story-room.t-reading-panel .t-parchment{margin-top:10px}.story-room .t-letter,.story-room .t-open-book{animation:none}
.tarot-room.story-room[data-step=verify] .t-table-content{left:4%;top:57dvh;width:47%;height:30dvh}
.story-room[data-step=verify] .connection-intro{top:11dvh;left:4%;width:26%}
.story-room[data-step=verify] .connection-note{top:48dvh;right:4%;width:42%;height:41dvh}
.story-room[data-step=verify] .connection-decision{position:relative;left:auto;right:auto;bottom:auto;width:92%;margin:-4dvh auto 16px;background:linear-gradient(90deg,#160f19de,#160f1999)}
.story-room[data-step=verify] .connection-note h3{font-size:20px}.story-room[data-step=verify] .connection-clues label{padding:4px}.story-room[data-step=verify] .connection-clues label>span{font-size:13px}
.story-room[data-step=verify] .connection-dice-stage{gap:3px}.story-room[data-step=verify] .connection-die,.story-room[data-step=verify] .die-space{width:110px}.story-room[data-step=verify] .die-space{height:110px}.story-room[data-step=verify] .die-model{scale:.69}.story-room[data-step=verify] .connection-die>span{margin-top:3px}.story-room[data-step=verify] .connection-zodiac-result{margin-top:2px}.story-room[data-step=verify] .connection-zodiac-result p{font-size:12px;line-height:1.6;margin:5px 0}.story-room[data-step=verify] .connection-dice-foot{display:none}
.tarot-room.story-room.deck-entry-room .t-main{padding:0 0 30px;min-height:100dvh}
.story-room.deck-entry-room .t-scene-window{position:absolute;inset:0;pointer-events:none}
.story-room.deck-entry-room .t-table-content{display:none}
.story-room.deck-entry-room .deck-entry-note{position:relative;top:auto;right:auto;width:min(660px,88%);max-height:none;margin:56dvh auto 0;z-index:5;transform:none}
.story-room.deck-entry-room .deck-entry-note .form textarea{min-height:74px}
.story-room.deck-entry-room.story-has-cards .t-table-content{display:block;pointer-events:auto;top:59dvh;height:30dvh}
.story-room.story-has-cards .deck-entry-note{background:linear-gradient(155deg,#18101cd9,#130c17eb);border:1px solid #b8985a66;outline:1px solid #d8b87826;outline-offset:-5px;color:#e5d1ac;padding:16px 24px;box-shadow:0 12px 30px #0008;margin:8dvh 3% 0;width:26%;max-height:43dvh;overflow:auto}
.story-room.story-has-cards .deck-entry-note h2,.story-room.story-has-cards .deck-entry-note .sub{color:#ebd6ae}.story-room.story-has-cards .deck-entry-note .notice{color:#c9b38c;border-left-color:#c29b56}.story-room.story-has-cards .deck-entry-note h2{font-size:22px}
.story-room.story-has-cards .cards{height:100%;margin:0;align-items:center;justify-content:center;gap:18px;flex-wrap:nowrap}
.story-room.story-has-cards .cards .card{width:clamp(68px,9vw,112px);height:clamp(104px,14vw,174px);padding:9px 5px;min-width:0;animation:none}.story-room.story-has-cards .card .card-symbol{font-size:32px}.story-room.story-has-cards .card b{font-size:15px}.story-room.story-has-cards .card small{font-size:7px}.story-room.story-has-cards .card em{font-size:9px}
.story-room.story-has-cards .cards:has(>:nth-child(6)){display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:min(480px,100%);margin:auto}.story-room.story-has-cards .cards:has(>:nth-child(6)) .card{height:76px;width:100%;padding:3px}.story-room.story-has-cards .cards:has(>:nth-child(6)) .card-symbol{font-size:15px;margin:2px}.story-room.story-has-cards .cards:has(>:nth-child(6)) .card b{font-size:12px}
@media(max-width:900px){
 .story-room.t-at-table .t-scene-window>.t-heading{top:16dvh;left:3%;width:30%}.story-room.t-at-table .t-heading h1{font-size:18px}
 .story-room.story-has-cards .deck-entry-note{width:35%;font-size:12px}
}
@media(max-width:650px){
 .tarot-room.story-room .t-table-content{left:6%;top:59dvh;width:88%;height:26dvh}
 .story-room.t-at-table .t-scene-window>.t-heading{top:48dvh;left:7%;width:86%;background:none;border:0;padding:0;text-align:center}
 .story-room.t-at-table .t-heading h1{font-size:18px;line-height:1.4}.story-room.t-at-table .t-heading p{font-size:10px;line-height:1.6}
 .story-room.t-at-table .t-main>.t-actions{bottom:7dvh}.story-room.t-at-table .t-main>.t-whisper{bottom:12.8dvh;font-size:10px}.story-room.t-at-table .t-main>.t-footnote{bottom:3.8dvh;font-size:8px}
 .story-room .t-progress{padding:4px 8px!important}.story-room .t-progress small{font-size:7px}.story-room .t-progress>span{font-size:12px}
 .story-room.t-at-table .t-main>.t-cut-actions{bottom:13dvh;flex-wrap:wrap;gap:4px}.story-room[data-step=cut] .t-main>.t-whisper{bottom:21dvh}.story-room[data-step=cut] .t-table-content{top:58dvh;height:20dvh}
 .tarot-room.story-room[data-step=verify] .t-scene-window{height:100dvh}.story-room[data-step=verify] .connection-intro{top:45dvh;left:7%;width:86%;text-align:center}.story-room[data-step=verify] .connection-intro p{display:none}
 .tarot-room.story-room[data-step=verify] .t-table-content{top:54dvh;left:5%;width:90%;height:42dvh}.story-room[data-step=verify] .connection-dice-stage{gap:4px}.story-room[data-step=verify] .connection-dice{gap:14px}
 .story-room[data-step=verify] .connection-note{position:relative;top:auto;right:auto;width:90%;height:auto;min-height:580px;margin:0 auto 20px}.story-room[data-step=verify] .connection-note h3{font-size:24px}.story-room[data-step=verify] .connection-clues label{padding:10px 3px}.story-room[data-step=verify] .connection-clues label>span{font-size:15px}.story-room[data-step=verify] .connection-decision{margin:0 auto 20px}
 .tarot-room.story-room.t-without-scene .t-main{padding:52dvh 3% 65px}.story-room.t-reading-panel .t-heading h1{font-size:23px}
 .story-room.deck-entry-room .deck-entry-note{margin-top:52dvh;width:92%;padding:22px}.story-room.story-has-cards .deck-entry-note{margin:7dvh 4% 0;width:45%;padding:10px;max-height:38dvh}.story-room.story-has-cards .deck-entry-note h2{font-size:17px}.story-room.story-has-cards .deck-entry-note .sub{font-size:10px}.story-room.story-has-cards .cards{gap:10px}.story-room.story-has-cards .cards .card{width:78px;height:120px}
}
