/* CR0247 Empire Mark public/auth surface rebuild.
   Visual-only layer: preserves page IDs, forms, scripts, and handlers. */

body[data-theme="empire"] {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--paper-grain);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}

body[data-theme="empire"] h1,
body[data-theme="empire"] h2,
body[data-theme="empire"] h3,
body[data-theme="empire"] h4,
body[data-theme="empire"] .logo,
body[data-theme="empire"] .serif {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 600;
  letter-spacing: -0.018em;
}

body[data-theme="empire"] p,
body[data-theme="empire"] li {
  color: var(--ink-mute);
  line-height: 1.6;
}

body[data-theme="empire"] a {
  color: inherit;
}

body[data-theme="empire"] input,
body[data-theme="empire"] select,
body[data-theme="empire"] textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

body[data-theme="empire"] input:focus,
body[data-theme="empire"] select:focus,
body[data-theme="empire"] textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-tint);
}

body[data-theme="empire"] label {
  color: var(--ink-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="empire"] .logo {
  color: var(--primary);
  font-weight: 700;
  text-transform: none;
}

body[data-theme="empire"] .btn-submit,
body[data-theme="empire"] .btn-send,
body[data-theme="empire"] .btn-pay,
body[data-theme="empire"] .btn-primary,
body[data-theme="empire"] .btn-live,
body[data-theme="empire"] .btn-back,
body[data-theme="empire"] .btn {
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.005em;
  text-transform: none;
  transition: transform 0.15s var(--ease), box-shadow 0.18s var(--ease), opacity 0.18s var(--ease);
}

body[data-theme="empire"] .btn-submit,
body[data-theme="empire"] .btn-send,
body[data-theme="empire"] .btn-pay,
body[data-theme="empire"] .btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}

body[data-theme="empire"] .btn-gold,
body[data-theme="empire"] .btn-live,
body[data-theme="empire"] .btn-back,
body[data-theme="empire"] .btn-primary.btn-gold {
  background: var(--accent);
  color: var(--accent-fg);
}

body[data-theme="empire"] .btn-submit:hover,
body[data-theme="empire"] .btn-send:hover,
body[data-theme="empire"] .btn-pay:hover,
body[data-theme="empire"] .btn-primary:hover,
body[data-theme="empire"] .btn-live:hover,
body[data-theme="empire"] .btn-back:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

body[data-theme="empire"] .message.success,
body[data-theme="empire"] .success {
  color: var(--good);
}

body[data-theme="empire"] .message.error,
body[data-theme="empire"] .error {
  color: var(--bad);
}

.empire-mark-auth,
body.public-login[data-theme="empire"] {
  display: block !important;
  padding: 36px 18px 64px !important;
}

.empire-mark-auth::before,
body.public-login[data-theme="empire"]::before {
  content: "";
  position: fixed;
  inset: 0 50% 0 0;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 22%, rgba(212, 150, 53, 0.28), transparent 32%),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
}

.empire-mark-auth::after,
body.public-login[data-theme="empire"]::after {
  content: "";
  position: fixed;
  left: clamp(24px, 7vw, 96px);
  bottom: clamp(24px, 7vw, 96px);
  z-index: -1;
  width: min(34vw, 360px);
  height: min(34vw, 360px);
  border: 1px solid rgba(251, 243, 222, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(rgba(251, 243, 222, 0.12), rgba(251, 243, 222, 0.12)) 50% 0 / 1px 100% no-repeat,
    linear-gradient(90deg, rgba(251, 243, 222, 0.12), rgba(251, 243, 222, 0.12)) 0 50% / 100% 1px no-repeat,
    radial-gradient(circle, transparent 58%, rgba(212, 150, 53, 0.18) 59%, transparent 60%);
  opacity: 0.78;
}

body[data-theme="empire"] .auth-card,
body[data-theme="empire"] .reset-card {
  width: min(100%, 430px);
  margin: clamp(24px, 7vh, 92px) clamp(18px, 8vw, 110px) 48px auto;
  padding: clamp(26px, 4vw, 42px);
  background: rgba(255, 251, 241, 0.95);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

body[data-theme="empire"] .auth-card .logo,
body[data-theme="empire"] .reset-card .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 24px;
}

body[data-theme="empire"] .tabs {
  gap: 4px;
  padding: 4px;
  margin-bottom: 26px;
  background: var(--surface-3);
  border: 0;
  border-radius: 14px;
}

body[data-theme="empire"] .tab {
  border-radius: 10px;
  color: var(--ink-mute);
  opacity: 1;
}

body[data-theme="empire"] .tab.active {
  background: var(--surface);
  border-bottom: 0;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

body[data-theme="empire"] .form-row {
  gap: 12px;
}

body[data-theme="empire"] .auth-card input,
body[data-theme="empire"] .reset-card input {
  min-height: 46px;
  padding: 12px 14px;
}

body[data-theme="empire"] #forgot-password-btn,
body[data-theme="empire"] #resend-verification-btn {
  background: var(--surface-3) !important;
  color: var(--primary) !important;
}

body[data-theme="empire"] .mobile-nav,
body[data-theme="empire"] > header:not(.ps2-header) {
  background: rgba(255, 251, 241, 0.88);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body[data-theme="empire"] > header:not(.ps2-header) h1,
body[data-theme="empire"] > header:not(.ps2-header) p,
body[data-theme="empire"] > header:not(.ps2-header) .logo,
body[data-theme="empire"] .mobile-nav .logo {
  color: var(--ink);
}

body[data-theme="empire"] .card,
body[data-theme="empire"] .confirm-card,
body[data-theme="empire"] .contact-card,
body[data-theme="empire"] .bus-card,
body[data-theme="empire"] .hero,
body[data-theme="empire"] .ps2-booking-card,
body[data-theme="empire"] .ps2-booking-side,
body[data-theme="empire"] .ps2-beta-card,
body[data-theme="empire"] .ps2-faq-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

body[data-theme="empire"] .content,
body[data-theme="empire"] .container,
body[data-theme="empire"] .page-wrap,
body[data-theme="empire"] .shell {
  position: relative;
}

body[data-theme="empire"] .confirm-card,
body[data-theme="empire"] .contact-card {
  box-shadow: var(--shadow-lg);
}

body[data-theme="empire"] .details-box,
body[data-theme="empire"] .support-item,
body[data-theme="empire"] .meta-item,
body[data-theme="empire"] .step,
body[data-theme="empire"] .ps2-booking-fee,
body[data-theme="empire"] .ps2-beta-info-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

body[data-theme="empire"] .icon-success { background: var(--good-tint); color: var(--good); }
body[data-theme="empire"] .icon-pending { background: var(--warn-tint); color: var(--warn); }
body[data-theme="empire"] .icon-error { background: var(--bad-tint); color: var(--bad); }

body[data-theme="empire"] .support-item b,
body[data-theme="empire"] .meta-item strong,
body[data-theme="empire"] .card h2,
body[data-theme="empire"] .container h2,
body[data-theme="empire"] .bus-card h3 {
  color: var(--primary);
}

body[data-theme="empire"] .bus-card i {
  color: var(--accent-deep);
}

body[data-theme="empire"] .hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 150, 53, 0.24), transparent 28%),
    linear-gradient(145deg, var(--primary-deep), var(--primary));
  color: var(--primary-fg);
}

body[data-theme="empire"] .hero h1,
body[data-theme="empire"] .hero h2,
body[data-theme="empire"] .hero p {
  color: var(--primary-fg);
}

body[data-theme="empire"] .btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

body[data-theme="empire"] .hero .btn-ghost {
  border-color: rgba(251, 243, 222, 0.28);
  color: var(--primary-fg);
}

body[data-theme="empire"] .scoreboard-shell,
body[data-theme="empire"] .fame-shell {
  max-width: 1120px;
  color: var(--ink);
}

body[data-theme="empire"] .scoreboard-shell h1,
body[data-theme="empire"] .fame-shell h1 {
  color: var(--ink) !important;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
}

body[data-theme="empire"] .scoreboard-shell .kicker,
body[data-theme="empire"] .fame-shell .fame-kicker,
body[data-theme="empire"] .podium-worth,
body[data-theme="empire"] .row-worth,
body[data-theme="empire"] .stat-value,
body[data-theme="empire"] .edition,
body[data-theme="empire"] .worth {
  color: var(--accent-deep) !important;
}

body[data-theme="empire"] .scoreboard-shell .hero-copy,
body[data-theme="empire"] .fame-shell .fame-copy,
body[data-theme="empire"] .podium-meta,
body[data-theme="empire"] .champion-date,
body[data-theme="empire"] .stat-label,
body[data-theme="empire"] .event-date,
body[data-theme="empire"] .props,
body[data-theme="empire"] .empty-state {
  color: var(--ink-mute) !important;
}

body[data-theme="empire"] .podium-card,
body[data-theme="empire"] .champion-card,
body[data-theme="empire"] .ranking-table,
body[data-theme="empire"] .honours-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

body[data-theme="empire"] .podium-card[data-rank="1"],
body[data-theme="empire"] .champion-card[data-rank="1"] {
  background: linear-gradient(145deg, var(--surface), var(--accent-tint));
  border-color: var(--accent);
}

body[data-theme="empire"] .podium-name,
body[data-theme="empire"] .champion-name,
body[data-theme="empire"] .honours-title,
body[data-theme="empire"] .team-name,
body[data-theme="empire"] .ranking-row,
body[data-theme="empire"] .row-name {
  color: var(--ink) !important;
}

body[data-theme="empire"] .ranking-head {
  background: var(--surface-2);
  color: var(--ink-soft) !important;
}

body[data-theme="empire"] .ranking-row,
body[data-theme="empire"] .honour-row {
  border-top: 1px solid var(--line-soft);
}

body[data-theme="empire"] .board-note {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-mute) !important;
}

body[data-theme="empire"] .row-token,
body[data-theme="empire"] .podium-token,
body[data-theme="empire"] .champion-token,
body[data-theme="empire"] .token {
  background: var(--primary);
  color: var(--primary-fg);
}

body[data-theme="empire"] .progress-track {
  background: var(--surface-3);
}

body[data-theme="empire"] .progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

body[data-theme="empire"] .select-date {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

body[data-theme="empire"] .blocked {
  background: var(--bad-tint);
  color: var(--bad);
}

@media (max-width: 820px) {
  .empire-mark-auth::before,
  .empire-mark-auth::after,
  body.public-login[data-theme="empire"]::before,
  body.public-login[data-theme="empire"]::after {
    display: none;
  }

  body[data-theme="empire"] .auth-card,
  body[data-theme="empire"] .reset-card {
    margin: 22px auto 48px;
  }
}

@media (max-width: 560px) {
  body[data-theme="empire"] .auth-card,
  body[data-theme="empire"] .reset-card,
  body[data-theme="empire"] .confirm-card,
  body[data-theme="empire"] .contact-card {
    border-radius: 22px;
    padding: 24px 18px;
  }

  body[data-theme="empire"] .ranking-row {
    grid-template-columns: 46px 1fr;
  }
}

/* CR0247 high-fidelity structural layer.
   These classes are deliberately source-native wrappers around the existing forms,
   cards and JS render targets. They replace the mixed legacy surfaces without
   changing IDs, handlers, storage keys, or API routes. */

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

.empire-auth-intro {
  position: relative;
  min-height: 640px;
  padding: clamp(32px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  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;
}

.empire-auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("assets/brand/map-motif.svg") right -80px bottom -110px / min(560px, 86vw) 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);
  background-size: auto, 72px 72px, 72px 72px;
  opacity: 0.55;
}

