/* Play surfaces and the controls that belong to them. */
body.game-theme #app .activity-conversation100 .novel-actions button:focus-visible {
 outline: 2px solid #ffe2a8 !important;
 outline-offset: 3px;
 border-color: transparent !important;
 box-shadow: none !important;
}

body.game-theme #app .festival-challenge .play-status > .scene-play-controls {
 position: static !important;
 inset: auto !important;
 display: flex;
 flex-wrap: wrap;
 justify-content: flex-start;
 gap: 5px;
 width: auto !important;
 margin-top: 9px;
 padding: 0;
 translate: none !important;
 transform: none !important;
 align-items: flex-start;
}

body.game-theme #app .festival-challenge .scene-play-controls button {
 flex: 0 1 auto;
 min-height: 33px !important;
 padding: 5px 8px !important;
 margin: 0 !important;
}

body.game-theme #app .sprint-world139:focus-visible {
 outline: 2px solid #ffe2a8;
 outline-offset: -4px;
}

body.game-theme #app .party-foyer72 {
 grid-template-columns: minmax(0, 1fr);
 gap: 7px;
 justify-items: start;
}
body.game-theme #app .party-foyer72 p { min-height: 0; }
body.game-theme #app .dance-top71 { justify-content: flex-end; }

body.game-theme .canteen-shortcut119 {
 left: max(var(--play-left, 14px), 50%);
 right: auto;
 width: max-content;
 max-width: calc(100vw - var(--play-left, 14px) - var(--play-right, 14px));
 transform: translateX(-50%);
}
body.game-theme .canteen-shortcut119 > button {
 width: auto !important;
 min-width: 0 !important;
 padding-inline: 14px !important;
}

.meal-dishes148 {
 position: absolute;
 inset: 0;
 pointer-events: none;
}
@media (min-width: 761px) {
 .meal-dishes148 {
  left: max(var(--play-left, 220px), 0px);
  right: 57%;
 }
 body.game-theme #app .meal-dishes148 button.scene-dish {
  left: var(--meal-column) !important;
  width: var(--meal-dish-width, 30%) !important;
 }
 .meal-dishes148 [data-kind="main"] { --meal-column: 16.67%; }
 .meal-dishes148 [data-kind="drink"] { --meal-column: 50%; --meal-dish-width: 24%; }
 .meal-dishes148 [data-kind="dessert"] { --meal-column: 83.33%; }
}
@media (max-width: 760px) {
 body.game-theme .canteen-shortcut119 {left: 50%;}
}
@media (max-width: 375px) and (max-height: 650px) and (orientation: portrait) {
 body.game-theme #app .food-challenge > .scene-play-controls {
  bottom: calc(var(--play-bottom, 122px) - 6px) !important;
  gap: 5px !important;
 }
 body.game-theme #app .food-challenge > .scene-play-controls button {
  min-height: 38px !important;
  padding: 5px 4px !important;
  white-space: nowrap !important;
 }
}
@media (max-height: 560px) and (orientation: landscape) {
 body.game-theme #app .food-challenge > .scene-play-controls {
  left:auto!important;
  right:var(--play-right,12px)!important;
  width:max-content!important;
  max-width:calc(100dvw - var(--play-left,12px) - var(--play-right,12px))!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
 }
 body.game-theme #app .food-challenge > .scene-play-controls button {
  margin:0!important;
  min-height:44px!important;
  padding:6px 10px!important;
  white-space:normal!important;
 }
 body.game-theme #app .food-challenge .play-status {
  width: min(330px, calc(100vw - var(--play-left, 165px) - 12px)) !important;
  box-sizing: border-box;
  padding: 6px 9px !important;
 }
 body.game-theme #app .food-challenge .play-status > h2 {
  font-size: 17px !important;
  margin: 3px 0 4px !important;
 }
 body.game-theme #app .food-challenge .play-status :is(p, .play-score, .play-score b) {
  font-size: 12px !important;
  line-height: 1.25 !important;
 }
 body.game-theme #app .food-challenge .play-status > :is(p, .play-score) {
  margin-block: 3px !important;
 }
}

body.game-theme #app .cube-scene140 .work-play89 > header {
 position: relative !important;
}
body.game-theme #app .cube-scene140 .cube-submit140 {
 position: absolute;
 top: calc(100% + 8px);
 left: 0;
 z-index: 12;
 pointer-events: auto;
}

body.game-theme #app .garden-water138 .garden-field-can139[style*="--field-can-x148"] {
 left: var(--field-can-x148) !important;
 top: var(--field-can-y148) !important;
 bottom: auto !important;
 translate: -50% -50%;
}
body.game-theme #app .garden-water138 .garden-field-can139[data-grabbed139] { opacity: 0; }
.garden-field-ghost148 { transform-origin: 50% 55%; }

