/* =====================================================================
   mobile-pages — Inhaltsseiten auf dem Handy (<=700px, body.mp-phone).
   Laedt nach main-13 (Mobile-Layer). Inhalt:
     1) Krumen-Leiste „Client / …" weg: klebte als 77px-Streifen oben auf
        jeder Seite und sagte nur, wo man ist (das zeigt die Tab-Leiste).
     2) Duell-Seite: der Start-Knopf haengt fest ueber der Tab-Leiste, statt
        vier Bildschirme tiefer zu liegen. Einstellungen (Schwierigkeit,
        Bedenkzeit) ruecken direkt unter die Modi, Decks danach; Kopf und
        Deck-Karten kompakter.
     3) Sammlung: Kopf ohne Einleitungstext, Titel einzeilig, die vier
        Bereiche (Deck/Figuren/Beschwoerungen/Shop) in einer Reihe.
     4) Deck bearbeiten: nichts ragt mehr rechts raus, „Speichern" frei.
     5) Puzzle-Seite: Regeln jetzt in puzzle-hub.css.
   ===================================================================== */
@media (max-width: 700px) {
  /* 1) Krumen-Leiste */
  body.mp-phone .startTopbar { display: none !important; }
  body.mp-phone.mode-collection .collectionPage,
  body.mp-phone.mode-community .communityPage,
  body.mp-phone.mode-lessons .lessonsPage,
  body.mp-phone.mode-puzzle .puzzlePage,
  body.mp-phone.mode-messages .messagesPage,
  body.mp-phone.mode-info .infoPage,
  body.mp-phone.mode-play .playPage {
    padding-top: 28px;
  }

  /* 2) Duell-Seite */
  body.mp-phone.mode-play .duell {
    display: flex;
    flex-direction: column;
    /* Platz fuer den festen Start-Knopf ueber der Tab-Leiste. */
    padding-bottom: 84px;
  }
  body.mp-phone.mode-play .duell-head { margin-bottom: 18px; }
  body.mp-phone.mode-play .duell-sub { display: none; }
  body.mp-phone.mode-play .duell .mode-row { margin-bottom: 14px; }
  body.mp-phone.mode-play .duell .ready-bar {
    order: 1;
    margin-bottom: 22px;
  }
  body.mp-phone.mode-play .duell .matchup { order: 2; margin-bottom: 30px; }
  body.mp-phone.mode-play .duell .more-modes-label { order: 3; }
  body.mp-phone.mode-play .duell .friend-card { order: 4; }

  /* Start-Knopf fest unten, ueber der Tab-Leiste (58px + Home-Leiste). */
  body.mp-phone.mode-play .duell .play-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 30;
    width: auto;
    min-height: 54px;
    padding: 14px 18px;
    justify-content: center;
    box-shadow:
      0 0 0 1px rgba(216, 177, 90, .25),
      0 10px 30px rgba(0, 0, 0, .55),
      0 4px 22px rgba(216, 177, 90, .28),
      inset 0 1px 0 rgba(255, 255, 255, .45);
  }
  body.mp-phone.mode-play .duell .play-cta:hover { transform: none; }
  /* Sanfter Verlauf hinter dem Knopf, damit Inhalt nicht hart darunter
     durchlaeuft. */
  body.mp-phone.mode-play .duell::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    height: 84px;
    z-index: 29;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(7, 8, 11, 0), rgba(7, 8, 11, .88) 55%);
  }

  /* Deck-Karten: Bild flacher, Abstaende enger, VS-Raute kleiner. */
  body.mp-phone.mode-play .duell .deck-card { min-height: 214px; }
  body.mp-phone.mode-play .duell .deck-card .dc-body { padding: 14px 14px 12px; }
  body.mp-phone.mode-play .duell .deck-card .dc-name { font-size: 24px; }
  body.mp-phone.mode-play .duell .matchup { gap: 12px; }
  body.mp-phone.mode-play .duell .vs-medallion {
    width: 44px;
    height: 44px;
    margin: 4px 14px;
  }
  body.mp-phone.mode-play .duell .vs-medallion .vs-diamond.inner { inset: 5px; }
  body.mp-phone.mode-play .duell .vs-medallion .vs-text { font-size: 14px; }

  /* 3) Sammlung */
  body.mp-phone .col-header .col-sub { display: none; }
  body.mp-phone .col-header .col-title {
    font-size: clamp(26px, 8.6vw, 34px);
    line-height: 1.05;
  }
  body.mp-phone .col-header-inner { gap: 12px; }
  body.mp-phone .collection-tabs {
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 14px;
  }
  body.mp-phone .collection-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 6px 12px;
    font-size: 9.5px;
  }
  body.mp-phone .collection-tab .ct-num { display: none; }
  body.mp-phone .collection-tab .ct-label { letter-spacing: 1.2px; }
  body.mp-phone .col-section { padding-top: 16px; }

  /* Figuren-Tab: die vier Stat-Kacheln (2x2, ~490px hoch) werden eine
     schmale Leiste — Zahl oben, Beschriftung darunter, ohne Balken/Marken. */
  body.mp-phone .col-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid rgba(216, 177, 90, .14);
    background: linear-gradient(180deg, rgba(18, 21, 28, .72), rgba(8, 10, 14, .88));
  }
  body.mp-phone .col-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding: 10px 4px 9px;
    border: 0;
    background: none;
    text-align: center;
  }
  body.mp-phone .col-stat + .col-stat { border-left: 1px solid rgba(216, 177, 90, .10); }
  body.mp-phone .col-stat .cs-v {
    order: -1;
    margin: 0 0 6px;
    font-size: 21px;
  }
  body.mp-phone .col-stat .cs-k {
    font-size: 8px;
    letter-spacing: 1px;
    line-height: 1.35;
  }
  body.mp-phone .col-stat .completion-bar,
  body.mp-phone .col-stat .cs-note,
  body.mp-phone .col-stat .cs-sigils,
  body.mp-phone .col-stat .cs-decks { display: none; }

  /* 4) Deck-Editor: Regeln in decks.css (im Tab statt Popup). */

  /* 5) Puzzle-Seite: Handy-Regeln in puzzle-hub.css. */
}

