/* ---- researcher profile (nge-profile-*) ----------------------------------
   The EyeWire II researcher profile, brought across from the real component
   (ng-extend/src/components/UserProfilePanel.vue). The stylesheet below IS
   that component's compiled CSS, de-scoped from its Vue data-v hash, with only
   the container adapted: in the game it lived inside neuroglancer's
   .nge-overlay, and here a <dialog> plays that role. Badge art is the real
   center-art PNG set, resized. Example data is the demo profile the game ships
   (Amy Sterling). Not a recreation: the actual UI, showcased.

   researcher-profile.js opens it, drives the tabs, and swaps the right column
   to a badge's detail when you click it. A visual component: no account, no
   request. */

/* the <dialog> stands in for neuroglancer's overlay host */
dialog.nge-profile-modal {
  position: fixed; inset: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; margin: 0; padding: 0; border: none;
  background: transparent; overflow: visible;
  color: #dfe6f2;
  font: 400 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
dialog.nge-profile-modal::backdrop {
  background: radial-gradient(ellipse at center, rgba(0,10,30,.82) 0%, rgba(0,0,0,.93) 100%);
  backdrop-filter: blur(10px) saturate(1.25);
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
}
/* the real .nge-overlay rule sets background/overflow/materialize; this only
   places and sizes it, the job neuroglancer's overlay-content used to do */
.nge-profile-modal .nge-overlay {
  position: absolute; top: 50%; left: 50%;
  width: min(96vw, 1288px);
  border: 1px solid rgba(74,158,255,.18);
  border-radius: 16px;
}
.nge-profile-modal .nge-overlay::-webkit-scrollbar { width: 0; }

/* ===================== real component CSS, de-scoped ===================== */

.nge-profile-modal { font-size: 0.9em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   OPEN ANIMATION — panel materializes fast, then sections stagger in
───────────────────────────────────────────────────────────────────────────── */

/* NOTE: NO position:relative here. Neuroglancer's .overlay-content already
   has position:absolute; top:50%; left:50%; transform:translate(-50%,-50%).
   Adding position:relative would override that and break centering.          */
.nge-profile-modal .nge-overlay {
  overflow: hidden;
  animation: ngeProfileMaterialize-4f1680ef 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: linear-gradient(135deg, rgba(4, 6, 14, 0.97) 0%, rgba(8, 12, 24, 0.95) 50%, rgba(4, 8, 18, 0.97) 100%) !important;
}

/* ── Holographic edge glow — subtle orbiting light dots ── */
.nge-profile-modal .nge-overlay::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--nge-holo-angle, 0deg),
    transparent 0%,
    rgba(74, 158, 255, 0.0) 10%,
    rgba(74, 158, 255, 0.35) 14%,
    rgba(0, 210, 255, 0.15) 18%,
    transparent 22%,
    transparent 35%,
    rgba(160, 120, 255, 0.25) 39%,
    rgba(120, 80, 220, 0.1) 43%,
    transparent 47%,
    transparent 60%,
    rgba(0, 255, 200, 0.2) 64%,
    rgba(74, 158, 255, 0.08) 68%,
    transparent 72%,
    transparent 85%,
    rgba(74, 158, 255, 0.15) 89%,
    transparent 93%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ngeHoloEdgeSpin-4f1680ef 8s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
@property --nge-holo-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes ngeHoloEdgeSpin-4f1680ef {
to { --nge-holo-angle: 360deg;
}
}

/* Scanline removed — holographic border glow handled by ModalOverlay */

/* Close animation — overrides materialize with higher specificity */
.nge-profile-closing.nge-profile-modal .nge-overlay {
  animation: ngeProfileCollapse-4f1680ef 0.15s ease-in both;
}
@keyframes ngeProfileMaterialize-4f1680ef {
0%   { opacity: 0; transform: translate(-50%,-50%) scale(0.97); filter: blur(10px) brightness(2.5); box-shadow: 0 0 80px rgba(0,180,255,0.5);
}
30%  { opacity: 0.8; transform: translate(-50%,-50%) scale(1.003); filter: blur(1px) brightness(1.2);
}
60%  { opacity: 1; transform: translate(-50%,-50%) scale(0.998); filter: blur(0) brightness(1.05);
}
100% { opacity: 1; transform: translate(-50%,-50%); filter: blur(0) brightness(1); box-shadow: none;
}
}
@keyframes ngeProfileCollapse-4f1680ef {
0%   { opacity: 1; transform: translate(-50%,-50%) scale(1); filter: blur(0) brightness(1);
}
50%  { filter: blur(0) brightness(1.3);
}
100% { opacity: 0; transform: translate(-50%,-50%) scale(0.94); filter: blur(10px) brightness(2);
}
}

/* (scanline keyframe removed — using ModalOverlay holographic effects) */

/* Staggered section roll-in */
@keyframes ngeSectionRollIn-4f1680ef {
0%   { opacity: 0; transform: translateY(6px);
}
100% { opacity: 1; transform: translateY(0);
}
}

/* ─────────────────────────────────────────────────────────────────────────────
   SHELL
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-shell {
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transition: width 0.25s ease;
}
.nge-profile-shell--trophy {
  width: 85vw;
  max-width: 1200px;
}
.nge-profile-shell--admin {
  width: 720px;
  max-width: 90vw;
}

/* ── Topbar ── */
.nge-profile-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  background: rgba(74, 158, 255, 0.04);
}
.nge-profile-topbar-label {
  font-size: 0.65em;
  letter-spacing: 0.18em;
  color: rgba(74, 158, 255, 0.55);
  text-transform: uppercase;
  font-weight: 600;
}
.nge-profile-exit {
  background: none; border: none;
  color: #666; font-size: 1.5em; cursor: pointer; line-height: 1; padding: 0;
}
.nge-profile-exit:hover { color: #fff;
}

