/* =====================================================================
   Poor Life Choices — mobile layout (loaded in addition to shared.css)
   Optimised for one-thumb play. iPhone-safe (safe areas, no zoom).
   ===================================================================== */

body.m {
  /* room for the sticky action bar */
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.m-top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(11, 10, 16, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.m-top__brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  background: linear-gradient(100deg, #fff, var(--c-gold), var(--c-magenta));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-top__code { font-weight: 700; letter-spacing: 0.18em; color: var(--c-gold); font-size: 0.95rem; }

.m-wrap { padding: 16px; display: flex; flex-direction: column; gap: 16px; }

/* Status strip */
.m-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--c-line);
}
.m-strip__judge { color: var(--c-gold); font-weight: 650; font-size: 0.92rem; }
.m-strip__score { color: var(--c-muted); font-size: 0.85rem; }

/* Prompt */
.m-wrap .card--prompt { min-height: 180px; }
.m-wrap .card--prompt .card__text { font-size: clamp(1.35rem, 5.6vw, 1.8rem); }

/* Hand: horizontal swipe-ish scroller OR stacked grid */
.m-hand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.m-hand .card--answer { min-height: 116px; }
.m-hand .card--answer .card__text { font-size: 1rem; }

.m-answers { display: flex; flex-direction: column; gap: 12px; }
.m-answers .card--answer { min-height: auto; }

/* Players list compact */
.m-players { display: flex; flex-direction: column; gap: 8px; }

/* Sticky action bar */
.m-actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,10,16,0), rgba(11,10,16,0.95) 26%);
}
.m-actionbar .btn { width: 100%; min-height: 56px; font-size: 1.08rem; }

/* Lobby code hero on mobile */
.m-codehero { text-align: center; padding: 8px 0 4px; }
.m-codehero .roomcode { font-size: 2.2rem; letter-spacing: 0.2em; }

.m-section-title {
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 4px 0;
}
