/* ==========================================================================
   Parlor Shared UI Redesign Comparison Demo — Self-Contained Stylesheet
   Same-origin fonts only, zero remote CDNs, CSP-strict (no inline styles).
   ========================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('./assets/fonts/bricolage_grotesque.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./assets/fonts/inter.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./assets/fonts/jetbrains_mono.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans Arabic UI';
  src: url('./assets/fonts/noto_sans_arabic_ui.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 1000;
  background: #144D43;
  color: #FFFDF9;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Outer Review Workbench Chrome
   ========================================================================== */

.wb-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0F0F12;
  color: #ECEAE5;
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.wb-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(15, 15, 18, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #26262C;
}

.wb-header-row {
  max-width: 1560px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.wb-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wb-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #303038;
  background: #18181D;
  color: #E2DFD9;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 140ms ease, border-color 140ms ease;
}

.wb-back-link:hover {
  background: #222229;
  border-color: #484854;
}

.wb-back-link:focus-visible,
.wb-seg-btn:focus-visible,
.wb-rail-btn:focus-visible,
.wb-fx-btn:focus-visible,
.wb-mini-btn:focus-visible,
.wb-reset-btn:focus-visible,
.wb-mobile-btn:focus-visible,
.capture-open-link:focus-visible {
  outline: 2px solid #F6B84E;
  outline-offset: 2px;
}

.wb-title-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.wb-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #F6F4EF;
}

.wb-scope-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1C1C22;
  border: 1px solid #303039;
  color: #B4B0A8;
}

.wb-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wb-ctrl-group {
  display: inline-flex;
  background: #18181D;
  border: 1px solid #2D2D35;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}

.wb-seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #B5B2AA;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, color 140ms ease;
}

.wb-seg-btn:hover {
  color: #F6F4EF;
  background: rgba(255, 255, 255, 0.06);
}

.wb-seg-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #FFA236 0%, #EA6A15 100%);
  color: #140B04;
  font-weight: 700;
}

/* Screen Shortcut Rail */
.wb-screen-nav {
  border-top: 1px solid #202026;
  background: #131317;
}

.wb-screen-rail {
  max-width: 1560px;
  margin: 0 auto;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wb-rail-btn {
  appearance: none;
  border: 1px solid #2B2B33;
  background: #1A1A20;
  color: #C7C5BE;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.wb-rail-btn:hover {
  background: #23232B;
  border-color: #42424E;
  color: #F6F4EF;
}

.wb-rail-btn[aria-selected="true"] {
  background: #F6F4EF;
  border-color: #F6F4EF;
  color: #121216;
}

.wb-rail-btn-proposed {
  border-color: rgba(246, 184, 78, 0.34);
}

.wb-rail-btn-proposed[aria-selected="true"] {
  background: linear-gradient(135deg, #FFA236 0%, #EA6A15 100%);
  border-color: transparent;
  color: #140B04;
}

.wb-rail-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.72;
}

.wb-rail-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(246, 184, 78, 0.16);
  color: #F6B84E;
}

.wb-rail-btn[aria-selected="true"] .wb-rail-tag {
  background: rgba(20, 11, 4, 0.16);
  color: #140B04;
}

.wb-rail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-native { background: #4AC991; }
.dot-desktop { background: #E9B15E; }
.dot-recon { background: #7BA7E8; }
.dot-proposed { background: #FF9A2E; }

/* Fixture Bar */
.wb-fixture-bar {
  max-width: 1560px;
  margin: 0 auto;
  padding: 7px 18px 9px;
  border-top: 1px solid #202026;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 12px;
}

.wb-fx-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9A9890;
  margin-inline-end: 4px;
}

.wb-fx-btn {
  appearance: none;
  border: 1px solid #2E2E37;
  background: #191920;
  color: #D4D2CB;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  min-height: 30px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.wb-fx-btn:hover {
  background: #24242D;
  border-color: #484855;
}

.wb-fx-btn[aria-pressed="true"] {
  background: rgba(246, 166, 49, 0.18);
  border-color: rgba(246, 184, 78, 0.56);
  color: #FFE0A6;
  font-weight: 600;
}

.wb-fx-sep {
  width: 1px;
  height: 18px;
  background: #2E2E37;
  margin: 0 2px;
}

/* Main Stage */
.wb-main {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px 18px 40px;
}

.wb-mobile-toggle {
  display: none;
  margin: 0 auto 14px;
  max-width: 420px;
  background: #18181D;
  border: 1px solid #2E2E36;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.wb-mobile-btn {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  color: #B5B2AA;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  border-radius: 9px;
  cursor: pointer;
}

.wb-mobile-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, #FFA236 0%, #EA6A15 100%);
  color: #140B04;
  font-weight: 700;
}

.wb-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  justify-items: center;
}

.wb-body[data-compare="current"] .wb-stage,
.wb-body[data-compare="proposed"] .wb-stage {
  grid-template-columns: minmax(0, 1fr);
}

.wb-body[data-compare="current"] .wb-col-proposed {
  display: none;
}

.wb-body[data-compare="proposed"] .wb-col-current {
  display: none;
}

.wb-body[data-vp="tablet"][data-compare="side"] .wb-stage {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 660px), 1fr));
}

.wb-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 724px;
}

.wb-col-head {
  width: 100%;
  max-width: var(--vp-shell-w, 414px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 10px;
}

.wb-col-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 26px;
}

.wb-col-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
}

.wb-sync-note {
  font-size: 11.5px;
  font-weight: 500;
  color: #A2A09A;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wb-sync-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F6B84E;
}

.wb-col-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #F6F4EF;
}

.wb-evidence-badge,
.wb-proposal-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.ev-native {
  background: rgba(74, 201, 145, 0.14);
  border: 1px solid rgba(74, 201, 145, 0.42);
  color: #8FE5BC;
}

.ev-desktop {
  background: rgba(233, 177, 94, 0.15);
  border: 1px solid rgba(233, 177, 94, 0.44);
  color: #F4C881;
}

.ev-recon {
  background: rgba(123, 167, 232, 0.14);
  border: 1px solid rgba(123, 167, 232, 0.42);
  color: #A9C8F5;
}

.ev-proposed {
  background: rgba(255, 154, 46, 0.16);
  border: 1px solid rgba(255, 168, 70, 0.46);
  color: #FFD18C;
}

.wb-proposal-badge {
  background: rgba(255, 154, 46, 0.15);
  border: 1px solid rgba(246, 184, 78, 0.42);
  color: #FFD18C;
}

.wb-mini-seg {
  display: inline-flex;
  background: #1A1A20;
  border: 1px solid #303039;
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.wb-mini-seg[hidden] {
  display: none;
}

.wb-mini-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #B5B2AA;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  min-height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.wb-mini-btn[aria-pressed="true"] {
  background: #F6F4EF;
  color: #141417;
}

.wb-reset-btn {
  appearance: none;
  border: 1px solid #32323B;
  background: #1B1B21;
  color: #D6D3CC;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  min-height: 30px;
  border-radius: 8px;
  cursor: pointer;
}

.wb-reset-btn:hover {
  background: #25252E;
  color: #FFFDF8;
}

.wb-col-footnote {
  margin: 10px 0 0;
  max-width: var(--vp-shell-w, 414px);
  width: 100%;
  font-size: 12px;
  color: #9F9D96;
  text-align: center;
}