/* ── Three-column body ── */
.nge-profile-body {
  display: flex;
  flex: 1;
  min-height: 0;
}

/* ── Shared column base ── */
.nge-profile-col {
  overflow-y: auto;
  padding: 20px 24px 32px;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.2) rgba(255, 255, 255, 0.03);
}
.nge-profile-col::-webkit-scrollbar        { width: 4px;
}
.nge-profile-col::-webkit-scrollbar-track  { background: rgba(255, 255, 255, 0.02);
}
.nge-profile-col::-webkit-scrollbar-thumb  { background: rgba(74, 158, 255, 0.2); border-radius: 2px;
}
.nge-profile-col::-webkit-scrollbar-thumb:hover { background: rgba(74, 158, 255, 0.4);
}

/* Left: stats + recent cells */
.nge-profile-col--left {
  width: 460px;
  flex-shrink: 0;
}

/* Center: badges + streak + countdown */
.nge-profile-col--center {
  width: 460px;
  flex-shrink: 0;
  overflow-x: hidden;
  border-left: 1px solid rgba(74, 158, 255, 0.08);
  border-right: 1px solid rgba(74, 158, 255, 0.08);
  background: rgba(74, 158, 255, 0.01);
}

/* Right: latest badge / badge detail */
.nge-profile-col--right {
  width: 360px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: rgba(74, 158, 255, 0.015);
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-header {
  padding-bottom: 22px;
  margin-bottom: 6px;
  animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.12s both;
}
.nge-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

/* Flag + inline picker */
.nge-profile-flag-wrap {
  position: relative;
  flex-shrink: 0;
}

/* Flag images (cross-platform — Windows doesn't render flag emoji) */
.nge-flag-img { width: 24px; height: 18px; object-fit: cover; border-radius: 2px; vertical-align: middle;
}
.nge-flag-img.nge-pyr-icon { width: 22px; height: 22px; object-fit: contain; border-radius: 0;
}
.nge-flag-img--picker { width: 28px; height: 20px;
}
.nge-profile-flag {
  background: none; border: none;
  font-size: 1.55em; line-height: 1; cursor: pointer; padding: 2px;
  border-radius: 4px;
  transition: background 0.12s, transform 0.12s;
}
.nge-profile-flag:hover            { background: rgba(255,255,255,0.08); transform: scale(1.1);
}
.nge-profile-flag--active          { background: rgba(74,158,255,0.15);
}
.nge-profile-flag-picker {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  background: #1c1e26;
  border: 1px solid rgba(74, 158, 255, 0.3);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.3) transparent;
}
.nge-profile-flag-opt {
  background: none; border: none;
  font-size: 1.3em; padding: 4px; border-radius: 4px; cursor: pointer;
  transition: background 0.1s, transform 0.1s;
  line-height: 1;
}
.nge-profile-flag-opt:hover          { background: rgba(255,255,255,0.1); transform: scale(1.15);
}
.nge-profile-flag-opt--active        { background: rgba(74,158,255,0.18);
}

