body.play-screen[data-compact-hud] .game-hud {
  inset: max(6px, env(safe-area-inset-top)) 6px auto;
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 240px);
  gap: 6px;
  justify-content: space-between;
}
body.play-screen[data-compact-hud] .game-hud .hud-progress {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 76px;
  padding: 18px 8px 8px;
  gap: 2px;
  background-image: var(--hud-desktop-brand);
}
body.play-screen[data-compact-hud] .brand {
  position: relative;
  margin: 0;
  font-size: clamp(14px, 3.8vw, 18px);
  line-height: 1;
}
body.play-screen[data-compact-hud] .brand::after { content: ''; position: absolute; inset: -15px 0; min-height: 44px; }
body.play-screen[data-compact-hud] #level { margin: 0; font-size: 11px; line-height: 1.1; }
body.play-screen[data-compact-hud] #level-progress { height: 5px; }
body.play-screen[data-compact-hud] .game-hud .stats {
  position: static;
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
}
body.play-screen[data-compact-hud] .game-hud .stats > :is(#coins,#stars,#words) {
  min-height: 36px;
  padding: 4px;
  border-width: 2px;
  border-image-width: 6px;
  font-size: 11px;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.play-screen[data-compact-hud] :is(#settings-open,#streak-open,#farm-controls > summary) {
  position: fixed;
  top: var(--hud-content-clearance, 90px);
  bottom: auto;
  width: calc((100vw - 24px) / 3);
  max-width: none;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 5px;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.play-screen[data-compact-hud] #farm-controls > summary { left: 6px; right: auto; }
body.play-screen[data-compact-hud] #settings-open { left: calc(12px + (100vw - 24px) / 3); right: auto; }
body.play-screen[data-compact-hud] #streak-open { left: auto; right: 6px; }
body.play-screen[data-compact-hud] .actions { width: calc(100vw - 12px); bottom: max(6px, env(safe-area-inset-bottom)); gap: 4px; }
body.play-screen[data-compact-hud] .actions button { min-height: 92px; height: 92px; padding: 6px 4px; }
body.play-screen[data-compact-hud] .actions button::before { width: 44px; height: 44px; margin: 0; }
body.play-screen[data-compact-hud] .actions .nav-label { font-size: 13px; line-height: 1.1; }
body.play-screen[data-compact-hud] #placement-controls { --placement-top: calc(var(--hud-content-clearance, 90px) + 52px); }
body.play-screen[data-compact-hud] .farm-controls-content { inset: max(8px,env(safe-area-inset-top)) 8px max(8px,env(safe-area-inset-bottom)); z-index: 10; width: auto; height: auto; max-height: none; padding: 16px; }
body.play-screen[data-compact-hud] .farm-controls-scroll { height: 100%; }
body.play-screen[data-compact-hud] .farm-controls-content .drawer-heading { position: sticky; top: 0; z-index: 2; background: var(--ui-paper); }
body.play-screen[data-compact-hud] .farm-controls-content #farm-controls-close { min-height: 44px; }
body.play-screen[data-compact-hud] .farm-controls-hud:not([hidden]) { display: grid; gap: 12px; margin-block: 12px; }
body.play-screen[data-compact-hud] .farm-controls-hud :is(.scene-label,.camera-controls,.map-shortcuts,#seed-pouch-open,.region-controls) {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  transform: none;
  translate: none;
}
body.play-screen[data-compact-hud] .farm-controls-hud .scene-label button {
  width: 100%; min-width: 0; max-width: none; min-height: 44px; font-size: 14px; padding: 6px; border-image-width: 8px;
}
body.play-screen[data-compact-hud] .farm-controls-hud .scene-label button::after { content: none; }
body.play-screen[data-compact-hud] .farm-controls-hud .camera-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
body.play-screen[data-compact-hud] .farm-controls-hud .camera-controls button { width: 100%; height: 44px; min-height: 44px; font-size: 24px; }
body.play-screen[data-compact-hud] .farm-controls-hud .map-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
body.play-screen[data-compact-hud] .farm-controls-hud :is(#garden-open,#village-open) { min-width: 0; max-width: none; min-height: 44px; width: 100%; font-size: 14px; padding: 6px; }
body.play-screen[data-compact-hud] .farm-controls-hud #seed-pouch-open { min-height: 44px; font-size: 14px; padding: 6px; }
body.play-screen[data-compact-hud] .farm-controls-hud .region-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); height: auto; gap: 6px; padding: 4px; }
body.play-screen[data-compact-hud] .farm-controls-hud .region-controls button { width: 100%; min-width: 0; min-height: 44px; font-size: 13px; padding: 6px; }
