/* Mobile-first corrections for Spårummet.
   Loaded after fortune.css so these rules win without weakening desktop. */

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .fortune-header {
    width: calc(100% - 24px);
    min-height: 64px;
    gap: 10px;
  }

  .fortune-brand {
    gap: .48rem;
    min-width: 0;
  }

  .fortune-brand > span {
    width: 30px;
    height: 30px;
  }

  .fortune-brand strong {
    font-size: 1.04rem;
    white-space: nowrap;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions > a {
    font-size: .78rem;
    white-space: nowrap;
  }

  .launch-badge {
    display: none;
  }

  .doorway {
    width: calc(100% - 28px);
    min-height: calc(100svh - 80px);
    padding: 54px 0 74px;
  }

  .doorway-emblem i {
    width: 58px;
    height: 58px;
    font-size: 1.55rem;
  }

  .doorway h1 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
    line-height: .98;
  }

  .doorway-lead {
    margin: 22px auto 24px;
    font-size: 1.06rem;
    line-height: 1.5;
  }

  .session-shell {
    width: calc(100% - 20px);
    padding: 34px 0 76px;
  }

  .reader-place {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 34px;
  }

  .reader-medallion {
    width: 70px;
  }

  .reader-moon {
    font-size: 1.8rem;
  }

  .reader-stars {
    bottom: 14px;
    font-size: .5rem;
  }

  .reader-copy h2,
  .step-copy h2,
  .table-copy h2,
  .followup-heading h2,
  .method-note h2 {
    font-size: clamp(1.75rem, 8.4vw, 2.35rem);
    line-height: 1.06;
  }

  .reader-copy > p:last-child,
  .step-copy > p:last-child,
  .table-copy > p:last-child,
  .followup-heading > p:last-child {
    font-size: .9rem;
    line-height: 1.5;
  }

  .ritual-step {
    width: 100%;
    margin: 0 auto 18px;
    padding: 22px 16px;
    border-radius: 20px;
  }

  .step-number {
    top: 16px;
    right: 16px;
    font-size: 1.25rem;
  }

  .step-copy {
    max-width: none;
    margin-bottom: 18px;
    padding-right: 30px;
  }

  .mode-cards,
  .service-grid,
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .mode-card {
    min-height: 0;
    padding: 19px 18px;
    border-radius: 16px;
  }

  .mode-symbol {
    margin-bottom: 8px;
    font-size: 1.55rem;
  }

  .mode-card strong,
  .service-card strong {
    font-size: 1.42rem;
    line-height: 1.12;
  }

  .mode-card small {
    margin-top: 6px;
    font-size: .9rem;
  }

  /* The screenshot bug: never keep the three readings in narrow columns. */
  .service-grid {
    width: 100%;
  }

  .service-card {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 20px 18px;
    border-radius: 17px;
    overflow: hidden;
  }

  .service-card.active::after,
  .mode-card.active::after {
    top: 11px;
    right: 11px;
    font-size: .58rem;
  }

  .service-count {
    display: block;
    padding-right: 58px;
    font-size: .69rem;
  }

  .service-icon {
    min-height: 0;
    margin: 10px 0 6px;
    font-size: 1.65rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .service-card strong {
    max-width: calc(100% - 10px);
    overflow-wrap: normal;
    word-break: normal;
  }

  .service-card p {
    max-width: 34rem;
    margin-top: 8px;
    font-size: .93rem;
    line-height: 1.48;
    overflow-wrap: normal;
    word-break: normal;
  }

  .session-form {
    gap: 18px;
  }

  .session-form input[type='text'],
  .session-form textarea,
  .followup-form textarea {
    font-size: 16px; /* Prevent iOS zoom on focus. */
  }

  .focus-options {
    gap: 7px;
  }

  .focus-options span {
    padding: .56rem .72rem;
    font-size: .82rem;
  }

  .table-button,
  .followup-row .gold-button {
    width: 100%;
    justify-self: stretch;
  }

  .privacy-note {
    font-size: .74rem;
    line-height: 1.5;
  }

  .card-table {
    width: 100%;
    margin: 34px auto 26px;
    padding: 34px 10px 42px;
    border-radius: 24px;
  }

  .deck-fan {
    min-height: 235px;
    margin: 22px -10px 8px;
    padding: 16px 0 30px;
  }

  .deck-card {
    width: clamp(62px, 18vw, 78px);
    margin-left: -20px;
    margin-right: -20px;
  }

  .deck-card:first-child {
    margin-left: 0;
  }

  .deck-card:last-child {
    margin-right: 0;
  }

  .reading-section {
    margin-top: 36px;
  }

  .reading-paper {
    padding: 26px 18px;
    border-radius: 10px;
  }

  .reading-paper::before {
    inset: 8px;
  }

  .reading-header {
    gap: 12px;
    padding-bottom: 18px;
  }

  .reading-header h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .session-seal {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }

  .reading-opening {
    margin: 20px 0 26px;
    font-size: 1.05rem;
  }

  .revealed-cards {
    gap: 14px;
    margin: 26px 0 34px;
  }

  .revealed-card-wrap {
    width: min(144px, 46%);
    min-width: 0;
  }

  .interpretation-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 0;
  }

  .reading-balance,
  .method-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  .reading-balance section,
  .next-step {
    padding: 19px 4px;
  }

  .reading-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .followup-section {
    margin-top: 36px;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .chat-message {
    max-width: 92%;
  }

  .followup-row {
    grid-template-columns: 1fr;
  }

  .followup-meta {
    flex-direction: column;
    gap: 4px;
  }

  .method-note {
    margin-top: 48px;
    padding: 28px 4px;
  }

  .fortune-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 390px) {
  .session-shell {
    width: calc(100% - 14px);
  }

  .ritual-step {
    padding: 20px 14px;
  }

  .reader-place {
    grid-template-columns: 1fr;
  }

  .reader-medallion {
    width: 62px;
  }

  .service-card {
    padding: 18px 15px;
  }

  .service-card strong {
    font-size: 1.34rem;
  }

  .service-card p {
    font-size: .89rem;
  }

  .deck-card {
    width: 62px;
    margin-left: -19px;
    margin-right: -19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mode-card,
  .service-card {
    transition: none;
  }
}