/* Device Shell */
.wb-body[data-vp="small"] {
  --vp-w: 360px;
  --vp-h: 640px;
  --vp-shell-w: 380px;
}

.wb-body[data-vp="standard"] {
  --vp-w: 390px;
  --vp-h: 760px;
  --vp-shell-w: 410px;
}

.wb-body[data-vp="tablet"] {
  --vp-w: 700px;
  --vp-h: 780px;
  --vp-shell-w: 720px;
}

.device-shell {
  width: min(100%, var(--vp-shell-w));
  padding: 10px;
  border-radius: 34px;
  background: #09090B;
  border: 1px solid #2D2D34;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.device-shell-proposed {
  border-color: rgba(246, 184, 78, 0.30);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(246, 184, 78, 0.16);
}

.device-statusbar {
  height: 28px;
  padding: 0 18px;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  background: var(--sb-bg, #F6F1E8);
  color: var(--sb-fg, #181716);
}

.sb-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sb-signal {
  width: 14px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 100%, 0 65%, 22% 65%, 22% 100%, 30% 100%, 30% 45%, 52% 45%, 52% 100%, 60% 100%, 60% 25%, 82% 25%, 82% 100%, 90% 100%, 90% 0, 100% 0, 100% 100%);
  opacity: 0.85;
}

.sb-wifi {
  width: 12px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-radius: 50% 50% 0 0;
  opacity: 0.85;
}

.sb-battery {
  width: 20px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
  opacity: 0.9;
}

.sb-battery::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.device-viewport {
  width: 100%;
  height: var(--vp-h);
  overflow: hidden;
  position: relative;
  border-radius: 0 0 24px 24px;
  background: #F6F1E8;
}

.device-viewport * {
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 145, 140, 0.36) transparent;
}

.device-viewport *::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.device-viewport *::-webkit-scrollbar-track {
  background: transparent;
}

.device-viewport *::-webkit-scrollbar-thumb {
  background: rgba(130, 145, 140, 0.36);
  border-radius: 999px;
}

.device-viewport *::-webkit-scrollbar-thumb:hover {
  background: rgba(130, 145, 140, 0.56);
}

.device-home-indicator {
  width: 112px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 7px auto 1px;
}

