/*
 * Proyecto Isaías — Visual System 10.1.0
 * One final, reusable UI layer for every Dinasta and Staff screen.
 */

body.fj-game-ui-v1000,
html.fj-game-ui-v1000 {
  --fj-shell: 1240px;
  --fj-bg: #f2f4fb;
  --fj-surface: #ffffff;
  --fj-surface-2: #f3f6fb;
  --fj-surface-3: #e8edf6;
  --fj-ink: #111a2e;
  --fj-ink-soft: #2f3c56;
  --fj-muted: #526078;
  --fj-line: #cbd5e4;
  --fj-line-strong: #acbacf;
  --fj-violet: #6849e6;
  --fj-violet-ink: #4a31b9;
  --fj-violet-soft: #eee9ff;
  --fj-teal: #087f78;
  --fj-teal-ink: #05645f;
  --fj-teal-soft: #e2f6f2;
  --fj-cyan: #168eae;
  --fj-cyan-soft: #e4f5fa;
  --fj-gold: #805300;
  --fj-gold-soft: #fff3d2;
  --fj-green: #187a53;
  --fj-green-soft: #e4f7ed;
  --fj-red: #b43d4d;
  --fj-red-soft: #fdebed;
  --fj-shadow: 0 18px 48px rgba(42, 51, 82, .10);
  --fj-shadow-soft: 0 8px 24px rgba(42, 51, 82, .07);
  --fj-radius-xl: 24px;
  --fj-radius-lg: 18px;
  --fj-radius-md: 13px;
  color-scheme: light;
}

html[data-fj-theme="night"],
html[data-fj-theme="night"] body.fj-game-ui-v1000 {
  --fj-bg: #09101f;
  --fj-surface: #151f33;
  --fj-surface-2: #1d2a43;
  --fj-surface-3: #283754;
  --fj-ink: #f7f9ff;
  --fj-ink-soft: #e4eaf5;
  --fj-muted: #bec9dd;
  --fj-line: #3a4a67;
  --fj-line-strong: #566986;
  --fj-violet: #6547d7;
  --fj-violet-ink: #ddd5ff;
  --fj-violet-soft: #302750;
  --fj-teal: #42d2c8;
  --fj-teal-ink: #7ee8df;
  --fj-teal-soft: #153b3c;
  --fj-cyan: #65d4ee;
  --fj-cyan-soft: #193a47;
  --fj-gold: #ffd064;
  --fj-gold-soft: #41351c;
  --fj-green: #72dda9;
  --fj-green-soft: #16382e;
  --fj-red: #ff8797;
  --fj-red-soft: #46252e;
  --fj-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --fj-shadow-soft: 0 10px 28px rgba(0, 0, 0, .23);
  color-scheme: dark;
}

/*
 * Keep the semantic v10 tokens on the shell itself. The legacy premium layer
 * also declares light-only variables on .fj-app-shell; without this local
 * authority those values shadow the inherited night palette in production.
 */
.fj-app-shell.fj-game-shell-v1000 {
  --fj-shell: 1240px;
  --fj-bg: #f2f4fb;
  --fj-surface: #ffffff;
  --fj-surface-2: #f3f6fb;
  --fj-surface-3: #e8edf6;
  --fj-ink: #111a2e;
  --fj-ink-soft: #2f3c56;
  --fj-muted: #526078;
  --fj-line: #cbd5e4;
  --fj-line-strong: #acbacf;
  --fj-violet: #6849e6;
  --fj-violet-ink: #4a31b9;
  --fj-violet-soft: #eee9ff;
  --fj-teal: #087f78;
  --fj-teal-ink: #05645f;
  --fj-teal-soft: #e2f6f2;
  --fj-cyan: #168eae;
  --fj-cyan-soft: #e4f5fa;
  --fj-gold: #805300;
  --fj-gold-soft: #fff3d2;
  --fj-green: #187a53;
  --fj-green-soft: #e4f7ed;
  --fj-red: #b43d4d;
  --fj-red-soft: #fdebed;
  --fj-shadow: 0 18px 48px rgba(42, 51, 82, .10);
  --fj-shadow-soft: 0 8px 24px rgba(42, 51, 82, .07);
  --fj-radius-xl: 24px;
  --fj-radius-lg: 18px;
  --fj-radius-md: 13px;
  color-scheme: light;
}

html[data-fj-theme="night"] .fj-app-shell.fj-game-shell-v1000 {
  --fj-bg: #09101f;
  --fj-surface: #151f33;
  --fj-surface-2: #1d2a43;
  --fj-surface-3: #283754;
  --fj-ink: #f7f9ff;
  --fj-ink-soft: #e4eaf5;
  --fj-muted: #bec9dd;
  --fj-line: #3a4a67;
  --fj-line-strong: #566986;
  --fj-violet: #6547d7;
  --fj-violet-ink: #ddd5ff;
  --fj-violet-soft: #302750;
  --fj-teal: #42d2c8;
  --fj-teal-ink: #7ee8df;
  --fj-teal-soft: #153b3c;
  --fj-cyan: #65d4ee;
  --fj-cyan-soft: #193a47;
  --fj-gold: #ffd064;
  --fj-gold-soft: #41351c;
  --fj-green: #72dda9;
  --fj-green-soft: #16382e;
  --fj-red: #ff8797;
  --fj-red-soft: #46252e;
  --fj-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  --fj-shadow-soft: 0 10px 28px rgba(0, 0, 0, .23);
  color-scheme: dark;
}

body.fj-game-ui-v1000 {
  margin: 0;
  overflow-x: hidden;
  background: var(--fj-bg) !important;
  color: var(--fj-ink) !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
}

body.fj-game-ui-v1000 :where(*, *::before, *::after) { box-sizing: border-box; }
body.fj-game-ui-v1000 :where(a, button, input, select, textarea) { font: inherit; }
body.fj-game-ui-v1000 :where(a, button) { -webkit-tap-highlight-color: transparent; }
body.fj-game-ui-v1000 :where(img, svg, canvas) { max-width: 100%; }
body.fj-game-ui-v1000 .entry-content { max-width: none !important; padding: 0 !important; }
body.fj-game-ui-v1000 :where(.wp-block-post-title, .entry-title) { display: none !important; }
body.fj-game-ui-v1000 :where(.wp-site-blocks > header, header.wp-block-template-part, .site-header) :where(.wp-block-search__button-only, .wp-block-search__button) { display: none !important; }

.fj-app-shell.fj-game-shell-v1000,
.fj-game-shell-v1000 {
  display: block !important;
  flex: none !important;
  flex-flow: initial !important;
  align-items: initial !important;
  gap: 0 !important;
  width: 100%;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--fj-ink);
  background: var(--fj-bg) !important;
}

/*
 * Production integration guard.
 * Legacy releases used .fj-app-shell as a two-column flex layout for a
 * sidebar. The v10 shell deliberately has no sidebar, so its header, main
 * content and mobile navigation must participate in normal block flow.
 */
.fj-app-shell.fj-game-shell-v1000 > :where(.fj-v8-gamebar, .fj-app-main, .fj-game-mobile-nav) {
  flex: none !important;
  float: none !important;
  clear: both !important;
}

.fj-game-shell-v1000 .fj-skip-link {
  position: fixed;
  z-index: 100000;
  left: 14px;
  top: 10px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--fj-violet);
  color: #fff;
}
.fj-game-shell-v1000 .fj-skip-link:focus { transform: none; }

/* Shared shell: navigation and content always use the same width. */
.fj-game-shell-v1000 .fj-v8-gamebar,
.fj-game-shell-v1000 .fj-v8-page-canvas {
  width: min(calc(100% - 40px), var(--fj-shell)) !important;
  max-width: var(--fj-shell) !important;
  margin-inline: auto !important;
}

.fj-game-shell-v1000 .fj-v8-gamebar {
  position: relative !important;
  inset: auto !important;
  z-index: 40;
  min-height: 112px;
  margin-top: 22px !important;
  padding: 18px 20px !important;
  border: 1px solid var(--fj-line) !important;
  border-radius: 22px !important;
  background: var(--fj-surface) !important;
  box-shadow: var(--fj-shadow) !important;
}
.fj-game-shell-v1000 .fj-v8-gamebar-main {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 20px !important;
}
.fj-game-shell-v1000 .fj-v8-brand {
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  min-width: 178px;
  color: var(--fj-ink) !important;
  text-decoration: none !important;
}
.fj-game-shell-v1000 .fj-v8-brand-mark {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 14px !important;
  background: #101a2d;
  box-shadow: 0 8px 18px rgba(25, 37, 70, .18);
}
.fj-game-shell-v1000 .fj-v8-brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }
.fj-game-shell-v1000 .fj-v8-brand-copy { display: grid !important; line-height: 1 !important; }
.fj-game-shell-v1000 .fj-v8-brand-copy strong { color: var(--fj-ink) !important; font-size: 17px !important; letter-spacing: .05em; }
.fj-game-shell-v1000 .fj-v8-brand-copy small { margin-top: 6px; color: var(--fj-muted) !important; font-size: 9px !important; font-weight: 850; letter-spacing: .14em; }
.fj-game-shell-v1000 .fj-v8-worlds {
  justify-self: end;
  display: flex !important;
  align-items: center;
  gap: 7px !important;
}
.fj-game-shell-v1000 .fj-v8-world {
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 13px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--fj-muted) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 780;
}
.fj-game-shell-v1000 .fj-v8-world:hover { background: var(--fj-surface-2) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 .fj-v8-world.is-active { background: var(--fj-violet) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(104, 73, 230, .24); }
.fj-game-shell-v1000 .fj-v8-world .dashicons { width: 17px; height: 17px; font-size: 17px; }
.fj-game-shell-v1000 .fj-v8-player-hud {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  min-width: 0;
}
.fj-game-shell-v1000 :where(.fj-v8-hud-stat, .fj-v8-staff-badge) {
  min-height: 38px;
  display: grid !important;
  align-content: center;
  padding: 5px 10px !important;
  border: 1px solid var(--fj-line) !important;
  border-radius: 10px !important;
  background: var(--fj-surface-2) !important;
  color: var(--fj-ink-soft) !important;
  line-height: 1.05;
}
.fj-game-shell-v1000 .fj-v8-hud-stat small { color: var(--fj-muted) !important; font-size: 8px !important; font-weight: 900; letter-spacing: .08em; }
.fj-game-shell-v1000 .fj-v8-hud-stat strong { margin-top: 3px; color: var(--fj-violet-ink) !important; font-size: 13px !important; }
.fj-game-shell-v1000 :where(.fj-v10-explore-toggle, .fj-v8-theme-toggle) {
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 12px !important;
  border: 1px solid var(--fj-line) !important;
  border-radius: 11px !important;
  background: var(--fj-surface-2) !important;
  color: var(--fj-ink-soft) !important;
  cursor: pointer;
}
.fj-game-shell-v1000 :where(.fj-v10-explore-toggle, .fj-v8-theme-toggle):hover { border-color: var(--fj-violet) !important; color: var(--fj-violet-ink) !important; }
.fj-game-shell-v1000 :where(.fj-v10-explore-toggle, .fj-v8-theme-toggle) b { font-size: 11px !important; }
.fj-game-shell-v1000 .fj-v8-season { min-height: 38px; display: grid !important; place-items: center; padding: 0 12px !important; border: 1px solid rgba(168, 111, 0, .28) !important; border-radius: 999px !important; background: var(--fj-gold-soft) !important; color: var(--fj-gold) !important; font-size: 9px !important; font-weight: 900; }
.fj-game-shell-v1000 .fj-v8-player-hud > .fj-front-avatar { margin-left: auto; }
.fj-game-shell-v1000 .fj-v8-player-name { max-width: 155px; overflow: hidden; color: var(--fj-ink-soft) !important; font-size: 11px !important; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.fj-game-shell-v1000 .fj-v8-gamebar-sub { display: none !important; }

.fj-game-shell-v1000 .fj-app-main { width: 100% !important; margin: 0 !important; padding: 0 !important; }
.fj-game-shell-v1000 .fj-v8-page-canvas { padding: 40px 0 92px !important; }

/* Page introduction */
.fj-game-shell-v1000 .fj-v9-screen-intro {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px !important;
  border: 1px solid var(--fj-line) !important;
  border-radius: var(--fj-radius-xl) !important;
  background: var(--fj-surface) !important;
  box-shadow: var(--fj-shadow) !important;
}
.fj-game-shell-v1000 .fj-v9-screen-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 94% 10%, rgba(104, 73, 230, .12), transparent 30rem);
}
.fj-game-shell-v1000.fj-app-shell-administrador .fj-v9-screen-intro::before { background: radial-gradient(circle at 94% 10%, rgba(8, 127, 120, .13), transparent 30rem); }
.fj-game-shell-v1000 .fj-v9-screen-intro__main {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) 270px !important;
  align-items: center;
  gap: 18px !important;
  min-height: 128px !important;
  padding: 22px 24px !important;
}
.fj-game-shell-v1000 .fj-v9-screen-icon {
  width: 54px !important;
  height: 54px !important;
  display: grid !important;
  place-items: center;
  border-radius: 16px !important;
  background: var(--fj-violet) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(104, 73, 230, .25);
}
.fj-game-shell-v1000.fj-app-shell-administrador .fj-v9-screen-icon { background: var(--fj-teal) !important; }
.fj-game-shell-v1000 .fj-v9-screen-icon .dashicons { width: 24px; height: 24px; font-size: 24px; }
.fj-game-shell-v1000 .fj-v9-screen-copy { min-width: 0; }
.fj-game-shell-v1000 .fj-v9-screen-kicker { display: flex !important; align-items: center; gap: 7px; margin-bottom: 5px; color: var(--fj-violet-ink) !important; font-size: 9px !important; font-weight: 900; letter-spacing: .12em; }
.fj-game-shell-v1000.fj-app-shell-administrador .fj-v9-screen-kicker { color: var(--fj-teal-ink) !important; }
.fj-game-shell-v1000 .fj-v9-screen-kicker i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.fj-game-shell-v1000 .fj-v9-screen-copy h1 { margin: 0 !important; color: var(--fj-ink) !important; font-size: clamp(29px, 3vw, 40px) !important; line-height: 1.05 !important; letter-spacing: -.035em; }
.fj-game-shell-v1000 .fj-v9-screen-copy p { max-width: 670px; margin: 7px 0 0 !important; color: var(--fj-muted) !important; font-size: 12px !important; }
.fj-game-shell-v1000 .fj-v9-screen-action { align-self: stretch; display: grid !important; align-content: center; gap: 7px; padding: 14px !important; border: 1px solid var(--fj-line) !important; border-radius: 17px !important; background: var(--fj-surface-2) !important; }
.fj-game-shell-v1000 .fj-v9-screen-action > span { color: var(--fj-muted) !important; font-size: 8px !important; font-weight: 900; letter-spacing: .11em; }
.fj-game-shell-v1000 .fj-v9-cta { min-height: 42px; display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 0 13px !important; border: 1px solid rgba(104, 73, 230, .28) !important; border-radius: 11px !important; background: var(--fj-violet-soft) !important; color: var(--fj-violet-ink) !important; text-decoration: none !important; }
.fj-game-shell-v1000 .fj-v9-cta strong { font-size: 11px !important; }
.fj-game-shell-v1000 .fj-v9-screen-nav { position: relative; display: flex !important; gap: 4px; overflow-x: auto; padding: 8px 14px !important; border-top: 1px solid var(--fj-line) !important; background: transparent !important; scrollbar-width: thin; }
.fj-game-shell-v1000 .fj-v9-screen-nav a { min-height: 38px; display: inline-flex !important; align-items: center; gap: 7px; flex: 0 0 auto; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; color: var(--fj-muted) !important; text-decoration: none !important; }
.fj-game-shell-v1000 .fj-v9-screen-nav a b { font-size: 10px !important; }
.fj-game-shell-v1000 .fj-v9-screen-nav a.is-active { background: var(--fj-violet-soft) !important; color: var(--fj-violet-ink) !important; }

