/* CR0247 Empire Mark player/app rebuild: visual-only layer for owned game pages. */
:root,
body[data-theme="empire"] {
  --player-max: 1180px;
  --player-pad: clamp(18px, 3vw, 34px);
  --panel: rgba(255, 251, 241, 0.92);
  --panel-strong: #FFFBF1;
  --panel-dark: #07182d;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg);
}

body[data-theme="empire"] {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 150, 53, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 4%, rgba(168, 65, 47, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(255,255,255,0.32) 0 1px, transparent 1px 18px),
    var(--paper-grain),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body[data-theme="empire"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 37, 64, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(10, 37, 64, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  z-index: -1;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.018em;
  color: var(--ink);
}

a { color: inherit; }

.mobile-header,
.mobile-nav,
header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  padding: 12px var(--player-pad);
  border-bottom: 1px solid rgba(226, 213, 180, 0.78);
  background: rgba(248, 241, 223, 0.88);
  backdrop-filter: blur(18px);
}

.logo,
.mobile-header .logo,
.mobile-nav .logo,
header .logo,
.sidebar h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo::before,
.mobile-header .logo::before,
.mobile-nav .logo::before,
header .logo::before,
.sidebar h2::before {
  content: "JE";
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: var(--accent);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent),
    var(--primary);
  border: 1px solid rgba(212, 150, 53, 0.72);
  box-shadow: inset 0 0 0 1px rgba(251, 243, 222, 0.12), var(--shadow-sm);
  font: 700 13px/1 var(--font-display);
}

.sidebar {
  background:
    radial-gradient(circle at 15% 0%, rgba(212, 150, 53, 0.18), transparent 18rem),
    linear-gradient(180deg, var(--primary) 0%, var(--primary-deep) 100%) !important;
  color: var(--primary-fg) !important;
  border-right: 1px solid rgba(212, 150, 53, 0.28);
  box-shadow: 16px 0 42px rgba(3, 19, 42, 0.12);
}

.sidebar h2,
.sidebar a,
.sidebar .nav-link {
  color: var(--primary-fg) !important;
}

.sidebar a,
.sidebar .nav-link {
  border-radius: 14px;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

.sidebar a:hover,
.sidebar .nav-link:hover,
.sidebar a.active,
.sidebar .nav-link.active {
  background: rgba(255, 251, 241, 0.12) !important;
  transform: translateX(2px);
}

.content,
.scoreboard-shell,
.fame-shell {
  width: min(var(--player-max), calc(100% - (var(--player-pad) * 2)));
  margin-inline: auto;
  padding: clamp(22px, 4vw, 44px) 0 90px !important;
}

.content {
  margin-left: auto !important;
}

.header,
.scoreboard-hero,
.fame-shell > section:first-child {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 36px) !important;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 85% 20%, rgba(212, 150, 53, 0.22), transparent 18rem),
    linear-gradient(135deg, rgba(255, 251, 241, 0.96), rgba(246, 237, 214, 0.86));
  box-shadow: var(--shadow-lg);
}

.header::after,
.scoreboard-hero::after,
.fame-shell > section:first-child::after {
  content: "";
  position: absolute;
  inset: auto 28px 22px 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.78;
}

.header h1,
.scoreboard-hero h1,
.fame-shell h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 58px) !important;
  line-height: 1.02;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.stat-card,
.reward-ledger,
.team-list,
.settings-card,
.booking-card,
.confirm-card,
.card,
.honours-card,
.ranking-table,
.board-note,
.memory-card,
.details-box {
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  background: var(--panel) !important;
  box-shadow: var(--shadow-md) !important;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px !important;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.stat-card .label,
.score-label,
label {
  color: var(--ink-soft) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}

.stat-card .value,
.podium-worth,
.champion-score {
  color: var(--primary) !important;
  font-family: var(--font-display);
  font-weight: 700;
}

.team-card,
.team-row,
.honour-row,
.ranking-row,
.memory-card {
  border-color: var(--line-soft) !important;
  background: rgba(255, 251, 241, 0.74) !important;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.team-card:hover,
.team-row:hover,
.honour-row:hover,
.ranking-row:hover,
.memory-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-md);
}

button,
.btn-primary,
.btn-manage,
.btn-buy,
.btn-back,
.btn-secondary,
.controls button {
  border-radius: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

button:hover,
.btn-primary:hover,
.btn-manage:hover,
.btn-buy:hover,
.btn-back:hover,
.btn-secondary:hover,
.controls button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-manage,
.btn-buy,
.controls button.active,
button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep)) !important;
  color: var(--primary-fg) !important;
  border: 1px solid rgba(212, 150, 53, 0.4) !important;
  box-shadow: 0 12px 24px rgba(3, 19, 42, 0.15);
}

.btn-secondary,
.btn-back,
.controls button {
  background: var(--surface-2) !important;
  color: var(--primary) !important;
  border: 1px solid var(--line) !important;
}

input,
select,
textarea {
  min-height: 46px;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  background: rgba(255, 251, 241, 0.88) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(212, 150, 53, 0.18) !important;
}

.tabs {
  background: var(--surface-3) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  padding: 4px;
}

.tab.active,
.tabs button.active {
  background: var(--panel-strong) !important;
  color: var(--primary) !important;
  box-shadow: var(--shadow-sm);
}

.auth-card,
.reset-card {
  width: min(960px, calc(100% - 32px)) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-xl) !important;
  background: var(--panel-strong) !important;
  box-shadow: var(--shadow-lg) !important;
}

.auth-card h1,
.reset-card h1 {
  color: var(--primary);
}

.auth-card::before,
.reset-card::before,
.card::before,
.confirm-card::before {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.scoreboard-hero,
.fame-shell > section:first-child {
  color: var(--primary-fg);
  background:
    radial-gradient(circle at 78% 20%, rgba(212, 150, 53, 0.24), transparent 19rem),
    linear-gradient(135deg, var(--primary), var(--primary-deep)) !important;
  border-color: rgba(212, 150, 53, 0.36) !important;
}

.scoreboard-hero h1,
.scoreboard-hero p,
.fame-shell > section:first-child h1,
.fame-shell > section:first-child p {
  color: var(--primary-fg) !important;
}

.podium-card,
.champion-card,
.record-card {
  border-radius: var(--r-lg) !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}

.bottom-nav {
  border-top: 1px solid rgba(226, 213, 180, 0.82) !important;
  background: rgba(255, 251, 241, 0.92) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 32px rgba(3, 19, 42, 0.08);
}

.bottom-nav a,
.bottom-nav button {
  color: var(--ink-mute) !important;
}

.bottom-nav .active,
.bottom-nav a.active {
  color: var(--primary) !important;
}

body.player-play-app {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 150, 53, 0.24), transparent 22rem),
    linear-gradient(180deg, #102944 0, var(--bg) 34%) !important;
}

.player-play-app #status-bar {
  height: calc(24px + env(safe-area-inset-top));
  background: rgba(3, 19, 42, 0.94) !important;
  color: rgba(251, 243, 222, 0.76) !important;
  border-bottom: 1px solid rgba(212, 150, 53, 0.22) !important;
}

.player-play-app .ui-overlay {
  left: max(10px, env(safe-area-inset-left));
  right: max(10px, env(safe-area-inset-right));
}

.player-play-app .hud-top {
  display: grid !important;
  grid-template-columns: auto repeat(5, minmax(0, auto));
  align-items: center;
  justify-content: center !important;
  gap: 7px !important;
  max-width: 720px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(212, 150, 53, 0.24);
  border-radius: 999px;
  background: rgba(7, 24, 45, 0.82);
  box-shadow: 0 16px 38px rgba(3, 19, 42, 0.28);
  backdrop-filter: blur(16px);
}

