/** PLAY ROOM touch mode is owned by the main game state. */
.am1co-playroom-start-touch {
  position:absolute;z-index:19;left:50%;top:50%;transform:translate(-50%,-50%);
  min-height:48px;padding:11px 21px;border:2px solid #281a13;border-radius:999px;
  background:#fff;color:#281a13;font:inherit;font-weight:900;cursor:pointer;
  box-shadow:0 8px 24px rgba(40,26,19,.19);touch-action:manipulation;
}
.am1co-playroom-start-touch[hidden]{display:none!important}
.am1co-playroom-start-touch:focus-visible{outline:3px solid #2fc9ff;outline-offset:3px}
@media (hover:none) and (pointer:coarse) {
  .am1co-playroom-scroll-enabled,
  .am1co-playroom-scroll-enabled * {touch-action:pan-y pinch-zoom!important}
  .am1co-playroom-scroll-enabled {overscroll-behavior-y:auto!important}
  .am1co-playroom-scroll-enabled button,
  .am1co-playroom-scroll-enabled a {touch-action:manipulation!important}
}

/* In portrait play, keep the square close to the screen edges at every level.
   The browser's visible height must not shrink the square's width. */
@media screen and (orientation:portrait) and (max-width:980px) {
  [data-play-room-quest] .play-room-quest-v206b4[data-quest-touch-mode="active"] {
    width:calc(100vw - 12px);
    max-width:none;
    margin-inline:0;
    justify-self:center;
  }
  [data-play-room-quest] .play-room-quest-v206b4[data-quest-touch-mode="active"] .play-room-quest-v206b4__board {
    width:100%;
    max-width:none;
    margin-inline:auto;
  }
}

/* AM1CO_P43A_GUIDE: instructions stay visible without an animation. */
.am1co-playroom-swipe-guide{
  position:absolute;top:0;right:0;bottom:0;left:0;inset:0;z-index:18;display:grid;place-items:center;
  pointer-events:none;overflow:hidden;
}
.am1co-playroom-swipe-guide__bubble{
  display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;
  max-width:calc(100% - 18px);padding:9px 13px;
  border:1px solid rgba(40,26,19,.25);border-radius:18px;
  color:#281a13;background:rgba(255,253,246,.98);font-size:clamp(.77rem,3vw,.94rem);
  font-weight:850;line-height:1.3;text-align:center;
  box-shadow:0 4px 12px rgba(40,26,19,.16);
  opacity:1;animation:none;
}
.am1co-playroom-swipe-guide__directions{font-size:1.2em;letter-spacing:.18em;white-space:nowrap}
.am1co-playroom-swipe-guide__finger{
  position:absolute;left:calc(50% - 18px);top:calc(50% + 48px);
  width:37px;height:44px;fill:#ffcb83;stroke:#281a13;stroke-width:2.4;
  stroke-linejoin:round;opacity:1;
  animation:am1co-swipe-guide-finger 1.4s ease-in-out infinite;
}
@keyframes am1co-swipe-guide-finger{
  0%,100%{transform:translate(-22px,5px) rotate(-8deg)}
  50%{transform:translate(22px,-5px) rotate(8deg)}
}
@media (prefers-reduced-motion:reduce){
  .am1co-playroom-swipe-guide__finger{animation:none!important;transform:none;opacity:1}
}

/* A single mobile game frame for all ways to start or repeat a level.
   Status and directional controls follow the full-width square in page flow. */
@media screen and (orientation:portrait) and (max-width:980px) {
  [data-play-room-quest] .play-room-quest-v206b4[data-am1co-game-framed="true"] {
    width:calc(100vw - 12px);
    max-width:none;
    margin-inline:0;
    justify-self:center;
  }
  [data-play-room-quest] .play-room-quest-v206b4[data-am1co-game-framed="true"] .play-room-quest-v206b4__board {
    width:100%;
    max-width:none;
    margin-inline:auto;
  }
  [data-play-room-quest] .play-room-quest-v206b4[data-am1co-game-framed="true"] .play-room-quest-v206b4__controls {
    scroll-margin-bottom:calc(12px + env(safe-area-inset-bottom));
  }
}

/* The goal-only status occupies no space once all stars have been collected. */
[data-play-room-quest] .play-room-quest-v206b4__status[hidden] {display:none!important;}
