/* The phone pass, sign-in pages, your worlds, the Tavern, new-world path and genre (owner, 25 Nov; mockups in docs/DESIGN_TWEAKS_2026-11-25.md, "Mobile pass").
   Every rule inside @media (max-width: 700px): nothing here touches the desktop. */

@media (max-width: 700px) {

  /* ── 1. sign-in family (login, signup, forgot, request access): the form first, a small headline, no oval ── */
  .wf-auth { display: flex !important; flex-direction: column; height: auto !important; min-height: 100%; overflow: visible; }
  .wf-auth-left { padding: 56px 20px 6px !important; min-height: 0 !important; flex: none; }
  .wf-auth-mid { flex: none; gap: 10px !important; justify-content: flex-start; }
  .wf-auth-h1 { max-width: none !important; margin: 0; }
  a.wf-auth-brand { display: inline-block; align-self: flex-start; padding: 12px 0; margin: -12px 0; }
  .wf-auth-stats, .wf-auth-lines { display: none !important; }
  .wf-auth-left .wf-auth-blurb { font-size: 15px !important; line-height: 1.45; color: var(--ink-dim);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .wf-auth:has(form[action="/signup"]) .wf-auth-left .wf-auth-blurb { display: none !important; }
  .wf-auth-right { padding: 14px 20px calc(28px + env(safe-area-inset-bottom)) !important; gap: 14px !important; border-left: 0 !important;
    justify-content: flex-start; background: none !important; flex: none; }
  .wf-auth-form { gap: 14px !important; }
  .wf-auth-field { gap: 7px !important; }
  .wf-auth .wf-input, .wf-auth select.wf-input { min-height: 48px; height: 48px; font-size: 16px; padding-top: 0; padding-bottom: 0; }
  .wf-auth input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
  .wf-auth-submit { min-height: 52px; padding: 0 20px !important; font-size: 14px; letter-spacing: 0.2em; }
  .wf-auth-field > div[style*="display:flex"] > * { flex: 1 1 0; min-width: 0; }
  .wf-auth-foot { font-size: 11px; line-height: 1.7; text-transform: none; letter-spacing: 0.06em; }
  .wf-auth-foot a { display: inline-block; padding: 8px 2px; }

  /* ── 2. your worlds ── */
  .wf-picker { padding: 14px 18px 0 !important; }
  .wf-picker-head { flex-wrap: nowrap !important; gap: 10px !important; padding-bottom: 10px !important; }
  .wf-picker-head .wf-brand { font-size: 11px; letter-spacing: 0.3em; white-space: nowrap; }
  .wf-picker-head .wf-btn--ghost { min-height: 40px; padding: 0 16px; white-space: nowrap; font-size: 12px; }
  .wf-picker-titlebar { display: block; }
  .wf-picker-title { white-space: nowrap; margin: 0 0 12px !important; }
  .wf-picker-rule { display: none; }
  .wf-picker-scroll { margin: 0 -18px !important; padding: 0 0 calc(var(--wfm-bar-h) + 26px) !important; overflow-x: hidden; }

  /* "+ New world": pinned to the bottom of the screen as a full-width gold bar (the .wfm-bar look, on the button itself) */
  .wf-picker-titlebar .wf-btn--primary { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
    margin: 0 !important; min-height: 52px; padding: 0 18px !important; display: flex; align-items: center; justify-content: center; }
  .wf-picker-titlebar::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--wfm-bar-h) + 26px + env(safe-area-inset-bottom)); z-index: 39;
    background: linear-gradient(0deg, #08080c 58%, rgba(8, 8, 12, 0)); pointer-events: none; }

  /* each world: a full-width card with its picture behind it under a dark scrim; only the first has a gold line on top */
  .wf-world-row { display: block; }
  .wf-world { grid-template-columns: minmax(0, 1fr) auto !important; align-items: start; gap: 6px 12px !important; min-height: 104px;
    padding: 16px 62px 16px 18px !important; border-bottom: 0 !important; border-top: 0; background: #0a0a10; }
  .wf-world:hover { padding-left: 18px !important; background: #0a0a10; }
  .wf-world-row:first-child .wf-world { border-top: 1px solid var(--acc); }
  .wf-world-art { opacity: 0.62 !important; -webkit-mask-image: none; mask-image: none; background-position: center 35%; }
  .wf-world:hover .wf-world-art { opacity: 0.62 !important; transform: none; }
  .wf-world::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 8, 12, 0.9) 0%, rgba(8, 8, 12, 0.7) 55%, rgba(8, 8, 12, 0.45) 100%); }
  .wf-world-main { display: contents; }
  .wf-world-name, .wf-world-meta, .wf-world-sub { position: relative; z-index: 1; }
  .wf-world-name { grid-column: 1 / -1; font-size: 21px !important; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.15;
    white-space: normal !important; overflow: visible; }
  .wf-world-meta { grid-column: 1; grid-row: 2; font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; white-space: normal !important; }
  .wf-world-sub { grid-column: 2; grid-row: 2; margin: 0 !important; font-size: 12px !important; text-align: right; }
  .wf-world-pills { grid-column: 1 / -1; grid-row: 3; gap: 6px; flex-wrap: wrap; }
  .wf-world-pills .wf-pill { min-height: 0; padding: 4px 11px; font-size: 11px; }
  .wf-world-del { display: none !important; }
  .wfm-world-more { position: absolute; z-index: 3; right: 8px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; padding: 0;
    border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 26px; line-height: 1; letter-spacing: 0.04em; cursor: pointer;
    display: flex; align-items: center; justify-content: center; }
  .wfm-world-more:active { background: rgba(255, 255, 255, 0.1); }
  .wfm-row--danger { color: #e0615f; border-color: color-mix(in srgb, #c2413f 55%, transparent); }

  /* ── 3. the Tavern: a back arrow, a segmented sort, comfortable rows ── */
  .wf-picker-head .wfu-home { display: none; }
  .wf-picker-head a.wfm-back { order: -2; flex: none; width: 40px; height: 40px; min-height: 40px; padding: 0 !important; font-size: 0; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; }
  .wf-picker-head a.wfm-back::before { content: "\2039"; font-size: 28px; line-height: 1; margin-top: -3px; color: var(--ink-2); }
  .wf-picker-head a.wfm-back + * { order: 0; }
  .tv-wrap { padding: 0 18px 40px; }
  .tv-lede { font-size: 15px; line-height: 1.45; margin: 0 0 14px; }
  .tv-sort { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; margin: 0 0 16px; border: 1px solid var(--bd-ctl, rgba(255, 255, 255, 0.22)); border-radius: 999px; }
  .tv-sort a { text-align: center; min-height: 42px; display: flex; align-items: center; justify-content: center; border: 0; font-size: 12px; letter-spacing: 0.14em; }
  .tv-sort a[aria-current="page"] { background: var(--acc); color: #0b0a10; font-weight: 600; }
  .tv-entry { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.035); margin: 0 0 12px; }
  .tv-title { font-size: 22px; line-height: 1.15; }
  .tv-acts { gap: 8px; margin-top: 4px; }
  .tv-acts .tv-read { order: -1; flex: 1 1 auto; white-space: nowrap; margin: 0; min-height: 44px; display: flex; align-items: center; justify-content: center;
    background: var(--acc); color: #0b0a10; border-color: var(--acc); font-weight: 600; letter-spacing: 0.06em; }
  .tv-acts .tv-like, .tv-acts .tv-comments { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; }
  .tv-mine-row { gap: 8px; }
  .tv-mine-row .wf-btn { min-height: 44px; }

  /* ── 4. new world: how should it begin? three compact rows ── */
  .wf-forge .wf-forge-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-bottom: 14px; }
  .wf-forge .wf-path-grid { gap: 10px !important; }
  .wf-forge .wf-path-card { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) 18px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px;
    align-items: center; min-height: 64px !important; padding: 12px 14px !important; border-radius: 14px; }
  .wf-forge .wf-path-ord { grid-column: 1; grid-row: 1 / span 2; font-size: 24px !important; opacity: 0.9; }
  .wf-forge .wf-path-name { grid-column: 2; grid-row: 1; font-size: 19px !important; }
  .wf-forge .wf-path-desc { grid-column: 2; grid-row: 2; flex: none; font-size: 13px !important; line-height: 1.35 !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
  .wf-forge .wf-path-kicker, .wf-forge .wf-path-cta { display: none !important; }
  .wf-forge .wf-path-card::after { content: "\203A"; grid-column: 3; grid-row: 1 / span 2; font-size: 26px; line-height: 1; color: var(--ink-dim); }

  /* ── 5. choose a genre: every genre open, one at a time selected, the button only under the one you tapped ── */
  .wf-forge .wf-genre-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
  .wf-forge .wf-genre-card { gap: 4px !important; padding: 14px 16px 14px 14px !important; border: 0 !important; border-left: 3px solid transparent !important;
    border-bottom: 1px solid var(--hair, rgba(255, 255, 255, 0.1)) !important; border-radius: 0 !important; background: transparent !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
  .wf-forge .wf-genre-card:first-child { border-top: 1px solid var(--hair, rgba(255, 255, 255, 0.1)) !important; }
  .wf-forge .wf-genre-card.is-selected { border-left-color: var(--card-acc, var(--acc)) !important;
    background: color-mix(in srgb, var(--card-acc, var(--acc)) 9%, rgba(9, 9, 14, 0.9)) !important; }
  .wf-forge .wf-genre-kicker, .wf-forge .wf-genre-more { display: none !important; }
  .wf-forge .wf-genre-name { font-size: 21px !important; }
  .wf-forge .wf-genre-desc { font-size: 13px !important; line-height: 1.4; margin: 0 !important; }
  .wf-forge .wf-genre-subs { display: grid !important; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column;
    gap: 3px 14px !important; margin: 6px 0 0 !important; padding: 0 !important; border-top: 0 !important; font-size: 11.5px; }
  .wf-forge .wf-genre-subs li:nth-child(n+5) { display: none !important; }
  .wf-forge .wf-genre-subs li { gap: 7px; min-width: 0; }
  .wf-forge .wf-genre-cta { display: none !important; }
  .wf-forge .wf-genre-card.is-selected .wf-genre-cta { display: block !important; margin-top: 12px !important; padding: 15px 14px !important; font-size: 12px; }
}