/* Picker transition */
.nge-flag-picker-enter-active  { transition: all 0.14s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nge-flag-picker-leave-active  { transition: all 0.1s ease-in;
}
.nge-flag-picker-enter-from,
.nge-flag-picker-leave-to      { opacity: 0; transform: translateY(-6px) scale(0.96);
}

/* Name */
.nge-profile-name {
  font-size: 1.45em;
  font-weight: 700;
  color: #eef0f4;
  letter-spacing: -0.01em;
  text-shadow: 0 0 28px rgba(74, 158, 255, 0.28);
  flex: 1;
}

/* Edit button */
.nge-profile-edit-btn {
  background: none; border: none;
  color: rgba(74, 158, 255, 0.4);
  font-size: 1em; cursor: pointer; padding: 2px 4px; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nge-profile-edit-btn:hover {
  color: rgba(74, 158, 255, 0.9);
  background: rgba(74, 158, 255, 0.1);
}
.nge-profile-email {
  font-style: italic;
  color: rgba(158, 158, 158, 0.7);
  font-size: 0.82em;
  margin-bottom: 4px;
}
.nge-profile-bio {
  font-size: 0.82em;
  color: #aaa;
  line-height: 1.45;
  font-style: italic;
  margin-top: 4px;
}
.nge-profile-bio-add {
  background: none; border: none;
  font-size: 0.78em;
  color: rgba(74, 158, 255, 0.45);
  cursor: pointer; padding: 0; margin-top: 4px;
  transition: color 0.15s;
  font-style: italic;
}
.nge-profile-bio-add:hover { color: rgba(74, 158, 255, 0.8);
}

/* ─────────────────────────────────────────────────────────────────────────────
   SECTIONS (shared layout)
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nge-profile-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}

/* Section label: "▌ EDITS" style */
.nge-profile-section-label {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(120, 180, 255, 0.95);
  margin-bottom: 12px;
}
.nge-profile-section-label--amber { color: rgba(255, 195, 110, 0.95);
}
.nge-profile-section-label--green { color: rgba(160, 255, 175, 0.95);
}

/* Section roll-in delays */
.nge-profile-section--edits     { animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.18s both;
}
.nge-profile-section--cells     { animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.24s both;
}
.nge-profile-section--streak    { animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.29s both;
}
.nge-profile-section--badges    { animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.33s both;
}
.nge-profile-section--countdown { animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.37s both;
}

/* ── Achievement countdown ── */
.nge-profile-countdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.nge-profile-countdown-name { font-weight: 400; color: rgba(255,255,255,0.5); font-size: 0.82em; font-style: italic;
}
.nge-profile-countdown-remaining { font-size: 0.86em; color: #cde;
}
.nge-profile-countdown-track {
  height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden;
}
.nge-profile-countdown-fill {
  height: 100%; background: linear-gradient(90deg, #7f8, #4a9eff); border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nge-profile-countdown-labels {
  display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.68em; color: #555;
}
.nge-profile-countdown-inline { margin-bottom: 10px;
}
.nge-profile-countdown-fill--building { background: linear-gradient(90deg, #ffd08a, #f5a623);
}
.nge-profile-countdown-fill--exploration { background: linear-gradient(90deg, #90fff2, #4ae5d5);
}

/* ── Stat row ── */
.nge-profile-stat-row {
  display: flex;
  gap: 16px;
}
.nge-profile-stat-col {
  flex: 1;
}
.nge-profile-stat-label {
  font-size: 0.78em;
  color: #9bb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 4px;
}
.nge-profile-stat-val {
  font-size: 1.2em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: #d8dde8;
  letter-spacing: -0.02em;
}
.nge-profile-stat-val--hero {
  font-size: 1.6em;
  color: rgba(120, 200, 255, 0.9);
  text-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}
.nge-profile-stat-sub {
  font-size: 0.78em;
  color: #aab;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.nge-profile-stat-breakdown {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}
.nge-profile-stat-bp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92em;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-variant-numeric: tabular-nums;
  color: #889;
}
.nge-profile-stat-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nge-profile-stat-icon--merge { color: rgba(120, 200, 255, 0.9);
}
.nge-profile-stat-icon--split { color: rgba(255, 160, 100, 0.9);
}

/* ── Weekly Podium (🥇/🥈/🥉) ── */
.nge-profile-section--podium {
  margin-bottom: 14px;
}
.nge-profile-podium-metric {
  margin-top: 6px;
}
.nge-profile-podium-metric:first-of-type {
  margin-top: 0;
}
.nge-profile-podium-metric-label {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(180, 195, 215, 0.55);
  margin-bottom: 2px;
}
.nge-profile-podium-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.nge-profile-podium-tile {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.nge-profile-podium-medal {
  font-size: 1.25em;
  line-height: 1;
}
.nge-profile-podium-count {
  font-weight: 700;
}
.nge-profile-podium-tile--gold {
  background: linear-gradient(135deg, rgba(255, 215, 100, 0.14), rgba(255, 180, 60, 0.08));
  border: 1px solid rgba(255, 215, 100, 0.45);
  color: #ffd964;
  box-shadow: 0 0 10px rgba(255, 215, 100, 0.18);
}
.nge-profile-podium-tile--silver {
  background: linear-gradient(135deg, rgba(220, 230, 240, 0.12), rgba(180, 200, 220, 0.06));
  border: 1px solid rgba(220, 230, 240, 0.35);
  color: #dde6f0;
}
.nge-profile-podium-tile--bronze {
  background: linear-gradient(135deg, rgba(220, 140, 80, 0.13), rgba(180, 100, 50, 0.06));
  border: 1px solid rgba(220, 140, 80, 0.35);
  color: #e3a371;
}

/* ── Streak ── */
.nge-profile-streak-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.nge-profile-streak-current {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.nge-profile-streak-flame {
  font-size: 1.25em; line-height: 1;
  animation: nge-streak-flicker-4f1680ef 2s ease-in-out infinite;
}
.nge-profile-streak-count {
  font-size: 1.7em; font-weight: 800; color: #f5a623; line-height: 1;
  text-shadow: 0 0 8px rgba(245, 166, 35, 0.3);
  animation: nge-streak-glow-4f1680ef 3s ease-in-out infinite;
}
@keyframes nge-streak-flicker-4f1680ef {
0%, 100% { transform: scale(1);
}
25% { transform: scale(1.1) rotate(-3deg);
}
75% { transform: scale(1.05) rotate(2deg);
}
}
@keyframes nge-streak-glow-4f1680ef {
0%, 100% { text-shadow: 0 0 8px rgba(245, 166, 35, 0.3);
}
50% { text-shadow: 0 0 14px rgba(245, 166, 35, 0.5), 0 0 24px rgba(245, 166, 35, 0.2);
}
}
.nge-profile-streak-unit  { font-size: 0.8em; color: #777;
}
.nge-profile-streak-best {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 0.82em;
}
.nge-profile-streak-best-label { color: #9bb;
}
.nge-profile-streak-best-val   { color: #cde; font-weight: 600;
}

/* ── Activity chart ────────────────────────────────────────── */
.nge-profile-activity-chart {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.nge-profile-chart-label {
  font-size: 0.78em;
  color: #9bb;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.nge-profile-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  padding-bottom: 16px;
}
.nge-profile-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.nge-profile-chart-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 48px;
  width: 100%;
  gap: 1px;
}
.nge-profile-chart-bar {
  width: 100%;
  max-width: 12px;
  border-radius: 2px 2px 0 0;
  min-height: 0;
  transition: height 0.3s ease;
}
.nge-profile-chart-bar--edit {
  background: linear-gradient(to top, rgba(74, 158, 255, 0.5), rgba(74, 158, 255, 0.8));
}
.nge-profile-chart-bar--completion {
  background: linear-gradient(to top, rgba(255, 180, 50, 0.5), rgba(255, 180, 50, 0.85));
  border-radius: 2px;
}
.nge-profile-chart-day {
  font-size: 0.55em;
  color: #445;
  margin-top: 3px;
  white-space: nowrap;
}
.nge-profile-chart-legend {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.nge-profile-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.62em;
  color: #556;
}
.nge-profile-chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.nge-profile-chart-legend-dot--edit {
  background: rgba(74, 158, 255, 0.7);
}
.nge-profile-chart-legend-dot--completion {
  background: rgba(255, 180, 50, 0.7);
}

/* ── Badges ── */
.nge-profile-badges-divider {
  height: 1px;
  margin: 14px 0 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 158, 255, 0.2) 30%, rgba(74, 158, 255, 0.2) 70%, transparent 100%);
}
.nge-profile-badges-hint {
  font-size: 0.7em;
  color: rgba(74, 158, 255, 0.45);
  font-style: italic;
  margin-bottom: 10px;
}
.nge-profile-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.nge-profile-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
  transition: transform 0.15s;
  border-radius: 6px;
  padding: 3px 2px;
  transition: transform 0.15s, background 0.15s;
}
.nge-profile-badge:not(.nge-profile-badge--locked) { cursor: pointer;
}
.nge-profile-badge:not(.nge-profile-badge--locked):hover { transform: scale(1.1);
}
/* Exploration badges: blue highlight (default) */
.nge-profile-badge--selected {
  background: rgba(74, 158, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(74, 158, 255, 0.3) inset;
}
.nge-profile-badge--selected .nge-profile-badge-img {
  filter: drop-shadow(0 0 6px rgba(100, 180, 255, 0.75));
}
.nge-profile-badge--latest .nge-profile-badge-img {
  filter: drop-shadow(0 0 8px rgba(100, 180, 255, 0.6));
}
.nge-profile-badge--latest .nge-profile-badge-name {
  color: #8ac8ff;
}
/* Building badges: subtle golden highlight */
.nge-profile-badge--building.nge-profile-badge--selected {
  background: rgba(245, 166, 35, 0.06);
  box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.2) inset;
}
.nge-profile-badge--building.nge-profile-badge--selected .nge-profile-badge-img {
  filter: drop-shadow(0 0 3px rgba(255, 200, 80, 0.35));
}
.nge-profile-badge--building.nge-profile-badge--latest .nge-profile-badge-img {
  filter: drop-shadow(0 0 4px rgba(255, 200, 80, 0.3));
}
.nge-profile-badge--building.nge-profile-badge--latest .nge-profile-badge-name {
  color: #ffd08a;
}
/* Twine: rotate 90° to look like an infinity symbol */
.nge-badge--twine { transform: rotate(90deg);
}

/* ── "View All" tile in badge grid ── */
.nge-profile-badge--viewall {
  cursor: pointer;
  background: rgba(74, 158, 255, 0.04);
  border: 1px dashed rgba(74, 158, 255, 0.2);
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.nge-profile-badge--viewall:hover {
  background: rgba(74, 158, 255, 0.1);
  border-color: rgba(74, 158, 255, 0.4);
  transform: scale(1.08);
}
.nge-profile-badge-viewall-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  opacity: 0.7;
}
.nge-profile-section--special {
  border-top: none;
}
.nge-profile-badges-empty {
  font-size: 0.75em;
  color: #556;
  padding: 8px 0;
  font-style: italic;
}
.nge-profile-badges-toggle {
  background: none;
  border: 1px solid rgba(245, 166, 35, 0.25);
  color: rgba(255, 208, 138, 0.6);
  font-size: 0.72em;
  padding: 4px 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: color 0.15s, border-color 0.15s;
}
.nge-profile-badges-toggle:hover {
  color: rgba(255, 208, 138, 0.9);
  border-color: rgba(245, 166, 35, 0.45);
}
.nge-profile-right-divider {
  height: 1px;
  margin: 18px 20px;
  background: linear-gradient(90deg, transparent 0%, rgba(74, 158, 255, 0.15) 30%, rgba(74, 158, 255, 0.15) 70%, transparent 100%);
}
.nge-profile-badge-img {
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px;
  transition: filter 0.15s;
}
.nge-profile-badge-icon { width: 62px; height: 62px; object-fit: contain;
}
.nge-profile-badge-mystery {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.04);
  border: 2px dashed rgba(255,255,255,0.12);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  display: flex; align-items: center; justify-content: center;
}
.nge-profile-badge-mystery-q {
  font-size: 1.1em; font-weight: 700; color: rgba(255,255,255,0.18); font-style: italic; line-height: 1;
}
.nge-profile-badge-name {
  font-size: 0.78em; color: #cde; margin-top: 3px; line-height: 1.2;
  max-width: 80px; word-break: break-word;
}
.nge-profile-badge-name--locked { color: #333;
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIZ COLUMN
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-viz-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  animation: ngeSectionRollIn-4f1680ef 0.2s ease-out 0.15s both;
}
.nge-profile-viz-title {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(74, 158, 255, 0.55);
  align-self: flex-start;
}

/* Badge detail in viz column */
.nge-profile-viz-badge { justify-content: flex-start; text-align: center; gap: 12px; padding-top: 16px;
}
.nge-profile-viz-badge-icon { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 0 20px rgba(74,158,255,0.4));
}
.nge-profile-viz-badge-icon--large { width: 240px; height: 240px;
}
.nge-profile-viz-badge-name {
  font-family: 'Orbitron', 'Rajdhani', 'Audiowide', 'Share Tech Mono', ui-monospace, monospace;
  font-size: 1.1em; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #e0ecff 0%, #58a6ff 50%, #a0d0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nge-profile-viz-badge-desc { font-size: 0.8em; color: #888; line-height: 1.4; font-style: italic;
}
.nge-profile-viz-badge-threshold {
  font-size: 0.75em; color: #555; line-height: 1.5; text-align: center;
}
.nge-profile-viz-badge-threshold strong { color: rgba(74,158,255,0.7); font-size: 1.15em;
}
.nge-profile-viz-badge-back {
  margin-top: 4px;
  background: none; border: none;
  font-size: 0.75em; color: rgba(74,158,255,0.5);
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nge-profile-viz-badge-back:hover { color: rgba(74,158,255,0.9); background: rgba(74,158,255,0.1);
}

/* Viz swap transition */
.nge-viz-swap-enter-active { transition: all 0.18s ease-out;
}
.nge-viz-swap-leave-active { transition: all 0.12s ease-in;
}
.nge-viz-swap-enter-from   { opacity: 0; transform: translateX(12px);
}
.nge-viz-swap-leave-to     { opacity: 0; transform: translateX(-12px);
}

/* ─────────────────────────────────────────────────────────────────────────────
   CELL HISTORY LIST
───────────────────────────────────────────────────────────────────────────── */
.nge-cell-list {
  margin-top: 16px;
}
.nge-cell-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.nge-cell-list-title {
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(74, 158, 255, 0.65);
  font-style: normal;
}
.nge-cell-list-columns {
  display: flex;
  align-items: center;
  padding: 0 2px 4px 42px; /* align with cell rows (past fav + pip) */
  border-bottom: 1px solid rgba(74, 158, 255, 0.08);
  margin-bottom: 2px;
}
.nge-cell-col-label {
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(180, 195, 220, 0.55);
}
.nge-cell-col-label--id { flex: 1;
}
.nge-cell-col-label--type { width: 110px; text-align: left;
}
.nge-cell-col-label--time { width: 64px; text-align: right; padding-right: 18px;
}
.nge-cell-list-dataset {
  font-size: 0.62em !important;
  font-style: normal !important;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(74, 158, 255, 0.08);
  border: 1px solid rgba(74, 158, 255, 0.2);
  color: rgba(74, 158, 255, 0.6) !important;
  font-weight: 500;
}
.nge-cell-list-scroll {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.2) rgba(255, 255, 255, 0.03);
}
.nge-cell-list-scroll::-webkit-scrollbar       { width: 3px;
}
.nge-cell-list-scroll::-webkit-scrollbar-track  { background: transparent;
}
.nge-cell-list-scroll::-webkit-scrollbar-thumb  { background: rgba(74, 158, 255, 0.2); border-radius: 2px;
}
.nge-cell-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  background: none;
  border: none;
  border-radius: 4px;
  color: #cde;
  font-size: 0.95em;
  cursor: pointer;
  text-align: left;
  transition: background 0.1s;
  overflow: hidden;
}
.nge-cell-row:hover {
  background: rgba(74, 158, 255, 0.1);
  color: #fff;
}
.nge-cell-pip {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  font-size: 0.9em;
}
.nge-cell-status--complete .nge-cell-pip,
.nge-cell-pip.nge-cell-status--complete { color: #CE93D8;
}
.nge-cell-status--typed .nge-cell-pip,
.nge-cell-pip.nge-cell-status--typed    { color: #4CAF50;
}
.nge-cell-status--pending .nge-cell-pip,
.nge-cell-pip.nge-cell-status--pending  { color: #555;
}
.nge-cell-id {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 0.95em;
  color: #9cf;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.nge-cell-type {
  flex: 1;
  font-size: 0.95em;
  color: #bcc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.nge-cell-time {
  flex-shrink: 0;
  font-size: 0.92em;
  color: #889;
  white-space: nowrap;
}
.nge-cell-fav {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  padding: 0 2px;
  opacity: 0.3;
  transition: opacity 0.12s;
}
.nge-cell-row:hover .nge-cell-fav { opacity: 0.6;
}
.nge-cell-fav--active { opacity: 1 !important; color: #f5a623;
}
.nge-cell-rename {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85em;
  padding: 0 2px;
  opacity: 0;
  color: rgba(74, 158, 255, 0.6);
  transition: opacity 0.12s;
}
.nge-cell-row:hover .nge-cell-rename { opacity: 0.6;
}
.nge-cell-rename:hover { opacity: 1 !important;
}
.nge-cell-empty {
  margin-top: 12px;
  font-size: 0.75em;
  color: #444;
  font-style: italic;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TAB BAR
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-tabbar {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(74, 158, 255, 0.1);
  flex-shrink: 0;
}
.nge-profile-tab {
  background: none;
  border: none;
  color: rgba(160, 175, 200, 0.6);
  font-size: 0.82em;
  font-weight: 600;
  padding: 8px 16px 7px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.02em;
}
.nge-profile-tab:hover {
  color: rgba(200, 220, 255, 0.8);
}
.nge-profile-tab--active {
  color: rgba(200, 220, 255, 0.95);
  border-bottom-color: #4a9eff;
}

/* ─────────────────────────────────────────────────────────────────────────────
   TROPHY CASE TAB
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-body--trophy {
  display: block;
  padding: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   ADMIN HUB TAB — fills the body, AdminHub.vue handles internal padding
───────────────────────────────────────────────────────────────────────────── */
.nge-profile-body--admin {
  display: block;
  padding: 0;
  max-height: calc(90vh - 100px);
  overflow: hidden;
}
.nge-trophy-scroll {
  overflow-y: auto;
  padding: 16px 24px 24px;
  max-height: calc(90vh - 100px);
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.2) rgba(255, 255, 255, 0.03);
}
.nge-trophy-scroll::-webkit-scrollbar        { width: 4px;
}
.nge-trophy-scroll::-webkit-scrollbar-track  { background: rgba(255, 255, 255, 0.02);
}
.nge-trophy-scroll::-webkit-scrollbar-thumb  { background: rgba(74, 158, 255, 0.2); border-radius: 2px;
}
.nge-trophy-scroll::-webkit-scrollbar-thumb:hover { background: rgba(74, 158, 255, 0.4);
}
.nge-trophy-track {
  margin-bottom: 24px;
}
.nge-trophy-track-label {
  font-size: 0.88em;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nge-trophy-track-count {
  font-size: 0.82em;
  font-weight: 500;
  color: #667;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 2px 8px;
}
.nge-trophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.nge-trophy-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.nge-trophy-badge:hover {
  transform: scale(1.05);
  background: rgba(74, 158, 255, 0.06);
  border-color: rgba(74, 158, 255, 0.15);
}
.nge-trophy-badge--selected {
  background: rgba(74, 158, 255, 0.1) !important;
  border-color: rgba(74, 158, 255, 0.3) !important;
  box-shadow: 0 0 12px rgba(74, 158, 255, 0.15);
}
.nge-trophy-badge--building.nge-trophy-badge--selected {
  background: rgba(245, 166, 35, 0.08) !important;
  border-color: rgba(245, 166, 35, 0.25) !important;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.1);
}
.nge-trophy-badge--locked {
  opacity: 0.35;
  cursor: default;
}
.nge-trophy-badge--locked:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.04);
}
.nge-trophy-badge-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 4px rgba(100, 180, 255, 0.2));
}
.nge-trophy-badge-mystery {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  color: #445;
  border: 2px dashed rgba(100, 120, 160, 0.2);
  border-radius: 50%;
  margin-bottom: 6px;
}
.nge-trophy-badge-name {
  font-size: 0.72em;
  font-weight: 600;
  color: rgba(200, 215, 240, 0.85);
  line-height: 1.2;
  margin-bottom: 2px;
}
.nge-trophy-badge-name--locked {
  color: #445;
}
.nge-trophy-badge-desc {
  font-size: 0.62em;
  color: #667;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}
.nge-trophy-badge-threshold {
  font-size: 0.6em;
  color: #556;
  margin-top: 3px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}

/* ── Featured badge banner (top of Trophy Case) ── */
.nge-trophy-featured {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(8, 14, 28, 0.95), rgba(12, 22, 48, 0.9));
  border: 1px solid rgba(74, 158, 255, 0.15);
  border-radius: 14px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 0 40px rgba(74, 158, 255, 0.02);
}
.nge-trophy-featured-icon {
  width: 350px;
  height: 350px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(100, 180, 255, 0.4));
}
.nge-trophy-featured-info {
  flex: 1;
  min-width: 0;
}
.nge-trophy-featured-name {
  font-size: 1.6em;
  font-weight: 700;
  color: #e0ecff;
  margin-bottom: 6px;
}
.nge-trophy-featured-desc {
  font-size: 1em;
  color: #99aabb;
  line-height: 1.5;
  margin-bottom: 8px;
}
.nge-trophy-featured-threshold {
  font-size: 0.88em;
  color: #667;
  font-family: ui-monospace, 'Cascadia Code', monospace;
}
.nge-trophy-featured-fav-label {
  font-size: 0.78em;
  color: rgba(74, 158, 255, 0.6);
  margin-top: 8px;
  letter-spacing: 0.03em;
}
.nge-trophy-featured-star {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 2em;
  color: #556;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s, transform 0.2s;
  line-height: 1;
}
.nge-trophy-featured-star:hover {
  color: #58a6ff;
  transform: scale(1.15);
}
.nge-trophy-featured-star--active {
  color: #58a6ff;
  text-shadow: 0 0 12px rgba(88, 166, 255, 0.5);
}

