/* =========================================================
   ZOR — Gaming FX (player site only)
   Loaded LAST on every player page, together with gaming-fx.js.
   Purely visual: no data or logic is touched. Delete the <link>
   and <script> tags to turn it all off.
   ========================================================= */

html { scrollbar-width: thin; scrollbar-color: var(--crimson-dim) var(--bg-void); }
::selection { background: var(--crimson); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--crimson), var(--crimson-dim)); border: 2px solid var(--bg-void); }

/* ---------- 1. Page transition: angled wipe + "ZONE OF REVENGE" boot panel ----------
   Arrival wipe plays on every page load; the leave wipe (html.fx-leaving) is
   added by gaming-fx.js when a tab/link is clicked. */

html::before, html::after {
  content: ""; position: fixed; top: 0; left: 0; height: 100%;
  width: calc(100% + 140px); box-sizing: border-box;
  z-index: 9999; pointer-events: none;
  transform: translate3d(-115%, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  clip-path: polygon(0 0, 100% 0, calc(100% - 140px) 100%, 0 100%);
}
html::before { background: linear-gradient(100deg, var(--crimson-dim), var(--crimson) 65%, #ff6b7c); }
html::after {
  content: "ZONE OF REVENGE";
  display: flex; align-items: center; justify-content: center; padding-right: 140px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.32em;
  font-size: clamp(20px, 5vw, 42px); color: var(--text-primary);
  text-shadow: 0 0 6px var(--cyan), 0 0 26px rgba(232, 40, 63, 0.9);
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, #1a1f2e, var(--bg-void) 70%);
}
html::before { animation: fx-wipe-out .48s cubic-bezier(.16,1,.3,1) .05s both; }
html::after  { animation: fx-wipe-out .48s cubic-bezier(.16,1,.3,1) 0s both; }
html.fx-leaving::before { animation: fx-wipe-in .34s cubic-bezier(.22,1,.36,1) 0s both; }
html.fx-leaving::after  { animation: fx-wipe-in .34s cubic-bezier(.22,1,.36,1) .03s both; }
@keyframes fx-wipe-in  { from { transform: translate3d(-115%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@keyframes fx-wipe-out { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(115%, 0, 0); } }

/* Content slides in the direction of the tab you moved to */
html.fx-booting body > main { animation: fx-fade .48s cubic-bezier(.16,1,.3,1) .22s backwards; will-change: opacity, transform; }
html.fx-booting.fx-dir-fwd body > main  { animation-name: fx-from-right; }
html.fx-booting.fx-dir-back body > main { animation-name: fx-from-left; }
html.fx-leaving body > main { animation: fx-out .28s cubic-bezier(.4,0,.2,1) both !important; will-change: opacity, transform; }
html.fx-leaving.fx-go-fwd body > main  { animation-name: fx-out-left !important; }
html.fx-leaving.fx-go-back body > main { animation-name: fx-out-right !important; }
@keyframes fx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-from-right { from { opacity: 0; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fx-from-left  { from { opacity: 0; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes fx-out { to { opacity: 0; transform: scale(.985); } }
@keyframes fx-out-left  { to { opacity: 0; transform: translate3d(-36px, 0, 0); } }
@keyframes fx-out-right { to { opacity: 0; transform: translate3d(36px, 0, 0); } }
@keyframes fx-rise { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.99); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }

/* Staggered entrance (only during the first ~2s after load, so live
   re-renders of the registration cards never replay it) */
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *, body > .auth-shell .form-card, body > .auth-shell .brand-copy) {
  --i: 0; animation: fx-rise .6s cubic-bezier(.2,.8,.2,1) backwards; animation-delay: calc(.4s + var(--i) * .08s);
}
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *):nth-child(2) { --i: 1; }
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *):nth-child(3) { --i: 2; }
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *):nth-child(4) { --i: 3; }
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *):nth-child(5) { --i: 4; }
html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *):nth-child(n+6) { --i: 5; }
html.fx-booting .site-footer { animation: fx-fade .8s ease-out .7s backwards; }
html.fx-booting .nav-pill--active, html.fx-booting .bottom-nav__item--active { animation: fx-pill-in .6s cubic-bezier(.2,1.4,.3,1) .45s backwards; }
@keyframes fx-pill-in { from { transform: scale(.7); opacity: 0; filter: brightness(2); } }

/* ---------- 2. Ambient arena background ---------- */

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(63,224,208,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(63,224,208,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 78%);
  animation: fx-grid 16s linear infinite;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px circle at 95% 100%, rgba(232,40,63,.12), transparent 70%),
    radial-gradient(520px circle at 0% 25%, rgba(63,224,208,.07), transparent 70%);
}
@keyframes fx-grid { to { background-position: 56px 56px, 56px 56px; } }
.fx-particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.fx-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9000;
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
  background: linear-gradient(90deg, var(--cyan), var(--crimson));
  box-shadow: 0 0 10px rgba(63,224,208,.7), 0 0 14px rgba(232,40,63,.6);
}

/* ---------- 3. Header, nav, brand ---------- */