/* Status bar theming helpers */
.device-shell[data-sb="cur-lib-light"] { --sb-bg: #F6F1E8; --sb-fg: #202B29; }
.device-shell[data-sb="cur-lib-dark"]  { --sb-bg: #172321; --sb-fg: #F6F1E8; }
.device-shell[data-sb="cur-leg-light"] { --sb-bg: #F5F0E7; --sb-fg: #181716; }
.device-shell[data-sb="cur-leg-dark"]  { --sb-bg: #101114; --sb-fg: #F7F3EB; }
.device-shell[data-sb="cur-cover"]     { --sb-bg: #000000; --sb-fg: #F7F3EB; }
.device-shell[data-sb="pro-light"]     { --sb-bg: #F5F2EC; --sb-fg: #141417; }
.device-shell[data-sb="pro-dark"]      { --sb-bg: #0A0A0C; --sb-fg: #F6F6F7; }
.device-shell[data-sb="pro-cover"]     { --sb-bg: #050507; --sb-fg: #F6F6F7; }
.device-shell[data-sb="capture"]       { --sb-bg: #101014; --sb-fg: #D2D0CA; }

/* Rationale Panel */
.wb-rationale {
  margin-top: 26px;
  background: #16161B;
  border: 1px solid #2A2A32;
  border-radius: 18px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px 28px;
}

.rat-head {
  margin: 0 0 10px;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #F6F4EF;
}

.rat-list {
  margin: 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: #D2D0CA;
}

.rat-list strong {
  color: #F7F5F0;
}

.rat-meta-box {
  background: #111115;
  border: 1px solid #272730;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 12.5px;
  color: #B4B2AA;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rat-meta-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F6B84E;
  margin: 0;
}

.rat-meta-box p {
  margin: 0;
}

/* Capture Reference Mode inside Current Device */
.capture-view {
  width: 100%;
  height: 100%;
  background: #0F0F12;
  color: #ECEAE5;
  display: flex;
  flex-direction: column;
}

.capture-bar {
  padding: 8px 12px;
  background: #18181D;
  border-bottom: 1px solid #2C2C34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
}

.capture-meta {
  color: #BEBDB6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.capture-open-link {
  color: #F6B84E;
  text-decoration: none;
  font-weight: 600;
  flex-shrink: 0;
}

.capture-open-link:hover {
  text-decoration: underline;
}

.capture-img-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px;
  background: #0A0A0D;
}

.capture-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.capture-fallback {
  padding: 24px 18px;
  text-align: center;
  font-size: 13px;
  color: #B4B2AA;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.capture-fallback code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  background: #1B1B22;
  padding: 4px 8px;
  border-radius: 6px;
  color: #F6B84E;
  word-break: break-all;
}

/* ==========================================================================
   Shared App Base & Game Artwork Colors
   ========================================================================== */

.app-root {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, sans-serif;
  text-align: start;
}

.app-root[dir="rtl"] {
  font-family: 'Noto Sans Arabic UI', 'Inter', system-ui, sans-serif;
}

.app-root[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}

.app-root[data-reduced-motion="true"] *,
.app-root[data-reduced-motion="true"] *::before,
.app-root[data-reduced-motion="true"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.app-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mono-ltr {
  font-family: 'JetBrains Mono', monospace;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Official Current ParlorArtwork pigment classes (faithful to production) */
.art-whodunit          { background: #654765; }
.art-mafia             { background: #354769; }
.art-last-light        { background: #A95429; }
.art-egyptian-dominoes { background: #40568B; }
.art-ghamza            { background: #26736E; }
.art-word-impostor     { background: #833D59; }

/* Restrained game-keyed dark charcoal accents for Proposed v3 */
.pro-tint-whodunit          { --game-tint: rgba(154, 108, 178, 0.14); --game-border-tint: rgba(216, 178, 110, 0.28); }
.pro-tint-mafia             { --game-tint: rgba(98, 126, 178, 0.14);  --game-border-tint: rgba(145, 168, 210, 0.26); }
.pro-tint-last-light        { --game-tint: rgba(243, 156, 45, 0.14);  --game-border-tint: rgba(246, 184, 78, 0.34); }
.pro-tint-egyptian-dominoes { --game-tint: rgba(114, 150, 198, 0.14); --game-border-tint: rgba(216, 178, 110, 0.28); }
.pro-tint-ghamza            { --game-tint: rgba(68, 156, 140, 0.14);  --game-border-tint: rgba(212, 169, 96, 0.30); }
.pro-tint-word-impostor     { --game-tint: rgba(196, 102, 118, 0.14); --game-border-tint: rgba(243, 156, 45, 0.30); }

/* Proposed minimalist cover frames & clean matching grounds */
.pro-art-frame {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

.pro-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 220ms ease;
}

.pro-cover-bg-whodunit          { background: #1A1120; }
.pro-cover-bg-mafia             { background: #101624; }
.pro-cover-bg-last-light        { background: #1B120C; }
.pro-cover-bg-egyptian-dominoes { background: #101826; }
.pro-cover-bg-ghamza            { background: #0D1C19; }
.pro-cover-bg-word-impostor     { background: #1E1016; }

.art-box {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.art-box svg {
  width: 76%;
  height: 76%;
  display: block;
}

/* ==========================================================================
   CURRENT PARLOR UI (.app-cur) — Faithful Reconstruction of Actual App
   Preserves the real green-vs-amber surface split seen in captures & code!
   ========================================================================== */

.app-cur[data-theme="light"] {
  /* LibrarySurface palette */
  --c-lib-canvas: #F6F1E8;
  --c-lib-card: #FFFCF5;
  --c-lib-higher: #E8E8DC;
  --c-lib-accent: #174D43;
  --c-lib-on-accent: #FFFCF5;
  --c-lib-ink: #202B29;
  --c-lib-ink-2: #4F605B;
  --c-lib-ink-3: #56645F;
  --c-lib-border: #D4D3C5;
  --c-lib-glyph-bg: rgba(23, 77, 67, 0.12);

  /* Legacy CozyNoir palette (Bottom bar, Permission, Lobby, Settings, Recovery Failure) */
  --c-leg-canvas: #F5F0E7;
  --c-leg-card: #FFFAF1;
  --c-leg-hero: #FFF7E8;
  --c-leg-higher: #E9E1D5;
  --c-leg-accent: #A15B0F;
  --c-leg-on-accent: #FFFAF1;
  --c-leg-ink: #181716;
  --c-leg-ink-2: #55524D;
  --c-leg-ink-3: #66625C;
  --c-leg-border: #D4CABD;
  --c-leg-border-hi: #AAA094;
  --c-leg-danger: #B82F2B;
  --c-leg-disabled-bg: #B2A99D;
  --c-leg-disabled-fg: #666058;
}

.app-cur[data-theme="dark"] {
  --c-lib-canvas: #172321;
  --c-lib-card: #22322F;
  --c-lib-higher: #32433F;
  --c-lib-accent: #B9DECA;
  --c-lib-on-accent: #172321;
  --c-lib-ink: #F6F1E8;
  --c-lib-ink-2: #C0CFC8;
  --c-lib-ink-3: #B0BCB6;
  --c-lib-border: #4A5B56;
  --c-lib-glyph-bg: rgba(185, 222, 202, 0.14);

  --c-leg-canvas: #101114;
  --c-leg-card: #1A1C21;
  --c-leg-hero: #1D2025;
  --c-leg-higher: #22252B;
  --c-leg-accent: #E7B45D;
  --c-leg-on-accent: #151310;
  --c-leg-ink: #F7F3EB;
  --c-leg-ink-2: #B7B5B0;
  --c-leg-ink-3: #898C94;
  --c-leg-border: #30343C;
  --c-leg-border-hi: #454A54;
  --c-leg-danger: #FF6961;
  --c-leg-disabled-bg: #363940;
  --c-leg-disabled-fg: #7D818A;
}

.cur-surface-lib {
  background: var(--c-lib-canvas);
  color: var(--c-lib-ink);
}

.cur-surface-leg {
  background: var(--c-leg-canvas);
  color: var(--c-leg-ink);
}

.app-cur button:focus-visible,
.app-cur input:focus-visible {
  outline: 2px solid var(--c-lib-accent);
  outline-offset: 2px;
}

.cur-surface-leg button:focus-visible,
.cur-surface-leg input:focus-visible {
  outline: 2px solid var(--c-leg-accent);
  outline-offset: 2px;
}

/* Current Home / Library */
.cur-pad {
  padding: 16px 16px 28px;
}

.cur-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-lib-border);
  margin-bottom: 14px;
}

.cur-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-lib-glyph-bg);
  border: 1px solid var(--c-lib-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-lib-accent);
  flex-shrink: 0;
}

.cur-mark svg {
  width: 22px;
  height: 22px;
}

.cur-brand-name {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-lib-ink);
}

.app-cur[dir="rtl"] .cur-brand-name,
.app-cur[dir="rtl"] .cur-h1,
.app-cur[dir="rtl"] .cur-h2,
.app-cur[dir="rtl"] .cur-card-title {
  font-family: 'Noto Sans Arabic UI', sans-serif;
  letter-spacing: 0;
}

.cur-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cur-h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-lib-ink);
}

.cur-h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--c-lib-ink);
}

.cur-count {
  font-size: 13px;
  color: var(--c-lib-ink-2);
  white-space: nowrap;
}

.cur-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.cur-chip {
  appearance: none;
  border: 1px solid var(--c-lib-border);
  background: var(--c-lib-card);
  color: var(--c-lib-ink-2);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  min-height: 44px;
  border-radius: 999px;
  cursor: pointer;
}

.cur-chip[aria-pressed="true"] {
  background: var(--c-lib-accent);
  border-color: var(--c-lib-accent);
  color: var(--c-lib-on-accent);
  font-weight: 600;
}

/* Current Recovery section on Home */
.cur-rec-section {
  margin-bottom: 16px;
}

.cur-rec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cur-rec-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-lib-ink);
}

.app-cur[dir="rtl"] .cur-rec-eyebrow,
.app-cur[dir="rtl"] .cur-eyebrow,
.app-cur[dir="rtl"] .cur-tab-label {
  letter-spacing: 0;
}

.cur-rec-sub {
  font-size: 12px;
  color: var(--c-lib-ink-2);
}

.cur-rec-tile {
  background: var(--c-lib-card);
  border: 1px solid var(--c-lib-border);
  border-radius: 16px;
  padding: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cur-rec-tap {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  text-align: start;
  padding: 8px;
  min-height: 48px;
  cursor: pointer;
  color: var(--c-lib-ink);
  font-family: inherit;
}

.cur-rec-title {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--c-lib-ink);
}

.cur-rec-meta {
  display: block;
  font-size: 12.5px;
  color: var(--c-lib-ink-2);
  margin-top: 2px;
}

.cur-rec-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--c-lib-ink-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.cur-rec-remove:hover {
  background: var(--c-lib-higher);
}

/* Current Catalog Grid — intentionally matches real uneven heights on 2-col */
.cur-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.wb-body[data-vp="tablet"] .cur-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cur-game-card {
  appearance: none;
  width: 100%;
  padding: 0;
  text-align: start;
  border: 1px solid var(--c-lib-border);
  background: var(--c-lib-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}

.cur-game-art {
  width: 100%;
  aspect-ratio: 1.35 / 1;
}

.cur-game-body {
  padding: 13px 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cur-card-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-lib-ink);
}

.cur-card-tag {
  font-size: 13px;
  line-height: 1.4;
  color: var(--c-lib-ink-2);
}

.cur-card-meta {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cur-card-players {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-lib-ink);
}

.cur-card-modes {
  font-size: 12px;
  color: var(--c-lib-ink-2);
}

/* Current Bottom Tab Bar — uses legacy Amber accent! */
.cur-bottom-bar {
  display: flex;
  border-top: 1px solid var(--c-leg-border);
  background: var(--c-leg-canvas);
  padding: 6px 20px 8px;
  gap: 8px;
  flex-shrink: 0;
}

.cur-tab-btn {
  flex: 1;
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  cursor: pointer;
  color: var(--c-leg-ink-3);
  font-family: inherit;
}

.cur-tab-btn[aria-selected="true"] {
  color: var(--c-leg-accent);
}

.cur-tab-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Current Mode Picker */
.cur-back-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.cur-circle-back {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--c-lib-border);
  background: var(--c-lib-card);
  color: var(--c-lib-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.cur-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lib-ink-2);
}

.cur-eyebrow-green {
  color: var(--c-lib-accent);
}

.cur-eyebrow-amber {
  color: var(--c-leg-accent);
}

.cur-picker-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.cur-picker-thumb {
  width: 82px;
  height: 82px;
  border-radius: 12px;
}

.cur-section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
}

.cur-section-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--c-lib-border);
}

.cur-mode-card {
  width: 100%;
  appearance: none;
  border: 1px solid var(--c-lib-border);
  background: var(--c-lib-card);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: start;
  cursor: pointer;
  font-family: inherit;
}

.cur-mode-glyph {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-lib-glyph-bg);
  color: var(--c-lib-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cur-mode-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-lib-ink);
  display: block;
}

.cur-mode-body {
  font-size: 13.5px;
  color: var(--c-lib-ink-2);
  display: block;
  margin-top: 2px;
}

.cur-muted-note {
  font-size: 13.5px;
  color: var(--c-lib-ink-2);
  margin: 4px 0 12px;
}

/* Current Name & Room Code Entry */
.cur-entry-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cur-entry-main {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.cur-input {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
  border: 1.5px solid var(--c-lib-border);
  background: var(--c-lib-card);
  color: var(--c-lib-ink);
  font-family: inherit;
  font-size: 16px;
  padding: 0 14px;
  margin-top: 18px;
}

.cur-input-code {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
}

.cur-sticky-bottom {
  padding: 12px 16px 16px;
  background: var(--c-lib-canvas);
}

.cur-btn-lib {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 0;
  background: var(--c-lib-accent);
  color: var(--c-lib-on-accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cur-btn-lib:disabled {
  background: var(--c-leg-disabled-bg);
  color: var(--c-leg-disabled-fg);
  cursor: not-allowed;
}

/* Current Legacy Buttons & Cards (Amber / Charcoal surfaces!) */
.cur-leg-center {
  min-height: 100%;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.cur-leg-h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.16;
  color: var(--c-leg-ink);
}

.app-cur[dir="rtl"] .cur-leg-h1 {
  font-family: 'Noto Sans Arabic UI', sans-serif;
}

.cur-leg-hero-card {
  width: 100%;
  background: var(--c-leg-hero);
  border: 1px solid var(--c-leg-accent);
  border-radius: 22px;
  padding: 22px;
  text-align: start;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-leg-ink);
}

.cur-leg-card {
  width: 100%;
  background: var(--c-leg-card);
  border: 1px solid var(--c-leg-border);
  border-radius: 16px;
  padding: 16px;
  text-align: start;
}

.cur-btn-amber {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 0;
  background: var(--c-leg-accent);
  color: var(--c-leg-on-accent);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cur-btn-amber:disabled {
  background: var(--c-leg-disabled-bg);
  color: var(--c-leg-disabled-fg);
  cursor: not-allowed;
}

.cur-btn-amber-sec {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--c-leg-border-hi);
  background: transparent;
  color: var(--c-leg-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.cur-btn-amber-ghost {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--c-leg-ink-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
}

.cur-btn-danger {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 0;
  background: var(--c-leg-danger);
  color: #FFFDF8;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

/* Current Settings (tall vertical radio stack — faithful to desktop_settings_en.png!) */
.cur-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 28px;
}

.cur-radio-row {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid var(--c-leg-border-hi);
  background: var(--c-leg-higher);
  color: var(--c-leg-ink);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.cur-radio-row[aria-checked="true"] {
  border-color: var(--c-leg-accent);
  background: rgba(161, 91, 15, 0.14);
}

.app-cur[data-theme="dark"] .cur-radio-row[aria-checked="true"] {
  background: rgba(231, 180, 93, 0.14);
}

.cur-radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--c-leg-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cur-radio-row[aria-checked="true"] .cur-radio-dot {
  border-color: var(--c-leg-accent);
}

.cur-radio-row[aria-checked="true"] .cur-radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-leg-accent);
}

/* Current Lobby Code */
.cur-room-code-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-leg-accent);
  text-align: center;
  margin: 6px 0;
}

/* Current Cover Overlay (Reconnecting) */
.cur-cover-screen {
  position: absolute;
  inset: 0;
  background: #000000;
  color: #F7F3EB;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.cur-spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #30343C;
  border-top-color: #E7B45D;
  animation: spin 0.9s linear infinite;
}

/* Honest "Not in Current App" comparison panel for Proposed-only routes */
.cur-not-present-wrap {
  padding: 20px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cur-not-present-card {
  background: var(--c-leg-surface);
  border: 1px dashed var(--c-leg-border);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cur-not-present-list {
  margin: 2px 0 4px;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--c-leg-muted);
}

.cur-not-present-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   PROPOSED REDESIGN (.app-pro) — "Obsidian Amber Parlor" v3 (Dark-Primary)
   Charcoal/near-black surfaces, softly illuminated amber-orange CTAs,
   sharp display hierarchy, immersive hero, compact game list & local Profile
   ========================================================================== */

.app-pro[data-theme="dark"] {
  --p-canvas: #0A0A0C;
  --p-canvas-glow: radial-gradient(ellipse 88% 34% at 50% -6%, rgba(245, 160, 48, 0.10), transparent 64%);
  --p-header-bg: rgba(10, 10, 12, 0.86);
  --p-surface: #141418;
  --p-surface-2: #1C1C22;
  --p-surface-3: #24242C;
  --p-surface-glass: rgba(18, 18, 22, 0.90);
  --p-ink: #F6F6F7;
  --p-ink-2: #A6A6AF;
  --p-ink-3: #787882;
  --p-gold: #F6B84E;
  --p-amber: #F59326;
  --p-amber-grad: linear-gradient(135deg, #FFA438 0%, #EE6D16 100%);
  --p-amber-grad-hi: linear-gradient(135deg, #FFB252 0%, #F57B26 100%);
  --p-amber-ink: #140B04;
  --p-amber-soft: rgba(246, 184, 78, 0.13);
  --p-amber-border: rgba(246, 184, 78, 0.36);
  --p-amber-glow: 0 8px 24px rgba(241, 114, 24, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --p-success: #45D993;
  --p-success-soft: rgba(69, 217, 147, 0.14);
  --p-success-border: rgba(69, 217, 147, 0.36);
  --p-danger: #FF6E80;
  --p-danger-soft: rgba(255, 110, 128, 0.14);
  --p-danger-border: rgba(255, 110, 128, 0.36);
  --p-border: rgba(255, 255, 255, 0.08);
  --p-border-strong: rgba(255, 255, 255, 0.15);
  --p-specular: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --p-shadow: 0 6px 20px rgba(0, 0, 0, 0.38);
  --p-disabled-bg: #1F1F26;
  --p-disabled-fg: #6C6C76;
}

.app-pro[data-theme="light"] {
  --p-canvas: #F5F2EC;
  --p-canvas-glow: radial-gradient(ellipse 88% 32% at 50% -6%, rgba(232, 130, 32, 0.09), transparent 62%);
  --p-header-bg: rgba(245, 242, 236, 0.90);
  --p-surface: #FFFFFF;
  --p-surface-2: #ECE7DE;
  --p-surface-3: #E1DAD0;
  --p-surface-glass: rgba(255, 255, 255, 0.94);
  --p-ink: #141417;
  --p-ink-2: #4E4D54;
  --p-ink-3: #6D6B73;
  --p-gold: #B8520A;
  --p-amber: #C95B10;
  --p-amber-grad: linear-gradient(135deg, #EB821D 0%, #C74F0C 100%);
  --p-amber-grad-hi: linear-gradient(135deg, #F38F2C 0%, #D45812 100%);
  --p-amber-ink: #FFFFFF;
  --p-amber-soft: rgba(214, 102, 18, 0.11);
  --p-amber-border: rgba(201, 85, 14, 0.34);
  --p-amber-glow: 0 6px 18px rgba(201, 80, 12, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  --p-success: #0F7A4D;
  --p-success-soft: rgba(15, 122, 77, 0.11);
  --p-success-border: rgba(15, 122, 77, 0.30);
  --p-danger: #C5223B;
  --p-danger-soft: rgba(197, 34, 59, 0.10);
  --p-danger-border: rgba(197, 34, 59, 0.32);
  --p-border: #E2DCD2;
  --p-border-strong: #CCC4B7;
  --p-specular: inset 0 1px 0 rgba(255, 255, 255, 0.90);
  --p-shadow: 0 4px 14px rgba(20, 18, 15, 0.06), 0 1px 2px rgba(20, 18, 15, 0.04);
  --p-disabled-bg: #E2DDD4;
  --p-disabled-fg: #75726C;
}

.app-pro {
  background-color: var(--p-canvas);
  background-image: var(--p-canvas-glow);
  color: var(--p-ink);
}

.app-pro button:focus-visible,
.app-pro input:focus-visible {
  outline: 2px solid var(--p-gold);
  outline-offset: 2px;
}

.pro-pad {
  padding: 12px 16px 24px;
}

.pro-pad-dock {
  padding: 12px 16px 88px;
}

/* Typography Hierarchy */
.pro-h1 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--p-ink);
}

.pro-h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--p-ink);
}

.pro-lead {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--p-ink-2);
}

.pro-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--p-gold);
}

.app-pro[dir="rtl"] .pro-h1,
.app-pro[dir="rtl"] .pro-h2,
.app-pro[dir="rtl"] .pro-greet-title,
.app-pro[dir="rtl"] .pro-stacked-top,
.app-pro[dir="rtl"] .pro-stacked-accent,
.app-pro[dir="rtl"] .pro-hero-title,
.app-pro[dir="rtl"] .pro-row-title {
  font-family: 'Noto Sans Arabic UI', sans-serif;
  letter-spacing: 0;
}

.app-pro[dir="rtl"] .pro-eyebrow,
.app-pro[dir="rtl"] .pro-field-counter,
.app-pro[dir="rtl"] .pro-step-pill:not(.mono-ltr) {
  font-family: 'Noto Sans Arabic UI', 'Inter', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

/* Greeting Header (Reference Left/Right Phone Inspiration) */
.pro-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px 8px;
  background: var(--p-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
  position: relative;
  z-index: 4;
}

.pro-greet-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pro-greet-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-greet-title .pro-accent-word {
  color: var(--p-gold);
}

.pro-greet-sub {
  font-size: 11.5px;
  color: var(--p-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pro-circle-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface);
  color: var(--p-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.pro-circle-btn:hover {
  background: var(--p-surface-2);
  border-color: var(--p-amber-border);
}

.pro-avatar-btn {
  appearance: none;
  padding: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--p-border-strong);
  background: var(--p-surface-2);
  color: var(--p-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.pro-avatar-btn-saved {
  border-color: var(--p-gold);
  box-shadow: 0 0 0 3px rgba(246, 184, 78, 0.16);
}

.pro-avatar-btn:hover {
  transform: scale(1.04);
}

/* Simple Geometric Emblem Avatars (Local SVG + Restrained Tones) */
.pro-emblem-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  color: #F6F4EF;
}

.pro-emblem-avatar svg {
  width: 56%;
  height: 56%;
  display: block;
}

.av-sz-sm { width: 32px; height: 32px; }
.av-sz-md { width: 38px; height: 38px; }
.av-sz-lg { width: 54px; height: 54px; }

.av-tone-amber    { background: linear-gradient(135deg, #3D2612, #22140A); color: #F6B84E; }
.av-tone-slate    { background: linear-gradient(135deg, #1A2438, #101624); color: #C9D8F2; }
.av-tone-plum     { background: linear-gradient(135deg, #311F3A, #1B1121); color: #E4C89B; }
.av-tone-pine     { background: linear-gradient(135deg, #132C27, #0B1916); color: #8DE2C5; }
.av-tone-wine     { background: linear-gradient(135deg, #381B25, #200F15); color: #FFA87A; }
.av-tone-bronze   { background: linear-gradient(135deg, #35281A, #1C150D); color: #E8C589; }
.av-tone-cobalt   { background: linear-gradient(135deg, #16283B, #0D1824); color: #9CC7F5; }
.av-tone-obsidian { background: linear-gradient(135deg, #282830, #15151A); color: #F2E9DA; }

/* Immersive Featured-Game Hero (Modeled on Reference Middle Phone) */
.pro-hero-stage {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0D0D11;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  margin-bottom: 16px;
  color: #F6F6F7;
}

.pro-hero-visual {
  position: relative;
  height: 196px;
  overflow: hidden;
  background: #0D0D11;
}

.pro-hero-visual-img {
  width: 100%;
  height: 86%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

.pro-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 13, 0.28) 0%,
    rgba(10, 10, 13, 0.06) 36%,
    rgba(13, 13, 17, 0.86) 76%,
    #0D0D11 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 14px 10px;
}

.pro-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pro-stacked-head {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.pro-stacked-top {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-ink);
}

.pro-stacked-accent {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--p-gold);
}

.pro-hero-stage .pro-stacked-top { color: #F6F6F7; font-size: 15px; }
.pro-hero-stage .pro-stacked-accent { color: #F6B84E; font-size: 15px; }

.pro-hero-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #E8E6E0;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.pro-hero-copy {
  text-align: center;
  padding: 0 4px;
}

.pro-hero-title {
  margin: 0;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.pro-hero-tag {
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #B9B8C0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pro-hero-deck {
  padding: 6px 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, #0D0D11 0%, #111116 100%);
}

.pro-hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.pro-hero-thumb {
  appearance: none;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #16161C;
  cursor: pointer;
  opacity: 0.72;
  transition: transform 150ms ease, border-color 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.pro-hero-thumb:hover {
  opacity: 0.94;
}

.pro-hero-thumb[aria-pressed="true"] {
  opacity: 1;
  border-color: #F6B84E;
  box-shadow: 0 0 14px rgba(246, 184, 78, 0.36);
  transform: translateY(-2px);
}

.pro-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pro-hero-ind {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pro-hero-ind-seg {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  transition: width 180ms ease, background 180ms ease;
}

.pro-hero-ind-seg-active {
  width: 24px;
  background: linear-gradient(90deg, #FFA438, #EE6D16);
}

.pro-hero-transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 2px;
}

.pro-transport-btn {
  appearance: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #E4E4EA;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.pro-transport-btn:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(246, 184, 78, 0.40);
}

.pro-play-orb {
  appearance: none;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, #FFA438 0%, #EE6D16 100%);
  color: #140B04;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(241, 114, 24, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transition: transform 140ms ease, filter 140ms ease;
}

.pro-play-orb:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.pro-play-orb svg {
  width: 15px;
  height: 15px;
  display: block;
}

/* Compact Thumb-Friendly Game Library List (Modeled on Reference Right Phone) */
.pro-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 10px;
}

.pro-pill-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  color: var(--p-ink-2);
  white-space: nowrap;
}

.pro-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.pro-filter-chip {
  appearance: none;
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  color: var(--p-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  min-height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.pro-filter-chip[aria-pressed="true"] {
  background: var(--p-amber-soft);
  border-color: var(--p-amber-border);
  color: var(--p-gold);
}

.pro-chip-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  opacity: 0.78;
}

.pro-game-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

.wb-body[data-vp="tablet"] .pro-game-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pro-game-row {
  appearance: none;
  width: 100%;
  text-align: start;
  font-family: inherit;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 17px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--p-ink);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.pro-game-row:hover {
  border-color: var(--p-amber-border);
  transform: translateY(-1px);
}

.pro-row-thumb {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pro-row-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-row-title {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-row-meta {
  font-size: 11.5px;
  color: var(--p-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-row-status {
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--p-ink-2);
}

.pro-status-dot-amber {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E2B;
  flex-shrink: 0;
}

.pro-status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-success);
  flex-shrink: 0;
}

.pro-row-arrow {
  color: var(--p-ink-3);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Warm Atmospheric Local LAN Quick-Join Banner (Authentic Parlor utility, zero fake rewards) */
.pro-lan-banner {
  margin-top: 14px;
  width: 100%;
  appearance: none;
  text-align: start;
  font-family: inherit;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(246, 184, 78, 0.28);
  background:
    radial-gradient(circle at 92% 50%, rgba(245, 146, 38, 0.24), transparent 58%),
    linear-gradient(135deg, #1B1714 0%, #141316 100%);
  color: #F6F6F7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.pro-lan-banner:hover {
  border-color: rgba(246, 184, 78, 0.52);
  transform: translateY(-1px);
}

.pro-lan-banner-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F6B84E;
}

.pro-lan-banner-title {
  display: block;
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: #FFFFFF;
  margin-top: 2px;
}

.pro-lan-banner-sub {
  display: block;
  font-size: 11.5px;
  color: #B4B0A8;
  margin-top: 2px;
}

.pro-lan-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(246, 184, 78, 0.16);
  border: 1px solid rgba(246, 184, 78, 0.34);
  color: #F6B84E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating Pill Bottom Navigation Dock (Reference Bottom Bar Aesthetic) */
.pro-bottom-dock {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 12;
  pointer-events: none;
}

.pro-bottom-bar {
  pointer-events: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 5px 6px;
  border-radius: 24px;
  background: var(--p-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--p-border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.pro-tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--p-ink-3);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  min-height: 48px;
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  position: relative;
  transition: color 150ms ease, background 150ms ease;
}

.pro-tab-btn:hover {
  color: var(--p-ink);
}

.pro-tab-btn[aria-selected="true"] {
  color: var(--p-gold);
  background: var(--p-amber-soft);
}

.pro-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 18px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--p-amber-grad);
}

.pro-tab-badge-dot {
  position: absolute;
  top: 7px;
  inset-inline-end: calc(50% - 15px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--p-gold);
}

/* ==========================================================================
   PROPOSED PROFILE SCREEN (Modeled on Reference Left Phone — Honest Local Data)
   ========================================================================== */

.pro-stat-hero {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.pro-stat-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pro-stat-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
}

.pro-playtime-val {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--p-ink);
  font-variant-numeric: tabular-nums;
}

.pro-playtime-sub {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--p-ink-3);
}

.pro-stat-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 45%, rgba(246, 184, 78, 0.22), rgba(246, 184, 78, 0.04));
  border: 1px solid rgba(246, 184, 78, 0.34);
  color: var(--p-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 24px rgba(245, 146, 38, 0.16);
}

.pro-stat-emblem svg {
  width: 30px;
  height: 30px;
  display: block;
}

.pro-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--p-border);
}

.pro-stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pro-stat-num {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--p-ink);
  font-variant-numeric: tabular-nums;
}

.pro-stat-lbl {
  font-size: 10.5px;
  color: var(--p-ink-3);
  line-height: 1.25;
}

/* Profile Identity & Local Editor */
.pro-profile-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.pro-profile-summary-copy {
  flex: 1;
  min-width: 0;
}

.pro-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.pro-avatar-choice {
  appearance: none;
  border: 1.5px solid var(--p-border);
  background: var(--p-surface-2);
  border-radius: 14px;
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--p-ink-2);
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  transition: border-color 140ms ease, background 140ms ease;
}

.pro-avatar-choice[aria-pressed="true"] {
  border-color: var(--p-gold);
  background: var(--p-amber-soft);
  color: var(--p-gold);
}

.pro-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.pro-editor-actions > * {
  flex: 1;
}

/* Per-Game Breakdown Bars (Reference "Game Genres" Horizontal Bars via CSP-safe <progress>) */
.pro-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.pro-breakdown-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.pro-breakdown-thumb {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-breakdown-mid {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pro-breakdown-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.pro-breakdown-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-breakdown-wlt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--p-ink-3);
  white-space: nowrap;
}

.pro-bar-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--p-surface-2);
  display: block;
}

.pro-bar-progress::-webkit-progress-bar {
  background: var(--p-surface-2);
  border-radius: 999px;
}

.pro-bar-progress::-webkit-progress-value {
  background: var(--p-amber-grad);
  border-radius: 999px;
}

.pro-bar-progress::-moz-progress-bar {
  background: var(--p-amber-grad);
  border-radius: 999px;
}

.pro-breakdown-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--p-ink-2);
  min-width: 34px;
  text-align: end;
}

/* Recent Game History */
.pro-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.pro-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 13px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
}

.pro-history-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-history-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-history-meta {
  font-size: 11px;
  color: var(--p-ink-3);
}

.pro-outcome-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.out-win {
  background: var(--p-success-soft);
  border: 1px solid var(--p-success-border);
  color: var(--p-success);
}

.out-loss {
  background: var(--p-danger-soft);
  border: 1px solid var(--p-danger-border);
  color: var(--p-danger);
}

.out-tie {
  background: var(--p-amber-soft);
  border: 1px solid var(--p-amber-border);
  color: var(--p-gold);
}

.out-unscored {
  background: var(--p-surface-3);
  border: 1px solid var(--p-border-strong);
  color: var(--p-ink-2);
}

/* Honest Empty State & Explicit Demo Fixture Card */
.pro-empty-honest {
  background: var(--p-surface);
  border: 1px dashed var(--p-border-strong);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.pro-fixture-card {
  background: var(--p-surface);
  border: 1px solid var(--p-amber-border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}

.pro-fixture-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.pro-fx-game-pill {
  appearance: none;
  border: 1px solid var(--p-border);
  background: var(--p-surface-2);
  color: var(--p-ink-2);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  cursor: pointer;
}

.pro-fx-game-pill[aria-pressed="true"] {
  background: var(--p-amber-soft);
  border-color: var(--p-amber-border);
  color: var(--p-gold);
}

.pro-fixture-btns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.pro-demo-note {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--p-ink-3);
}

/* Active Saved-Seat Prefill Chip (Host / Join / Mode Picker) */
.pro-seat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: var(--p-surface);
  border: 1px solid var(--p-amber-border);
  margin-bottom: 12px;
}

.pro-seat-chip-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pro-seat-chip-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pro-seat-chip-kicker {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--p-gold);
}

.pro-seat-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pro-link-btn {
  appearance: none;
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface-2);
  color: var(--p-ink);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 10px;
  min-height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.pro-link-btn:hover {
  border-color: var(--p-amber-border);
  color: var(--p-gold);
}

/* ==========================================================================
   Shared Flow Header, Cards, Inputs, Mode Tiles, Lobby & Settings (v3 Obsidian)
   ========================================================================== */

.pro-flow-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--p-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--p-border);
  flex-shrink: 0;
}

.pro-back-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface);
  color: var(--p-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pro-back-btn:hover {
  border-color: var(--p-amber-border);
}

.pro-flow-title-wrap {
  flex: 1;
  min-width: 0;
}

.pro-step-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  color: var(--p-gold);
  white-space: nowrap;
}

.pro-card {
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 18px;
  padding: 15px;
  margin-bottom: 12px;
}

.pro-card-accent {
  border-color: var(--p-amber-border);
}

.pro-card-amber {
  border-color: var(--p-amber-border);
  background: linear-gradient(180deg, rgba(246, 184, 78, 0.07) 0%, var(--p-surface) 100%);
}

/* Mode Picker Hero & Tiles */
.pro-game-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  border-radius: 20px;
  background: var(--p-surface);
  border: 1px solid var(--game-border-tint, var(--p-border));
  box-shadow: var(--p-specular), var(--p-shadow);
  margin-bottom: 14px;
}

.pro-hero-art-sq {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  flex-shrink: 0;
}

.pro-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.pro-meta-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  color: var(--p-ink-2);
}

.pro-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-ink-3);
  margin: 14px 2px 8px;
}

.pro-mode-tile {
  appearance: none;
  width: 100%;
  text-align: start;
  font-family: inherit;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 17px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 9px;
  cursor: pointer;
  color: var(--p-ink);
  transition: border-color 140ms ease, transform 140ms ease;
}

.pro-mode-tile:hover {
  border-color: var(--p-amber-border);
  transform: translateY(-1px);
}

.pro-mode-tile-primary {
  border-color: var(--p-amber-border);
  background: linear-gradient(135deg, rgba(246, 166, 49, 0.11) 0%, var(--p-surface) 64%);
}

.pro-mode-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  color: var(--p-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-mode-tile-primary .pro-mode-icon {
  background: var(--p-amber-grad);
  border-color: transparent;
  color: var(--p-amber-ink);
}

.pro-mode-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-mode-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--p-ink);
}

.pro-mode-desc {
  font-size: 12px;
  color: var(--p-ink-2);
  line-height: 1.35;
}

.pro-chevron {
  color: var(--p-ink-3);
  flex-shrink: 0;
  display: inline-flex;
}

.pro-info-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  font-size: 12px;
  color: var(--p-ink-2);
  margin-bottom: 10px;
}

.pro-info-strip svg {
  color: var(--p-gold);
  flex-shrink: 0;
}

.pro-steps-mini {
  font-size: 11.5px;
  color: var(--p-ink-3);
  text-align: center;
  margin-top: 6px;
}

/* Status Pills */
.pro-privacy-pill,
.pro-warn-pill,
.pro-danger-pill,
.pro-mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.pro-privacy-pill {
  background: var(--p-success-soft);
  border: 1px solid var(--p-success-border);
  color: var(--p-success);
  margin-top: 10px;
}

.pro-warn-pill {
  background: var(--p-amber-soft);
  border: 1px solid var(--p-amber-border);
  color: var(--p-gold);
}

.pro-danger-pill {
  background: var(--p-danger-soft);
  border: 1px solid var(--p-danger-border);
  color: var(--p-danger);
}

.pro-mini-tag {
  font-size: 10.5px;
  padding: 3px 8px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  color: var(--p-ink-2);
}

.pro-mini-tag-amber {
  background: var(--p-amber-soft);
  border-color: var(--p-amber-border);
  color: var(--p-gold);
}

/* Buttons & Sticky Action Bar */
.pro-sticky-bar {
  padding: 12px 16px 14px;
  background: var(--p-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--p-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.pro-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  transition: transform 130ms ease, filter 130ms ease, background 130ms ease, border-color 130ms ease;
}

.pro-btn-sm {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 12.5px;
  border-radius: 11px;
}

.pro-btn-primary {
  background: var(--p-amber-grad);
  color: var(--p-amber-ink);
  box-shadow: var(--p-amber-glow);
}

.pro-btn-primary:hover:not(:disabled) {
  background: var(--p-amber-grad-hi);
  transform: translateY(-1px);
}

.pro-btn-primary:disabled {
  background: var(--p-disabled-bg);
  color: var(--p-disabled-fg);
  box-shadow: none;
  cursor: not-allowed;
}

.pro-btn-secondary {
  background: var(--p-surface-2);
  border: 1px solid var(--p-border-strong);
  color: var(--p-ink);
}

.pro-btn-secondary:hover {
  border-color: var(--p-amber-border);
}

.pro-btn-danger {
  background: #D92B45;
  color: #FFFFFF;
}

.pro-btn-danger-outline {
  background: var(--p-danger-soft);
  border: 1px solid var(--p-danger-border);
  color: var(--p-danger);
}

/* Inputs, Name Preview & Checkbox */
.pro-field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--p-ink-2);
}

.pro-field-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--p-ink-3);
}

.pro-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 13px;
  border: 1.5px solid var(--p-border-strong);
  background: var(--p-surface-2);
  color: var(--p-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}

.pro-input:focus {
  border-color: var(--p-gold);
}

.pro-seat-preview {
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  gap: 11px;
}

.pro-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p-amber-grad);
  color: var(--p-amber-ink);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-avatar-soft {
  background: var(--p-surface-2);
  border: 1px solid var(--p-border-strong);
  color: var(--p-gold);
}

.pro-save-opt {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
}

.pro-save-opt-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pro-save-opt-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--p-ink);
}