.empire-auth-intro > * {
  position: relative;
  z-index: 1;
}

.empire-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--primary-fg);
  text-decoration: none;
}

.empire-lockup-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(212, 150, 53, 0.72);
  color: var(--primary);
  font: 800 17px/1 var(--font-display);
  box-shadow: inset 0 0 0 1px rgba(10, 37, 64, 0.08), 0 12px 24px rgba(3, 19, 42, 0.22);
}

.empire-lockup-text strong {
  display: block;
  font: 700 26px/1 var(--font-display);
  letter-spacing: -0.02em;
}

.empire-lockup-text span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.empire-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

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

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

.empire-auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.empire-auth-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(251, 243, 222, 0.18);
  border-radius: 999px;
  color: rgba(251, 243, 222, 0.78);
  background: rgba(251, 243, 222, 0.08);
  font-size: 13px;
}

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

body[data-theme="empire"] .empire-auth-panel .auth-card {
  margin: 0;
  width: min(100%, 430px);
  box-shadow: none;
}

body[data-theme="empire"] .empire-auth-panel .auth-card::before {
  content: "Account access";
  display: block;
  margin-bottom: 8px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.empire-app-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;
}

.empire-app-page .content {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.empire-app-page .header,
.empire-page-hero {
  position: relative;
  overflow: hidden;
  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);
}

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

.empire-page-hero h1,
.empire-app-page .header h1 {
  margin: 0;
  max-width: 760px;
  color: var(--ink) !important;
  font-size: clamp(34px, 5.2vw, 62px) !important;
  line-height: 1.02;
}

.empire-page-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--ink-mute) !important;
  font-size: 15px;
}

.empire-hero-actions,
.empire-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.empire-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: 700;
  text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.empire-list-panel,
.empire-detail-panel {
  min-height: 240px;
}

.empire-filter-row input,
.empire-filter-row select {
  min-height: 44px;
  flex: 1 1 180px;
  padding: 10px 12px;
}

body[data-theme="empire"] .team-list,
body[data-theme="empire"] .team-grid,
body[data-theme="empire"] .stat-grid {
  position: relative;
  z-index: 1;
}

body[data-theme="empire"] .team-list {
  padding: clamp(20px, 3vw, 28px) !important;
}

body[data-theme="empire"] .settings-card {
  max-width: 720px !important;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: rgba(255, 251, 241, 0.92) !important;
  box-shadow: var(--shadow-sm) !important;
}

body[data-theme="empire"] .team-item,
body[data-theme="empire"] .team-card {
  border-radius: 18px !important;
  border: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
  background: rgba(255, 251, 241, 0.78) !important;
  box-shadow: var(--shadow-sm) !important;
}

body[data-theme="empire"] .team-card {
  padding: 22px !important;
}

body[data-theme="empire"] .team-item {
  padding: 18px !important;
  margin-bottom: 12px;
}

body[data-theme="empire"] .team-info h3,
body[data-theme="empire"] .team-card h3 {
  color: var(--ink) !important;
  text-transform: none;
}

body[data-theme="empire"] .btn-action,
body[data-theme="empire"] .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;
  letter-spacing: 0 !important;
}

body[data-theme="empire"] .btn-action:hover,
body[data-theme="empire"] .btn-manage:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

body[data-theme="empire"] .bottom-nav {
  background: rgba(255, 251, 241, 0.94) !important;
  border-top: 1px solid var(--line) !important;
  backdrop-filter: blur(16px);
}

body[data-theme="empire"] .mobile-header,
body[data-theme="empire"] .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;
}

body[data-theme="empire"] .sidebar .logo,
body[data-theme="empire"] .mobile-header .logo {
  color: var(--primary-fg) !important;
}

body[data-theme="empire"] .sidebar .nav-item {
  border-radius: 14px !important;
}

.car555-leaderboard-page .scoreboard-shell,
.fame-shell {
  width: min(1120px, calc(100% - 36px));
}

.car555-leaderboard-page .scoreboard-hero,
.fame-shell {
  border-radius: 32px;
}

.fame-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 86% 9%, rgba(212, 150, 53, 0.22), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.fame-shell::before {
  content: "";
  position: absolute;
  inset: auto -70px -110px auto;
  width: min(460px, 75vw);
  aspect-ratio: 1;
  background: url("assets/brand/map-motif.svg") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.fame-shell > * {
  position: relative;
}

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

  .empire-auth-intro {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .empire-app-page .content,
  .car555-leaderboard-page .scoreboard-shell,
  .fame-shell {
    width: min(100% - 24px, 1120px);
  }

  .empire-auth-shell {
    width: min(100% - 20px, 1120px);
    border-radius: 24px;
  }

  .empire-auth-intro,
  .empire-auth-panel {
    padding: 24px;
  }

  .empire-page-hero,
  .empire-app-page .header {
    border-radius: 24px;
  }
}

/* CR0247 banker-palette correction. Align public account, dashboard, and teams
   surfaces with the banker login palette the operator selected on staging. */
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"].empire-app-page,
body[data-theme="empire"].car555-dashboard-page,
body[data-theme="empire"].public-page-v2,
body[data-theme="empire"].car555-leaderboard-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;
}

body[data-theme="empire"].empire-mark-auth,
body.public-login[data-theme="empire"] {
  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;
}

.empire-mark-auth::before,
body.public-login[data-theme="empire"]::before {
  background:
    radial-gradient(circle at 24% 22%, rgba(212, 150, 53, 0.28), transparent 32%),
    linear-gradient(145deg, var(--banker-night), var(--banker-navy)) !important;
}

.empire-auth-shell,
body[data-theme="empire"] .auth-card,
body[data-theme="empire"] .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;
}

.empire-auth-intro,
body[data-theme="empire"] .mobile-header,
body[data-theme="empire"] .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;
}

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

.empire-auth-intro h1,
.empire-auth-intro p,
.empire-lockup,
.empire-lockup-text strong,
body[data-theme="empire"] .sidebar .logo,
body[data-theme="empire"] .sidebar .nav-item,
body[data-theme="empire"] .mobile-header .logo {
  color: #FBF3DE !important;
}

.empire-lockup-text span,
.empire-eyebrow,
.empire-page-kicker,
.empire-section-label {
  color: var(--banker-gold) !important;
}

.empire-app-page .header,
.empire-page-hero,
body[data-theme="empire"] .hero {
  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;
}

.empire-app-page .header h1,
.empire-app-page .header p,
.empire-page-hero h1,
.empire-page-hero p,
body[data-theme="empire"] .hero h1,
body[data-theme="empire"] .hero h2,
body[data-theme="empire"] .hero p {
  color: #FBF3DE !important;
}

body[data-theme="empire"] .card,
body[data-theme="empire"] .confirm-card,
body[data-theme="empire"] .contact-card,
body[data-theme="empire"] .bus-card,
body[data-theme="empire"] .ps2-booking-card,
body[data-theme="empire"] .ps2-booking-side,
body[data-theme="empire"] .ps2-beta-card,
body[data-theme="empire"] .ps2-faq-card,
body[data-theme="empire"] .team-list,
body[data-theme="empire"] .team-grid,
body[data-theme="empire"] .team-card,
body[data-theme="empire"] .team-item,
body[data-theme="empire"] .settings-card,
body[data-theme="empire"] .empire-card,
body[data-theme="empire"] .empire-stat,
body[data-theme="empire"] .stat-card,
body[data-theme="empire"] .modal-content,
body[data-theme="empire"] .podium-card,
body[data-theme="empire"] .champion-card,
body[data-theme="empire"] .ranking-table,
body[data-theme="empire"] .honours-card,
body[data-theme="empire"] .fame-shell {
  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;
}

body[data-theme="empire"] .support-item,
body[data-theme="empire"] .meta-item,
body[data-theme="empire"] .step,
body[data-theme="empire"] .details-box,
body[data-theme="empire"] .board-note,
body[data-theme="empire"] .team-metrics-card,
body[data-theme="empire"] .timed-trivia-entry,
body[data-theme="empire"] .tabs,
body[data-theme="empire"] input,
body[data-theme="empire"] select,
body[data-theme="empire"] textarea {
  background: var(--banker-cream) !important;
  border-color: var(--banker-line) !important;
  color: var(--ink) !important;
}

body[data-theme="empire"] p,
body[data-theme="empire"] li,
body[data-theme="empire"] .team-card p,
body[data-theme="empire"] .timed-trivia-entry .meta,
body[data-theme="empire"] .podium-meta,
body[data-theme="empire"] .champion-date,
body[data-theme="empire"] .stat-label,
body[data-theme="empire"] .event-date,
body[data-theme="empire"] .props,
body[data-theme="empire"] .empty-state {
  color: var(--banker-muted) !important;
}

body[data-theme="empire"] .card h2,
body[data-theme="empire"] .container h2,
body[data-theme="empire"] .bus-card h3,
body[data-theme="empire"] .team-info h3,
body[data-theme="empire"] .team-card h3,
body[data-theme="empire"] .stat-value,
body[data-theme="empire"] .value,
body[data-theme="empire"] .empire-stat strong,
body[data-theme="empire"] .row-name,
body[data-theme="empire"] .team-name {
  color: var(--banker-navy) !important;
}

body[data-theme="empire"] .btn-submit,
body[data-theme="empire"] .btn-send,
body[data-theme="empire"] .btn-pay,
body[data-theme="empire"] .btn-primary,
body[data-theme="empire"] .btn-action,
body[data-theme="empire"] .btn-manage,
body[data-theme="empire"] .btn-buy,
body[data-theme="empire"] button[type="submit"],
body[data-theme="empire"] .btn-action[style*="#3b82f6"],
body[data-theme="empire"] .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;
}

body[data-theme="empire"] .btn-gold,
body[data-theme="empire"] .btn-live,
body[data-theme="empire"] .btn-back,
body[data-theme="empire"] .empire-pill.accent,
body[data-theme="empire"] .timed-trivia-pill {
  background: var(--banker-gold) !important;
  border-color: #A06E1F !important;
  color: var(--banker-navy) !important;
}

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

body[data-theme="empire"] .btn-ghost,
body[data-theme="empire"] .btn-secondary,
body[data-theme="empire"] .empire-pill,
body[data-theme="empire"] .tab.active {
  background: var(--banker-card) !important;
  border-color: var(--banker-line) !important;
  color: var(--banker-navy) !important;
}

body[data-theme="empire"] .bottom-nav {
  background: rgba(255, 251, 241, 0.96) !important;
  border-top-color: var(--banker-line) !important;
}

body[data-theme="empire"] .bnav-item,
body[data-theme="empire"] .bottom-nav a,
body[data-theme="empire"] .bottom-nav button {
  color: var(--banker-muted) !important;
}

body[data-theme="empire"] .bnav-item.active,
body[data-theme="empire"] .bottom-nav .active {
  color: var(--banker-navy) !important;
}

/* CR0247 dark-blue correction. Operator rejected the cream-heavy pass; make
   banker-login blue the main surface and use Jersey Gold at blue overlaps. */
body[data-theme="empire"] {
  --empire-dark-page: #07182D;
  --empire-dark-panel: #0A2540;
  --empire-dark-panel-2: #102944;
  --empire-dark-panel-3: #143554;
  --empire-dark-text: #FBF3DE;
  --empire-dark-muted: #B9C7D8;
  --empire-gold-line: rgba(212, 150, 53, 0.42);
}

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