.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 35%, var(--crimson) 70%, transparent 100%) 0 0 / 420px 100% repeat-x;
  animation: fx-line 6s linear infinite;
}
@keyframes fx-line { to { background-position: 420px 0; } }
.nav-pill { position: relative; transition: color .15s, border-color .15s, transform .15s, box-shadow .2s, background .15s; }
.nav-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(63,224,208,.6); }
.nav-pill--active { --glow: 63,224,208; animation: fx-glow 2.6s ease-in-out infinite; }
.nav-pill--live.nav-pill--active { --glow: 232,40,63; }
@keyframes fx-glow { 0%,100% { box-shadow: 0 0 6px rgba(var(--glow),.35); } 50% { box-shadow: 0 0 18px rgba(var(--glow),.75); } }
.nav-pill--live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%;
  background: currentColor; vertical-align: middle; animation: fx-ping 1.6s ease-out infinite;
}
@keyframes fx-ping { 0% { box-shadow: 0 0 0 0 currentColor; } 100% { box-shadow: 0 0 0 8px transparent; } }
.brand-mark__glyph { animation: fx-logo 3.4s ease-in-out infinite; }
@keyframes fx-logo { 0%,100% { filter: drop-shadow(0 0 2px rgba(232,40,63,.4)); } 50% { filter: drop-shadow(0 0 10px rgba(232,40,63,.95)); } }
.brand-mark:hover .brand-mark__glyph { animation: fx-jitter .35s steps(2) 2; }
.brand-mark:hover .brand-mark__name { text-shadow: -2px 0 var(--cyan), 2px 0 var(--crimson); }
@keyframes fx-jitter { 0% { transform: translate(0); } 25% { transform: translate(-2px,1px); } 50% { transform: translate(2px,-1px); } 100% { transform: translate(0); } }
.avatar, .icon-btn { transition: box-shadow .2s, border-color .15s, transform .15s; }
.avatar:hover, .icon-btn:hover { box-shadow: 0 0 14px rgba(63,224,208,.55); transform: translateY(-1px); }
.profile-avatar-lg { isolation: isolate; }
.profile-avatar-lg::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; z-index: -1;
  background: conic-gradient(var(--crimson), var(--cyan), var(--crimson));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  animation: fx-spin 5s linear infinite;
}
@keyframes fx-spin { to { transform: rotate(360deg); } }
.profile-avatar-lg__status, .live-dot, .status-pill__glyph { animation: fx-beacon 1.8s ease-in-out infinite; }
@keyframes fx-beacon { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- 4. Cards: HUD corners, cursor spotlight, hover lift & tilt ---------- */

.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header,
.edit-profile-card, .team-view-card, .tutorial-rules-box { position: relative; }

:is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(63,224,208,.11), transparent 65%);
}
:is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box):hover::before { opacity: 1; }

:is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box)::after {
  content: ""; position: absolute; inset: 6px; pointer-events: none; opacity: 0; --b: var(--cyan);
  transition: opacity .25s, inset .25s;
  background:
    linear-gradient(var(--b), var(--b)) top left / 14px 2px no-repeat, linear-gradient(var(--b), var(--b)) top left / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) top right / 14px 2px no-repeat, linear-gradient(var(--b), var(--b)) top right / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom left / 14px 2px no-repeat, linear-gradient(var(--b), var(--b)) bottom left / 2px 14px no-repeat,
    linear-gradient(var(--b), var(--b)) bottom right / 14px 2px no-repeat, linear-gradient(var(--b), var(--b)) bottom right / 2px 14px no-repeat;
}
:is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box):hover::after { opacity: .9; inset: 2px; }

:is(.match-card, a.registration-card, .panel, .stat-card, .stream-card, .zorc-card, .leaderboard-slot) {
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s;
}
:is(.match-card, a.registration-card, .panel, .stat-card, .stream-card, .zorc-card, .leaderboard-slot):hover {
  border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(63,224,208,.22), 0 14px 32px -14px rgba(63,224,208,.45);
}
:is(.match-card, a.registration-card, .stat-card, .zorc-card):hover {
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
}
.stat-card__value { text-shadow: 0 0 18px rgba(63,224,208,.35); }
.zorc-card__value {
  background: linear-gradient(90deg, var(--gold), #fff3c4, var(--gold)) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shimmer 3.5s linear infinite;
}
@keyframes fx-shimmer { to { background-position: -200% 0; } }

/* Featured card art: drifting glow + scanlines */
.match-card__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.carousel-track .match-card__art::before { animation: fx-drift 9s ease-in-out infinite alternate; }
.carousel-track .match-card__tag { animation: fx-beacon 1.6s ease-in-out infinite; }
@keyframes fx-drift { from { transform: scale(1.15) translate(-4%, -3%); } to { transform: scale(1.3) translate(5%, 4%); } }

/* ---------- 5. Buttons, headings, tables, misc ---------- */

.btn-primary, .btn-secondary { position: relative; overflow: hidden; }
.btn-primary { transition: background .15s, transform .12s; }
.btn-primary:active, .btn-secondary:active { transform: scale(.97); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::after { animation: fx-shine .7s ease; }
.marquee-cta::after { animation: fx-shine 3.6s ease-in-out 1.5s infinite; }
@keyframes fx-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.marquee-banner { position: relative; }
.marquee-banner::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -140px; width: 120px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(63,224,208,.14), transparent); animation: fx-sweep 6s ease-in-out infinite;
}
@keyframes fx-sweep { 0% { left: -140px; } 60%, 100% { left: 100%; } }

