@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_a/vt323-latin.8ddbebcc10.woff2') format('woff2');
}
@font-face {
  font-family: 'Silkscreen';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/_a/silkscreen-latin-700.5741b7f01a.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/_a/inter-latin-400.8909904ab6.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/_a/inter-latin-600.f9a06e79cd.woff2') format('woff2');
}

:root {
  --bg: #f7f1e8;
  --surface: #fffaf2;
  --surface-alt: #f3eadb;
  --text: #2b2118;
  --muted: #6b5b4b;
  --primary: #c2562f;
  --primary-deep: #a5431f;
  --primary-hover: #8d3718;
  --accent: #e0a03a;
  --border: #e3d6c4;
  --border-strong: #2b2118;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --sky-bg: #101828;
  --sky-glass: rgba(11, 21, 38, 0.88);
  --sky-glass-deck: rgba(9, 17, 32, 0.90);
  --sky-glass-deep: rgba(6, 12, 24, 0.92);
  --sky-line: rgba(77, 227, 255, 0.28);
  --sky-ink: #faf6ee;
  --sky-cyan: #f7d992;
  --nk-cyan: #4de3ff;
  --nk-pink: #ff5c7c;
  --sky-pink: #c2562f;
  --font-display: 'Silkscreen', ui-monospace, 'Courier New', monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; overflow-x: clip; }
body.mwp-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { margin: 0 0 16px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
img { max-width: 100%; height: auto; display: block; }
.mwp-ico { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.mwp-ico-flame { color: var(--primary); }

.mwp-sr-only, .mwp-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.mwp-skip:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius);
  z-index: 200;
}

.mwp-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.mwp-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.mwp-header .mwp-container {
  max-width: 1360px;
}
.mwp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.mwp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.mwp-brand:hover { text-decoration: none; color: var(--text); }
.mwp-brand-tile {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary-deep);
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.mwp-brand:hover .mwp-brand-tile { transform: translateY(-1px); }
.mwp-brand-wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mwp-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mwp-nav-link {
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.mwp-nav-link:hover { color: var(--text); text-decoration: none; }
.mwp-nav-link.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.mwp-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mwp-sound-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.mwp-sound-label { display: none; }
.mwp-sound-btn:hover { border-color: var(--primary); color: var(--primary); }
.mwp-sound-btn:active { transform: translateY(1px); }
.mwp-sound-btn.is-muted { color: var(--muted); background: var(--bg); }
.mwp-streak-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-bottom: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mwp-streak-chip:hover { text-decoration: none; color: var(--primary); border-color: var(--primary); }

/* Buttons */
.mwp-btn-primary, .mwp-btn-outline, .mwp-btn-dark, .mwp-btn-gold, .mwp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.mwp-btn-primary:active, .mwp-btn-outline:active, .mwp-btn-dark:active, .mwp-btn-gold:active, .mwp-pill-tab:active {
  transform: translateY(1px);
}
.mwp-btn-primary {
  background: var(--primary-deep);
  border-color: var(--primary-hover);
  border-bottom-width: 3px;
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}
.mwp-btn-primary:hover { background: var(--primary-hover); color: #ffffff; text-decoration: none; }
.mwp-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.mwp-btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  border-bottom-width: 2px;
}
.mwp-btn-outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.mwp-btn-outline:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.mwp-btn-dark {
  background: var(--text);
  border-color: var(--border-strong);
  border-bottom-width: 3px;
  color: var(--surface);
  font-size: 14px;
  padding: 8px 16px;
  box-shadow: var(--shadow-sm);
}
.mwp-btn-dark:hover { background: var(--primary-deep); border-color: var(--primary-hover); color: #ffffff; text-decoration: none; }
.mwp-btn-gold {
  background: var(--accent);
  border-color: var(--primary-hover);
  border-bottom-width: 3px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.mwp-btn-gold:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.mwp-btn-ghost {
  background: transparent;
  color: var(--muted);
}
.mwp-btn-ghost:hover { color: var(--text); }
.mwp-btn-sm { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.mwp-btn-xs { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.mwp-btn-full { width: 100%; }
.mwp-btn-link {
  background: none;
  border: 0;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}
.mwp-btn-warn { color: var(--primary-hover); }

/* Main Layout & Desk Grid */
.mwp-main { padding: 24px 0 64px; }
.mwp-crumb-wrap { margin-bottom: 16px; }
.mwp-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}
.mwp-desk-section { margin-bottom: 48px; }
.mwp-desk-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 24px;
  align-items: start;
}
.mwp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.mwp-section { margin-top: 48px; }
.mwp-section-head { margin-bottom: 24px; }

/* Arena Header & Fuel */
.mwp-arena-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mwp-mode-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mwp-pill-tab {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  background: var(--surface-alt);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.mwp-pill-tab.is-active {
  background: var(--primary-deep);
  border-color: var(--primary-hover);
  color: #ffffff;
}
.mwp-fuel-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-fuel-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.mwp-fuel-pips {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.mwp-pip {
  width: 8px;
  height: 16px;
  border-radius: 4px;
  background: var(--border);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.mwp-pip.is-lit { background: var(--primary); }
.mwp-pip.is-bonus { background: var(--accent); }
.mwp-pip.is-refill { animation: mwp-pip-pop 340ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.mwp-par-badge {
  padding: 8px 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--muted);
}
.mwp-par-badge strong { color: var(--text); }
.mwp-par-badge.is-urgent {
  border-color: var(--primary);
  color: var(--primary-hover);
  animation: mwp-urgent-pulse 720ms ease-in-out infinite;
}
.mwp-par-badge.is-urgent strong { color: var(--primary-hover); }
.mwp-arena-head { margin-bottom: 16px; }
.mwp-lead { font-size: 18px; color: var(--muted); max-width: 70ch; margin-bottom: 0; }
.mwp-muted-sm { font-size: 14px; color: var(--muted); }
.mwp-muted-xs { font-size: 12px; color: var(--muted); }
.mwp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--primary); margin-bottom: 4px; }
.mwp-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* Signature Bisection Arena & 2D Pixel Dungeon Stage */
.mwp-bisect-stage {
  position: relative;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(107, 91, 75, 0.11) 1px, transparent 1px);
  background-size: 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.mwp-rpg-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mwp-rpg-hud-left, .mwp-rpg-hud-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mwp-biome-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.mwp-ghost-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--primary);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
}
.mwp-hud-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 4px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.mwp-hud-btn:hover { border-color: var(--primary); color: var(--primary-hover); }
.mwp-hud-btn:active { transform: translateY(1px); }
.mwp-hud-btn.is-muted { color: var(--muted); background: var(--surface-alt); border-color: var(--border); }
.mwp-rpg-viewport {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  background: var(--text);
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.mwp-rpg-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 480 / 210;
}
.mwp-bookends-compact { margin-bottom: 12px; }
.mwp-tile-compact { padding: 8px 12px; gap: 2px; }
.mwp-tile-compact .mwp-tile-mystery { font-size: 22px; }
.mwp-poople-compact { margin-bottom: 12px; }

.mwp-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  border-bottom-width: 3px;
  background: var(--accent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.mwp-split-badge-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.mwp-gold-pill {
  display: inline-block;
  padding: 4px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
.mwp-gold-pill.is-pulse {
  animation: mwp-gold-pulse 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mwp-float-pts {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--accent);
  border: 2px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
  z-index: 20;
  animation: mwp-float-up 920ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.mwp-bookends {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.mwp-tile {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), border-color 200ms ease, background-color 200ms ease;
}
.mwp-tile-target {
  border-style: dashed;
  border-bottom-style: solid;
  border-bottom-width: 4px;
  border-color: var(--primary);
  background: var(--surface);
}
.mwp-tile-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.mwp-tile-word {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text);
  overflow-wrap: anywhere;
}
.mwp-tile-mystery {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.2;
  color: var(--primary);
}
.mwp-text-primary { color: var(--primary); }
.mwp-tile-sub { font-size: 12px; color: var(--primary); font-weight: 600; }
.mwp-tile-count { font-size: 14px; font-weight: 600; color: var(--muted); }
.mwp-shimmer-text { animation: mwp-shimmer 1.3s ease-in-out infinite; }
.mwp-tile-probe {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 4px 8px;
  margin-top: 4px;
}

/* Warm Copper Striped Squeeze Ruler + Live Aiming Needle */
.mwp-ruler-wrap { display: flex; flex-direction: column; gap: 8px; }
.mwp-ruler-track {
  position: relative;
  height: 16px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    var(--surface-alt),
    var(--surface-alt) 8px,
    var(--border) 8px,
    var(--border) 16px
  );
  border: 1px solid var(--border);
  overflow: visible;
}
.mwp-ruler-active {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 8px;
  background: var(--primary);
  transition: left 320ms cubic-bezier(0.22, 1, 0.36, 1), width 320ms cubic-bezier(0.22, 1, 0.36, 1);
  min-width: 8px;
  overflow: hidden;
}
.mwp-ruler-sweet {
  position: absolute;
  left: 45%;
  width: 10%;
  top: 0;
  bottom: 0;
  background: var(--accent);
}
.mwp-ruler-needle {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 4px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--border-strong);
  border: 1px solid var(--surface);
  pointer-events: none;
  z-index: 4;
  transition: left 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 150ms ease;
}
.mwp-ruler-needle::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 2px solid var(--surface);
}
.mwp-ruler-needle.is-golden {
  background: var(--accent);
  transform: scaleY(1.18);
}
.mwp-ruler-needle.is-golden::before {
  background: var(--accent);
  border-color: var(--border-strong);
}
.mwp-ruler-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}
.mwp-ruler-mid { color: var(--primary); font-weight: 700; }

