/**
 * Игровой hub тренажёра (ЕГЭ-1): premium dashboard.
 */

body:has(#hf-game-hub).hf-game-hub-split-active--slug #libreoffice-task9-statement-wrap.task-solve__statement {
  flex: 0 0 auto;
  min-height: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active--slug.hf-game-hub-split--tight
  #libreoffice-task9-statement-wrap.task-solve__statement {
  overflow: hidden;
}

body:has(#hf-game-hub).hf-game-hub--solution-open #hf-game-hub,
body:has(#hf-game-hub).hf-game-hub--solution-open #hf-game-hub-split-resizer {
  display: none !important;
}

/* Slug / выбранный вариант (в т.ч. HTMX без reload) */
body:has(#hf-game-hub)[data-neuroege-hf-variant-selected="1"] #hf-game-hub,
body:has(#hf-game-hub)[data-neuroege-hf-variant-selected="1"] #hf-game-hub-split-resizer,
html.neuroege-trainer-slug-page #hf-game-hub,
html.neuroege-trainer-slug-page #hf-game-hub-split-resizer {
  display: none !important;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-selected="1"]:not(.hf-game-hub--slug-collapsed) #hf-game-hub,
body:has(#hf-game-hub)[data-neuroege-hf-variant-selected="1"]:not(.hf-game-hub--slug-collapsed)
  #hf-game-hub-split-resizer,
html.neuroege-trainer-slug-page body:not(.hf-game-hub--slug-collapsed) #hf-game-hub,
html.neuroege-trainer-slug-page body:not(.hf-game-hub--slug-collapsed) #hf-game-hub-split-resizer {
  display: revert !important;
}

body:has(#hf-game-hub).hf-game-hub--slug-collapsed:not([data-neuroege-hf-variant-list-only="1"]) #hf-game-hub,
body:has(#hf-game-hub).hf-game-hub--slug-collapsed:not([data-neuroege-hf-variant-list-only="1"]) #hf-game-hub-split-resizer {
  display: none !important;
}

html.neuroege-trainer-slug-page body.hf-game-hub--slug-collapsed
  #libreoffice-task9-statement-wrap.task-solve__statement,
body:has(#hf-game-hub)[data-neuroege-hf-variant-selected="1"].hf-game-hub--slug-collapsed
  #libreoffice-task9-statement-wrap.task-solve__statement,
body:has(#hf-game-hub).hf-game-hub--slug-collapsed:not([data-neuroege-hf-variant-list-only="1"])
  #libreoffice-task9-statement-wrap.task-solve__statement {
  flex: 1 1 0 !important;
  min-height: 0;
  height: auto !important;
  max-height: none !important;
}

body:has(#hf-game-hub).hf-game-hub--solution-open #libreoffice-task9-statement-wrap.task-solve__statement {
  flex: 1 1 0 !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body:has(#hf-game-hub):not([data-neuroege-hf-variant-list-only="1"]) .task-solve__right > .hf-game-hub {
  flex: 0 0 auto;
  max-height: min(46vh, 28rem);
  margin-top: 0.4rem;
}

body:has(#hf-game-hub).task-mobile-mode .task-solve__right > .hf-game-hub.task-solve__statement {
  flex: 0 0 auto;
  overflow: hidden;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .task-solve__right > .hf-game-hub {
  flex: 1 1 0;
  min-height: 0;
  margin-bottom: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active.hf-game-hub-split--fits .task-solve__right {
  justify-content: flex-start;
}

body:has(#hf-game-hub).hf-game-hub-split-active.hf-game-hub-split--tight .task-solve__right {
  justify-content: flex-start;
}

body:has(#hf-game-hub).hf-game-hub-split-active.hf-game-hub-split--fits .task-solve__right > .hf-game-hub {
  flex: 0 0 auto;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"].hf-game-hub-split-active.hf-game-hub-split--fits
  .task-solve__right
  > .hf-game-hub,
body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"].hf-game-hub-split-active.hf-game-hub-split--tight
  .task-solve__right
  > .hf-game-hub {
  flex: 1 1 0 !important;
  min-height: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active.hf-game-hub-split--tight .task-solve__right > .hf-game-hub {
  flex: 0 0 auto;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"].hf-game-hub-split-active.hf-game-hub-split--tight
  .task-solve__right
  > .hf-game-hub {
  flex: 1 1 0 !important;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub {
  margin-bottom: 0;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub::before {
  top: 0.55rem;
  bottom: 0.55rem;
}

body:has(#hf-game-hub) .task-solve__right > .hf-game-hub {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hf-game-hub {
  position: relative;
  margin: 0 0 0.5rem;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  background:
    radial-gradient(130% 90% at 100% -10%, rgba(16, 185, 129, 0.22) 0%, transparent 52%),
    radial-gradient(90% 70% at -5% 105%, rgba(56, 189, 248, 0.14) 0%, transparent 48%),
    radial-gradient(60% 40% at 50% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 70%),
    linear-gradient(168deg, rgba(20, 28, 42, 0.98) 0%, rgba(10, 14, 24, 0.97) 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(52, 211, 153, 0.12),
    0 0 32px rgba(52, 211, 153, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: rgba(241, 245, 249, 0.97);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hf-game-hub--ready {
  opacity: 1;
  transform: translateY(0);
}

.hf-game-hub-analytics-btn--active {
  border-color: rgba(52, 211, 153, 0.55) !important;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.22);
}

[data-theme="light"] .hf-game-hub-analytics-btn--active {
  border-color: rgba(5, 150, 105, 0.45) !important;
  box-shadow: 0 0 12px rgba(5, 150, 105, 0.16);
}

.hf-game-hub__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(52, 211, 153, 0.28) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hf-game-hub__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.06) 48%,
    transparent 58%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

.hf-game-hub__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  padding: 1rem 1.05rem 1.1rem 1.15rem;
  overflow: hidden;
}

body:has(#hf-game-hub):not([data-neuroege-hf-variant-list-only="1"]) .hf-game-hub__inner {
  overflow-y: auto;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__inner {
  padding: 0.62rem 0.72rem 0.68rem 0.82rem;
  gap: 0;
  justify-content: flex-start;
  overflow: hidden;
}

body:has(#hf-game-hub).hf-game-hub-split-active .hf-game-hub__inner {
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
  gap: 0;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__chips {
  gap: 0.3rem;
  margin-bottom: 0.48rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__chip {
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__chip-icon {
  width: 1.15rem;
  height: 1.15rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__chip-icon svg {
  width: 0.78rem;
  height: 0.78rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__task-card {
  margin-bottom: 0.45rem;
  padding: 0.52rem 0.62rem;
  border-radius: 10px;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__task-title {
  margin-bottom: 0.35rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__task-meta {
  gap: 0.18rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__task-meta-row {
  padding: 0.14rem 0;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panels {
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.42rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panel {
  padding: 0.48rem 0.55rem;
  border-radius: 9px;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panel-title {
  margin-bottom: 0.35rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panel-icon {
  width: 1.25rem;
  height: 1.25rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__skills {
  gap: 0.28rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__skill-track {
  height: 0.38rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__skill-value {
  min-width: 1.9rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__rating {
  gap: 0.18rem;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__rating-row {
  padding: 0.12rem 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active .task-solve__right > .hf-variants-shell {
  flex: 0 0 auto;
  min-height: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active .task-solve__right > .hf-variants-shell .hf-variants-nav {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-height: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active .task-solve__right > .hf-variants-shell .hf-variants-nav__panel {
  flex: 1 1 auto;
  min-height: 0;
}

.hf-game-hub-split-resizer {
  flex: 0 0 14px;
  width: 100%;
  height: 14px;
  margin: 0.12rem 0 0.2rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
  position: relative;
  z-index: 4;
  overflow: visible;
}

.hf-game-hub-split-resizer::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(52, 211, 153, 0.18) 18%,
    rgba(52, 211, 153, 0.42) 50%,
    rgba(52, 211, 153, 0.18) 82%,
    transparent 100%
  );
}

.hf-game-hub-split-resizer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background-color: rgba(15, 23, 42, 0.92);
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.95) 1.5px, transparent 1.6px),
    radial-gradient(circle, rgba(148, 163, 184, 0.95) 1.5px, transparent 1.6px),
    radial-gradient(circle, rgba(148, 163, 184, 0.95) 1.5px, transparent 1.6px);
  background-size: 6px 6px;
  background-position: 8px 50%, 26px 50%, 44px 50%;
  background-repeat: no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

body.hf-game-hub-split-resizer--active .hf-game-hub-split-resizer::before,
.hf-game-hub-split-resizer:hover::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(52, 211, 153, 0.28) 18%,
    rgba(110, 231, 183, 0.72) 50%,
    rgba(52, 211, 153, 0.28) 82%,
    transparent 100%
  );
}

body.hf-game-hub-split-resizer--active .hf-game-hub-split-resizer::after,
.hf-game-hub-split-resizer:hover::after {
  border-color: rgba(110, 231, 183, 0.55);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.35);
}

[data-theme="light"] .hf-game-hub-split-resizer::after {
  background-color: rgba(248, 250, 252, 0.96);
  border-color: rgba(5, 150, 105, 0.28);
}

body.hf-game-hub-split-resizer--active {
  cursor: row-resize;
  user-select: none;
}

.hf-game-hub::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #6ee7b7 0%, #059669 55%, #047857 100%);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.45);
  opacity: 0.95;
  pointer-events: none;
  z-index: 2;
}

[data-theme="light"] .hf-game-hub {
  color: #0f172a;
  border-color: rgba(5, 150, 105, 0.32);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 55%),
    linear-gradient(168deg, #ffffff 0%, #f0fdf4 42%, #f8fafc 100%);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

[data-theme="light"] .hf-game-hub__glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 70%);
}

.hf-game-hub__chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.85rem;
}

.hf-game-hub__chip {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: linear-gradient(
    165deg,
    rgba(30, 38, 52, 0.88) 0%,
    rgba(15, 23, 42, 0.72) 100%
  );
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  backdrop-filter: blur(10px);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

[data-theme="light"] .hf-game-hub__chip {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(148, 163, 184, 0.38);
}

.hf-game-hub__chip-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hf-game-hub__chip-icon svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.hf-game-hub__chip--goal .hf-game-hub__chip-icon {
  color: #fcd34d;
  background: radial-gradient(circle at 30% 30%, rgba(254, 240, 138, 0.35) 0%, rgba(251, 191, 36, 0.2) 100%);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.hf-game-hub__chip--site-days .hf-game-hub__chip-icon {
  color: #93c5fd;
  background: radial-gradient(circle at 30% 30%, rgba(147, 197, 253, 0.35) 0%, rgba(59, 130, 246, 0.2) 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.28);
}

.hf-game-hub__chip--site-days-hot {
  border-color: rgba(251, 146, 60, 0.55) !important;
  box-shadow:
    0 0 16px rgba(251, 146, 60, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  animation: hf-game-hub-site-days-glow 2s ease-in-out infinite;
}

@keyframes hf-game-hub-site-days-glow {
  0%,
  100% {
    box-shadow:
      0 0 12px rgba(251, 146, 60, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 20px rgba(251, 146, 60, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.hf-game-hub__chip--forecast .hf-game-hub__chip-icon {
  color: #6ee7b7;
  background: radial-gradient(circle at 30% 30%, rgba(110, 231, 183, 0.35) 0%, rgba(52, 211, 153, 0.2) 100%);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.3);
}

.hf-game-hub__chip strong {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ecfdf5;
}

[data-theme="light"] .hf-game-hub__chip strong {
  color: #065f46;
}

.hf-game-hub__chip--goal strong {
  color: #fcd34d;
}

[data-theme="light"] .hf-game-hub__chip--goal strong {
  color: #b45309;
}

.hf-game-hub__task-card {
  margin-bottom: 0.8rem;
  padding: 0.78rem 0.88rem;
  border-radius: 14px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: linear-gradient(
    145deg,
    rgba(20, 30, 46, 0.72) 0%,
    rgba(12, 18, 30, 0.55) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hf-game-hub__task-card {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(5, 150, 105, 0.22);
}

.hf-game-hub__task-head {
  text-align: center;
}

.hf-game-hub__task-title {
  margin: 0 0 0.55rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.hf-game-hub__task-num {
  color: #6ee7b7;
  font-variant-numeric: tabular-nums;
}

[data-theme="light"] .hf-game-hub__task-num {
  color: #047857;
}

.hf-game-hub__task-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.hf-game-hub__task-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hf-game-hub__task-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hf-game-hub__task-meta-row dt {
  margin: 0;
  font: inherit;
  color: rgba(148, 163, 184, 0.95);
  font-weight: 500;
}

[data-theme="light"] .hf-game-hub__task-meta-row dt {
  color: #64748b;
}

.hf-game-hub__task-meta-row dd {
  margin: 0;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hf-game-hub__task-meta-row dd[data-hf-game-difficulty] {
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 400;
  background: linear-gradient(90deg, #fde68a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.35));
}

.hf-game-hub__panels {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 0.75rem;
}

body:has(#hf-game-hub).hf-game-hub-split-active .hf-game-hub__panels {
  flex: 1 1 auto;
  min-height: 0;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panel--rating {
  margin-top: 0;
}

body:has(#hf-game-hub).hf-game-hub-split-active:not(.hf-game-hub-split--tight) .hf-game-hub__panel--rating {
  margin-top: 0;
}

.hf-game-hub__panel {
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    165deg,
    rgba(15, 23, 42, 0.55) 0%,
    rgba(8, 12, 22, 0.38) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}

[data-theme="light"] .hf-game-hub__panel {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(148, 163, 184, 0.22);
}

.hf-game-hub__chips,
.hf-game-hub__task-card,
.hf-game-hub__panel:not(.hf-game-hub__panel--leaderboard) {
  flex-shrink: 0;
}

.hf-game-hub__panel--rating {
  margin-top: 0;
}

.hf-game-hub__panel--leaderboard {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.hf-game-hub__panel--leaderboard .hf-game-hub__panel-title {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}

.hf-game-hub__panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ecfdf5 0%, #6ee7b7 55%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .hf-game-hub__panel-title {
  background: linear-gradient(90deg, #064e3b 0%, #059669 55%, #047857 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hf-game-hub__panel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 10px;
  color: #6ee7b7;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22) 0%, rgba(52, 211, 153, 0.08) 100%);
  box-shadow:
    0 0 12px rgba(52, 211, 153, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.hf-game-hub__panel-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

[data-theme="light"] .hf-game-hub__panel-icon {
  color: #059669;
}

.hf-game-hub__skills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
}

.hf-game-hub__skill {
  display: grid;
  grid-template-columns: minmax(5.8rem, 8rem) 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.hf-game-hub__skill-label {
  font: inherit;
  font-weight: 600;
  color: rgba(203, 213, 225, 0.96);
}

[data-theme="light"] .hf-game-hub__skill-label {
  color: #475569;
}

.hf-game-hub__skill-track {
  display: block;
  height: 0.48rem;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.72);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.22);
}

[data-theme="light"] .hf-game-hub__skill-track {
  background: rgba(148, 163, 184, 0.32);
}

.hf-game-hub__skill-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  background: linear-gradient(90deg, #047857 0%, #10b981 45%, #6ee7b7 100%);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.42);
}

.hf-game-hub__skill--logic .hf-game-hub__skill-fill {
  background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 50%, #93c5fd 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.hf-game-hub__skill--logic .hf-game-hub__skill-value {
  color: #93c5fd;
}

.hf-game-hub__skill--python .hf-game-hub__skill-fill {
  background: linear-gradient(90deg, #a16207 0%, #eab308 50%, #fde047 100%);
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}

.hf-game-hub__skill--python .hf-game-hub__skill-value {
  color: #fde047;
}

.hf-game-hub__skill--tables .hf-game-hub__skill-fill {
  background: linear-gradient(90deg, #047857 0%, #10b981 50%, #6ee7b7 100%);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.42);
}

.hf-game-hub__skill--tables .hf-game-hub__skill-value {
  color: #6ee7b7;
}

.hf-game-hub__skill-value {
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #6ee7b7;
  min-width: 2.2rem;
  text-align: right;
}

[data-theme="light"] .hf-game-hub__skill-value {
  color: #047857;
}

.hf-game-hub__rating {
  display: grid;
  gap: 0.34rem;
  margin: 0;
}

.hf-game-hub__rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.22rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}

.hf-game-hub__rating-row:last-child {
  border-bottom: none;
}

.hf-game-hub__rating-row dt {
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
}

[data-theme="light"] .hf-game-hub__rating-row dt {
  color: #64748b;
}

.hf-game-hub__rating-row dd {
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hf-game-hub__rating-row--accent dd {
  color: #a78bfa;
}

[data-theme="light"] .hf-game-hub__rating-row--accent dd {
  color: #6d28d9;
}

.hf-game-hub__leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
}

.hf-game-hub__leaderboard-row {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.24rem 0.35rem;
  margin: 0 -0.35rem;
  font: inherit;
  line-height: 1.2;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.1);
  border-radius: 8px;
  transition: background 0.15s ease;
}

.hf-game-hub__leaderboard-row--gold {
  background: linear-gradient(
    90deg,
    rgba(251, 191, 36, 0.18) 0%,
    rgba(251, 191, 36, 0.04) 70%,
    transparent 100%
  );
  border-bottom-color: rgba(251, 191, 36, 0.2);
}

.hf-game-hub__leaderboard-row--silver {
  background: linear-gradient(
    90deg,
    rgba(203, 213, 225, 0.16) 0%,
    rgba(203, 213, 225, 0.04) 70%,
    transparent 100%
  );
  border-bottom-color: rgba(203, 213, 225, 0.18);
}

.hf-game-hub__leaderboard-row--bronze {
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.16) 0%,
    rgba(251, 146, 60, 0.04) 70%,
    transparent 100%
  );
  border-bottom-color: rgba(251, 146, 60, 0.18);
}

.hf-game-hub__leaderboard-rank {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: rgba(148, 163, 184, 0.92);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.hf-game-hub__leaderboard-row--gold .hf-game-hub__leaderboard-rank,
.hf-game-hub__leaderboard-row--silver .hf-game-hub__leaderboard-rank,
.hf-game-hub__leaderboard-row--bronze .hf-game-hub__leaderboard-rank {
  font-size: 1.05rem;
}

.hf-game-hub__leaderboard-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.hf-game-hub__leaderboard-stats {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(203, 213, 225, 0.92);
  white-space: nowrap;
}

[data-theme="light"] .hf-game-hub__leaderboard-stats {
  color: #475569;
}

.hf-game-hub__leaderboard-row--you {
  margin-top: auto;
  flex-shrink: 0;
  padding: 0.38rem 0.45rem;
  border-top: 1px solid rgba(52, 211, 153, 0.4);
  border-bottom: none;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    rgba(52, 211, 153, 0.16) 0%,
    rgba(52, 211, 153, 0.05) 55%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.12);
}

.hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-rank,
.hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-name {
  color: #6ee7b7;
}

.hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-stats {
  color: #a7f3d0;
}

[data-theme="light"] .hf-game-hub__leaderboard-row--you {
  background: linear-gradient(
    90deg,
    rgba(5, 150, 105, 0.1) 0%,
    rgba(5, 150, 105, 0.03) 55%,
    transparent 100%
  );
}

[data-theme="light"] .hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-rank,
[data-theme="light"] .hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-name {
  color: #047857;
}

[data-theme="light"] .hf-game-hub__leaderboard-row--you .hf-game-hub__leaderboard-stats {
  color: #059669;
}

body:has(#hf-game-hub)[data-neuroege-hf-variant-list-only="1"] .hf-game-hub__panel--leaderboard {
  min-height: 3.5rem;
}

@media (min-width: 520px) {
  .hf-game-hub__chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 519px) {
  .hf-game-hub__inner {
    padding: 0.82rem 0.82rem 0.9rem 0.95rem;
  }

  .hf-game-hub__chip {
    padding: 0.35rem 0.45rem;
  }

  .hf-game-hub__skill {
    grid-template-columns: minmax(4.9rem, 6.2rem) 1fr auto;
    gap: 0.38rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-game-hub,
  .hf-game-hub__skill-fill,
  .hf-game-hub__chip--site-days-hot {
    transition: none !important;
    animation: none !important;
  }

  .hf-game-hub--ready {
    opacity: 1;
    transform: none;
  }
}