.section__head h2::before, .section-title::before {
  content: ""; display: inline-block; width: 10px; height: 18px; margin-right: 10px; vertical-align: -2px;
  background: var(--crimson); clip-path: polygon(0 0, 100% 0, 100% 70%, 60% 100%, 0 100%); animation: fx-beacon 2.4s ease-in-out infinite;
}
.result-title, .leaderboard-slot__time, .brand-copy h1 { animation: fx-glitch 6s infinite; }
@keyframes fx-glitch {
  0%, 92%, 100% { text-shadow: 0 0 14px rgba(232,40,63,.3); transform: none; }
  93% { text-shadow: -3px 0 var(--cyan), 3px 0 #fff; transform: translateX(2px); }
  95% { text-shadow: 3px 0 var(--cyan), -3px 0 var(--crimson); transform: translateX(-2px); }
  97% { text-shadow: 0 0 14px rgba(232,40,63,.3); transform: none; }
}
.rank-badge--1 { animation: fx-gold 2.4s ease-out infinite; }
@keyframes fx-gold { 0% { box-shadow: 0 0 0 0 rgba(232,184,75,.7); } 100% { box-shadow: 0 0 0 8px transparent; } }
.leaderboard-table tbody tr, .standings-table tbody tr { transition: background .15s; }
.leaderboard-table tbody tr:hover, .standings-table tbody tr:hover { background: rgba(63,224,208,.06); }
.settings-row { transition: padding-left .2s, color .15s; }
.settings-row:hover { padding-left: 8px; color: var(--cyan); }
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson), var(--cyan), transparent);
}
.site-footer__link { transition: border-color .15s, transform .15s; }
.site-footer__link:hover { transform: translateY(-2px); }
.field-group input:focus { box-shadow: 0 10px 14px -12px var(--cyan); }

/* Mobile bottom bar: glowing indicator on the active tab */
.bottom-nav__item { position: relative; transition: transform .12s, color .15s; }
.bottom-nav__item:active { transform: scale(.92); }
.bottom-nav__item--active::before {
  content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 3px; background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan); animation: fx-fade .5s ease-out .4s backwards;
}
.bottom-nav__item--live.bottom-nav__item--active::before { background: var(--crimson); box-shadow: 0 0 12px var(--crimson); }
.bottom-nav__item--live svg { animation: fx-beacon 1.6s ease-in-out infinite; }

/* Popups */
.ban-modal-overlay, .tutorial-modal-overlay, .popup-message-overlay { animation: fx-fade .25s ease-out; }
.ban-modal, .tutorial-modal { animation: fx-pop .45s cubic-bezier(.2,1.3,.3,1) backwards; }
.popup-message-modal { animation: fx-pop .45s cubic-bezier(.2,1.3,.3,1) backwards, popup-message-glow 2.2s ease-in-out infinite; }
@keyframes fx-pop { from { opacity: 0; transform: scale(.8) translateY(14px); } }

/* Login / signup brand panel */
.brand-panel::before { animation: fx-stripe-a 9s ease-in-out infinite alternate; }
.brand-panel::after  { animation: fx-stripe-b 7s ease-in-out infinite alternate; }
@keyframes fx-stripe-a { from { transform: translateX(-30px) rotate(18deg); opacity: .06; } to { transform: translateX(40px) rotate(18deg); opacity: .12; } }
@keyframes fx-stripe-b { from { transform: translateX(30px) rotate(18deg); opacity: .04; } to { transform: translateX(-40px) rotate(18deg); opacity: .1; } }

/* Click sparks (created by gaming-fx.js) */
.fx-spark {
  position: fixed; width: 6px; height: 6px; margin: -3px 0 0 -3px; z-index: 9000; pointer-events: none;
  background: var(--c); box-shadow: 0 0 8px var(--c); animation: fx-spark .6s ease-out forwards;
}
@keyframes fx-spark {
  from { opacity: 1; transform: translate(0, 0) rotate(45deg) scale(1); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(225deg) scale(.2); }
}

/* =========================================================
   MOBILE ONLY (<= 860px) — lighter animations + text-overlap fixes.
   Everything below sits inside max-width media queries, so desktop
   (wider than 860px) is not affected at all.
   ========================================================= */