.player-play-app .hud-card {
  min-height: 34px;
  margin: 0 !important;
  border: 1px solid rgba(212, 150, 53, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(255, 251, 241, 0.96) !important;
  color: var(--primary) !important;
  box-shadow: none !important;
  font-family: var(--font-body);
  font-weight: 900;
}

.player-play-app .hud-menu-trigger {
  color: var(--primary-fg) !important;
  background: rgba(255, 251, 241, 0.1) !important;
}

.player-play-app .hud-live-missions {
  background: var(--accent) !important;
  color: var(--accent-fg) !important;
}

.player-play-app .hud-menu-panel {
  right: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  background: var(--surface) !important;
  box-shadow: var(--shadow-lg) !important;
}

@media (min-width: 900px) {
  .sidebar + .content,
  body:has(.sidebar) .content {
    width: min(calc(100% - 320px), 1120px);
    margin-left: 280px !important;
    margin-right: auto !important;
  }
}

@media (max-width: 760px) {
  .content,
  .scoreboard-shell,
  .fame-shell {
    width: calc(100% - 24px);
    padding-top: 18px !important;
  }

  .header,
  .scoreboard-hero,
  .fame-shell > section:first-child {
    padding: 22px !important;
  }

  .auth-card,
  .reset-card {
    background: var(--panel-strong) !important;
  }

  .player-play-app .hud-top {
    grid-template-columns: repeat(6, minmax(0, auto));
    gap: 4px !important;
    padding: 5px;
  }

  .player-play-app .hud-card {
    min-height: 30px;
    padding: 5px 7px !important;
    font-size: 0.58rem !important;
  }
}

/* CR0247 prototype parity layer for player pages. Source markup keeps existing
   JS render targets; this layer supplies the missing Empire Mark structure. */

body[data-theme="empire"].empire-app-page,
body[data-theme="empire"].player-dashboard-page,
body[data-theme="empire"].player-teams-page {
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 150, 53, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(168, 65, 47, 0.12), transparent 24rem),
    var(--paper-grain),
    var(--bg) !important;
}

.player-dashboard-page .content,
.player-teams-page .content {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto !important;
}

.player-page-hero,
.player-dashboard-page .header,
.player-teams-page .header {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 42px) !important;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 16%, rgba(212, 150, 53, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(255, 251, 241, 0.98), rgba(246, 237, 214, 0.88));
  box-shadow: var(--shadow-lg);
}

.player-page-hero::after,
.player-dashboard-page .header::after,
.player-teams-page .header::after {
  content: "";
  position: absolute;
  inset: auto 28px 20px 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.85;
}

.player-page-hero h1,
.player-dashboard-page .header h1,
.player-teams-page .header h1 {
  margin: 0;
  color: var(--ink) !important;
  font-size: clamp(34px, 5.2vw, 62px) !important;
  line-height: 1.02;
}

.player-page-kicker,
.player-section-label {
  margin: 0;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.player-page-copy {
  max-width: 760px;
  margin: 0;
  color: var(--ink-mute) !important;
}

.player-hero-actions,
.player-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.player-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-mute);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.player-pill.accent {
  border-color: rgba(212, 150, 53, 0.42);
  background: var(--accent-tint);
  color: var(--accent-fg);
}

.player-stat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.player-stat {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 251, 241, 0.88);
  box-shadow: var(--shadow-sm);
}

.player-stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.player-stat span {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.player-stat strong {
  display: block;
  margin-top: 12px;
  color: var(--primary);
  font: 700 clamp(26px, 4vw, 36px)/1 var(--font-display);
}

.player-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.player-side-stack {
  display: grid;
  gap: 18px;
}

.player-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 251, 241, 0.92);
  box-shadow: var(--shadow-sm);
}

.player-card-pad {
  padding: clamp(20px, 3vw, 28px);
}

.player-card h2,
.player-card h3 {
  margin-top: 0;
  color: var(--ink) !important;
}

.player-team-board {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: start;
}

.player-filter-row input,
.player-filter-row select {
  min-height: 44px;
  flex: 1 1 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.player-dashboard-page .team-list,
.player-teams-page .team-grid {
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: rgba(255, 251, 241, 0.92) !important;
  box-shadow: var(--shadow-sm) !important;
}

.player-dashboard-page .team-item,
.player-teams-page .team-card {
  margin-bottom: 12px;
  border: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 18px !important;
  background: rgba(255, 251, 241, 0.82) !important;
  box-shadow: var(--shadow-sm) !important;
}

.player-dashboard-page .team-item {
  padding: 18px !important;
}

.player-teams-page .team-card {
  padding: 22px !important;
}

.player-dashboard-page .btn-action,
.player-teams-page .btn-manage {
  background: var(--primary) !important;
  color: var(--primary-fg) !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  box-shadow: var(--shadow-sm);
  text-transform: none !important;
}

.player-dashboard-page .mobile-header,
.player-dashboard-page .sidebar,
.player-teams-page .mobile-header,
.player-teams-page .sidebar {
  background:
    radial-gradient(circle at 10% 0%, rgba(212, 150, 53, 0.22), transparent 18rem),
    linear-gradient(180deg, var(--primary), var(--primary-deep)) !important;
}

.player-play-app .hud-top {
  top: max(env(safe-area-inset-top), 8px);
}

.player-play-app .tab-bar,
.player-play-app .game-nav,
.player-play-app .mobile-tabs {
  border-radius: 999px !important;
  background: rgba(7, 24, 45, 0.86) !important;
  border: 1px solid rgba(212, 150, 53, 0.26) !important;
  box-shadow: 0 14px 38px rgba(3, 19, 42, 0.24);
}

@media (min-width: 900px) {
  .player-dashboard-page .sidebar + .content,
  .player-teams-page .sidebar + .content {
    width: min(calc(100% - 320px), 1180px);
    margin-left: 280px !important;
    margin-right: auto !important;
  }
}

@media (max-width: 980px) {
  .player-main-grid,
  .player-team-board {
    grid-template-columns: 1fr;
  }
}

.player-auth-page {
  display: block !important;
  padding: 36px 18px 64px !important;
}

.player-auth-shell {
  min-height: calc(100vh - 72px);
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(340px, 4fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.player-auth-intro {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 56px);
  color: var(--primary-fg);
  background:
    radial-gradient(circle at 22% 18%, rgba(212, 150, 53, 0.30), transparent 18rem),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  overflow: hidden;
}

.player-auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 243, 222, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(251, 243, 222, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
}

.player-auth-intro > *,
.player-auth-panel > * {
  position: relative;
}

.player-auth-intro h1 {
  max-width: 520px;
  margin: 0;
  color: var(--primary-fg);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.98;
}

.player-auth-intro p {
  max-width: 500px;
  color: rgba(251, 243, 222, 0.78) !important;
}

.player-auth-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 54px);
  background:
    radial-gradient(circle at 90% 8%, rgba(212, 150, 53, 0.16), transparent 16rem),
    var(--bg);
}

