:root {
  color-scheme: dark;
  --ink-dim: rgba(230, 235, 228, 0.55);
  --panel: rgba(10, 18, 14, 0.88);
  --edge: rgba(200, 220, 180, 0.18);
  --accent: #d4a017;
  --ok: #7dba6a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  /* Quiet felt fill for desktop pillarbox/letterbox outside the 4:3 canvas.
     Prefer path under /table-shell/ so it works even if ../assets 404s;
     absolute /assets/ is the repo-root FileServer path (same tile). */
  background-color: #184e1a;
  background-image: url('assets/felt_tile.png'), url('/assets/felt_tile.png');
  background-repeat: repeat, repeat;
  background-position: center, center;
  font-family: "Segoe UI", Helvetica, Arial, system-ui, sans-serif;
  color: #e8efe6;
  touch-action: manipulation;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  z-index: 1;
  /* Desktop letterbox/pillarbox: same quiet felt as html/body.
     Canvas stays contain-fitted (1200x900); do not stretch the board. */
  background-color: #184e1a;
  background-image: url('assets/felt_tile.png'), url('/assets/felt_tile.png');
  background-repeat: repeat, repeat;
  background-position: center, center;
}

#c {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  background: #145028;
}

.status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-dim);
  z-index: 2;
  pointer-events: none;
}
.status[hidden] { display: none !important; }