/* Trail, Inputs & Probe */
.mwp-trail-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mwp-trail-label { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 8px; }
.mwp-trail-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.mwp-trail-empty { font-size: 14px; color: var(--muted); padding-top: 4px; }
.mwp-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.mwp-chip.is-new { animation: mwp-node-in 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.mwp-chip.is-perfect {
  border-color: var(--accent);
  background: var(--surface);
}
.mwp-chip-dir { color: var(--primary); font-weight: 700; }

.mwp-guess-form {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mwp-input-shell {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
}
.mwp-guess-input, .mwp-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}
.mwp-input { border-width: 1px; border-color: var(--border); font-weight: 400; min-height: 44px; }
.mwp-input-sm { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.mwp-textarea { min-height: 96px; resize: vertical; }
.mwp-live-split {
  position: absolute;
  right: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  padding: 2px 8px;
  border-radius: 8px;
  transition: background-color 150ms ease, color 150ms ease;
}
.mwp-live-split.is-golden {
  background: var(--accent);
  color: var(--text);
}
.mwp-probe-drawer {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-probe-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.mwp-trap-builder {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.mwp-trap-inline-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mwp-trap-inline-row .mwp-input { flex: 1 1 200px; }
.mwp-status-line { font-size: 14px; font-weight: 600; color: var(--primary); min-height: 22px; margin-bottom: 8px; }

.mwp-result-banner {
  background: var(--surface-alt);
  border: 2px solid var(--accent);
  border-bottom-width: 4px;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: mwp-onion-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mwp-result-copy strong { font-family: var(--font-display); font-size: 22px; display: block; margin-bottom: 4px; }
.mwp-result-copy p { margin: 0; font-size: 14px; color: var(--muted); }
.mwp-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mwp-engage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.mwp-engage-left, .mwp-engage-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mwp-engage-links a { font-size: 14px; font-weight: 600; }

/* Poople, Cryptic & Word Bridge Specifics */
.mwp-custom-pair { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.mwp-custom-pair .mwp-input { width: 112px; text-transform: uppercase; font-weight: 700; }
.mwp-poople-endpoints {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.mwp-poople-arrow { font-size: 28px; font-weight: 700; color: var(--muted); text-align: center; }
.mwp-ladder-chain { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mwp-ladder-node {
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, border-color 150ms ease, color 150ms ease;
}
.mwp-ladder-node:hover { border-color: var(--primary); color: var(--primary); }
.mwp-ladder-node:active { transform: translateY(1px); }
.mwp-ladder-node.is-current { background: var(--primary-deep); border-color: var(--primary-hover); color: #ffffff; }
.mwp-ladder-node.is-new { animation: mwp-node-in 260ms cubic-bezier(0.22, 1, 0.36, 1); }
.mwp-ladder-chain.is-rewound { animation: mwp-rewind-flash 280ms ease; }
.mwp-compare-paths { margin-top: 8px; font-size: 14px; color: var(--text); }

.mwp-cryptic-clue {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
}
.mwp-def-highlight {
  background: var(--accent);
  color: var(--text);
  padding: 0 4px;
  border-radius: 4px;
}
.mwp-cryptic-boxes {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.mwp-letter-box {
  width: 36px;
  height: 44px;
  border-radius: var(--radius);
  border: 2px solid var(--border-strong);
  border-bottom-width: 4px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.mwp-letter-box.is-pop {
  animation: mwp-letter-pop 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mwp-letter-box.is-solved {
  background: var(--surface-alt);
  border-color: var(--primary-deep);
  color: var(--primary-hover);
}
.mwp-hint-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.mwp-hint-card {
  margin: 0;
  padding: 12px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  animation: mwp-onion-in 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mwp-onion-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.mwp-timer-bar-wrap {
  height: 8px;
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}
.mwp-timer-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.1s linear, background-color 0.2s ease;
}
.mwp-timer-bar-wrap.is-urgent {
  animation: mwp-urgent-pulse 600ms ease-in-out infinite;
}
.mwp-timer-bar-wrap.is-urgent .mwp-timer-bar {
  background: var(--primary-hover);
}
.mwp-bridge-row.is-locked .mwp-bridge-anchor-left {
  transform: translateX(8px);
  border-color: var(--primary);
}
.mwp-bridge-row.is-locked .mwp-bridge-anchor-right {
  transform: translateX(-8px);
  border-color: var(--primary);
}
.mwp-bridge-row.is-locked .mwp-bridge-center {
  background: var(--surface-alt);
  border-color: var(--accent);
  border-style: solid;
  transform: scale(1.03);
}

/* Side Rail & Party Room */
.mwp-side-rail { display: flex; flex-direction: column; gap: 16px; }
.mwp-room-card { padding: 24px 16px; }
.mwp-room-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mwp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  color: var(--primary-hover);
  font-size: 12px;
  font-weight: 700;
}
.mwp-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.mwp-room-title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; font-size: 22px; color: var(--text); margin: 0 0 4px; }
.mwp-nick-row { display: flex; gap: 8px; margin: 12px 0; }
.mwp-room-active-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.mwp-board-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-board-skel {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-skel-bar, .mwp-skel-sub {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: var(--surface-alt);
  animation: mwp-shimmer 1.2s ease-in-out infinite;
}
.mwp-skel-bar { width: 72%; }
.mwp-skel-sub { width: 100%; height: 6px; }
.mwp-board-row {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.mwp-board-row.is-me {
  border-color: var(--primary);
  background: var(--surface);
}
.mwp-board-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}
.mwp-board-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mwp-medal { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mwp-board-score { color: var(--primary); white-space: nowrap; }
.mwp-board-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.mwp-board-fill { height: 100%; background: var(--accent); transition: width 360ms cubic-bezier(0.22, 1, 0.36, 1); }
.mwp-board-empty { font-size: 14px; color: var(--muted); padding: 12px; background: var(--bg); border-radius: var(--radius); }
.mwp-room-cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.mwp-medley-card {
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius);
  padding: 24px 16px;
  box-shadow: var(--shadow-md);
}
.mwp-medley-eyebrow { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 8px; letter-spacing: 0.04em; }
.mwp-medley-title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; font-size: 22px; color: var(--surface); margin: 0 0 8px; }
.mwp-medley-desc { font-size: 14px; color: var(--surface-alt); margin-bottom: 16px; }
.mwp-medley-actions { display: flex; flex-direction: column; gap: 8px; }
.mwp-medley-link { color: var(--accent); font-size: 14px; font-weight: 700; }

/* Matrix, Answers, Guide, Prose, FAQ */
.mwp-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mwp-matrix-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: var(--radius);
  padding: 24px 16px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease;
}
.mwp-matrix-card:hover { border-color: var(--primary); text-decoration: none; transform: translateY(-2px); }
.mwp-matrix-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.mwp-matrix-top .mwp-badge { margin-bottom: 0; }
.mwp-matrix-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mwp-matrix-card h3 { font-size: 18px; margin-bottom: 8px; }
.mwp-matrix-card p { font-size: 14px; color: var(--muted); margin: 0; }
.mwp-matrix-card p.mwp-matrix-name { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--text); }

.mwp-spoiler-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.mwp-spoiler-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mwp-spoiler-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mwp-spoiler-answer { border-color: var(--primary); }
.mwp-spoiler-val { font-size: 16px; font-weight: 600; margin: 0; flex: 1; }
.mwp-spoiler-final { font-family: var(--font-display); font-size: 22px; color: var(--primary); }
.mwp-archive-box { padding-top: 16px; border-top: 1px solid var(--border); }
.mwp-archive-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.mwp-archive-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mwp-guide-hero { padding: 32px 24px; }
.mwp-hero-cta-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.mwp-diagram-card { padding: 16px; margin: 0; }
.mwp-diagram-card figcaption { margin-top: 12px; }

.mwp-prose-card, .mwp-legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.mwp-legal-card { max-width: 780px; margin: 0 auto; }
.mwp-prose p, .mwp-prose li { max-width: 70ch; }
.mwp-prose h2 { margin-top: 32px; margin-bottom: 12px; font-size: 28px; }
.mwp-prose h3 { margin-top: 24px; margin-bottom: 8px; font-size: 22px; }
.mwp-prose ul, .mwp-prose ol { margin: 0 0 16px; padding-left: 24px; }
.mwp-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.mwp-prose th, .mwp-prose td {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}
.mwp-prose th { background: var(--surface-alt); font-weight: 700; }

.mwp-faq-list { display: flex; flex-direction: column; gap: 12px; }
.mwp-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  box-shadow: var(--shadow-sm);
}
.mwp-faq-item summary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.mwp-faq-item p { margin: 12px 0 0; color: var(--muted); max-width: 70ch; }

/* Comments */
.mwp-comments-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.mwp-comment-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.mwp-comment-fields { display: flex; flex-direction: column; gap: 12px; }
.mwp-comment-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mwp-comment-list { display: flex; flex-direction: column; gap: 12px; }
.mwp-comment-list[data-gf-empty]::before {
  content: "No club notes yet — share your best split, shortest ladder, or favorite clue!";
  display: block;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}
.mwp-comment-item, .mwp-comment-reply {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
}
.mwp-comment-item[data-gf-owner], .mwp-comment-reply[data-gf-owner] {
  border-color: var(--accent);
  background: var(--surface-alt);
}
.mwp-comment-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; font-size: 14px; }
.mwp-owner-badge { background: var(--primary-deep); color: #ffffff; padding: 4px 8px; border-radius: var(--radius); font-size: 12px; font-weight: 700; }
.mwp-comment-time { color: var(--muted); font-size: 12px; }
.mwp-comment-body { margin: 0 0 8px; max-width: 70ch; }
.mwp-comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

/* Modal */
.mwp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(43, 33, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.mwp-modal-backdrop[hidden] { display: none; }
.mwp-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 520px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}
.mwp-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.mwp-modal-title { font-family: var(--font-display); font-weight: 700; line-height: 1.2; font-size: 28px; color: var(--text); margin: 0; }
.mwp-modal-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.mwp-tab-btn {
  min-height: 44px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.mwp-tab-btn.is-active { background: var(--primary-deep); border-color: var(--primary-deep); color: #ffffff; }
.mwp-modal-pane { display: flex; flex-direction: column; gap: 12px; }
.mwp-modal-pane[hidden] { display: none; }
.mwp-field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.mwp-modal-feedback { font-size: 14px; font-weight: 600; color: var(--primary); margin: 12px 0 0; }

/* Rail Links & Footer */
.mwp-rail-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.mwp-rail-links a { display: block; padding: 12px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.mwp-rail-links a:hover { border-color: var(--primary); text-decoration: none; }

.mwp-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.mwp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.mwp-footer-desc { font-size: 14px; color: var(--muted); margin: 12px 0 8px; max-width: 40ch; }
.mwp-footer-note { font-size: 12px; color: var(--muted); margin: 0; max-width: 44ch; }
.mwp-footer-heading { font-family: var(--font-display); font-weight: 700; line-height: 1.2; font-size: 16px; color: var(--text); margin: 0 0 12px; }
.mwp-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.mwp-footer-bottom {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* GPU Physics Micro-Animations (transform & opacity only) */
.mwp-anim-flip { animation: mwp-tile-flip 280ms cubic-bezier(0.22, 1, 0.36, 1); }
.mwp-anim-shake { animation: mwp-shake 320ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes mwp-tile-flip {
  0% { transform: perspective(600px) rotateX(-18deg) translateY(-4px) scale(0.97); opacity: 0.72; }
  65% { transform: perspective(600px) rotateX(5deg) translateY(0) scale(1.01); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes mwp-gold-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  100% { transform: scale(1); }
}
@keyframes mwp-float-up {
  0% { transform: translate(-50%, 8px) scale(0.92); opacity: 0; }
  20% { transform: translate(-50%, -6px) scale(1.04); opacity: 1; }
  100% { transform: translate(-50%, -32px) scale(1); opacity: 0; }
}
@keyframes mwp-shake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-7px); }
  36% { transform: translateX(6px); }
  54% { transform: translateX(-4px); }
  72% { transform: translateX(3px); }
}
@keyframes mwp-pip-pop {
  0% { transform: scale(0.55); opacity: 0.4; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes mwp-node-in {
  0% { transform: translateY(6px) scale(0.86); opacity: 0; }
  70% { transform: translateY(-1px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes mwp-rewind-flash {
  0% { opacity: 0.65; transform: translateX(-4px); }
  100% { opacity: 1; transform: none; }
}
@keyframes mwp-onion-in {
  0% { transform: translateY(-6px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes mwp-letter-pop {
  0% { transform: translateY(6px) scale(0.84); opacity: 0.35; }
  65% { transform: translateY(-3px) scale(1.08); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes mwp-urgent-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(1.02); }
}
@keyframes mwp-shimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile <= 640px */
@media (max-width: 640px) {
  .mwp-container { padding: 0 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .mwp-header-row { gap: 12px; }
  .mwp-nav-pills { width: 100%; flex-wrap: wrap; justify-content: center; overflow-x: visible; gap: 4px; scrollbar-width: none; }
  .mwp-nav-pills::-webkit-scrollbar { display: none; }
  .mwp-nav-link { padding: 6px 8px; font-size: 13px; }
  .mwp-header-actions { width: 100%; justify-content: space-between; }
  .mwp-desk-grid, .mwp-bookends, .mwp-matrix-grid, .mwp-spoiler-grid, .mwp-footer-grid {
    grid-template-columns: 1fr;
  }
  .mwp-card, .mwp-prose-card, .mwp-legal-card { padding: 16px; }
  .mwp-guess-form { flex-direction: column; }
  .mwp-guess-form button, .mwp-hero-cta-row a, .mwp-result-actions button { width: 100%; }
  .mwp-tile-word, .mwp-tile-mystery { font-size: 22px; }
  .mwp-poople-endpoints { grid-template-columns: 1fr; }
  .mwp-poople-arrow { transform: rotate(90deg); }
  .mwp-modal-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mwp-rpg-hud { gap: 6px; }
  .mwp-bookends-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mwp-tile-compact { padding: 6px 4px; }
  .mwp-tile-compact .mwp-tile-word { font-size: 12px; }
  .mwp-tile-compact .mwp-tile-mystery { font-size: 14px; }
  .mwp-tile-compact .mwp-tile-sub, .mwp-tile-compact .mwp-tile-count { font-size: 12px; }
  .mwp-bridge-row.is-locked .mwp-bridge-anchor-left,
  .mwp-bridge-row.is-locked .mwp-bridge-anchor-right { transform: none; }
}

/* =========================================================================
   PLAYDAILY-STYLE PROCEDURAL PIXEL THEATER + WINDOWLESS PIXEL-FONT HUD
   ========================================================================= */
.mwp-theater-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 14px 18px;
}
.mwp-theater {
  --nk-slab: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 3px 0 rgba(4, 10, 20, 0.96), 0 4px 0 rgba(43, 72, 112, 0.85);
  --nk-scan: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  --nk-outline: -1px 0 0 rgba(5, 10, 20, 0.98), 1px 0 0 rgba(5, 10, 20, 0.98), 0 -1px 0 rgba(5, 10, 20, 0.98), 0 1px 0 rgba(5, 10, 20, 0.98), 0 2px 0 rgba(5, 10, 20, 0.98);
  --font-px-title: 'Silkscreen', ui-monospace, 'Courier New', monospace;
  --font-px-body: 'Silkscreen', ui-monospace, 'Courier New', monospace;

  position: relative;
  width: 100%;
  height: min(86vh, 800px);
  min-height: 560px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid var(--sky-line);
  background-color: var(--sky-bg);
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  -webkit-font-smoothing: none;
  box-shadow: 0 5px 0 rgba(4, 10, 20, 0.95), 0 16px 36px rgba(4, 10, 20, 0.28);
}
.mwp-theater::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.10) 0 1px, transparent 1px 3px);
}
.mwp-ascent-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.mwp-hud-layer {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 52px 10px 12px;
  pointer-events: none;
  gap: 6px;
}
.mwp-hud-layer button,
.mwp-hud-layer input,
.mwp-hud-layer select,
.mwp-hud-layer a,
.mwp-hud-interactive {
  pointer-events: auto;
}
.mwp-glass {
  background-color: var(--sky-glass);
  background-image: var(--nk-scan);
  border: 1px solid var(--sky-line);
  border-radius: 3px;
  color: var(--sky-ink);
  box-shadow: var(--nk-slab);
}
.mwp-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}
.mwp-hud-cluster {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.mwp-alt-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 3px 8px;
  min-width: 118px;
  line-height: 1.08;
}
.mwp-alt-kicker {
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 238, 0.72);
  text-transform: uppercase;
}
.mwp-alt-val {
  font-family: var(--font-px-title);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 700;
  color: var(--nk-cyan);
  text-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-alt-zone {
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--sky-cyan);
  white-space: nowrap;
}
.mwp-feather-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--sky-ink);
}
.mwp-feather-btn:hover { border-color: var(--nk-cyan); background-color: rgba(19, 37, 68, 0.92); }
.mwp-feather-count { color: var(--sky-cyan); font-family: var(--font-px-title); font-size: 13px; font-weight: 700; }
.mwp-shop-tag {
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  color: var(--nk-cyan);
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
}
.mwp-hud-modes {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 3px;
}
.mwp-hud-tab {
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sky-ink);
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mwp-hud-tab:hover { border-color: var(--sky-line); color: var(--nk-cyan); }
.mwp-hud-tab.is-active {
  background: var(--sky-cyan);
  color: var(--sky-bg);
  border-color: var(--sky-cyan);
}
.mwp-hud-select {
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid var(--sky-line);
  background: var(--sky-glass-deep);
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
}
.mwp-jetstream-pill {
  padding: 3px 8px;
  border-radius: 3px;
  background: var(--sky-cyan);
  color: var(--sky-bg);
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 3px 0 rgba(4, 10, 20, 0.95);
}
.mwp-lift-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 8px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--sky-ink);
}
.mwp-hud-mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 3px 8px;
  cursor: pointer;
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-ink);
}
.mwp-hud-mini-btn:hover { border-color: var(--nk-cyan); color: var(--nk-cyan); background-color: rgba(19, 37, 68, 0.92); }
.mwp-hud-multi-btn {
  border-color: var(--nk-cyan);
  color: var(--nk-cyan);
}
.mwp-hud-multi-btn.is-in-room {
  background: rgba(19, 44, 78, 0.94);
  border-color: var(--sky-cyan);
  color: var(--sky-cyan);
}
.mwp-live-dot-sm {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--nk-pink);
  display: inline-block;
}
.mwp-sky-toast {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  pointer-events: none;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-cyan);
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-cyan);
  white-space: nowrap;
  box-shadow: var(--nk-slab);
  transition: opacity 0.2s ease;
}
.mwp-sky-toast[hidden] { display: none !important; }

/* WINDOWLESS OPEN-AIR PIXEL STAGE (Playdaily style: no heavy central glass modal!) */
.mwp-center-deck {
  width: min(468px, calc(100% - 12px));
  margin: auto;
  padding: 2px 4px;
  position: relative;
  background: transparent;
  background-image: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.mwp-deck-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  margin-bottom: 6px;
}
.mwp-deck-title {
  margin: 0;
  font-family: var(--font-px-title);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: var(--nk-outline);
}
.mwp-deck-sub {
  margin: 0;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.15;
  color: var(--sky-cyan);
  text-shadow: var(--nk-outline);
}
.mwp-center-deck .mwp-split-badge-row {
  margin-bottom: 6px;
  text-align: center;
}
.mwp-center-deck .mwp-gold-pill {
  display: inline-block;
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  color: var(--nk-cyan);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
  padding: 2px 9px;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-bookends { margin-bottom: 6px; gap: 6px; }
.mwp-center-deck .mwp-tile {
  background-color: var(--sky-glass);
  background-image: var(--nk-scan);
  border: 1px solid var(--sky-line);
  border-bottom: 2px solid var(--nk-cyan);
  border-radius: 3px;
  color: var(--sky-ink);
  padding: 5px 6px;
  box-shadow: 0 3px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-tile-target {
  border-color: var(--sky-cyan);
  border-bottom-color: var(--nk-pink);
  background-color: var(--sky-glass-deep);
}
.mwp-center-deck .mwp-tile-kicker {
  font-family: var(--font-px-title);
  font-weight: 700;
  color: rgba(250, 246, 238, 0.72);
  font-size: 12px;
}
.mwp-center-deck .mwp-tile-word {
  font-family: var(--font-px-title);
  font-weight: 700;
  color: #ffffff;
  font-size: 15px;
}
.mwp-center-deck .mwp-tile-mystery {
  font-family: var(--font-px-title);
  font-weight: 700;
  color: var(--sky-cyan);
  font-size: 16px;
}
.mwp-center-deck .mwp-tile-sub {
  font-family: var(--font-px-body);
  font-weight: 400;
  color: var(--nk-cyan);
  font-size: 15px;
}
.mwp-center-deck .mwp-tile-count {
  font-family: var(--font-px-body);
  font-weight: 400;
  color: var(--sky-ink);
  font-size: 15px;
}
.mwp-center-deck .mwp-tile-probe {
  background: var(--sky-glass-deep);
  color: var(--sky-cyan);
  border-radius: 2px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
}
.mwp-center-deck .mwp-ruler-track {
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  height: 9px;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-ruler-labels {
  font-family: var(--font-px-body);
  font-weight: 400;
  color: #ffffff;
  font-size: 16px;
  text-shadow: var(--nk-outline);
}
.mwp-center-deck .mwp-ruler-mid {
  color: var(--sky-cyan);
}
.mwp-center-deck .mwp-trail-wrap {
  margin: 4px 0 0;
  gap: 6px;
  justify-content: center;
}
.mwp-center-deck .mwp-trail-label,
.mwp-center-deck .mwp-trail-empty {
  font-family: var(--font-px-body);
  font-weight: 400;
  color: #ffffff;
  font-size: 16px;
  padding-top: 0;
  text-shadow: var(--nk-outline);
}
.mwp-center-deck .mwp-chip {
  background: var(--sky-glass);
  border: 1px solid var(--sky-line);
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
  padding: 1px 7px;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-chip.is-perfect { border-color: var(--sky-cyan); color: var(--sky-cyan); }
.mwp-center-deck .mwp-chip-dir { color: var(--nk-cyan); }
.mwp-center-deck .mwp-poople-chain { justify-content: center; margin-top: 6px; }
.mwp-center-deck .mwp-ladder-node {
  background: var(--sky-glass);
  border: 1px solid var(--sky-line);
  color: var(--sky-ink);
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-ladder-node.is-current { border-color: var(--sky-cyan); background: rgba(24, 50, 88, 0.95); color: var(--sky-cyan); }
.mwp-center-deck .mwp-cryptic-clue {
  font-family: var(--font-px-body);
  font-weight: 400;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
  text-align: center;
  text-shadow: var(--nk-outline);
}
.mwp-center-deck .mwp-letter-box {
  background: var(--sky-glass);
  border: 1px solid var(--sky-line);
  color: var(--sky-ink);
  font-family: var(--font-px-title);
  font-weight: 700;
  width: 30px;
  height: 34px;
  font-size: 15px;
  border-radius: 3px;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-center-deck .mwp-letter-box.is-solved { background: rgba(24, 50, 88, 0.95); border-color: var(--sky-cyan); color: var(--sky-cyan); }
.mwp-center-deck .mwp-hint-card {
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-cyan);
  color: var(--sky-cyan);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 3px;
}
.mwp-center-deck .mwp-result-banner {
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-cyan);
  border-radius: 3px;
  margin: 8px 0 0;
  padding: 10px 12px;
  box-shadow: var(--nk-slab);
}
.mwp-center-deck .mwp-result-copy strong { font-family: var(--font-px-title); font-weight: 700; color: var(--sky-cyan); font-size: 15px; }
.mwp-center-deck .mwp-result-copy p { font-family: var(--font-px-body); font-weight: 400; color: var(--sky-ink); font-size: 16px; }
.mwp-center-deck .mwp-trap-builder,
.mwp-center-deck .mwp-probe-drawer {
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  border-radius: 3px;
  color: var(--sky-ink);
  margin-top: 6px;
  margin-bottom: 0;
  box-shadow: var(--nk-slab);
}
.mwp-center-deck .mwp-muted-sm { color: var(--sky-ink); font-family: var(--font-px-body); font-weight: 400; font-size: 16px; }
.mwp-center-deck .mwp-input {
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  color: var(--sky-ink);
  border-radius: 3px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 18px;
}

/* Bottom Arcade Pixel Input Dock */
.mwp-dock-wrap {
  width: min(492px, calc(100% - 12px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mwp-dock-form {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
}
.mwp-dock-form .mwp-input-shell,
.mwp-dock-form > .mwp-guess-input { flex: 1 1 220px; min-width: 200px; }
.mwp-dock-form .mwp-guess-input {
  min-height: 40px;
  background-color: var(--sky-glass-deep);
  background-image: var(--nk-scan);
  border: 1px solid var(--sky-line);
  border-radius: 3px;
  color: #ffffff;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  box-shadow: var(--nk-slab);
}
.mwp-dock-form .mwp-guess-input:focus { border-color: var(--nk-cyan); outline: 2px solid var(--nk-cyan); outline-offset: 0; }
.mwp-dock-form .mwp-guess-input::placeholder { color: rgba(250, 246, 238, 0.72); opacity: 1; }
.mwp-dock-form .mwp-live-split { font-family: var(--font-px-body); font-weight: 400; font-size: 15px; color: var(--nk-cyan); }
.mwp-dock-form .mwp-live-split.is-golden { background: var(--sky-cyan); color: var(--sky-bg); border-radius: 2px; }
.mwp-climb-btn {
  min-height: 40px;
  padding: 6px 14px;
  border-radius: 3px;
  border: 1px solid var(--sky-cyan);
  background: var(--nk-pink);
  color: var(--sky-bg);
  font-family: var(--font-px-title);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 rgba(110, 24, 44, 0.95);
}
.mwp-climb-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.mwp-climb-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(110, 24, 44, 0.95); }
.mwp-dock-sec-btn {
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 3px;
  border: 1px solid var(--sky-line);
  background: var(--sky-glass);
  color: var(--sky-ink);
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--nk-slab);
}
.mwp-dock-sec-btn:hover:not(:disabled) { border-color: var(--nk-cyan); color: var(--nk-cyan); }
.mwp-dock-sec-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mwp-dock-status {
  margin: 0;
  min-height: 18px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--sky-cyan);
  text-align: center;
  text-shadow: var(--nk-outline);
}
.mwp-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 2px;
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-scroll-cue:hover { color: var(--nk-cyan); border-color: var(--nk-cyan); text-decoration: none; }

/* Right-Side Pixel Vertical Altitude Pole */
.mwp-alt-pole {
  position: absolute;
  right: 8px;
  top: 52px;
  bottom: 52px;
  width: 40px;
  z-index: 18;
  pointer-events: none;
}
.mwp-pole-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Left-Side Collapsible Pixel Real-Time Room Chat Drawer */
.mwp-chat-toggle-tab {
  position: relative;
  min-height: 34px;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--font-px-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-cyan);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.mwp-chat-toggle-tab:hover { border-color: var(--nk-cyan); background-color: rgba(19, 37, 68, 0.92); }
.mwp-chat-drawer {
  position: absolute;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: 256px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  background-color: var(--sky-glass-deck);
  background-image: var(--nk-scan);
}
.mwp-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--sky-line);
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
}
.mwp-chat-room-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mwp-chat-room-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--nk-cyan); }
.mwp-chat-close-btn {
  background: transparent;
  border: 1px solid var(--sky-line);
  border-radius: 2px;
  color: var(--sky-ink);
  cursor: pointer;
  padding: 2px 7px;
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
}
.mwp-chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
}
.mwp-chat-msg {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  word-break: break-word;
}
.mwp-chat-msg-body { flex: 1; min-width: 0; }
.mwp-chat-author { font-weight: 400; color: var(--sky-cyan); margin-right: 4px; }
.mwp-chat-author.is-me { color: var(--nk-cyan); }
.mwp-chat-sys { color: rgba(250, 246, 238, 0.72); }
.mwp-chat-mute-btn {
  background: transparent;
  border: none;
  color: rgba(250, 246, 238, 0.55);
  cursor: pointer;
  font-size: 13px;
  padding: 0 3px;
  flex-shrink: 0;
}
.mwp-chat-mute-btn:hover { color: var(--nk-pink); }
.mwp-chat-emotes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 6px;
  border-top: 1px solid var(--sky-line);
  background: var(--sky-glass-deep);
}
.mwp-emote-btn {
  flex: 1;
  min-height: 26px;
  border-radius: 2px;
  border: 1px solid var(--sky-line);
  background: var(--sky-glass);
  color: var(--sky-ink);
  font-size: 14px;
  cursor: pointer;
  padding: 1px;
}
.mwp-emote-btn:hover { border-color: var(--nk-cyan); }
.mwp-chat-form {
  display: flex;
  gap: 5px;
  padding: 6px;
  border-top: 1px solid var(--sky-line);
}
.mwp-chat-input {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--sky-line);
  background: var(--sky-glass-deep);
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
}
.mwp-chat-send-btn {
  min-width: 32px;
  min-height: 32px;
  border-radius: 2px;
  border: 1px solid var(--nk-cyan);
  background: var(--sky-glass-deep);
  color: var(--nk-cyan);
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* Full-Canvas In-Theater Overlays (SHOP & CLIMB TOGETHER) */
.mwp-theater-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  background-color: rgba(5, 10, 20, 0.80);
  background-image: var(--nk-scan);
  pointer-events: auto;
  overflow-y: auto;
}
#mwp-shop-overlay {
  background: transparent;
  background-image: none;
}
/* Phones: the title column between BACK and the feather balance is narrow, so the tagline wrapped onto three
   lines and pushed the buy button below the stage. Show only the one-line badge row there. */