/* Explore: navigation directory, never a lateral menu. */
.fj-game-shell-v1000 .fj-mobile-appbar,
.fj-game-shell-v1000 .fj-app-sidebar,
.fj-game-shell-v1000 .fj-sidebar-backdrop { display: none !important; }
.fj-v10-explore[hidden] { display: none !important; }
.fj-v10-explore { position: fixed; z-index: 99998; inset: 0; display: grid; place-items: center; padding: 22px; }
.fj-v10-explore-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7, 12, 27, .66); backdrop-filter: blur(8px); cursor: default; }
.fj-v10-explore-panel { position: relative; width: min(920px, 100%); max-height: min(760px, calc(100vh - 44px)); overflow: auto; padding: 24px; border: 1px solid var(--fj-line); border-radius: 24px; outline: 0; background: var(--fj-surface); color: var(--fj-ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .32); }
.fj-v10-explore-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--fj-line); }
.fj-v10-explore-head span { color: var(--fj-violet-ink); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.fj-v10-explore-head h2 { margin: 3px 0 0; color: var(--fj-ink); font-size: 27px; letter-spacing: -.03em; }
.fj-v10-explore-head p { margin: 4px 0 0; color: var(--fj-muted); font-size: 11px; }
.fj-v10-explore-head > small { align-self: end; color: var(--fj-muted); font-size: 9px; }
.fj-v10-explore-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fj-v10-explore-group { min-width: 0; }
.fj-v10-explore-group h3 { margin: 0 0 8px; color: var(--fj-muted); font-size: 9px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.fj-v10-explore-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fj-v10-explore-group a { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1px 9px; padding: 12px; border: 1px solid var(--fj-line); border-radius: 13px; background: var(--fj-surface-2); color: var(--fj-ink); text-decoration: none; }
.fj-v10-explore-group a:hover { transform: translateY(-1px); border-color: var(--fj-violet); box-shadow: var(--fj-shadow-soft); }
.fj-v10-explore-group a.is-active { border-color: var(--fj-violet); background: var(--fj-violet-soft); }
.fj-v10-explore-group a .dashicons { grid-row: 1 / 3; align-self: center; color: var(--fj-violet-ink); }
.fj-v10-explore-group a b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.fj-v10-explore-group a small { color: var(--fj-muted); font-size: 8px; line-height: 1.35; }
body.fj-v10-explore-open { overflow: hidden; }

/* Public access and application pages intentionally live outside the member shell. */
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) {
  width: min(calc(100% - 40px), 1120px) !important;
  max-width: 1120px !important;
  margin: 34px auto !important;
  padding: 0 !important;
  color: var(--fj-ink);
}
body.fj-game-ui-v1000 .fj-access-grid,
body.fj-game-ui-v1000 .fj-apply-layout { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr) !important; gap: 18px !important; align-items: stretch; }
body.fj-game-ui-v1000 :where(.fj-access-hero, .fj-apply-hero, .fj-apply-success) { padding: clamp(24px, 5vw, 52px) !important; border: 1px solid var(--fj-line) !important; border-radius: 24px !important; background: linear-gradient(135deg, var(--fj-surface), var(--fj-violet-soft)) !important; color: var(--fj-ink) !important; box-shadow: var(--fj-shadow) !important; }
body.fj-game-ui-v1000 :where(.fj-access-card, .fj-apply-form-card, .fj-apply-side-card, .fj-apply-closed-card) { padding: 22px !important; border: 1px solid var(--fj-line) !important; border-radius: 18px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; box-shadow: var(--fj-shadow-soft) !important; }
body.fj-game-ui-v1000 .fj-apply-side { display: grid; align-content: start; gap: 12px; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(h1, h2, h3, h4, strong) { color: var(--fj-ink) !important; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(p, li, label, small, .fj-muted) { color: var(--fj-muted) !important; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(.fj-eyebrow) { color: var(--fj-violet-ink) !important; font-size: 9px !important; font-weight: 900; letter-spacing: .11em; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) { width: 100%; min-height: 44px; padding: 9px 11px !important; border: 1px solid var(--fj-line-strong) !important; border-radius: 10px !important; background: var(--fj-surface-2) !important; color: var(--fj-ink) !important; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(.fj-btn, button, input[type="submit"]) { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px !important; border: 1px solid var(--fj-line) !important; border-radius: 10px !important; background: var(--fj-surface-2) !important; color: var(--fj-ink-soft) !important; text-decoration: none !important; font-size: 10px !important; font-weight: 850; }
body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) :where(.fj-btn-ok, button[type="submit"], input[type="submit"]) { border-color: var(--fj-violet) !important; background: var(--fj-violet) !important; color: #fff !important; }
body.fj-game-ui-v1000 .fj-apply-steps,
body.fj-game-ui-v1000 .fj-apply-note-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px !important; }
body.fj-game-ui-v1000 .fj-apply-steps > *,
body.fj-game-ui-v1000 .fj-ingreso-note { padding: 12px !important; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); }

/* Universal content language */
.fj-game-shell-v1000 [data-fj-screen-body] { display: grid; gap: 16px; min-width: 0; color: var(--fj-ink); }
.fj-game-shell-v1000 [data-fj-screen-body] > :where(.fj-wrap, .fj-system-fullwidth-host, .fj-wall641-wrap) { width: 100% !important; max-width: none !important; margin: 0 !important; padding-inline: 0 !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-wrap, .fj-page, [class$="-page"]) { color: var(--fj-ink); }
.fj-game-shell-v1000 [data-fj-screen-body] :where(h1, h2, h3, h4, h5, h6, strong) { color: var(--fj-ink); }
.fj-game-shell-v1000 [data-fj-screen-body] :where(p, li, label, small, .fj-muted, .description) { color: var(--fj-muted); }
.fj-game-shell-v1000 [data-fj-screen-body] :where(h2, h3, h4) { margin-top: 0; letter-spacing: -.02em; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-eyebrow, .fj-section-kicker, [class$="-kicker"]) { color: var(--fj-violet-ink) !important; font-size: 9px !important; font-weight: 900 !important; letter-spacing: .10em !important; text-transform: uppercase; }
.fj-game-shell-v1000.fj-app-shell-administrador [data-fj-screen-body] :where(.fj-eyebrow, .fj-section-kicker, [class$="-kicker"]) { color: var(--fj-teal-ink) !important; }

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-card, .fj-profile-panel, .fj-dashboard-panel, .fj-team-hub-panel, .fj-bank-action-card,
  .fj-bank-explainer, .fj-bank-week, .fj-bank-history, .fj-market-panel, .fj-market-summary-card,
  .fj-store636-panel, .fj-store-product, .fj-treasury-flow-card, .fj-treasury-activity,
  .fj-community-person-card, .fj-community-team-card, .fj-wall641-composer, .fj-wall641-post,
  .fj-wall641-spotlight, .fj-desafio-panel, .fj-desafio-showcase-block, .fj-desafio-staff-block,
  .fj-sp649-panel, .fj-sp651-work-panel, .fj-sp651-agenda-card, .fj-sp647-card, .fj-sp650-card,
  .fj-staff-card, .fj-att-panel, .fj-rw657-panel, .fj-eq654-block, .fj-eq655-area,
  .fj-tm658-panel, .fj-tm658-card, .fj-sys659-card, .fj-app652-card, .fj-intake653-card
) {
  min-width: 0;
  border: 1px solid var(--fj-line) !important;
  border-radius: var(--fj-radius-lg) !important;
  background: var(--fj-surface) !important;
  color: var(--fj-ink) !important;
  box-shadow: var(--fj-shadow-soft) !important;
}
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-card, .fj-profile-panel, .fj-dashboard-panel, .fj-team-hub-panel, .fj-sp649-panel, .fj-att-panel, .fj-rw657-panel, .fj-eq654-block, .fj-eq655-area, .fj-tm658-panel, .fj-sys659-card) { padding: 20px !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-section-head, [class*="-panel-head"], [class*="-section-head"], .fj-v10-section-head) { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 15px; padding: 0; border: 0; background: transparent; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-section-head, [class*="-panel-head"], [class*="-section-head"]) :where(h2, h3, h4) { margin: 0 !important; font-size: clamp(17px, 2vw, 21px) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-section-head, [class*="-panel-head"], [class*="-section-head"]) p { margin: 4px 0 0 !important; font-size: 11px !important; }

/* Controls */
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-btn, button:not(.fj-v10-explore-backdrop), input[type="submit"], input[type="button"], .button) {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px !important;
  border: 1px solid var(--fj-line) !important;
  border-radius: 10px !important;
  background: var(--fj-surface-2) !important;
  color: var(--fj-ink-soft) !important;
  text-decoration: none !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  box-shadow: none !important;
}
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-btn-ok, .fj-btn-primary, button[type="submit"], input[type="submit"], .button-primary) { border-color: var(--fj-violet) !important; background: var(--fj-violet) !important; color: #fff !important; box-shadow: 0 7px 17px rgba(104, 73, 230, .20) !important; }
.fj-game-shell-v1000.fj-app-shell-administrador [data-fj-screen-body] :where(.fj-btn-ok, .fj-btn-primary, button[type="submit"], input[type="submit"], .button-primary) { border-color: var(--fj-teal) !important; background: var(--fj-teal) !important; color: #fff !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-btn, button, .button):hover { transform: translateY(-1px); border-color: var(--fj-violet) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-btn-sm) { min-height: 33px; padding-inline: 10px !important; font-size: 9px !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea) {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px !important;
  border: 1px solid var(--fj-line-strong) !important;
  border-radius: 10px !important;
  outline: 0;
  background: var(--fj-surface-2) !important;
  color: var(--fj-ink) !important;
  box-shadow: none !important;
}
.fj-game-shell-v1000 [data-fj-screen-body] textarea { min-height: 100px; resize: vertical; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(input, select, textarea):focus { border-color: var(--fj-violet) !important; box-shadow: 0 0 0 3px rgba(104, 73, 230, .13) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(input, textarea)::placeholder { color: var(--fj-muted); opacity: .85; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-form-grid, .fj-form-grid-2, .fj-desafio-form-grid, .fj-sys659-field-grid) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-form-grid, .fj-form-grid-2, .fj-desafio-form-grid, .fj-sys659-field-grid) > .is-wide { grid-column: 1 / -1; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-badge, [class$="-chip"], [class$="-pill"], [class$="-count"], [class$="-count-chip"]) { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid var(--fj-line); border-radius: 999px; background: var(--fj-surface-2); color: var(--fj-muted); font-size: 8px; font-weight: 850; }

/* Progress, status and feedback */
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-profile-progress, .fj-dashboard-track, .fj-adv-progress-track, .fj-bank-limit-track, .fj-treasury-flow-bar) { height: 7px !important; overflow: hidden; border-radius: 99px !important; background: var(--fj-surface-3) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-profile-progress, .fj-dashboard-track, .fj-adv-progress-track, .fj-bank-limit-track, .fj-treasury-flow-bar) > :where(span, i, em) { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fj-violet), var(--fj-cyan)) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-empty-friendly, [class$="-empty"], [class*="-empty "]) { padding: 18px !important; border: 1px dashed var(--fj-line-strong) !important; border-radius: 13px !important; background: var(--fj-surface-2) !important; color: var(--fj-muted) !important; text-align: center; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.notice, .updated, .error, .fj-ajax-msg, .fj-market-inline-alert) { padding: 12px 14px !important; border: 1px solid var(--fj-line) !important; border-left: 4px solid var(--fj-teal) !important; border-radius: 11px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.error, .fj-danger) { border-left-color: var(--fj-red) !important; }