.pro-save-opt-sub {
  font-size: 11px;
  color: var(--p-ink-3);
}

/* Room Code 6-Slot Tactile Display */
.pro-code-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  direction: ltr;
  unicode-bidi: isolate;
  margin: 14px 0 6px;
}

.pro-code-slot {
  width: 40px;
  height: 48px;
  border-radius: 12px;
  background: var(--p-surface-2);
  border: 1.5px solid var(--p-border-strong);
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--p-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pro-code-slot-filled {
  border-color: var(--p-amber-border);
  background: var(--p-amber-soft);
  color: var(--p-gold);
}

.pro-code-slot-next {
  border-color: var(--p-gold);
}

.pro-code-dash {
  color: var(--p-ink-3);
  font-weight: 800;
  font-size: 18px;
}

/* Waiting Checklist */
.pro-wait-steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.pro-wait-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--p-ink-3);
}

.pro-wait-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border-strong);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pro-wait-step-done {
  color: var(--p-ink);
}

.pro-wait-step-done .pro-wait-bullet {
  background: var(--p-success-soft);
  border-color: var(--p-success-border);
  color: var(--p-success);
}

.pro-wait-step-active {
  color: var(--p-gold);
  font-weight: 600;
}

.pro-wait-step-active .pro-wait-bullet {
  background: var(--p-amber-soft);
  border-color: var(--p-amber-border);
  color: var(--p-gold);
}