@media (max-width: 860px) {
  /* ---- lighter animation: drop the costly infinite effects, keep the transition ---- */
  html.fx-booting { overflow-x: hidden; }
  body::before { animation: none; }
  .site-header::after, .brand-mark__glyph, .profile-avatar-lg::before, .zorc-card__value,
  .result-title, .leaderboard-slot__time, .brand-copy h1, .tutorial-rules-box,
  .carousel-track .match-card__art::before, .marquee-track span, .popup-message-modal { animation: none; }
  .popup-message-modal { animation: fx-pop .35s cubic-bezier(.2,1.3,.3,1) backwards; }
  .marquee-banner::after { display: none; }

  /* shorter, perfectly proportioned wipe; boot text stays on one line */
  html::before, html::after {
    width: calc(100% + 70px);
    clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%);
    animation-duration: .42s;
  }
  html.fx-leaving::before, html.fx-leaving::after { animation-duration: .32s; }
  html::after {
    padding-right: 70px;
    letter-spacing: .2em; font-size: 18px; white-space: nowrap;
    text-shadow: 0 0 12px rgba(232,40,63,.9);
    background: radial-gradient(circle at 50% 50%, #1a1f2e, var(--bg-void) 70%);
  }
  @keyframes fx-from-right { from { opacity: 0; transform: translate3d(22px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
  @keyframes fx-from-left  { from { opacity: 0; transform: translate3d(-22px, 0, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
  html.fx-booting :is(body > main > *, .carousel-track > *, .registration-grid > *, .matches-grid > *, .stats-grid > *, .stream-section > *, .tutorial-video-section > *, [data-leaderboard-list] > *) {
    animation-delay: calc(.3s + var(--i, 0) * .05s);
  }

  /* no hover-only effects on touch (they get "stuck" after a tap) */
  :is(.match-card, a.registration-card, .stat-card, .zorc-card, .panel, .stream-card, .leaderboard-slot):hover {
    transform: none; box-shadow: none; border-color: var(--border);
  }
  :is(.match-card, a.registration-card, .stat-card, .zorc-card, .panel, .stream-card, .leaderboard-slot):active { border-color: var(--cyan); }
  :is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box)::before,
  :is(.match-card, .panel, .stat-card, .leaderboard-slot, .stream-card, .zorc-card, .profile-header, .edit-profile-card, .team-view-card, .tutorial-rules-box)::after { display: none; }
  .settings-row:hover { padding-left: 0; color: var(--text-primary); }
  .settings-row--danger:hover { color: var(--crimson); }

  /* ---- text that was colliding ---- */
  .match-row { align-items: flex-start; }
  .match-row__teams { min-width: 0; flex: 1; overflow-wrap: anywhere; }
  .match-row__time, .result-tag { flex: none; }
  .profile-username, .team-view-name, .register-title, .team-panel__identity h3 { overflow-wrap: anywhere; }
  .profile-header__info, .team-panel__identity { min-width: 0; }
  .register-fee__row { flex-wrap: wrap; }
  .site-footer__link { flex-wrap: wrap; gap: 4px 10px; }
  .site-footer__link-value { min-width: 0; }
  .edit-profile-avatar__actions { flex-wrap: wrap; }
  .team-add-row input, .team-edit-row__uid { font-size: 16px; } /* stops iOS zoom-on-focus */

  /* bottom tab bar: labels wrap instead of running into each other */
  .bottom-nav__item { min-width: 0; padding: 0 2px; text-align: center; line-height: 1.15; font-size: 10.5px; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .site-header { gap: 10px; }
  .site-header .brand-mark { flex: 1; min-width: 0; }
  .site-header .brand-mark__name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .site-header__actions { flex: none; gap: 8px; }
  .section__head { gap: 12px; }
  .marquee-banner { gap: 12px; }
  .marquee-cta { padding: 10px 14px; font-size: 13px; }
  .team-edit-row { flex-wrap: wrap; }
  .team-edit-row__name { flex: 1 1 40%; }
  .team-edit-row__uid { flex: 1 1 100%; order: 5; }
}

@media (max-width: 400px) {
  .site-header__actions .icon-btn[aria-label="Search"] { display: none; }
  .zorc-card { flex-wrap: wrap; }
  .zorc-card__cta { width: 100%; }
  .bottom-nav__item { font-size: 9.5px; }
}

@media (max-width: 360px) {
  .site-header .brand-mark__glyph { width: 32px; height: 32px; }
  .site-header .brand-mark__name { font-size: 13px; }
  .site-header__actions .icon-btn, .site-header__actions .avatar { width: 34px; height: 34px; }
}

/* =========================================================
   ZOR — Celestial Meteors, Stars & 3D Rotating "S" & "X"
   - Active in MAX Mode (both Light and Dark modes)
   - Top Bar (.site-header) on PC & Mobile
   - Cascading sync across all bars on Profile tab
   - Suppressed completely in Performance Mode (Zero overhead)
   ========================================================= */

/* Dark Mode Tokens (Deep Space Cyber Neon) */
:root,
html[data-theme="dark"],
html.theme-dark {
  --ph-meteor-head: #FFFFFF;
  --ph-meteor-mid: #00E5FF;
  --ph-meteor-trail: rgba(0, 180, 216, 0.45);
  --ph-meteor-core: #FFFFFF;
  --ph-meteor-glow: #00E5FF;
  --ph-meteor-glow-secondary: rgba(0, 229, 255, 0.65);
  --ph-star-color: #7DF9FF;
  --ph-star-glow: rgba(0, 240, 255, 0.85);
  --ph-nebula-color: rgba(0, 229, 255, 0.10);
  --ph-nebula-core: rgba(0, 180, 216, 0.05);
}

/* Light Mode Tokens (Vivid High-Contrast Cyber Neon & Ruby Starlight) */
html[data-theme="light"],
html.theme-light {
  --ph-meteor-head: #0077B6;
  --ph-meteor-mid: #0096C7;
  --ph-meteor-trail: rgba(232, 40, 63, 0.40);
  --ph-meteor-core: #00B4D8;
  --ph-meteor-glow: rgba(0, 150, 199, 0.85);
  --ph-meteor-glow-secondary: rgba(232, 40, 63, 0.55);
  --ph-star-color: #0096C7;
  --ph-star-glow: rgba(0, 180, 216, 0.80);
  --ph-nebula-color: rgba(0, 180, 216, 0.12);
  --ph-nebula-core: rgba(232, 40, 63, 0.06);
}

/* Base Top Header positioning & safety */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  overflow: hidden !important;
}

.site-header > :not(.bar-celestial-particles):not(.profile-header__particles) {
  position: relative;
  z-index: 2;
}

/* Particles Container */
:is(.bar-celestial-particles, .profile-header__particles),
.bar-celestial-particles,
.profile-header__particles {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: 1 !important;
  border-radius: inherit;
  contain: paint;
}

/* Soft Celestial Origin Nebula at Upper-Right */
.ph-particles-nebula {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 320px;
  height: 220px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 85% 15%, var(--ph-nebula-color) 0%, var(--ph-nebula-core) 45%, transparent 75%);
  filter: blur(14px);
  opacity: 0.85;
}

/* Base Shooting Star / Meteor */
.ph-meteor {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--ph-meteor-trail) 35%,
    var(--ph-meteor-mid) 75%,
    var(--ph-meteor-head) 100%
  );
  filter: drop-shadow(0 0 4px var(--ph-meteor-glow));
}

/* Glowing Meteor Core / Star Head */
.ph-meteor::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ph-meteor-core);
  box-shadow: 0 0 6px var(--ph-meteor-glow), 0 0 12px var(--ph-meteor-glow-secondary);
}