.scanword-cell.selected-cell148 {
 outline: 2px solid #674a9b;
 outline-offset: -2px;
}
.scanword-cell.revealed-cell148 input {color: #376657; font-weight: 850;}

body.game-theme #app .poster-studio138 .poster-table138 {
 inset: 33dvh max(var(--play-right,18px),18px) max(4dvh,var(--play-bottom,18px)) max(var(--play-left,18px),16vw);
}
.poster-studio138 .poster-board138 {
 left: 9%;
 top: 0;
 bottom: 2%;
 width: 45%;
 pointer-events: none;
}
body.game-theme.version74 #app .poster-studio138[data-activity75='poster'] .poster-paper74 {
 width: min(100%, 38dvh, 405px);
 pointer-events: auto;
}
body.game-theme #app .poster-studio138 .activity-heading138 .poster-finish146 {
 margin-top: 8px !important;
 width: auto !important;
}
body.game-theme #app .poster-studio138 button.poster-slip140.slip-art { padding: 3px !important; }
body.game-theme #app .poster-studio138 button.poster-slip140:is(.slip-palette,.slip-graphic) {
 width: clamp(38px, 5.5vw, 104px);
 min-height: 0 !important;
 aspect-ratio: 1.55;
 padding: 3px !important;
 display: grid;
 align-items: stretch;
}
.poster-slip140.slip-palette i {
 display: block;
 background: var(--slip-color148);
 box-shadow: inset 0 0 0 1px #4e3b4355;
}
.poster-pattern148 {
 display: block;
 background-color: #342940;
 box-shadow: inset 0 0 0 1px #3e3348aa;
}
.poster-pattern148.pattern-0 { background-image: repeating-radial-gradient(ellipse at 85% 55%, #f8e1b860 0 1px, transparent 2px 6px); }
.poster-pattern148.pattern-1 { background-image: conic-gradient(from 20deg at 0% 80%, #f8d68991, #ffe6b254 38deg, transparent 40deg); }
.poster-pattern148.pattern-2 { background-image: repeating-linear-gradient(90deg,#f9e5cd7a 0 1px,transparent 1px 7px), repeating-linear-gradient(0deg,#f9e5cd7a 0 1px,transparent 1px 7px); }
.poster-feedback148 {
 position: absolute;
 width: 1px;
 height: 1px;
 overflow: hidden;
 clip-path: inset(50%);
}

.stage-result138 .novel-speaker {display: block; margin-bottom: 7px;}
body.game-theme #app .stage-result138 > p {font-weight: 400; font-size: .95rem;}

@media (min-width: 901px) and (min-height: 551px) {
 body.game-theme.version72 #app .disco70.phase-choose .party-dialogue70 {
  left: var(--play-left, 220px) !important;
  right: auto !important;
  top: var(--play-top, 140px) !important;
  bottom: auto !important;
  width: min(285px, 23vw) !important;
 }
}

@media (max-width: 760px) and (orientation: portrait) {
 body.game-theme #app:has(.crossword126) {
  --crossword-exit-height149: 62px;
  --crossword-exit-bottom149: max(var(--play-bottom, 80px), var(--exit-mobile-bottom104, 0px));
 }
 body.game-theme #app:has(.crossword126) > button.scene-exit-reveal104 {
  height: var(--crossword-exit-height149) !important;
  width: 88px !important;
 }
 body.game-theme #app .crossword126 .scanword-magazine {
  bottom: calc(var(--crossword-exit-bottom149) + var(--crossword-exit-height149) + 8px);
 }
 body.game-theme #app .garden-water138 .garden-field-can139 {
  left: 46% !important;
 }
}

@media (max-width: 760px) {
 body.game-theme #app .poster-studio138 .poster-table138 {
  inset: max(37dvh,calc(var(--play-top, 65px) + 108px)) 7px max(64px,var(--play-bottom,16px)) 7px;
 }
 .poster-studio138 .poster-board138 { left: 0; width: 49%; }
 body.game-theme.version74 #app .poster-studio138[data-activity75='poster'] .poster-paper74 {
  width: min(100%, 33dvh, 240px);
 }
 body.game-theme #app .poster-studio138 button.poster-slip140 {
  min-height: 28px !important;
  max-width: 24% !important;
  font-size: clamp(9px, 2vw, 12px) !important;
  padding: 3px !important;
 }
 body.game-theme #app .poster-studio138 button.poster-slip140.slip-art img {
  width: clamp(42px, 11vw, 78px);
 }
 body.game-theme #app .poster-studio138 button.poster-slip140:is(.slip-palette,.slip-graphic) {
  width: clamp(23px, 7vw, 50px);
  min-height: 0 !important;
 }
}
@media (max-width: 375px) and (max-height: 650px) and (orientation: portrait) {
 body.game-theme #app .poster-studio138 > button.scene-exit-reveal104 {
  top: calc(var(--play-top, 240px) - 32px) !important;
  right: 12px !important;
  bottom: auto !important;
  left: auto !important;
  width: 78px !important;
  height: 30px !important;
  min-height: 0 !important;
 }
}
@media (max-width: 340px) and (max-height: 600px) and (orientation: portrait) {
 body.game-theme #app .poster-studio138 button.poster-slip140.slip-date {
  margin-top: -13px !important;
 }
}
@media (max-height: 550px) and (orientation: landscape) {
 body.game-theme #app .poster-studio138 .poster-table138 {
  inset: 34dvh 10px max(4dvh,var(--play-bottom,18px)) var(--play-left,130px);
 }
 body.game-theme.version74 #app .poster-studio138[data-activity75='poster'] .poster-paper74 {
  width: min(100%, 40dvh, 220px);
 }
}