.empire-auth-shell,
.empire-app-page .header,
.empire-page-hero,
body[data-theme="empire"] .hero,
body[data-theme="empire"] .card,
body[data-theme="empire"] .confirm-card,
body[data-theme="empire"] .contact-card,
body[data-theme="empire"] .bus-card,
body[data-theme="empire"] .ps2-booking-card,
body[data-theme="empire"] .ps2-booking-side,
body[data-theme="empire"] .ps2-beta-card,
body[data-theme="empire"] .ps2-faq-card,
body[data-theme="empire"] .team-list,
body[data-theme="empire"] .team-grid,
body[data-theme="empire"] .team-card,
body[data-theme="empire"] .team-item,
body[data-theme="empire"] .settings-card,
body[data-theme="empire"] .empire-card,
body[data-theme="empire"] .empire-stat,
body[data-theme="empire"] .stat-card,
body[data-theme="empire"] .modal-content,
body[data-theme="empire"] .podium-card,
body[data-theme="empire"] .champion-card,
body[data-theme="empire"] .ranking-table,
body[data-theme="empire"] .honours-card,
body[data-theme="empire"] .fame-shell {
  background:
    linear-gradient(145deg, rgba(16, 41, 68, 0.96), rgba(7, 24, 45, 0.96)) !important;
  border-color: var(--empire-gold-line) !important;
  color: var(--empire-dark-text) !important;
  box-shadow: 0 20px 48px rgba(2, 9, 20, 0.28) !important;
}

.empire-auth-shell,
.empire-app-page .header,
.empire-page-hero,
body[data-theme="empire"] .hero,
body[data-theme="empire"] .team-card,
body[data-theme="empire"] .stat-card,
body[data-theme="empire"] .empire-card,
body[data-theme="empire"] .settings-card {
  border-top: 3px solid #D49635 !important;
}

.empire-auth-panel,
body[data-theme="empire"] .auth-card,
body[data-theme="empire"] .reset-card,
body[data-theme="empire"] .support-item,
body[data-theme="empire"] .meta-item,
body[data-theme="empire"] .step,
body[data-theme="empire"] .details-box,
body[data-theme="empire"] .board-note,
body[data-theme="empire"] .team-metrics-card,
body[data-theme="empire"] .timed-trivia-entry,
body[data-theme="empire"] .tabs,
body[data-theme="empire"] input,
body[data-theme="empire"] select,
body[data-theme="empire"] textarea {
  background: rgba(6, 22, 42, 0.64) !important;
  border-color: rgba(226, 213, 180, 0.22) !important;
  color: var(--empire-dark-text) !important;
}

