/* Project WOTLK Launcher — frost-and-gold skin
   (The .fel CSS *class* keeps its name: main.js emits "btn fel" and stays
   byte-identical to the desktop launcher. Only the colours changed.)
   Layout: frameless window · big portrait hero panel left · crest grid +
   rotation list right · changelog + setup pop-ups. */

:root {
  --ground: #0a0d0f;
  --ground-2: #0d1214;
  --panel: #12181b;
  --panel-2: #161e22;
  --line: #242f35;
  --gold: #c9a34e;
  --gold-bright: #e7cd8a;
  --frost: #4cafe0;
  --frost-dim: #33769a;
  --ink: #e8e0c9;
  --muted: #6f8790;
  --danger: #d0703f;
  --serif: 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Segoe UI', Tahoma, Arial, sans-serif;
  --mono: Consolas, 'Cascadia Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  user-select: none;
  border: 1px solid #293d45; /* frameless window edge */
}

/* ---------- custom titlebar (frameless) ---------- */

.titlebar {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #151f24, #0e161a);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px 8px 16px;
  flex-shrink: 0;
}
.drag-zone {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
  padding: 4px 0; /* fat drag target */
  cursor: default;
}
.orb {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9ee2ff, var(--frost) 45%, #0f3143 85%);
  box-shadow: 0 0 14px rgba(76,175,224,0.7), inset 0 -3px 6px rgba(0,0,0,0.5);
  flex-shrink: 0;
}
.app-name {
  font-family: var(--serif); font-variant: small-caps;
  letter-spacing: 0.12em; color: var(--gold-bright); font-size: 1.1rem;
  white-space: nowrap;
}
.spacer { flex: 1; }
.source-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-tag.offline { color: var(--danger); }

