html {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.game-theme {
  position: fixed;
  inset: 0;
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.game-theme #app .admission-search121 {
  height: 100dvh !important;
  background: var(--summer-art) center / cover no-repeat;
}

body.game-theme #app .admission-search121 .admission-room121 {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
}

body.game-theme #summer-ui .ambient-park103 {
  left: 56.7%;
  bottom: 28dvh;
  width: min(calc(20dvh * var(--actor-aspect103, .5)), 19vw);
}

.campus-dialogue130.is-guard {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.campus-dialogue130.is-guard::backdrop {
  background: transparent;
}

.guard-scene138 {
  position: relative;
  height: 100%;
  isolation: isolate;
}

.guard-scene138 .guard-portrait130 {
  position: absolute;
  bottom: 10dvh;
  left: 31%;
  width: auto;
  height: min(67dvh, 740px);
  transform: translateX(-50%);
  filter: drop-shadow(2px 4px 3px #24192580);
  animation: guard-enter138 .28s ease-out both;
}

@keyframes guard-enter138 {
  from { opacity: 0; translate: -20px 0; }
  to { opacity: 1; translate: 0; }
}

.guard-lines138 {
  position: absolute;
  left: 44%;
  bottom: 13dvh;
  width: min(540px, 49vw);
  max-height: 58dvh;
  overflow: auto;
  box-sizing: border-box;
  padding: clamp(14px, 2vw, 23px);
  background: #211926f2;
  border: 1px solid #a694a4;
  border-top: 2px solid #eac181;
  box-shadow: 4px 5px #130e18;
}

.campus-dialogue130:is(.is-guard, .is-dean) h2.novel-speaker {
  margin: 0 0 10px;
  color: #f6ca82;
  font: 750 16px/1.3 system-ui, sans-serif;
  text-transform: none;
  text-shadow: none;
  letter-spacing: normal;
}

body.game-theme .guard-lines138 .actions button {
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  font: 740 13px/1.22 system-ui, sans-serif;
  text-transform: none;
}

body.game-theme dialog.building-look130.is-dorm-view138 {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #283725;
  box-shadow: none;
  overflow: hidden;
}

.is-dorm-view138 .building-look-art130 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.is-dorm-view138 h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.is-dorm-view138 .building-look-actions130 {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  body.game-theme #summer-ui .ambient-park103 {
    left: 56%;
    bottom: max(25dvh, calc(var(--play-bottom, 90px) + 56px));
    width: min(calc(21dvh * var(--actor-aspect103, .5)), 31vw);
  }
  .guard-scene138 .guard-portrait130 {
    left: 48%;
    bottom: max(90px, 25dvh);
    height: min(51dvh, 480px);
  }
  .guard-lines138 {
    inset: auto 12px max(12px, env(safe-area-inset-bottom)) 12px;
    width: auto;
    max-height: 42dvh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guard-scene138 .guard-portrait130 { animation: none; }
}
