body.phone {
  min-height: 100dvh;
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(79, 127, 192, 0.25), transparent 70%),
    var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}
.muted { color: var(--muted); }
.center { text-align: center; }
.lbl { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.brand-lg { font-size: 64px; color: var(--gold); line-height: 0.9; }

.center-screen { min-height: 60vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 24px; }
.center-screen h2 { font-size: 40px; line-height: 1; }
.center-screen p { margin: 0; }
.big-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; background: var(--fairway); }
.intro-count { font-size: 120px; line-height: 1; color: var(--gold); }
.spinner { width: 64px; height: 64px; border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.1); border-top-color: var(--c); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Join */
.join { padding: 40px 16px 24px; display: grid; gap: 18px; }
.join h1 { font-size: 36px; line-height: 1; }
.title-sheet h2 { font-size: 34px; }

/* Header */
.me-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--c);
}
.me-name { display: grid; line-height: 1.2; }
.me-name span { font-size: 12px; color: var(--muted); font-weight: 600; }
.me-money { margin-left: auto; display: grid; justify-items: end; line-height: 1; }
.me-money .display { font-size: 34px; color: var(--gold); }
.me-money small { font-size: 11px; color: var(--muted); font-weight: 700; }

.content { padding: 16px 16px 90px; }
.content.with-dock { padding-bottom: 330px; }

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #040b16;
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabs button { appearance: none; background: none; border: 0; padding: 14px 0 12px; font-weight: 700; font-size: 14px; color: var(--dim); cursor: pointer; }
.tabs button.on { color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }

/* Lists */
.your-turn { text-align: center; font-family: var(--display); font-size: 34px; color: var(--gold); margin: 4px 0 14px; animation: pulseText 1.4s infinite; }
@keyframes pulseText { 50% { opacity: 0.6; } }
.plist { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: left; cursor: pointer; }
.prow.drafted, .prow.captain { opacity: 0.6; }
.prow-main { display: grid; line-height: 1.25; min-width: 0; }
.prow-main b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-main span { font-size: 13px; color: var(--muted); font-weight: 600; }
.tag { margin-left: auto; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 30%, transparent); border: 1px solid var(--c); }
.tag.live { --c: var(--red); }

.section-title { font-size: 32px; margin: 4px 0 12px; }
.team-card { background: var(--panel); border-radius: 16px; border-left: 6px solid var(--c); padding: 12px 14px; margin-bottom: 12px; }
.team-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.team-card-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.roster { display: grid; gap: 8px; }
.roster-row { display: flex; align-items: center; gap: 10px; }
.roster-row .avatar { width: 36px; height: 36px; }
.roster-row span { display: grid; font-weight: 650; line-height: 1.2; }
.roster-row small { font-size: 12px; color: var(--muted); font-weight: 600; }
.roster-row b { margin-left: auto; font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--gold); }
.empty-slot { color: var(--dim); }
.empty-slot .avatar { background: none; border: 2px dashed var(--line-2); }

/* Bidding */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(49px + env(safe-area-inset-bottom));
  z-index: 5;
  padding: 14px 16px 16px;
  background: #0b1830;
  border-top: 1px solid var(--line-2);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
  display: grid;
  gap: 10px;
}
.dock-top { display: flex; align-items: end; gap: 24px; }
.dock-budget { margin-right: auto; padding-left: 20px; border-left: 1px solid var(--line-2); }
.dock-budget .display { font-size: 40px; line-height: 0.85; }
.dock-budget small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.dock-amount { font-size: 58px; line-height: 0.85; color: var(--gold); }
.dock-clock { font-size: 44px; line-height: 0.85; min-width: 1.5em; text-align: right; }
.dock-clock.warn { color: var(--red); }
.dock-status { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.dock-status.winning { color: var(--fairway); }
.dock-status.winning::before { content: '▲'; }
.dock-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dock-bar i { display: block; height: 100%; background: var(--gold); }
.bid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bid-btn { display: grid; justify-items: center; padding: 10px 4px; background: var(--fairway); border-color: var(--fairway); }
.bid-btn b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1; }
.bid-btn small { font-size: 11px; font-weight: 700; opacity: 0.85; }
.custom-bid { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

/* Sold */
.sold-screen .avatar.xl { width: 140px; height: 140px; border: 4px solid var(--c); }
.sold-stamp { font-size: 72px; color: var(--c); transform: rotate(-6deg); animation: stampIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.6) both; line-height: 0.9; }
.sold-screen.mine .sold-stamp { color: var(--gold); }
@keyframes stampIn { from { transform: rotate(-6deg) scale(2.2); opacity: 0; } }

/* Bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.2s; }
.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  overflow: auto;
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet.open .sheet-scrim { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-x { position: absolute; top: 10px; right: 12px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.55); font-size: 22px; cursor: pointer; }
.sheet-body { display: grid; gap: 14px; padding-top: 16px; }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; text-align: center; gap: 8px; }
.stepper .btn { font-size: 28px; padding: 10px 0; }
.stepper .display { font-size: 48px; color: var(--gold); line-height: 1; }

.avatar.xl { width: 120px; height: 120px; }
.avatar.xl span { font-size: 48px; }

/* Compact player card (live bidding) */
.pcard.compact { display: grid; gap: 10px; padding: 12px 14px 14px; border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); }
.pcard.compact .pcard-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.pcard.compact .avatar { width: 64px; height: 64px; border: 2px solid var(--gold); }
.pcard.compact .avatar span { font-size: 26px; }
.pcard.compact .pcard-id { min-width: 0; }
.pcard.compact .pcard-name { font-size: 28px; line-height: 0.95; white-space: normal; text-shadow: none; }
.pcard.compact .pcard-nick { font-size: 13px; vertical-align: 0; margin-top: 2px; white-space: normal; }
.pcard.compact .pcard-rounds { margin-top: 4px; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-shadow: none; }
.pcard.compact .pcard-badges { position: static; gap: 6px; }
.pcard.compact .pcard-badges > div { padding: 5px 8px 3px; min-width: 44px; border-radius: 10px; }
.pcard.compact .pcard-badges b { font-size: 22px; }
.pcard.compact .pcard-badges span { font-size: 9px; }
.pcard.compact .stats { grid-template-columns: 1fr 1fr; gap: 7px 14px; }
.pcard.compact .stat { font-size: 12px; gap: 6px; }
.pcard.compact .pips { gap: 3px; }
.pcard.compact .pips i { width: 11px; height: 8px; border-radius: 2px; }
.pcard.compact .fun-fact { margin: 0; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Favorites */
.star { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -6px -6px 0; font-size: 22px; line-height: 1; color: var(--dim); cursor: pointer; touch-action: manipulation; }
.prow > .star:only-of-type { margin-left: auto; }
.star.on { color: var(--gold); }
.prow.pinned { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.m-name .star { width: 24px; height: 32px; margin: 0 -4px 0 -6px; font-size: 18px; }
.matrix tr.pinned .m-name { box-shadow: inset 3px 0 0 var(--gold), 1px 0 0 var(--line); }
.fav-btn.on { color: var(--gold); border-color: var(--gold); }

/* Market values (the field's Value tab and the captain's Players tab): a dot for the typical price and a capped line for the usual range. */
.mv { display: grid; gap: 6px; }
.mv-wait { padding: 40px 0; }
.mv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--dim); font-weight: 600; }
.mv-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--fairway); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid rgba(47, 166, 106, 0.5); border-radius: 999px; padding: 3px 10px; }
.mv-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--fairway); }
.mv-key { display: flex; gap: 18px; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.mv-key span { display: inline-flex; align-items: center; gap: 8px; }
.k-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--gold); }
.k-range, .mv-range { position: relative; height: 2px; background: var(--gold-2); opacity: 0.75; }
.k-range { width: 26px; }
.k-range::before, .k-range::after, .mv-range::before, .mv-range::after { content: ''; position: absolute; top: -5px; width: 2px; height: 12px; background: inherit; }
.k-range::before, .mv-range::before { left: 0; }
.k-range::after, .mv-range::after { right: 0; }
.mv-axis { position: relative; height: 16px; margin: 6px 81px 0 69px; font-size: 11px; font-weight: 700; color: var(--dim); }
.mv-axis span { position: absolute; transform: translateX(-50%); }
.mv-axis span:first-child { transform: none; }
.mv-axis span:last-child { transform: translateX(-100%); }
.mv-row { appearance: none; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) 56px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mv-row.you { border-color: var(--gold); }
.mv-row.on, .mv-row:focus-visible { border-color: var(--gold); outline: none; }
.mv-row .avatar { width: 44px; height: 44px; }
.mv-main { display: grid; gap: 8px; min-width: 0; }
.mv-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mv-name b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-name em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-left: 4px; }
.mv-name small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mv-track { position: relative; height: 12px; background: linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat; }
.mv-range { position: absolute; top: 50%; margin-top: -1px; }
.mv-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--panel); }
.mv-price { font-size: 28px; color: var(--gold); text-align: right; font-variant-numeric: tabular-nums; }
.mv-tip { margin: -2px 0 4px; padding: 10px 14px; border-radius: 12px; background: var(--text); color: #0c2340; font-size: 14px; line-height: 1.45; }
.mv-row.gone { opacity: 0.5; }
.mv-row.pinned { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.mv-name .mv-sold { color: var(--c, var(--muted)); font-weight: 700; }
