/* Preserve native playfield and input mapping. Only menu/HUD clearance changes. */
div:has(> svg[viewBox="0 0 18 18"])[style*="left: 20px"] { left: 64px !important; }
/* The original results screen uses large fixed margins and switches layout based
   on body.scrollHeight, which its own hidden content can enlarge. Keep its
   content in normal flow and reserve space for the wrapper's fullscreen exit. */
.andkon-yurts-end {
  box-sizing: border-box;
  padding: clamp(16px, 4vmin, 32px) !important;
  padding-bottom: 60px !important;
  gap: 12px;
}
.andkon-yurts-end > :first-child {
  font-size: clamp(32px, 6vmin, 56px) !important;
  line-height: 1.1;
  padding-right: 240px;
}
.andkon-yurts-end > :nth-child(2),
.andkon-yurts-end > :nth-child(3) {
  margin-top: 0 !important;
  font-size: clamp(16px, 3.5vmin, 24px) !important;
}
.andkon-yurts-end > :nth-child(4),
.andkon-yurts-end > :nth-child(5) {
  position: static !important;
  margin-top: 0 !important;
}
.andkon-yurts-end > :nth-child(4) { font-size: 20px !important; }
.andkon-yurts-end > :nth-child(5) {
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px !important;
  margin-top: auto !important;
}
.andkon-yurts-end button, .andkon-yurts-overlay {
  font-size: clamp(18px, 3.5vmin, 26px) !important;
  padding: 10px 18px !important;
}
.andkon-yurts-overlay {
  top: clamp(16px, 4vmin, 32px) !important;
  right: clamp(16px, 4vmin, 32px) !important;
}
@media (max-width: 550px) {
  .andkon-yurts-menu, .andkon-yurts-end { padding: 24px 16px !important; }
  .andkon-yurts-menu { padding-bottom: 64px !important; }
  .andkon-yurts-menu > :first-child, .andkon-yurts-end > :first-child { font-size: 44px !important; }
  .andkon-yurts-menu > :nth-child(2) { margin-top: 24px !important; }
  .andkon-yurts-menu > :last-child { max-width: calc(100% - 72px); }
  .andkon-yurts-end { padding-bottom: 60px !important; }
  .andkon-yurts-end > :first-child { padding: 54px 0 0; font-size: 36px !important; }
  body:has(.andkon-yurts-menu:not([style*="pointer-events: none"])) div[style*="pointer-events: all"][style*="right: 16px"] {
    width: 0 !important; opacity: 0 !important; pointer-events: none !important;
  }
}