/* Sequenced Meteors for Cards (11s Master Loop) */
.ph-meteor--1 {
  top: -5px;
  right: 8%;
  width: 85px;
  animation: phMeteor1 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-meteor--2 {
  top: 15px;
  right: -25px;
  width: 115px;
  height: 2.5px;
  animation: phMeteor2 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-meteor--3 {
  top: -20px;
  right: 28%;
  width: 70px;
  animation: phMeteor3 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-meteor--4 {
  top: 30px;
  right: -15px;
  width: 125px;
  height: 2.5px;
  animation: phMeteor4 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-meteor--5 {
  top: -15px;
  right: 45%;
  width: 95px;
  animation: phMeteor5 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

/* Slim Top Bar (.site-header) specific meteor sweep: sleek horizontal trajectory */
.site-header .ph-meteor--1 {
  animation: phHeaderMeteor1 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.site-header .ph-meteor--2 {
  animation: phHeaderMeteor2 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.site-header .ph-meteor--3 {
  animation: phHeaderMeteor3 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.site-header .ph-meteor--4 {
  animation: phHeaderMeteor4 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.site-header .ph-meteor--5 {
  animation: phHeaderMeteor5 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

/* Stardust Space Particles */
.ph-star {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: var(--ph-star-color);
  box-shadow: 0 0 6px var(--ph-star-glow);
  opacity: 0;
  will-change: transform, opacity;
}

.ph-star--1 {
  top: 15%;
  right: 12%;
  width: 3px;
  height: 3px;
  animation: phStarDrift1 7s infinite ease-in-out;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-star--2 {
  top: 32%;
  right: 6%;
  width: 4px;
  height: 4px;
  animation: phStarDrift2 8.5s infinite ease-in-out;
  animation-delay: calc(1.2s + var(--bar-delay, 0s));
}

.ph-star--3 {
  top: 8%;
  right: 32%;
  width: 2.5px;
  height: 2.5px;
  animation: phStarDrift1 6.5s infinite ease-in-out;
  animation-delay: calc(3s + var(--bar-delay, 0s));
}

.ph-star--4 {
  top: 48%;
  right: 18%;
  width: 3.5px;
  height: 3.5px;
  animation: phStarDrift2 9s infinite ease-in-out;
  animation-delay: calc(4.5s + var(--bar-delay, 0s));
}

.ph-star--5 {
  top: 22%;
  right: 50%;
  width: 3px;
  height: 3px;
  animation: phStarDrift1 8s infinite ease-in-out;
  animation-delay: calc(6s + var(--bar-delay, 0s));
}

.ph-star--6 {
  top: 65%;
  right: 10%;
  width: 2.5px;
  height: 2.5px;
  animation: phStarDrift2 7.5s infinite ease-in-out;
  animation-delay: calc(2.5s + var(--bar-delay, 0s));
}

/* =========================================================
   3D Rotating RED "S" & Blue "X" Glyphs
   - Never still in the corner: continuously travels in sequence
     from Top-Right towards Bottom-Left across the bar
   - Slowly rotates on X and Y axes
   - Active in MAX mode, completely hidden in Performance mode
   ========================================================= */
.ph-glyph {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  font-family: var(--font-display, "Chakra Petch", sans-serif);
  font-weight: 800;
  pointer-events: none !important;
  user-select: none !important;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  z-index: 1 !important;
}

.ph-glyph__inner {
  display: inline-block;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Red "S" styling & animations */
.ph-glyph--red {
  color: #FF2A4D;
  text-shadow:
    0 0 8px rgba(255, 42, 77, 0.95),
    0 0 16px rgba(232, 40, 63, 0.7),
    0 0 24px rgba(232, 40, 63, 0.4);
  font-size: 19px;
  animation: phGlyphTravelRed 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-glyph--red .ph-glyph__inner {
  animation: glyphTumble3D 9s infinite linear;
}

/* Blue "X" styling & animations */
.ph-glyph--blue {
  color: #00E5FF;
  text-shadow:
    0 0 8px rgba(0, 229, 255, 0.95),
    0 0 16px rgba(0, 180, 216, 0.7),
    0 0 24px rgba(0, 150, 199, 0.4);
  font-size: 19px;
  animation: phGlyphTravelBlue 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
}

.ph-glyph--blue .ph-glyph__inner {
  animation: glyphTumble3DAlt 11s infinite linear;
}

/* Subtle secondary pair for wider bars */
.ph-glyph--sub.ph-glyph--red {
  animation: phGlyphTravelRedSub 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
  font-size: 15px;
}

.ph-glyph--sub.ph-glyph--blue {
  animation: phGlyphTravelBlueSub 11s infinite linear;
  animation-delay: calc(0s + var(--bar-delay, 0s));
  font-size: 15px;
}

/* Light mode overrides for high contrast & elegance */
html[data-theme="light"] .ph-glyph--red,
html.theme-light .ph-glyph--red {
  color: #E8283F;
  text-shadow: 0 0 10px rgba(232, 40, 63, 0.65), 0 0 20px rgba(232, 40, 63, 0.35);
  filter: drop-shadow(0 2px 4px rgba(232, 40, 63, 0.45));
}

html[data-theme="light"] .ph-glyph--blue,
html.theme-light .ph-glyph--blue {
  color: #0088CC;
  text-shadow: 0 0 10px rgba(0, 136, 204, 0.65), 0 0 20px rgba(0, 180, 216, 0.35);
  filter: drop-shadow(0 2px 4px rgba(0, 136, 204, 0.45));
}

/* Top Bar (.site-header) specific travel: Right-to-Left across header */
.site-header .ph-glyph--red {
  animation-name: phHeaderGlyphTravelRed;
  font-size: 15px;
}

.site-header .ph-glyph--blue {
  animation-name: phHeaderGlyphTravelBlue;
  font-size: 15px;
}

/* Keyframes: Card Travel Top-Right to Bottom-Left */
@keyframes phGlyphTravelRed {
  0%, 15.999% {
    opacity: 0;
    transform: translate3d(20px, -20px, 0);
  }
  16% {
    opacity: 0;
    transform: translate3d(20px, -20px, 0);
  }
  20% {
    opacity: 0.95;
  }
  42% {
    opacity: 0.95;
  }
  48% {
    opacity: 0;
    transform: translate3d(-640px, 380px, 0);
  }
  48.001%, 100% {
    opacity: 0;
    transform: translate3d(20px, -20px, 0);
  }
}

@keyframes phGlyphTravelBlue {
  0%, 55.999% {
    opacity: 0;
    transform: translate3d(20px, -10px, 0);
  }
  56% {
    opacity: 0;
    transform: translate3d(20px, -10px, 0);
  }
  60% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.95;
  }
  88% {
    opacity: 0;
    transform: translate3d(-680px, 400px, 0);
  }
  88.001%, 100% {
    opacity: 0;
    transform: translate3d(20px, -10px, 0);
  }
}

@keyframes phGlyphTravelRedSub {
  0%, 65.999% {
    opacity: 0;
    transform: translate3d(30px, -15px, 0);
  }
  66% {
    opacity: 0;
    transform: translate3d(30px, -15px, 0);
  }
  70% {
    opacity: 0.75;
  }
  92% {
    opacity: 0.75;
  }
  98% {
    opacity: 0;
    transform: translate3d(-580px, 340px, 0);
  }
  98.001%, 100% {
    opacity: 0;
    transform: translate3d(30px, -15px, 0);
  }
}

@keyframes phGlyphTravelBlueSub {
  0%, 25.999% {
    opacity: 0;
    transform: translate3d(30px, -5px, 0);
  }
  26% {
    opacity: 0;
    transform: translate3d(30px, -5px, 0);
  }
  30% {
    opacity: 0.75;
  }
  52% {
    opacity: 0.75;
  }
  58% {
    opacity: 0;
    transform: translate3d(-620px, 360px, 0);
  }
  58.001%, 100% {
    opacity: 0;
    transform: translate3d(30px, -5px, 0);
  }
}

/* Keyframes: Header Travel Right to Left across header */
@keyframes phHeaderGlyphTravelRed {
  0%, 15.999% {
    opacity: 0;
    transform: translate3d(20px, 12px, 0);
  }
  16% {
    opacity: 0;
    transform: translate3d(20px, 12px, 0);
  }
  20% {
    opacity: 0.95;
  }
  42% {
    opacity: 0.95;
  }
  48% {
    opacity: 0;
    transform: translate3d(-780px, 36px, 0);
  }
  48.001%, 100% {
    opacity: 0;
    transform: translate3d(20px, 12px, 0);
  }
}

@keyframes phHeaderGlyphTravelBlue {
  0%, 55.999% {
    opacity: 0;
    transform: translate3d(20px, 18px, 0);
  }
  56% {
    opacity: 0;
    transform: translate3d(20px, 18px, 0);
  }
  60% {
    opacity: 0.95;
  }
  82% {
    opacity: 0.95;
  }
  88% {
    opacity: 0;
    transform: translate3d(-820px, 32px, 0);
  }
  88.001%, 100% {
    opacity: 0;
    transform: translate3d(20px, 18px, 0);
  }
}

/* 3D Slow Rotation along X & Y axes */
@keyframes glyphTumble3D {
  0% {
    transform: perspective(350px) rotateX(0deg) rotateY(0deg) scale(0.92);
  }
  25% {
    transform: perspective(350px) rotateX(90deg) rotateY(90deg) scale(1.08);
  }
  50% {
    transform: perspective(350px) rotateX(180deg) rotateY(180deg) scale(0.92);
  }
  75% {
    transform: perspective(350px) rotateX(270deg) rotateY(270deg) scale(1.08);
  }
  100% {
    transform: perspective(350px) rotateX(360deg) rotateY(360deg) scale(0.92);
  }
}

@keyframes glyphTumble3DAlt {
  0% {
    transform: perspective(350px) rotateX(360deg) rotateY(0deg) scale(0.95);
  }
  25% {
    transform: perspective(350px) rotateX(270deg) rotateY(90deg) scale(1.05);
  }
  50% {
    transform: perspective(350px) rotateX(180deg) rotateY(180deg) scale(0.95);
  }
  75% {
    transform: perspective(350px) rotateX(90deg) rotateY(270deg) scale(1.05);
  }
  100% {
    transform: perspective(350px) rotateX(0deg) rotateY(360deg) scale(0.95);
  }
}

/* Keyframes: Card Meteors Top-Right -> Bottom-Left (35-40 deg) */
@keyframes phMeteor1 {
  0% { transform: translate3d(0, 0, 0) rotate(136deg); opacity: 0; }
  2% { opacity: 1; }
  14% { opacity: 1; }
  16% { transform: translate3d(-750px, 420px, 0) rotate(136deg); opacity: 0; }
  16.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(136deg); }
}

@keyframes phMeteor2 {
  0%, 19.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(140deg); }
  20% { transform: translate3d(0, 0, 0) rotate(140deg); opacity: 0; }
  22% { opacity: 1; }
  34% { opacity: 1; }
  36% { transform: translate3d(-850px, 460px, 0) rotate(140deg); opacity: 0; }
  36.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(140deg); }
}

@keyframes phMeteor3 {
  0%, 39.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(133deg); }
  40% { transform: translate3d(0, 0, 0) rotate(133deg); opacity: 0; }
  42% { opacity: 1; }
  52% { opacity: 1; }
  54% { transform: translate3d(-680px, 390px, 0) rotate(133deg); opacity: 0; }
  54.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(133deg); }
}

@keyframes phMeteor4 {
  0%, 59.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(142deg); }
  60% { transform: translate3d(0, 0, 0) rotate(142deg); opacity: 0; }
  62% { opacity: 1; }
  74% { opacity: 1; }
  76% { transform: translate3d(-920px, 490px, 0) rotate(142deg); opacity: 0; }
  76.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(142deg); }
}

@keyframes phMeteor5 {
  0%, 79.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(137deg); }
  80% { transform: translate3d(0, 0, 0) rotate(137deg); opacity: 0; }
  82% { opacity: 1; }
  94% { opacity: 1; }
  96% { transform: translate3d(-620px, 360px, 0) rotate(137deg); opacity: 0; }
  96.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(137deg); }
}

/* Keyframes: Header Meteors Right-Upper -> Left (165-171 deg) */
@keyframes phHeaderMeteor1 {
  0% { transform: translate3d(0, 0, 0) rotate(168deg); opacity: 0; }
  2% { opacity: 1; }
  14% { opacity: 1; }
  16% { transform: translate3d(-780px, 45px, 0) rotate(168deg); opacity: 0; }
  16.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(168deg); }
}

@keyframes phHeaderMeteor2 {
  0%, 19.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(170deg); }
  20% { transform: translate3d(0, 0, 0) rotate(170deg); opacity: 0; }
  22% { opacity: 1; }
  34% { opacity: 1; }
  36% { transform: translate3d(-880px, 40px, 0) rotate(170deg); opacity: 0; }
  36.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(170deg); }
}

