/* v32: a floating room background, bottom speech bubble and a complete guide. */
body.game-theme.dean-intro-mode #scene {background-size:cover!important;background-repeat:no-repeat!important;background-position:center!important;filter:none!important;transform-origin:50% 45%;animation:lecture-drift 14s ease-in-out infinite alternate;will-change:transform}
@keyframes lecture-drift {from{transform:scale(1.006) translate3d(-.06%,.04%,0)}to{transform:scale(1.012) translate3d(.06%,-.04%,0)}}
body.game-theme.dean-intro-mode>.shade {background:linear-gradient(180deg,#09070d55,transparent 22%,transparent 68%,#09070d55)!important;pointer-events:none}
body.game-theme.dean-intro-mode>header {position:relative;z-index:4;background:linear-gradient(180deg,#09070dc4,#09070d00)!important;box-shadow:none!important;border:0!important}
body.game-theme.dean-intro-mode #app {display:block!important;padding:0 4vw 22px!important;min-height:calc(100svh - 96px)!important}
body.dean-intro-mode>footer {display:none}
body.dean-intro-mode .dean-intro-screen {display:flex;flex-direction:column;min-height:calc(100svh - 118px);width:100%;max-width:1380px;margin:0 auto;position:relative}
body.dean-intro-mode .dean-showcase {flex:1;min-height:250px;pointer-events:none}
/* Anchor the whole character to the screen, not to the top of the text box. */
body.dean-intro-mode .intro-dean {position:fixed;right:-2vw;bottom:-34svh;z-index:3;height:110svh;width:auto;max-width:none;object-fit:contain;pointer-events:none;filter:drop-shadow(4px 5px 7px #0008);animation:dean-arrive .55s ease-out both}
@keyframes dean-arrive {from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
body.game-theme.dean-intro-mode .dean-bottom-dialogue {position:relative;z-index:2;width:calc(100% - 160px);background:#15111aeb!important;border:2px solid #a89bac!important;border-top-color:#f2c36f!important;padding:24px 150px 24px 28px!important;border-radius:0!important;box-shadow:5px 5px 0 #08070c!important;backdrop-filter:none!important}
body.dean-intro-mode .dean-bottom-dialogue:after {content:'';position:absolute;right:-17px;top:24px;width:28px;height:28px;transform:rotate(-45deg);background:#15111a;border-right:2px solid #a89bac;border-bottom:2px solid #a89bac;pointer-events:none}
body.game-theme.dean-intro-mode .dean-bottom-dialogue p {font-size:17px!important;line-height:1.55!important;letter-spacing:0!important;color:#fff!important;margin:0!important;max-width:none!important}
.dean-typed {position:relative}
.dean-typed .dialogue-measure {display:block;visibility:hidden;pointer-events:none}
.dean-typed .dialogue-visible {position:absolute;inset:0;display:block}
.dean-typed .dialogue-accessible {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.game-theme.dean-intro-mode .name-form {display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:12px;margin:18px auto 0!important;width:min(620px,100%);max-width:none!important}
body.game-theme.dean-intro-mode .name-form input {flex:1;min-width:180px;width:auto!important;min-height:50px;padding:12px 16px;font-size:17px!important;background:#08070c!important;border:1px solid #a89bac!important;color:#fff!important;border-radius:0!important}
body.game-theme.dean-intro-mode .name-form button {margin:0!important;min-height:50px}
body.game-theme.dean-intro-mode .dean-bottom-dialogue .actions {justify-content:center;margin:18px 0 0!important;gap:12px!important}
@media(min-width:1600px) {
 body.game-theme.dean-intro-mode .dean-bottom-dialogue {width:calc(100% - 200px);padding-right:100px!important}
}
@media(max-width:900px) {
 body.dean-intro-mode .intro-dean {right:-5vw;height:105svh;bottom:-34svh}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue {width:calc(100% - 120px);padding-right:100px!important}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue p {font-size:16px!important}
}
@media(max-width:600px) {
 body.game-theme.dean-intro-mode>header {height:80px!important;padding:16px 20px!important}
 body.game-theme.dean-intro-mode #app {padding:0 16px 20px!important;min-height:calc(100svh - 80px)!important}
 body.dean-intro-mode .dean-intro-screen {min-height:calc(100svh - 100px)}
 body.dean-intro-mode .dean-showcase {position:relative;min-height:320px;overflow:hidden}
 /* Small screens show the guide above the bubble; controls remain uncovered. */
 body.dean-intro-mode .intro-dean {position:absolute;right:0;bottom:-210px;height:510px;z-index:1}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue {width:100%;padding:18px!important}
 body.dean-intro-mode .dean-bottom-dialogue:after {right:30px;top:-15px;border:0;border-right:2px solid #f2c36f;border-top:2px solid #f2c36f}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue p {font-size:15px!important;line-height:1.5!important}
 body.game-theme.dean-intro-mode .name-form {gap:9px;margin:14px auto 0!important}
 body.game-theme.dean-intro-mode .name-form input {flex-basis:100%;font-size:16px!important}
 body.game-theme.dean-intro-mode .name-form button {width:100%}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue .actions {margin-top:14px!important}
}
@media(max-height:550px) and (min-width:601px) {
 body.dean-intro-mode .dean-showcase {min-height:160px}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue {padding:18px 100px 18px 22px!important}
 body.game-theme.dean-intro-mode .dean-bottom-dialogue p {font-size:15px!important}
}
@media(prefers-reduced-motion:reduce) {
 body.game-theme.dean-intro-mode #scene {animation:none!important;transform:scale(1.006);will-change:auto}
 body.dean-intro-mode .intro-dean {animation:none!important}
}
body.game-theme.dean-intro-mode .dean-typed span {font-size:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;font-family:inherit!important;color:inherit!important}
@media(min-width:1600px) {body.dean-intro-mode .intro-dean {right:4vw}}