.win-controls { display: flex; gap: 6px; margin-left: 6px; }
.win-btn {
  width: 34px; height: 28px;
  background: none; border: 1px solid transparent; border-radius: 3px;
  color: var(--muted); font-size: 0.95rem; line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.win-btn:hover { background: rgba(201,163,78,0.12); color: var(--gold-bright); border-color: #314c57; }
.win-btn.close:hover { background: rgba(160,40,30,0.55); color: #ffd9d0; border-color: #7a2c20; }
.win-btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 1px; }

/* ---------- buttons ---------- */

.btn {
  position: relative; overflow: hidden;
  font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.06em;
  background: linear-gradient(180deg, #202e35, #131d22);
  color: var(--gold-bright);
  border: 1px solid #314c57; border-radius: 3px;
  padding: 6px 14px; cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  white-space: nowrap;
}
.btn:hover:not(:disabled) {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201,163,78,0.35);
  transform: translateY(-1px);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.fel { background: linear-gradient(180deg, #1e475a, #122f3d); color: #c2ecff; border-color: var(--frost-dim); }
.btn.fel:hover:not(:disabled) { border-color: var(--frost); box-shadow: 0 0 14px rgba(76,175,224,0.5); }
.btn.subtle { opacity: 0.75; }

.btn::after {
  content: '';
  position: absolute; top: 0; bottom: 0; left: -80%; width: 50%;
  background: linear-gradient(105deg, transparent, rgba(231,205,138,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
  pointer-events: none;
}
.btn:hover:not(:disabled)::after { left: 130%; }

/* ---------- layout ---------- */

.launcher-body { display: flex; flex: 1; min-height: 0; }

/* LEFT: portrait hero */
.hero-panel {
  position: relative;
  width: 42%;
  min-width: 340px;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(60% 40% at 50% 30%, rgba(76,175,224,0.15), transparent 75%),
    var(--ground-2);
  box-shadow: inset 0 0 0 1px rgba(201,163,78,0.15), inset 0 0 60px rgba(0,0,0,0.55);
}
#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 1;
  transition: opacity 0.45s ease;
}
#hero-video.dim { opacity: 0; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,13,15,0.95) 0%, rgba(10,13,15,0.25) 26%, transparent 45%),
              linear-gradient(180deg, rgba(10,13,15,0.5) 0%, transparent 18%);
}
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
}
.hero-caption h1 {
  margin: 0;
  font-family: var(--serif); font-variant: small-caps; font-weight: 400;
  font-size: 2.4rem; letter-spacing: 0.08em; color: var(--gold-bright);
  text-shadow: 0 2px 14px rgba(0,0,0,0.95);
}
.hero-sub {
  font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
}

/* RIGHT: controls */
.control-panel { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* crest grid */
.crest-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  padding: 24px 18px 12px; /* headroom for the NEW UPDATE bubbles */
}
@media (max-width: 1150px) { .crest-grid { grid-template-columns: repeat(5, 1fr); } }
.crest-btn {
  position: relative;
  background: none; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.crest-btn img {
  width: 100%; max-width: 74px; aspect-ratio: 1; border-radius: 6px;
  border: 1px solid #293d45;
  box-shadow: 0 2px 8px rgba(0,0,0,0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
  filter: saturate(0.72) brightness(0.82);
  display: block;
}
.crest-btn .crest-name {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.18s ease;
}
.crest-btn:hover img { transform: translateY(-3px) scale(1.05); border-color: var(--gold); filter: saturate(1) brightness(1); }
.crest-btn:hover .crest-name { color: var(--ink); }
.crest-btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 3px; border-radius: 6px; }
.crest-btn.active img {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(201,163,78,0.55), 0 2px 8px rgba(0,0,0,0.55);
  filter: saturate(1) brightness(1.05);
}
.crest-btn.active .crest-name { color: var(--gold-bright); }
.crest-btn .updates-dot {
  position: absolute; top: -3px; right: 8%;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--frost); border: 2px solid #0a0f11;
  box-shadow: 0 0 8px var(--frost);
}

/* "NEW UPDATE" speech bubble — loud until clicked */
.new-bubble {
  position: absolute;
  font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em;
  color: #0a0d0f;
  background: linear-gradient(180deg, #8ed7f7, var(--frost));
  border: 1px solid #1c506b;
  border-radius: 4px;
  padding: 3px 7px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(76,175,224,0.55);
  pointer-events: none;
  z-index: 5;
}
.new-bubble::after {
  content: '';
  position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--frost);
}
.crest-bubble { top: -18px; left: 50%; transform: translateX(-50%); }
.card-bubble { top: -11px; left: 10px; }
.card-bubble::after { left: 16px; transform: none; }

.panel-rule {
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px; margin: 2px 0 4px;
}
.panel-rule::before, .panel-rule::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line)); }
.panel-rule::after { background: linear-gradient(90deg, var(--line), transparent); }
.panel-rule .gem { width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(201,163,78,0.55); }

/* rotation cards */
.cards {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 18px 16px; /* headroom for card bubbles */
}
.card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 16px; flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: #314c57;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.card.update { border-color: var(--frost-dim); }
.rot { min-width: 0; flex: 1; }
.rot-name {
  font-family: var(--serif); font-size: 1.02rem; letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rot-sub { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rot-sub .note { color: #8ec2d9; }

/* compact controls inside cards so pill + button always fit the frame */
.card { gap: 10px; }
.card .btn { padding: 4px 10px; font-size: 0.72rem; flex-shrink: 0; }
.card .pill { font-size: 0.68rem; padding: 2px 8px; }
.card .chip { font-size: 0.64rem; padding: 2px 6px; }

.chip {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line);
  color: var(--muted); flex-shrink: 0;
}
.chip.pvp { color: #d8a0a0; border-color: #4a3030; }
.chip.lvl { color: #a0c4d8; border-color: #2f4450; }
.chip.aio { color: #c9a0e8; border-color: #43304a; }

.pill {
  font-size: 0.74rem; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 99px;
  flex-shrink: 0; white-space: nowrap;
}
.pill.ok { color: var(--gold); border: 1px solid #4a4227; background: rgba(201,163,78,0.07); }
.pill.new { color: #b0e6ff; border: 1px solid var(--frost-dim); background: rgba(76,175,224,0.12); font-weight: 600; }
.pill.none { color: var(--muted); border: 1px solid var(--line); }

.busy {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(76,175,224,0.25); border-top-color: var(--frost);
  display: inline-block; vertical-align: -2px;
}

/* ---------- status bar ---------- */

.statusbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #0a0f12;
  padding: 10px 16px; font-size: 0.78rem; color: var(--muted);
  flex-shrink: 0;
}
.statusbar code {
  font-family: var(--mono); font-size: 0.74rem; color: #b8d9e6;
  background: var(--panel); border: 1px solid var(--line); border-radius: 3px;
  padding: 2px 8px;
  max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.powered-by {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--muted); font-size: 0.72rem; white-space: nowrap;
}
.powered-by img {
  height: 44px; width: auto; display: block;
  filter: drop-shadow(0 0 6px rgba(60, 176, 255, 0.35));
}

/* ---------- pop-ups (setup + changelog) ---------- */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(5, 7, 8, 0.88);
  display: grid; place-items: center;
}
.modal-backdrop[hidden],
.modal-backdrop.gone {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}
.modal {
  width: min(460px, 88vw);
  background: linear-gradient(180deg, #161e22, #0e1518);
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 0 1px #000, 0 24px 70px rgba(0,0,0,0.7), 0 0 50px rgba(76,175,224,0.12);
  padding: 28px 30px;
  text-align: center;
}
.modal-orb {
  width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
  background: radial-gradient(circle at 35% 30%, #9ee2ff, var(--frost) 45%, #0f3143 85%);
  box-shadow: 0 0 22px rgba(76,175,224,0.8), inset 0 -4px 8px rgba(0,0,0,0.5);
}
.modal h2 {
  margin: 0 0 10px; font-family: var(--serif); font-variant: small-caps;
  font-weight: 400; letter-spacing: 0.08em; font-size: 1.6rem; color: var(--gold-bright);
}
.modal p { margin: 0 0 18px; color: var(--ink); line-height: 1.55; font-size: 0.92rem; }
.modal p strong { color: var(--gold-bright); }
.modal p code {
  font-family: var(--mono); font-size: 0.74rem; color: #b8d9e6;
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}
.suggestion {
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  background: rgba(76,175,224,0.06);
  border: 1px solid var(--frost-dim); border-radius: 4px;
  padding: 12px 14px; margin-bottom: 14px;
}
.sug-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--frost); }
.suggestion code {
  font-family: var(--mono); font-size: 0.74rem; color: #b8d9e6;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.modal-hint { font-size: 0.8rem; color: var(--muted); margin: 10px 0 0; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em;
  text-decoration: underline; margin-top: 14px; padding: 4px;
}
.link-btn:hover { color: var(--ink); }
.link-btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }

/* changelog pop-up — clean list of what's new / what changed */
.modal.changelog { width: min(520px, 90vw); }
.cl-subtitle {
  color: var(--muted); font-size: 0.82rem; letter-spacing: 0.06em;
  margin: -4px 0 16px !important;
}
.cl-list {
  text-align: left;
  max-height: 340px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 4px;
  background: rgba(0,0,0,0.18);
  margin-bottom: 18px;
}

/* class-art splash atop the changelog pop-up (fel burst / gold level-up) */
.cl-splash {
  position: relative;
  margin: -28px -30px 18px;   /* bleed to the modal edges */
  height: 150px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid var(--gold);
  background: #000;
}
.cl-splash video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%;
  display: block;
}
.cl-splash::after { /* shade the art down into the modal background */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 55%, rgba(14,21,24,0.92));
  pointer-events: none;
}
.cl-splash-fx { position: absolute; inset: 0; pointer-events: none; }
.cl-splash-fx i {
  position: absolute; bottom: -6px;
  width: 5px; height: 5px; border-radius: 50%;
  background: #6ed0ff;
  box-shadow: 0 0 8px 2px rgba(76,175,224,0.8);
  opacity: 0;
}
.cl-splash-fx i:nth-child(1) { left: 12%; }
.cl-splash-fx i:nth-child(2) { left: 28%; width: 3px; height: 3px; }
.cl-splash-fx i:nth-child(3) { left: 45%; }
.cl-splash-fx i:nth-child(4) { left: 61%; width: 4px; height: 4px; }
.cl-splash-fx i:nth-child(5) { left: 76%; }
.cl-splash-fx i:nth-child(6) { left: 90%; width: 3px; height: 3px; }
.cl-splash.levelup .cl-splash-fx i {
  background: #ffe28a;
  box-shadow: 0 0 10px 3px rgba(255,210,110,0.85);
}
.cl-row {
  padding: 11px 14px 11px 12px;
  border-left: 3px solid var(--row-color, var(--gold));
  border-bottom: 1px solid var(--line);
}
.cl-row:last-child { border-bottom: none; }
.cl-row-head { display: flex; align-items: baseline; gap: 10px; }
.cl-row-name { font-family: var(--serif); font-size: 1rem; color: var(--ink); letter-spacing: 0.02em; }
.cl-row-ver {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.74rem; letter-spacing: 0.06em; color: var(--frost);
  font-variant-numeric: tabular-nums;
}
.cl-row-note { margin-top: 4px; font-size: 0.84rem; line-height: 1.5; color: #a8c8d4; }
.cl-row-note.empty { color: var(--muted); font-style: italic; }
.cl-row.failed { border-left-color: var(--danger); }
.cl-row.failed .cl-row-ver { color: var(--danger); }
.cl-row.failed .cl-row-note { color: #f0b09a; }
.cl-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%);
  max-width: 70%;
  background: #151f24; color: var(--ink);
  border: 1px solid var(--gold); border-radius: 4px;
  padding: 10px 18px; font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  z-index: 30;
}
.toast.error { border-color: var(--danger); }

/* ---------- motion (disabled for reduced-motion users) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .orb, .modal-orb { animation: orbpulse 3.2s ease-in-out infinite; }
  @keyframes orbpulse {
    0%, 100% { box-shadow: 0 0 12px rgba(76,175,224,0.55), inset 0 -3px 6px rgba(0,0,0,0.5); }
    50%      { box-shadow: 0 0 24px rgba(76,175,224,0.95), inset 0 -3px 6px rgba(0,0,0,0.5); }
  }

  .card.update { animation: felpulse 2.6s ease-in-out infinite; }
  @keyframes felpulse {
    0%, 100% { box-shadow: 0 0 10px rgba(76,175,224,0.12); }
    50%      { box-shadow: 0 0 20px rgba(76,175,224,0.32); }
  }

  .card-enter { animation: cardenter 0.4s ease both; }
  @keyframes cardenter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .name-enter { animation: nameenter 0.5s ease both; }
  @keyframes nameenter {
    from { opacity: 0; transform: translateY(12px); letter-spacing: 0.2em; }
    to   { opacity: 1; transform: translateY(0); letter-spacing: 0.08em; }
  }

  .modal { animation: modalenter 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  @keyframes modalenter {
    from { opacity: 0; transform: scale(0.92) translateY(14px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
  }

  .toast.show { animation: toastup 0.3s ease both; }
  @keyframes toastup {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
  }

  .busy { animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* speech bubbles bob for attention (margin-based so centering transforms survive) */
  .new-bubble { animation: bubblebob 1.5s ease-in-out infinite; }
  @keyframes bubblebob {
    0%, 100% { margin-top: 0; box-shadow: 0 2px 10px rgba(76,175,224,0.45); }
    50%      { margin-top: -5px; box-shadow: 0 6px 16px rgba(76,175,224,0.75); }
  }

  /* update splash: class art entrance variants */
  .cl-splash video { animation: splashin 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  .cl-splash video.swap { animation: splashswap 0.5s ease both; }
  @keyframes splashin { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; transform: scale(1); } }
  @keyframes splashswap { from { opacity: 0; } to { opacity: 1; } }

  .cl-splash.burst video { animation: splashburst 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
  @keyframes splashburst {
    0%   { opacity: 0; transform: scale(1.35); filter: brightness(3) saturate(2); }
    45%  { opacity: 1; filter: brightness(1.6) saturate(1.4); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  }

  .cl-splash.sweep::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%; z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(120,212,255,0.55), transparent);
    animation: splashsweep 1.1s ease-out 0.15s both;
  }
  @keyframes splashsweep { to { left: 115%; } }

  .cl-splash.flicker video {
    animation: splashin 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) both,
               splashflicker 1.6s steps(2, jump-none) 0.7s 2;
  }
  @keyframes splashflicker {
    0%, 100% { filter: brightness(1); }
    25% { filter: brightness(1.7) hue-rotate(8deg); }
    60% { filter: brightness(0.9); }
    80% { filter: brightness(1.5); }
  }

  .cl-splash.levelup video { animation: splashlevelup 1.2s ease both; }
  @keyframes splashlevelup {
    0%   { opacity: 0; transform: scale(1.12); filter: brightness(2.2) sepia(0.6) saturate(1.6); }
    55%  { opacity: 1; filter: brightness(1.5) sepia(0.35) saturate(1.3); }
    100% { opacity: 1; transform: scale(1); filter: brightness(1); }
  }

  .cl-splash-fx i { animation: sparkrise 1.8s ease-out infinite; }
  .cl-splash-fx i:nth-child(2) { animation-delay: 0.35s; }
  .cl-splash-fx i:nth-child(3) { animation-delay: 0.7s; }
  .cl-splash-fx i:nth-child(4) { animation-delay: 0.15s; }
  .cl-splash-fx i:nth-child(5) { animation-delay: 0.55s; }
  .cl-splash-fx i:nth-child(6) { animation-delay: 0.9s; }
  @keyframes sparkrise {
    0%   { opacity: 0; transform: translateY(0); }
    15%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-130px); }
  }

  /* Zuck logo: living electric pulse (placeholder until the Higgsfield clip) */
  .powered-by img { animation: zuckpulse 2.8s ease-in-out infinite; }
  @keyframes zuckpulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(60,176,255,0.3)) brightness(1); }
    45%      { filter: drop-shadow(0 0 12px rgba(80,187,255,0.75)) brightness(1.25); }
    52%      { filter: drop-shadow(0 0 7px rgba(80,187,255,0.5)) brightness(0.95); }
    58%      { filter: drop-shadow(0 0 14px rgba(90,194,255,0.85)) brightness(1.35); }
  }
}
