@layer interface-controls {
  body.play-screen :is(#close-panel, #language-back, .learning-page-close, #seed-picker-close, .weather-close, #close-word-card, #farm-controls-close) {
    --css-frame-bg: none !important;
    --css-frame-border: none !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-image: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--ui-ink, #43134e) !important;
    box-shadow: none !important;
    font-size: 0 !important;
    filter: none !important;
    opacity: 1 !important;

    &::before, &::after {
      --css-frame-bg: none !important;
      --css-frame-border: none !important;
      content: "" !important;
      display: block !important;
      position: absolute !important;
      inset: 50% auto auto 50% !important;
      width: 14px !important;
      min-width: 0 !important;
      height: 2px !important;
      margin: 0 !important;
      border: 0 !important;
      border-radius: 1px !important;
      background: currentColor !important;
      box-shadow: none !important;
      transform: translate(-50%, -50%) rotate(45deg) !important;
      pointer-events: none;
    }

    &::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }

    &:focus-visible {
      outline: 2px solid #65428b !important;
      outline-offset: -4px !important;
    }
  }
}

body.play-screen :is(.css-framed,.css-native-frame):focus-visible {
  outline: 2px solid #805dbc !important;
  outline-offset: 2px !important;
}