@keyframes phHeaderMeteor3 {
  0%, 39.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(165deg); }
  40% { transform: translate3d(0, 0, 0) rotate(165deg); opacity: 0; }
  42% { opacity: 1; }
  52% { opacity: 1; }
  54% { transform: translate3d(-720px, 48px, 0) rotate(165deg); opacity: 0; }
  54.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(165deg); }
}

@keyframes phHeaderMeteor4 {
  0%, 59.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(171deg); }
  60% { transform: translate3d(0, 0, 0) rotate(171deg); opacity: 0; }
  62% { opacity: 1; }
  74% { opacity: 1; }
  76% { transform: translate3d(-940px, 42px, 0) rotate(171deg); opacity: 0; }
  76.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(171deg); }
}

@keyframes phHeaderMeteor5 {
  0%, 79.999% { opacity: 0; transform: translate3d(0, 0, 0) rotate(167deg); }
  80% { transform: translate3d(0, 0, 0) rotate(167deg); opacity: 0; }
  82% { opacity: 1; }
  94% { opacity: 1; }
  96% { transform: translate3d(-680px, 44px, 0) rotate(167deg); opacity: 0; }
  96.001%, 100% { opacity: 0; transform: translate3d(0, 0, 0) rotate(167deg); }
}

/* Stardust Drift Keyframes */
@keyframes phStarDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0; }
  15% { opacity: 0.85; transform: translate3d(-60px, 35px, 0) scale(1); }
  50% { opacity: 1; transform: translate3d(-180px, 110px, 0) scale(1.15); }
  85% { opacity: 0.7; transform: translate3d(-300px, 180px, 0) scale(0.9); }
  100% { transform: translate3d(-380px, 230px, 0) scale(0.5); opacity: 0; }
}