/* Favorited badge gets subtle gold outline in grid */
.nge-trophy-badge--favorited {
  box-shadow: 0 0 0 1.5px rgba(255, 215, 0, 0.35) inset;
}
.nge-trophy-detail-close:hover { color: #f66;
}

/* ── Hero-style effects around featured badge ── */
.nge-trophy-featured {
  overflow: visible;          /* let rings extend beyond banner */
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  gap: 72px;                  /* more space between icon and text */
}
.nge-trophy-featured-effects {
  position: absolute;
  top: 50%;
  left: 200px;               /* center on the 350px icon area + padding */
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
}
.nge-trophy-featured-icon {
  z-index: 1;
  position: relative;
}
.nge-trophy-featured-icon--animated {
  animation: nge-trophy-float-4f1680ef 5s ease-in-out infinite alternate;
}
.nge-trophy-featured-name--scifi {
  font-family: 'Orbitron', 'Rajdhani', 'Audiowide', 'Share Tech Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.8em;
  background: linear-gradient(135deg, #e0ecff 0%, #58a6ff 50%, #a0d0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes nge-trophy-float-4f1680ef {
from { transform: translateY(0);
}
to   { transform: translateY(-8px);
}
}

/* Rotating rings */
.nge-trophy-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  will-change: transform;
  transform: translateZ(0);
  top: 50%;
  left: 50%;
}
.nge-trophy-ring--1 {
  width: 380px; height: 380px;
  margin: -190px 0 0 -190px;
  border-color: rgba(0, 200, 255, 0.12);
  animation: nge-trophy-ring-spin-4f1680ef 50s linear infinite;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.06);
}
.nge-trophy-ring--2 {
  width: 340px; height: 340px;
  margin: -170px 0 0 -170px;
  border-color: rgba(206, 147, 216, 0.08);
  border-style: dashed;
  animation: nge-trophy-ring-spin-4f1680ef 70s linear infinite reverse;
  box-shadow: 0 0 12px rgba(206, 147, 216, 0.04);
}
.nge-trophy-ring--3 {
  width: 410px; height: 410px;
  margin: -205px 0 0 -205px;
  border-color: rgba(0, 255, 180, 0.05);
  border-width: 0.5px;
  animation: nge-trophy-ring-spin-4f1680ef 90s linear infinite;
}
/* Trim-path style rings: dashed with animated dash offset */
.nge-trophy-ring--4 {
  width: 440px; height: 440px;
  margin: -220px 0 0 -220px;
  border: none;
  background: transparent;
  border-radius: 50%;
  /* SVG-like trim path via background gradient on a ring */
  box-shadow: none;
  outline: 1.5px dashed rgba(0, 200, 255, 0.07);
  outline-offset: -1px;
  animation: nge-trophy-ring-spin-4f1680ef 120s linear infinite;
}
.nge-trophy-ring--5 {
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border: 1.5px solid transparent;
  border-top-color: rgba(0, 200, 255, 0.1);
  border-right-color: rgba(206, 147, 216, 0.06);
  animation: nge-trophy-ring-spin-4f1680ef 40s linear infinite reverse;
}
@keyframes nge-trophy-ring-spin-4f1680ef {
from { transform: rotate(0deg);
}
to   { transform: rotate(360deg);
}
}