/* Host Lobby Pass Card & Roster */
.pro-pass-card {
  background: var(--p-surface);
  border: 1px solid var(--p-amber-border);
  box-shadow: var(--p-specular), var(--p-shadow);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
}

.pro-pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pro-pass-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pro-lobby-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pro-pass-titles {
  min-width: 0;
}

.pro-code-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pro-code-big {
  font-family: 'JetBrains Mono', monospace;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--p-gold);
  direction: ltr;
  unicode-bidi: isolate;
}

.pro-copy-btn {
  appearance: none;
  border: 1px solid var(--p-amber-border);
  background: var(--p-amber-soft);
  color: var(--p-gold);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.pro-req-card {
  background: var(--p-surface);
  border: 1px solid var(--p-amber-border);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 9px;
}

.pro-req-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.pro-req-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pro-seat-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: var(--p-surface-2);
  margin: 10px 0 12px;
  overflow: hidden;
  display: block;
}

.pro-seat-progress::-webkit-progress-bar {
  background: var(--p-surface-2);
  border-radius: 999px;
}

.pro-seat-progress::-webkit-progress-value {
  background: var(--p-amber-grad);
  border-radius: 999px;
}

.pro-seat-progress::-moz-progress-bar {
  background: var(--p-amber-grad);
  border-radius: 999px;
}