@keyframes phStarDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(0.5); opacity: 0; }
  20% { opacity: 0.9; transform: translate3d(-80px, 45px, 0) scale(1.1); }
  60% { opacity: 0.95; transform: translate3d(-240px, 140px, 0) scale(1); }
  85% { opacity: 0.6; transform: translate3d(-360px, 210px, 0) scale(0.85); }
  100% { transform: translate3d(-460px, 270px, 0) scale(0.4); opacity: 0; }
}

/* Responsive adjustment for Mobile screens (<= 768px) */
@media (max-width: 768px) {
  .ph-glyph--red {
    font-size: 16px;
  }
  .ph-glyph--blue {
    font-size: 16px;
  }
  .site-header .ph-glyph--red,
  .site-header .ph-glyph--blue {
    font-size: 13px;
  }
  @keyframes phGlyphTravelRed {
    0%, 15.999% { opacity: 0; transform: translate3d(15px, -10px, 0); }
    16% { opacity: 0; transform: translate3d(15px, -10px, 0); }
    20% { opacity: 0.95; }
    42% { opacity: 0.95; }
    48% { opacity: 0; transform: translate3d(-340px, 260px, 0); }
    48.001%, 100% { opacity: 0; transform: translate3d(15px, -10px, 0); }
  }
  @keyframes phGlyphTravelBlue {
    0%, 55.999% { opacity: 0; transform: translate3d(15px, -5px, 0); }
    56% { opacity: 0; transform: translate3d(15px, -5px, 0); }
    60% { opacity: 0.95; }
    82% { opacity: 0.95; }
    88% { opacity: 0; transform: translate3d(-360px, 280px, 0); }
    88.001%, 100% { opacity: 0; transform: translate3d(15px, -5px, 0); }
  }
  @keyframes phHeaderGlyphTravelRed {
    0%, 15.999% { opacity: 0; transform: translate3d(10px, 10px, 0); }
    16% { opacity: 0; transform: translate3d(10px, 10px, 0); }
    20% { opacity: 0.95; }
    42% { opacity: 0.95; }
    48% { opacity: 0; transform: translate3d(-320px, 15px, 0); }
    48.001%, 100% { opacity: 0; transform: translate3d(10px, 10px, 0); }
  }
  @keyframes phHeaderGlyphTravelBlue {
    0%, 55.999% { opacity: 0; transform: translate3d(10px, 14px, 0); }
    56% { opacity: 0; transform: translate3d(10px, 14px, 0); }
    60% { opacity: 0.95; }
    82% { opacity: 0.95; }
    88% { opacity: 0; transform: translate3d(-340px, 18px, 0); }
    88.001%, 100% { opacity: 0; transform: translate3d(10px, 14px, 0); }
  }
}

/* Performance Mode Suppression (Zero Overhead) */
html.perf-mode-performance :is(.bar-celestial-particles, .profile-header__particles, .ph-glyph, .ph-meteor, .ph-star, .ph-particles-nebula),
html[data-perf-mode="performance"] :is(.bar-celestial-particles, .profile-header__particles, .ph-glyph, .ph-meteor, .ph-star, .ph-particles-nebula),
html.perf-mode-performance .bar-celestial-particles,
html[data-perf-mode="performance"] .bar-celestial-particles,
html.perf-mode-performance .profile-header__particles,
html[data-perf-mode="performance"] .profile-header__particles,
html.perf-mode-performance .ph-glyph,
html[data-perf-mode="performance"] .ph-glyph,
html.perf-mode-performance .ph-meteor,
html[data-perf-mode="performance"] .ph-meteor,
html.perf-mode-performance .ph-star,
html[data-perf-mode="performance"] .ph-star {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  :is(.bar-celestial-particles, .profile-header__particles),
  .bar-celestial-particles,
  .profile-header__particles,
  .ph-glyph {
    display: none !important;
  }
}

