/* Common edge-to-edge game layout for Daily, Dino Swords, 2 Player, Multiplayer. */
[data-responsive-game] { position: relative; min-width: 0; }
[data-responsive-game] > .rdr-view-toolbar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  min-height: 42px;
  padding: 4px max(8px, env(safe-area-inset-right)) 4px max(8px, env(safe-area-inset-left));
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  width: 100%;
  min-width: 0;
}
[data-responsive-game] > .rdr-view-toolbar > .rdr-view-toggle {
  position: static; z-index: auto;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 5px 10px; border: 1px solid rgba(221,245,223,.55);
  border-radius: 9px; color: #f1f8ee; background: rgba(29,61,43,.96);
  font: 700 12px/1.2 system-ui,sans-serif; cursor: pointer; touch-action: manipulation;
  white-space: nowrap;
}
[data-responsive-game] > .rdr-view-toolbar > .rdr-view-toggle:focus-visible { outline: 2px solid #b4ebc3; outline-offset: 2px; }
html.rdr-view-open,html.rdr-view-open body { overflow: hidden; overscroll-behavior: none; }
[data-responsive-game].rdr-expanded,
[data-responsive-game]:fullscreen {
  position: fixed; top: var(--rdr-top, 0px); left: var(--rdr-left, 0px);
  right: auto; bottom: auto;
  width: var(--rdr-vw, 100vw); height: var(--rdr-vh, 100dvh);
  margin: 0; max-width: none; max-height: none; padding: 4px;
  border: none; border-radius: 0; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--play-panel, #142e22);
  box-sizing: border-box; z-index: 4000;
}
[data-responsive-game] :is(canvas,iframe) { max-width: none; }
@media (orientation:landscape) and (max-height:480px) {
  [data-responsive-game].rdr-expanded,
  [data-responsive-game]:fullscreen { padding: 3px; }
  [data-responsive-game] > .rdr-view-toolbar { min-height: 34px; padding-block: 2px; }
  [data-responsive-game] > .rdr-view-toolbar > .rdr-view-toggle { min-height: 30px; padding: 3px 8px; font-size: 11px; }
}

/* One-time orientation advice; never interrupts play or captures the whole canvas. */
[data-responsive-game] > .rdr-rotate-hint {
  position: absolute; z-index: 44;
  top: calc(max(9px, env(safe-area-inset-top)) + 43px);
  left: 50%; transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 7px;
  padding: 6px 6px 6px 10px; border-radius: 9px;
  background: rgba(27, 57, 41, .95); color: #fff;
  border: 1px solid rgba(229, 246, 229, .4);
  font: 600 12px/1.25 system-ui,sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,.16);
}
[data-responsive-game] > .rdr-rotate-hint[hidden] { display: none !important; }
[data-responsive-game] > .rdr-rotate-hint > button {
  color: inherit; background: transparent; border: none; border-radius: 6px;
  font: 500 22px/1 system-ui,sans-serif; min-width: 30px; min-height: 30px;
  cursor: pointer; touch-action: manipulation;
}
@media (orientation:landscape) {
  [data-responsive-game] > .rdr-rotate-hint { display: none !important; }
}
