@media (max-width: 900px) {
  .tool-grid--day { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-grid--day .tool--day { grid-column: 2; }
  .tool-grid--night { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-board { gap: 14px; }
}

@media (max-width: 700px) {
  :root { --edge: 15px; }

  .topbar { min-height: 46px; padding-block: 3px; }
  .brand { max-width: calc(100% - 92px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .status__chaos { display: none; }
  .chaos-meter { width: 62px; }

  .scene__content { min-height: auto; padding-top: 20px; padding-bottom: 28px; }
  .intro-layout { grid-template-columns: 1fr; align-content: center; gap: 18px; }
  .intro-copy { text-align: left; }
  .intro-copy h1 { max-width: none; font-size: clamp(2.55rem, 15vw, 4rem); }
  .intro-text { font-size: .97rem; }
  .intro-doodle { display: none; }
  .margin-note { display: none; }
  .doodle-layer { opacity: .62; }

  .sheet-layout { gap: 12px; }
  .sheet-heading p:last-child { font-size: .9rem; }
  .tool-grid { align-content: start; margin-top: 0; gap: 8px 10px; }
  .tool-grid .doodle-tool { --tilt: 0deg; }
  .tool-grid--day { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid--day .tool--day { grid-column: 1 / -1; width: 50%; justify-self: center; }
  .tool-grid--night { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doodle-tool { min-height: 112px; padding: 10px 7px; }
  .doodle-tool span { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .doodle-tool b { font-size: .76rem; }
  .doodle-tool small { display: none; }

  .sheet-layout--cat { display: block; }
  .cat-board {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    margin-top: 6px;
  }
  .cat-focus { grid-column: 1 / -1; grid-row: 1; min-height: 245px; }
  .cat-focus__cat { font-size: 7.8rem; }
  .cat-focus__cushion { bottom: 52px; }
  .cat-board__actions { display: contents; }
  .cat-board__actions .doodle-tool { min-height: 96px; }

  .scene-nav { min-height: 46px; padding-bottom: 4px; }
  .scene-nav > button { min-height: 42px; height: 42px; }

  .modal-shade { align-items: flex-end; padding: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .modal { width: 100%; max-height: 92dvh; padding: 14px; border-radius: 12px 12px 4px 4px; box-shadow: 0 -5px 0 rgba(25,21,19,.65); }
  .modal-head { margin-right: 45px; }
  .modal__close { top: -2px; }
  .paper-blob { padding: 10px; }
  .btn { flex: 1 1 auto; min-width: 90px; }
  .drawing-canvas { height: 300px; }
  .scratch-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 390px) {
  .brand { font-size: .82rem; }
  .status { gap: 5px; font-size: .58rem; }
  .chaos-meter { width: 48px; }
  h2 { font-size: 1.75rem; }
  .sheet-heading p:last-child { display: none; }
  .tool-grid { gap: 5px; }
  .doodle-tool { min-height: 103px; }
  .cat-focus { min-height: 220px; }
  .cat-focus__cat { font-size: 6.8rem; }
  .cat-focus__bubble { min-width: 150px; font-size: .7rem; }
  .cat-board__actions .doodle-tool { min-height: 88px; }
  .scene-dot { width: 12px; min-width: 12px; height: 12px; min-height: 12px; }
  .vending { grid-template-columns: repeat(4, 1fr); }
  .vending button { min-width: 0; }
  .oracle { grid-template-columns: 72px minmax(0,1fr); }
  .oracle__emoji { font-size: 3.6rem; }
}

@media (min-width: 1200px) and (min-height: 800px) {
  .scene__content { padding-top: 6vh; padding-bottom: 7vh; }
  .doodle-tool { min-height: 164px; }
  .cat-focus { min-height: 390px; }
}

@media (max-height: 720px) and (min-width: 701px) {
  .scene__content { padding-top: 18px; padding-bottom: 24px; }
  .sheet-layout { gap: 10px; }
  .sheet-heading p:last-child { margin-bottom: 0; }
  .doodle-tool { min-height: 118px; }
  .cat-focus { min-height: 280px; }
  .cat-focus__cat { font-size: 7rem; }
}
