@media (max-width: 700px) {
  .hero {
    width: calc(100% - 16px);
    padding: 24px 10px 100px;
  }

  .ritual-paper { padding-inline: 4px; }
  .dawn-caption { margin-bottom: 12px; }
  .title-link h1 { font-size: clamp(44px, 13vw, 65px); }
  .title-hint { display: inline-block; padding: 12px 4px; }
  .solstice-date, .title-hint, .flow-step { font-size: 13px; }
  .intro, .once-notice p { font-size: 15px; line-height: 1.8; }
  .once-notice small { font-size: 13px; line-height: 1.7; }
  .intro br, .once-notice small br, .question-help br { display: none; }

  .question-card h2, #divination-heading { font-size: 19px; }
  .question-card .question-help,
  .question-card #selected-question,
  #entry p { font-size: 15px; line-height: 1.8; }
  .flow-help, .method > .hint, .hex-help { font-size: 14px !important; }
  .choose-question, .mode button, .method .toss, dialog .toss, #copy {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    font-size: 16px;
    letter-spacing: normal;
    line-height: 1.5;
  }

  .mode {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .mode button { border-radius: 6px; }

  dialog {
    width: 100%;
    max-width: none;
    max-height: 94dvh;
    margin: auto 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    overscroll-behavior: contain;
  }

  dialog h2 { font-size: 22px; line-height: 1.45; }
  dialog h2 br { display: none; }
  #close-question { min-width: 44px; min-height: 44px; }
  .question-options { grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
  .question-option { align-items: center; border-radius: 6px; }
  .question-option strong, dialog textarea { font-size: 16px; }
  .question-option small { margin-top: 0; font-size: 13px; opacity: 1; }
  .question-option input { flex-shrink: 0; margin: 0; }

  .input-row { gap: 12px; }
  .input-row label { margin: 0; font-size: 15px; }
  .input-row select { min-width: 0; min-height: 48px; font-size: 16px; }
  .photo-button { width: 100%; font-size: 16px !important; }
  .coin-bundle {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
  }

  .cast-coin { position: relative; inset: auto; width: min(100%, 48px); height: auto; aspect-ratio: 1; }
  .hex-preview-row { font-size: 12px; }
  .hex-preview-row .yao { width: clamp(42px, 18vw, 80px); }
  #result { padding: 20px 12px; overflow-wrap: anywhere; }
  #lines { min-height: 0; }
  .line-row { gap: 8px; min-height: 51px; }
  .line-row .yao { width: clamp(42px, 20vw, 105px); margin-left: 0; }
  .coin-caption { font-size: 12px; }
  .result p, .reading-points li, .reading-detail summary, .explanation p {
    font-size: 16px;
    line-height: 1.85;
  }

  #interpretation p { font-size: 16px !important; line-height: 1.85 !important; }
  .reading-detail p { text-align: start; }
  .result-date { font-size: 12px !important; }
  .step h3, .step p { font-size: 14px; }
  #divination-step, #entry, #result, #reading-content, #about { scroll-margin-top: 16px; }
}

:where(button, a, textarea, select, input, summary):focus-visible,
.question-option:has(input:focus-visible) {
  outline: 2px solid #e5ad49;
  outline-offset: 3px;
}

.once-notice {
  padding: clamp(18px, 4vw, 30px) 16px;
}

.once-notice strong {
  font-size: clamp(23px, 6vw, 36px);
  letter-spacing: .04em;
}

.once-notice p { font-size: clamp(16px, 3.8vw, 20px); }
.once-notice small { font-size: clamp(14px, 3.2vw, 17px); }
.once-notice br { display: none; }

#open-question, #toss {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 12px;
  border-radius: 6px;
  font-size: 21px;
  font-weight: 700;
}

#toss { font-size: 26px; }