/* Tables remain readable and never force the page narrower. */
.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table { width: 100% !important; border-collapse: separate !important; border-spacing: 0 7px !important; background: transparent !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table th { padding: 8px 11px !important; border: 0 !important; background: transparent !important; color: var(--fj-muted) !important; font-size: 8px !important; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td { padding: 11px !important; border-block: 1px solid var(--fj-line) !important; background: var(--fj-surface-2) !important; color: var(--fj-ink-soft) !important; font-size: 10px !important; }
.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td:first-child { border-left: 1px solid var(--fj-line) !important; border-radius: 11px 0 0 11px; }
.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td:last-child { border-right: 1px solid var(--fj-line) !important; border-radius: 0 11px 11px 0; }

/* Reliable avatars and logos */
.fj-game-shell-v1000 :where(.fj-front-avatar, .fj-system-avatar, .fj-identity-avatar, .fj-avatar-frame, .fj-wall641-profile-avatar, .fj-wall644-recipient-avatar, .fj-staff646-avatar, .fj-staff-avatar, .fj-community-avatar-wrap) { position: relative; flex: 0 0 auto; overflow: hidden; aspect-ratio: 1 / 1; border-radius: 14px !important; background: linear-gradient(135deg, var(--fj-violet), #8f74ed) !important; color: #fff !important; }
.fj-game-shell-v1000 :where(.fj-front-avatar, .fj-system-avatar, .fj-identity-avatar, .fj-avatar-frame, .fj-wall641-profile-avatar, .fj-wall644-recipient-avatar, .fj-staff646-avatar, .fj-staff-avatar, .fj-community-avatar-wrap) img { width: 100% !important; height: 100% !important; display: block; object-fit: cover !important; object-position: center !important; border: 0 !important; border-radius: inherit !important; }
.fj-game-shell-v1000 :where(.fj-team-icon, .fj-community-team-icon, .fj-profile-brand-mark, .fj-v8-brand-mark) img { object-fit: contain !important; }
.fj-game-shell-v1000 :where(.fj-front-avatar, .fj-system-avatar, .fj-identity-avatar, .fj-avatar-frame, .fj-wall641-profile-avatar, .fj-staff646-avatar).is-image-missing::after { content: "PI"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 900; }

/* Heroes inside pages are compact content summaries, not empty billboards. */
.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-dinasta-hero, .fj-team-hub-hero, .fj-bank-hero, .fj-market-hero, .fj-treasury-hero,
  .fj-community-hero, .fj-wall641-hero, .fj-desafio-hero, .fj-sys659-hero, .fj-att-hero,
  .fj-sp649-hero, .fj-sp651-hero, .fj-eq654-hero, .fj-eq655-hero, .fj-tm658-hero
) {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 14px !important;
  padding: 22px !important;
  overflow: hidden;
  border: 1px solid var(--fj-line) !important;
  border-radius: 20px !important;
  background: linear-gradient(120deg, var(--fj-surface), var(--fj-violet-soft)) !important;
  color: var(--fj-ink) !important;
  box-shadow: var(--fj-shadow-soft) !important;
}
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-team-hub-hero, .fj-treasury-hero, .fj-community-hero.is-teams) { background: linear-gradient(120deg, var(--fj-surface), var(--fj-teal-soft)) !important; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-dinasta-hero, .fj-team-hub-hero)::before,
.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-dinasta-hero, .fj-team-hub-hero)::after { opacity: .12 !important; pointer-events: none; }

/* Mi ficha and dashboard */
.fj-game-shell-v1000 .fj-profile-portal,
.fj-game-shell-v1000 .fj-dashboard { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-dinasta-hero { padding: 0 !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__top { display: grid !important; grid-template-columns: minmax(0, 1fr) 215px !important; align-items: center; gap: 18px !important; padding: 24px 26px !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__identity { display: flex !important; align-items: center; gap: 17px !important; min-width: 0; }
.fj-game-shell-v1000 .fj-dinasta-hero__avatar > * { width: 68px !important; height: 68px !important; flex: 0 0 68px; }
.fj-game-shell-v1000 .fj-dinasta-hero__copy h1, .fj-dinasta-hero__copy h2 { margin: 0 !important; color: var(--fj-ink) !important; font-size: clamp(25px, 3vw, 32px) !important; letter-spacing: -.03em; }
.fj-game-shell-v1000 .fj-dinasta-hero__copy > p { margin: 5px 0 !important; color: var(--fj-muted) !important; font-size: 11px !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__meta { display: flex !important; align-items: center; flex-wrap: wrap; gap: 6px !important; color: var(--fj-ink-soft) !important; font-size: 9px !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary { display: grid !important; gap: 5px !important; padding: 13px !important; border: 1px solid var(--fj-line) !important; border-radius: 15px !important; background: var(--fj-surface-2) !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary > span { min-height: 35px; display: flex !important; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary small { color: var(--fj-muted) !important; font-size: 8px !important; font-weight: 800; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary strong { max-width: 110px; overflow: hidden; color: var(--fj-ink) !important; font-size: 10px !important; text-align: right; text-overflow: ellipsis; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary .is-good { background: var(--fj-green-soft) !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary .is-good strong { color: var(--fj-green) !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__metrics { display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; overflow: hidden; border-top: 1px solid var(--fj-line) !important; background: var(--fj-surface-2) !important; }
.fj-game-shell-v1000 .fj-dinasta-metric { min-width: 0; display: flex !important; align-items: center; gap: 9px !important; padding: 12px 13px !important; border: 0 !important; border-right: 1px solid var(--fj-line) !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; }
.fj-game-shell-v1000 .fj-dinasta-metric:last-child { border-right: 0 !important; }
.fj-game-shell-v1000 .fj-dinasta-metric__icon { width: 30px !important; height: 30px !important; display: grid !important; place-items: center; flex: 0 0 30px; border-radius: 9px !important; background: var(--fj-violet-soft) !important; color: var(--fj-violet-ink) !important; }
.fj-game-shell-v1000 .fj-dinasta-metric__copy { min-width: 0; display: grid !important; }
.fj-game-shell-v1000 .fj-dinasta-metric > span:last-child { min-width: 0; display: grid !important; gap: 2px; }
.fj-game-shell-v1000 .fj-dinasta-metric__copy small { overflow: hidden; color: var(--fj-muted) !important; font-size: 7px !important; font-weight: 850; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.fj-game-shell-v1000 .fj-dinasta-metric__copy strong { color: var(--fj-ink) !important; font-size: 14px !important; }
.fj-game-shell-v1000 .fj-profile-guide-row { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.fj-game-shell-v1000 .fj-profile-next-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 16px; border: 1px solid rgba(104, 73, 230, .26); border-left: 5px solid var(--fj-violet); border-radius: 16px; background: linear-gradient(100deg, var(--fj-surface), var(--fj-violet-soft)); box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-profile-next-icon,
.fj-game-shell-v1000 .fj-dashboard-mission-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-weight: 900; }
.fj-game-shell-v1000 .fj-profile-main-grid { display: grid !important; grid-template-columns: minmax(0, 2fr) minmax(260px, .85fr) !important; gap: 14px !important; }
.fj-game-shell-v1000 .fj-profile-side-stack { display: grid; align-content: start; gap: 14px; }
.fj-game-shell-v1000 .fj-profile-progress-list,
.fj-game-shell-v1000 .fj-dashboard-discipline-list { display: grid; gap: 8px; }
.fj-game-shell-v1000 :where(.fj-profile-progress-row, .fj-dashboard-discipline) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); color: var(--fj-ink); text-decoration: none; }
.fj-game-shell-v1000 :where(.fj-profile-progress-row, .fj-dashboard-discipline) > :where(.fj-profile-progress, .fj-dashboard-track) { grid-column: 1 / -1; }
.fj-game-shell-v1000 .fj-profile-active-section,
.fj-game-shell-v1000 .fj-profile-team-active-section { margin-top: 0 !important; }
.fj-game-shell-v1000 .fj-dashboard-mission { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(104, 73, 230, .26); border-left: 5px solid var(--fj-violet); border-radius: 17px; background: var(--fj-surface); box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-dashboard-mission-copy :where(h3, p) { margin: 2px 0; }
.fj-game-shell-v1000 .fj-dashboard-grid-main { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
.fj-game-shell-v1000 .fj-dashboard-team-pulse,
.fj-game-shell-v1000 .fj-dashboard-members-panel { grid-column: 1 / -1; }
.fj-game-shell-v1000 .fj-dashboard-team-stats,
.fj-game-shell-v1000 .fj-dashboard-member-grid,
.fj-game-shell-v1000 .fj-dashboard-quick-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px !important; }
.fj-game-shell-v1000 .fj-dashboard-action-card,
.fj-game-shell-v1000 .fj-dashboard-member-card { padding: 12px; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); color: var(--fj-ink); text-decoration: none; }

/* Plan de Adelanto: overview first, detail remains available. */
.fj-game-shell-v1000 .fj-adv-page { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-adv-step-label { width: fit-content; margin: 2px 0 -5px; padding: 5px 9px; border-radius: 999px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-size: 8px; font-weight: 900; }
.fj-game-shell-v1000 :where(.fj-adv-tabs, .fj-adv-vert-tabs, .fj-discipline-tabs, .fj-desafio-tabs) { display: flex !important; gap: 6px !important; overflow-x: auto; padding: 6px !important; border: 1px solid var(--fj-line) !important; border-radius: 13px !important; background: var(--fj-surface) !important; scrollbar-width: thin; }
.fj-game-shell-v1000 :where(.fj-adv-tab, .fj-adv-vert-tab, .fj-discipline-tab, .fj-desafio-tabs > button) { flex: 0 0 auto; min-height: 40px; padding: 7px 11px !important; border: 0 !important; border-radius: 9px !important; background: transparent !important; color: var(--fj-muted) !important; }
.fj-game-shell-v1000 :where(.fj-adv-tab, .fj-adv-vert-tab, .fj-discipline-tab, .fj-desafio-tabs > button).is-active { background: var(--fj-violet-soft) !important; color: var(--fj-violet-ink) !important; }
.fj-game-shell-v1000 .fj-adv-progress-layout { display: grid !important; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr) !important; gap: 16px !important; }
.fj-game-shell-v1000 .fj-adv-progress-board,
.fj-game-shell-v1000 .fj-next-badge-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px !important; }
.fj-game-shell-v1000 .fj-adv-progress-stat,
.fj-game-shell-v1000 .fj-next-badge-metric { padding: 12px; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-adv-skill-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 9px !important; }
.fj-game-shell-v1000 .fj-adv-skill-card,
.fj-game-shell-v1000 .fj-adv-task { padding: 13px !important; border: 1px solid var(--fj-line) !important; border-radius: 13px !important; background: var(--fj-surface-2) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 .fj-adv-task-list { display: grid; gap: 9px; }
.fj-game-shell-v1000 .fj-adv-task.is-active-task { border-left: 4px solid var(--fj-violet) !important; }

/* Dinastía */
.fj-game-shell-v1000 .fj-team-hub { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-team-hub-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) 260px !important; align-items: center; padding: 0 !important; }
.fj-game-shell-v1000 .fj-team-hub-identity { display: flex; align-items: center; gap: 17px; min-width: 0; padding: 24px !important; }
.fj-game-shell-v1000 .fj-team-hub-hero-state { align-self: stretch; display: grid; align-content: center; padding: 20px !important; border-left: 1px solid var(--fj-line); background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-team-hub-stats { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--fj-line) !important; border-radius: 14px !important; background: var(--fj-surface) !important; box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-team-hub-stats > * { padding: 12px !important; border-right: 1px solid var(--fj-line); }
.fj-game-shell-v1000 .fj-team-hub-stats > *:last-child { border-right: 0; }
.fj-game-shell-v1000 .fj-dynasty-squad-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
.fj-game-shell-v1000 .fj-dynasty-player-card { min-width: 0; border: 1px solid var(--fj-line) !important; border-radius: 14px !important; background: var(--fj-surface-2) !important; box-shadow: none !important; }
.fj-game-shell-v1000 .fj-team-hub-main-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) 280px !important; gap: 14px !important; }
.fj-game-shell-v1000 .fj-team-hub-side { display: grid; align-content: start; gap: 14px; }

/* Economy */
.fj-game-shell-v1000 :where(.fj-bank-page, .fj-market-page, .fj-treasury-hub, .fj-store636-root) { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-bank-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto !important; align-items: center; gap: 16px; }
.fj-game-shell-v1000 .fj-bank-wallet-grid,
.fj-game-shell-v1000 .fj-treasury-balance-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px !important; }
.fj-game-shell-v1000 .fj-bank-wallet-card,
.fj-game-shell-v1000 .fj-treasury-stat { display: flex; align-items: center; gap: 11px; padding: 14px !important; border: 1px solid var(--fj-line) !important; border-radius: 13px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 .fj-bank-actions-grid,
.fj-game-shell-v1000 .fj-bank-explainer-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
.fj-game-shell-v1000 .fj-bank-ledger-list,
.fj-game-shell-v1000 .fj-treasury-movement-list { display: grid; gap: 7px; }
.fj-game-shell-v1000 .fj-bank-movement,
.fj-game-shell-v1000 .fj-treasury-movement { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center; gap: 11px; padding: 11px 12px !important; border: 1px solid var(--fj-line) !important; border-left: 4px solid var(--fj-green) !important; border-radius: 11px !important; background: var(--fj-surface-2) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 :where(.fj-bank-movement.is-expense, .fj-treasury-movement.is-expense) { border-left-color: var(--fj-red) !important; }
.fj-game-shell-v1000 .fj-store-grid,
.fj-game-shell-v1000 .fj-market-player-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.fj-game-shell-v1000 .fj-store-img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: var(--fj-surface-3); }
.fj-game-shell-v1000 .fj-store-img img { width: 100%; height: 100%; object-fit: cover; }

/* Community */
.fj-game-shell-v1000 :where(.fj-community-directory, .fj-wall641-page, .fj-ranking-page) { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-community-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; gap: 16px; }
.fj-game-shell-v1000 .fj-community-tools,
.fj-game-shell-v1000 .fj-wall641-toolbar { display: flex !important; align-items: center; flex-wrap: wrap; gap: 8px !important; padding: 12px !important; border: 1px solid var(--fj-line); border-radius: 13px; background: var(--fj-surface); }
.fj-game-shell-v1000 .fj-community-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.fj-game-shell-v1000 .fj-community-person-card,
.fj-game-shell-v1000 .fj-community-team-card { padding: 15px !important; }
.fj-game-shell-v1000 .fj-community-person-head,
.fj-game-shell-v1000 .fj-community-team-head { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: center; gap: 11px !important; }
.fj-game-shell-v1000 .fj-community-person-metrics,
.fj-game-shell-v1000 .fj-community-team-metrics { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px !important; }
.fj-game-shell-v1000 .fj-community-person-metrics > *,
.fj-game-shell-v1000 .fj-community-team-metrics > * { padding: 8px; border-radius: 9px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-wall641-layout { display: grid !important; grid-template-columns: 285px minmax(0, 1fr) !important; gap: 14px !important; }
.fj-game-shell-v1000 .fj-wall641-sidebar { display: grid; align-content: start; gap: 14px; }
.fj-game-shell-v1000 .fj-wall641-feed { display: grid; gap: 10px; }
.fj-game-shell-v1000 .fj-wall641-post { padding: 15px !important; }
.fj-game-shell-v1000 .fj-wall641-post-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fj-game-shell-v1000 .fj-ranking-list { display: grid; gap: 8px; }
.fj-game-shell-v1000 .fj-ranking-row { display: grid !important; grid-template-columns: 55px minmax(210px, 1.3fr) minmax(180px, 1fr) auto !important; align-items: center; gap: 12px; padding: 11px !important; border: 1px solid var(--fj-line) !important; border-radius: 12px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; box-shadow: var(--fj-shadow-soft); }

/* Desafío */
.fj-game-shell-v1000 .fj-desafio-page { display: grid; gap: 14px; }
.fj-game-shell-v1000 .fj-desafio-hero { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center; gap: 20px; }
.fj-game-shell-v1000 .fj-desafio-hero-stats { display: grid !important; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px !important; }
.fj-game-shell-v1000 .fj-desafio-hero-stats > * { padding: 10px; border: 1px solid var(--fj-line); border-radius: 11px; background: var(--fj-surface); }
.fj-game-shell-v1000 .fj-desafio-panels { min-width: 0; }
.fj-game-shell-v1000 .fj-desafio-panel:not(.is-active) { display: none !important; }
.fj-game-shell-v1000 .fj-desafio-arena-grid,
.fj-game-shell-v1000 .fj-desafio-mission-grid,
.fj-game-shell-v1000 .fj-desafio-battle-grid,
.fj-game-shell-v1000 .fj-desafio-champions-grid,
.fj-game-shell-v1000 .fj-desafio-trophy-grid,
.fj-game-shell-v1000 .fj-desafio-results-grid,
.fj-game-shell-v1000 .fj-desafio-history-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 12px !important; }
.fj-game-shell-v1000 :where(.fj-desafio-arena-card, .fj-desafio-battle-card, .fj-desafio-champion-card, .fj-desafio-trophy, .fj-desafio-result-card) { min-width: 0; padding: 16px !important; border: 1px solid var(--fj-line) !important; border-radius: 15px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-desafio-countdown { padding: 9px; border-radius: 10px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-weight: 850; text-align: center; }
.fj-game-shell-v1000 .fj-desafio-staff-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }

/* Staff and administration */
.fj-game-shell-v1000.fj-app-shell-administrador { --fj-violet: #087f78; --fj-violet-ink: #05645f; --fj-violet-soft: #e2f6f2; }
html[data-fj-theme="night"] .fj-game-shell-v1000.fj-app-shell-administrador { --fj-violet: #08756f; --fj-violet-ink: #8ff3eb; --fj-violet-soft: #153b3c; }
.fj-game-shell-v1000 :where(.fj-sp649-main-grid, .fj-sp651-main-grid, .fj-staff-grid, .fj-att-grid, .fj-eq654-grid, .fj-eq655-grid, .fj-tm658-grid, .fj-sys659-grid, .fj-app652-grid, .fj-intake653-grid) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px !important; }
.fj-game-shell-v1000 :where(.fj-sp649-priorities, .fj-dashboard-quick-grid, .fj-sys659-statgrid, .fj-tm658-statgrid) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px !important; }
.fj-game-shell-v1000 :where(.fj-sp649-priorities, .fj-sys659-statgrid, .fj-tm658-statgrid) > * { padding: 12px; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 :where(.fj-att-person, .fj-staff646-member, .fj-sp651-agenda-card, .fj-app652-card, .fj-tm658-card) { padding: 13px !important; border: 1px solid var(--fj-line) !important; border-radius: 13px !important; background: var(--fj-surface-2) !important; color: var(--fj-ink) !important; }

/* Mobile navigation */
.fj-game-shell-v1000 .fj-game-mobile-nav { display: none; }

/*
 * Readability contract 10.1.0
 *
 * The previous layer was visually clean but it achieved density with 7–10 px
 * labels and very subtle surface differences. This contract establishes a
 * comfortable reading floor, stronger information hierarchy and predictable
 * horizontal text flow without altering any data or business behaviour.
 */
.fj-game-shell-v1000 [data-fj-screen-body] {
  gap: 18px;
  font-size: 14px;
  line-height: 1.55;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(*) {
  min-width: 0;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  p, li, dt, dd, label, .description, .fj-copy, .fj-subtitle,
  .fj-muted, .fj-help, [class*="-helper"], [class*="-hint"]
) {
  color: var(--fj-muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
}

.fj-game-shell-v1000 [data-fj-screen-body] small {
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  [class$="-meta"], [class*="-meta "], [class$="-label"], [class*="-label "]
) {
  color: var(--fj-ink-soft) !important;
  font-size: 11.5px !important;
  line-height: 1.4 !important;
  opacity: 1 !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(h1, h2, h3, h4, h5, h6) {
  color: var(--fj-ink) !important;
  line-height: 1.18 !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-eyebrow, .fj-section-kicker, [class$="-kicker"], [class*="eyebrow"]
) {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  letter-spacing: .075em !important;
  opacity: 1 !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-btn, button:not(.fj-v10-explore-backdrop), input[type="submit"],
  input[type="button"], .button
) {
  min-height: 44px;
  padding: 9px 15px !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  white-space: normal;
  text-align: center;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-btn-sm) {
  min-height: 38px;
  font-size: 11.5px !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select, textarea
) {
  min-height: 44px;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

.fj-game-shell-v1000 :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--fj-violet) !important;
  outline-offset: 3px !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-badge, [class$="-chip"], [class$="-pill"], [class$="-count"], [class$="-count-chip"]
) {
  min-height: 28px;
  padding: 4px 9px;
  color: var(--fj-ink-soft) !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table th {
  padding: 9px 12px !important;
  color: var(--fj-muted) !important;
  font-size: 10.5px !important;
  letter-spacing: .055em;
}

.fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td {
  padding: 12px !important;
  color: var(--fj-ink-soft) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-card, .fj-panel, .fj-profile-panel, .fj-dashboard-panel, .fj-team-hub-panel,
  .fj-bank-action-card, .fj-bank-explainer, .fj-bank-week, .fj-bank-history,
  .fj-market-panel, .fj-market-summary-card, .fj-store636-panel, .fj-store-product,
  .fj-treasury-flow-card, .fj-treasury-activity, .fj-community-person-card,
  .fj-community-team-card, .fj-wall641-composer, .fj-wall641-post,
  .fj-desafio-panel, .fj-desafio-showcase-block, .fj-desafio-staff-block,
  .fj-sp649-panel, .fj-sp651-work-panel, .fj-sp651-agenda-card, .fj-sp647-card,
  .fj-sp650-card, .fj-staff-card, .fj-att-panel, .fj-rw657-panel,
  .fj-eq654-block, .fj-eq655-area, .fj-tm658-panel, .fj-tm658-card,
  .fj-sys659-card, .fj-app652-card, .fj-intake653-card
) {
  border-color: var(--fj-line) !important;
}

.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-profile-progress-row, .fj-dashboard-discipline, .fj-dashboard-action-card,
  .fj-dashboard-member-card, .fj-adv-progress-stat, .fj-next-badge-metric,
  .fj-adv-skill-card, .fj-adv-task, .fj-dynasty-player-card,
  .fj-community-person-metrics > *, .fj-community-team-metrics > *
) {
  background: var(--fj-surface-2) !important;
  border-color: var(--fj-line) !important;
}

/* Header, screen introduction and exploration directory. */
.fj-game-shell-v1000 .fj-v8-brand-copy small { font-size: 11.5px !important; letter-spacing: .085em; }
.fj-game-shell-v1000 .fj-v8-hud-stat small { font-size: 11.5px !important; }
.fj-game-shell-v1000 :where(.fj-v10-explore-toggle, .fj-v8-theme-toggle) b,
.fj-game-shell-v1000 .fj-v8-player-name { font-size: 12px !important; }
.fj-game-shell-v1000 .fj-v8-season { color: var(--fj-gold) !important; font-size: 11.5px !important; }
.fj-game-shell-v1000 .fj-v8-world.is-active,
.fj-game-shell-v1000 .fj-v8-world.is-active :where(*) { color: #fff !important; }
.fj-game-shell-v1000 .fj-v9-screen-icon,
.fj-game-shell-v1000 .fj-v9-screen-icon :where(*) { color: #fff !important; }
.fj-game-shell-v1000 .fj-v9-screen-kicker { font-size: 11.5px !important; letter-spacing: .07em; }
.fj-game-shell-v1000 .fj-v9-screen-copy p { color: var(--fj-muted) !important; font-size: 13px !important; line-height: 1.5; }
.fj-game-shell-v1000 .fj-v9-screen-action > span { color: var(--fj-muted) !important; font-size: 11.5px !important; }
.fj-game-shell-v1000 .fj-v9-cta strong,
.fj-game-shell-v1000 .fj-v9-screen-nav a b { font-size: 12px !important; }
.fj-v10-explore-head span,
.fj-v10-explore-group h3 { font-size: 10.5px; letter-spacing: .08em; }
.fj-v10-explore-head p { color: var(--fj-muted); font-size: 13px; line-height: 1.5; }
.fj-v10-explore-head > small,
.fj-v10-explore-group a small { color: var(--fj-muted); font-size: 11px; line-height: 1.4; }
.fj-v10-explore-group a b { font-size: 12.5px; }

/* Hero summaries must remain scannable without microscopic metadata. */
.fj-game-shell-v1000 .fj-dinasta-hero__copy > p { font-size: 13px !important; line-height: 1.5; }
.fj-game-shell-v1000 .fj-dinasta-hero__meta { font-size: 11.5px !important; line-height: 1.45; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary small { font-size: 11.5px !important; }
.fj-game-shell-v1000 .fj-dinasta-hero__summary strong { font-size: 12px !important; }
.fj-game-shell-v1000 .fj-dinasta-metric__copy small { font-size: 11.5px !important; line-height: 1.35; }
.fj-game-shell-v1000 .fj-dinasta-metric__copy strong { font-size: 15px !important; }
.fj-game-shell-v1000 :where(.fj-profile-progress-row, .fj-dashboard-discipline) { padding: 12px 13px; }
.fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-section-head, [class*="-panel-head"], [class*="-section-head"], .fj-v10-section-head
) p { font-size: 13px !important; line-height: 1.5 !important; }

/* The mission header could inherit the first 48 px column of an old grid. */
.fj-game-shell-v1000 .fj-adv-mission > .fj-v10-section-head {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
.fj-game-shell-v1000 .fj-adv-mission:has(> .fj-v10-section-head:only-child) {
  display: block !important;
}
.fj-game-shell-v1000 .fj-adv-step-label {
  width: auto;
  max-width: 100%;
  margin: 4px 0 2px;
  padding: 7px 11px;
  border: 1px solid rgba(104, 73, 230, .24);
  border-radius: 11px;
  font-size: 11.5px;
  line-height: 1.35;
  writing-mode: horizontal-tb !important;
  overflow-wrap: anywhere;
}
.fj-game-shell-v1000 :where(.fj-adv-tab, .fj-adv-vert-tab, .fj-discipline-tab, .fj-desafio-tabs > button) {
  min-height: 42px;
  color: var(--fj-ink-soft) !important;
  font-size: 12px !important;
}
.fj-game-shell-v1000 :where(.fj-adv-tab, .fj-adv-vert-tab, .fj-discipline-tab, .fj-desafio-tabs > button).is-active {
  color: var(--fj-violet-ink) !important;
  font-weight: 850;
}

/* Keep the light palette authoritative inside legacy modules as well. */
html[data-fj-theme="day"] .fj-game-shell-v1000 [data-fj-screen-body],
html[data-fj-theme="day"] .fj-game-shell-v1000 [data-fj-screen-body] :where(*) {
  --fj-bg: #f2f4fb !important;
  --fj-surface: #ffffff !important;
  --fj-surface-2: #f3f6fb !important;
  --fj-surface-3: #e8edf6 !important;
  --fj-ink: #111a2e !important;
  --fj-ink-soft: #2f3c56 !important;
  --fj-muted: #526078 !important;
  --fj-line: #cbd5e4 !important;
  --fj-line-strong: #acbacf !important;
  --surface: var(--fj-surface) !important;
  --surface-1: var(--fj-surface) !important;
  --surface-2: var(--fj-surface-2) !important;
  --border: var(--fj-line) !important;
  --text-primary: var(--fj-ink) !important;
  --text-secondary: var(--fj-muted) !important;
  --app-ink: var(--fj-ink) !important;
  --app-muted: var(--fj-muted) !important;
  --app-line: var(--fj-line) !important;
  --app-soft: var(--fj-surface-2) !important;
  --pi-ink: var(--fj-ink) !important;
  --pi-text: var(--fj-ink-soft) !important;
  --pi-muted: var(--fj-muted) !important;
  --pi-navy: var(--fj-surface-3) !important;
  --fj-ink-950: var(--fj-ink) !important;
  --fj-ink-900: var(--fj-ink) !important;
  --fj-ink-800: var(--fj-ink-soft) !important;
  --fj-ink-700: var(--fj-ink-soft) !important;
  --fj-ink-600: var(--fj-muted) !important;
  --fj-ink-500: var(--fj-muted) !important;
  --fj-surface-soft: var(--fj-surface-2) !important;
  --fj-surface-muted: var(--fj-surface-3) !important;
  --fj-dynasty-ink: var(--fj-ink) !important;
  --fj-dynasty-muted: var(--fj-muted) !important;
  --fj-dynasty-line: var(--fj-line) !important;
  --master-ink: var(--fj-ink) !important;
  --master-muted: var(--fj-muted) !important;
  --master-line: var(--fj-line) !important;
  --master-panel: var(--fj-surface) !important;
  --master-soft: var(--fj-surface-2) !important;
  --challenge-ink: var(--fj-ink) !important;
  --challenge-muted: var(--fj-muted) !important;
  --challenge-line: var(--fj-line) !important;
  --challenge-soft: var(--fj-surface-2) !important;
  --eq-bg: var(--fj-bg) !important;
  --eq-card: var(--fj-surface) !important;
  --eq-soft: var(--fj-surface-2) !important;
  --eq-ink: var(--fj-ink) !important;
  --eq-muted: var(--fj-muted) !important;
  --eq-line: var(--fj-line) !important;
  --exp-ink: var(--fj-ink) !important;
  --exp-muted: var(--fj-muted) !important;
  --exp-line: var(--fj-line) !important;
  --rw-bg: var(--fj-bg) !important;
  --rw-card: var(--fj-surface) !important;
  --rw-text: var(--fj-ink) !important;
  --rw-muted: var(--fj-muted) !important;
  --rw-line: var(--fj-line) !important;
  --sys-bg: var(--fj-bg) !important;
  --sys-card: var(--fj-surface) !important;
  --sys-text: var(--fj-ink) !important;
  --sys-muted: var(--fj-muted) !important;
  --sys-line: var(--fj-line) !important;
  --tm-bg: var(--fj-bg) !important;
  --tm-card: var(--fj-surface) !important;
  --tm-text: var(--fj-ink) !important;
  --tm-muted: var(--fj-muted) !important;
  --tm-line: var(--fj-line) !important;
  --wall-bg: var(--fj-surface-2) !important;
  --wall-ink: var(--fj-ink) !important;
  --wall-muted: var(--fj-muted) !important;
  --wall-line: var(--fj-line) !important;
}

/*
 * Night contract 10.1.0
 *
 * Legacy modules define their own light-only tokens on page roots. Re-map
 * those tokens at the component boundary, then cover explicit white surfaces.
 * This keeps every screen in one coherent navy hierarchy instead of leaving
 * isolated white islands below the global navigation.
 */
html[data-fj-theme="night"] body.fj-game-ui-v1000 :where(
  #page-container, #et-main-area, .et_builder_inner_content, .et_pb_section,
  .et_pb_row, .et_pb_column, .et_pb_module, .et_pb_code, .et_pb_code_inner,
  .entry-content, main.site-main, article.page
) {
  background-color: var(--fj-bg) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body],
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(*) {
  /* Freeze the semantic palette at every legacy component boundary. Several
     old page roots redeclare these same --fj-* names as light colors. */
  --fj-bg: #09101f !important;
  --fj-surface: #151f33 !important;
  --fj-surface-2: #1d2a43 !important;
  --fj-surface-3: #283754 !important;
  --fj-ink: #f7f9ff !important;
  --fj-ink-soft: #e4eaf5 !important;
  --fj-muted: #bec9dd !important;
  --fj-line: #3a4a67 !important;
  --fj-line-strong: #566986 !important;
  --fj-violet: #6547d7 !important;
  --fj-violet-ink: #ddd5ff !important;
  --fj-violet-soft: #302750 !important;
  --fj-teal: #42d2c8 !important;
  --fj-teal-ink: #7ee8df !important;
  --fj-teal-soft: #153b3c !important;
  --fj-cyan: #65d4ee !important;
  --fj-cyan-soft: #193a47 !important;
  --fj-gold: #ffd064 !important;
  --fj-gold-soft: #41351c !important;
  --fj-green: #72dda9 !important;
  --fj-green-soft: #16382e !important;
  --fj-red: #ff8797 !important;
  --fj-red-soft: #46252e !important;
  --fj-shadow: 0 22px 60px rgba(0, 0, 0, .34) !important;
  --fj-shadow-soft: 0 10px 28px rgba(0, 0, 0, .23) !important;
  --surface: var(--fj-surface) !important;
  --surface-1: var(--fj-surface) !important;
  --surface-2: var(--fj-surface-2) !important;
  --border: var(--fj-line) !important;
  --text-primary: var(--fj-ink) !important;
  --text-secondary: var(--fj-muted) !important;
  --app-ink: var(--fj-ink) !important;
  --app-muted: var(--fj-muted) !important;
  --app-line: var(--fj-line) !important;
  --app-soft: var(--fj-surface-2) !important;
  --pi-ink: var(--fj-ink) !important;
  --pi-text: var(--fj-ink-soft) !important;
  --pi-muted: var(--fj-muted) !important;
  --pi-navy: var(--fj-surface-3) !important;
  --pi-purple: var(--fj-violet) !important;
  --pi-purple-dark: var(--fj-violet-ink) !important;
  --pi-purple-soft: var(--fj-violet-soft) !important;
  --pi-gold: var(--fj-gold) !important;
  --pi-gold-soft: var(--fj-gold-soft) !important;
  --fj-ink-950: var(--fj-ink) !important;
  --fj-ink-900: var(--fj-ink) !important;
  --fj-ink-800: var(--fj-ink-soft) !important;
  --fj-ink-700: var(--fj-ink-soft) !important;
  --fj-ink-600: var(--fj-muted) !important;
  --fj-ink-500: var(--fj-muted) !important;
  --fj-surface-soft: var(--fj-surface-2) !important;
  --fj-surface-muted: var(--fj-surface-3) !important;
  --fj-dynasty-ink: var(--fj-ink) !important;
  --fj-dynasty-muted: var(--fj-muted) !important;
  --fj-dynasty-line: var(--fj-line) !important;
  --master-ink: var(--fj-ink) !important;
  --master-muted: var(--fj-muted) !important;
  --master-line: var(--fj-line) !important;
  --master-panel: var(--fj-surface) !important;
  --master-soft: var(--fj-surface-2) !important;
  --master-purple: var(--fj-violet) !important;
  --master-purple-dark: var(--fj-violet-ink) !important;
  --challenge-ink: var(--fj-ink) !important;
  --challenge-muted: var(--fj-muted) !important;
  --challenge-line: var(--fj-line) !important;
  --challenge-soft: var(--fj-surface-2) !important;
  --challenge-lilac: var(--fj-violet-soft) !important;
  --challenge-purple: var(--fj-violet) !important;
  --challenge-purple-deep: var(--fj-violet-ink) !important;
  --eq-bg: var(--fj-bg) !important;
  --eq-card: var(--fj-surface) !important;
  --eq-soft: var(--fj-surface-2) !important;
  --eq-ink: var(--fj-ink) !important;
  --eq-muted: var(--fj-muted) !important;
  --eq-line: var(--fj-line) !important;
  --exp-navy: var(--fj-surface-3) !important;
  --exp-ink: var(--fj-ink) !important;
  --exp-muted: var(--fj-muted) !important;
  --exp-line: var(--fj-line) !important;
  --exp-lilac: var(--fj-violet-soft) !important;
  --rw-bg: var(--fj-bg) !important;
  --rw-card: var(--fj-surface) !important;
  --rw-text: var(--fj-ink) !important;
  --rw-muted: var(--fj-muted) !important;
  --rw-line: var(--fj-line) !important;
  --sp651-ink: var(--fj-ink) !important;
  --sp651-muted: var(--fj-muted) !important;
  --sp651-line: var(--fj-line) !important;
  --sp651-soft: var(--fj-surface-2) !important;
  --sys-bg: var(--fj-bg) !important;
  --sys-card: var(--fj-surface) !important;
  --sys-text: var(--fj-ink) !important;
  --sys-muted: var(--fj-muted) !important;
  --sys-line: var(--fj-line) !important;
  --tm-bg: var(--fj-bg) !important;
  --tm-card: var(--fj-surface) !important;
  --tm-text: var(--fj-ink) !important;
  --tm-muted: var(--fj-muted) !important;
  --tm-line: var(--fj-line) !important;
  --tm-soft: var(--fj-teal-soft) !important;
  --wall-bg: var(--fj-surface-2) !important;
  --wall-ink: var(--fj-ink) !important;
  --wall-muted: var(--fj-muted) !important;
  --wall-line: var(--fj-line) !important;
  --wall-blue: var(--fj-violet-ink) !important;
  --wall-gold: var(--fj-gold) !important;
  --wall-gold-soft: var(--fj-gold-soft) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] {
  color: var(--fj-ink-soft) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-card, .fj-panel, .fj-profile-panel, .fj-dashboard-panel, .fj-team-hub-panel,
  .fj-profile-help, .fj-profile-next-task, .fj-profile-next-success,
  .fj-profile-transfer-card, .fj-profile-team-card, .fj-profile-store-card,
  .fj-profile-active-section, .fj-profile-team-active-section, .fj-profile-wall-card,
  .fj-ficha-detalle, .fj-ficha-radar-overview, .fj-discipline-explorer, .fj-radar-card,
  .fj-adv-help-card, .fj-adv-task, .fj-adv-mission, .fj-adv-skill-card,
  .fj-adv-progress-panel, .fj-next-badge, .fj-adv-skill-section,
  .fj-adv-history, .fj-adv-summary, .fj-adv-vertiente-card, .fj-adv-block,
  .fj-required-missing,
  .fj-dashboard-action-card, .fj-dashboard-member-card, .fj-dashboard-team-card,
  .fj-team-weekly-card, .fj-team-progress-section, .fj-team-progress-section-v2,
  .fj-team-member-card, .fj-team-role-card, .fj-team-wall-composer, .fj-team-wall-post,
  .fj-bank-wallet-card, .fj-bank-action-card, .fj-bank-explainer, .fj-bank-week,
  .fj-bank-actions-section, .fj-bank-history, .fj-bank-staff-card,
  .fj-market-panel, .fj-market-respect-card, .fj-market-summary-card, .fj-market-how,
  .fj-market-player-card, .fj-market-auction-card, .fj-market-confirm-dialog,
  .fj-treasury-balance-main, .fj-treasury-stat, .fj-treasury-flow-card,
  .fj-treasury-activity, .fj-treasury-explainer, .fj-treasury-team-card,
  .fj-store636-panel, .fj-store-product, .fj-prestige-summary, .fj-prestige-store,
  .fj-community-person-card, .fj-community-team-card, .fj-community-tools,
  .fj-wall641-profile, .fj-wall641-spotlight, .fj-wall641-hero, .fj-wall641-composer,
  .fj-wall641-feature-strip, .fj-wall641-staff-manager, .fj-wall641-toolbar,
  .fj-wall641-post, .fj-wall641-empty, .fj-wall641-no-results,
  .fj-ranking-control-panel, .fj-ranking-explain-card, .fj-ranking-my-position,
  .fj-ranking-podium-section, .fj-ranking-full-section, .fj-ranking-podium-card,
  .fj-desafio-panel, .fj-desafio-arena-group, .fj-desafio-arena-card,
  .fj-desafio-battle-card, .fj-desafio-champion-card, .fj-desafio-trophy,
  .fj-desafio-result-card, .fj-desafio-mission-market, .fj-desafio-showcase-block,
  .fj-desafio-staff-create, .fj-desafio-staff-block, .fj-exp-arena-group,
  .fj-exp-upcoming-card, .fj-exp-workspace, .fj-exp-route, .fj-exp-brief,
  .fj-exp-evidence, .fj-exp-evidence-form, .fj-exp-staff-return,
  .fj-master-library, .fj-master-form, .fj-master-live-grid > article,
  .fj-planner, .fj-planner-toolbar, .fj-method-projects, .fj-planner-alerts,
  .fj-planner-block, .fj-planner-coverage, .fj-planner-bulk,
  .fj-sp649-panel, .fj-sp651-work-panel, .fj-sp651-agenda-card,
  .fj-staff646-governance, .fj-staff646-directory, .fj-staff646-help,
  .fj-sp650-service, .fj-sp650-function-team, .fj-sp650-message,
  .fj-att-panel, .fj-att-toolbar, .fj-att-day, .fj-rw657-panel, .fj-rw657-auto,
  .fj-rw657-action-card, .fj-rw657-history-item, .fj-eq654-block,
  .fj-eq654-review-form, .fj-eq654-decision, .fj-eq654-history, .fj-eq654-card,
  .fj-eq655-area, .fj-eq655-start-card, .fj-eq655-waiting, .fj-eq655-authorized,
  .fj-eq655-closed, .fj-eq655-instructions, .fj-eq655-staff-banner,
  .fj-eq655-empty-state, .fj-eq655-staff-draft, .fj-eq655-staff-results,
  .fj-tm658-panel, .fj-tm658-danger, .fj-tm658-card, .fj-tm658-create,
  .fj-sys659-card, .fj-app652-card, .fj-app652-toolbar, .fj-app652-dialog,
  [style*="background: #fff"], [style*="background:#fff"],
  [style*="background: white"], [style*="background:white"]
) {
  background-color: var(--fj-surface) !important;
  background-image: none !important;
  color: var(--fj-ink-soft) !important;
  border-color: var(--fj-line) !important;
  box-shadow: var(--fj-shadow-soft) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-dinasta-hero, .fj-exp-hero, .fj-tm658-hero
) {
  background-color: var(--fj-surface) !important;
  background-image:
    radial-gradient(circle at 93% 5%, rgba(66, 210, 200, .10), transparent 22rem),
    radial-gradient(circle at 4% 100%, rgba(155, 125, 244, .13), transparent 24rem),
    linear-gradient(135deg, var(--fj-surface), #18243a 62%, #122836) !important;
  color: var(--fj-ink) !important;
  border-color: var(--fj-line) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-dinasta-hero__summary, .fj-dinasta-hero__metrics, .fj-dinasta-metric,
  .fj-profile-progress-row, .fj-profile-team-line, .fj-transfer-request-box,
  .fj-leader-transfer-member, .fj-empty-friendly, .fj-active-task-card,
  .fj-active-empty, .fj-profile-wall-item, .fj-general-progress-item,
  .fj-adv-progress-stat, .fj-adv-vert-bar, .fj-adv-task-details,
  .fj-adv-staff-validation, .fj-required-task-card, .fj-next-badge-grid > div,
  .fj-insignia-progress > div, .fj-adv-rules-grid > div, .fj-adv-vert-tab,
  .fj-active-limit, .fj-adv-filter, .fj-adv-task-toolbar-wrap,
  .fj-adv-task-toolbar, .fj-adv-block-head, .fj-adv-next-action,
  .fj-adv-medal, .fj-adv-radar-box, .fj-task-work-action,
  .fj-adv-levels > div, .fj-adv-validation-target, .fj-adv-validation-locked,
  .fj-adv-task-details > summary, .fj-adv-help-card > summary,
  .fj-required-missing > summary, .fj-success-inline,
  .fj-adv-summary > div, .fj-team-active-member,
  .fj-team-active-tasks a, .fj-dashboard-stat, .fj-dashboard-discipline,
  .fj-dashboard-team-stats > div, .fj-dashboard-attention-item,
  .fj-team-hub-stats > div, .fj-team-discipline-row, .fj-team-member-metrics span,
  .fj-treasury-movement, .fj-market-team-stats > div, .fj-market-bid-row,
  .fj-market-roster-row, .fj-bank-explainer-grid > div, .fj-bank-week-grid > div,
  .fj-bank-movement, .fj-bank-staff-summary > div, .fj-bank-staff-balances > span,
  .fj-store636-wallets article, .fj-store636-guide article, .fj-community-overview article,
  .fj-community-person-metrics > div, .fj-community-team-metrics > div,
  .fj-community-team-focus > div, .fj-wall641-pulse article, .fj-wall641-comment,
  .fj-ranking-mode-card, .fj-ranking-row, .fj-desafio-card-metrics > span,
  .fj-desafio-requirements > span, .fj-desafio-active-preview,
  .fj-desafio-versus, .fj-desafio-results-grid article, .fj-desafio-defenders-grid > article,
  .fj-exp-workspace-metrics, .fj-exp-next-action, .fj-exp-milestones button,
  .fj-exp-milestones li > div, .fj-exp-purpose, .fj-exp-evidence-item,
  .fj-master-hero-metrics article, .fj-master-final-check, .fj-master-inline-form,
  .fj-method-rules article, .fj-method-projects article, .fj-planner-metrics article,
  .fj-planner-alert-grid article, .fj-planner-item, .fj-planner-item-actions form,
  .fj-planner-coverage-grid article, .fj-staff646-stats article, .fj-staff646-member,
  .fj-att-stats > div, .fj-att-person, .fj-att-strike-box, .fj-att-consequence,
  .fj-rw657-stats > div, .fj-rw657-guidance article, .fj-rw657-auto-grid article,
  .fj-eq654-stats article, .fj-eq654-next, .fj-eq654-mini-scores,
  .fj-eq654-current-state, .fj-eq654-review-map article, .fj-eq654-score-columns > section,
  .fj-eq654-open-answers article, .fj-eq654-form-note, .fj-eq654-stage-summary,
  .fj-eq655-flow article, .fj-eq655-summary article, .fj-eq655-note,
  .fj-eq655-scale span, .fj-eq655-next-box, .fj-tm658-statgrid > div,
  .fj-tm658-metrics > div, .fj-tm658-guidance article, .fj-tm658-member,
  .fj-tm658-leader, .fj-sys659-statgrid > article, .fj-sys659-preview-grid > article,
  .fj-sys659-level-row > div, .fj-sys659-market-toggle, .fj-sys659-page-list > div,
  .fj-app652-stats article, .fj-app652-flow span, .fj-app652-contact,
  .fj-app652-motivation, .fj-app652-resolved, .fj-app652-empty
) {
  background-color: var(--fj-surface-2) !important;
  color: var(--fj-ink-soft) !important;
  border-color: var(--fj-line) !important;
}

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  h1, h2, h3, h4, h5, h6, .fj-title, .fj-heading, .fj-section-title,
  .fj-card-title, .fj-ranking-title, .fj-ranking-name, .fj-name
) { color: var(--fj-ink) !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  p, li, dt, dd, label, small, .fj-muted, .description, .fj-help,
  .fj-copy, .fj-subtitle, [class*="-helper"], [class*="-hint"]
) { color: var(--fj-muted) !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  a:not(.fj-btn):not(.button), .fj-eyebrow, [class*="-kicker"]
) { color: var(--fj-violet-ink) !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select, textarea
) {
  background: #0f1728 !important;
  color: var(--fj-ink) !important;
  border-color: var(--fj-line-strong) !important;
  box-shadow: none !important;
}
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(input, select, textarea)::placeholder { color: #aab6ce !important; opacity: 1; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  table, .fj-table, .widefat
) { background: var(--fj-surface) !important; color: var(--fj-ink-soft) !important; border-color: var(--fj-line) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(table, .fj-table, .widefat) :where(th, td) { background: var(--fj-surface-2) !important; color: var(--fj-ink-soft) !important; border-color: var(--fj-line) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(table, .fj-table, .widefat) th { color: var(--fj-muted) !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-btn-secondary, .button-secondary, .fj-secondary, .fj-discipline-tab,
  .fj-adv-tab, .fj-market-tab, .fj-ranking-switch > a, .fj-desafio-tabs button,
  .fj-kp-tabs button, .fj-store636-tab, .nav-tab
) {
  background: var(--fj-surface-2) !important;
  color: var(--fj-ink-soft) !important;
  border-color: var(--fj-line-strong) !important;
}
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-btn-ok, .fj-btn-primary, .button-primary, button[type="submit"], input[type="submit"]
) { color: #fff !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-progress, .fj-profile-progress, .fj-dashboard-track, .fj-adv-progress-track,
  .fj-adv-progress-meter, .fj-team-track, .fj-adv-progress-track-discipline,
  .fj-team-hub-level-track, .fj-dynasty-level-track, .fj-tm658-capacity,
  .fj-eq654-score i
) { background: #26344f !important; }

html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] :where(
  .fj-adv-task-details, .fj-adv-help-card, .fj-required-missing
) > summary::after {
  background: var(--fj-surface-3) !important;
  color: var(--fj-ink) !important;
  border-color: var(--fj-line-strong) !important;
}

/* Runtime audit classes cover asynchronous and legacy modules not known at build time. */
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-neutral {
  background-color: var(--fj-surface-2) !important;
  background-image: none !important;
  color: var(--fj-ink-soft) !important;
  border-color: var(--fj-line) !important;
}
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-field { background: #0f1728 !important; color: var(--fj-ink) !important; border-color: var(--fj-line-strong) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-violet { background-color: var(--fj-violet-soft) !important; background-image: none !important; color: var(--fj-violet-ink) !important; border-color: #54467d !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-teal { background-color: var(--fj-teal-soft) !important; background-image: none !important; color: var(--fj-teal-ink) !important; border-color: #2c615f !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-gold { background-color: var(--fj-gold-soft) !important; background-image: none !important; color: var(--fj-gold) !important; border-color: #6d592b !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-red { background-color: var(--fj-red-soft) !important; background-image: none !important; color: var(--fj-red) !important; border-color: #70404b !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-ink { color: var(--fj-ink) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-muted { color: var(--fj-muted) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-accent { color: var(--fj-violet-ink) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-gold-text { color: var(--fj-gold) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-teal-text { color: var(--fj-teal-ink) !important; }
html[data-fj-theme="night"] .fj-game-shell-v1000 [data-fj-screen-body] .fj-v10-night-red-text { color: var(--fj-red) !important; }

@media (max-width: 1040px) {
  .fj-game-shell-v1000 .fj-v8-gamebar-main { grid-template-columns: auto 1fr; }
  .fj-game-shell-v1000 .fj-v8-worlds { justify-self: end; }
  .fj-game-shell-v1000 .fj-v8-player-hud { grid-column: 1 / -1; }
  .fj-game-shell-v1000 .fj-community-grid,
  .fj-game-shell-v1000 .fj-store-grid,
  .fj-game-shell-v1000 .fj-market-player-grid,
  .fj-game-shell-v1000 .fj-desafio-arena-grid,
  .fj-game-shell-v1000 .fj-desafio-mission-grid,
  .fj-game-shell-v1000 .fj-desafio-battle-grid,
  .fj-game-shell-v1000 .fj-desafio-champions-grid,
  .fj-game-shell-v1000 .fj-desafio-trophy-grid,
  .fj-game-shell-v1000 .fj-desafio-results-grid,
  .fj-game-shell-v1000 .fj-desafio-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 780px) {
  body.fj-game-ui-v1000 { padding-bottom: 78px !important; }
  .fj-game-shell-v1000 .fj-v8-gamebar,
  .fj-game-shell-v1000 .fj-v8-page-canvas { width: min(calc(100% - 20px), var(--fj-shell)) !important; }
  .fj-game-shell-v1000 .fj-v8-gamebar { min-height: 0; margin-top: 10px !important; padding: 11px 12px !important; border-radius: 17px !important; }
  .fj-game-shell-v1000 .fj-v8-gamebar-main { grid-template-columns: 1fr auto !important; gap: 9px !important; }
  .fj-game-shell-v1000 .fj-v8-brand { min-width: 0; }
  .fj-game-shell-v1000 .fj-v8-brand-mark { width: 40px !important; height: 40px !important; flex-basis: 40px; border-radius: 11px !important; }
  .fj-game-shell-v1000 .fj-v8-brand-copy strong { font-size: 14px !important; }
  .fj-game-shell-v1000 .fj-v8-brand-copy small { margin-top: 4px; font-size: 10.5px !important; }
  .fj-game-shell-v1000 .fj-v8-worlds { display: none !important; }
  .fj-game-shell-v1000 .fj-v8-player-hud { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .fj-game-shell-v1000 .fj-v8-player-hud > :where(.fj-v8-hud-stat, .fj-v8-staff-badge, .fj-v8-season, .fj-v8-player-name, .fj-v10-explore-toggle) { display: none !important; }
  .fj-game-shell-v1000 .fj-v8-player-hud > .fj-front-avatar { margin-left: 0; }
  .fj-game-shell-v1000 .fj-v8-theme-toggle { width: 38px; padding: 0 !important; justify-content: center; }
  .fj-game-shell-v1000 .fj-v8-theme-toggle :where(.dashicons, b) { display: none !important; }
  .fj-game-shell-v1000 .fj-v8-theme-toggle::before {
    content: "☀";
    display: block;
    color: var(--fj-violet-ink);
    font-size: 16px;
    line-height: 1;
  }
  html[data-fj-theme="night"] .fj-game-shell-v1000 .fj-v8-theme-toggle::before { content: "☾"; color: #f4cd62; }
  .fj-game-shell-v1000 .fj-v8-page-canvas { padding: 18px 0 26px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-intro { border-radius: 18px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-intro__main { grid-template-columns: auto minmax(0, 1fr) !important; min-height: 0 !important; padding: 18px 16px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-icon { width: 46px !important; height: 46px !important; border-radius: 13px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-copy h1 { font-size: 28px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-copy p { font-size: 13px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-action { grid-column: 1 / -1; }
  .fj-game-shell-v1000 .fj-v9-screen-nav { padding: 7px 9px !important; }
  .fj-game-shell-v1000 [data-fj-screen-body] { gap: 12px; }
  .fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-card, .fj-profile-panel, .fj-dashboard-panel, .fj-team-hub-panel, .fj-sp649-panel, .fj-att-panel, .fj-rw657-panel, .fj-eq654-block, .fj-eq655-area, .fj-tm658-panel, .fj-sys659-card) { padding: 15px !important; border-radius: 15px !important; }
  .fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-section-head, [class*="-panel-head"], [class*="-section-head"]) { display: grid; gap: 8px; }
  .fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-form-grid, .fj-form-grid-2, .fj-desafio-form-grid, .fj-sys659-field-grid) { grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-profile-guide-row,
  .fj-game-shell-v1000 .fj-profile-main-grid,
  .fj-game-shell-v1000 .fj-dashboard-grid-main,
  .fj-game-shell-v1000 .fj-adv-progress-layout,
  .fj-game-shell-v1000 .fj-team-hub-main-grid,
  .fj-game-shell-v1000 .fj-wall641-layout,
  .fj-game-shell-v1000 :where(.fj-sp649-main-grid, .fj-sp651-main-grid, .fj-staff-grid, .fj-att-grid, .fj-eq654-grid, .fj-eq655-grid, .fj-tm658-grid, .fj-sys659-grid, .fj-app652-grid, .fj-intake653-grid) { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-profile-next-card,
  .fj-game-shell-v1000 .fj-dashboard-mission { grid-template-columns: auto minmax(0, 1fr); }
  .fj-game-shell-v1000 .fj-profile-next-card > :where(.fj-btn, a),
  .fj-game-shell-v1000 .fj-dashboard-mission > .fj-btn { grid-column: 1 / -1; width: 100%; }
  .fj-game-shell-v1000 .fj-dinasta-hero__top { grid-template-columns: 1fr !important; padding: 19px 16px !important; }
  .fj-game-shell-v1000 .fj-dinasta-hero__summary { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .fj-game-shell-v1000 .fj-dinasta-hero__summary > span { min-width: 0; display: grid !important; align-content: center; justify-items: start; }
  .fj-game-shell-v1000 .fj-dinasta-hero__summary strong { max-width: 100%; text-align: left; }
  .fj-game-shell-v1000 .fj-dinasta-hero__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .fj-game-shell-v1000 .fj-dinasta-metric { border-bottom: 1px solid var(--fj-line) !important; }
  .fj-game-shell-v1000 .fj-dinasta-metric:nth-child(2n) { border-right: 0 !important; }
  .fj-game-shell-v1000 .fj-dinasta-metric:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .fj-game-shell-v1000 .fj-dashboard-member-grid,
  .fj-game-shell-v1000 .fj-dashboard-team-stats,
  .fj-game-shell-v1000 .fj-dashboard-quick-grid,
  .fj-game-shell-v1000 .fj-adv-skill-grid,
  .fj-game-shell-v1000 .fj-adv-progress-board,
  .fj-game-shell-v1000 .fj-next-badge-grid,
  .fj-game-shell-v1000 .fj-community-grid,
  .fj-game-shell-v1000 .fj-store-grid,
  .fj-game-shell-v1000 .fj-market-player-grid,
  .fj-game-shell-v1000 .fj-desafio-arena-grid,
  .fj-game-shell-v1000 .fj-desafio-mission-grid,
  .fj-game-shell-v1000 .fj-desafio-battle-grid,
  .fj-game-shell-v1000 .fj-desafio-champions-grid,
  .fj-game-shell-v1000 .fj-desafio-trophy-grid,
  .fj-game-shell-v1000 .fj-desafio-results-grid,
  .fj-game-shell-v1000 .fj-desafio-history-grid,
  .fj-game-shell-v1000 .fj-desafio-staff-grid,
  .fj-game-shell-v1000 :where(.fj-sp649-priorities, .fj-sys659-statgrid, .fj-tm658-statgrid) { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-team-hub-hero { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-team-hub-hero-state { border-left: 0; border-top: 1px solid var(--fj-line); }
  .fj-game-shell-v1000 .fj-team-hub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-game-shell-v1000 .fj-team-hub-stats > * { border-bottom: 1px solid var(--fj-line); }
  .fj-game-shell-v1000 .fj-team-hub-stats > *:nth-child(2n) { border-right: 0; }
  .fj-game-shell-v1000 .fj-dynasty-squad-grid { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-bank-hero,
  .fj-game-shell-v1000 .fj-community-hero,
  .fj-game-shell-v1000 .fj-desafio-hero { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-bank-wallet-grid,
  .fj-game-shell-v1000 .fj-treasury-balance-grid,
  .fj-game-shell-v1000 .fj-bank-actions-grid,
  .fj-game-shell-v1000 .fj-bank-explainer-grid { grid-template-columns: 1fr 1fr !important; }
  .fj-game-shell-v1000 .fj-ranking-row { grid-template-columns: 44px minmax(0, 1fr) auto !important; }
  .fj-game-shell-v1000 .fj-ranking-row-progress { grid-column: 2 / -1; }
  .fj-game-shell-v1000 .fj-game-mobile-nav { position: fixed; z-index: 80; left: 9px; right: 9px; bottom: 8px; display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; padding: 6px; border: 1px solid var(--fj-line); border-radius: 17px; background: var(--fj-surface); box-shadow: 0 16px 45px rgba(0, 0, 0, .22); }
  .fj-game-shell-v1000 .fj-game-mobile-nav :where(a, button) { min-width: 0; min-height: 49px; display: grid !important; place-items: center; align-content: center; gap: 2px; padding: 4px !important; border: 0 !important; border-radius: 11px !important; background: transparent !important; color: var(--fj-muted) !important; text-decoration: none !important; }
  .fj-game-shell-v1000 .fj-game-mobile-nav :where(a, button).is-active { background: var(--fj-violet-soft) !important; color: var(--fj-violet-ink) !important; }
  .fj-game-shell-v1000 .fj-game-mobile-nav b { max-width: 100%; overflow: hidden; font-size: 10.5px !important; text-overflow: ellipsis; white-space: nowrap; }
  .fj-game-shell-v1000 .fj-game-mobile-nav .dashicons { width: 18px; height: 18px; font-size: 18px; }
  .fj-v10-explore { padding: 10px; align-items: end; }
  .fj-v10-explore-panel { width: 100%; max-height: calc(100vh - 20px); padding: 18px; border-radius: 22px; }
  .fj-v10-explore-head > small { display: none; }
  .fj-v10-explore-groups { grid-template-columns: 1fr; }
  .fj-v10-explore-group > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.fj-game-ui-v1000 :where(.fj-access-shell, .fj-solicitud-page) { width: min(calc(100% - 20px), 1120px) !important; margin: 16px auto !important; }
  body.fj-game-ui-v1000 .fj-access-grid,
  body.fj-game-ui-v1000 .fj-apply-layout { grid-template-columns: 1fr !important; }
  body.fj-game-ui-v1000 .fj-apply-steps,
  body.fj-game-ui-v1000 .fj-apply-note-grid { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table thead { display: none; }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table,
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table tbody,
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table tr,
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td { display: block; width: 100%; }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table tr { margin-bottom: 9px; overflow: hidden; border: 1px solid var(--fj-line); border-radius: 12px; background: var(--fj-surface-2); }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td { display: grid; grid-template-columns: minmax(95px, .7fr) 1fr; gap: 10px; border: 0 !important; border-bottom: 1px solid var(--fj-line) !important; border-radius: 0 !important; }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td::before { content: attr(data-label); color: var(--fj-muted); font-size: 10.5px; font-weight: 900; text-transform: uppercase; }
  .fj-game-shell-v1000 [data-fj-screen-body] table.fj-v10-table td:last-child { border-bottom: 0 !important; }
}

@media (max-width: 460px) {
  .fj-game-shell-v1000 .fj-v8-gamebar,
  .fj-game-shell-v1000 .fj-v8-page-canvas { width: min(calc(100% - 14px), var(--fj-shell)) !important; }
  .fj-game-shell-v1000 .fj-v8-brand-copy { display: none !important; }
  .fj-game-shell-v1000 .fj-v9-screen-intro__main { gap: 11px !important; padding: 16px 13px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-copy h1 { font-size: 24px !important; }
  .fj-game-shell-v1000 .fj-v9-screen-copy p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fj-game-shell-v1000 [data-fj-screen-body] :where(.fj-section-head, [class*="-panel-head"], [class*="-section-head"]) :where(h2, h3, h4) { font-size: 17px !important; }
  .fj-game-shell-v1000 .fj-team-hub-identity { align-items: flex-start; padding: 17px !important; }
  .fj-game-shell-v1000 .fj-dinasta-hero__identity { align-items: flex-start; }
  .fj-game-shell-v1000 .fj-dinasta-hero__avatar > * { width: 58px !important; height: 58px !important; flex-basis: 58px; }
  .fj-game-shell-v1000 .fj-dinasta-hero__summary { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-dinasta-hero__summary > span { display: flex !important; justify-items: stretch; }
  .fj-game-shell-v1000 .fj-bank-wallet-grid,
  .fj-game-shell-v1000 .fj-treasury-balance-grid,
  .fj-game-shell-v1000 .fj-bank-actions-grid,
  .fj-game-shell-v1000 .fj-bank-explainer-grid { grid-template-columns: 1fr !important; }
  .fj-game-shell-v1000 .fj-desafio-hero-stats { grid-template-columns: 1fr; }
  .fj-v10-explore-group > div { grid-template-columns: 1fr; }
}

/* =========================================================
 * Mi ficha 10.1 — a personal journey, not a technical report
 * ========================================================= */
.fj-game-shell-v1000 .fj-profile-portal.is-youth-profile {
  gap: 22px;
  scroll-behavior: smooth;
}

.fj-game-shell-v1000 .fj-profile-route-nav {
  position: sticky;
  z-index: 12;
  top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--fj-line);
  border-radius: 17px;
  background: color-mix(in srgb, var(--fj-surface) 94%, transparent);
  box-shadow: var(--fj-shadow-soft);
  backdrop-filter: blur(16px);
}
.fj-game-shell-v1000 .fj-profile-route-nav a {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 1px 9px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--fj-ink);
  text-decoration: none !important;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.fj-game-shell-v1000 .fj-profile-route-nav a:hover,
.fj-game-shell-v1000 .fj-profile-route-nav a:focus-visible {
  border-color: var(--fj-line-strong);
  background: var(--fj-surface-2);
  transform: translateY(-1px);
}
.fj-game-shell-v1000 .fj-profile-route-nav a > span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 10px;
  background: var(--fj-violet-soft);
  color: var(--fj-violet-ink);
  font-size: 10px;
  font-weight: 900;
}
.fj-game-shell-v1000 .fj-profile-route-nav strong { overflow: hidden; color: var(--fj-ink); font-size: 12px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.fj-game-shell-v1000 .fj-profile-route-nav small { overflow: hidden; color: var(--fj-muted); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.fj-game-shell-v1000 .fj-profile-focus-zone,
.fj-game-shell-v1000 .fj-profile-journey-section,
.fj-game-shell-v1000 .fj-profile-mission-section { scroll-margin-top: 90px; }
.fj-game-shell-v1000 .fj-profile-focus-zone { grid-template-columns: minmax(0, 1fr) 290px; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-card {
  min-height: 150px;
  padding: 22px 24px;
  border-left-width: 6px;
  background:
    radial-gradient(circle at 92% 18%, color-mix(in srgb, var(--fj-violet) 18%, transparent), transparent 28%),
    linear-gradient(112deg, var(--fj-surface), var(--fj-violet-soft));
}
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-icon { width: 54px; height: 54px; border-radius: 17px; font-size: 20px; box-shadow: 0 9px 24px color-mix(in srgb, var(--fj-violet) 24%, transparent); }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-copy h3 { margin: 2px 0 5px; color: var(--fj-ink); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.1; letter-spacing: -.025em; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-copy p { max-width: 680px; margin: 0; color: var(--fj-muted); font-size: 13px; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details { align-self: stretch; margin: 0 !important; border-radius: 16px !important; background: var(--fj-surface) !important; box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details > summary { min-height: 100%; display: flex; align-items: center; padding: 18px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details > summary :where(strong, small) { color: inherit !important; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details > summary small { color: var(--fj-muted) !important; }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details[open] > summary { min-height: 0; border-bottom: 1px solid var(--fj-line); }
.fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-help-content { background: var(--fj-surface) !important; color: var(--fj-ink-soft) !important; }

.fj-game-shell-v1000 .fj-profile-journey-section { display: grid; gap: 12px; }
.fj-game-shell-v1000 .fj-profile-journey-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 5px;
}
.fj-game-shell-v1000 .fj-profile-journey-head h3 { margin: 3px 0 4px; color: var(--fj-ink); font-size: clamp(21px, 2.5vw, 28px); line-height: 1.12; letter-spacing: -.025em; }
.fj-game-shell-v1000 .fj-profile-journey-head p { max-width: 760px; margin: 0; color: var(--fj-muted); font-size: 12.5px; }
.fj-game-shell-v1000 .fj-profile-journey-tip { flex: 0 0 auto; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--fj-violet) 40%, var(--fj-line)); border-radius: 999px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-size: 10px; font-weight: 850; }

.fj-game-shell-v1000 .fj-profile-growth-hub { padding: 18px !important; }
.fj-game-shell-v1000 .fj-profile-growth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.fj-game-shell-v1000 .fj-profile-growth-card {
  position: relative;
  min-width: 0;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--fj-line);
  border-top: 4px solid var(--disc-accent, var(--fj-violet));
  border-radius: 15px;
  background: var(--fj-surface-2);
  color: var(--fj-ink);
  text-decoration: none !important;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.fj-game-shell-v1000 .fj-profile-growth-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -38px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--disc-accent, var(--fj-violet)) 12%, transparent);
  pointer-events: none;
}
.fj-game-shell-v1000 .fj-profile-growth-card:hover,
.fj-game-shell-v1000 .fj-profile-growth-card:focus-visible { transform: translateY(-3px); border-color: var(--disc-accent, var(--fj-violet)); box-shadow: var(--fj-shadow-soft); }
.fj-game-shell-v1000 .fj-profile-growth-card.is-priority { border-color: color-mix(in srgb, var(--disc-accent, var(--fj-violet)) 68%, var(--fj-line)); background: linear-gradient(150deg, var(--fj-surface), var(--fj-violet-soft)); box-shadow: 0 12px 32px color-mix(in srgb, var(--fj-violet) 14%, transparent); }
.fj-game-shell-v1000 .fj-profile-growth-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fj-game-shell-v1000 .fj-profile-growth-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 12px; background: color-mix(in srgb, var(--disc-accent, var(--fj-violet)) 18%, var(--fj-surface)); color: var(--disc-accent, var(--fj-violet-ink)); font-size: 17px; font-weight: 900; }
.fj-game-shell-v1000 :where(.fj-profile-priority-chip, .fj-profile-level-chip) { max-width: 150px; overflow: hidden; padding: 5px 8px; border: 1px solid var(--fj-line); border-radius: 999px; background: var(--fj-surface); color: var(--fj-muted); font-size: 9px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.fj-game-shell-v1000 .fj-profile-priority-chip { border-color: color-mix(in srgb, var(--fj-violet) 42%, var(--fj-line)); background: var(--fj-violet-soft); color: var(--fj-violet-ink); }
.fj-game-shell-v1000 .fj-profile-growth-card h4 { margin: 2px 0 0; color: var(--fj-ink); font-size: 18px; line-height: 1.12; }
.fj-game-shell-v1000 .fj-profile-growth-card > p { min-height: 40px; margin: 0; color: var(--fj-muted); font-size: 11px; line-height: 1.45; }
.fj-game-shell-v1000 .fj-profile-growth-status { display: flex; align-items: end; justify-content: space-between; gap: 8px; margin-top: auto; }
.fj-game-shell-v1000 .fj-profile-growth-status span { color: var(--fj-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.fj-game-shell-v1000 .fj-profile-growth-status strong { color: var(--fj-ink-soft); font-size: 10px; text-align: right; }
.fj-game-shell-v1000 .fj-profile-growth-card .fj-profile-progress { min-height: 7px; overflow: hidden; border-radius: 999px; background: var(--fj-surface-3); }
.fj-game-shell-v1000 .fj-profile-growth-card .fj-profile-progress > span { display: block; min-width: 3px; height: 100%; border-radius: inherit; }
.fj-game-shell-v1000 .fj-profile-growth-action { margin-top: 2px; color: var(--fj-ink); font-size: 10px; font-weight: 900; }
.fj-game-shell-v1000 .fj-profile-growth-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; padding: 12px 13px; border: 1px dashed var(--fj-line-strong); border-radius: 13px; background: var(--fj-surface); color: var(--fj-muted); font-size: 11px; }
.fj-game-shell-v1000 .fj-profile-growth-footer strong { color: var(--fj-ink); }

.fj-game-shell-v1000 .fj-profile-world-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.fj-game-shell-v1000 .fj-profile-world-grid > .fj-profile-panel { position: relative; min-width: 0; min-height: 240px; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; padding: 18px !important; }
.fj-game-shell-v1000 .fj-profile-world-grid > .fj-profile-panel::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--fj-teal); }
.fj-game-shell-v1000 .fj-profile-world-grid > .fj-profile-transfer-card::before { background: var(--fj-violet); }
.fj-game-shell-v1000 .fj-profile-world-grid > .fj-profile-store-card::before { background: var(--fj-gold); }
.fj-game-shell-v1000 .fj-profile-world-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 13px; background: var(--fj-teal-soft); color: var(--fj-teal-ink); font-size: 18px; font-weight: 900; }
.fj-game-shell-v1000 .fj-profile-store-card .fj-profile-world-icon { background: var(--fj-gold-soft); color: var(--fj-gold); }
.fj-game-shell-v1000 .fj-profile-world-grid h4 { margin: 4px 0 12px; color: var(--fj-ink); font-size: 18px; }
.fj-game-shell-v1000 .fj-profile-world-grid :where(p, .fj-profile-explain) { color: var(--fj-muted) !important; font-size: 11.5px !important; line-height: 1.5; }
.fj-game-shell-v1000 .fj-profile-world-grid .fj-btn { align-self: flex-start; margin-top: auto; }
.fj-game-shell-v1000 .fj-profile-world-grid .fj-transfer-request-box { margin-top: auto; }

.fj-game-shell-v1000 .fj-profile-mission-section { padding: 20px !important; background: linear-gradient(145deg, var(--fj-surface), var(--fj-violet-soft)) !important; }
.fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-card { position: relative; min-height: 145px; padding: 15px 16px 14px 20px !important; border: 1px solid var(--fj-line) !important; border-left: 5px solid var(--fj-violet) !important; border-radius: 14px !important; background: var(--fj-surface) !important; color: var(--fj-ink) !important; }
.fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-card > strong { color: var(--fj-ink) !important; font-size: 14px; }
.fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-card > :where(small, em) { color: var(--fj-muted) !important; }
.fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-card > b { margin-top: auto; color: var(--fj-violet-ink) !important; }

.fj-game-shell-v1000 .fj-profile-growth-lab { display: grid; gap: 16px; margin-top: 22px !important; padding: 22px !important; }
.fj-game-shell-v1000 .fj-profile-growth-lab > .fj-ficha-clean-head { margin: 0; padding-bottom: 15px; border-bottom: 1px solid var(--fj-line); }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-clean-head h4 { margin: 3px 0 4px; color: var(--fj-ink); font-size: clamp(22px, 2.6vw, 29px); line-height: 1.12; }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-clean-head p { max-width: 820px; margin: 0; color: var(--fj-muted) !important; }
.fj-game-shell-v1000 .fj-growth-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fj-game-shell-v1000 .fj-growth-story-card { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 15px; border: 1px solid var(--fj-line); border-radius: 14px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-growth-story-card.is-strength { border-top: 4px solid var(--fj-teal); }
.fj-game-shell-v1000 .fj-growth-story-card.is-focus { border-top: 4px solid var(--fj-violet); }
.fj-game-shell-v1000 .fj-growth-story-card.is-motion { border-top: 4px solid var(--fj-gold); }
.fj-game-shell-v1000 .fj-growth-story-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 12px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-size: 16px; font-weight: 900; }
.fj-game-shell-v1000 .fj-growth-story-card.is-strength .fj-growth-story-icon { background: var(--fj-teal-soft); color: var(--fj-teal-ink); }
.fj-game-shell-v1000 .fj-growth-story-card.is-motion .fj-growth-story-icon { background: var(--fj-gold-soft); color: var(--fj-gold); }
.fj-game-shell-v1000 .fj-growth-story-card h4 { margin: 3px 0 4px; color: var(--fj-ink); font-size: 15px; line-height: 1.2; }
.fj-game-shell-v1000 .fj-growth-story-card p { margin: 0; color: var(--fj-muted); font-size: 10.5px; line-height: 1.45; }
.fj-game-shell-v1000 .fj-profile-onboarding-card,
.fj-game-shell-v1000 .fj-profile-offers-card { margin: 0 !important; padding: 16px !important; border: 1px solid var(--fj-line) !important; border-radius: 14px !important; background: var(--fj-surface-2) !important; }
.fj-game-shell-v1000 .fj-profile-onboarding-card .fj-section-head { display: flex !important; align-items: flex-start; }
.fj-game-shell-v1000 .fj-ficha-quick-actions { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 13px 15px; border: 1px solid var(--fj-line); border-radius: 14px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-ficha-quick-actions > span { display: grid; }
.fj-game-shell-v1000 .fj-ficha-quick-actions > span strong { color: var(--fj-ink); font-size: 12px; }
.fj-game-shell-v1000 .fj-ficha-quick-actions > span small { color: var(--fj-muted); font-size: 10px; }
.fj-game-shell-v1000 .fj-ficha-quick-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }

.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-radar-overview { margin: 0 !important; padding: 18px !important; border: 1px solid var(--fj-line) !important; border-radius: 17px !important; background: linear-gradient(140deg, var(--fj-surface), var(--fj-teal-soft)) !important; }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-radar-copy h4 { margin: 4px 0 6px; color: var(--fj-ink); font-size: 19px; }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-radar-copy p,
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-radar-legend { color: var(--fj-muted); }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-general-progress-item { border-color: var(--fj-line) !important; background: var(--fj-surface) !important; }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-general-progress-item :where(strong, span) { color: var(--fj-ink-soft) !important; }

.fj-game-shell-v1000 .fj-growth-deep-dive { overflow: hidden; border: 1px solid var(--fj-line); border-radius: 17px; background: var(--fj-surface-2); }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary { min-height: 84px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 16px 18px; color: var(--fj-ink); cursor: pointer; list-style: none; }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary::-webkit-details-marker { display: none; }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary:hover { background: var(--fj-surface-3); }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary > span:nth-child(2) { display: grid; gap: 3px; }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary strong { color: var(--fj-ink); font-size: 14px; }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary small { color: var(--fj-muted); font-size: 10.5px; }
.fj-game-shell-v1000 .fj-growth-deep-dive > summary em { padding: 7px 10px; border: 1px solid var(--fj-line); border-radius: 999px; background: var(--fj-surface); color: var(--fj-violet-ink); font-size: 10px; font-style: normal; font-weight: 900; }
.fj-game-shell-v1000 .fj-growth-deep-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--fj-violet-soft); color: var(--fj-violet-ink); font-size: 18px; font-weight: 900; transition: transform .18s ease; }
.fj-game-shell-v1000 .fj-growth-deep-dive[open] .fj-growth-deep-icon { transform: rotate(45deg); }
.fj-game-shell-v1000 .fj-growth-deep-content { display: grid; gap: 13px; padding: 0 16px 16px; border-top: 1px solid var(--fj-line); }
.fj-game-shell-v1000 .fj-growth-deep-content > .fj-ficha-detail-head { margin: 0; padding: 16px 2px 0; }
.fj-game-shell-v1000 .fj-growth-deep-content .fj-discipline-explorer { margin: 0 !important; border: 0 !important; background: transparent !important; }
.fj-game-shell-v1000 .fj-profile-growth-lab .fj-ficha-note { margin: 0; border-color: var(--fj-line-strong); background: var(--fj-violet-soft); color: var(--fj-ink-soft); }

@media (max-width: 900px) {
  .fj-game-shell-v1000 .fj-profile-route-nav { position: relative; top: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-game-shell-v1000 .fj-profile-focus-zone { grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-details > summary { min-height: 72px; }
  .fj-game-shell-v1000 .fj-profile-growth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fj-game-shell-v1000 .fj-growth-story { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fj-game-shell-v1000 .fj-profile-portal.is-youth-profile { gap: 16px; }
  .fj-game-shell-v1000 .fj-profile-route-nav { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  .fj-game-shell-v1000 .fj-profile-route-nav a { min-width: 155px; flex: 0 0 155px; scroll-snap-align: start; }
  .fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-card { grid-template-columns: auto minmax(0, 1fr) !important; min-height: 0; padding: 17px !important; }
  .fj-game-shell-v1000 .fj-profile-focus-zone .fj-profile-next-card > .fj-btn { grid-column: 1 / -1; width: 100%; }
  .fj-game-shell-v1000 .fj-profile-journey-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .fj-game-shell-v1000 .fj-profile-journey-tip { white-space: normal; }
  .fj-game-shell-v1000 .fj-profile-growth-grid { grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-profile-growth-card { min-height: 205px; }
  .fj-game-shell-v1000 .fj-profile-growth-footer { align-items: stretch; flex-direction: column; }
  .fj-game-shell-v1000 .fj-profile-growth-footer .fj-btn { width: 100%; }
  .fj-game-shell-v1000 .fj-profile-world-grid { grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-profile-world-grid > .fj-profile-panel { min-height: 0; }
  .fj-game-shell-v1000 .fj-profile-mission-section .fj-active-task-grid { grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-profile-growth-lab { padding: 15px !important; }
  .fj-game-shell-v1000 .fj-growth-story-card { grid-template-columns: auto minmax(0, 1fr); }
  .fj-game-shell-v1000 .fj-ficha-quick-actions { align-items: stretch; flex-direction: column; }
  .fj-game-shell-v1000 .fj-ficha-quick-actions > div { display: grid; grid-template-columns: 1fr; }
  .fj-game-shell-v1000 .fj-ficha-quick-actions .fj-btn { width: 100%; }
  .fj-game-shell-v1000 .fj-growth-deep-dive > summary { grid-template-columns: auto minmax(0, 1fr); }
  .fj-game-shell-v1000 .fj-growth-deep-dive > summary em { display: none; }
  .fj-game-shell-v1000 .fj-growth-deep-content { padding-inline: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .fj-game-shell-v1000 *, .fj-game-shell-v1000 *::before, .fj-game-shell-v1000 *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
