/* The selected illustration remains the title screen, with real semantic controls. */
.cinema{position:fixed;inset:0;overflow:hidden;background:#152037;display:grid;place-items:center}.cinema:before{content:'';position:absolute;inset:-30px;background:url('assets/title-screen.png') center/cover;filter:blur(22px) brightness(.45)}.cinema-scene{position:relative;width:min(100vw,177.78dvh);aspect-ratio:16/9;flex:none;transform:translate(var(--px,0px),var(--py,0px));transition:transform .6s ease-out}.cover-art{display:block;width:100%;height:100%;object-fit:fill}.scene-button{position:absolute;background:transparent!important;border:0;border-radius:35%;padding:0;box-shadow:none;transition:box-shadow .2s,background .2s}.scene-button:hover,.scene-button:focus-visible{transform:none;background:#ffd47624!important;box-shadow:0 0 30px #ffc159a8;outline:2px solid #ffe0a0}.start-spot{left:3.7%;top:47.5%;width:19%;height:10%}.levels-spot{left:6%;top:59.4%;width:14%;height:7.5%}.book-spot{left:6%;top:68%;width:14%;height:7.4%}.settings-spot{left:6.7%;top:76.5%;width:12.5%;height:7%}.cat-spot{position:absolute;left:11%;top:8%;width:9%;height:8%;border:0;background:transparent!important}.cat-spot:hover{transform:none}.lamplight{position:absolute;left:17%;top:7%;width:8%;height:9%;border-radius:50%;background:#ffe38c38;filter:blur(15px);pointer-events:none;animation:lamp-breathe 4s ease-in-out infinite}.mote{position:absolute;width:4px;height:4px;background:#ffe6a2;box-shadow:0 0 8px #ffcd79;border-radius:50%;pointer-events:none;animation:night-drift var(--duration) ease-in-out infinite alternate;animation-delay:var(--delay)}.cinema-help{position:absolute;right:22px;top:20px;background:#152037aa;color:#fff0cf;border-color:#eac18a55;backdrop-filter:blur(7px);font-size:12px}.cinema-version{position:absolute;bottom:10px;right:20px;font-size:10px;color:#fce8beaa}.cinema-progress{position:absolute;left:3%;bottom:3%;max-width:58%;font-size:12px;color:#fff1cf;padding:8px 14px;background:#152037c9;border-radius:20px;pointer-events:none}.still .mote,.still .lamplight{animation:none}.still .cinema-scene{transform:none!important}@keyframes lamp-breathe{50%{opacity:.35;transform:scale(1.2)}}@keyframes night-drift{to{transform:translate(20px,-65px);opacity:.2}}
/* Fit the complete battle and all controls inside the viewport. */
#playShell{height:100dvh;max-width:none;padding:8px 12px;display:flex;flex-direction:column;overflow:hidden}#playShell>header{height:46px;min-height:46px;margin:0 0 6px;gap:10px}#playShell header h1{font-size:20px;margin:0}#playShell header p,#playShell header .eyebrow{display:none}#playShell .actions{max-width:none;flex-wrap:nowrap;gap:5px}#playShell .actions button{padding:7px 9px;font-size:11px}#playShell>footer,#playShell>details{display:none}
#playShell .game,#playShell .game.expanded{flex:1;min-height:0;display:grid;grid-template-columns:144px minmax(0,1fr);grid-template-rows:40px 34px minmax(0,1fr) 44px;gap:0;border-radius:12px;overflow:hidden}#playShell .status{grid-column:1/-1;grid-row:1;order:initial;padding:5px 16px;font-size:12px}#playShell .status strong{font-size:22px}#playShell .objective{grid-column:1/-1;grid-row:2;order:initial;min-height:0;padding:5px 14px;font-size:11px;overflow:hidden;line-height:22px}#playShell #specialTools{display:none!important}#playShell .deck{grid-column:1;grid-row:3;order:initial;position:static;display:grid;grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));gap:5px;padding:8px;background:#eedfc3;border-right:2px solid #a98c68;border-bottom:0;z-index:1}#playShell .card{padding:2px;gap:3px;flex-direction:row;min-height:0}#playShell .card strong{font-size:11px}#playShell .card small{display:none}#playShell .card .portrait{width:42px;height:42px}#playShell .card .cost{font-size:11px}#playShell .stage{grid-column:2;grid-row:3;order:initial;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}#playShell canvas,#playShell canvas.tall{min-width:0;max-width:100%;max-height:100%;flex:none}#playShell .toolbar{grid-column:1/-1;grid-row:4;order:initial;position:static;padding:5px 10px;gap:8px;flex-wrap:nowrap;background:#f5e7cd}#playShell .toolbar button{padding:6px 10px;white-space:nowrap;font-size:11px}#playShell .toolbar p{font-size:10px;line-height:1.4;width:auto}#playShell .stage #overlay{align-items:center;padding:10px}#playShell .welcome{max-height:100%;padding:20px;overflow:auto}#playShell .overlay-seal{margin-bottom:8px;padding:6px 12px}#playShell .welcome h2{font-size:22px;margin:10px 0}#playShell .overlay-copy{font-size:12px}
@media(max-height:600px){#playShell{padding:4px}#playShell>header{height:30px;min-height:30px;margin-bottom:3px}#playShell header h1{font-size:16px}#playShell .game,#playShell .game.expanded{grid-template-columns:115px minmax(0,1fr);grid-template-rows:30px 28px minmax(0,1fr) 34px}#playShell .card .portrait{width:27px;height:27px}#playShell .deck{gap:2px;padding:3px}#playShell .card strong{font-size:9px}#playShell .card .cost{font-size:9px}#playShell .objective{font-size:10px;padding:2px 8px}#playShell .toolbar p{font-size:9px}.welcome .overlay-seal,.welcome small{display:none}}
@media(max-width:600px) and (orientation:portrait){#playShell>header{height:72px;min-height:72px;align-items:flex-start;flex-direction:column}#playShell .actions{gap:3px;width:100%;justify-content:space-between}#playShell .actions button{padding:6px 4px;font-size:9px}#playShell .game,#playShell .game.expanded{grid-template-columns:72px minmax(0,1fr);grid-template-rows:36px 48px minmax(0,1fr) 72px}#playShell .card{flex-direction:column}#playShell .card .portrait{width:34px;height:34px}#playShell .card strong{font-size:9px}#playShell .objective{line-height:18px}#playShell .toolbar{flex-wrap:wrap;gap:3px}#playShell .toolbar p{width:100%}#playShell .status{padding:4px 6px;font-size:10px}#playShell meter{width:44px}.cinema-progress{font-size:8px;bottom:0;max-width:90%}.cinema-help{top:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.mote,.lamplight{animation:none}.cinema-scene{transform:none!important;transition:none}}
#playShell:not([hidden]){animation:enter-night .5s ease-out}@keyframes enter-night{from{opacity:0;filter:brightness(.5)}to{opacity:1;filter:brightness(1)}}
@media(prefers-reduced-motion:reduce){#playShell:not([hidden]){animation:none}}
.still #playShell{animation:none}