@media (max-width: 639px) {
  #mwp-shop-overlay .mwp-overlay-title-wrap .mwp-overlay-sub:not(#mwp-shop-badges) { display: none; }
}
.mwp-theater.is-overlay-open .mwp-hud-layer,
.mwp-theater.is-overlay-open .mwp-chat-drawer,
.mwp-theater.is-overlay-open .mwp-chat-toggle-tab,
.mwp-theater.is-overlay-open .mwp-alt-pole {
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 900px) {
  .mwp-theater.is-chat-open .mwp-hud-layer {
    padding-left: 276px;
  }
}
@media (max-width: 899px) {
  .mwp-chat-drawer {
    left: 8px;
    right: 8px;
    top: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    z-index: 32;
  }
  .mwp-theater.is-chat-open .mwp-hud-layer,
  .mwp-theater.is-chat-open .mwp-alt-pole {
    opacity: 0;
    pointer-events: none;
  }
}
.mwp-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mwp-overlay-title-wrap { text-align: center; flex: 1; }
.mwp-overlay-title {
  margin: 0;
  font-family: var(--font-px-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: var(--nk-outline);
}
.mwp-overlay-sub {
  margin: 2px 0 0;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--sky-cyan);
  text-shadow: var(--nk-outline);
}
.mwp-shop-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}
.mwp-shop-stage-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 160px;
  gap: 8px;
}
.mwp-shop-inspector {
  width: min(304px, 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-shop-detail-card { padding: 12px; display: flex; flex-direction: column; gap: 6px; background-color: var(--sky-glass-deck); }
/* Live chat: connection status row (connecting / connected / failed + retry) and the no-room prompt button */
.mwp-chat-status { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 8px 2px; font-family: var(--font-px-body); font-size: 15px; line-height: 1.2; color: var(--sky-ink); }
.mwp-chat-status[hidden] { display: none; }
.mwp-chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-line); flex: 0 0 auto; }
.mwp-chat-status[data-state="connected"] .mwp-chat-status-dot { background: var(--sky-cyan); }
.mwp-chat-status[data-state="failed"] .mwp-chat-status-dot { background: var(--nk-pink); }
.mwp-chat-status-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.mwp-chat-retry-btn, .mwp-chat-join-btn { min-height: 32px; padding: 4px 10px; border-radius: 3px; border: 1px solid var(--sky-cyan); background: var(--sky-glass-deep); color: var(--sky-ink); font-family: var(--font-px-title); font-size: 12px; cursor: pointer; }
.mwp-chat-retry-btn[hidden] { display: none; }
.mwp-chat-need-room { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Shop: the action button wraps so its label is always whole (no sideways scroll at any width);
   PREVIEW sits in the stage slot's bottom-right corner and the sky engine draws the climber beside it. */
#mwp-shop-overlay .mwp-shop-mid, #mwp-shop-overlay .mwp-shop-inspector, #mwp-shop-overlay .mwp-shop-detail-card { min-width: 0; }
/* Short phones (e.g. 360x640): a smaller climber stage keeps a two-line item name plus a two-line locked button on screen at the top of the page. */
@media (max-width: 640px) and (max-height: 700px) { #mwp-shop-overlay .mwp-shop-mid .mwp-shop-stage-slot { min-height: 108px; } }
#mwp-shop-overlay #mwp-shop-action-btn { white-space: normal; overflow-wrap: break-word; line-height: 1.35; height: auto; max-width: 100%; text-align: center; }
#mwp-shop-overlay .mwp-shop-stage-slot { position: relative; align-self: stretch; min-width: 0; }
#mwp-shop-overlay #mwp-shop-preview-toggle { position: absolute; right: 0; bottom: 0; max-width: 44%; white-space: normal; line-height: 1.25; text-align: center; }
@media (max-width: 640px) {
  #mwp-shop-overlay .mwp-shop-stage-slot { min-height: 132px; }
}
.mwp-shop-cat-kicker {
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
  color: var(--nk-cyan);
  text-transform: uppercase;
}
.mwp-shop-item-name {
  margin: 0;
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
}
.mwp-shop-item-desc { margin: 0; font-family: var(--font-px-body); font-weight: 400; font-size: 16px; color: var(--sky-ink); line-height: 1.25; }
.mwp-room-preview-card { padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; background-color: var(--sky-glass-deck); }
.mwp-room-preview-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
  color: var(--sky-cyan);
}
.mwp-room-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 16px;
}
.mwp-room-preview-chat {
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--sky-ink);
  padding-top: 4px;
  border-top: 1px solid var(--sky-line);
}
.mwp-shop-shelf {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--sky-glass-deck);
}
.mwp-shop-filters { display: flex; gap: 5px; flex-wrap: wrap; }
.mwp-shop-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.mwp-shop-tile {
  flex: 0 0 112px;
  padding: 6px 5px;
  border-radius: 3px;
  border: 1px solid var(--sky-line);
  background: var(--sky-glass-deep);
  color: var(--sky-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 0 rgba(4, 10, 20, 0.95);
}
.mwp-shop-tile:hover { border-color: var(--nk-cyan); }
.mwp-shop-tile.is-selected { border-color: var(--nk-cyan); box-shadow: 0 0 0 1px var(--nk-cyan), 0 2px 0 rgba(4, 10, 20, 0.95); }
.mwp-shop-tile.is-equipped { border-color: var(--sky-cyan); }
.mwp-shop-tile canvas {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.mwp-shop-tile-name { font-family: var(--font-px-body); font-weight: 400; font-size: 15px; line-height: 1.1; }
.mwp-shop-tile-price { font-family: var(--font-px-title); font-weight: 700; font-size: 12px; color: var(--sky-cyan); }

/* CLIMB TOGETHER Multiplayer Lobby Overlay */
.mwp-multi-shell {
  width: min(540px, 100%);
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mwp-multi-row { display: flex; gap: 6px; align-items: stretch; }
.mwp-multi-row .mwp-input {
  flex: 1;
  background: var(--sky-glass-deep);
  border-color: var(--sky-line);
  border-radius: 3px;
  color: var(--sky-ink);
  font-family: var(--font-px-body);
  font-weight: 400;
  font-size: 18px;
}
.mwp-shuttle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background-color: var(--sky-glass-deck);
}
.mwp-shuttle-card:hover { border-color: var(--nk-cyan); }
.mwp-shuttle-name {
  display: block;
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}
.mwp-shuttle-desc { display: block; font-family: var(--font-px-body); font-weight: 400; font-size: 16px; color: var(--sky-cyan); }
.mwp-shuttle-right { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mwp-shuttle-badge {
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--sky-glass-deep);
  border: 1px solid var(--sky-line);
  color: var(--nk-cyan);
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
}
.mwp-shuttle-join {
  font-family: var(--font-px-title);
  font-weight: 700;
  font-size: 12px;
  color: var(--sky-cyan);
}
.mwp-multi-create-box { padding: 10px; display: flex; flex-direction: column; gap: 8px; background-color: var(--sky-glass-deck); }
.mwp-below-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 640px) {
  .mwp-theater-wrap { padding: 6px 8px 14px; }
  .mwp-theater { height: auto; min-height: min(82vh, 620px); border-radius: 4px; }
  .mwp-hud-layer { padding: 8px 40px 10px 8px; gap: 8px; }
  .mwp-hud-top { gap: 5px; }
  .mwp-hud-cluster { gap: 5px; }
  .mwp-alt-chip { min-width: 96px; padding: 3px 7px; }
  .mwp-alt-val { font-size: 16px; }
  .mwp-feather-btn, .mwp-lift-pill, .mwp-hud-mini-btn, .mwp-chat-toggle-tab { min-height: 32px; padding: 3px 8px; font-size: 12px; }
  .mwp-center-deck { width: 100%; padding: 2px; }
  .mwp-deck-title { font-size: 14px; }
  .mwp-center-deck .mwp-bookends { gap: 4px; }
  .mwp-center-deck .mwp-tile { padding: 5px 4px; min-width: 0; overflow: hidden; }
  .mwp-center-deck .mwp-tile-kicker { font-family: var(--font-px-body); font-weight: 400; font-size: 14px; letter-spacing: 0.02em; line-height: 1.1; }
  .mwp-dock-form { flex-wrap: wrap; }
  .mwp-dock-form .mwp-input-shell,
  .mwp-dock-form > .mwp-guess-input { flex: 1 1 100%; min-width: 0; }
  .mwp-climb-btn, .mwp-dock-sec-btn { flex: 1 1 auto; }
  .mwp-alt-pole { width: 32px; right: 4px; top: 52px; bottom: 58px; }
  .mwp-chat-drawer { left: 6px; right: 6px; top: 6px; bottom: 6px; width: auto; max-width: none; }
  .mwp-shop-mid { flex-direction: column; }
  .mwp-shop-stage-slot { min-height: 156px; }
  .mwp-below-strip { grid-template-columns: 1fr; }
}


/* M1: result card, onboarding guide, help button, Word Bridge start */
.mwp-rc-overlay{position:absolute;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;padding:14px;background:var(--sky-glass);pointer-events:auto}
.mwp-rc-overlay[hidden],.mwp-rc-card [hidden],.mwp-bridge-go-btn[hidden]{display:none!important}
.mwp-rc-card{position:relative;width:min(460px,100%);max-height:100%;overflow-y:auto;padding:18px 18px 14px;text-align:center;-webkit-font-smoothing:antialiased}
.mwp-rc-x{position:absolute;top:6px;right:8px;width:32px;height:32px;border:1px solid var(--sky-line);border-radius:3px;background:var(--sky-glass-deep);color:var(--sky-ink);font-size:20px;line-height:1;cursor:pointer}
.mwp-rc-x:focus-visible,.mwp-help-btn:focus-visible{outline:2px solid var(--sky-cyan);outline-offset:2px}
.mwp-rc-title{margin:4px 30px 10px;font-family:var(--font-px-title);font-size:18px;line-height:1.3;color:var(--sky-cyan);text-shadow:var(--nk-outline)}
.mwp-rc-answer{margin:0 0 6px;font-family:var(--font-px-title);font-size:28px;letter-spacing:.08em;color:var(--sky-ink);text-shadow:var(--nk-outline);word-break:break-word}
.mwp-rc-hint{margin:0 0 8px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;font-style:italic;line-height:1.45;opacity:.92}
.mwp-rc-sub{margin:0 0 10px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.5}
.mwp-rc-stats{margin:-4px 0 10px;font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;font-weight:600;line-height:1.5;color:var(--sky-cyan)}
.mwp-rc-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:6px 0 4px}
/* M5-1 settings: leaderboard removal request + Delete my progress (fixed dialog, opened from the header gear) */
.mwp-settings-btn{min-width:44px;font-size:18px;line-height:1}
.mwp-set-overlay{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;padding:14px;background:var(--sky-glass)}
.mwp-set-overlay[hidden]{display:none}
.mwp-set-card{width:min(420px,100%);max-height:calc(100vh - 28px);text-align:left;background-color:var(--sky-bg);background-image:none}
.mwp-set-view[hidden]{display:none}
.mwp-set-label{margin:10px 0 6px;font-weight:700;color:var(--sky-ink)}
.mwp-set-btn-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}