.empire-auth-intro,
body[data-theme="empire"] .mobile-header,
body[data-theme="empire"] .sidebar,
body[data-theme="empire"] .bottom-nav {
  background:
    radial-gradient(circle at 12% 0%, rgba(212, 150, 53, 0.16), transparent 18rem),
    linear-gradient(180deg, #0A2540, #06162A) !important;
  border-color: var(--empire-gold-line) !important;
}

body[data-theme="empire"] h1,
body[data-theme="empire"] h2,
body[data-theme="empire"] h3,
body[data-theme="empire"] .card h2,
body[data-theme="empire"] .container h2,
body[data-theme="empire"] .bus-card h3,
body[data-theme="empire"] .team-info h3,
body[data-theme="empire"] .team-card h3,
body[data-theme="empire"] .stat-value,
body[data-theme="empire"] .value,
body[data-theme="empire"] .empire-stat strong,
body[data-theme="empire"] .row-name,
body[data-theme="empire"] .team-name,
.empire-app-page .header h1,
.empire-app-page .header p,
.empire-page-hero h1,
.empire-page-hero p {
  color: var(--empire-dark-text) !important;
}

body[data-theme="empire"] p,
body[data-theme="empire"] li,
body[data-theme="empire"] .team-card p,
body[data-theme="empire"] .timed-trivia-entry .meta,
body[data-theme="empire"] .podium-meta,
body[data-theme="empire"] .champion-date,
body[data-theme="empire"] .stat-label,
body[data-theme="empire"] .event-date,
body[data-theme="empire"] .props,
body[data-theme="empire"] .empty-state {
  color: var(--empire-dark-muted) !important;
}

.empire-lockup-text span,
.empire-eyebrow,
.empire-page-kicker,
.empire-section-label,
body[data-theme="empire"] label {
  color: #D49635 !important;
}

body[data-theme="empire"] input::placeholder,
body[data-theme="empire"] textarea::placeholder {
  color: rgba(185, 199, 216, 0.72) !important;
}

body[data-theme="empire"] input:focus,
body[data-theme="empire"] select:focus,
body[data-theme="empire"] textarea:focus {
  border-color: #D49635 !important;
  box-shadow: 0 0 0 4px rgba(212, 150, 53, 0.18) !important;
}

body[data-theme="empire"] .btn-submit,
body[data-theme="empire"] .btn-send,
body[data-theme="empire"] .btn-pay,
body[data-theme="empire"] .btn-primary,
body[data-theme="empire"] .btn-action,
body[data-theme="empire"] .btn-manage,
body[data-theme="empire"] .btn-buy,
body[data-theme="empire"] button[type="submit"],
body[data-theme="empire"] .btn-ghost,
body[data-theme="empire"] .btn-secondary,
body[data-theme="empire"] .empire-pill,
body[data-theme="empire"] .tab.active {
  background: rgba(6, 22, 42, 0.82) !important;
  border: 1px solid var(--empire-gold-line) !important;
  color: var(--empire-dark-text) !important;
}

body[data-theme="empire"] .btn-gold,
body[data-theme="empire"] .btn-live,
body[data-theme="empire"] .btn-back,
body[data-theme="empire"] .empire-pill.accent,
body[data-theme="empire"] .timed-trivia-pill,
body[data-theme="empire"] .tab.active,
body[data-theme="empire"] .tabs button.active,
body[data-theme="empire"] .nav-item.active,
body[data-theme="empire"] .bnav-item.active,
body[data-theme="empire"] .bottom-nav .active {
  background: #D49635 !important;
  border-color: #D49635 !important;
  color: #06162A !important;
}

@media (max-width: 760px) {
  .empire-app-page .content,
  .car555-leaderboard-page .scoreboard-shell,
  .fame-shell,
  .empire-auth-shell {
    width: min(100% - 20px, 1120px) !important;
  }

  body[data-theme="empire"] .team-card,
  body[data-theme="empire"] .empire-card,
  body[data-theme="empire"] .stat-card,
  body[data-theme="empire"] .settings-card,
  body[data-theme="empire"] .modal-content {
    border-radius: 18px !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"] {
  --empire-card-blue: #0A2540;
  --empire-card-blue-deep: #07182D;
  --empire-live-gold-border: #D49635;
  --empire-live-border-soft: rgba(212, 150, 53, 0.38);
}

.empire-auth-shell,
.empire-auth-panel,
.empire-auth-intro,
.empire-app-page .header,
.empire-page-hero,
body[data-theme="empire"] .hero,
body[data-theme="empire"] .card,
body[data-theme="empire"] .confirm-card,
body[data-theme="empire"] .contact-card,
body[data-theme="empire"] .bus-card,
body[data-theme="empire"] .ps2-booking-card,
body[data-theme="empire"] .ps2-booking-side,
body[data-theme="empire"] .ps2-beta-card,
body[data-theme="empire"] .ps2-faq-card,
body[data-theme="empire"] .team-list,
body[data-theme="empire"] .team-grid,
body[data-theme="empire"] .team-card,
body[data-theme="empire"] .team-item,
body[data-theme="empire"] .settings-card,
body[data-theme="empire"] .empire-card,
body[data-theme="empire"] .empire-stat,
body[data-theme="empire"] .stat-card,
body[data-theme="empire"] .modal-content,
body[data-theme="empire"] .podium-card,
body[data-theme="empire"] .champion-card,
body[data-theme="empire"] .ranking-table,
body[data-theme="empire"] .honours-card,
body[data-theme="empire"] .fame-shell,
body[data-theme="empire"] .reset-card,
body[data-theme="empire"] .support-item,
body[data-theme="empire"] .meta-item,
body[data-theme="empire"] .step,
body[data-theme="empire"] .details-box,
body[data-theme="empire"] .board-note,
body[data-theme="empire"] .team-metrics-card,
body[data-theme="empire"] .timed-trivia-entry,
body[data-theme="empire"] .auth-card {
  background: var(--empire-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(--empire-dark-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.34) !important;
}

body[data-theme="empire"] .tabs,
body[data-theme="empire"] .tab,
body[data-theme="empire"] input,
body[data-theme="empire"] select,
body[data-theme="empire"] textarea {
  background: var(--empire-card-blue-deep) !important;
  border: 1px solid var(--empire-live-border-soft) !important;
  color: var(--empire-dark-text) !important;
}

body[data-theme="empire"].car555-dashboard-page,
body[data-theme="empire"].empire-app-page,
body[data-theme="empire"].car555-dashboard-page .content,
body[data-theme="empire"].empire-app-page .content {
  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(--empire-dark-text) !important;
}

body[data-theme="empire"].car555-dashboard-page .stat-card,
body[data-theme="empire"].car555-dashboard-page .team-list,
body[data-theme="empire"].car555-dashboard-page .team-item,
body[data-theme="empire"].car555-dashboard-page #beta-card,
body[data-theme="empire"].empire-app-page .stat-card,
body[data-theme="empire"].empire-app-page .team-list,
body[data-theme="empire"].empire-app-page .team-item,
body[data-theme="empire"].empire-app-page .team-card {
  background: var(--empire-card-blue) !important;
  border: 1px solid rgba(185, 199, 216, 0.24) !important;
  color: var(--empire-dark-text) !important;
}

body[data-theme="empire"] .empire-pill,
body[data-theme="empire"] .player-pill,
body[data-theme="empire"] .tabs .tab,
body[data-theme="empire"] .tabs button {
  background: var(--empire-card-blue-deep) !important;
  border: 1px solid var(--empire-live-border-soft) !important;
  color: var(--empire-dark-text) !important;
}

body[data-theme="empire"] .empire-pill.accent,
body[data-theme="empire"] .player-pill.accent,
body[data-theme="empire"] .tabs .tab.active,
body[data-theme="empire"] .tabs button.active {
  background: #D49635 !important;
  border-color: #D49635 !important;
  color: #06162A !important;
}

body[data-theme="empire"] [style*="#475569"],
body[data-theme="empire"] [style*="color:#475569"],
body[data-theme="empire"] [style*="color: #475569"] {
  color: var(--empire-dark-muted) !important;
}

body[data-theme="empire"] [style*="color: var(--jersey-blue)"],
body[data-theme="empire"] [style*="color:var(--jersey-blue)"] {
  color: var(--empire-dark-text) !important;
}

/* CR0247 auth-shell contrast guard: dashboard/teams/settings redirect to the
   public login shell when unauthenticated, so keep that card fully blue/gold. */
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel .auth-card .logo,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel .auth-card a.logo {
  color: #FBF3DE !important;
  text-shadow: 0 2px 16px rgba(2, 9, 20, 0.32) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel .auth-card #forgot-password-btn,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel .auth-card #resend-verification-btn {
  background: #D49635 !important;
  border: 1px solid #D49635 !important;
  color: #06162A !important;
}

/* CR0247 operator correction: card outlines use the banker-card steel/blue
   border. Jersey Gold is an accent/fill, not a heavy outline around every card. */
:root,
body[data-theme="empire"] {
  --empire-card-border: rgba(185, 199, 216, 0.24);
  --empire-card-border-strong: rgba(251, 243, 222, 0.34);
  --empire-button-bg: #F8F1DF;
  --empire-button-fg: #0A2540;
  --empire-button-border: rgba(251, 243, 222, 0.48);
}

body[data-theme="empire"]:not(#cr0247-force) .empire-auth-shell,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-intro,
body[data-theme="empire"]:not(#cr0247-force) .empire-page-hero,
body[data-theme="empire"]:not(#cr0247-force) .hero,
body[data-theme="empire"]:not(#cr0247-force) .card,
body[data-theme="empire"]:not(#cr0247-force) .confirm-card,
body[data-theme="empire"]:not(#cr0247-force) .contact-card,
body[data-theme="empire"]:not(#cr0247-force) .bus-card,
body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-card,
body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-side,
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-card,
body[data-theme="empire"]:not(#cr0247-force) .team-item,
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) .settings-card,
body[data-theme="empire"]:not(#cr0247-force) .empire-card,
body[data-theme="empire"]:not(#cr0247-force) .empire-stat,
body[data-theme="empire"]:not(#cr0247-force) .stat-card,
body[data-theme="empire"]:not(#cr0247-force) .modal-content,
body[data-theme="empire"]:not(#cr0247-force) .podium-card,
body[data-theme="empire"]:not(#cr0247-force) .champion-card,
body[data-theme="empire"]:not(#cr0247-force) .ranking-table,
body[data-theme="empire"]:not(#cr0247-force) .honours-card,
body[data-theme="empire"]:not(#cr0247-force) .fame-shell,
body[data-theme="empire"]:not(#cr0247-force) .reset-card,
body[data-theme="empire"]:not(#cr0247-force) .support-item,
body[data-theme="empire"]:not(#cr0247-force) .meta-item,
body[data-theme="empire"]:not(#cr0247-force) .step,
body[data-theme="empire"]:not(#cr0247-force) .details-box,
body[data-theme="empire"]:not(#cr0247-force) .board-note,
body[data-theme="empire"]:not(#cr0247-force) .auth-card {
  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(--empire-card-border) !important;
  border-top: 1px solid var(--empire-card-border-strong) !important;
  color: #FBF3DE !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.34) !important;
}

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 {
  border-top-width: 1px !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) .empire-pill,
body[data-theme="empire"]:not(#cr0247-force) button,
body[data-theme="empire"]:not(#cr0247-force) a.button {
  background: var(--empire-button-bg) !important;
  border: 1px solid var(--empire-button-border) !important;
  border-radius: 999px !important;
  color: var(--empire-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-gold,
body[data-theme="empire"]:not(#cr0247-force) .btn-live,
body[data-theme="empire"]:not(#cr0247-force) .btn-back,
body[data-theme="empire"]:not(#cr0247-force) .empire-pill.accent,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-pill,
body[data-theme="empire"]:not(#cr0247-force) .tab.active,
body[data-theme="empire"]:not(#cr0247-force) .tabs button.active,
body[data-theme="empire"]:not(#cr0247-force) .nav-item.active,
body[data-theme="empire"]:not(#cr0247-force) .bnav-item.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) .empire-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: #FBF3DE !important;
}

body[data-theme="empire"]:not(#cr0247-force) .team-card .status-badge,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-pill {
  background: var(--empire-button-bg) !important;
  border: 1px solid var(--empire-button-border) !important;
  color: var(--empire-button-fg) !important;
}

body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background: rgba(0,43,92"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background:rgba(0,43,92"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background: #ffffff"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background:#ffffff"] {
  background: #07182D !important;
  border: 1px solid rgba(185, 199, 216, 0.20) !important;
  color: #FBF3DE !important;
}

/* CR0247 operator lock: final public/app card and button treatment. Nested
   cards and form shells must not pick up gold/orange outline rules. */
:root,
body[data-theme="empire"] {
  --empire-card-border: rgba(185, 199, 216, 0.24);
  --empire-card-border-strong: rgba(251, 243, 222, 0.34);
  --empire-field-border: rgba(185, 199, 216, 0.20);
  --empire-button-bg: #F8F1DF;
  --empire-button-fg: #0A2540;
  --empire-button-border: rgba(251, 243, 222, 0.48);
}

body[data-theme="empire"]:not(#cr0247-force) .empire-auth-shell,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-panel,
body[data-theme="empire"]:not(#cr0247-force) .empire-auth-intro,
body[data-theme="empire"]:not(#cr0247-force) .empire-page-hero,
body[data-theme="empire"]:not(#cr0247-force) .hero,
body[data-theme="empire"]:not(#cr0247-force) .card,
body[data-theme="empire"]:not(#cr0247-force) .confirm-card,
body[data-theme="empire"]:not(#cr0247-force) .contact-card,
body[data-theme="empire"]:not(#cr0247-force) .bus-card,
body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-card,
body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-side,
body[data-theme="empire"]:not(#cr0247-force) .ps2-beta-card,
body[data-theme="empire"]:not(#cr0247-force) .ps2-faq-card,
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-card,
body[data-theme="empire"]:not(#cr0247-force) .team-item,
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) .settings-card,
body[data-theme="empire"]:not(#cr0247-force) .empire-card,
body[data-theme="empire"]:not(#cr0247-force) .empire-stat,
body[data-theme="empire"]:not(#cr0247-force) .stat-card,
body[data-theme="empire"]:not(#cr0247-force) .modal-content,
body[data-theme="empire"]:not(#cr0247-force) .podium-card,
body[data-theme="empire"]:not(#cr0247-force) .champion-card,
body[data-theme="empire"]:not(#cr0247-force) .ranking-table,
body[data-theme="empire"]:not(#cr0247-force) .honours-card,
body[data-theme="empire"]:not(#cr0247-force) .fame-shell,
body[data-theme="empire"]:not(#cr0247-force) .reset-card,
body[data-theme="empire"]:not(#cr0247-force) .support-item,
body[data-theme="empire"]:not(#cr0247-force) .meta-item,
body[data-theme="empire"]:not(#cr0247-force) .step,
body[data-theme="empire"]:not(#cr0247-force) .details-box,
body[data-theme="empire"]:not(#cr0247-force) .board-note,
body[data-theme="empire"]:not(#cr0247-force) .auth-card {
  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(--empire-card-border) !important;
  border-top: 1px solid var(--empire-card-border-strong) !important;
  color: #FBF3DE !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) .input-group,
body[data-theme="empire"]:not(#cr0247-force) .form-group,
body[data-theme="empire"]:not(#cr0247-force) input,
body[data-theme="empire"]:not(#cr0247-force) select,
body[data-theme="empire"]:not(#cr0247-force) textarea,
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background: rgba(0,43,92"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background:rgba(0,43,92"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background: #ffffff"],
body[data-theme="empire"]:not(#cr0247-force) .team-card [style*="background:#ffffff"] {
  background: #07182D !important;
  background-image: none !important;
  border: 1px solid var(--empire-field-border) !important;
  color: #FBF3DE !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) .empire-pill,
body[data-theme="empire"]:not(#cr0247-force) button,
body[data-theme="empire"]:not(#cr0247-force) a.button {
  background: var(--empire-button-bg) !important;
  border: 1px solid var(--empire-button-border) !important;
  border-radius: 999px !important;
  color: var(--empire-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) .btn-gold,
body[data-theme="empire"]:not(#cr0247-force) .btn-live,
body[data-theme="empire"]:not(#cr0247-force) .btn-back,
body[data-theme="empire"]:not(#cr0247-force) .empire-pill.accent,
body[data-theme="empire"]:not(#cr0247-force) .timed-trivia-pill,
body[data-theme="empire"]:not(#cr0247-force) .tab.active,
body[data-theme="empire"]:not(#cr0247-force) .tabs button.active,
body[data-theme="empire"]:not(#cr0247-force) .nav-item.active,
body[data-theme="empire"]:not(#cr0247-force) .bnav-item.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: #FBF3DE !important;
}

/* CR0247 final public lock: page-local styles still contained legacy cream,
   white and grey shells. This block deliberately wins late and keeps every
   public surface on the banker-login blue with subtle non-gold card borders. */
html body[data-theme="empire"],
html body[data-theme="empire"].public-page-v2,
html body[data-theme="empire"].car555-public-page,
html body[data-theme="empire"].player-auth-page {
  --cr0247-blue: #0A2540;
  --cr0247-blue-deep: #07182D;
  --cr0247-cream-text: #FBF3DE;
  --cr0247-muted-text: rgba(251, 243, 222, 0.74);
  --cr0247-card-border: rgba(185, 199, 216, 0.26);
  --cr0247-card-border-strong: rgba(251, 243, 222, 0.34);
  --cr0247-button-bg: #F8F1DF;
  --cr0247-button-fg: #0A2540;
  --cr0247-button-border: rgba(251, 243, 222, 0.52);
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"] .ps2,
html body[data-theme="empire"] .public-shell,
html body[data-theme="empire"] .page-shell,
html body[data-theme="empire"] .page,
html body[data-theme="empire"] .app-shell,
html body[data-theme="empire"] main,
html body[data-theme="empire"] .main,
html body[data-theme="empire"] .content,
html body[data-theme="empire"] .content-wrap,
html body[data-theme="empire"] .container,
html body[data-theme="empire"] .wrap,
html body[data-theme="empire"] .ps2-main {
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"] .ps2-header,
html body[data-theme="empire"] .ps2-header__inner,
html body[data-theme="empire"] .ps2-nav,
html body[data-theme="empire"] .public-header,
html body[data-theme="empire"] .site-header,
html body[data-theme="empire"] .topbar,
html body[data-theme="empire"] .navbar,
html body[data-theme="empire"] .nav,
html body[data-theme="empire"] .bottom-nav,
html body[data-theme="empire"] header,
html body[data-theme="empire"] footer {
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  border-color: var(--cr0247-card-border) !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"] .ps2-nav a,
html body[data-theme="empire"] .public-header a,
html body[data-theme="empire"] .site-header a,
html body[data-theme="empire"] .topbar a,
html body[data-theme="empire"] .navbar a,
html body[data-theme="empire"] .nav a,
html body[data-theme="empire"] .bottom-nav a {
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"] .ps2-hero,
html body[data-theme="empire"] .ps2-section,
html body[data-theme="empire"] .ps2-panel,
html body[data-theme="empire"] .ps2-card,
html body[data-theme="empire"] .ps2-booking-card,
html body[data-theme="empire"] .ps2-booking-side,
html body[data-theme="empire"] .ps2-beta-card,
html body[data-theme="empire"] .ps2-faq-card,
html body[data-theme="empire"] .faq-card,
html body[data-theme="empire"] .faq-section,
html body[data-theme="empire"] .content-section,
html body[data-theme="empire"] .legal-section,
html body[data-theme="empire"] .legal-card,
html body[data-theme="empire"] .policy-card,
html body[data-theme="empire"] .privacy-card,
html body[data-theme="empire"] .terms-card,
html body[data-theme="empire"] .booking-card,
html body[data-theme="empire"] .booking-panel,
html body[data-theme="empire"] .booking-summary,
html body[data-theme="empire"] .price-cta,
html body[data-theme="empire"] .fee-section,
html body[data-theme="empire"] .fee-card,
html body[data-theme="empire"] .confirm-card,
html body[data-theme="empire"] .contact-card,
html body[data-theme="empire"] .bus-card,
html body[data-theme="empire"] .rule-card,
html body[data-theme="empire"] .rules-card,
html body[data-theme="empire"] .leaderboard-card,
html body[data-theme="empire"] .ranking-table,
html body[data-theme="empire"] .ranking-card,
html body[data-theme="empire"] .podium-card,
html body[data-theme="empire"] .champion-card,
html body[data-theme="empire"] .honours-card,
html body[data-theme="empire"] .fame-shell,
html body[data-theme="empire"] .fame-card,
html body[data-theme="empire"] .beta-card,
html body[data-theme="empire"] .feedback-card,
html body[data-theme="empire"] .memory-card,
html body[data-theme="empire"] .memories-card,
html body[data-theme="empire"] .dashboard-card,
html body[data-theme="empire"] .settings-card,
html body[data-theme="empire"] .team-list,
html body[data-theme="empire"] .team-card,
html body[data-theme="empire"] .team-item,
html body[data-theme="empire"] .team-metrics-card,
html body[data-theme="empire"] .timed-trivia-entry,
html body[data-theme="empire"] .stat-card,
html body[data-theme="empire"] .mini-card,
html body[data-theme="empire"] .card,
html body[data-theme="empire"] .support-item,
html body[data-theme="empire"] .meta-item,
html body[data-theme="empire"] .step,
html body[data-theme="empire"] .details-box,
html body[data-theme="empire"] .board-note,
html body[data-theme="empire"] .reset-card,
html body[data-theme="empire"] .auth-card,
html body[data-theme="empire"] .modal-content,
html body[data-theme="empire"] .modal-card,
html body[data-theme="empire"] article,
html body[data-theme="empire"] section.card,
html body[data-theme="empire"] section[style*="background"],
html body[data-theme="empire"] div[style*="background: white"],
html body[data-theme="empire"] div[style*="background:white"],
html body[data-theme="empire"] div[style*="background: #fff"],
html body[data-theme="empire"] div[style*="background:#fff"],
html body[data-theme="empire"] div[style*="background: #ffffff"],
html body[data-theme="empire"] div[style*="background:#ffffff"],
html body[data-theme="empire"] div[style*="background: #f8fafc"],
html body[data-theme="empire"] div[style*="background:#f8fafc"],
html body[data-theme="empire"] div[style*="background: #f1f5f9"],
html body[data-theme="empire"] div[style*="background:#f1f5f9"],
html body[data-theme="empire"] div[style*="background: #fffbeb"],
html body[data-theme="empire"] div[style*="background:#fffbeb"],
html body[data-theme="empire"] div[style*="background: #fff8db"],
html body[data-theme="empire"] div[style*="background:#fff8db"],
html body[data-theme="empire"] div[style*="background: #fff7ed"],
html body[data-theme="empire"] div[style*="background:#fff7ed"],
html body[data-theme="empire"] div[style*="background: var(--ps2-surface"],
html body[data-theme="empire"] div[style*="background: var(--bg"] {
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-card-border) !important;
  border-top-color: var(--cr0247-card-border-strong) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.26) !important;
}

html body[data-theme="empire"] .team-card,
html body[data-theme="empire"] .team-item,
html body[data-theme="empire"] .timed-trivia-entry,
html body[data-theme="empire"] .ranking-row,
html body[data-theme="empire"] .honour-row,
html body[data-theme="empire"] .reward-row,
html body[data-theme="empire"] .input-group,
html body[data-theme="empire"] .form-group,
html body[data-theme="empire"] .field,
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-blue-deep) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-card-border) !important;
  color: var(--cr0247-cream-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, figcaption, span, div) {
  color: var(--cr0247-cream-text) !important;
}

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

html body[data-theme="empire"] a {
  color: #F4C56B !important;
}

html body[data-theme="empire"] :where(.btn, .btn-action, .btn-manage, .btn-submit, .btn-primary, .btn-secondary, .btn-ghost, .btn-main, .ps2-btn, .ps2-button, .cta, .cta-small, .book-session, .dashboard-button, .nav-button, button, a.button, input[type="submit"]) {
  background: var(--cr0247-button-bg) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-button-border) !important;
  border-radius: 999px !important;
  color: var(--cr0247-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-main, .ps2-btn, .ps2-button, .cta, .cta-small, .book-session, .dashboard-button, .nav-button, button, a.button, input[type="submit"]) * {
  color: inherit !important;
}

html body[data-theme="empire"] :where(.active, .is-active, .selected).tab,
html body[data-theme="empire"] :where(.tab.active, .tabs button.active, .nav-item.active, .bnav-item.active, .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;
}

html body[data-theme="empire"] :where(.active, .is-active, .selected).tab *,
html body[data-theme="empire"] :where(.tab.active, .tabs button.active, .nav-item.active, .bnav-item.active, .status-chip, .pill.ok, .badge.ok) * {
  color: inherit !important;
}

@media (max-width: 760px) {
  html body[data-theme="empire"] main,
  html body[data-theme="empire"] .content,
  html body[data-theme="empire"] .container,
  html body[data-theme="empire"] .wrap {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body[data-theme="empire"] :where(.card, .team-card, .ps2-card, .ps2-booking-card, .ps2-booking-side, .content-section, .faq-section, .contact-card, .bus-card, .memory-card) {
    border-radius: 18px !important;
  }
}

/* CR0247 page-specific public cleanup: leaderboard and Hall of Fame had older
   !important selectors with higher specificity than the generic final lock. */
html body[data-theme="empire"].public-page-v2 .scoreboard-shell,
html body[data-theme="empire"].public-page-v2 .scoreboard-hero,
html body[data-theme="empire"].public-page-v2 .podium-grid,
html body[data-theme="empire"].public-page-v2 .fame-shell,
html body[data-theme="empire"].public-page-v2 .champion-grid,
html body[data-theme="empire"].car555-public-page .scoreboard-shell,
html body[data-theme="empire"].car555-public-page .scoreboard-hero,
html body[data-theme="empire"].car555-public-page .podium-grid {
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].public-page-v2 .scoreboard-hero,
html body[data-theme="empire"].public-page-v2 .honours-card,
html body[data-theme="empire"].public-page-v2 .champion-card,
html body[data-theme="empire"].car555-public-page .scoreboard-hero {
  border: 1px solid var(--cr0247-card-border) !important;
  border-top-color: var(--cr0247-card-border-strong) !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 44px rgba(2, 9, 20, 0.26) !important;
}

html body[data-theme="empire"].public-page-v2 .scoreboard-shell h1,
html body[data-theme="empire"].public-page-v2 .scoreboard-shell h2,
html body[data-theme="empire"].public-page-v2 .scoreboard-shell p,
html body[data-theme="empire"].public-page-v2 .scoreboard-shell b,
html body[data-theme="empire"].public-page-v2 .scoreboard-shell span,
html body[data-theme="empire"].public-page-v2 .fame-shell h1,
html body[data-theme="empire"].public-page-v2 .fame-shell h2,
html body[data-theme="empire"].public-page-v2 .fame-shell p,
html body[data-theme="empire"].public-page-v2 .fame-shell b,
html body[data-theme="empire"].public-page-v2 .fame-shell span,
html body[data-theme="empire"].car555-public-page .scoreboard-shell h1,
html body[data-theme="empire"].car555-public-page .scoreboard-shell h2,
html body[data-theme="empire"].car555-public-page .scoreboard-shell p,
html body[data-theme="empire"].car555-public-page .scoreboard-shell b,
html body[data-theme="empire"].car555-public-page .scoreboard-shell span {
  color: var(--cr0247-cream-text) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"].public-page-v2 .scoreboard-shell .kicker,
html body[data-theme="empire"].public-page-v2 .fame-shell .fame-kicker,
html body[data-theme="empire"].public-page-v2 .fame-shell .stat-value,
html body[data-theme="empire"].public-page-v2 .fame-shell .edition,
html body[data-theme="empire"].public-page-v2 .fame-shell .worth,
html body[data-theme="empire"].car555-public-page .scoreboard-shell .kicker {
  color: #D49635 !important;
}

html body[data-theme="empire"].public-page-v2 .scoreboard-shell .hero-copy,
html body[data-theme="empire"].public-page-v2 .fame-shell .fame-copy,
html body[data-theme="empire"].public-page-v2 .fame-shell .champion-date,
html body[data-theme="empire"].public-page-v2 .fame-shell .stat-label,
html body[data-theme="empire"].public-page-v2 .fame-shell .event-date,
html body[data-theme="empire"].public-page-v2 .fame-shell .props,
html body[data-theme="empire"].public-page-v2 .fame-shell .empty-state,
html body[data-theme="empire"].car555-public-page .scoreboard-shell .hero-copy {
  color: var(--cr0247-muted-text) !important;
}

html body[data-theme="empire"] .btn-back,
html body[data-theme="empire"].public-page-v2 .btn-back,
html body[data-theme="empire"].car555-public-page .btn-back {
  background: var(--cr0247-button-bg) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-button-border) !important;
  border-radius: 999px !important;
  color: var(--cr0247-button-fg) !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

/* CR0247 homepage follow-up: restore the Jersey map treatment and gold-led
   hierarchy without reopening the wider public-page visual lock. */
html body[data-theme="empire"].public-page-v2.public-home-page {
  --cr0247-home-blue: #0A2540;
  --cr0247-home-blue-deep: #061A2F;
  --cr0247-home-gold: #D49635;
  --cr0247-home-cream: #FBF3DE;
  --cr0247-home-muted: rgba(251, 243, 222, 0.76);
  --cr0247-home-border: rgba(212, 150, 53, 0.42);
  --cr0247-home-neon-cyan: rgba(75, 218, 255, 0.72);
  --cr0247-home-neon-gold: rgba(212, 150, 53, 0.54);
  --cr0247-home-neon-rose: rgba(255, 105, 180, 0.22);
  background: var(--cr0247-home-blue) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2,
html body[data-theme="empire"].public-page-v2.public-home-page main,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section--alt,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section__inner {
  background: var(--cr0247-home-blue) !important;
  background-image: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 150, 53, 0.12), transparent 24rem),
    linear-gradient(145deg, var(--cr0247-home-blue-deep), var(--cr0247-home-blue)) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero::before,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
  background-color: transparent !important;
  background-image: url("assets/brand/web/jersey-silhouette.svg") !important;
  background-position: center 48% !important;
  background-repeat: no-repeat !important;
  background-size: min(980px, 86vw) auto !important;
  filter: invert(63%) sepia(67%) saturate(611%) hue-rotate(354deg) brightness(87%) contrast(88%) !important;
  opacity: 0.34 !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing::before {
  background-size: min(560px, 82vw) auto !important;
  opacity: 0.30 !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero__motif,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing__motif {
  display: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero__inner,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing__inner,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section__head,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-grid,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section__inner {
  position: relative !important;
  z-index: 1 !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero__inner,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section__head,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing__inner {
  text-align: center !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero__lede,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing__body {
  width: min(780px, 100%) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  color: var(--cr0247-home-cream) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-display,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-display *,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-card__title,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-card__num,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing__price,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-trust-grid h4 {
  color: var(--cr0247-home-gold) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-eyebrow,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-card__body,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-trust-row,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-trust-row *,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-trust-grid p {
  color: var(--cr0247-home-muted) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page #experience.ps2-section--alt {
  padding-top: clamp(64px, 8vw, 108px) !important;
  padding-bottom: clamp(64px, 8vw, 108px) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page #experience .ps2-section__inner {
  width: min(1100px, calc(100% - 36px)) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page #experience .ps2-card,
html body[data-theme="empire"].public-page-v2.public-home-page #how-it-works .ps2-card,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-trust-card {
  background: rgba(6, 26, 47, 0.58) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-home-neon-cyan) !important;
  box-shadow:
    0 0 0 1px var(--cr0247-home-neon-gold),
    0 0 24px rgba(75, 218, 255, 0.22),
    0 0 44px var(--cr0247-home-neon-rose),
    0 18px 42px rgba(2, 9, 20, 0.30) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-card__icon {
  background: rgba(212, 150, 53, 0.13) !important;
  border: 1px solid rgba(75, 218, 255, 0.50) !important;
  color: var(--cr0247-home-gold) !important;
  box-shadow: 0 0 18px rgba(75, 218, 255, 0.18) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing {
  width: min(1040px, calc(100% - 36px)) !important;
  margin-inline: auto !important;
  border: 1px solid var(--cr0247-home-neon-cyan) !important;
  box-shadow:
    0 0 0 1px var(--cr0247-home-neon-gold),
    0 0 30px rgba(75, 218, 255, 0.22),
    0 0 56px var(--cr0247-home-neon-rose),
    0 22px 58px rgba(2, 9, 20, 0.34) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero .ps2-book-link.ps2-btn--primary,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing .ps2-book-link {
  background: var(--cr0247-home-gold) !important;
  background-image: none !important;
  border-color: rgba(212, 150, 53, 0.80) !important;
  color: #06162A !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero .ps2-book-link.ps2-btn--primary *,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing .ps2-book-link * {
  color: inherit !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero {
  background: var(--cr0247-home-blue) !important;
  background-image: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section--alt,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-section__inner,
html body[data-theme="empire"].public-page-v2.public-home-page #how-it-works,
html body[data-theme="empire"].public-page-v2.public-home-page #experience,
html body[data-theme="empire"].public-page-v2.public-home-page #pricing,
html body[data-theme="empire"].public-page-v2.public-home-page #trust,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-footer,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-footer__legal {
  border: 0 !important;
  border-top: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-header {
  border-bottom: 1px solid rgba(185, 199, 216, 0.26) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-footer {
  border-top: 1px solid rgba(185, 199, 216, 0.26) !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-header__inner,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav {
  border: 0 !important;
  box-shadow: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav {
  background: rgba(10, 37, 64, 0.98) !important;
  background-image: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav a {
  color: var(--cr0247-home-gold) !important;
  background: transparent !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav a:hover,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav a:focus-visible {
  background: rgba(212, 150, 53, 0.12) !important;
  color: var(--cr0247-home-gold) !important;
}

@media (max-width: 760px) {
  html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero::before {
    background-position: center 42% !important;
    background-size: 620px auto !important;
    opacity: 0.20 !important;
  }

  html body[data-theme="empire"].public-page-v2.public-home-page #experience .ps2-section__inner,
  html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing {
    width: min(100% - 28px, 1040px) !important;
  }
}

/* CR0247 dashboard contrast follow-up: keep account dashboard copy readable on
   the blue shell while preserving existing dashboard data/loading behaviour. */
html body[data-theme="empire"].car555-dashboard-page {
  --cr0247-dash-gold: #D49635;
  --cr0247-dash-cream: #FBF3DE;
  --cr0247-dash-muted: rgba(251, 243, 222, 0.76);
  --cr0247-dash-green: #8ED39A;
  --cr0247-dash-yellow: #F4C56B;
  --cr0247-dash-red: #F28B7C;
}

html body[data-theme="empire"].car555-dashboard-page .empire-page-hero h1,
html body[data-theme="empire"].car555-dashboard-page .empire-page-hero h1 *,
html body[data-theme="empire"].car555-dashboard-page .team-list h2,
html body[data-theme="empire"].car555-dashboard-page .empire-card h2,
html body[data-theme="empire"].car555-dashboard-page .team-info h3 {
  color: var(--cr0247-dash-gold) !important;
}

html body[data-theme="empire"].car555-dashboard-page .empire-page-hero p:not(.empire-eyebrow),
html body[data-theme="empire"].car555-dashboard-page .team-info p,
html body[data-theme="empire"].car555-dashboard-page .team-info p *,
html body[data-theme="empire"].car555-dashboard-page .empire-card p,
html body[data-theme="empire"].car555-dashboard-page .empire-auth-points span,
html body[data-theme="empire"].car555-dashboard-page .empire-auth-points span * {
  color: var(--cr0247-dash-cream) !important;
}

html body[data-theme="empire"].car555-dashboard-page .empire-eyebrow,
html body[data-theme="empire"].car555-dashboard-page .empire-section-label,
html body[data-theme="empire"].car555-dashboard-page .empire-stat span,
html body[data-theme="empire"].car555-dashboard-page .stat-card h4 {
  color: var(--cr0247-dash-muted) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"].car555-dashboard-page .empire-stat .value,
html body[data-theme="empire"].car555-dashboard-page .stat-card .value,
html body[data-theme="empire"].car555-dashboard-page #stat-teams,
html body[data-theme="empire"].car555-dashboard-page #stat-date,
html body[data-theme="empire"].car555-dashboard-page #stat-balance {
  color: var(--cr0247-dash-gold) !important;
}

html body[data-theme="empire"].car555-dashboard-page .team-info code {
  color: var(--cr0247-dash-yellow) !important;
}

html body[data-theme="empire"].car555-dashboard-page .team-status {
  border: 1px solid rgba(251, 243, 222, 0.26) !important;
  letter-spacing: 0.08em !important;
}

html body[data-theme="empire"].car555-dashboard-page .team-status[data-state="booked"] {
  background: rgba(74, 111, 78, 0.24) !important;
  border-color: rgba(142, 211, 154, 0.62) !important;
  color: var(--cr0247-dash-green) !important;
}

html body[data-theme="empire"].car555-dashboard-page .team-status[data-state="in-progress"] {
  background: rgba(244, 197, 107, 0.22) !important;
  border-color: rgba(244, 197, 107, 0.76) !important;
  color: var(--cr0247-dash-yellow) !important;
}

html body[data-theme="empire"].car555-dashboard-page .team-status[data-state="finished"] {
  background: rgba(168, 65, 47, 0.24) !important;
  border-color: rgba(242, 139, 124, 0.70) !important;
  color: var(--cr0247-dash-red) !important;
}

/* CR0247 booking fee follow-up: remove the remaining cream payment panel
   while keeping the booking flow and SumUp/free-session logic untouched. */
html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fee {
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.22), transparent 15rem),
    radial-gradient(circle at 10% 100%, rgba(75, 218, 255, 0.16), transparent 16rem),
    linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-radius: 18px !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.20),
    0 18px 42px rgba(2, 9, 20, 0.30) !important;
}

html body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-page .input-group {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fee__label {
  color: var(--cr0247-muted-text) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fee__price {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.24) !important;
}

html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fee__note,
html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fineprint {
  color: var(--cr0247-muted-text) !important;
}

html body[data-theme="empire"] .ps2-booking-page .ps2-booking-fineprint a {
  color: #F4C56B !important;
}

html body[data-theme="empire"] .ps2-booking-page #payment-status {
  background: rgba(7, 24, 45, 0.72) !important;
  border: 1px solid rgba(75, 218, 255, 0.42) !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-page #btn-pay {
  background: #D49635 !important;
  border-color: rgba(212, 150, 53, 0.82) !important;
  color: #06162A !important;
  box-shadow:
    0 0 0 1px rgba(251, 243, 222, 0.22),
    0 14px 28px rgba(2, 9, 20, 0.24),
    0 0 24px rgba(212, 150, 53, 0.18) !important;
}

html body[data-theme="empire"]:not(#cr0247-force) .ps2-booking-page #btn-pay * {
  color: inherit !important;
}

html body[data-theme="empire"]:not(#cr0247-force) footer,
html body[data-theme="empire"]:not(#cr0247-force) .ps2-footer {
  border-top: 1px solid rgba(185, 199, 216, 0.26) !important;
}

/* CR0247 terms/refunds follow-up: make the legal hierarchy read as headings,
   not body copy, and keep card borders on the same neon treatment. */
html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.14), transparent 20rem),
    rgba(6, 26, 47, 0.62) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.20),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.34) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-title,
html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-section h2 {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-title {
  border-bottom-color: rgba(75, 218, 255, 0.58) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-section {
  border-bottom-color: rgba(185, 199, 216, 0.26) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-legal-page .ps2-legal-section:target {
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.28),
    0 0 24px rgba(75, 218, 255, 0.16) !important;
}

/* CR0247 beta feedback follow-up: remove remaining white nested cards and
   align beta actions/headings/buttons with the public blue/gold system. */
html body[data-theme="empire"].public-page-v2:not(#cr0247-force) .ps2-beta-page .ps2-beta-card,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.14), transparent 20rem),
    rgba(6, 26, 47, 0.62) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.20),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.34) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-card h2 {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-sub,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-form-grid .hint,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-empty {
  color: var(--cr0247-muted-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-info-item,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-report-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(212, 150, 53, 0.12), transparent 12rem),
    rgba(7, 24, 45, 0.76) !important;
  border: 1px solid rgba(75, 218, 255, 0.46) !important;
  border-top-color: rgba(251, 243, 222, 0.26) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.18),
    0 12px 28px rgba(2, 9, 20, 0.24) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-info-item strong,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-report-card h3 {
  color: #D49635 !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-info-item span,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-report-card .report-body {
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-report-card .report-meta {
  color: var(--cr0247-muted-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-pill {
  background: rgba(7, 24, 45, 0.76) !important;
  border: 1px solid rgba(75, 218, 255, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-actions .ps2-btn,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-submit-row .ps2-btn:not(#submit-btn) {
  background: var(--cr0247-button-bg) !important;
  background-image: none !important;
  border: 1px solid var(--cr0247-button-border) !important;
  color: var(--cr0247-button-fg) !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-submit-row #submit-btn {
  background: #D49635 !important;
  background-image: none !important;
  border: 1px solid rgba(212, 150, 53, 0.82) !important;
  color: #06162A !important;
  box-shadow:
    0 0 0 1px rgba(251, 243, 222, 0.22),
    0 14px 28px rgba(2, 9, 20, 0.24),
    0 0 24px rgba(212, 150, 53, 0.18) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-actions .ps2-btn *,
html body[data-theme="empire"].public-page-v2 .ps2-beta-page .ps2-beta-submit-row .ps2-btn * {
  color: inherit !important;
}

/* CR0247 rules follow-up: match the legal-page hierarchy and add property
   group colours without changing the rule copy or pricing table content. */
html body[data-theme="empire"].public-page-v2:not(#cr0247-force) .ps2-rules-page .ps2-rules-card,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-card {
  background:
    radial-gradient(circle at 90% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.14), transparent 20rem),
    rgba(6, 26, 47, 0.62) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.20),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.34) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-display,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section h3 {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-hero__lede,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section p,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section li,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-table td {
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section {
  border-bottom-color: rgba(185, 199, 216, 0.26) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section li::before,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-key,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rule-section a {
  color: #F4C56B !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-table-wrap {
  background: rgba(7, 24, 45, 0.62) !important;
  border: 1px solid rgba(75, 218, 255, 0.46) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.18),
    0 12px 28px rgba(2, 9, 20, 0.24) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-table th {
  background: rgba(7, 24, 45, 0.92) !important;
  color: #D49635 !important;
  border-bottom: 1px solid rgba(75, 218, 255, 0.34) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-table td {
  border-bottom-color: rgba(185, 199, 216, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row {
  --rules-property-colour: var(--cr0247-cream-text);
  --rules-property-glow: rgba(251, 243, 222, 0.16);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--brown {
  --rules-property-colour: #C1864A;
  --rules-property-glow: rgba(193, 134, 74, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--light-blue {
  --rules-property-colour: #82D9FF;
  --rules-property-glow: rgba(130, 217, 255, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--pink {
  --rules-property-colour: #FF8FCB;
  --rules-property-glow: rgba(255, 143, 203, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--orange {
  --rules-property-colour: #F4A24A;
  --rules-property-glow: rgba(244, 162, 74, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--red {
  --rules-property-colour: #F17474;
  --rules-property-glow: rgba(241, 116, 116, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--green {
  --rules-property-colour: #8ED39A;
  --rules-property-glow: rgba(142, 211, 154, 0.30);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--dark-blue {
  --rules-property-colour: #88A9FF;
  --rules-property-glow: rgba(71, 105, 214, 0.36);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--station {
  --rules-property-colour: #D8DCE6;
  --rules-property-glow: rgba(216, 220, 230, 0.24);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row--utility {
  --rules-property-colour: #F3E17A;
  --rules-property-glow: rgba(243, 225, 122, 0.28);
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row td:first-child,
html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-property-row td:nth-child(2) {
  color: var(--rules-property-colour) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 14px var(--rules-property-glow) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-badge {
  background: rgba(7, 24, 45, 0.76) !important;
  border: 1px solid rgba(75, 218, 255, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-rules-page .ps2-rules-badge--accent {
  color: #D49635 !important;
}

/* CR0247 public/app follow-up: align requested headings, card glow, memories,
   leaderboard table header, and settings form fields with the Empire Mark blue
   and Jersey Gold system without changing page behaviour. */
html body[data-theme="empire"] {
  --cr0247-gold: #D49635;
  --cr0247-gold-soft: #F4C56B;
  --cr0247-neon-cyan: #4BDAFF;
  --cr0247-neon-pink: #FF69B4;
  --cr0247-glow-card-bg:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(7, 24, 45, 0.98));
  --cr0247-glow-card-border: rgba(75, 218, 255, 0.62);
  --cr0247-glow-card-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.22),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.36);
}

html body[data-theme="empire"].car555-bus-page header h1,
html body[data-theme="empire"].car555-bus-page .container > h2,
html body[data-theme="empire"].car555-leaderboard-page .scoreboard-shell #page-title,
html body[data-theme="empire"] .ps2-booking-page .ps2-display--h1,
html body[data-theme="empire"].teams-page .empire-page-hero h1,
html body[data-theme="empire"].settings-page .empire-page-hero h1 {
  color: var(--cr0247-gold) !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.24) !important;
}

html body[data-theme="empire"].car555-bus-page .bus-card,
html body[data-theme="empire"].public-page-v2 .champion-card,
html body[data-theme="empire"].public-page-v2 .honours-card,
html body[data-theme="empire"].car555-leaderboard-page .podium-card,
html body[data-theme="empire"].car555-leaderboard-page .board-note,
html body[data-theme="empire"].car555-leaderboard-page .ranking-table,
html body[data-theme="empire"].memories-page .memory-card,
html body[data-theme="empire"].teams-page .empire-card,
html body[data-theme="empire"].teams-page .team-card,
html body[data-theme="empire"].settings-page .settings-card {
  background: var(--cr0247-glow-card-bg) !important;
  border: 1px solid var(--cr0247-glow-card-border) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow: var(--cr0247-glow-card-shadow) !important;
}

html body[data-theme="empire"].public-page-v2 .champion-card[data-rank="1"],
html body[data-theme="empire"].car555-leaderboard-page .podium-card[data-rank="1"] {
  border-color: rgba(212, 150, 53, 0.78) !important;
  box-shadow:
    0 0 0 1px rgba(251, 243, 222, 0.22),
    0 0 34px rgba(212, 150, 53, 0.30),
    0 0 46px rgba(75, 218, 255, 0.20),
    0 24px 64px rgba(2, 9, 20, 0.38) !important;
}

html body[data-theme="empire"].car555-bus-page .bus-card:hover,
html body[data-theme="empire"].public-page-v2 .champion-card:hover,
html body[data-theme="empire"].public-page-v2 .honours-card:hover,
html body[data-theme="empire"].car555-leaderboard-page .podium-card:hover,
html body[data-theme="empire"].memories-page .memory-card:hover,
html body[data-theme="empire"].teams-page .team-card:hover,
html body[data-theme="empire"].settings-page .settings-card:hover {
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.34),
    0 0 34px rgba(75, 218, 255, 0.28),
    0 0 58px rgba(255, 105, 180, 0.16),
    0 26px 66px rgba(2, 9, 20, 0.40) !important;
}

html body[data-theme="empire"].car555-bus-page .container .btn-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: fit-content !important;
  margin: 40px auto 0 !important;
  padding: 12px 24px !important;
  background: var(--cr0247-button-bg) !important;
  border: 1px solid var(--cr0247-button-border) !important;
  border-radius: 999px !important;
  color: var(--cr0247-button-fg) !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(2, 9, 20, 0.18) !important;
}

html body[data-theme="empire"].car555-bus-page .container .btn-back * {
  color: inherit !important;
}

html body[data-theme="empire"].car555-leaderboard-page .scoreboard-shell,
html body[data-theme="empire"].car555-leaderboard-page .scoreboard-hero > div:first-child,
html body[data-theme="empire"].car555-leaderboard-page .podium-card,
html body[data-theme="empire"].car555-leaderboard-page .board-note,
html body[data-theme="empire"].car555-leaderboard-page .ranking-table,
html body[data-theme="empire"].car555-leaderboard-page .ranking-row {
  text-align: left !important;
}

html body[data-theme="empire"].car555-leaderboard-page .scoreboard-shell .kicker {
  color: var(--cr0247-gold) !important;
  display: block !important;
  max-width: 760px !important;
  text-align: center !important;
}

html body[data-theme="empire"].car555-leaderboard-page .podium-card {
  place-items: stretch !important;
  justify-items: start !important;
}

html body[data-theme="empire"].car555-leaderboard-page .podium-token {
  margin-left: 0 !important;
  margin-right: auto !important;
}

html body[data-theme="empire"].car555-leaderboard-page .ranking-head {
  background: var(--cr0247-gold) !important;
  border-color: rgba(212, 150, 53, 0.82) !important;
  color: #06162A !important;
  box-shadow: 0 0 22px rgba(212, 150, 53, 0.18) !important;
}

html body[data-theme="empire"].car555-leaderboard-page .ranking-head span {
  color: #06162A !important;
}

html body[data-theme="empire"].memories-page,
html body[data-theme="empire"].memories-page .content {
  background: var(--cr0247-blue) !important;
  background-image: none !important;
  color: var(--cr0247-cream-text) !important;
}

html body[data-theme="empire"].memories-page .header h1,
html body[data-theme="empire"].memories-page .memory-info h3 {
  color: var(--cr0247-gold) !important;
}

html body[data-theme="empire"].memories-page .memory-info p,
html body[data-theme="empire"].memories-page .memory-date,
html body[data-theme="empire"].memories-page #memories-container > p {
  color: var(--cr0247-muted-text) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"].memories-page .memory-img {
  background: var(--cr0247-blue-deep) !important;
  border-bottom: 1px solid rgba(75, 218, 255, 0.38) !important;
  box-shadow:
    inset 0 0 0 1px rgba(251, 243, 222, 0.10),
    0 0 26px rgba(75, 218, 255, 0.18) !important;
}

html body[data-theme="empire"].settings-page .settings-card h2 {
  color: var(--cr0247-cream-text) !important;
  border-bottom-color: rgba(75, 218, 255, 0.38) !important;
  text-shadow: 0 0 14px rgba(251, 243, 222, 0.12) !important;
}

html body[data-theme="empire"].settings-page .form-group {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body[data-theme="empire"].settings-page label {
  color: var(--cr0247-muted-text) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"].settings-page input {
  background: rgba(7, 24, 45, 0.86) !important;
  border: 1px solid rgba(75, 218, 255, 0.44) !important;
  color: var(--cr0247-cream-text) !important;
  box-shadow: inset 0 0 0 1px rgba(251, 243, 222, 0.06) !important;
}

html body[data-theme="empire"].settings-page input:focus {
  border-color: rgba(212, 150, 53, 0.82) !important;
  box-shadow:
    inset 0 0 0 1px rgba(251, 243, 222, 0.08),
    0 0 0 4px rgba(212, 150, 53, 0.14) !important;
}

/* CR0247 hard lock: page-local legacy CSS still wins on several older app
   pages, so these selectors deliberately out-specific those rules. */
html body[data-theme="empire"].empire-app-page.teams-page .content .empire-page-hero h1,
html body[data-theme="empire"].empire-app-page.settings-page .content .empire-page-hero h1 {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.24) !important;
}

html body[data-theme="empire"].empire-app-page.settings-page .content .settings-card > h2 {
  color: #FBF3DE !important;
  border-bottom-color: rgba(75, 218, 255, 0.38) !important;
  text-shadow: 0 0 14px rgba(251, 243, 222, 0.12) !important;
}

html body[data-theme="empire"].public-page-v2.car555-public-page.car555-bus-page .container .grid > .bus-card,
html body[data-theme="empire"].public-page-v2.car555-public-page .fame-shell .champion-grid > .champion-card,
html body[data-theme="empire"].public-page-v2.car555-public-page .fame-shell .honours-card,
html body[data-theme="empire"].public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .podium-grid > .podium-card,
html body[data-theme="empire"].public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .board-note,
html body[data-theme="empire"].public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .ranking-table,
html body[data-theme="empire"].empire-app-page.teams-page .content .empire-card,
html body[data-theme="empire"].empire-app-page.teams-page .content .team-grid > .team-card,
html body[data-theme="empire"].empire-app-page.settings-page .content .settings-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.22),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.36) !important;
}

html body[data-theme="empire"].empire-app-page.settings-page .content .settings-card .form-group {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* CR0247 specificity lock: legacy selectors carry ID specificity through
   :not(#cr0247-force) and :has(#map), so the final visual contract mirrors
   that specificity and then wins by source order. */
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.teams-page .content .empire-page-hero h1,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.settings-page .content .empire-page-hero h1 {
  color: #D49635 !important;
  text-shadow: 0 0 18px rgba(212, 150, 53, 0.24) !important;
}

html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.settings-page .content .settings-card > h2 {
  color: #FBF3DE !important;
  border-bottom-color: rgba(75, 218, 255, 0.38) !important;
  text-shadow: 0 0 14px rgba(251, 243, 222, 0.12) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page.car555-bus-page .container .grid > .bus-card,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page .fame-shell .champion-grid > .champion-card,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page .fame-shell .honours-card,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .podium-grid > .podium-card,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .board-note,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2.car555-public-page.car555-leaderboard-page .scoreboard-shell .ranking-table,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.teams-page .content .empire-card,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.teams-page .content .team-grid > .team-card,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.settings-page .content .settings-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.22),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.36) !important;
}

html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(#cr0247-force).empire-app-page.settings-page .content .settings-card .form-group {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* CR0247 Hall of Fame uses the public shell without the car555 body class. */
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2 .fame-shell .champion-grid > .champion-card,
html body[data-theme="empire"]:not(#cr0247-force).public-page-v2 .fame-shell .honours-card {
  background:
    radial-gradient(circle at 92% 8%, rgba(212, 150, 53, 0.16), transparent 18rem),
    radial-gradient(circle at 6% 100%, rgba(75, 218, 255, 0.15), transparent 20rem),
    linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(7, 24, 45, 0.98)) !important;
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.30),
    0 0 28px rgba(75, 218, 255, 0.22),
    0 0 48px rgba(255, 105, 180, 0.12),
    0 22px 58px rgba(2, 9, 20, 0.36) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-page-v2 .fame-shell .champion-grid > .champion-card[data-rank="1"] {
  border-color: rgba(212, 150, 53, 0.78) !important;
  box-shadow:
    0 0 0 1px rgba(251, 243, 222, 0.22),
    0 0 34px rgba(212, 150, 53, 0.30),
    0 0 46px rgba(75, 218, 255, 0.20),
    0 24px 64px rgba(2, 9, 20, 0.38) !important;
}

/* CR0247 auth/page background follow-up: use the login-page blue atmosphere
   across public/app pages while leaving the homepage Jersey map hero intact. */
html body[data-theme="empire"] {
  --cr0247-login-atmosphere:
    radial-gradient(circle at 10% 6%, rgba(212, 150, 53, 0.20), transparent 24rem),
    radial-gradient(circle at 86% 10%, rgba(75, 218, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 48% 110%, rgba(255, 105, 180, 0.10), transparent 30rem),
    linear-gradient(145deg, #07182D 0%, #0A2540 46%, #06162A 100%);
  background-color: #0A2540 !important;
  background-image: var(--cr0247-login-atmosphere) !important;
  background-attachment: fixed !important;
  color: #FBF3DE !important;
}

html body[data-theme="empire"].public-page-v2,
html body[data-theme="empire"].empire-app-page,
html body[data-theme="empire"].car555-public-page,
html body[data-theme="empire"].player-auth-page {
  background-color: #0A2540 !important;
  background-image: var(--cr0247-login-atmosphere) !important;
  background-attachment: fixed !important;
}

html body[data-theme="empire"] .ps2,
html body[data-theme="empire"] .public-shell,
html body[data-theme="empire"] .page-shell,
html body[data-theme="empire"] .app-shell,
html body[data-theme="empire"] .page,
html body[data-theme="empire"] .main,
html body[data-theme="empire"] .content,
html body[data-theme="empire"] .content-wrap,
html body[data-theme="empire"] .container,
html body[data-theme="empire"] .wrap,
html body[data-theme="empire"] .ps2-main {
  background-color: transparent !important;
  background-image: none !important;
}

html body[data-theme="empire"].public-page-v2.public-home-page .ps2-hero,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-pricing {
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 150, 53, 0.12), transparent 24rem),
    linear-gradient(145deg, var(--cr0247-home-blue-deep), var(--cr0247-home-blue)) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-page-v2 .fame-shell > h1 {
  color: #D49635 !important;
  -webkit-text-fill-color: #D49635 !important;
  text-shadow: 0 0 22px rgba(212, 150, 53, 0.26) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-login #auth-title {
  color: #D49635 !important;
  -webkit-text-fill-color: #D49635 !important;
  text-shadow: 0 0 22px rgba(212, 150, 53, 0.26) !important;
}

html body[data-theme="empire"].public-login .empire-auth-panel {
  background:
    radial-gradient(circle at 90% 8%, rgba(212, 150, 53, 0.12), transparent 18rem),
    rgba(7, 24, 45, 0.42) !important;
}

html body[data-theme="empire"].public-login .empire-auth-shell,
html body[data-theme="empire"].public-login .empire-auth-panel .auth-card {
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.28),
    0 0 30px rgba(75, 218, 255, 0.20),
    0 0 54px rgba(255, 105, 180, 0.12),
    0 24px 64px rgba(2, 9, 20, 0.38) !important;
}

html body[data-theme="empire"].public-login img.empire-lockup-mark {
  display: block !important;
  object-fit: cover !important;
  padding: 0 !important;
  background: #F8F1DF !important;
}

html body[data-theme="empire"].public-login .auth-card-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  color: #FBF3DE !important;
}

html body[data-theme="empire"].public-login .auth-card-logo img {
  flex: 0 0 auto !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 9px !important;
  box-shadow: 0 0 18px rgba(212, 150, 53, 0.18) !important;
}

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

html body[data-theme="empire"].public-login .auth-card input:not([type="checkbox"]) {
  background: rgba(7, 24, 45, 0.88) !important;
  border: 1px solid rgba(75, 218, 255, 0.44) !important;
  color: #FBF3DE !important;
  box-shadow: inset 0 0 0 1px rgba(251, 243, 222, 0.06) !important;
}

html body[data-theme="empire"].public-login .auth-card input:not([type="checkbox"]):focus {
  border-color: rgba(212, 150, 53, 0.82) !important;
  box-shadow:
    inset 0 0 0 1px rgba(251, 243, 222, 0.08),
    0 0 0 4px rgba(212, 150, 53, 0.14) !important;
}

html body[data-theme="empire"].public-login .auth-card label {
  color: rgba(251, 243, 222, 0.78) !important;
  opacity: 1 !important;
}

html body[data-theme="empire"].public-login .auth-password-row {
  align-items: flex-end !important;
}

html body[data-theme="empire"].public-login .auth-password-row > div {
  min-width: 0 !important;
}

html body[data-theme="empire"].public-login .auth-password-row label {
  min-height: 14px !important;
  white-space: nowrap !important;
}

@media (max-width: 480px) {
  html body[data-theme="empire"].public-login .auth-password-row {
    align-items: stretch !important;
  }
}

@media (min-width: 768px) {
  html body[data-theme="empire"].empire-app-page.teams-page {
    align-items: stretch !important;
  }

  html body[data-theme="empire"].empire-app-page.teams-page::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 0 !important;
    width: 280px !important;
    pointer-events: none !important;
    background:
      radial-gradient(circle at 18% 12%, rgba(212, 150, 53, 0.18), transparent 18rem),
      linear-gradient(180deg, #0A2540 0%, #07182D 100%) !important;
  }

  html body[data-theme="empire"].empire-app-page.teams-page .sidebar {
    position: sticky !important;
    top: 0 !important;
    align-self: flex-start !important;
    z-index: 2 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    background:
      radial-gradient(circle at 18% 12%, rgba(212, 150, 53, 0.18), transparent 18rem),
      linear-gradient(180deg, #0A2540 0%, #07182D 100%) !important;
  }

  html body[data-theme="empire"].empire-app-page.teams-page .content {
    position: relative !important;
    z-index: 1 !important;
    min-height: 100vh !important;
  }
}

/* CR0247 auth form hard lock: earlier global field rules use ID specificity,
   so the wrapper/input split needs the same specificity to avoid doubled boxes. */
html body[data-theme="empire"]:not(#cr0247-force).public-login .empire-auth-shell,
html body[data-theme="empire"]:not(#cr0247-force).public-login .empire-auth-panel .auth-card {
  border: 1px solid rgba(75, 218, 255, 0.62) !important;
  border-top-color: rgba(251, 243, 222, 0.34) !important;
  box-shadow:
    0 0 0 1px rgba(212, 150, 53, 0.28),
    0 0 30px rgba(75, 218, 255, 0.20),
    0 0 54px rgba(255, 105, 180, 0.12),
    0 24px 64px rgba(2, 9, 20, 0.38) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-login .auth-card .input-group,
html body[data-theme="empire"]:not(#cr0247-force).public-login .auth-card .form-row > div {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-login .auth-card input:not([type="checkbox"]) {
  background: rgba(7, 24, 45, 0.88) !important;
  border: 1px solid rgba(75, 218, 255, 0.44) !important;
  color: #FBF3DE !important;
  box-shadow: inset 0 0 0 1px rgba(251, 243, 222, 0.06) !important;
}

html body[data-theme="empire"]:not(#cr0247-force).public-login .auth-card input:not([type="checkbox"]):focus {
  border-color: rgba(212, 150, 53, 0.82) !important;
  box-shadow:
    inset 0 0 0 1px rgba(251, 243, 222, 0.08),
    0 0 0 4px rgba(212, 150, 53, 0.14) !important;
}

/* CR0247 background hard lock: harbour-atlas uses :has(#map) specificity for
   non-public app pages, so mirror it for the shared login atmosphere. */
html body[data-theme="empire"].public-page-v2.public-home-page,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).empire-app-page,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).teams-page,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).settings-page {
  background-color: #0A2540 !important;
  background-image: var(--cr0247-login-atmosphere) !important;
  background-attachment: fixed !important;
}

html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).empire-app-page .content,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).teams-page .content,
html body[data-theme="empire"]:not(.public-page):not(:has(#map)):not(.public-login).settings-page .content {
  background: transparent !important;
  background-image: none !important;
}

/* CR0247 public navbar hard lock: keep Dashboard/Sign in as the same gold
   pill everywhere, while moving the authenticated Dashboard action into the
   mobile dropdown to avoid crowding the header. */
html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-auth-link,
html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-dashboard-link {
  background: #D49635 !important;
  background-image: none !important;
  border: 1px solid rgba(244, 197, 107, 0.72) !important;
  color: #FBF3DE !important;
  box-shadow: 0 0 0 1px rgba(75, 218, 255, 0.16), 0 12px 28px rgba(2, 9, 20, 0.24), 0 0 18px rgba(212, 150, 53, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-auth-link:hover,
html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-auth-link:focus-visible,
html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-dashboard-link:hover,
html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-dashboard-link:focus-visible {
  background: #F4C56B !important;
  color: #07182D !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-mobile-nav {
  background: rgba(10, 37, 64, 0.98) !important;
  background-image: none !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-mobile-nav .ps2-mobile-account-link,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav .ps2-mobile-account-link {
  margin-top: 4px !important;
  background: #D49635 !important;
  border: 1px solid rgba(244, 197, 107, 0.72) !important;
  color: #FBF3DE !important;
  text-align: center !important;
  box-shadow: 0 0 0 1px rgba(75, 218, 255, 0.16), 0 10px 22px rgba(2, 9, 20, 0.22) !important;
}

html body[data-theme="empire"].public-page-v2 .ps2-mobile-nav .ps2-mobile-account-link:hover,
html body[data-theme="empire"].public-page-v2 .ps2-mobile-nav .ps2-mobile-account-link:focus-visible,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav .ps2-mobile-account-link:hover,
html body[data-theme="empire"].public-page-v2.public-home-page .ps2-mobile-nav .ps2-mobile-account-link:focus-visible {
  background: #F4C56B !important;
  color: #07182D !important;
}

@media (max-width: 760px) {
  html body[data-theme="empire"].public-page-v2 .ps2-header__actions .ps2-dashboard-link {
    display: none !important;
  }
}