/* Orbital dots */
.nge-trophy-orbit-dot {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(0, 220, 255, 0.8);
  box-shadow: 0 0 6px rgba(0, 220, 255, 0.4), 0 0 12px rgba(0, 220, 255, 0.15);
  top: 50%; left: 50%;
  will-change: transform;
  animation: nge-trophy-orbit-4f1680ef 40s linear infinite;
  animation-delay: calc(var(--j) * -3.3s);
}
.nge-trophy-orbit-dot:nth-child(odd) {
  width: 3px; height: 3px;
  background: rgba(206, 180, 255, 0.7);
  box-shadow: 0 0 5px rgba(206, 180, 255, 0.3);
  animation-duration: 55s;
  animation-direction: reverse;
}
.nge-trophy-orbit-dot:nth-child(3n) {
  width: 3.5px; height: 3.5px;
  background: rgba(0, 255, 180, 0.6);
  box-shadow: 0 0 5px rgba(0, 255, 180, 0.3);
  animation-duration: 48s;
}
/* Outer orbit particles */
.nge-trophy-orbit-dot:nth-child(n+7) {
  animation-name: nge-trophy-orbit-outer-4f1680ef;
  animation-duration: 65s;
  width: 3px; height: 3px;
  opacity: 0.8;
}
.nge-trophy-orbit-dot:nth-child(8) {
  width: 3.5px; height: 3.5px;
  background: rgba(255, 200, 100, 0.6);
  box-shadow: 0 0 5px rgba(255, 200, 100, 0.3);
  animation-duration: 58s;
  animation-direction: reverse;
}
.nge-trophy-orbit-dot:nth-child(9) {
  width: 3px; height: 3px;
  background: rgba(100, 180, 255, 0.7);
  box-shadow: 0 0 5px rgba(100, 180, 255, 0.3);
  animation-duration: 72s;
}
.nge-trophy-orbit-dot:nth-child(10) {
  width: 3px; height: 3px;
  background: rgba(255, 150, 200, 0.6);
  box-shadow: 0 0 6px rgba(255, 150, 200, 0.3);
  animation-duration: 50s;
  animation-direction: reverse;
}
.nge-trophy-orbit-dot:nth-child(11) {
  width: 3.5px; height: 3.5px;
  background: rgba(0, 220, 255, 0.5);
  box-shadow: 0 0 5px rgba(0, 220, 255, 0.2);
  animation-duration: 80s;
}
.nge-trophy-orbit-dot:nth-child(12) {
  width: 2.5px; height: 2.5px;
  background: rgba(206, 147, 216, 0.6);
  box-shadow: 0 0 4px rgba(206, 147, 216, 0.3);
  animation-duration: 62s;
  animation-direction: reverse;
}
@keyframes nge-trophy-orbit-4f1680ef {
from { transform: rotate(calc(var(--j) * 45deg))       translateX(175px) rotate(calc(var(--j) * -45deg));
}
to   { transform: rotate(calc(var(--j) * 45deg + 360deg)) translateX(175px) rotate(calc(var(--j) * -45deg - 360deg));
}
}
@keyframes nge-trophy-orbit-outer-4f1680ef {
from { transform: rotate(calc(var(--j) * 45deg))       translateX(210px) rotate(calc(var(--j) * -45deg));
}
to   { transform: rotate(calc(var(--j) * 45deg + 360deg)) translateX(210px) rotate(calc(var(--j) * -45deg - 360deg));
}
}