.pro-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--p-border);
  font-size: 13.5px;
}

.pro-roster-row:first-of-type {
  border-top: 0;
}

.pro-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-success);
  flex-shrink: 0;
}

/* Recovery Drawer & Privacy Cover */
.pro-rec-drawer {
  background: var(--p-surface);
  border: 1px solid var(--p-amber-border);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 14px;
}

.pro-rec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.pro-rec-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--p-gold);
}

.pro-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--p-gold);
}

.pro-rec-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 13px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  margin-top: 7px;
}

.pro-rec-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.pro-rec-info {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: start;
  font-family: inherit;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  color: var(--p-ink);
  padding: 0;
}

.pro-rec-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--p-ink);
}

.pro-rec-badge-row {
  display: flex;
  gap: 6px;
}

.pro-icon-trash {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--p-danger-border);
  background: var(--p-danger-soft);
  color: var(--p-danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.pro-cover-screen {
  position: absolute;
  inset: 0;
  background: #050507;
  color: #F6F6F7;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.pro-cover-card {
  width: 100%;
  background: #121216;
  border: 1px solid rgba(246, 184, 78, 0.28);
  border-radius: 22px;
  padding: 22px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.pro-pulse-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(246, 184, 78, 0.14);
  border: 1.5px solid rgba(246, 184, 78, 0.44);
  color: #F6B84E;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2.2s ease-in-out infinite;
}

/* Settings Segmented Controls & Switch (Switch also reused by Current Settings!) */
.pro-seg-control {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 13px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  margin-top: 10px;
}

.pro-seg-opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--p-ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 36px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.pro-seg-opt[aria-checked="true"] {
  background: var(--p-amber-grad);
  color: var(--p-amber-ink);
  font-weight: 700;
}

.pro-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.pro-switch {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(130, 130, 145, 0.38);
  background: rgba(130, 130, 145, 0.25);
  padding: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.pro-switch[aria-checked="true"] {
  background: linear-gradient(135deg, #FFA438 0%, #EE6D16 100%);
  border-color: transparent;
}

.pro-switch-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
  transform: translateX(0);
  transition: transform 160ms ease;
}

.pro-switch[aria-checked="true"] .pro-switch-knob {
  transform: translateX(20px);
}

.app-root[dir="rtl"] .pro-switch[aria-checked="true"] .pro-switch-knob {
  transform: translateX(-20px);
}

/* Simulated Keyboard */
.sim-keyboard {
  background: #1C1D22;
  border-top: 1px solid #30323B;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.sim-kb-row {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.sim-kb-key {
  min-width: 26px;
  height: 32px;
  padding: 0 6px;
  border-radius: 6px;
  background: #333540;
  color: #F4F4F6;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  max-width: 34px;
}

.sim-kb-space {
  max-width: 210px;
  font-size: 11px;
  color: #B4B6C2;
}

/* Shared Modals & Toast */
.app-modal-scrim {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(5, 5, 8, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.app-modal-box {
  width: 100%;
  max-width: 332px;
  border-radius: 20px;
  padding: 18px;
  background: var(--p-surface, var(--c-leg-surface, #17171C));
  border: 1px solid var(--p-border-strong, var(--c-leg-border, #303038));
  color: var(--p-ink, var(--c-leg-ink, #F6F6F7));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.app-toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 76px;
  z-index: 35;
  padding: 10px 14px;
  border-radius: 13px;
  background: #1C1C22;
  border: 1px solid rgba(246, 184, 78, 0.40);
  color: #F6F6F7;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.46);
}

/* Shared Utility & Preserved Current Helpers */
.cur-empty-box,
.pro-empty-box {
  text-align: center;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cur-banner-err,
.pro-banner-err {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.cur-banner-err {
  background: rgba(190, 42, 42, 0.14);
  border: 1px solid rgba(190, 42, 42, 0.42);
  color: inherit;
}

.pro-banner-err {
  background: var(--p-danger-soft);
  border: 1px solid var(--p-danger-border);
  color: var(--p-danger);
}

.pro-loading-shimmer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--p-surface-2);
  border: 1px solid var(--p-border);
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--p-ink-2);
}

.pro-mini-spin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--p-border-strong);
  border-top-color: var(--p-gold);
  animation: spin 0.85s linear infinite;
  flex-shrink: 0;
}

.cur-lobby-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 16px 28px;
}

.cur-roster-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}

.pro-setup-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.pro-setup-chip {
  appearance: none;
  border: 1px solid var(--p-border-strong);
  background: var(--p-surface-2);
  color: var(--p-ink-2);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 10px;
  cursor: pointer;
}

.pro-setup-chip[aria-pressed="true"] {
  background: var(--p-amber-grad);
  border-color: transparent;
  color: var(--p-amber-ink);
  font-weight: 700;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.82; }
}

/* ==========================================================================
   Responsive Breakpoints (Mobile Before/After toggle & Narrow Viewports)
   ========================================================================== */

@media (max-width: 959px) {
  .wb-compare-group {
    display: none;
  }

  .wb-mobile-toggle {
    display: flex;
  }

  .wb-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .wb-body[data-compare="side"] .wb-col-current {
    display: none;
  }

  .wb-rationale {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .wb-header-row {
    padding: 10px 12px;
  }

  .wb-screen-rail,
  .wb-fixture-bar {
    padding-inline: 12px;
  }

  .wb-main {
    padding: 12px 10px 32px;
  }

  .device-shell {
    padding: 6px;
    border-radius: 26px;
  }

  .device-statusbar {
    border-radius: 20px 20px 0 0;
  }

  .device-viewport {
    border-radius: 0 0 20px 20px;
    height: min(var(--vp-h), 72vh);
  }
}

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