.mwp-set-help{margin:6px 0;font-size:13px;line-height:1.45;color:var(--sky-ink);opacity:.88;overflow-wrap:anywhere}
.mwp-set-sep{margin:14px 0 8px;border:0;border-top:1px solid var(--sky-line)}
.mwp-set-danger{min-height:40px;padding:8px 14px;border:1px solid var(--nk-pink);border-radius:3px;background:var(--primary-deep);color:var(--sky-ink);font-family:var(--font-px-title);font-size:12px;font-weight:700;cursor:pointer}
.mwp-set-danger:hover:not(:disabled){background:var(--primary-hover)}
.mwp-set-danger:disabled{opacity:.55;cursor:not-allowed}
.mwp-set-status{min-height:1.3em;margin:10px 0 0;font-size:13px;color:var(--sky-cyan)}
/* M5-3: on phones the shop stage is only 108px tall, too short for the climber above the PREVIEW button; with the
   button in the top-right corner the engine places the climber in the full-height space to its left. */
@media (max-width: 640px){#mwp-shop-overlay .mwp-shop-stage-slot #mwp-shop-preview-toggle{top:0;bottom:auto}}
/* M5-3: article H2s on phones follow the 22px phone heading size (one long pixel-font word such as
   "MiddleWordPlay?" was wider than a 360px screen); a word still too long breaks instead of overflowing. */
@media (max-width: 640px){.mwp-prose h2{font-size:22px;overflow-wrap:break-word}}
/* SEO (i_fe09db44890e4f): section titles that are not part of the page outline (comments, home game grid) keep the
   H2 look without being headings. */
.mwp-heading-like{margin:0 0 12px;font-family:var(--font-display);font-size:28px;font-weight:700;line-height:1.2;color:var(--text)}
@media (max-width: 640px){.mwp-heading-like{font-size:22px;overflow-wrap:break-word}}
/* SEO (i_01bdeb88914349): six nav entries. On phones up to 480px they sit in one swipeable row (as from 481-640px)
   instead of a 2-column grid that would need 3 rows and push the games down. */
@media (max-width: 480px){
  .mwp-header .mwp-nav-pills{display:flex;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;gap:2px;padding:3px 18px 3px 3px;-webkit-mask-image:linear-gradient(to right,#000 86%,transparent);mask-image:linear-gradient(to right,#000 86%,transparent)}
  .mwp-header .mwp-nav-link{flex:0 0 auto;text-align:left;padding:5px 7px;line-height:1.25}
}
/* Wider screens up to 1365px: brand + action buttons share the first row, the six nav entries get the full second
   row (instead of brand / nav / buttons on three rows). */
@media (min-width: 641px) and (max-width: 1365px){
  .mwp-header .mwp-nav-pills{order:3;width:100%;justify-content:center;flex-wrap:wrap;overflow:visible}
  .mwp-header .mwp-header-actions{width:auto;margin-left:auto}
}
/* SEO (i_d958c15c570f4f): short phone screens (360x640 class) - the game pages' breadcrumb stays on one line (the
   current-page name is cut with an ellipsis; the full text stays in the HTML) and the space above it is tightened,
   so the submit button is in the first screen like on the home page. */
@media (max-width: 640px) and (max-height: 700px){
  .mwp-main:has(> .mwp-theater-wrap){padding-top:12px}
  .mwp-crumb-wrap:has(+ .mwp-theater-wrap) .mwp-crumb{flex-wrap:nowrap;white-space:nowrap;min-width:0}
  .mwp-crumb-wrap:has(+ .mwp-theater-wrap) .mwp-crumb > span[aria-current]{min-width:0;overflow:hidden;text-overflow:ellipsis}
}
/* SEO (i_0ae7ab560f8648): on phones the word ladder solver itself sits in the first screen - smaller H1, the intro
   paragraph shown after the solver, the example ladders after the Solve button. Desktop layout unchanged. */
@media (max-width: 640px){
  .mwp-solver-desk .mwp-arena-card{display:flex;flex-direction:column}
  .mwp-solver-desk .mwp-arena-head{display:contents}
  .mwp-solver-desk .mwp-arena-head .mwp-badge{order:0;align-self:flex-start}
  .mwp-solver-desk .mwp-arena-head h1{order:1;font-size:20px;line-height:1.3;margin:8px 0 10px}
  .mwp-solver-desk [data-gf-tool]{order:2}
  .mwp-solver-desk .mwp-arena-head .mwp-lead{order:3;margin:14px 0 0}
  .mwp-solver-desk .mwp-engage-bar{order:4}
  .mwp-solver-desk .mwp-solver-wrap{display:flex;flex-direction:column}
  .mwp-solver-desk .mwp-solver-grid{order:1}
  .mwp-solver-desk .mwp-solver-presets{order:2;margin-top:12px}
  .mwp-solver-desk .mwp-solver-wrap > .mwp-status-line{order:3}
  .mwp-solver-desk .mwp-solver-out{order:4}
}
.mwp-rc-toast{min-height:18px;margin:2px 0 0;font-size:12px;color:var(--nk-cyan)}
.mwp-rc-next{margin:4px 0 0;font-size:12px;opacity:.92}
.mwp-rc-next strong{font-variant-numeric:tabular-nums;letter-spacing:.06em;color:var(--sky-cyan)}
.mwp-ob-steps{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left;counter-reset:mwpob}
.mwp-ob-steps li{position:relative;padding:9px 10px 9px 42px;border:1px solid var(--sky-line);border-radius:3px;background:var(--sky-glass-deep);font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.45;counter-increment:mwpob}
.mwp-ob-steps li::before{content:counter(mwpob);position:absolute;left:10px;top:9px;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:3px;background:var(--sky-cyan);color:var(--sky-bg);font-family:var(--font-px-title);font-size:12px}
.mwp-help-btn{min-width:30px;justify-content:center;font-weight:700}
#mwp-mw-app .mwp-trail-chips{max-height:68px;overflow-y:auto;scrollbar-width:thin}
#mwp-mw-app #mwp-mw-stage{min-height:0;flex:0 1 auto;overflow-y:auto;scrollbar-width:thin}
#mwp-mw-app .mwp-hud-top,#mwp-mw-app .mwp-dock-wrap{flex-shrink:0}
@media (max-height:820px){#mwp-mw-app .mwp-scroll-cue{display:none}}
@media (max-width:480px){.mwp-rc-card{padding:16px 12px 12px}.mwp-rc-title{font-size:15px}.mwp-rc-answer{font-size:22px}.mwp-rc-sub,.mwp-ob-steps li{font-size:13px}}


/* M1-7: compact mobile header + Middle Word first screen (input visible without scrolling) */
@media (max-width:640px){
.mwp-header{position:relative}
.mwp-header-row{min-height:0;padding-top:6px;padding-bottom:6px;row-gap:6px;column-gap:6px;flex-wrap:wrap}
.mwp-brand{gap:8px}
.mwp-brand-tile{width:28px;height:28px;font-size:16px;border-bottom-width:3px}
.mwp-brand-wordmark{font-size:16px}
.mwp-header-actions{width:auto;margin-left:auto;gap:4px;flex-wrap:nowrap}
.mwp-header-actions .mwp-sound-btn,.mwp-header-actions .mwp-streak-chip,.mwp-header-actions .mwp-btn-dark{min-height:34px;padding:4px 8px;font-size:12px}
.mwp-header-actions .mwp-btn-dark span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mwp-nav-pills{order:3;width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:3px}
.mwp-nav-link{padding:5px 8px;font-size:12px}
.mwp-crumb-wrap{margin-bottom:4px}
#mwp-mw-app.mwp-theater-wrap{padding:4px 6px 10px}
#mwp-mw-app .mwp-theater{min-height:0}
#mwp-mw-app .mwp-hud-layer{padding:6px 38px 8px 6px;gap:5px;justify-content:flex-start}
#mwp-mw-app .mwp-hud-top{gap:4px}
#mwp-mw-app .mwp-hud-cluster{gap:4px}
#mwp-mw-app .mwp-alt-chip{flex-direction:row;align-items:baseline;gap:4px;min-width:0;padding:2px 6px}
#mwp-mw-app .mwp-alt-zone,#mwp-mw-app .mwp-shop-tag,#mwp-mw-app .mwp-hud-top [data-toggle-sfx]{display:none}
#mwp-mw-app .mwp-alt-val{font-size:13px}
#mwp-mw-app .mwp-feather-btn,#mwp-mw-app .mwp-lift-pill,#mwp-mw-app .mwp-hud-mini-btn,#mwp-mw-app .mwp-chat-toggle-tab,#mwp-mw-app .mwp-hud-tab{min-height:28px;padding:2px 6px;font-size:12px}
#mwp-mw-app .mwp-center-deck{padding:4px 6px}
#mwp-mw-app .mwp-deck-head{margin-bottom:2px}
#mwp-mw-app .mwp-deck-title{font-size:12px;line-height:1.25;margin:0}
#mwp-mw-app .mwp-ruler-labels,#mwp-mw-app .mwp-scroll-cue{display:none}
#mwp-mw-app .mwp-deck-sub{display:block;font-size:13px;line-height:1.2;margin:1px 0 0;white-space:normal;overflow-wrap:anywhere}
#mwp-mw-app .mwp-split-badge-row{margin:2px 0 4px}
#mwp-mw-app .mwp-gold-pill{font-size:12px;padding:2px 6px;line-height:1.3}
#mwp-mw-app .mwp-bookends{margin-bottom:4px}
#mwp-mw-app .mwp-tile-compact{padding:4px 3px}
#mwp-mw-app .mwp-tile-compact .mwp-tile-word{font-size:13px}
#mwp-mw-app .mwp-tile-compact .mwp-tile-kicker{font-size:12px}
#mwp-mw-app .mwp-tile-compact .mwp-tile-sub,#mwp-mw-app .mwp-tile-compact .mwp-tile-count{font-size:12px;line-height:1.2}
#mwp-mw-app .mwp-ruler-wrap{margin:2px 0 4px}
#mwp-mw-app .mwp-trail-wrap{margin:0}
#mwp-mw-app .mwp-trail-chips{max-height:58px}
#mwp-mw-app .mwp-dock-wrap{margin-top:6px}
#mwp-mw-app .mwp-dock-form{gap:5px}
#mwp-mw-app .mwp-guess-input{min-height:40px;font-size:16px}
#mwp-mw-app .mwp-dock-form .mwp-climb-btn,#mwp-mw-app .mwp-dock-form .mwp-dock-sec-btn{min-height:36px;padding:4px 8px;font-size:12px}
#mwp-mw-app .mwp-dock-status{min-height:0;margin:4px 0 0;font-size:12px}
}


/* M1 QA fixes */
#mwp-mw-app #mwp-ruler-min,#mwp-mw-app #mwp-ruler-max{display:none}
#mwp-mw-app .mwp-ruler-labels{justify-content:center}
#mwp-target-mask{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;display:block}
#mwp-target-mask.is-boxes{letter-spacing:.14em}
#mwp-target-mask.is-label{font-family:'Inter',system-ui,sans-serif;font-weight:600;font-size:14px;letter-spacing:0;text-transform:none}
.mwp-sky-toast{top:auto;bottom:auto;top:46%;left:auto;right:48px;transform:none;max-width:min(28%,calc(50% - 300px));white-space:normal;text-align:center}
@media (max-width:1199px){.mwp-sky-toast{display:none!important}}
@media (min-width:1260px){
#mwp-mw-app .mwp-hud-top{flex-wrap:nowrap;justify-content:flex-start;gap:10px}
#mwp-mw-app .mwp-hud-top>.mwp-hud-cluster:last-child{margin-left:auto}
#mwp-mw-app .mwp-hud-top>.mwp-hud-cluster{flex-wrap:nowrap;flex-shrink:1;min-width:0}
#mwp-mw-app .mwp-hud-top>.mwp-hud-cluster:nth-child(2){order:0}
#mwp-mw-app .mwp-alt-zone{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#mwp-mw-app .mwp-alt-chip{width:206px;box-sizing:border-box}
#mwp-mw-app .mwp-hud-top .mwp-feather-btn{min-width:122px;justify-content:center}
}
@media (max-width:640px){
.mwp-nav-pills{gap:2px;-webkit-mask-image:linear-gradient(to right,#000 86%,transparent);mask-image:linear-gradient(to right,#000 86%,transparent);padding-right:18px}
.mwp-nav-link{padding:5px 6px}
#mwp-target-mask{font-size:13px}
#mwp-target-mask.is-label{font-size:12px}
#mwp-mw-app .mwp-tile-compact .mwp-tile-word{letter-spacing:0}
#mwp-mw-app .mwp-trail-chips{max-height:62px;gap:3px}
#mwp-mw-app .mwp-chip{font-size:12px;line-height:1.2;padding:2px 6px;margin:0}
#mwp-mw-app .mwp-chip-dir{font-size:12px}
#mwp-mw-app .mwp-trail-label{font-size:12px}
#mwp-bridge-app.mwp-theater-wrap,#mwp-cryptic-app.mwp-theater-wrap,#mwp-poople-app.mwp-theater-wrap{padding:4px 6px 10px}
#mwp-bridge-app .mwp-theater,#mwp-cryptic-app .mwp-theater,#mwp-poople-app .mwp-theater{min-height:0}
#mwp-bridge-app .mwp-hud-layer,#mwp-cryptic-app .mwp-hud-layer,#mwp-poople-app .mwp-hud-layer{padding:6px 38px 8px 6px;gap:5px;justify-content:flex-start}
#mwp-bridge-app .mwp-alt-chip,#mwp-cryptic-app .mwp-alt-chip,#mwp-poople-app .mwp-alt-chip{flex-direction:row;align-items:baseline;gap:4px;min-width:0;padding:2px 6px}
#mwp-bridge-app .mwp-alt-zone,#mwp-cryptic-app .mwp-alt-zone,#mwp-poople-app .mwp-alt-zone,#mwp-bridge-app .mwp-shop-tag,#mwp-cryptic-app .mwp-shop-tag,#mwp-poople-app .mwp-shop-tag,#mwp-bridge-app .mwp-hud-top [data-toggle-sfx],#mwp-cryptic-app .mwp-hud-top [data-toggle-sfx],#mwp-poople-app .mwp-hud-top [data-toggle-sfx]{display:none}
#mwp-bridge-app .mwp-alt-val,#mwp-cryptic-app .mwp-alt-val,#mwp-poople-app .mwp-alt-val{font-size:13px}
#mwp-bridge-app .mwp-hud-top .mwp-glass,#mwp-cryptic-app .mwp-hud-top .mwp-glass,#mwp-poople-app .mwp-hud-top .mwp-glass,#mwp-bridge-app .mwp-hud-tab,#mwp-cryptic-app .mwp-hud-tab,#mwp-poople-app .mwp-hud-tab,#mwp-bridge-app .mwp-hud-select,#mwp-cryptic-app .mwp-hud-select{min-height:28px;padding:2px 6px;font-size:12px}
#mwp-bridge-app .mwp-deck-title,#mwp-cryptic-app .mwp-deck-title,#mwp-poople-app .mwp-deck-title{font-size:12px;line-height:1.25;margin:0}
#mwp-bridge-app .mwp-scroll-cue,#mwp-cryptic-app .mwp-scroll-cue,#mwp-poople-app .mwp-scroll-cue{display:none}
#mwp-bridge-app .mwp-deck-sub,#mwp-cryptic-app .mwp-deck-sub,#mwp-poople-app .mwp-deck-sub{display:block;font-size:13px;line-height:1.2;margin:1px 0 0;white-space:normal;overflow-wrap:anywhere}
#mwp-bridge-app .mwp-gold-pill,#mwp-cryptic-app .mwp-gold-pill,#mwp-poople-app .mwp-gold-pill{font-size:12px;padding:2px 6px;line-height:1.3}
#mwp-bridge-app .mwp-dock-wrap,#mwp-cryptic-app .mwp-dock-wrap,#mwp-poople-app .mwp-dock-wrap{margin-top:6px}
#mwp-bridge-app .mwp-guess-input,#mwp-cryptic-app .mwp-guess-input,#mwp-poople-app .mwp-guess-input{min-height:40px;font-size:16px}
#mwp-bridge-app .mwp-dock-form .mwp-climb-btn,#mwp-bridge-app .mwp-dock-form .mwp-dock-sec-btn,#mwp-cryptic-app .mwp-dock-form .mwp-climb-btn,#mwp-cryptic-app .mwp-dock-form .mwp-dock-sec-btn,#mwp-poople-app .mwp-dock-form .mwp-climb-btn,#mwp-poople-app .mwp-dock-form .mwp-dock-sec-btn{min-height:36px;padding:4px 8px;font-size:12px}
#mwp-poople-app .mwp-poople-chain{max-height:96px;overflow-y:auto}
}


/* M1.1 patch */
.mwp-hud-top .mwp-hud-tab,.mwp-hud-top .mwp-hud-mini-btn,.mwp-hud-top .mwp-lift-pill,.mwp-hud-top .mwp-chat-toggle-tab,.mwp-hud-top .mwp-feather-btn{white-space:nowrap}
.mwp-center-deck .mwp-tile-word{display:block;max-width:100%;white-space:nowrap;overflow:hidden;overflow-wrap:normal;word-break:keep-all}
@media (max-width:480px){
.mwp-nav-pills{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:3px;overflow:visible;-webkit-mask-image:none;mask-image:none}
.mwp-nav-link{text-align:center;padding:3px 6px;line-height:1.25}
.mwp-header-actions .mwp-sound-btn,.mwp-header-actions .mwp-streak-chip,.mwp-header-actions .mwp-btn-dark{min-height:30px}
#mwp-poople-app .mwp-poople-chain{max-height:64px}
#mwp-poople-app .mwp-poople-endpoints{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;align-items:center}
#mwp-poople-app .mwp-poople-arrow{transform:none}
#mwp-poople-app .mwp-poople-endpoints{margin-bottom:4px!important}
#mwp-poople-app .mwp-split-badge-row{margin:2px 0 4px}
}


#mwp-bridge-mask{white-space:nowrap}


/* M1.2 patch */
@media (max-width:640px){
.mwp-hud-top>.mwp-hud-cluster{max-width:100%;flex-wrap:wrap}
#mwp-cryptic-app .mwp-hud-modes{flex-wrap:wrap;max-width:100%;min-width:0}
#mwp-cryptic-app .mwp-hud-select{max-width:100%;min-width:0}
#mwp-cryptic-app .mwp-dock-form .mwp-dock-sec-btn{white-space:normal;min-width:0;max-width:100%;line-height:1.2}
#mwp-cryptic-hint-btn{flex:1 1 100%}
#mwp-mw-app .mwp-tile-compact{padding-left:1px;padding-right:1px}
}


/* M2: after a cryptic clue is solved (or times out) the answer dock is done; hide it so the result + NEXT CLUE fit inside the stage */
#mwp-cryptic-form.is-solved{display:none!important}


/* Chat privacy notice above the room chat input: small, wraps inside the drawer instead of widening it */
.mwp-chat-notice{flex:0 0 auto;margin:4px 8px 2px;max-width:100%;box-sizing:border-box;font-size:12px;line-height:1.3;color:inherit;opacity:.8;overflow-wrap:anywhere;white-space:normal}
.mwp-chat-notice a{color:inherit;font:inherit;text-transform:none;letter-spacing:inherit;text-decoration:underline;text-underline-offset:2px}
.mwp-chat-notice a:hover,.mwp-chat-notice a:focus-visible{text-decoration-thickness:2px}
@media (max-width:640px){.mwp-chat-notice{margin:3px 6px 2px}}


/* M2 fix 1: after a cryptic solve / time-up, hints collapse and the center deck may shrink + scroll so NEXT CLUE stays inside the stage */
#mwp-cryptic-app.is-cryptic-solved #mwp-cryptic-hints{display:none!important}
#mwp-cryptic-app.is-cryptic-solved .mwp-center-deck{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
#mwp-cryptic-app.is-cryptic-solved .mwp-hud-layer{min-height:0}


/* M2 fix 3: zone name may wrap to a second line instead of being cut off (name text unchanged) */
@media (min-width:1260px){
#mwp-mw-app .mwp-alt-zone{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15;overflow-wrap:break-word}
#mwp-mw-app .mwp-alt-chip{height:auto}
/* M2 fix 5: HUD clusters never shrink under their content; when space runs out (e.g. chat drawer open) the right cluster wraps to the next row */
#mwp-mw-app .mwp-hud-top{flex-wrap:wrap;row-gap:4px}
#mwp-mw-app .mwp-hud-top>.mwp-hud-cluster{flex-shrink:0}
}
/* SEO (i_01bdeb88914349 follow-up): the 6-link nav makes the desktop header 2 rows (117px); shorten the stage by the same amount so the submit button stays in the first screen. Kept last so it wins over the base stage rule. */
@media (min-width: 641px) { .mwp-theater { height: min(calc(86vh - 56px), 800px); } }
/* SEO (i_0357fb30df8641): on tablets (641-1023px) the solver card shared the row with the side rail and became too narrow (Solve button at 1052 on 768x1024); stack the rail below the solver instead. */
@media (min-width: 641px) and (max-width: 1023px) { .mwp-solver-desk .mwp-desk-grid { grid-template-columns: minmax(0, 1fr); } }
/* Shop button while the sky engine is still loading (a click is kept and opens the shop when ready), and when the engine could not load. */
[data-open-shop][aria-busy="true"] { cursor: progress; opacity: 0.75; }
[data-open-shop].is-unavailable { cursor: not-allowed; opacity: 0.45; filter: grayscale(1); }