/* Pulsing aura */
.nge-trophy-aura {
  position: absolute;
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.05) 0%, rgba(206, 147, 216, 0.025) 40%, transparent 70%);
  animation: nge-trophy-aura-pulse-4f1680ef 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes nge-trophy-aura-pulse-4f1680ef {
0%, 100% { transform: scale(1);    opacity: 0.5;
}
50%      { transform: scale(1.12); opacity: 0.85;
}
}

/* ─────────────────────────────────────────────────────────────────────────────
   ALL SPECIAL AWARDS MODAL
───────────────────────────────────────────────────────────────────────────── */
.nge-special-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: ngeSectionRollIn-4f1680ef 0.18s ease-out;
}
.nge-special-modal {
  width: min(720px, 92vw);
  max-height: 80vh;
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.98), rgba(12, 18, 32, 0.97));
  border: 1px solid rgba(74, 158, 255, 0.25);
  border-radius: 12px;
  padding: 18px 20px 24px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55), 0 0 32px rgba(74, 158, 255, 0.08);
  display: flex;
  flex-direction: column;
}
.nge-special-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.nge-special-modal-title {
  font-size: 0.92em;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #cde;
  text-transform: uppercase;
}
.nge-special-modal-close {
  background: none; border: none;
  color: #889; font-size: 1.4em; cursor: pointer; line-height: 1;
}
.nge-special-modal-close:hover { color: #fff;
}
.nge-special-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 158, 255, 0.2) transparent;
}
.nge-special-modal-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px 6px;
  cursor: pointer;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.nge-special-modal-tile:hover {
  transform: scale(1.05);
  background: rgba(74, 158, 255, 0.06);
  border-color: rgba(74, 158, 255, 0.18);
}
.nge-special-modal-icon {
  width: 56px; height: 56px; object-fit: contain;
  margin-bottom: 6px;
}
.nge-special-modal-name {
  font-size: 0.78em; color: #cde;
  font-weight: 600;
  line-height: 1.2;
}
.nge-special-modal-reason {
  font-size: 0.7em; color: #889;
  margin-top: 4px; line-height: 1.3;
  font-style: italic;
}