.player-auth-panel .auth-card {
  width: min(100%, 420px);
  margin: 0 !important;
  background: rgba(255, 251, 241, 0.96) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

.player-auth-panel .auth-card .logo {
  color: var(--primary) !important;
}

.player-auth-panel .auth-card input {
  background: var(--surface) !important;
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

.player-auth-panel .auth-card label {
  color: var(--ink-mute) !important;
}

@media (max-width: 900px) {
  .player-auth-shell {
    grid-template-columns: 1fr;
  }

  .player-auth-intro {
    min-height: 320px;
  }
}

/* CR0247 banker-palette correction. Keep player-facing pages visually aligned
   with the selected banker/login navy, cream, muted slate, and gold palette. */
body[data-theme="empire"] {
  --banker-night: #06162A;
  --banker-navy: #0A2540;
  --banker-cream: #F8F1DF;
  --banker-card: #FFFBF1;
  --banker-line: #E2D5B4;
  --banker-muted: #44516A;
  --banker-gold: #D49635;
  --banker-green: #4A6F4E;
  --banker-red: #A8412F;
}

body[data-theme="empire"],
body[data-theme="empire"].empire-app-page,
body[data-theme="empire"].player-dashboard-page,
body[data-theme="empire"].player-teams-page {
  background:
    radial-gradient(circle at 14% 0%, rgba(212, 150, 53, 0.22), transparent 24rem),
    linear-gradient(180deg, var(--banker-night) 0, var(--banker-navy) 320px, var(--banker-cream) 320px, var(--banker-cream) 100%) !important;
  color: var(--ink) !important;
}

.player-auth-page {
  background:
    radial-gradient(circle at 28% 14%, rgba(212, 150, 53, 0.24), transparent 24rem),
    linear-gradient(145deg, var(--banker-night), var(--banker-navy)) !important;
}

.player-auth-shell,
.auth-card,
.reset-card {
  background: var(--banker-card) !important;
  border-color: rgba(212, 150, 53, 0.36) !important;
  box-shadow: 0 24px 58px rgba(3, 19, 42, 0.24) !important;
}

.player-auth-intro,
.mobile-header,
.sidebar,
.player-dashboard-page .mobile-header,
.player-dashboard-page .sidebar,
.player-teams-page .mobile-header,
.player-teams-page .sidebar {
  background:
    radial-gradient(circle at 14% 0%, rgba(212, 150, 53, 0.22), transparent 18rem),
    linear-gradient(180deg, var(--banker-navy), var(--banker-night)) !important;
  color: #FBF3DE !important;
}

.player-auth-panel {
  background: var(--banker-cream) !important;
}

.player-auth-intro h1,
.player-auth-intro p,
.sidebar h2,
.sidebar a,
.sidebar .nav-link,
.mobile-header .logo,
.mobile-nav .logo,
header .logo {
  color: #FBF3DE !important;
}

.player-page-kicker,
.player-section-label,
.player-auth-panel .auth-card::before {
  color: var(--banker-gold) !important;
}

.player-page-hero,
.player-dashboard-page .header,
.player-teams-page .header,
.scoreboard-hero,
.fame-shell > section:first-child {
  border-color: rgba(212, 150, 53, 0.38) !important;
  background:
    radial-gradient(circle at 88% 10%, rgba(212, 150, 53, 0.24), transparent 18rem),
    linear-gradient(135deg, var(--banker-night), var(--banker-navy)) !important;
  color: #FBF3DE !important;
  box-shadow: 0 22px 52px rgba(3, 19, 42, 0.22) !important;
}

.player-page-hero h1,
.player-page-hero p,
.player-dashboard-page .header h1,
.player-dashboard-page .header p,
.player-teams-page .header h1,
.player-teams-page .header p,
.scoreboard-hero h1,
.scoreboard-hero p,
.fame-shell > section:first-child h1,
.fame-shell > section:first-child p {
  color: #FBF3DE !important;
}

.stat-card,
.reward-ledger,
.team-list,
.settings-card,
.booking-card,
.confirm-card,
.card,
.honours-card,
.ranking-table,
.board-note,
.memory-card,
.details-box,
.player-card,
.player-stat,
.player-dashboard-page .team-list,
.player-teams-page .team-grid,
.player-dashboard-page .team-item,
.player-teams-page .team-card,
.podium-card,
.champion-card,
.record-card {
  background: var(--banker-card) !important;
  border-color: var(--banker-line) !important;
  color: var(--ink) !important;
  box-shadow: 0 14px 30px rgba(10, 37, 64, 0.09) !important;
}

.team-card,
.team-row,
.honour-row,
.ranking-row,
.memory-card,
.player-filter-row input,
.player-filter-row select,
input,
select,
textarea,
.tabs {
  background: var(--banker-cream) !important;
  border-color: var(--banker-line) !important;
  color: var(--ink) !important;
}

.player-page-copy,
.player-pill,
.score-label,
label,
.stat-card .label,
.player-stat span,
.podium-meta,
.champion-date,
.reward-meta,
.empty-state {
  color: var(--banker-muted) !important;
}

.stat-card .value,
.player-stat strong,
.team-card h3,
.player-card h2,
.player-card h3,
.podium-worth,
.champion-score,
.team-name,
.row-name {
  color: var(--banker-navy) !important;
}

button,
.btn-primary,
.btn-manage,
.btn-buy,
.btn-action,
.controls button.active,
button[type="submit"],
.btn-action[style*="#3b82f6"],
.btn-action[style*="#f59e0b"] {
  background: var(--banker-navy) !important;
  border: 1px solid rgba(212, 150, 53, 0.36) !important;
  color: #FBF3DE !important;
  box-shadow: 0 12px 24px rgba(3, 19, 42, 0.14) !important;
}

.btn-secondary,
.btn-back,
.controls button,
.player-pill,
.tab.active,
.tabs button.active {
  background: var(--banker-card) !important;
  border-color: var(--banker-line) !important;
  color: var(--banker-navy) !important;
}

.player-pill.accent,
.hud-live-missions {
  background: var(--banker-gold) !important;
  border-color: #A06E1F !important;
  color: var(--banker-navy) !important;
}

.btn-action[style*="#ef4444"],
.btn-danger {
  background: var(--banker-red) !important;
  border-color: var(--banker-red) !important;
  color: #FFFBF1 !important;
}

.bottom-nav {
  background: rgba(255, 251, 241, 0.96) !important;
  border-top-color: var(--banker-line) !important;
}

.bottom-nav a,
.bottom-nav button {
  color: var(--banker-muted) !important;
}

.bottom-nav .active,
.bottom-nav a.active {
  color: var(--banker-navy) !important;
}

body.player-play-app {
  background:
    radial-gradient(circle at 18% 0%, rgba(212, 150, 53, 0.24), transparent 22rem),
    linear-gradient(180deg, var(--banker-night) 0, var(--banker-navy) 34%, var(--banker-cream) 34%) !important;
}

.player-play-app .hud-top,
.player-play-app .tab-bar,
.player-play-app .game-nav,
.player-play-app .mobile-tabs {
  background: rgba(7, 24, 45, 0.88) !important;
  border-color: rgba(212, 150, 53, 0.28) !important;
}

.player-play-app .hud-card,
.player-play-app .hud-menu-panel {
  background: var(--banker-card) !important;
  border-color: var(--banker-line) !important;
  color: var(--banker-navy) !important;
}

.player-auth-panel .auth-card .logo,
.player-auth-panel .auth-card .tab,
.player-auth-panel .auth-card label,
.player-auth-panel .auth-card a {
  color: var(--banker-navy) !important;
}

.player-auth-panel .auth-card .tab.active {
  background: var(--banker-card) !important;
  color: var(--banker-navy) !important;
  border-color: var(--banker-gold) !important;
}

.player-auth-panel .auth-card input {
  background: var(--banker-cream) !important;
  border-color: var(--banker-line) !important;
  color: var(--ink) !important;
}

.player-auth-panel .auth-card input::placeholder {
  color: var(--banker-muted) !important;
  opacity: 0.72;
}

.player-auth-panel .auth-card .btn-submit {
  background: var(--banker-navy) !important;
  border: 1px solid rgba(212, 150, 53, 0.36) !important;
  color: #FBF3DE !important;
}

.player-auth-panel .auth-card #forgot-password-btn,
.player-auth-panel .auth-card #resend-verification-btn {
  background: var(--banker-gold) !important;
  border-color: #A06E1F !important;
  color: var(--banker-navy) !important;
}

body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card .logo,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card .tab,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card label,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card a {
  color: var(--banker-navy) !important;
}

body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card input,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card select {
  background: var(--banker-cream) !important;
  border-color: var(--banker-line) !important;
  color: var(--ink) !important;
}

body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card input::placeholder {
  color: var(--banker-muted) !important;
  opacity: 0.72;
}

/* CR0247 dark-blue correction: remove cream-heavy player surfaces, keep Jersey Gold seams. */
:root,
body[data-theme="empire"] {
  --player-dark-page: #07182D;
  --player-dark-panel: #0A2540;
  --player-dark-panel-2: #102944;
  --player-dark-panel-3: #143554;
  --player-dark-text: #FBF3DE;
  --player-dark-muted: #B9C7D8;
  --player-dark-line: rgba(212, 150, 53, 0.34);
  --player-dark-line-soft: rgba(226, 213, 180, 0.18);
  --panel: rgba(16, 41, 68, 0.94);
  --panel-strong: rgba(6, 22, 42, 0.86);
}

html,
body[data-theme="empire"],
body.player-dashboard-page,
body.player-teams-page,
body.player-auth-page,
body.player-play-app {
  background:
    radial-gradient(circle at 10% -8%, rgba(212, 150, 53, 0.22), transparent 24rem),
    radial-gradient(circle at 90% 8%, rgba(32, 90, 132, 0.28), transparent 30rem),
    linear-gradient(145deg, #06162A 0%, #0A2540 54%, #07182D 100%) !important;
  color: var(--player-dark-text) !important;
}

body[data-theme="empire"]::before {
  background:
    linear-gradient(90deg, rgba(212, 150, 53, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(226, 213, 180, 0.04) 1px, transparent 1px) !important;
  background-size: 76px 76px !important;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 78%) !important;
}

.content,
.scoreboard-shell,
.fame-shell {
  width: min(1280px, calc(100% - (var(--player-pad) * 2))) !important;
}

.mobile-header,
.mobile-nav,
.sidebar,
.bottom-nav,
header,
.player-auth-intro,
.player-auth-panel {
  background:
    radial-gradient(circle at 14% 0%, rgba(212, 150, 53, 0.16), transparent 18rem),
    linear-gradient(180deg, var(--player-dark-panel), #06162A) !important;
  border-color: var(--player-dark-line) !important;
  color: var(--player-dark-text) !important;
}

.sidebar,
.mobile-header,
.mobile-nav,
.bottom-nav {
  box-shadow: 0 18px 42px rgba(2, 9, 20, 0.22) !important;
}

.sidebar a.active,
.sidebar .nav-link.active,
.nav-item.active,
.bnav-item.active,
.bottom-nav .active,
.bottom-nav a.active {
  background: #D49635 !important;
  border-color: #D49635 !important;
  color: #06162A !important;
}

.player-auth-shell,
.player-page-hero,
.player-dashboard-page .header,
.player-teams-page .header,
.booking-card,
.confirm-card,
.settings-card,
.player-card,
.player-stat,
.stat-card,
.reward-ledger,
.team-list,
.team-grid,
.team-item,
.team-card,
.honours-card,
.champion-card,
.podium-card,
.record-card,
.ranking-table,
.board-note,
.memory-card,
.details-box,
.modal-content,
.modal-card,
.property-card,
.panel-card,
.trivia-card,
.selfie-card,
.special-card-ui,
.live-event-card,
.hosted-trivia-detail,
.auction-panel,
.hosted-photo-panel,
.quiz-score-card,
.auction-stat,
.team-metrics-card,
.timed-trivia-entry,
.auth-card,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card,
.player-play-app .auth-card,
.player-play-app .hud-card,
.player-play-app .hud-menu-panel {
  background:
    linear-gradient(145deg, rgba(16, 41, 68, 0.97), rgba(7, 24, 45, 0.97)) !important;
  border-color: var(--player-dark-line) !important;
  color: var(--player-dark-text) !important;
  box-shadow: 0 20px 48px rgba(2, 9, 20, 0.28) !important;
}

.player-auth-shell,
.player-page-hero,
.player-dashboard-page .header,
.player-teams-page .header,
.booking-card,
.confirm-card,
.settings-card,
.player-card,
.team-card,
.stat-card,
.auth-card,
.property-card,
.panel-card {
  border-top: 3px solid #D49635 !important;
}

.tabs,
.tab,
.team-row,
.honour-row,
.ranking-row,
.form-group,
.message,
.step,
.meta-item,
.support-item,
.player-filter-row input,
.player-filter-row select,
input,
select,
textarea,
.hosted-options button,
.hosted-perk-btn,
.hud-menu-item {
  background: rgba(6, 22, 42, 0.66) !important;
  border-color: var(--player-dark-line-soft) !important;
  color: var(--player-dark-text) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(185, 199, 216, 0.72) !important;
}

input:focus,
select:focus,
textarea:focus,
.tab.active,
.hosted-options button:focus,
.hosted-perk-btn:focus {
  border-color: #D49635 !important;
  box-shadow: 0 0 0 4px rgba(212, 150, 53, 0.18) !important;
}

h1,
h2,
h3,
.logo,
.mobile-header .logo,
.mobile-nav .logo,
header .logo,
.sidebar h2,
.sidebar a,
.sidebar .nav-link,
.player-page-hero h1,
.player-page-hero p,
.player-dashboard-page .header h1,
.player-dashboard-page .header p,
.player-teams-page .header h1,
.player-teams-page .header p,
.scoreboard-hero h1,
.scoreboard-hero p,
.fame-shell > section:first-child h1,
.fame-shell > section:first-child p,
.team-card h3,
.player-card h2,
.player-card h3,
.team-name,
.row-name,
.stat-card .value,
.stat-value,
.player-stat strong,
.champion-name,
.champion-score,
.podium-worth,
.result-big,
.score-big,
.auction-stat .stat-value,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card .logo,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card .tab,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card label,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card a {
  color: var(--player-dark-text) !important;
}

p,
li,
small,
label,
.player-page-copy,
.player-pill,
.score-label,
.stat-card .label,
.stat-label,
.player-stat span,
.podium-meta,
.champion-date,
.reward-meta,
.event-date,
.props,
.empty-state,
.memory-date,
.panel-subtitle,
.panel-body-text,
.live-event-meta,
.result-detail,
.auction-stat .stat-label {
  color: var(--player-dark-muted) !important;
}

.player-page-kicker,
.player-section-label,
.fame-kicker,
.honours-title,
.edition,
.player-auth-panel .auth-card::before,
.input-group label,
.form-group label,
.step-header,
.step-num {
  color: #D49635 !important;
}

button,
.btn-submit,
.btn-primary,
.btn-secondary,
.btn-back,
.btn-manage,
.btn-buy,
.btn-pay,
.btn-save,
.btn-action,
.btn-join,
.controls button,
.hud-menu-item,
.hosted-perk-btn,
button[type="submit"],
.btn-action[style*="#3b82f6"],
.btn-action[style*="#f59e0b"] {
  background: rgba(6, 22, 42, 0.86) !important;
  border: 1px solid var(--player-dark-line) !important;
  color: var(--player-dark-text) !important;
  box-shadow: 0 12px 24px rgba(2, 9, 20, 0.22) !important;
}

.btn-pay,
.btn-save[style*="var(--jersey-gold)"],
.btn-buy[style*="var(--gold)"],
.btn-buy[style*="#ffd700"],
.btn-submit#forgot-password-btn,
.btn-submit#resend-verification-btn,
.player-pill.accent,
.hud-live-missions,
.tab.active,
.tabs button.active,
.controls button.active,
.hosted-perk-btn.primary,
.panel-close-btn {
  background: #D49635 !important;
  border-color: #D49635 !important;
  color: #06162A !important;
}

.btn-action[style*="#ef4444"],
.btn-danger,
.hud-menu-item.danger,
.btn-buy[style*="#ef4444"] {
  background: #A8412F !important;
  border-color: #A8412F !important;
  color: #FFFBF1 !important;
}

.player-auth-panel .auth-card input,
.player-auth-panel .auth-card select,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card input,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card select,
.player-play-app .auth-card input,
.player-play-app .auth-card select {
  background: rgba(255, 251, 241, 0.10) !important;
  border-color: var(--player-dark-line-soft) !important;
  color: var(--player-dark-text) !important;
}

.player-auth-panel .auth-card input::placeholder,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card input::placeholder,
.player-play-app .auth-card input::placeholder {
  color: rgba(185, 199, 216, 0.72) !important;
}

.player-play-app .hud-top,
.player-play-app .tab-bar,
.player-play-app .game-nav,
.player-play-app .mobile-tabs {
  background: rgba(6, 22, 42, 0.88) !important;
  border-color: var(--player-dark-line) !important;
}

.player-play-app .hud-card,
.player-play-app .hud-card[style],
.player-play-app #wallet-card,
.player-play-app #pot-card,
.player-play-app #go-card,
.player-play-app #reward-card {
  color: var(--player-dark-text) !important;
  border-color: var(--player-dark-line) !important;
}

.player-play-app #map {
  background: #0A2540 !important;
}

.live-empty[style],
.meta[style],
.team-grid > p[style] {
  color: var(--player-dark-muted) !important;
}

@media (max-width: 820px) {
  .content,
  .scoreboard-shell,
  .fame-shell,
  .player-auth-shell {
    width: min(100% - 20px, 1280px) !important;
  }

  .player-auth-shell {
    grid-template-columns: 1fr !important;
  }

  .player-auth-intro,
  .player-auth-panel,
  .player-page-hero,
  .player-dashboard-page .header,
  .player-teams-page .header {
    border-radius: 22px !important;
  }
}

@media (max-width: 560px) {
  .booking-card,
  .confirm-card,
  .settings-card,
  .player-card,
  .team-card,
  .stat-card,
  .auth-card,
  .modal-content,
  .modal-card,
  .panel-card,
  .property-card {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  .player-auth-intro h1,
  .player-page-hero h1,
  .player-dashboard-page .header h1,
  .player-teams-page .header h1 {
    font-size: clamp(30px, 11vw, 44px) !important;
  }
}

/* CR0247 blue-surface base layer. The operator lock at the end enforces the
   final subtle banker-card border; gold remains an accent/fill only. */
:root,
body[data-theme="empire"] {
  --player-card-blue: #0A2540;
  --player-card-blue-deep: #07182D;
  --player-live-gold-border: #D49635;
  --player-live-border-soft: rgba(212, 150, 53, 0.38);
}

.player-auth-shell,
.player-auth-intro,
.player-auth-panel,
.player-page-hero,
.player-dashboard-page .header,
.player-teams-page .header,
.booking-card,
.confirm-card,
.settings-card,
.player-card,
.player-stat,
.stat-card,
.reward-ledger,
.team-list,
.team-grid,
.team-item,
.team-card,
.honours-card,
.champion-card,
.podium-card,
.record-card,
.ranking-table,
.board-note,
.memory-card,
.details-box,
.modal-content,
.modal-card,
.property-card,
.panel-card,
.trivia-card,
.selfie-card,
.special-card-ui,
.live-event-card,
.hosted-trivia-detail,
.auction-panel,
.hosted-photo-panel,
.quiz-score-card,
.auction-stat,
.team-metrics-card,
.timed-trivia-entry,
.auth-card,
body.player-auth-page:not(:has(#map)) .player-auth-panel .auth-card,
.player-play-app .auth-card,
.player-play-app .hud-card,
.player-play-app .hud-menu-panel {
  background: var(--player-card-blue) !important;
  border: 1px solid rgba(185, 199, 216, 0.24) !important;
  border-top: 1px solid rgba(251, 243, 222, 0.34) !important;
  color: var(--player-dark-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.34) !important;
}

.tabs,
.tab,
.team-row,
.honour-row,
.ranking-row,
.form-group,
.message,
.step,
.meta-item,
.support-item,
.player-filter-row input,
.player-filter-row select,
input,
select,
textarea,
.hosted-options button,
.hosted-perk-btn,
.hud-menu-item {
  background: var(--player-card-blue-deep) !important;
  border: 1px solid var(--player-live-border-soft) !important;
  color: var(--player-dark-text) !important;
}

.player-pill,
.tabs .tab,
.tabs button,
body.player-auth-page .player-auth-panel .auth-card .tab,
.player-play-app .header-stats > div {
  background: var(--player-card-blue-deep) !important;
  border: 1px solid var(--player-live-border-soft) !important;
  color: var(--player-dark-text) !important;
}

.player-pill.accent,
.tabs .tab.active,
.tabs button.active,
body.player-auth-page .player-auth-panel .auth-card .tab.active {
  background: #D49635 !important;
  border-color: #D49635 !important;
  color: #06162A !important;
}

body.player-auth-page .player-auth-panel .auth-card input,
body.player-auth-page .player-auth-panel .auth-card select,
body.player-auth-page .player-auth-panel .auth-card textarea {
  background: var(--player-card-blue-deep) !important;
  border: 1px solid var(--player-live-border-soft) !important;
  color: var(--player-dark-text) !important;
}

/* CR0247 operator correction: player/app cards follow the banker-card border,
   with gold used as an active/accent fill instead of a universal outline. */
:root,
body[data-theme="empire"] {
  --player-card-border: rgba(185, 199, 216, 0.24);
  --player-card-border-strong: rgba(251, 243, 222, 0.34);
  --player-button-bg: #F8F1DF;
  --player-button-fg: #0A2540;
  --player-button-border: rgba(251, 243, 222, 0.48);
}

body[data-theme="empire"]:not(#cr0247-force) .player-auth-shell,
body[data-theme="empire"]:not(#cr0247-force) .player-auth-intro,
body[data-theme="empire"]:not(#cr0247-force) .player-auth-panel,
body[data-theme="empire"]:not(#cr0247-force) .player-page-hero,
body[data-theme="empire"]:not(#cr0247-force) .booking-card,
body[data-theme="empire"]:not(#cr0247-force) .confirm-card,
body[data-theme="empire"]:not(#cr0247-force) .settings-card,
body[data-theme="empire"]:not(#cr0247-force) .player-card,
body[data-theme="empire"]:not(#cr0247-force) .player-stat,
body[data-theme="empire"]:not(#cr0247-force) .stat-card,
body[data-theme="empire"]:not(#cr0247-force) .reward-ledger,
body[data-theme="empire"]:not(#cr0247-force) .team-list,
body[data-theme="empire"]:not(#cr0247-force) .team-grid,
body[data-theme="empire"]:not(#cr0247-force) .team-item,
body[data-theme="empire"]:not(#cr0247-force) .team-card,
body[data-theme="empire"]:not(#cr0247-force) .honours-card,
body[data-theme="empire"]:not(#cr0247-force) .champion-card,
body[data-theme="empire"]:not(#cr0247-force) .podium-card,
body[data-theme="empire"]:not(#cr0247-force) .record-card,
body[data-theme="empire"]:not(#cr0247-force) .ranking-table,
body[data-theme="empire"]:not(#cr0247-force) .board-note,
body[data-theme="empire"]:not(#cr0247-force) .memory-card,
body[data-theme="empire"]:not(#cr0247-force) .details-box,
body[data-theme="empire"]:not(#cr0247-force) .modal-content,
body[data-theme="empire"]:not(#cr0247-force) .modal-card,
body[data-theme="empire"]:not(#cr0247-force) .property-card,
body[data-theme="empire"]:not(#cr0247-force) .panel-card,
body[data-theme="empire"]:not(#cr0247-force) .team-metrics-card,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-entry,
body[data-theme="empire"]:not(#cr0247-force) .auth-card,
body.player-auth-page:not(:has(#map)):not(#cr0247-force) .player-auth-panel .auth-card,
body.player-play-app:not(#cr0247-force) .auth-card,
body.player-play-app:not(#cr0247-force) .hud-card,
body.player-play-app:not(#cr0247-force) .hud-menu-panel {
  background: #0A2540 !important;
  background-image: linear-gradient(145deg, rgba(16, 41, 68, 0.96), rgba(7, 24, 45, 0.96)) !important;
  border: 1px solid var(--player-card-border) !important;
  border-top: 1px solid var(--player-card-border-strong) !important;
  color: var(--player-dark-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.34) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .btn,
body[data-theme="empire"]:not(#cr0247-force) .btn-action,
body[data-theme="empire"]:not(#cr0247-force) .btn-manage,
body[data-theme="empire"]:not(#cr0247-force) .btn-submit,
body[data-theme="empire"]:not(#cr0247-force) .btn-primary,
body[data-theme="empire"]:not(#cr0247-force) .btn-secondary,
body[data-theme="empire"]:not(#cr0247-force) .btn-ghost,
body[data-theme="empire"]:not(#cr0247-force) .player-pill,
body[data-theme="empire"]:not(#cr0247-force) button,
body[data-theme="empire"]:not(#cr0247-force) .hud-menu-item {
  background: var(--player-button-bg) !important;
  border: 1px solid var(--player-button-border) !important;
  border-radius: 999px !important;
  color: var(--player-button-fg) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .player-pill.accent,
body[data-theme="empire"]:not(#cr0247-force) .tab.active,
body[data-theme="empire"]:not(#cr0247-force) .tabs button.active,
body.player-auth-page:not(#cr0247-force) .player-auth-panel .auth-card .tab.active {
  background: #D49635 !important;
  border-color: rgba(212, 150, 53, 0.56) !important;
  color: #06162A !important;
}

body[data-theme="empire"]:not(#cr0247-force) .card::before,
body[data-theme="empire"]:not(#cr0247-force) .stat-card::before,
body[data-theme="empire"]:not(#cr0247-force) .team-card::before,
body[data-theme="empire"]:not(#cr0247-force) .workspace-card::before,
body[data-theme="empire"]:not(#cr0247-force) .modal-card::before,
body[data-theme="empire"]:not(#cr0247-force) .player-stat::before {
  display: none !important;
}

body[data-theme="empire"]:not(#cr0247-force) .team-card h3,
body[data-theme="empire"]:not(#cr0247-force) .team-card p,
body[data-theme="empire"]:not(#cr0247-force) .team-card b,
body[data-theme="empire"]:not(#cr0247-force) .team-card code,
body[data-theme="empire"]:not(#cr0247-force) .team-card .stat-label,
body[data-theme="empire"]:not(#cr0247-force) .team-card .stat-value,
body[data-theme="empire"]:not(#cr0247-force) .team-metrics-card h4,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-entry strong,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-entry .meta {
  color: var(--player-dark-text) !important;
}

/* CR0247 operator lock: final player/app treatment mirrors the public Teams
   dashboard button/card system and removes gold/orange outlines from nested
   cards. */
:root,
body[data-theme="empire"] {
  --player-card-border: rgba(185, 199, 216, 0.24);
  --player-card-border-strong: rgba(251, 243, 222, 0.34);
  --player-field-border: rgba(185, 199, 216, 0.20);
  --player-button-bg: #F8F1DF;
  --player-button-fg: #0A2540;
  --player-button-border: rgba(251, 243, 222, 0.48);
}

body[data-theme="empire"]:not(#cr0247-force) .player-auth-shell,
body[data-theme="empire"]:not(#cr0247-force) .player-auth-intro,
body[data-theme="empire"]:not(#cr0247-force) .player-auth-panel,
body[data-theme="empire"]:not(#cr0247-force) .player-page-hero,
body[data-theme="empire"]:not(#cr0247-force) .booking-card,
body[data-theme="empire"]:not(#cr0247-force) .confirm-card,
body[data-theme="empire"]:not(#cr0247-force) .settings-card,
body[data-theme="empire"]:not(#cr0247-force) .player-card,
body[data-theme="empire"]:not(#cr0247-force) .player-stat,
body[data-theme="empire"]:not(#cr0247-force) .stat-card,
body[data-theme="empire"]:not(#cr0247-force) .reward-ledger,
body[data-theme="empire"]:not(#cr0247-force) .team-list,
body[data-theme="empire"]:not(#cr0247-force) .team-grid,
body[data-theme="empire"]:not(#cr0247-force) .team-item,
body[data-theme="empire"]:not(#cr0247-force) .team-card,
body[data-theme="empire"]:not(#cr0247-force) .team-metrics-card,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-entry,
body[data-theme="empire"]:not(#cr0247-force) .honours-card,
body[data-theme="empire"]:not(#cr0247-force) .champion-card,
body[data-theme="empire"]:not(#cr0247-force) .podium-card,
body[data-theme="empire"]:not(#cr0247-force) .record-card,
body[data-theme="empire"]:not(#cr0247-force) .ranking-table,
body[data-theme="empire"]:not(#cr0247-force) .board-note,
body[data-theme="empire"]:not(#cr0247-force) .memory-card,
body[data-theme="empire"]:not(#cr0247-force) .details-box,
body[data-theme="empire"]:not(#cr0247-force) .modal-content,
body[data-theme="empire"]:not(#cr0247-force) .modal-card,
body[data-theme="empire"]:not(#cr0247-force) .property-card,
body[data-theme="empire"]:not(#cr0247-force) .panel-card,
body[data-theme="empire"]:not(#cr0247-force) .auth-card,
body.player-auth-page:not(:has(#map)):not(#cr0247-force) .player-auth-panel .auth-card,
body.player-play-app:not(#cr0247-force) .auth-card,
body.player-play-app:not(#cr0247-force) .hud-card,
body.player-play-app:not(#cr0247-force) .hud-menu-panel {
  background: #0A2540 !important;
  background-image: linear-gradient(145deg, rgba(16, 41, 68, 0.96), rgba(7, 24, 45, 0.96)) !important;
  border: 1px solid var(--player-card-border) !important;
  border-top: 1px solid var(--player-card-border-strong) !important;
  color: var(--player-dark-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.34) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .tabs,
body[data-theme="empire"]:not(#cr0247-force) .tab,
body[data-theme="empire"]:not(#cr0247-force) .team-row,
body[data-theme="empire"]:not(#cr0247-force) .honour-row,
body[data-theme="empire"]:not(#cr0247-force) .ranking-row,
body[data-theme="empire"]:not(#cr0247-force) .form-group,
body[data-theme="empire"]:not(#cr0247-force) .message,
body[data-theme="empire"]:not(#cr0247-force) .step,
body[data-theme="empire"]:not(#cr0247-force) .meta-item,
body[data-theme="empire"]:not(#cr0247-force) .support-item,
body[data-theme="empire"]:not(#cr0247-force) input,
body[data-theme="empire"]:not(#cr0247-force) select,
body[data-theme="empire"]:not(#cr0247-force) textarea {
  background: #07182D !important;
  background-image: none !important;
  border: 1px solid var(--player-field-border) !important;
  color: var(--player-dark-text) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .btn,
body[data-theme="empire"]:not(#cr0247-force) .btn-action,
body[data-theme="empire"]:not(#cr0247-force) .btn-manage,
body[data-theme="empire"]:not(#cr0247-force) .btn-submit,
body[data-theme="empire"]:not(#cr0247-force) .btn-primary,
body[data-theme="empire"]:not(#cr0247-force) .btn-secondary,
body[data-theme="empire"]:not(#cr0247-force) .btn-ghost,
body[data-theme="empire"]:not(#cr0247-force) .player-pill,
body[data-theme="empire"]:not(#cr0247-force) button,
body[data-theme="empire"]:not(#cr0247-force) .hud-menu-item {
  background: var(--player-button-bg) !important;
  border: 1px solid var(--player-button-border) !important;
  border-radius: 999px !important;
  color: var(--player-button-fg) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .btn:disabled,
body[data-theme="empire"]:not(#cr0247-force) button:disabled {
  background: rgba(248, 241, 223, 0.58) !important;
  color: rgba(10, 37, 64, 0.78) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .player-pill.accent,
body[data-theme="empire"]:not(#cr0247-force) .tab.active,
body[data-theme="empire"]:not(#cr0247-force) .tabs button.active,
body.player-auth-page:not(#cr0247-force) .player-auth-panel .auth-card .tab.active {
  background: #D49635 !important;
  border-color: rgba(212, 150, 53, 0.56) !important;
  color: #06162A !important;
}

body[data-theme="empire"]:not(#cr0247-force) .team-card summary,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-entry summary {
  color: var(--player-dark-text) !important;
}

/* CR0247 final player lock: keep play/dashboard/team pages visually consistent
   with the banker-login blue and the public/ops card border system. */
html body[data-theme="empire"] {
  --cr0247-player-blue: #0A2540;
  --cr0247-player-blue-deep: #07182D;
  --cr0247-player-text: #FBF3DE;
  --cr0247-player-muted: rgba(251, 243, 222, 0.74);
  --cr0247-player-border: rgba(185, 199, 216, 0.26);
  --cr0247-player-border-strong: rgba(251, 243, 222, 0.34);
  --cr0247-player-button-bg: #F8F1DF;
  --cr0247-player-button-fg: #0A2540;
  --cr0247-player-button-border: rgba(251, 243, 222, 0.52);
  background: var(--cr0247-player-blue) !important;
  background-image: none !important;
  color: var(--cr0247-player-text) !important;
}

html body[data-theme="empire"] main,
html body[data-theme="empire"] .main,
html body[data-theme="empire"] .content,
html body[data-theme="empire"] .page-shell,
html body[data-theme="empire"] .app-shell,
html body[data-theme="empire"] .bottom-nav {
  background: var(--cr0247-player-blue) !important;
  background-image: none !important;
  border-color: var(--cr0247-player-border) !important;
  color: var(--cr0247-player-text) !important;
}

html body[data-theme="empire"] .player-auth-shell,
html body[data-theme="empire"] .player-auth-intro,
html body[data-theme="empire"] .player-auth-panel,
html body[data-theme="empire"] .player-page-hero,
html body[data-theme="empire"] .booking-card,
html body[data-theme="empire"] .confirm-card,
html body[data-theme="empire"] .settings-card,
html body[data-theme="empire"] .player-card,
html body[data-theme="empire"] .player-stat,
html body[data-theme="empire"] .stat-card,
html body[data-theme="empire"] .reward-ledger,
html body[data-theme="empire"] .reward-row,
html body[data-theme="empire"] .team-list,
html body[data-theme="empire"] .team-item,
html body[data-theme="empire"] .team-card,
html body[data-theme="empire"] .team-metrics-card,
html body[data-theme="empire"] .timed-trivia-entry,
html body[data-theme="empire"] .honours-card,
html body[data-theme="empire"] .champion-card,
html body[data-theme="empire"] .podium-card,
html body[data-theme="empire"] .record-card,
html body[data-theme="empire"] .ranking-table,
html body[data-theme="empire"] .board-note,
html body[data-theme="empire"] .memory-card,
html body[data-theme="empire"] .details-box,
html body[data-theme="empire"] .modal-content,
html body[data-theme="empire"] .modal-card,
html body[data-theme="empire"] .property-card,
html body[data-theme="empire"] .panel-card,
html body[data-theme="empire"] .auth-card,
html body[data-theme="empire"] .hud-card,
html body[data-theme="empire"] .hud-menu-panel,
html body[data-theme="empire"] #chat-window,
html body[data-theme="empire"] [style*="background: white"],
html body[data-theme="empire"] [style*="background:white"],
html body[data-theme="empire"] [style*="background: #fff"],
html body[data-theme="empire"] [style*="background:#fff"],
html body[data-theme="empire"] [style*="background: #ffffff"],
html body[data-theme="empire"] [style*="background:#ffffff"],
html body[data-theme="empire"] [style*="background: #f8fafc"],
html body[data-theme="empire"] [style*="background:#f8fafc"],
html body[data-theme="empire"] [style*="background: #f1f5f9"],
html body[data-theme="empire"] [style*="background:#f1f5f9"],
html body[data-theme="empire"] [style*="background: #fffbeb"],
html body[data-theme="empire"] [style*="background:#fffbeb"] {
  background: var(--cr0247-player-blue) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-player-border) !important;
  border-top-color: var(--cr0247-player-border-strong) !important;
  color: var(--cr0247-player-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.26) !important;
}

html body[data-theme="empire"] .tabs,
html body[data-theme="empire"] .tab,
html body[data-theme="empire"] .team-row,
html body[data-theme="empire"] .honour-row,
html body[data-theme="empire"] .ranking-row,
html body[data-theme="empire"] .form-group,
html body[data-theme="empire"] .message,
html body[data-theme="empire"] .step,
html body[data-theme="empire"] .meta-item,
html body[data-theme="empire"] .support-item,
html body[data-theme="empire"] input,
html body[data-theme="empire"] select,
html body[data-theme="empire"] textarea,
html body[data-theme="empire"] .select-date {
  background: var(--cr0247-player-blue-deep) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-player-border) !important;
  color: var(--cr0247-player-text) !important;
}

html body[data-theme="empire"] :where(h1, h2, h3, h4, h5, h6, p, li, summary, label, small, strong, b, td, th, dd, dt, span, div) {
  color: var(--cr0247-player-text) !important;
}

html body[data-theme="empire"] :where(.muted, .meta, .label, .helper, .hint, .note, .subtitle, .fine-print) {
  color: var(--cr0247-player-muted) !important;
}

html body[data-theme="empire"] :where(.btn, .btn-action, .btn-manage, .btn-submit, .btn-primary, .btn-secondary, .btn-ghost, .btn-buy, .player-pill, .hud-menu-item, .option-btn, .live-event-actions button, button, a.button, input[type="submit"]) {
  background: var(--cr0247-player-button-bg) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-player-button-border) !important;
  border-radius: 999px !important;
  color: var(--cr0247-player-button-fg) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

html body[data-theme="empire"] :where(.btn, .btn-action, .btn-manage, .btn-submit, .btn-primary, .btn-secondary, .btn-ghost, .btn-buy, .player-pill, .hud-menu-item, .option-btn, .live-event-actions button, button, a.button, input[type="submit"]) * {
  color: inherit !important;
}

html body[data-theme="empire"] :where(.tab.active, .tabs button.active, .player-pill.accent, .status-chip, .pill.ok, .badge.ok) {
  background: #D49635 !important;
  background-image: none !important;
  border-color: rgba(212, 150, 53, 0.56) !important;
  color: #06162A !important;
}

/* CR0247 play login background restore: keep the blue/gold lock while bringing
   back the Jersey island silhouette that operators preferred on the auth view. */
html body.player-auth-page[data-theme="empire"] {
  background-color: #0A2540 !important;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(212, 150, 53, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 2%, rgba(75, 218, 255, 0.16), transparent 28rem),
    url("assets/brand/web/jersey-silhouette.svg"),
    linear-gradient(145deg, #06162A 0%, #0A2540 54%, #07182D 100%) !important;
  background-position:
    left top,
    right top,
    left max(14px, 4vw) bottom max(16px, 5vw),
    center !important;
  background-repeat: no-repeat !important;
  background-size:
    auto,
    auto,
    min(620px, 88vw) auto,
    auto !important;
  background-attachment: fixed !important;
}

html body.player-auth-page[data-theme="empire"] .player-auth-intro::before {
  background:
    url("assets/brand/web/jersey-silhouette.svg") right -92px bottom -118px / min(600px, 92vw) auto no-repeat,
    linear-gradient(90deg, rgba(251, 243, 222, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(251, 243, 222, 0.045) 1px, transparent 1px) !important;
  background-size: min(600px, 92vw) auto, 72px 72px, 72px 72px !important;
  opacity: 0.58 !important;
}

html body.player-auth-page[data-theme="empire"] .player-auth-panel .auth-card .input-group,
html body.player-auth-page[data-theme="empire"] .player-auth-panel .auth-card .form-row > div {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body.player-auth-page[data-theme="empire"] .player-auth-shell .player-auth-panel .auth-card div.input-group {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* CR0247 play surface final correction: remove duplicated field wrappers,
   keep HUD chrome minimal, and force all play overlays onto the blue/gold
   neon-card system even where index.html inline styles define white panels. */
html body.player-play-app[data-theme="empire"] {
  --cr0247-play-gold: #D49635;
  --cr0247-play-cream: #FBF3DE;
  --cr0247-play-muted: rgba(251, 243, 222, 0.76);
  --cr0247-play-blue: #0A2540;
  --cr0247-play-blue-deep: #07182D;
  --cr0247-play-border: rgba(75, 218, 255, 0.58);
  --cr0247-play-border-soft: rgba(185, 199, 216, 0.26);
  --cr0247-play-glow:
    0 0 0 1px rgba(212, 150, 53, 0.22),
    0 0 28px rgba(75, 218, 255, 0.18),
    0 0 48px rgba(212, 150, 53, 0.12),
    0 18px 44px rgba(2, 9, 20, 0.36);
}

html body.player-play-app[data-theme="empire"] #auth-overlay {
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 150, 53, 0.22), transparent 24rem),
    radial-gradient(circle at 86% 0%, rgba(75, 218, 255, 0.16), transparent 28rem),
    url("assets/brand/web/jersey-silhouette.svg") left max(12px, 4vw) bottom max(16px, 5vw) / min(620px, 88vw) auto no-repeat,
    linear-gradient(145deg, #06162A 0%, #0A2540 56%, #07182D 100%) !important;
}

html body.player-play-app[data-theme="empire"] #auth-overlay > h1 {
  color: var(--cr0247-play-gold) !important;
  text-align: center !important;
  text-shadow: 0 0 24px rgba(212, 150, 53, 0.24) !important;
}

html body.player-play-app[data-theme="empire"] #auth-overlay .auth-card {
  background: linear-gradient(145deg, rgba(16, 41, 68, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid var(--cr0247-play-border) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow: var(--cr0247-play-glow) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #auth-overlay .auth-card .input-group {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 15px !important;
}

html body.player-play-app[data-theme="empire"] #auth-overlay .auth-card label {
  color: var(--cr0247-play-gold) !important;
}

html body.player-play-app[data-theme="empire"] #auth-overlay .auth-card input {
  background: var(--cr0247-play-blue-deep) !important;
  border: 1px solid rgba(75, 218, 255, 0.44) !important;
  color: var(--cr0247-play-cream) !important;
  box-shadow: inset 0 1px 0 rgba(251, 243, 222, 0.06) !important;
}

html body.player-play-app[data-theme="empire"] #hud.ui-overlay,
html body.player-play-app[data-theme="empire"] #hud .hud-top {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body.player-play-app[data-theme="empire"] #hud .hud-card {
  background: #F8F1DF !important;
  border: 1px solid rgba(251, 243, 222, 0.58) !important;
  color: var(--cr0247-play-blue) !important;
  box-shadow: 0 10px 24px rgba(2, 9, 20, 0.22) !important;
}

html body.player-play-app[data-theme="empire"] #hud .hud-card *,
html body.player-play-app[data-theme="empire"] #hud .hud-card span {
  color: inherit !important;
}

html body.player-play-app[data-theme="empire"] #hud-menu-panel.hud-menu-panel {
  background: linear-gradient(145deg, rgba(16, 41, 68, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid var(--cr0247-play-border) !important;
  box-shadow: var(--cr0247-play-glow) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #hud-menu-panel .hud-menu-item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #hud-menu-panel .hud-menu-item:hover {
  background: rgba(251, 243, 222, 0.10) !important;
}

html body.player-play-app[data-theme="empire"] #leaderboard-overlay .modal-card,
html body.player-play-app[data-theme="empire"] #history-overlay .modal-card,
html body.player-play-app[data-theme="empire"] #rules-overlay .modal-card,
html body.player-play-app[data-theme="empire"] #challenge-overlay .modal-card,
html body.player-play-app[data-theme="empire"] #live-missions-panel .panel-card,
html body.player-play-app[data-theme="empire"] #card-content.special-card-ui,
html body.player-play-app[data-theme="empire"] .property-card,
html body.player-play-app[data-theme="empire"] .quiz-score-card,
html body.player-play-app[data-theme="empire"] .auction-stat,
html body.player-play-app[data-theme="empire"] .auction-result-card,
html body.player-play-app[data-theme="empire"] .live-event-item,
html body.player-play-app[data-theme="empire"] .hosted-trivia-detail,
html body.player-play-app[data-theme="empire"] .hosted-photo-panel {
  background: linear-gradient(145deg, rgba(16, 41, 68, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid var(--cr0247-play-border) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow: var(--cr0247-play-glow) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #leaderboard-overlay .modal-card > div:first-child {
  background: var(--cr0247-play-gold) !important;
  color: #06162A !important;
}

html body.player-play-app[data-theme="empire"] #leaderboard-overlay .modal-card > div:last-child {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  justify-content: center !important;
}

html body.player-play-app[data-theme="empire"] #leaderboard-overlay .table,
html body.player-play-app[data-theme="empire"] #leaderboard-overlay .table th,
html body.player-play-app[data-theme="empire"] #leaderboard-overlay .table td {
  background: transparent !important;
  border-color: var(--cr0247-play-border-soft) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #chat-window {
  background: linear-gradient(145deg, rgba(16, 41, 68, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid var(--cr0247-play-border) !important;
  box-shadow: var(--cr0247-play-glow) !important;
}

html body.player-play-app[data-theme="empire"] #chat-header {
  background: transparent !important;
  border-bottom: 1px solid var(--cr0247-play-border-soft) !important;
  color: var(--cr0247-play-gold) !important;
}

html body.player-play-app[data-theme="empire"] #chat-input-area {
  background: rgba(7, 24, 45, 0.82) !important;
  border-top: 1px solid var(--cr0247-play-border-soft) !important;
}

html body.player-play-app[data-theme="empire"] #chat-messages .msg-ai {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] #chat-messages .msg-user {
  background: var(--cr0247-play-gold) !important;
  color: #06162A !important;
}

html body.player-play-app[data-theme="empire"] .panel-header,
html body.player-play-app[data-theme="empire"] .live-event-item,
html body.player-play-app[data-theme="empire"] .hosted-trivia-detail {
  border-color: var(--cr0247-play-border-soft) !important;
}

html body.player-play-app[data-theme="empire"] .option-btn,
html body.player-play-app[data-theme="empire"] .hosted-option-btn,
html body.player-play-app[data-theme="empire"] .quiz-option-btn,
html body.player-play-app[data-theme="empire"] .hosted-perk-btn,
html body.player-play-app[data-theme="empire"] .auction-bid-row input,
html body.player-play-app[data-theme="empire"] #hosted-photo-notes,
html body.player-play-app[data-theme="empire"] #hosted-photo-file {
  background: var(--cr0247-play-blue-deep) !important;
  border: 1px solid var(--cr0247-play-border-soft) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] .option-btn.correct,
html body.player-play-app[data-theme="empire"] .hosted-option-btn.correct,
html body.player-play-app[data-theme="empire"] .quiz-option-btn.correct,
html body.player-play-app[data-theme="empire"] .auction-result-card.won,
html body.player-play-app[data-theme="empire"] .auction-stat.you-highest {
  background: rgba(57, 217, 138, 0.16) !important;
  border-color: rgba(57, 217, 138, 0.52) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] .option-btn.wrong,
html body.player-play-app[data-theme="empire"] .hosted-option-btn.wrong,
html body.player-play-app[data-theme="empire"] .quiz-option-btn.wrong,
html body.player-play-app[data-theme="empire"] .auction-result-card.lost {
  background: rgba(168, 65, 47, 0.20) !important;
  border-color: rgba(255, 77, 93, 0.52) !important;
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] .auction-result-card.no-sale {
  background: rgba(251, 243, 222, 0.08) !important;
  border-color: var(--cr0247-play-border-soft) !important;
  color: var(--cr0247-play-muted) !important;
}

html body.player-play-app[data-theme="empire"] .special-card-ui .card-type,
html body.player-play-app[data-theme="empire"] .auction-badge {
  background: var(--cr0247-play-gold) !important;
  color: #06162A !important;
  border: 1px solid rgba(212, 150, 53, 0.60) !important;
}

html body.player-play-app[data-theme="empire"] :where(
  #leaderboard-overlay,
  #history-overlay,
  #rules-overlay,
  #challenge-overlay,
  #live-missions-panel,
  #card-overlay,
  #chat-window
) :where(h1, h2, h3, h4, p, div, span, label, small, strong, b, td, th, li) {
  color: var(--cr0247-play-cream) !important;
}

html body.player-play-app[data-theme="empire"] :where(
  #leaderboard-overlay,
  #history-overlay,
  #rules-overlay,
  #challenge-overlay,
  #live-missions-panel,
  #card-overlay,
  #chat-window
) :where(.panel-subtitle, .panel-body-text, .live-event-meta, .status, .result-detail, .score-label, .auction-balance-note, .hosted-photo-status, .hosted-feedback, .auction-feedback) {
  color: var(--cr0247-play-muted) !important;
}

html body.player-play-app[data-theme="empire"] #leaderboard-overlay .modal-card > div:first-child,
html body.player-play-app[data-theme="empire"] #leaderboard-overlay .modal-card > div:first-child * {
  color: #06162A !important;
}
