/* Responsive fieldwork is a document, not a canvas to scale. */
body.junior-paleontologist-page {
  margin: 0;
  min-width: 280px;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f6f2e7;
}
body.junior-paleontologist-page .play-header {
  position: relative;
  inset: auto;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 7px 14px;
  background: #1f362c;
  border-bottom: 1px solid #385043;
}
body.junior-paleontologist-page .play-title { min-width: 0; flex: 1; line-height: 1.3; }
body.junior-paleontologist-page .play-title strong { display: block; font-size: .84rem; color: #fffbee; }
body.junior-paleontologist-page .play-title small { display: block; font-size: .65rem; color: #cad5c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.junior-paleontologist-page .back-button,
body.junior-paleontologist-page .play-header .icon-button {
  min-width: 40px;
  min-height: 40px;
  padding: 6px;
  border: 1px solid #425e4d;
  border-radius: 10px;
  background: #2b4637;
  color: #fffbee;
  display: grid;
  place-items: center;
  text-decoration: none;
}
body.junior-paleontologist-page .back-button:focus-visible,
body.junior-paleontologist-page .play-header .icon-button:focus-visible { outline: 3px solid #e6c77e; outline-offset: 2px; }
body.junior-paleontologist-page .game-stage {
  position: relative;
  inset: auto;
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #f6f2e7;
}
body.junior-paleontologist-page #gameFrame {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border: 0;
  border-radius: 0;
  margin: 0;
  transform: none !important;
  display: block;
  background: #f6f2e7;
}
body.junior-paleontologist-page .play-status { display: none; }
body.junior-paleontologist-page .play-status.error,
body.junior-paleontologist-page .play-status[data-state="error"] { display: block; position: relative; inset: auto; padding: 10px 16px; background: #fff1df; color: #80562b; font-size: .84rem; }
body.junior-paleontologist-page:fullscreen .game-stage { height: auto; }
@media (max-width: 500px) {
  body.junior-paleontologist-page .play-header { min-height: 52px; padding: 5px 9px; gap: 7px; }
  body.junior-paleontologist-page .play-title small { max-width: 210px; font-size: .59rem; }
}