/* ===================== scifi-ui adaptations ============================== */
/* a phone cannot carry three 460px columns, so the panel goes full screen and
   the columns stack. The real component is desktop only; this is the simplified
   phone version. */
@media (max-width: 960px) {
  .nge-profile-modal .nge-overlay {
    top: 0; left: 0; transform: none; width: 100%; height: 100%;
    border-radius: 0; border: none; animation: none;
  }
  .nge-profile-shell { max-height: 100%; height: 100%; width: 100% !important; }
  .nge-profile-body { flex-direction: column; overflow-y: auto; }
  .nge-profile-col--left, .nge-profile-col--center, .nge-profile-col--right {
    width: 100%; flex-shrink: 1; border-left: none; border-right: none;
    border-top: 1px solid rgba(74,158,255,.08);
  }
  .nge-profile-col { overflow-y: visible; }
}

/* display:flex/block on these beats the [hidden] default, so the inactive tab
   panels and the closed special-awards overlay have to be hidden explicitly, or
   every panel stacks and the overlay eats every click on the page */
.nge-profile-body[hidden] { display: none !important; }
.nge-special-modal-backdrop[hidden] { display: none !important; }

/* the right column centres its children; its stat sections need the full width
   to lay out, so they stretch rather than shrink to content */
.nge-profile-col--right > .nge-profile-section,
.nge-profile-col--right > .nge-profile-right-divider { width: 100%; }

/* the panel carries a lot of ambient motion (orbiting dots, spinning rings, a
   pulsing aura, a flickering flame, the holo edge). Reduced motion stills all
   of it and leaves the panel exactly as it rests. */
@media (prefers-reduced-motion: reduce) {
  .nge-profile-modal .nge-overlay,
  .nge-profile-modal .nge-overlay::before,
  .nge-profile-header, .nge-profile-section, .nge-profile-viz-panel,
  .nge-trophy-featured-icon--animated, .nge-trophy-ring, .nge-trophy-orbit-dot,
  .nge-trophy-aura, .nge-profile-streak-flame, .nge-profile-streak-count,
  .nge-special-modal-backdrop {
    animation: none !important;
  }
}