/* Match stats FAB - bottom-right; chyron sits above so it stays readable. */
.stats-fab {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 7;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8f3c8;
  background:
    linear-gradient(160deg, rgba(199, 229, 119, 0.22), rgba(8, 18, 14, 0.88));
  border: 1px solid rgba(205, 233, 125, 0.4);
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.stats-fab:hover,
.stats-fab:focus-visible {
  color: #f7ffe8;
  border-color: rgba(205, 233, 125, 0.7);
  background:
    linear-gradient(160deg, rgba(199, 229, 119, 0.34), rgba(8, 18, 14, 0.92));
  outline: none;
}
.stats-fab:active { transform: scale(0.96); }
body.guest-open .stats-fab { display: none; }

/* News-chyron planet name — bottom-right (Mahesh lock). */
.planet-chyron {
  position: absolute;
  right: 18px;
  bottom: 68px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 160px;
  max-width: min(280px, 42vw);
  padding: 10px 16px 12px;
  color: #f3f7ec;
  background:
    linear-gradient(90deg, rgba(8, 18, 14, 0.18), rgba(8, 18, 14, 0.92) 18%, rgba(10, 22, 16, 0.94)),
    linear-gradient(180deg, rgba(199, 229, 119, 0.12), transparent 55%);
  border: 1px solid rgba(205, 233, 125, 0.28);
  border-left: 3px solid #c7e577;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  pointer-events: none;
  overflow: hidden;
}
.planet-chyron[hidden] { display: none !important; }
.planet-chyron::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(214, 239, 148, 0.08), transparent);
  animation: chyron-sweep 4.8s linear infinite;
}
@keyframes chyron-sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(420%); }
}
.planet-chyron-kicker {
  position: relative;
  z-index: 1;
  color: #bedc7e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.planet-chyron strong {
  position: relative;
  z-index: 1;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hook-slot {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.beat-label {
  font-size: 11px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.beat-hint {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: var(--ink-dim);
}

/* Planet / orbit choice — FULL overlay covering the table (Mahesh lock). */
.mp-panel {
  --lobby-ink: #f4f7ee;
  --lobby-muted: rgba(228, 237, 221, 0.62);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  overflow-y: auto;
  z-index: 10;
  padding: clamp(24px, 4vw, 56px);
  display: none;
  flex-direction: column;
  gap: 18px;
  color: var(--lobby-ink);
  background:
    linear-gradient(135deg, rgba(6, 22, 18, 0.97), rgba(7, 18, 20, 0.94) 55%, rgba(5, 14, 18, 0.97));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(22px) saturate(1.15);
}
body.lobby-open .mp-panel {
  display: flex;
}
body.guest-open .table-chrome,
body.guest-open .planet-chyron {
  display: none !important;
}
.mp-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 8% 0%, rgba(191, 224, 123, 0.14), transparent 36%), radial-gradient(circle at 96% 100%, rgba(37, 167, 190, 0.12), transparent 32%);
}
.mp-lobby-glow {
  position: absolute;
  top: -100px;
  left: -80px;
  width: 280px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(183, 215, 89, 0.1);
  filter: blur(34px);
}
.mp-header, .mp-controls, .mp-planet-grid, .mp-advanced, .mp-hint { position: relative; z-index: 1; }
.mp-panel .mp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.mp-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #bedc7e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.mp-eyebrow i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 5px 2px;
  border-radius: 50%;
  background: #d5a83e;
}
.mp-panel .mp-header strong {
  display: block;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.mp-panel .mp-header p {
  margin: 7px 0 0;
  color: var(--lobby-muted);
  font-size: 13px;
  max-width: 42ch;
}
.mp-panel .beat-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  padding: 7px 10px;
  color: #bfe1a4;
  white-space: nowrap;
  border: 1px solid rgba(137, 195, 110, 0.28);
  border-radius: 999px;
  background: rgba(78, 133, 70, 0.13);
}
.mp-live-dot, .mp-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ce176;
  box-shadow: 0 0 0 4px rgba(156, 225, 118, 0.1), 0 0 12px rgba(156, 225, 118, 0.6);
}
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(207, 227, 193, 0.12);
  border-bottom: 1px solid rgba(207, 227, 193, 0.12);
}
.mp-refresh-note { display: inline-flex; align-items: center; gap: 8px; color: rgba(228, 237, 221, 0.46); font-size: 10px; white-space: nowrap; }
.mp-planet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  align-content: center;
}
.mp-panel .mp-planet {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 128px;
  padding: 22px 18px;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  color: var(--lobby-ink);
  -webkit-text-fill-color: var(--lobby-ink);
  text-align: left;
  border: 1px solid rgba(200, 224, 181, 0.17);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(0,0,0,0.16));
  box-shadow: inset 0 1px rgba(255,255,255,0.05);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, opacity 160ms ease, filter 160ms ease;
}
.mp-panel .mp-planet::after {
  content: '';
  position: absolute;
  right: -18px;
  bottom: -25px;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(201, 232, 121, 0.1);
  border-radius: 50%;
}
.mp-panel .mp-planet:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(205, 233, 125, 0.62); background: linear-gradient(145deg, rgba(193, 225, 118, 0.17), rgba(0,0,0,0.16)); box-shadow: 0 9px 22px rgba(0,0,0,0.2), 0 0 0 1px rgba(205,233,125,0.08); }
.mp-panel .mp-planet.selected { border-color: #c7e577; background: linear-gradient(145deg, rgba(162, 205, 101, 0.24), rgba(32, 72, 43, 0.48)); box-shadow: 0 0 0 1px rgba(199,229,119,0.22), inset 0 0 22px rgba(199,229,119,0.05); }
.mp-panel .mp-planet:disabled { cursor: not-allowed; }
.mp-panel .mp-planet.locked {
  opacity: 0.42;
  filter: grayscale(0.75) brightness(0.85);
  pointer-events: none;
}
.mp-planet-orbit {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 1 64px;
  width: 64px;
  height: 64px;
  min-width: 44px;
  color: #d6ef94;
  -webkit-text-fill-color: #d6ef94;
  font-size: 28px;
  text-shadow: 0 0 14px rgba(206, 238, 125, 0.48);
}
.mp-planet-orbit::before, .mp-planet-orbit::after, .mp-planet-orbit i { content: ''; position: absolute; border: 1px solid rgba(204, 233, 133, 0.28); border-radius: 50%; pointer-events: none; }
.mp-planet-orbit::before { inset: 4px -8px; transform: rotate(-28deg); }
.mp-planet-orbit::after { inset: -4px 6px; transform: rotate(45deg); }
.mp-planet-orbit i { width: 4px; height: 4px; right: -5px; top: 4px; background: #e2be57; border: 0; z-index: 1; }
.mp-planet-art {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(206, 238, 125, 0.22));
  pointer-events: none;
  user-select: none;
}
.mp-planet-glyph { position: relative; z-index: 1; }
.mp-planet-copy {
  display: flex;
  min-width: 4.5em;
  flex: 1 1 4.5em;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}
.mp-planet-name {
  position: relative;
  z-index: 1;
  overflow: hidden;
  color: var(--lobby-ink);
  -webkit-text-fill-color: var(--lobby-ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mp-planet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 12px;
  color: #172116;
  -webkit-text-fill-color: #172116;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 999px;
  background: linear-gradient(135deg, #e5f4a8, #9ed487);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255,255,255,0.35);
}
.mp-planet.locked .mp-planet-pill {
  color: rgba(232, 239, 230, 0.55);
  -webkit-text-fill-color: rgba(232, 239, 230, 0.55);
  background: rgba(120, 130, 118, 0.35);
  box-shadow: none;
}
.mp-planet-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: rgba(231, 242, 224, 0.34);
  -webkit-text-fill-color: rgba(231, 242, 224, 0.34);
  font-size: 20px;
}
.mp-panel .mp-planet.selected .mp-planet-arrow {
  color: #d7ee96;
  -webkit-text-fill-color: #d7ee96;
}
.mp-advanced {
  color: var(--lobby-muted);
  font-size: 10px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.mp-advanced summary { cursor: pointer; }
.mp-advanced-fields { display: flex; gap: 8px; margin-top: 8px; }
.mp-advanced-fields label { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.mp-advanced-fields input { width: 100%; padding: 6px 8px; color: var(--lobby-ink); border: 1px solid var(--edge); border-radius: 6px; background: rgba(0,0,0,0.25); font: 11px ui-monospace, monospace; }
.mp-panel .beat-hint {
  max-width: 1180px;
  width: 100%;
  margin: -5px auto 0;
  color: rgba(228, 237, 221, 0.42);
  font-size: 10px;
}


/* Guest entry — before planet lobby (no account). */
.guest-entry {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(191, 224, 123, 0.16), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(37, 167, 190, 0.14), transparent 36%),
    linear-gradient(160deg, rgba(6, 22, 18, 0.98), rgba(5, 14, 18, 0.98));
  backdrop-filter: blur(18px);
}
body.guest-open .guest-entry { display: flex; }
body.guest-open .mp-panel { display: none !important; }
.guest-card {
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  border-radius: 22px;
  border: 1px solid rgba(200, 224, 181, 0.22);
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(0,0,0,0.22));
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
  text-align: center;
}
.guest-eyebrow {
  display: block;
  color: #bedc7e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}
.guest-card h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.guest-sub {
  margin: 10px 0 0;
  color: rgba(228, 237, 221, 0.62);
  font-size: 13px;
  line-height: 1.4;
}
.guest-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 22px 0 18px;
}
.guest-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 36px;
  font-weight: 800;
  color: #172116;
  background: linear-gradient(145deg, #e5f4a8, #7ec0d8);
  border: 3px solid rgba(245, 215, 110, 0.85);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-transform: uppercase;
}
.guest-reroll {
  appearance: none;
  border: 1px solid rgba(200, 224, 181, 0.28);
  background: rgba(255,255,255,0.05);
  color: #d6ef94;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.guest-reroll:hover { border-color: rgba(205, 233, 125, 0.6); }
.guest-name-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 237, 221, 0.55);
}
.guest-name-label input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(200, 224, 181, 0.25);
  background: rgba(0,0,0,0.28);
  color: #f4f7ee;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.guest-name-label input:focus {
  outline: none;
  border-color: #c7e577;
  box-shadow: 0 0 0 3px rgba(199, 229, 119, 0.15);
}
.guest-saved-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.guest-saved-actions[hidden] { display: none; }
.guest-continue,
.guest-other {
  appearance: none;
  width: 100%;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.guest-continue {
  border: 1px solid rgba(216, 241, 152, 0.65);
  color: #172116;
  background: rgba(216, 241, 152, 0.92);
}
.guest-other {
  border: 1px solid rgba(200, 224, 181, 0.28);
  color: #d6ef94;
  background: rgba(255,255,255,0.05);
}
.guest-continue:hover,
.guest-other:hover { filter: brightness(1.08); }

.guest-enter {
  width: 100%;
  margin-top: 16px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  color: #172116;
  background: linear-gradient(135deg, #d8f198, #8fc36a);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.guest-enter:hover { filter: brightness(1.05); }
.guest-enter:disabled { opacity: 0.45; cursor: default; filter: none; }
.guest-hint {
  margin: 12px 0 0;
  font-size: 10px;
  color: rgba(228, 237, 221, 0.4);
}

/* Join announcement chyron/toast */
.join-toast {
  position: absolute;
  left: 50%;
  top: 72px;
  transform: translateX(-50%);
  z-index: 8;
  max-width: min(520px, 90vw);
  padding: 10px 18px;
  color: #f3f7ec;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(8, 18, 14, 0.2), rgba(8, 18, 14, 0.94) 14%, rgba(10, 22, 16, 0.94) 86%, rgba(8, 18, 14, 0.2)),
    linear-gradient(180deg, rgba(199, 229, 119, 0.14), transparent 60%);
  border: 1px solid rgba(205, 233, 125, 0.32);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  pointer-events: none;
  animation: join-toast-in 280ms ease-out;
}
.join-toast[hidden] { display: none !important; }
@keyframes join-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Center start countdown (Deal / match about to start). */
.start-countdown {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(4, 12, 9, 0.55);
  pointer-events: none;
}
.start-countdown[hidden] { display: none !important; }
.start-countdown-kicker {
  color: #bedc7e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.start-countdown strong {
  font-size: clamp(72px, 14vw, 128px);
  font-weight: 900;
  line-height: 1;
  color: #f5d76e;
  text-shadow: 0 8px 32px rgba(0,0,0,0.45);
  font-variant-numeric: tabular-nums;
  animation: countdown-pop 420ms ease-out;
}
@keyframes countdown-pop {
  from { transform: scale(0.7); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

/* Post-join table chrome (Deal + change orbit). Planet name lives in chyron. */
.table-chrome {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: #e8efe6;
  background: rgba(10, 18, 14, 0.88);
  border: 1px solid var(--edge);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.table-chrome[hidden] { display: none !important; }
.table-chrome button {
  appearance: none;
  border: 1px solid var(--edge);
  background: rgba(255, 255, 255, 0.06);
  color: #e8efe6;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.table-chrome button.mp-deal {
  color: #172116;
  border: 0;
  background: linear-gradient(135deg, #d8f198, #8fc36a);
}
.table-chrome .mp-host-hint {
  font-size: 12px;
  font-weight: 600;
  color: rgba(232, 239, 230, 0.78);
  padding: 0 4px;
  white-space: nowrap;
}
.table-chrome .mp-host-hint[hidden] { display: none !important; }
.table-chrome button.mp-deal[hidden] { display: none !important; }
.table-chrome button.ghost { background: transparent; }
.table-chrome button:disabled { opacity: 0.45; cursor: default; }
.table-chrome button:hover:not(:disabled) { border-color: rgba(212, 160, 23, 0.55); }

/* iPad / tablet: 2 columns so orbit art + occupancy pill leave room for planet names.
   (3-col + 64px art collapsed .mp-planet-copy to 0px width under ~1024px.) */
@media (max-width: 1100px) {
  .mp-panel { padding: 18px 14px 24px; gap: 14px; }
  .mp-panel .mp-header { flex-direction: column; }
  .mp-planet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mp-panel .mp-planet { min-height: 112px; padding: 16px 14px; gap: 12px; }
  .mp-planet-orbit { flex-basis: 56px; width: 56px; height: 56px; font-size: 24px; }
  .mp-planet-art { width: 50px; height: 50px; }
  .mp-planet-name { font-size: 18px; }
  .mp-planet-pill { min-width: 52px; padding: 7px 11px; font-size: 18px; }
  .mp-planet-arrow { display: none; }
  .mp-advanced-fields { flex-direction: column; }
  .table-chrome { top: 8px; left: 8px; right: 8px; width: auto; transform: none; flex-wrap: wrap; border-radius: 16px; }
  .planet-chyron { right: 10px; bottom: 10px; min-width: 132px; padding: 8px 12px 10px; }
  .planet-chyron strong { font-size: 18px; }
}

/* Narrow phones: keep labels readable beside a smaller orb. */
@media (max-width: 560px) {
  .mp-panel { padding: 14px 10px 18px; gap: 12px; }
  .mp-planet-grid { gap: 10px; }
  .mp-panel .mp-planet { min-height: 92px; padding: 12px 10px; gap: 8px; }
  .mp-planet-orbit { flex-basis: 40px; width: 40px; height: 40px; font-size: 20px; }
  .mp-planet-art { width: 36px; height: 36px; }
  .mp-planet-copy { min-width: 4.5em; flex-basis: 4.5em; }
  .mp-planet-name { font-size: 15px; }
  .mp-planet-pill { min-width: 44px; padding: 6px 8px; font-size: 15px; }
}
