/* A challenge inside an X post (Tyler, 2026-11-19: "you can play it in the timeline on X"): the framed page, the
   challenge link's address with /embed after it (apps/platform/src/challenges/page.rs), whose body wears
   `challenge-embed` in the frame (apps/game/src/session/challenge/link.rs `in_post`). Last of the sheets; every rule is
   that page's alone. Tokens only.
   The frame is about 516 px square, with a mouse and a keyboard. The desktop HUD stops shrinking at a 1116 px window's
   worth, so there its stats, minimap and menu buttons lay over the player's panel. The frame keeps the goal and the
   seconds along the top and the player's portrait, health, mana and abilities at the foot. Fullscreen, a desktop's
   window, has the whole HUD (`link::frame_zoom` stops at the same sizes). */
@media (max-width: 900px), (max-height: 600px) {
  body.challenge-embed :is(.topbar, .mystats, .statspanel, .minimap-frame, .match-performance, .inspection-dock, .capture-resume),
  body.challenge-embed #player-chat, body.challenge-embed #player-panel .econ { display: none; }
  body.challenge-embed .challenge-objective { top: 8px; right: 8px; left: 8px; max-width: none; transform: none; flex-direction: row;
    align-items: center; justify-content: space-between; gap: var(--s3); padding: 6px 12px; text-align: left; }
  body.challenge-embed .challenge-objective-goal { font-size: var(--t-s); line-height: 1.25; }
  body.challenge-embed .challenge-objective-time { font-size: var(--t-m); }
  body.challenge-embed .challenge-panel { width: calc(100% - 24px); }
  body.challenge-embed .challenge-panel p { margin: var(--s2) var(--s4); }
  body.challenge-embed .challenge-main > .btn.big { margin-top: var(--s2); padding: var(--s4) var(--s5); font-size: var(--t-l); }
  body.challenge-embed .challenge-actions, body.challenge-embed .challenge-won { margin-top: var(--s3); }
  body.challenge-embed .challenge-won { padding-top: var(--s3); }
  body.challenge-embed .challenge-actions .btn, body.challenge-embed .challenge-won .btn { min-height: 40px; }
  /* A won card's address, then its buttons in one row: in a column the card scrolled at 516 px. */
  body.challenge-embed .challenge-won .challenge-share { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
  body.challenge-embed .challenge-won .challenge-share label { flex: 1 1 100%; }
  body.challenge-embed .challenge-won .challenge-share .btn { flex: 1 1 0; padding-inline: var(--s3); }
}
