*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  --lp-theme: #9B1B30;
  --lp-theme-accent: #C41E3A;
  --lp-theme-secondary: #1a0a10;
  --lp-theme-particle: #E85A6B;
  --lp-theme-deep: #4a0e18;
  --lp-theme-mid: #9B1B30;
  --lp-theme-rgb: 155, 27, 48;
  --lp-theme-glow: rgba(196, 30, 58, 0.45);
  --lp-mission-opacity: 1;
}

html, body {
  width: 100%;
  height: 100%;
  background: #0a0a0c;
  color: #f5f5f5;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  --lp-theme: #9B1B30;
  --lp-theme-accent: #C41E3A;
  --lp-theme-secondary: #1a0a10;
  --lp-theme-particle: #E85A6B;
  --lp-theme-deep: #4a0e18;
  --lp-theme-mid: #9B1B30;
  --lp-theme-rgb: 155, 27, 48;
  --lp-theme-glow: rgba(196, 30, 58, 0.45);
  position: relative;
  width: 100%;
  height: 100svh;
  max-width: 440px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-callout: none;
}

.lp-ver {
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(245, 245, 245, 0.28);
  letter-spacing: 0.08em;
  pointer-events: none;
  z-index: 2;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  background: #0a0a0c;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-callout: none;
  -webkit-user-drag: none;
}

.lp-intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: auto;
  background: #0b0b0f;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.lp-intro.is-gone {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.42s ease, visibility 0s linear 0.42s;
}
.lp-intro-ambient {
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 44% at 50% 46%,
    rgba(155, 27, 48, 0.3) 0%,
    rgba(11, 11, 15, 0) 72%
  );
  opacity: 1;
  animation: lp-intro-ambient 0.7s ease forwards;
}
.lp-intro-brand {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
  opacity: 1;
  animation: lp-intro-brand 0.7s cubic-bezier(0.22, 0.68, 0.2, 1) forwards;
}
.lp-intro-kicker {
  font: 400 12px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: rgba(196, 30, 58, 0.92);
}
.lp-intro-title {
  font: 400 38px/1.05 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 16px rgba(196, 30, 58, 0.45),
    0 0 32px rgba(155, 27, 48, 0.22);
  animation: lp-intro-title-glow 1.1s ease-in-out forwards;
}
.lp-intro-bar {
  position: absolute;
  left: 50%;
  top: 72%;
  z-index: 3;
  width: min(42%, 180px);
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #2a2a32;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 1;
}
.lp-intro-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9B1B30 0%, #C41E3A 86%, #e85a6b 100%);
  box-shadow: 0 0 12px rgba(196, 30, 58, 0.55);
  transform: scaleX(0.14);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.37, 0.08, 0.18, 1);
}
.lp-intro-bar-fill.is-real {
  animation: none;
}
.lp-intro-status {
  position: absolute;
  left: 50%;
  top: calc(72% + 14px);
  z-index: 3;
  margin: 0;
  transform: translateX(-50%);
  font: 500 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(245, 245, 245, 0.42);
  pointer-events: none;
  opacity: 0;
}
.lp-intro-status.is-on {
  opacity: 1;
}
.lp-intro.is-skipped .lp-intro-ambient,
.lp-intro.is-skipped .lp-intro-brand {
  animation: none;
  opacity: 0;
}
.lp-intro.is-skipped .lp-intro-bar {
  opacity: 1;
}
@keyframes lp-intro-ambient {
  0% { opacity: 0.85; }
  100% { opacity: 1; }
}
@keyframes lp-intro-brand {
  0% { opacity: 1; transform: scale(0.96); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: none; }
}
@keyframes lp-intro-title-glow {
  0% {
    text-shadow: 0 0 0 transparent;
  }
  40% {
    text-shadow:
      0 0 18px rgba(196, 30, 58, 0.85),
      0 0 42px rgba(155, 27, 48, 0.5);
  }
  100% {
    text-shadow:
      0 0 22px rgba(196, 30, 58, 1),
      0 0 56px rgba(155, 27, 48, 0.7),
      0 0 90px rgba(155, 27, 48, 0.28);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lp-intro,
  .lp-intro * {
    animation: none !important;
  }
  .lp-intro:not(.is-gone) .lp-intro-ambient,
  .lp-intro:not(.is-gone) .lp-intro-brand {
    opacity: 1 !important;
    visibility: visible;
    filter: none;
    transform: none;
  }
  .lp-intro:not(.is-gone) .lp-intro-bar,
  .lp-intro:not(.is-gone) .lp-intro-status.is-on {
    opacity: 1;
    visibility: visible;
  }
}

.hp-dock {
  position: fixed;
  top: max(10px, env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 20px), 440px);
  z-index: 80;
  pointer-events: none;
  opacity: 0;
}
body.lp-intro-done .hp-dock {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .hp-dock {
    opacity: 0;
    pointer-events: none;
    transition: none;
  }
  body.lp-intro-done .hp-dock {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }
}
@media (min-width: 900px) {
  .hp-dock {
    width: min(calc(100% - 48px), 440px);
    top: 14px;
  }
}

.hp-player {
  pointer-events: auto;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  padding: 10px 14px 11px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(var(--lp-theme-rgb), 0.22), transparent 72%),
    #0a0a0c;
  border: 1px solid var(--lp-theme);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(var(--lp-theme-rgb), 0.12),
    0 10px 28px rgba(0, 0, 0, 0.55),
    0 0 22px var(--lp-theme-glow);
  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background-color 0.4s ease;
}
.hp-player-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hp-player-volbox {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  z-index: 1;
}
.hp-player-title {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  max-width: 46%;
  font: 400 13px/1.15 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.04em;
  min-width: 0;
  pointer-events: none;
  z-index: 0;
  -webkit-text-stroke: 0.5px #3a0a12;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 8px var(--lp-theme-glow),
    0 0 16px rgba(var(--lp-theme-rgb), 0.45),
    0 2px 0 #2a080e;
}
.hp-player-menuwrap {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  z-index: 1;
}
.hp-player-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 132px;
  padding: 4px;
  background: #111113;
  border: 1px solid var(--lp-theme);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: border-color 0.4s ease;
}
.hp-player-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.hp-player-menu button:hover {
  background: rgba(var(--lp-theme-rgb), 0.22);
  color: #ffffff;
}
.hp-player-bot {
  display: grid;
  grid-template-columns: auto auto minmax(48px, 1fr) auto auto auto;
  align-items: center;
  column-gap: 8px;
}
.hp-ico-btn,
.hp-player-play,
.hp-player-menu button {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}
.hp-ico-btn::-moz-focus-inner,
.hp-player-play::-moz-focus-inner,
.hp-player-menu button::-moz-focus-inner {
  border: 0;
}
.hp-ico-btn:focus,
.hp-player-play:focus,
.hp-player-menu button:focus {
  outline: none;
  box-shadow: none;
}
.hp-ico-btn:focus:not(:focus-visible),
.hp-player-play:focus:not(:focus-visible),
.hp-player-menu button:focus:not(:focus-visible) {
  outline: none;
}
.hp-ico-btn:focus-visible,
.hp-player-menu button:focus-visible,
.hp-ico-btn:active,
.hp-player-play:focus,
.hp-player-play:focus-visible,
.hp-player-play:active,
.hp-player-play[aria-pressed],
.hp-player-play[aria-pressed="true"],
.hp-player-play[aria-pressed="false"] {
  outline: none;
  box-shadow: none;
}
.hp-player-ctrls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.hp-ico-btn,
.hp-player-play {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  background: transparent;
  border: 0;
  padding: 0;
}
.hp-ico-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.hp-ico-btn:hover {
  background: rgba(var(--lp-theme-rgb), 0.22);
  color: var(--lp-theme-accent);
}
.hp-ico-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.hp-ico-btn svg [stroke] { fill: none; }
.hp-player-play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--lp-theme-rgb), 0.18);
  border: 1px solid rgba(var(--lp-theme-rgb), 0.55);
  color: var(--lp-theme-accent);
  transition:
    color 0.4s ease,
    background-color 0.4s ease,
    border-color 0.4s ease;
}
.hp-player-play:hover {
  background: rgba(var(--lp-theme-rgb), 0.32);
  border-color: var(--lp-theme-accent);
}
.hp-player-play svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  pointer-events: none;
}
.hp-player-play .hp-ico-play,
.hp-player-play .hp-ico-pause,
.hp-player-play svg[hidden] {
  display: none !important;
}
.hp-player-play[aria-pressed="false"] .hp-ico-play,
.hp-player-play:not([aria-pressed="true"]) .hp-ico-play {
  display: block !important;
}
.hp-player-play[aria-pressed="true"] .hp-ico-pause {
  display: block !important;
}
#hpMute .hp-ico-vol,
#hpMute .hp-ico-muted,
#hpMute svg[hidden] {
  display: none !important;
}
#hpMute[aria-pressed="false"] .hp-ico-vol,
#hpMute:not([aria-pressed="true"]) .hp-ico-vol {
  display: block !important;
}
#hpMute[aria-pressed="true"] .hp-ico-muted {
  display: block !important;
}
.hp-player-play.is-toggling {
  animation: hp-play-pop 160ms ease-out;
}
@keyframes hp-play-pop {
  from { transform: scale(0.94); color: var(--lp-theme); }
  to { transform: scale(1); color: var(--lp-theme-accent); }
}
.hp-skip svg { width: 15px; height: 15px; }
.hp-player-time {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-theme-accent);
  font-variant-numeric: tabular-nums;
  width: 5ch;
  min-width: 5ch;
  max-width: 5ch;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  flex: none;
  transition: color 0.4s ease;
}
.hp-player-seek,
.hp-player-vol {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  padding: 0;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  outline: none;
  touch-action: none;
  color: inherit;
}
.hp-player-vol {
  transition: background 0.25s ease;
}
.hp-player-seek {
  width: 100%;
  min-width: 0;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .hp-player-seek::-webkit-slider-runnable-track,
  .hp-player-seek::-moz-range-track {
    transition: background 0.2s linear;
  }
}
.hp-player-vol { width: 56px; flex-shrink: 0; }
@media (min-width: 400px) {
  .hp-player-vol { width: 72px; }
}
.hp-player-seek::-webkit-slider-runnable-track,
.hp-player-vol::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--lp-theme-accent) 0%,
    var(--lp-theme-accent) var(--hp-fill, 0%),
    #2a2a2a var(--hp-fill, 0%),
    #2a2a2a 100%
  );
}
.hp-player-seek::-webkit-slider-thumb,
.hp-player-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--lp-theme-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(var(--lp-theme-rgb), 0.35);
  cursor: pointer;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.hp-player-seek::-moz-range-track,
.hp-player-vol::-moz-range-track {
  height: 4px;
  border: 0;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--lp-theme-accent) 0%,
    var(--lp-theme-accent) var(--hp-fill, 0%),
    #2a2a2a var(--hp-fill, 0%),
    #2a2a2a 100%
  );
}
.hp-player-seek::-moz-range-thumb,
.hp-player-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-theme-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(var(--lp-theme-rgb), 0.35);
  cursor: pointer;
}

.hp-dock.is-stowed {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden;
}
.hp-float {
  position: absolute;
  right: 12px;
  bottom: 36px;
  z-index: 70;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--lp-theme-rgb), 0.55);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.42);
  color: rgba(245, 245, 245, 0.82);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  opacity: 0.58;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition:
    color 0.4s ease,
    border-color 0.4s ease,
    background-color 0.4s ease,
    opacity 0.4s ease;
}
.hp-float { display: none; }
body.lp-intro-done .hp-float:not([hidden]) { display: grid; }
.hp-float:hover,
.hp-float[aria-pressed="true"] {
  opacity: 0.88;
  color: var(--lp-theme-accent);
  border-color: rgba(var(--lp-theme-rgb), 0.7);
  background: rgba(18, 8, 12, 0.62);
}
.hp-float svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* SFX dock — volume dos efeitos (independente do MP3 / BGM) */
.lp-sfx {
  position: absolute;
  left: 10px;
  bottom: 34px;
  z-index: 70;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 5px;
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(var(--lp-theme-rgb), 0.5);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 90% 80% at 20% 0%, rgba(var(--lp-theme-rgb), 0.2), transparent 70%),
    rgba(10, 10, 12, 0.72);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    opacity 0.45s ease,
    border-color 0.4s ease,
    background-color 0.4s ease;
}
body.lp-intro-done .lp-sfx {
  display: flex;
  opacity: 0.72;
  pointer-events: auto;
}
body.lp-intro-done .lp-sfx:hover,
body.lp-intro-done .lp-sfx:focus-within {
  opacity: 0.95;
}
.lp-sfx-mute {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0;
  cursor: pointer;
  color: rgba(245, 245, 245, 0.88);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.lp-sfx-mute:hover {
  background: rgba(var(--lp-theme-rgb), 0.22);
  color: var(--lp-theme-accent);
}
.lp-sfx-mute:focus {
  outline: none;
  box-shadow: none;
}
.lp-sfx-mute:focus-visible {
  outline: 2px solid rgba(var(--lp-theme-rgb), 0.7);
  outline-offset: 1px;
}
.lp-sfx-mute svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  pointer-events: none;
}
.lp-sfx-mute svg [stroke] { fill: none; }
.lp-sfx-mute .lp-sfx-ico-on,
.lp-sfx-mute .lp-sfx-ico-off,
.lp-sfx-mute svg[hidden] {
  display: none !important;
}
.lp-sfx-mute[aria-pressed="false"] .lp-sfx-ico-on,
.lp-sfx-mute:not([aria-pressed="true"]) .lp-sfx-ico-on {
  display: block !important;
}
.lp-sfx-mute[aria-pressed="true"] .lp-sfx-ico-off {
  display: block !important;
}
.lp-sfx-vol {
  -webkit-appearance: none;
  appearance: none;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  outline: none;
  touch-action: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--lp-theme-accent) 0%,
    var(--lp-theme-accent) var(--lp-sfx-fill, 55%),
    #2a2a2a var(--lp-sfx-fill, 55%),
    #2a2a2a 100%
  );
}
.lp-sfx-vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-theme-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(var(--lp-theme-rgb), 0.35);
  cursor: pointer;
}
.lp-sfx-vol::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lp-theme-accent);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(var(--lp-theme-rgb), 0.35);
  cursor: pointer;
}
.lp-sfx-vol::-moz-range-track {
  background: transparent;
  border: 0;
}
@media (min-width: 400px) {
  .lp-sfx-vol { width: 78px; }
}
@media (max-width: 360px) {
  .lp-sfx {
    left: 6px;
    bottom: 30px;
    padding: 4px 6px 4px 4px;
  }
  .lp-sfx-vol { width: 52px; }
}

.lp-hud {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: 8px;
  z-index: 40;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 6px;
  pointer-events: none;
}
.lp-hud--left {
  right: auto;
  left: 8px;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(52%, 210px);
}
.lp-hud[hidden] { display: none; }
body.has-hp-player.lp-intro-done:not(.hp-stowed) .lp-hud {
  top: 118px;
}
.lp-plaque {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 8px 5px 5px;
  overflow: hidden;
  pointer-events: auto;
  touch-action: manipulation;
  color: #fff8e8;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.2) 0%, transparent 40%),
    linear-gradient(185deg, #8a1a2c 0%, #9B1B30 46%, #4e1018 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.38),
    inset 0 -3px 7px rgba(0, 0, 0, 0.38),
    0 1px 0 #8d6b24,
    0 3px 0 #3a0a12,
    0 6px 12px rgba(0, 0, 0, 0.42);
  transform: perspective(220px) rotateX(7deg);
}
.lp-plaque::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 5px;
  pointer-events: none;
  border: 1px solid rgba(155, 27, 48, 0.55);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.22);
}
.lp-bolsa {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  overflow: hidden;
  pointer-events: auto;
  touch-action: manipulation;
  color: #f5f5f5;
  background:
    linear-gradient(180deg, rgba(196, 30, 58, 0.28) 0%, transparent 42%),
    linear-gradient(180deg, #7a1524 0%, #9B1B30 46%, #5c1019 100%);
  border: 1.5px solid rgba(201, 162, 74, 0.72);
  border-radius: 22px 22px 46% 46% / 16px 16px 22px 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 160, 0.22),
    inset 0 -8px 14px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.4);
}
.lp-bolsa::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 230, 170, 0.38) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-120%);
  animation: lp-bolsa-shine 5.6s ease-in-out infinite;
}
@keyframes lp-bolsa-shine {
  0%, 62% { transform: translateX(-120%); }
  78% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
.lp-bolsa--hud {
  position: relative;
  left: auto;
  top: auto;
  z-index: 1;
  flex-shrink: 0;
  width: fit-content;
  max-width: max-content;
  box-sizing: border-box;
  gap: 6px;
  padding: 5px 8px;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.2) 0%, transparent 40%),
    linear-gradient(185deg, #8a1a2c 0%, #9B1B30 46%, #4e1018 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.38),
    inset 0 -3px 7px rgba(0, 0, 0, 0.38),
    0 1px 0 #8d6b24,
    0 3px 0 #3a0a12,
    0 6px 12px rgba(0, 0, 0, 0.42);
  transform: perspective(220px) rotateX(7deg);
}
.lp-bolsa--hud.is-ping {
  animation: lp-bolsa-ping 0.55s ease;
}
@keyframes lp-bolsa-ping {
  0% { box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.5), 0 0 0 2px #e8c478, 0 0 16px rgba(232, 196, 120, 0.55); }
  100% { box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.38), inset 0 -3px 7px rgba(0, 0, 0, 0.38), 0 1px 0 #8d6b24, 0 3px 0 #3a0a12, 0 6px 12px rgba(0, 0, 0, 0.42); }
}
.lp-bolsa--hud[hidden],
.lp-fair-btn[hidden],
.lp-inv-btn[hidden],
.lp-planet-btn[hidden] { display: none; }
.lp-bolsa-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.lp-bolsa--hud .lp-bolsa-meta {
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lp-bolsa-value {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  max-width: 100%;
  white-space: nowrap;
}
.lp-bolsa-kicker {
  margin: 0;
  font: 600 8px/1.1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 196, 120, 0.9);
}
.lp-bolsa--hud .lp-bolsa-kicker { font-size: 8px; }
.lp-bolsa-count {
  margin: 0;
  font: 700 16px/1.05 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #fff8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.lp-bolsa--hud .lp-bolsa-count {
  font: 400 18px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.04em;
  color: #ffe7a8;
  -webkit-text-stroke: 0.55px #3a0a12;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 6px rgba(255, 214, 120, 0.72),
    0 0 14px rgba(196, 30, 58, 0.42),
    0 2px 0 #2a080e,
    0 3px 5px rgba(0, 0, 0, 0.5);
}
.lp-bolsa--fair .lp-bolsa-count {
  font: 400 20px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.04em;
}
.lp-bolsa-count.is-rolling {
  animation: lp-slot-roll 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes lp-slot-roll {
  0% { filter: blur(4px); transform: translateY(8px); opacity: 0.35; }
  35% { filter: blur(2px); transform: translateY(-4px); opacity: 0.8; }
  100% { filter: none; transform: none; opacity: 1; }
}
.lp-bolsa-run {
  margin: 0;
  font: 700 11px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: #e8c478;
  flex-shrink: 0;
}
.lp-bolsa-run[hidden] { display: none; }

.lp-pouch {
  position: relative;
  width: 34px;
  height: 32px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  animation: lp-pouch-idle 2.8s ease-in-out infinite;
}
.lp-pouch--sm { width: 26px; height: 24px; }
@keyframes lp-pouch-idle {
  0%, 100% { transform: translateY(0) rotateX(8deg) scale(1); }
  50% { transform: translateY(-2px) rotateX(14deg) scale(1.04); }
}
.lp-pouch-body {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 10px;
  bottom: 2px;
  border-radius: 8px 8px 10px 10px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.22), transparent 30%, transparent 70%, rgba(255,255,255,0.12)),
    linear-gradient(180deg, #8a1a2a 0%, #5c1019 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 200, 140, 0.15),
    0 3px 0 #3a0a12;
}
.lp-pouch-flap {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 12px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #c9a24a 0%, #8d6b24 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.45);
}
.lp-pouch-clasp {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #ffe7a8, #c9a24a 55%, #7a5a18);
  box-shadow: 0 0 6px rgba(232, 196, 120, 0.45);
}
.lp-pouch--sm .lp-pouch-body { top: 8px; }
.lp-pouch--sm .lp-pouch-flap { height: 9px; }
.lp-pouch--sm .lp-pouch-clasp { width: 6px; height: 6px; top: 9px; }

.lp-fair-btn {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 5px 5px;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.2) 0%, transparent 40%),
    linear-gradient(185deg, #8a1a2c 0%, #9B1B30 46%, #4e1018 100%);
  color: #fff8e8;
  font: 400 12px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  flex-shrink: 0;
}
.lp-fair-btn-txt {
  white-space: nowrap;
  color: #ffe7a8;
  font: 400 12px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.07em;
  -webkit-text-stroke: 0.5px #3a0a12;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 6px rgba(255, 214, 120, 0.68),
    0 0 12px rgba(196, 30, 58, 0.38),
    0 2px 0 #2a080e;
}
.lp-fair-btn:hover { border-color: #e8c478; }
.lp-fair-btn:hover .lp-fair-btn-txt {
  color: #fff3c4;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 8px rgba(255, 214, 120, 0.85),
    0 0 16px rgba(196, 30, 58, 0.5),
    0 2px 0 #2a080e;
}
body.lp-intro-done .lp-fair-btn:not([hidden]) { display: flex; }

.lp-stall {
  position: relative;
  width: 22px;
  height: 20px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  animation: lp-stall-idle 2.6s ease-in-out infinite;
}
@keyframes lp-stall-idle {
  0%, 100% { transform: translateY(0) rotateX(6deg); }
  50% { transform: translateY(-1.5px) rotateX(12deg); }
}
.lp-stall-roof {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    #9B1B30 0 5px,
    #c9a24a 5px 10px
  );
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  box-shadow: 0 1px 0 rgba(255, 236, 180, 0.25);
}
.lp-stall-cloth {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 8px;
  bottom: 2px;
  border-radius: 0 0 2px 2px;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.2), transparent 35%, transparent 65%, rgba(255,255,255,0.1)),
    linear-gradient(180deg, #7a1524 0%, #4a0e16 100%);
  box-shadow: inset 0 1px 0 rgba(255, 200, 140, 0.12);
}
.lp-stall-pole {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 12px;
  background: linear-gradient(180deg, #e8c478, #8d6b24);
  border-radius: 1px;
}
.lp-stall-pole--l { left: 3px; }
.lp-stall-pole--r { right: 3px; }

/* —— Inventário (HUD + Feirinha) —— */
.lp-inv-btn {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 5px 5px;
  border: 2px solid #7a9e8a;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(180, 255, 220, 0.16) 0%, transparent 42%),
    linear-gradient(185deg, #1a2e28 0%, #243a32 48%, #0e1a16 100%);
  color: #e8fff4;
  font: 400 12px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 220, 0.28),
    inset 0 -3px 7px rgba(0, 0, 0, 0.42),
    0 1px 0 #4a6b58,
    0 3px 0 #0a1410,
    0 6px 12px rgba(0, 0, 0, 0.42);
}
.lp-inv-btn::before {
  border-color: rgba(46, 230, 194, 0.35);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.28);
}
.lp-inv-btn--icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 5px;
  gap: 0;
  justify-content: center;
  align-items: center;
  align-self: center;
  box-sizing: border-box;
}
.lp-inv-btn--icon .lp-inv-glyph {
  width: 22px;
  height: 22px;
}
.lp-inv-btn-txt {
  white-space: nowrap;
  color: #b8f5d8;
  font: 400 11px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.06em;
  -webkit-text-stroke: 0.45px #0a1410;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #0e1a16,
    1px 0 0 #0e1a16,
    0 -1px 0 #0e1a16,
    0 1px 0 #0e1a16,
    0 0 8px rgba(46, 230, 194, 0.45),
    0 2px 0 #06100c;
}
.lp-inv-btn:hover {
  border-color: #c9a24a;
}
.lp-inv-btn:hover .lp-inv-btn-txt {
  color: #ffe7a8;
  text-shadow:
    -1px 0 0 #0e1a16,
    1px 0 0 #0e1a16,
    0 -1px 0 #0e1a16,
    0 1px 0 #0e1a16,
    0 0 10px rgba(232, 196, 120, 0.55),
    0 2px 0 #06100c;
}
.lp-inv-btn--icon:hover .lp-inv-pack-buckle {
  box-shadow: 0 0 8px rgba(255, 214, 120, 0.75);
}
.lp-inv-btn[hidden] { display: none; }
body.lp-intro-done .lp-inv-btn:not([hidden]) { display: flex; }

.lp-inv-glyph {
  position: relative;
  width: 22px;
  height: 20px;
  flex-shrink: 0;
  transform-style: preserve-3d;
  animation: lp-inv-glyph-idle 2.9s ease-in-out infinite;
}
@keyframes lp-inv-glyph-idle {
  0%, 100% { transform: translateY(0) rotateX(4deg); }
  50% { transform: translateY(-1.5px) rotateX(10deg); }
}
.lp-inv-pack-strap {
  position: absolute;
  top: 0;
  width: 3px;
  height: 8px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #e8c478, #8d6b24);
  box-shadow: inset 0 0 0 0.5px rgba(255, 248, 220, 0.35);
}
.lp-inv-pack-strap--l { left: 4px; transform: rotate(-12deg); }
.lp-inv-pack-strap--r { right: 4px; transform: rotate(12deg); }
.lp-inv-pack-body {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 5px;
  bottom: 1px;
  border-radius: 4px 4px 5px 5px;
  border: 1.5px solid #c9a24a;
  background:
    linear-gradient(160deg, rgba(180, 255, 220, 0.22), transparent 50%),
    linear-gradient(180deg, #2a4a3e 0%, #152820 55%, #0c1612 100%);
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 220, 0.28),
    inset 0 -2px 4px rgba(0, 0, 0, 0.35),
    0 2px 0 #3a0a12;
}
.lp-inv-pack-pocket {
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 3px;
  height: 6px;
  border-radius: 2px 2px 3px 3px;
  border: 1px solid rgba(201, 162, 74, 0.55);
  background: linear-gradient(180deg, rgba(14, 26, 22, 0.35), rgba(0, 0, 0, 0.25));
  box-shadow: inset 0 1px 0 rgba(180, 255, 220, 0.12);
}
.lp-inv-pack-flap {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 7px;
  border-radius: 3px 3px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.35) 0%, transparent 55%),
    linear-gradient(180deg, #3d6b58 0%, #1a332a 100%);
  border: 1px solid rgba(201, 162, 74, 0.65);
  border-bottom-color: rgba(201, 162, 74, 0.35);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.lp-inv-pack-buckle {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, #ffe7a8, #c9a24a 55%, #7a5a18);
  box-shadow: 0 0 5px rgba(232, 196, 120, 0.5);
  animation: lp-inv-glint 3.2s ease-in-out infinite;
}
@keyframes lp-inv-glint {
  0%, 70%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  82% { opacity: 1; transform: translateX(-50%) scale(1.18); }
}

.lp-inv-btn--fair {
  transform: none;
  padding: 6px 12px 6px 8px;
  border-radius: 14px;
  gap: 8px;
  background:
    linear-gradient(180deg, rgba(180, 255, 220, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, #1a2e28 0%, #15241f 100%);
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 220, 0.18),
    inset 0 -6px 12px rgba(0, 0, 0, 0.28),
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.lp-inv-btn--fair::before {
  inset: 3px;
  border-radius: 10px;
}
.lp-inv-btn-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.lp-inv-btn-kicker {
  font: 600 8px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(46, 230, 194, 0.75);
}
.lp-inv-btn--fair .lp-inv-btn-txt {
  font-size: 13px;
  color: #dffcf0;
}
.lp-inv-btn--fair .lp-inv-glyph {
  width: 26px;
  height: 24px;
}
.lp-inv-btn--fair .lp-inv-pack-strap {
  height: 9px;
  width: 3.5px;
}
.lp-inv-btn--fair .lp-inv-pack-buckle {
  width: 6px;
  height: 6px;
  top: 9px;
}

.lp-fair-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.lp-bolsa--fair {
  grid-column: auto;
  width: fit-content;
}
.lp-fair {
  position: absolute;
  inset: 0;
  z-index: 85;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
}
.lp-fair[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.lp-fair-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.62);
}
.lp-fair-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(86%, 640px);
  overflow: hidden;
  padding: 18px 14px 0;
  border: 1px solid rgba(201, 162, 74, 0.45);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(155, 27, 48, 0.28), transparent 70%),
    linear-gradient(180deg, #141216 0%, #0c0b0e 100%);
  background-clip: padding-box;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
  animation: lp-fair-up 0.38s cubic-bezier(0.22, 0.68, 0.2, 1);
  touch-action: pan-y;
}
@keyframes lp-fair-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lp-fair-awning {
  flex-shrink: 0;
  height: 14px;
  margin: -6px -6px 12px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(
    90deg,
    #9B1B30 0 18px,
    #c9a24a 18px 36px
  );
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.lp-fair-head {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}
.lp-fair-titles { grid-column: 1; }
.lp-fair-kicker {
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a24a;
}
.lp-fair-titles h2 {
  font: 400 22px/1.15 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  letter-spacing: 0.03em;
}
.lp-bolsa--fair {
  width: fit-content;
}
.lp-fair-close {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(155, 27, 48, 0.5);
  border-radius: 10px;
  background: rgba(155, 27, 48, 0.16);
  color: #f5f5f5;
  font: 500 22px/1 system-ui, sans-serif;
  line-height: 1;
  cursor: pointer;
}
.lp-fair-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  margin: 0 0 14px;
  max-height: 52px;
  overflow-x: auto;
  overflow-y: hidden;
  opacity: 1;
  transform: translateY(0);
  scrollbar-width: none;
  transition:
    max-height 0.28s ease,
    margin 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease;
}
.lp-fair-tabs::-webkit-scrollbar { display: none; }
.lp-fair-tabs.is-scroll-hidden {
  max-height: 0;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.lp-fair-inv {
  position: relative;
  flex-shrink: 0;
  margin: 0 0 12px;
  padding: 10px 10px 8px;
  max-height: 220px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  background:
    linear-gradient(180deg, rgba(42, 24, 18, 0.55) 0%, rgba(16, 12, 14, 0.92) 100%);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 0.28s ease,
    margin 0.28s ease,
    padding 0.28s ease,
    opacity 0.22s ease,
    transform 0.28s ease,
    border-color 0.22s ease;
}
.lp-fair-inv.is-scroll-hidden {
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  border-color: transparent;
}
.lp-fair-inv-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.lp-fair-inv-kicker {
  margin: 0;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c478;
}
.lp-fair-inv-hint {
  margin: 0;
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.45);
  text-align: right;
}
.lp-fair-inv-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 168px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 74, 0.45) transparent;
}
.lp-fair-inv-empty {
  margin: 8px 4px 12px;
  text-align: center;
  color: rgba(245, 245, 245, 0.42);
  font: 500 12px/1.35 system-ui, sans-serif;
}
.lp-fair-inv-group {
  margin: 6px 2px 2px;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 196, 120, 0.55);
}
.lp-fair-inv-group:first-child {
  margin-top: 0;
}
.lp-fair-inv-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 245, 245, 0.08);
  background: rgba(8, 6, 8, 0.45);
}
.lp-fair-inv-row.is-on {
  border-color: rgba(201, 162, 74, 0.55);
  background:
    linear-gradient(90deg, rgba(201, 162, 74, 0.16), rgba(8, 6, 8, 0.35));
  box-shadow: inset 0 0 0 1px rgba(232, 196, 120, 0.12);
}
.lp-fair-inv-row--epic.is-on {
  border-color: rgba(124, 92, 255, 0.55);
}
.lp-fair-inv-row--legend.is-on {
  border-color: rgba(232, 196, 120, 0.75);
}
.lp-fair-inv-row--promo.is-on {
  border-color: rgba(46, 230, 194, 0.5);
}
.lp-fair-inv-row--rare.is-on {
  border-color: rgba(58, 124, 255, 0.5);
}
.lp-fair-inv-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 120, 0.28);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(255, 236, 190, 0.16), transparent 68%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.28);
}
.lp-fair-inv-ico .lp-ico {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}
.lp-fair-inv-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-fair-inv-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 12px/1.15 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.92);
}
.lp-fair-inv-slot {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.42);
}
.lp-fair-inv-row.is-on .lp-fair-inv-slot {
  color: rgba(232, 196, 120, 0.75);
}
.lp-fair-inv-btn {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: transparent;
  color: #e8c478;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lp-fair-inv-btn:hover,
.lp-fair-inv-btn:focus-visible {
  background: rgba(201, 162, 74, 0.18);
  border-color: #e8c478;
}
.lp-fair-inv-btn.is-on {
  background: #c9a24a;
  color: #2a1608;
  border-color: #e8c478;
}
.lp-fair-inv-btn:disabled {
  opacity: 0.72;
  cursor: default;
  background: rgba(201, 162, 74, 0.2);
  color: #e8c478;
}

/* —— Modal Inventário / Espelho da Pista —— */
.lp-inv {
  position: absolute;
  inset: 0;
  z-index: 92;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
}
.lp-inv[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.lp-inv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 7, 0.72);
}
.lp-inv-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(94%, 760px);
  overflow: hidden;
  padding: 14px 12px 0;
  border: 1px solid rgba(46, 230, 194, 0.28);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(ellipse 70% 38% at 50% 0%, rgba(46, 230, 194, 0.14), transparent 68%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(201, 162, 74, 0.1), transparent 60%),
    linear-gradient(180deg, #101816 0%, #0a0e0c 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(201, 162, 74, 0.12),
    0 -18px 44px rgba(0, 0, 0, 0.55);
  animation: lp-inv-up 0.4s cubic-bezier(0.22, 0.68, 0.2, 1);
  touch-action: pan-y;
}
@keyframes lp-inv-up {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.lp-inv-awning {
  flex-shrink: 0;
  height: 14px;
  margin: -6px -6px 12px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(
    90deg,
    #0d3b3a 0 16px,
    #c9a24a 16px 32px
  );
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.lp-inv-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.lp-inv-kicker {
  margin: 0;
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7cffd4;
}
.lp-inv-titles h2 {
  margin: 4px 0 0;
  font: 400 22px/1.15 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  letter-spacing: 0.03em;
}
.lp-inv-sub {
  margin: 6px 0 0;
  font: 500 11px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.48);
  max-width: 42ch;
}
.lp-inv-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(46, 230, 194, 0.35);
  border-radius: 10px;
  background: rgba(13, 59, 58, 0.35);
  color: #f5f5f5;
  font: 500 22px/1 system-ui, sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-inv-mirror {
  flex-shrink: 0;
  display: grid;
  gap: 0;
  margin: 0 0 8px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 74, 0.28);
  background:
    linear-gradient(180deg, rgba(20, 36, 32, 0.85) 0%, rgba(8, 12, 11, 0.95) 100%);
  box-shadow: inset 0 0 0 1px rgba(46, 230, 194, 0.08);
}
.lp-inv-mirror-frame {
  position: relative;
  border-radius: 12px;
  padding: 6px 6px 4px;
  border: 1.5px solid rgba(201, 162, 74, 0.55);
  background:
    radial-gradient(ellipse 60% 50% at 50% 28%, rgba(46, 230, 194, 0.12), transparent 65%),
    linear-gradient(180deg, #15201c 0%, #0b100e 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 232, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.lp-inv-mirror-glass {
  position: relative;
  height: 118px;
  border-radius: 10px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    repeating-linear-gradient(
      90deg,
      rgba(201, 162, 74, 0.06) 0 2px,
      transparent 2px 18px
    ),
    linear-gradient(180deg, #0e1614 0%, #18241f 55%, #0a100e 100%);
}
.lp-inv-runway {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 162, 74, 0.35), transparent 70%);
  filter: blur(1px);
}
.lp-inv-doll {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 100px;
  height: 92px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 60%;
  animation: lp-inv-idle 1.8s ease-in-out infinite;
}
@keyframes lp-inv-idle {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-50%, -56%) rotate(3deg); }
}
.lp-inv-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lp-inv-layer.is-on,
.lp-inv-layer--skin {
  opacity: 1;
}
.lp-inv-layer.is-empty { opacity: 0 !important; }
.lp-inv-layer .lp-ico {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45));
}
.lp-inv-layer--trail {
  transform: translate(var(--inv-ox, -30px), var(--inv-oy, 16px)) scale(var(--inv-scale, 0.62));
  filter: blur(0.2px);
  z-index: 0;
}
.lp-inv-layer--trail.is-on { opacity: 0.7; }
.lp-inv-layer--aura {
  transform: translate(var(--inv-ox, 0), var(--inv-oy, 2px)) scale(var(--inv-scale, 1.38));
  filter: blur(1px);
  z-index: 0;
}
.lp-inv-layer--aura.is-on { opacity: 0.55; }
.lp-inv-layer--wings {
  transform: translate(var(--inv-ox, 0), var(--inv-oy, -2px)) scale(var(--inv-scale, 1.22));
  z-index: 1;
}
.lp-inv-layer--skin {
  transform: translate(var(--inv-ox, 0), var(--inv-oy, 0)) scale(var(--inv-scale, 1));
  z-index: 2;
}
.lp-inv-layer--charm {
  transform: translate(var(--inv-ox, 34px), var(--inv-oy, -20px)) scale(var(--inv-scale, 0.62));
  z-index: 3;
}
.lp-inv-layer--utils {
  inset: auto 4px 4px auto;
  width: auto;
  height: auto;
  display: flex;
  gap: 2px;
  z-index: 4;
}
.lp-inv-util .lp-ico {
  width: 22px;
  height: 22px;
}
.lp-inv-reflection {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 100px;
  height: 42px;
  transform: translateX(-50%) scaleY(-0.42);
  transform-origin: center top;
  opacity: 0.22;
  filter: blur(0.6px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}
.lp-inv-reflection .lp-inv-layer--utils { display: none; }
.lp-inv-mirror-caption {
  margin: 4px 2px 0;
  text-align: center;
  font: 600 10px/1.3 system-ui, sans-serif;
  color: rgba(232, 196, 120, 0.88);
  letter-spacing: 0.02em;
}

.lp-inv-loadout {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 0 4px;
  padding: 8px 8px 6px;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(201, 162, 74, 0.28);
  border-bottom: 0;
  background:
    linear-gradient(180deg, rgba(42, 24, 18, 0.35) 0%, rgba(16, 12, 14, 0.92) 100%);
  overflow: hidden;
}
.lp-inv-loadout-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  flex-shrink: 0;
}
.lp-inv-loadout-kicker {
  margin: 0;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8c478;
}
.lp-inv-loadout-hint {
  margin: 0;
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.45);
  text-align: right;
}
.lp-inv-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  margin: 0 0 8px;
}
.lp-inv-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid rgba(201, 162, 74, 0.4);
  border-radius: 10px;
  background: transparent;
  color: #e8c478;
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-inv-tab.is-on {
  background: #c9a24a;
  color: #2a1608;
  border-color: #e8c478;
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.35);
}
.lp-inv-loadout-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 140px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px 16px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 74, 0.45) transparent;
}
.lp-inv-empty {
  margin: 8px 4px 12px;
  text-align: center;
  color: rgba(245, 245, 245, 0.42);
  font: 500 12px/1.35 system-ui, sans-serif;
}
.lp-inv-group {
  margin: 6px 2px 2px;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 196, 120, 0.55);
}
.lp-inv-group:first-child { margin-top: 0; }
.lp-inv-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(245, 245, 245, 0.08);
  background: rgba(8, 6, 8, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.lp-inv-row.is-on {
  border-color: rgba(201, 162, 74, 0.55);
  background:
    linear-gradient(90deg, rgba(201, 162, 74, 0.16), rgba(8, 6, 8, 0.35));
  box-shadow: inset 0 0 0 1px rgba(232, 196, 120, 0.12);
}
.lp-inv-row--epic.is-on { border-color: rgba(124, 92, 255, 0.55); }
.lp-inv-row--legend.is-on { border-color: rgba(232, 196, 120, 0.75); }
.lp-inv-row--promo.is-on { border-color: rgba(46, 230, 194, 0.5); }
.lp-inv-row--rare.is-on { border-color: rgba(58, 124, 255, 0.5); }
.lp-inv-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 120, 0.28);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(255, 236, 190, 0.16), transparent 68%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.28);
}
.lp-inv-ico::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto;
  height: 58%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 10%, rgba(255, 244, 210, 0.34), transparent 72%);
}
.lp-inv-ico::after {
  content: "";
  position: absolute;
  inset: 4px;
  z-index: 0;
  border-radius: 11px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.08);
}
.lp-inv-ico .lp-ico {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}
.lp-inv-row.is-on .lp-inv-ico {
  animation: lp-inv-ico-glow 2.8s ease-in-out infinite;
}
.lp-inv-row--common .lp-inv-ico {
  border-color: rgba(200, 200, 210, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.38),
    0 0 14px rgba(180, 180, 200, 0.08);
}
.lp-inv-row--rare .lp-inv-ico {
  border-color: rgba(88, 148, 255, 0.5);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(90, 150, 255, 0.22), transparent 68%),
    linear-gradient(165deg, rgba(58, 124, 255, 0.14), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(180, 210, 255, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(58, 124, 255, 0.28);
}
.lp-inv-row--epic .lp-inv-ico {
  border-color: rgba(150, 120, 255, 0.55);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(150, 110, 255, 0.26), transparent 68%),
    linear-gradient(165deg, rgba(124, 92, 255, 0.18), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(210, 190, 255, 0.2),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(124, 92, 255, 0.32);
}
.lp-inv-row--legend .lp-inv-ico {
  border-color: rgba(232, 196, 120, 0.65);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(255, 220, 140, 0.28), transparent 68%),
    linear-gradient(165deg, rgba(201, 162, 74, 0.2), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.22),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(232, 196, 120, 0.38);
}
.lp-inv-row--promo .lp-inv-ico {
  border-color: rgba(46, 230, 194, 0.55);
  background:
    radial-gradient(ellipse 72% 58% at 50% 32%, rgba(46, 230, 194, 0.22), transparent 68%),
    linear-gradient(165deg, rgba(46, 230, 194, 0.14), rgba(10, 8, 12, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(180, 255, 230, 0.18),
    inset 0 -10px 18px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(46, 230, 194, 0.3);
}
@keyframes lp-inv-ico-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}
.lp-inv-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lp-inv-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 600 12px/1.15 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.92);
}
.lp-inv-slot {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.42);
}
.lp-inv-row.is-on .lp-inv-slot {
  color: rgba(232, 196, 120, 0.75);
}
.lp-inv-eq {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  background: transparent;
  color: #e8c478;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.lp-inv-eq:hover,
.lp-inv-eq:focus-visible {
  background: rgba(201, 162, 74, 0.18);
  border-color: #e8c478;
}
.lp-inv-eq.is-on {
  background: #c9a24a;
  color: #2a1608;
  border-color: #e8c478;
}
.lp-inv-eq:disabled {
  opacity: 0.72;
  cursor: default;
  background: rgba(201, 162, 74, 0.2);
  color: #e8c478;
}

.lp-fair-tab {
  flex: 1 0 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(201, 162, 74, 0.4);
  border-radius: 10px;
  background: transparent;
  color: #e8c478;
  font: 700 11px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lp-fair-tab.is-on {
  background: #c9a24a;
  color: #2a1608;
  border-color: #e8c478;
  box-shadow: 0 0 14px rgba(201, 162, 74, 0.35);
}
.lp-fair-tab--veu {
  border-color: rgba(124, 255, 212, 0.35);
  color: #7cffd4;
}
.lp-fair-tab--veu.is-on {
  background: linear-gradient(135deg, #1a3a34, #2ee6c2);
  color: #0a1614;
  border-color: #7cffd4;
  box-shadow: 0 0 16px rgba(46, 230, 194, 0.35);
}
.lp-fair-panel.is-veu {
  border-color: rgba(46, 230, 194, 0.35);
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(46, 230, 194, 0.14), transparent 70%),
    linear-gradient(180deg, #101816 0%, #0a0e0c 100%);
}
.lp-fair-panel.is-veu .lp-fair-awning {
  background: repeating-linear-gradient(
    90deg,
    #0d3b3a 0 18px,
    #2ee6c2 18px 36px
  );
}
.lp-fair-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 22px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
/* Confirmação de compra — overlay dentro do painel da Feirinha */
.lp-fair-confirm {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 14px max(18px, env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
  touch-action: manipulation;
}
.lp-fair-confirm[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.lp-fair-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.72);
  border-radius: 22px 22px 0 0;
}
.lp-fair-confirm-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(100%, 300px);
  padding: 22px 18px 16px;
  border: 1px solid rgba(201, 162, 74, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(155, 27, 48, 0.32), transparent 70%),
    linear-gradient(180deg, #1a161c 0%, #0e0c10 100%);
  background-clip: padding-box;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  animation: lp-fair-confirm-in 0.28s cubic-bezier(0.22, 0.68, 0.2, 1);
}
@keyframes lp-fair-confirm-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-fair-confirm-card,
  .lp-fair-confirm-pedestal { animation: none; }
}
.lp-fair-confirm-pedestal {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 22px;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 120, 0.42);
  background:
    radial-gradient(ellipse 70% 55% at 50% 28%, rgba(255, 230, 160, 0.22), transparent 70%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.1), rgba(12, 8, 14, 0.85));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -14px 24px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(201, 162, 74, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.4);
  animation: lp-fair-confirm-pedestal 3.2s ease-in-out infinite;
}
.lp-fair-confirm-pedestal::before {
  content: "";
  position: absolute;
  inset: -20% -14% auto;
  height: 60%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 244, 210, 0.4), transparent 74%);
}
.lp-fair-confirm-pedestal::after {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 0;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 74, 0.12);
}
.lp-fair-confirm-pedestal .lp-ico,
.lp-fair-confirm-pedestal svg {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  max-width: 88px;
  max-height: 88px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
@keyframes lp-fair-confirm-pedestal {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -14px 24px rgba(0, 0, 0, 0.45), 0 0 28px rgba(201, 162, 74, 0.28), 0 8px 22px rgba(0, 0, 0, 0.4); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -14px 24px rgba(0, 0, 0, 0.45), 0 0 36px rgba(232, 196, 120, 0.42), 0 8px 22px rgba(0, 0, 0, 0.4); }
}
.lp-fair-confirm-kicker {
  margin: 0;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a24a;
}
.lp-fair-confirm-name {
  margin: 0;
  font: 400 20px/1.2 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  text-align: center;
  letter-spacing: 0.02em;
}
.lp-fair-confirm-price {
  margin: 0 0 8px;
  font: 700 14px/1 system-ui, sans-serif;
  color: #e8c478;
}
.lp-fair-confirm-actions {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}
.lp-fair-confirm-actions .lp-item-btn {
  min-height: 44px;
  font-size: 12px;
}
.lp-fair-panel.is-confirming .lp-fair-body {
  overflow: hidden;
  touch-action: none;
}
.lp-fair-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lp-fair-empty {
  margin: 24px 8px;
  text-align: center;
  color: rgba(245, 245, 245, 0.45);
  font: 500 13px/1.4 system-ui, sans-serif;
}
.lp-fair-featured {
  margin: 0 0 4px;
}
.lp-fair-featured-kicker {
  margin: 0 0 8px;
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a24a;
}
.lp-fair-featured-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Não usar scrollbar-width aqui: no Chromium ele troca para a barra nativa
     (cinza/setas) e ignora ::-webkit-scrollbar carmesim do scrollbar.css. */
}
@supports not selector(::-webkit-scrollbar) {
  .lp-fair-featured-track {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb, #9B1B30) var(--scrollbar-track, #111111);
  }
}
.lp-fair-featured-track::-webkit-scrollbar {
  width: var(--scrollbar-size, 7px);
  height: var(--scrollbar-size, 7px);
}
.lp-fair-featured-track::-webkit-scrollbar-button,
.lp-fair-featured-track::-webkit-scrollbar-button:single-button,
.lp-fair-featured-track::-webkit-scrollbar-button:double-button,
.lp-fair-featured-track::-webkit-scrollbar-button:horizontal,
.lp-fair-featured-track::-webkit-scrollbar-button:horizontal:start:decrement,
.lp-fair-featured-track::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: 0 !important;
}
.lp-fair-featured-track::-webkit-scrollbar-track {
  background: var(--scrollbar-track, #111111);
  border-radius: 8px;
}
.lp-fair-featured-track::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb, #9B1B30);
  border-radius: 8px;
  border: 1px solid var(--scrollbar-track, #111111);
  background-clip: padding-box;
  min-height: 24px;
}
.lp-fair-featured-track::-webkit-scrollbar-thumb:hover,
.lp-fair-featured-track::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-hover, #C41E3A);
}
.lp-fair-featured-track::-webkit-scrollbar-corner {
  background: var(--scrollbar-track, #111111);
}
.lp-fair-featured-track .lp-item {
  flex: 0 0 min(78%, 240px);
  scroll-snap-align: start;
}
.lp-fair-featured-track .lp-item--hero {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 12px;
  padding: 14px 12px 12px;
  background:
    radial-gradient(ellipse 70% 80% at 12% 20%, rgba(201, 162, 74, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(36, 18, 22, 0.95), rgba(10, 8, 12, 0.98));
}
.lp-fair-featured-track .lp-item--hero .lp-item-name,
.lp-fair-featured-track .lp-item--hero .lp-item-flavor,
.lp-fair-featured-track .lp-item--hero .lp-item-price,
.lp-fair-featured-track .lp-item--hero .lp-item-badge {
  text-align: left;
  width: min(100%, 140px);
}
.lp-fair-featured-track .lp-item--hero .lp-item-actions {
  width: 100%;
}
.lp-fair-veu-banner {
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  padding: 14px 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(46, 230, 194, 0.35);
  background:
    radial-gradient(ellipse 60% 80% at 90% 10%, rgba(124, 255, 212, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(10, 28, 26, 0.95), rgba(8, 12, 14, 0.98));
}
.lp-fair-veu-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(46, 230, 194, 0.2), transparent 65%);
  pointer-events: none;
  animation: lp-veu-glow 4.5s ease-in-out infinite;
}
@keyframes lp-veu-glow {
  0%, 100% { opacity: 0.55; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}
.lp-fair-veu-banner h3 {
  margin: 0 0 6px;
  font: 400 20px/1.1 "Russo One", system-ui, sans-serif;
  color: #f5fffb;
}
.lp-fair-veu-banner p {
  margin: 0;
  max-width: 34em;
  font: 400 12px/1.4 system-ui, sans-serif;
  color: rgba(220, 245, 238, 0.7);
}
.lp-fair-section-count {
  flex: 0 0 auto !important;
  height: auto !important;
  background: none !important;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 74, 0.35);
  font: 700 9px/1 system-ui, sans-serif;
  color: #e8c478;
  letter-spacing: 0.06em;
}
.lp-fair-hero {
  position: relative;
  margin-bottom: 2px;
}
.lp-fair-hero .lp-item--hero {
  grid-column: 1 / -1;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
  padding: 16px 14px 14px;
  text-align: left;
  background:
    radial-gradient(ellipse 70% 80% at 12% 20%, rgba(201, 162, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 80%, rgba(155, 27, 48, 0.28), transparent 60%),
    linear-gradient(145deg, rgba(36, 18, 22, 0.95), rgba(10, 8, 12, 0.98));
  border-color: rgba(232, 196, 120, 0.55);
  box-shadow:
    0 0 0 1px rgba(201, 162, 74, 0.12) inset,
    0 12px 28px rgba(0, 0, 0, 0.35);
}
.lp-fair-hero .lp-item--hero .lp-pedestal {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}
.lp-fair-hero .lp-item--hero .lp-item-name,
.lp-fair-hero .lp-item--hero .lp-item-flavor,
.lp-fair-hero .lp-item--hero .lp-item-price,
.lp-fair-hero .lp-item--hero .lp-item-badge {
  text-align: left;
  width: min(100%, 220px);
}
.lp-fair-hero .lp-item--hero .lp-item-actions {
  width: 100%;
  max-width: 280px;
}
.lp-fair-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 0 8px;
  background: linear-gradient(180deg, rgba(12, 11, 14, 0.96) 60%, rgba(12, 11, 14, 0));
}
.lp-fair-section-head h3 {
  margin: 0;
  font: 700 11px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8c478;
  white-space: nowrap;
}
.lp-fair-section-head span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 162, 74, 0.55), transparent 90%);
}
.lp-fair-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lp-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px 10px;
  overflow: hidden;
  border: 1px solid rgba(155, 27, 48, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
  animation: lp-item-in 0.48s cubic-bezier(0.22, 0.68, 0.2, 1) both;
  animation-delay: var(--lp-in, 0ms);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.lp-item:active { transform: scale(0.98); }
.lp-item.is-static {
  animation: none !important;
}
.lp-item.is-static.lp-item--legend,
.lp-item.is-static.lp-item--legendary {
  animation: lp-rare-pulse 2.8s ease-in-out infinite !important;
}
@media (hover: hover) {
  .lp-item:hover {
    transform: translateY(-3px);
    border-color: rgba(232, 196, 120, 0.5);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  }
}
@keyframes lp-item-in {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-item { animation: none; }
  .lp-fair-body { scroll-behavior: auto; }
}
.lp-item-spark {
  pointer-events: none;
  position: absolute;
  inset: -40%;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 231, 168, 0.35), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(196, 30, 58, 0.25), transparent 32%);
  mix-blend-mode: screen;
}
.lp-item--rare .lp-item-spark,
.lp-item--epic .lp-item-spark,
.lp-item--legend .lp-item-spark,
.lp-item--legendary .lp-item-spark,
.lp-item--promo .lp-item-spark {
  opacity: 1;
  animation: lp-spark-drift 5.5s ease-in-out infinite;
}
@keyframes lp-spark-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4%, -3%) rotate(4deg); }
}
.lp-item--rare {
  border-color: rgba(90, 160, 220, 0.45);
  box-shadow: 0 0 16px rgba(70, 140, 200, 0.12);
}
.lp-item--epic {
  border-color: rgba(196, 30, 58, 0.55);
  box-shadow: 0 0 18px rgba(196, 30, 58, 0.18);
}
.lp-item--legendary,
.lp-item--legend {
  border-color: rgba(232, 196, 120, 0.72);
  box-shadow: 0 0 22px rgba(201, 162, 74, 0.28);
  animation:
    lp-item-in 0.48s cubic-bezier(0.22, 0.68, 0.2, 1) both,
    lp-rare-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--lp-in, 0ms), 0.5s;
}
.lp-item--promo {
  border-color: rgba(46, 230, 194, 0.5);
  box-shadow: 0 0 18px rgba(46, 230, 194, 0.16);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(46, 230, 194, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2));
}
@keyframes lp-rare-pulse {
  0%, 100% { box-shadow: 0 0 16px rgba(201, 162, 74, 0.2); }
  50% { box-shadow: 0 0 28px rgba(232, 196, 120, 0.42); }
}
.lp-item.is-equipped {
  outline: 1px solid rgba(232, 196, 120, 0.55);
}
.lp-item::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  left: -40%;
  width: 36%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 248, 232, 0.14), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.lp-item--epic::after,
.lp-item--legend::after,
.lp-item--legendary::after {
  opacity: 1;
  animation: lp-card-shimmer 3.4s ease-in-out infinite;
}
@keyframes lp-card-shimmer {
  0% { left: -45%; }
  55%, 100% { left: 120%; }
}
.lp-pedestal {
  position: relative;
  width: 88px;
  height: 92px;
  display: grid;
  place-items: center;
}
.lp-pedestal::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(201, 162, 74, 0.45), rgba(20, 10, 12, 0.9) 70%);
  filter: blur(0.4px);
}
.lp-pedestal::before {
  content: "";
  position: absolute;
  inset: 8px 14px auto;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 220, 140, 0.2), transparent 72%);
  pointer-events: none;
}
.lp-ico {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  transform-style: preserve-3d;
}
.lp-item-name {
  font: 700 12px/1.2 system-ui, sans-serif;
  text-align: center;
  color: #fff8e8;
}
.lp-item-flavor {
  font: 400 10px/1.35 system-ui, sans-serif;
  text-align: center;
  color: rgba(245, 245, 245, 0.55);
  min-height: 2.6em;
}
.lp-item-price {
  font: 700 12px/1 system-ui, sans-serif;
  color: #d4b56a;
  letter-spacing: 0.02em;
}
.lp-item-actions {
  display: flex;
  gap: 6px;
  width: 100%;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}
.lp-item-btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 162, 74, 0.45);
  border-radius: 9px;
  background: #9B1B30;
  color: #fff8e8;
  font: 700 11px/1 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.lp-item-btn:not(:disabled):active { transform: scale(0.96); }
.lp-item-btn:not(:disabled):hover { filter: brightness(1.08); }
.lp-item-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.lp-item-btn.is-ghost {
  background: transparent;
  color: #e8c478;
}
.lp-item-btn.is-on {
  background: #c9a24a;
  color: #2a1608;
  border-color: #e8c478;
}
.lp-item-btn--promo {
  background: linear-gradient(135deg, #0d3b3a, #2ee6c2);
  color: #061210;
  border-color: #7cffd4;
}
.lp-item--legend {
  border-color: rgba(232, 196, 120, 0.72);
}
.lp-item-badge {
  margin: 0;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a24a;
}
.lp-item-badge--common { color: rgba(220, 220, 220, 0.7); }
.lp-item-badge--rare { color: #7eb8e8; }
.lp-item-badge--epic { color: #ff6b7a; }
.lp-item-badge--legend,
.lp-item-badge--legendary {
  color: #ffe7a8;
  text-shadow: 0 0 8px rgba(232, 196, 120, 0.55);
}
.lp-item-badge--promo {
  color: #7cffd4;
  text-shadow: 0 0 8px rgba(46, 230, 194, 0.45);
}

.lp-ico-phoenix {
  animation: lp-floaty 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232, 140, 40, 0.55));
}
.lp-ico-peacock {
  animation: lp-floaty 2.6s ease-in-out infinite;
}
.lp-ico-peacock .lp-sheen {
  animation: lp-sheen 2.2s linear infinite;
}
.lp-ico-bills { animation: lp-breathe 2.2s ease-in-out infinite; }
.lp-ico-clover { animation: lp-spin-y 6s linear infinite; }
.lp-ico-magnet { animation: lp-floaty 2s ease-in-out infinite; }
.lp-ico-egg { animation: lp-egg 3.2s ease-in-out infinite; }
.lp-ico-flappy { animation: lp-floaty 2.5s ease-in-out infinite; }
.lp-ico-tiao { animation: lp-floaty 2.3s ease-in-out infinite; }
.lp-ico-pira {
  animation: lp-pira 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 61, 110, 0.55));
}
.lp-ico-betinho { animation: lp-egg 2.8s ease-in-out infinite; }
.lp-ico-cemao { animation: lp-floaty 2s ease-in-out infinite; }
.lp-ico-ovni { animation: lp-ovni 2.4s ease-in-out infinite; }
.lp-ico-barao {
  animation: lp-breathe 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232, 196, 120, 0.45));
}
.lp-ico-storm,
.lp-ico-ticket,
.lp-ico-velvet,
.lp-ico-spark,
.lp-ico-pix,
.lp-ico-smoke,
.lp-ico-ribbon,
.lp-ico-dona,
.lp-ico-pixote,
.lp-ico-ze,
.lp-ico-nina,
.lp-ico-madre,
.lp-ico-coronel,
.lp-ico-chico,
.lp-ico-luna,
.lp-ico-ficha,
.lp-ico-carta,
.lp-ico-eco,
.lp-ico-placard,
.lp-ico-lente,
.lp-ico-dado,
.lp-ico-sussurro,
.lp-ico-relogio,
.lp-ico-cubo,
.lp-ico-frag,
.lp-ico-mascara,
.lp-ico-talisma {
  animation: lp-floaty 2.4s ease-in-out infinite;
}
.lp-ico-velvet,
.lp-ico-talisma,
.lp-ico-frag,
.lp-ico-mascara {
  filter: drop-shadow(0 0 8px rgba(232, 196, 120, 0.45));
}
.lp-ico-pix,
.lp-ico-cubo,
.lp-ico-nina {
  filter: drop-shadow(0 0 8px rgba(46, 230, 194, 0.45));
}
.lp-ico-bat {
  animation: lp-floaty 2.1s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(155, 27, 48, 0.45));
}
.lp-ico-sail {
  animation: lp-breathe 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(201, 162, 74, 0.4));
}
.lp-ico-neon {
  animation: lp-floaty 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.55));
}
.lp-ico-confetti { animation: lp-egg 2.4s ease-in-out infinite; }
.lp-ico-halo {
  animation: lp-breathe 3s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(232, 196, 120, 0.5));
}
.lp-ico-void {
  animation: lp-spin-y 8s linear infinite;
  filter: drop-shadow(0 0 10px rgba(201, 162, 74, 0.35));
}
.lp-ico-horse { animation: lp-floaty 2.2s ease-in-out infinite; }
.lp-ico-vault {
  animation: lp-breathe 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(201, 162, 74, 0.4));
}
.lp-ico-dona { animation: lp-floaty 2.4s ease-in-out infinite; }
.lp-ico-galo {
  animation: lp-pira 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(232, 196, 120, 0.4));
}
.lp-ico-mafioso {
  animation: lp-breathe 2.7s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(201, 162, 74, 0.35));
}
@keyframes lp-pira {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-5px) rotate(4deg) scale(1.04); }
}
@keyframes lp-ovni {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-6px) rotate(6deg); }
}
@keyframes lp-floaty {
  0%, 100% { transform: translateY(0) rotateZ(-4deg); }
  50% { transform: translateY(-5px) rotateZ(4deg); }
}
@keyframes lp-breathe {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.06) rotate(2deg); }
}
@keyframes lp-spin-y {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}
@keyframes lp-sheen {
  0% { transform: translateX(-120%); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes lp-egg {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.04) rotate(-3deg); }
  86% { transform: scale(1.02) rotate(3deg); }
}

.lp-planet-btn {
  gap: 6px;
  cursor: pointer;
}
.lp-planet-btn-txt {
  white-space: nowrap;
  color: #ffe7a8;
  font: 400 12px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.07em;
  -webkit-text-stroke: 0.5px #3a0a12;
  paint-order: stroke fill;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 6px rgba(255, 214, 120, 0.68),
    0 0 12px rgba(196, 30, 58, 0.38),
    0 2px 0 #2a080e;
}
.lp-planet-btn:hover { border-color: #e8c478; }
.lp-planet-btn:hover .lp-planet-btn-txt {
  color: #fff3c4;
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 8px rgba(255, 214, 120, 0.85),
    0 0 16px rgba(196, 30, 58, 0.5),
    0 2px 0 #2a080e;
}
.lp-planet-orb {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff8e8, #9B1B30 42%, #4e1018);
  box-shadow: 0 0 8px rgba(196, 30, 58, 0.45);
  overflow: hidden;
}
.lp-planet-orb--logo {
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: 0 0 6px rgba(var(--lp-theme-rgb), 0.35);
}
.lp-planet-orb--logo .lp-planet-logo {
  width: 18px;
  height: 18px;
  display: block;
}
body.lp-intro-done .lp-planet-btn:not([hidden]) { display: flex; }

.lp-contract {
  position: relative;
  width: 100%;
  margin-top: 2px;
  padding: 8px 10px 9px;
  overflow: hidden;
  pointer-events: auto;
  touch-action: manipulation;
  border: 1px solid color-mix(in srgb, var(--lp-theme) 55%, #c9a24a 45%);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 90% 60% at 0% 0%, rgba(var(--lp-theme-rgb), 0.28), transparent 65%),
    linear-gradient(165deg, color-mix(in srgb, var(--lp-theme-mid) 55%, #161018) 0%, #0c0b10 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transform: perspective(220px) rotateX(4deg);
  opacity: var(--lp-mission-opacity, 1);
}
.lp-contract[hidden] { display: none; }
.lp-contract-aura {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}
.lp-contract > :not(.lp-contract-aura) {
  position: relative;
  z-index: 1;
}
.lp-contract.is-enter {
  animation: lp-contract-enter 0.55s ease both;
}
@keyframes lp-contract-enter {
  0% { opacity: 0; transform: perspective(220px) rotateX(10deg) translateY(8px) scale(0.96); }
  100% { opacity: var(--lp-mission-opacity, 1); transform: perspective(220px) rotateX(4deg) translateY(0) scale(1); }
}
.lp-contract-kicker {
  margin: 0 0 4px;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme) 40%, #ffe7a8 60%);
}
.lp-contract-title {
  margin: 0 0 4px;
  font: 700 14px/1.15 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.lp-contract-text {
  margin: 0 0 7px;
  font: 500 11px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.88);
}
.lp-contract-bar {
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.42);
  overflow: visible;
  margin-bottom: 8px;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 calc(3px + (var(--lp-bar-pct, 0) * 0.08px))
      color-mix(in srgb, var(--lp-theme-mid) 48%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: lp-bar-track-pulse 2.4s ease-in-out infinite;
}
.lp-contract-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(255, 255, 255, 0.03) 10px 11px
  );
  pointer-events: none;
  opacity: 0.7;
  z-index: 0;
}
.lp-contract-bar > .lp-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform-origin: left center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 42%),
    linear-gradient(90deg, var(--lp-theme-mid), color-mix(in srgb, var(--lp-theme) 30%, #ffe7a8 70%));
  box-shadow:
    0 0 10px color-mix(in srgb, var(--lp-theme-mid) 60%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: lp-bar-fill-pulse 1.85s ease-in-out infinite;
}
.lp-contract-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 600 10px/1 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.62);
}
.lp-contract-pay {
  color: #ffe7a8;
  letter-spacing: 0.04em;
}
.lp-contract.is-done .lp-contract-pay { color: #b8ff80; }
.lp-contract.is-clickable { cursor: pointer; }
.lp-contract-hint {
  margin: 6px 0 0;
  font: 600 9px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 231, 168, 0.55);
}
.lp-contract.is-paid {
  animation: lp-contract-ping 0.55s ease;
}
.lp-contract.is-new {
  animation: lp-contract-new 0.7s cubic-bezier(0.22, 0.68, 0.2, 1);
}
@keyframes lp-contract-ping {
  0% { transform: perspective(220px) rotateX(4deg) scale(1); filter: brightness(1); }
  40% { transform: perspective(220px) rotateX(4deg) scale(1.05); filter: brightness(1.25); }
  100% { transform: perspective(220px) rotateX(4deg) scale(1); filter: none; }
}
@keyframes lp-contract-new {
  0% { transform: perspective(220px) rotateX(4deg) scale(0.92); filter: brightness(1.4); }
  45% { transform: perspective(220px) rotateX(4deg) scale(1.06); filter: brightness(1.18); }
  100% { transform: perspective(220px) rotateX(4deg) scale(1); filter: none; }
}

/* Idle / entrada por planeta — mid/cream/deep, sem neon gritante */
#wrap[data-planet="classic"] .lp-contract-aura {
  background: radial-gradient(circle at 30% 20%, rgba(201, 162, 74, 0.28), transparent 55%);
  animation: lp-idle-classic 2.8s ease-in-out infinite;
}
#wrap[data-planet="neon"] .lp-contract-aura {
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 5px,
      rgba(255, 232, 186, 0.07) 5px 6px
    );
  animation: lp-idle-neon 2.4s linear infinite;
  opacity: 0.4;
}
#wrap[data-planet="magma"] .lp-contract-aura {
  background:
    radial-gradient(circle at 20% 80%, rgba(138, 44, 0, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(255, 179, 71, 0.18), transparent 40%);
  animation: lp-idle-magma 1.8s ease-in-out infinite;
}
#wrap[data-planet="frost"] .lp-contract-aura {
  background:
    linear-gradient(135deg, rgba(184, 255, 255, 0.16), transparent 40%, rgba(0, 122, 136, 0.22));
  animation: lp-idle-frost 3.2s ease-in-out infinite;
}
#wrap[data-planet="jungle"] .lp-contract-aura {
  background:
    radial-gradient(ellipse at 15% 60%, rgba(184, 255, 128, 0.2), transparent 42%),
    radial-gradient(ellipse at 85% 20%, rgba(30, 122, 12, 0.35), transparent 48%);
  animation: lp-idle-jungle 2.6s ease-in-out infinite;
}
#wrap[data-planet="void"] .lp-contract-aura {
  background:
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(92, 0, 153, 0.28) 42%, transparent 58%);
  animation: lp-idle-void 2.2s ease-in-out infinite;
}
#wrap[data-planet="golden"] .lp-contract-aura {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 231, 168, 0.32), transparent 50%),
    radial-gradient(circle at 70% 90%, rgba(138, 104, 0, 0.3), transparent 45%);
  animation: lp-idle-golden 2.5s ease-in-out infinite;
}
@keyframes lp-idle-classic {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.04); }
}
@keyframes lp-idle-neon {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}
@keyframes lp-idle-magma {
  0%, 100% { opacity: 0.45; filter: brightness(1); }
  50% { opacity: 0.75; filter: brightness(1.12); }
}
@keyframes lp-idle-frost {
  0%, 100% { opacity: 0.35; transform: rotate(0deg); }
  50% { opacity: 0.65; transform: rotate(2deg); }
}
@keyframes lp-idle-jungle {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(3px); }
}
@keyframes lp-idle-void {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 0.7; transform: scale(1.08); }
}
@keyframes lp-idle-golden {
  0%, 100% { opacity: 0.4; filter: saturate(1); }
  50% { opacity: 0.75; filter: saturate(1.15); }
}

/* Índice de missão ao vivo (run) — topo esquerdo (sob Viagem) */
.lp-mission-run {
  position: absolute;
  left: 8px;
  top: max(10px, env(safe-area-inset-top, 0px));
  bottom: auto;
  z-index: 35;
  width: min(46%, 158px);
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  opacity: var(--lp-mission-opacity, 1);
}
body.has-hp-player.lp-intro-done:not(.hp-stowed) .lp-mission-run {
  top: 118px;
}
.lp-mission-run[hidden] { display: none; }
.lp-mission-run.is-new .lp-mission-run-item {
  animation: lp-mission-new 0.65s cubic-bezier(0.22, 0.68, 0.2, 1);
}
.lp-mission-run.is-combo .lp-mission-run-item,
.lp-contract.is-combo {
  animation: lp-mission-combo 0.7s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.lp-mission-run.is-lap-reset .lp-mission-run-item,
.lp-contract.is-lap-reset {
  animation: lp-mission-lap 0.85s cubic-bezier(0.22, 0.8, 0.2, 1);
}
@keyframes lp-mission-new {
  0% { transform: translateY(6px) scale(0.92); opacity: 0.4; }
  55% { transform: translateY(-2px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes lp-mission-combo {
  0% { filter: brightness(1); box-shadow: 0 0 0 rgba(255, 231, 168, 0); }
  35% { filter: brightness(1.35); box-shadow: 0 0 18px rgba(255, 214, 120, 0.45); }
  100% { filter: none; box-shadow: none; }
}
@keyframes lp-mission-lap {
  0% { transform: scale(0.94) rotate(-0.6deg); filter: brightness(1.4); }
  40% { transform: scale(1.05) rotate(0.4deg); filter: brightness(1.2); }
  100% { transform: none; filter: none; }
}
.lp-mission-run-index {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-mission-run-item {
  position: relative;
  overflow: hidden;
  padding: 7px 9px 8px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--lp-theme-mid) 62%, #c9a24a 38%);
  background:
    radial-gradient(ellipse 85% 70% at 0% 0%, rgba(var(--lp-theme-rgb), 0.22), transparent 62%),
    linear-gradient(165deg, color-mix(in srgb, var(--lp-theme-mid) 48%, #141018) 0%, #0b0a0f 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.32);
}
.lp-mission-run-kicker {
  margin: 0 0 2px;
  font: 700 8px/1 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme-mid) 35%, #ffe7a8 65%);
}
.lp-mission-run-title {
  margin: 0 0 3px;
  font: 700 12px/1.1 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.lp-mission-run-legend {
  margin: 0 0 6px;
  font: 500 9px/1.3 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.78);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
}
.lp-mission-run-bar {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 55%),
    rgba(0, 0, 0, 0.45);
  overflow: visible;
  margin-bottom: 6px;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 calc(3px + (var(--lp-bar-pct, 0) * 0.09px))
      color-mix(in srgb, var(--lp-theme-mid) 52%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: lp-bar-track-pulse 2.2s ease-in-out infinite;
}
.lp-mission-run-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 8px,
    rgba(255, 255, 255, 0.035) 8px 9px
  );
  pointer-events: none;
  z-index: 0;
}
.lp-mission-run-bar > .lp-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform-origin: left center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(90deg, var(--lp-theme-deep), color-mix(in srgb, var(--lp-theme-mid) 35%, #ffe7a8 65%));
  box-shadow:
    0 0 9px color-mix(in srgb, var(--lp-theme-mid) 65%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  animation: lp-bar-fill-pulse 2.4s ease-in-out infinite;
}
.lp-mission-run-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  font: 600 9px/1 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.62);
}
.lp-mission-run-pay { color: #ffe7a8; }
.lp-mission-run.is-done .lp-mission-run-pay { color: #b8ff80; }
.lp-mission-run.is-cleared .lp-mission-run-item {
  animation: lp-mission-cleared 0.55s ease;
}
@keyframes lp-mission-cleared {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.045); filter: brightness(1.35); }
  100% { transform: scale(1); filter: none; }
}

/* Detalhe visual do índice por planeta */
#wrap[data-planet="classic"] .lp-mission-run-item {
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.14),
    0 0 0 1px rgba(155, 27, 48, 0.2),
    0 3px 10px rgba(0, 0, 0, 0.32);
  animation: lp-run-classic 2.8s ease-in-out infinite;
}
#wrap[data-planet="neon"] .lp-mission-run-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 4px, rgba(255, 232, 186, 0.06) 4px 5px);
  animation: lp-idle-neon 2s linear infinite;
  pointer-events: none;
  opacity: 0.55;
}
#wrap[data-planet="magma"] .lp-mission-run-item {
  animation: lp-run-magma 1.6s ease-in-out infinite;
}
#wrap[data-planet="frost"] .lp-mission-run-item {
  border-color: color-mix(in srgb, var(--lp-theme-mid) 50%, #b8ffff 50%);
  animation: lp-run-frost 3s ease-in-out infinite;
}
#wrap[data-planet="jungle"] .lp-mission-run-item {
  animation: lp-run-jungle 2.4s ease-in-out infinite;
}
#wrap[data-planet="void"] .lp-mission-run-item {
  animation: lp-run-void 2.2s ease-in-out infinite;
}
#wrap[data-planet="golden"] .lp-mission-run-item {
  animation: lp-run-golden 2.6s ease-in-out infinite;
}
@keyframes lp-run-classic {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}
@keyframes lp-run-magma {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 179, 71, 0.12), 0 3px 10px rgba(0, 0, 0, 0.32); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 179, 71, 0.28), 0 3px 12px rgba(74, 24, 0, 0.45); }
}
@keyframes lp-run-frost {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.08) saturate(1.1); }
}
@keyframes lp-run-jungle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
@keyframes lp-run-void {
  0%, 100% { border-color: color-mix(in srgb, var(--lp-theme-mid) 55%, #c9a0ff 45%); }
  50% { border-color: color-mix(in srgb, var(--lp-theme-deep) 40%, #ffe7a8 60%); }
}
@keyframes lp-run-golden {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1); }
}

.lp-death-fx {
  position: absolute;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  overflow: hidden;
}
.lp-death-fx:not(.is-on) { display: none; }
.lp-death-fx-flash,
.lp-death-fx-ring,
.lp-death-fx-scan,
.lp-death-fx-shards {
  position: absolute;
  pointer-events: none;
}
.lp-death-fx-flash {
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.55), transparent 62%);
  animation: lp-death-flash 0.55s ease-out both;
}
.lp-death-fx-ring {
  left: 50%;
  top: 42%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 231, 168, 0.55);
  opacity: 0;
  animation: lp-death-ring 0.7s ease-out both;
}
.lp-death-fx-ring--delay { animation-delay: 0.1s; }
.lp-death-fx-scan {
  inset: 0;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(255, 255, 255, 0.04) 3px 4px
  );
}
.lp-death-fx-shards {
  inset: 0;
  opacity: 0;
}

/* feathers */
.lp-death-fx--feathers .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(255, 245, 230, 0.5), transparent 65%);
}
.lp-death-fx--feathers .lp-death-fx-ring {
  border-color: rgba(245, 235, 210, 0.5);
}

/* glitch */
.lp-death-fx--glitch .lp-death-fx-flash {
  background:
    linear-gradient(90deg, rgba(255, 79, 216, 0.28), transparent 40%, rgba(124, 255, 212, 0.28)),
    radial-gradient(circle at 50% 45%, rgba(124, 255, 212, 0.25), transparent 60%);
  animation: lp-death-flash 0.45s steps(2, end) both;
}
.lp-death-fx--glitch .lp-death-fx-scan {
  opacity: 1;
  animation: lp-death-scan 0.55s linear both;
  mix-blend-mode: screen;
}
.lp-death-fx--glitch .lp-death-fx-ring {
  border-color: #7cffd4;
  border-radius: 2px;
}

/* crimson */
.lp-death-fx--crimson .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(196, 30, 58, 0.72), rgba(155, 27, 48, 0.2) 55%, transparent 72%);
  animation: lp-death-flash 0.65s ease-out both;
}
.lp-death-fx--crimson .lp-death-fx-ring {
  border-color: rgba(232, 90, 107, 0.7);
  box-shadow: 0 0 24px rgba(196, 30, 58, 0.45);
}

/* chips */
.lp-death-fx--chips .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(255, 231, 168, 0.4), transparent 60%);
}
.lp-death-fx--chips .lp-death-fx-ring {
  border-color: rgba(201, 162, 74, 0.65);
  border-style: dashed;
}

/* freeze */
.lp-death-fx--freeze .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(190, 230, 255, 0.55), rgba(120, 180, 220, 0.15) 50%, transparent 70%);
}
.lp-death-fx--freeze .lp-death-fx-ring {
  border-color: rgba(200, 235, 255, 0.75);
  border-radius: 4px;
  animation: lp-death-shatter 0.75s ease-out both;
}
.lp-death-fx--freeze .lp-death-fx-shards {
  opacity: 1;
  background:
    linear-gradient(115deg, transparent 40%, rgba(200, 235, 255, 0.35) 42%, transparent 44%),
    linear-gradient(35deg, transparent 55%, rgba(255, 255, 255, 0.28) 57%, transparent 59%),
    linear-gradient(160deg, transparent 48%, rgba(160, 210, 255, 0.3) 50%, transparent 52%);
  animation: lp-death-shards 0.7s ease-out both;
}

/* neon */
.lp-death-fx--neon .lp-death-fx-flash {
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 255, 212, 0.45), transparent 55%),
    linear-gradient(180deg, rgba(255, 79, 216, 0.2), transparent 60%);
  animation: lp-death-neon 0.75s ease-out both;
}
.lp-death-fx--neon .lp-death-fx-ring {
  border-color: #7cffd4;
  box-shadow: 0 0 18px rgba(124, 255, 212, 0.55), 0 0 36px rgba(255, 79, 216, 0.25);
}
.lp-death-fx--neon .lp-death-fx-scan {
  opacity: 1;
  background: linear-gradient(180deg, transparent, rgba(124, 255, 212, 0.25), transparent);
  animation: lp-death-neon-scan 0.7s ease-out both;
}

/* gold */
.lp-death-fx--gold .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(255, 215, 120, 0.55), rgba(201, 162, 74, 0.18) 50%, transparent 70%);
}
.lp-death-fx--gold .lp-death-fx-ring {
  border-color: rgba(255, 231, 168, 0.7);
  box-shadow: 0 0 20px rgba(201, 162, 74, 0.4);
}

/* smash */
.lp-death-fx--smash .lp-death-fx-flash {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.7), rgba(196, 30, 58, 0.25) 45%, transparent 70%);
  animation: lp-death-flash 0.4s ease-out both;
}
.lp-death-fx--smash .lp-death-fx-ring {
  border-width: 3px;
  border-color: rgba(245, 245, 245, 0.65);
  animation: lp-death-ring 0.55s cubic-bezier(0.15, 0.85, 0.35, 1) both;
}

.wrap.is-death-shake {
  animation: lp-death-shake 0.48s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.wrap.is-death-glitch #game {
  animation: lp-death-glitch-shift 0.5s steps(2, end) both;
}

@keyframes lp-death-flash {
  0% { opacity: 0.95; }
  100% { opacity: 0; }
}
@keyframes lp-death-ring {
  0% { opacity: 0.9; transform: scale(0.35); }
  100% { opacity: 0; transform: scale(3.2); }
}
@keyframes lp-death-scan {
  0% { opacity: 0.7; transform: translateY(-8%); }
  100% { opacity: 0; transform: translateY(12%); }
}
@keyframes lp-death-shatter {
  0% { opacity: 0.95; transform: scale(0.4) rotate(0deg); }
  55% { opacity: 0.55; transform: scale(1.6) rotate(8deg); }
  100% { opacity: 0; transform: scale(2.6) rotate(-4deg); }
}
@keyframes lp-death-shards {
  0% { opacity: 0.85; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; clip-path: inset(8% 12% 10% 14%); }
}
@keyframes lp-death-neon {
  0% { opacity: 1; filter: brightness(1.4); }
  40% { opacity: 0.7; filter: brightness(1.1) hue-rotate(20deg); }
  100% { opacity: 0; filter: brightness(0.8) hue-rotate(-10deg); }
}
@keyframes lp-death-neon-scan {
  0% { opacity: 0.8; transform: translateY(-30%) scaleY(0.4); }
  100% { opacity: 0; transform: translateY(40%) scaleY(1.2); }
}
@keyframes lp-death-shake {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-7px, 3px); }
  24% { transform: translate(6px, -4px); }
  36% { transform: translate(-5px, -2px); }
  48% { transform: translate(5px, 3px); }
  60% { transform: translate(-3px, 2px); }
  72% { transform: translate(2px, -1px); }
}
@keyframes lp-death-glitch-shift {
  0%, 100% { transform: translate(0, 0); filter: none; }
  20% { transform: translate(-3px, 1px); filter: hue-rotate(40deg); }
  40% { transform: translate(3px, -2px); filter: hue-rotate(-30deg); }
  60% { transform: translate(-2px, 0); filter: saturate(1.4); }
  80% { transform: translate(2px, 1px); filter: none; }
}


  position: absolute;
  left: 0;
  bottom: 0;
  width: 180px;
  height: 180px;
  z-index: 36;
  pointer-events: none;
  overflow: visible;
}
.lp-mission-fx:not(.is-on) { display: none; }
.lp-mission-fx-burst,
.lp-mission-fx-ring,
.lp-mission-fx-flash,
.lp-mission-fx-p {
  position: absolute;
  pointer-events: none;
}
.lp-mission-fx-flash {
  left: 24px;
  bottom: 36px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 231, 168, 0.55), transparent 70%);
  animation: lp-fx-flash 0.4s ease-out both;
}
.lp-mission-fx-burst {
  left: 28px;
  bottom: 40px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lp-theme-mid) 55%, #ffe7a8 45%), transparent 70%);
  animation: lp-fx-burst 0.7s ease-out both;
}
.lp-mission-fx-ring {
  left: 20px;
  bottom: 32px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--lp-theme-mid) 50%, #ffe7a8 50%);
  opacity: 0;
  animation: lp-fx-ring 0.85s ease-out both;
}
.lp-mission-fx-ring--delay { animation-delay: 0.12s; }
.lp-mission-fx-ring--wide {
  left: 8px;
  bottom: 20px;
  width: 104px;
  height: 104px;
  border-width: 1.5px;
  animation-duration: 1.05s;
  animation-delay: 0.06s;
}
.lp-mission-fx--combo .lp-mission-fx-burst {
  background: radial-gradient(circle, rgba(255, 214, 120, 0.7), transparent 72%);
}
.lp-mission-fx--combo .lp-mission-fx-p {
  background: #ffe7a8;
  box-shadow: 0 0 8px rgba(255, 214, 120, 0.7);
}
.lp-mission-fx--lap .lp-mission-fx-burst {
  background: radial-gradient(circle, rgba(184, 255, 128, 0.55), rgba(255, 231, 168, 0.35), transparent 72%);
}
.lp-mission-fx--lap .lp-mission-fx-ring {
  border-color: color-mix(in srgb, #b8ff80 55%, #ffe7a8 45%);
}
.lp-mission-fx-p {
  left: 56px;
  bottom: 68px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lp-theme-mid) 45%, #ffe7a8 55%);
  opacity: 0;
  animation: lp-fx-spark 0.85s ease-out both;
  animation-delay: calc(var(--i) * 0.03s);
}
.lp-mission-fx-p[style*="--i:0"] { --dx: 0px; --dy: -48px; }
.lp-mission-fx-p[style*="--i:1"] { --dx: 34px; --dy: -34px; }
.lp-mission-fx-p[style*="--i:2"] { --dx: 48px; --dy: 0px; }
.lp-mission-fx-p[style*="--i:3"] { --dx: 34px; --dy: 34px; }
.lp-mission-fx-p[style*="--i:4"] { --dx: 0px; --dy: 48px; }
.lp-mission-fx-p[style*="--i:5"] { --dx: -34px; --dy: 34px; }
.lp-mission-fx-p[style*="--i:6"] { --dx: -48px; --dy: 0px; }
.lp-mission-fx-p[style*="--i:7"] { --dx: -34px; --dy: -34px; }
@keyframes lp-fx-flash {
  0% { opacity: 0.9; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.4); }
}
@keyframes lp-fx-burst {
  0% { opacity: 0.85; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes lp-fx-ring {
  0% { opacity: 0.75; transform: scale(0.45); }
  100% { opacity: 0; transform: scale(1.55); }
}
@keyframes lp-fx-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -40px)) scale(0.4); }
}

/* Variantes de celebração (cores mid/cream/deep) */
.lp-mission-fx--classic .lp-mission-fx-burst {
  background: radial-gradient(circle, rgba(155, 27, 48, 0.55), rgba(201, 162, 74, 0.35), transparent 72%);
}
.lp-mission-fx--classic .lp-mission-fx-p {
  background: #c9a24a;
  box-shadow: 0 0 6px rgba(155, 27, 48, 0.5);
}
.lp-mission-fx--neon .lp-mission-fx-burst {
  background: linear-gradient(180deg, transparent, rgba(107, 0, 63, 0.45), transparent);
  border-radius: 8px;
  animation: lp-fx-scan 0.7s ease-out both;
}
.lp-mission-fx--neon .lp-mission-fx-p {
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: #ffe7a8;
}
@keyframes lp-fx-scan {
  0% { opacity: 0.8; transform: scaleY(0.2) translateY(20px); }
  100% { opacity: 0; transform: scaleY(1.4) translateY(-30px); }
}
.lp-mission-fx--magma .lp-mission-fx-p {
  width: 5px;
  height: 8px;
  border-radius: 40% 40% 20% 20%;
  background: linear-gradient(180deg, #ffe7a8, #8a2c00);
  animation: lp-fx-ember 0.9s ease-out both;
  animation-delay: calc(var(--i) * 0.04s);
}
@keyframes lp-fx-ember {
  0% { opacity: 1; transform: translate(calc((var(--i) - 3.5) * 8px), 0) scale(1); }
  100% { opacity: 0; transform: translate(calc((var(--i) - 3.5) * 10px), -56px) scale(0.3); }
}
.lp-mission-fx--frost .lp-mission-fx-ring {
  border-color: color-mix(in srgb, #007a88 55%, #b8ffff 45%);
  border-radius: 28%;
  transform: rotate(18deg);
}
.lp-mission-fx--frost .lp-mission-fx-p {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  background: #b8ffff;
  opacity: 0.9;
}
.lp-mission-fx--jungle .lp-mission-fx-p {
  width: 8px;
  height: 5px;
  border-radius: 60% 40% 60% 40%;
  background: color-mix(in srgb, #1e7a0c 55%, #ffe7a8 45%);
  animation: lp-fx-leaf 0.95s ease-out both;
  animation-delay: calc(var(--i) * 0.035s);
}
@keyframes lp-fx-leaf {
  0% { opacity: 0.95; transform: translate(0, 0) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc((var(--i) - 3.5) * 14px), -42px) rotate(120deg); }
}
.lp-mission-fx--void .lp-mission-fx-ring {
  border-width: 2.5px;
  border-color: color-mix(in srgb, #5c0099 60%, #ffe7a8 40%);
}
.lp-mission-fx--void .lp-mission-fx-ring--delay {
  border-style: dashed;
  animation-duration: 1s;
}
.lp-mission-fx--void .lp-mission-fx-p {
  background: #c9a0ff;
  box-shadow: 0 0 8px rgba(92, 0, 153, 0.45);
}
.lp-mission-fx--golden .lp-mission-fx-p {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8e8, #8a6800);
  box-shadow: 0 0 5px rgba(201, 162, 74, 0.55);
  animation: lp-fx-coin 0.9s ease-out both;
  animation-delay: calc(var(--i) * 0.04s);
}
@keyframes lp-fx-coin {
  0% { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(calc((var(--i) - 3.5) * 12px), -50px) scale(0.5) rotate(180deg); }
}

/* Toast de nova missão / contrato pago */
.lp-mission-toast {
  position: absolute;
  left: 50%;
  top: max(72px, calc(env(safe-area-inset-top, 0px) + 64px));
  z-index: 88;
  width: min(86%, 280px);
  transform: translateX(-50%);
  pointer-events: none;
  padding: 12px 14px 13px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--lp-theme-mid) 55%, #c9a24a 45%);
  background:
    radial-gradient(ellipse 90% 70% at 10% 0%, rgba(var(--lp-theme-rgb), 0.32), transparent 65%),
    linear-gradient(165deg, color-mix(in srgb, var(--lp-theme-mid) 42%, #161018) 0%, #0c0b10 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.lp-mission-toast[hidden] { display: none; }
.lp-mission-toast.is-on {
  animation: lp-toast-in 0.55s cubic-bezier(0.22, 0.68, 0.2, 1) both;
}
.lp-mission-toast.is-reduce.is-on {
  animation: lp-toast-in-reduce 0.35s ease both;
}
@keyframes lp-toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.9) rotate(-2deg); }
  55% { opacity: 1; transform: translateX(-50%) translateY(2px) scale(1.03) rotate(0.5deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
}
@keyframes lp-toast-in-reduce {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lp-mission-toast-stamp {
  position: absolute;
  right: -8px;
  top: -10px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--lp-theme) 45%, #ffe7a8 55%);
  opacity: 0.35;
  transform: rotate(18deg);
}
.lp-mission-toast-kicker {
  margin: 0 0 4px;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme) 35%, #ffe7a8 65%);
}
.lp-mission-toast-body {
  margin: 0;
  font: 400 15px/1.15 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  letter-spacing: 0.02em;
}
.lp-mission-toast-flavor {
  margin: 6px 0 0;
  font: 500 11px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.78);
}
.lp-mission-toast--clear .lp-mission-toast-kicker { color: #b8ff80; }
.lp-mission-toast--combo .lp-mission-toast-kicker { color: #ffe7a8; }
.lp-mission-toast--lap .lp-mission-toast-kicker { color: #b8ff80; }
.lp-mission-toast--combo.is-on {
  animation: lp-toast-combo 0.6s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
.lp-mission-toast--lap.is-on {
  animation: lp-toast-lap 0.7s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
@keyframes lp-toast-combo {
  0% { transform: translateX(-50%) translateY(10px) scale(0.92); opacity: 0; filter: brightness(1.4); }
  55% { transform: translateX(-50%) translateY(-2px) scale(1.03); opacity: 1; }
  100% { transform: translateX(-50%); opacity: 1; filter: none; }
}
@keyframes lp-toast-lap {
  0% { transform: translateX(-50%) scale(0.9) rotate(-1deg); opacity: 0; }
  45% { transform: translateX(-50%) scale(1.04) rotate(0.5deg); opacity: 1; }
  100% { transform: translateX(-50%); opacity: 1; }
}

/* Badge Ovos de Ouro — lobby / início da run */
.lp-egg-badge {
  position: absolute;
  left: 50%;
  bottom: max(18%, calc(env(safe-area-inset-bottom, 0px) + 22%));
  z-index: 28;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  max-width: min(88vw, 240px);
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--lp-theme, #c9a24a) 55%, #ffe7a8 45%);
  background:
    linear-gradient(145deg, rgba(255, 236, 180, 0.16), rgba(20, 12, 8, 0.72) 48%, rgba(10, 8, 12, 0.88)),
    radial-gradient(ellipse 80% 70% at 20% 30%, rgba(255, 215, 120, 0.22), transparent 60%);
  background-clip: padding-box;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 248, 220, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
  animation: lp-egg-badge-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lp-egg-badge[hidden] {
  display: none !important;
}
.lp-egg-badge-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 40%, rgba(255, 215, 120, 0.35), transparent 55%);
  opacity: 0.7;
  animation: lp-egg-badge-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}
.lp-egg-badge-ico {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 8px rgba(232, 196, 120, 0.55));
}
.lp-egg-badge-ico .lp-ico {
  width: 40px;
  height: 40px;
}
.lp-egg-badge-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lp-egg-badge-kicker {
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme, #c9a24a) 40%, #ffe7a8 60%);
}
.lp-egg-badge-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lp-egg-badge-count {
  font: 400 22px/1 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px rgba(255, 215, 120, 0.45);
}
.lp-egg-badge-state {
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b8ff80;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(80, 160, 60, 0.22);
  border: 1px solid rgba(184, 255, 128, 0.35);
}
.lp-egg-badge-hint {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.62);
}
@keyframes lp-egg-badge-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(14px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes lp-egg-badge-glow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}
#wrap[data-planet="golden"] .lp-egg-badge {
  border-color: rgba(255, 215, 120, 0.75);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(232, 196, 120, 0.28),
    inset 0 1px 0 rgba(255, 248, 220, 0.28);
}
#wrap[data-planet="neon"] .lp-egg-badge-state {
  color: #7cffd4;
  background: rgba(46, 230, 194, 0.16);
  border-color: rgba(124, 255, 212, 0.4);
}
#wrap[data-planet="magma"] .lp-egg-badge-count {
  text-shadow: 0 0 14px rgba(255, 90, 60, 0.5);
}

/* Modal trilha de missões — espírito Feirinha */
.lp-trail {
  position: absolute;
  inset: 0;
  z-index: 86;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
  touch-action: manipulation;
}
.lp-trail[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.lp-trail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 8, 0.62);
}
.lp-trail-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(86%, 640px);
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--lp-theme-mid) 48%, #c9a24a 52%);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(var(--lp-theme-rgb), 0.28), transparent 70%),
    linear-gradient(180deg, #141216 0%, #0c0b0e 100%);
  background-clip: padding-box;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.5);
  animation: lp-trail-up 0.38s cubic-bezier(0.22, 0.68, 0.2, 1) both;
  touch-action: pan-y;
  opacity: var(--lp-mission-opacity, 1);
}
@keyframes lp-trail-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: none; opacity: var(--lp-mission-opacity, 1); }
}
.lp-trail-sticky {
  position: relative;
  flex-shrink: 0;
  z-index: 4;
  margin: 0;
  padding: 18px 14px 12px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(var(--lp-theme-rgb), 0.28), transparent 72%),
    linear-gradient(180deg, #141216 0%, #121014 100%);
  box-shadow: 0 12px 18px -10px rgba(0, 0, 0, 0.62);
}
.lp-trail-awning {
  height: 14px;
  margin: -6px -6px 12px;
  border-radius: 8px 8px 0 0;
  background: repeating-linear-gradient(
    90deg,
    var(--lp-theme-mid) 0 18px,
    color-mix(in srgb, var(--lp-theme) 40%, #c9a24a 60%) 18px 36px
  );
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.25);
}
.lp-trail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 0;
}
.lp-trail-kicker {
  margin: 0 0 4px;
  font: 600 10px/1 system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme) 40%, #c9a24a 60%);
}
.lp-trail-titles h2 {
  margin: 0;
  font: 400 22px/1.15 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  letter-spacing: 0.03em;
}
.lp-trail-meta {
  margin: 6px 0 0;
  font: 500 11px/1.3 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.62);
}
.lp-trail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--lp-theme) 50%, rgba(155, 27, 48, 0.5));
  border-radius: 10px;
  background: rgba(var(--lp-theme-rgb), 0.16);
  color: #f5f5f5;
  font: 500 22px/1 system-ui, sans-serif;
  line-height: 1;
  cursor: pointer;
}
.lp-trail-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 14px 22px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
.lp-trail-card {
  position: relative;
  padding: 10px 12px 11px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--lp-theme-mid) 40%, rgba(201, 162, 74, 0.35));
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--lp-theme-rgb), 0.18), transparent 65%),
    linear-gradient(165deg, #16141a 0%, #0d0c11 100%);
  box-shadow: inset 0 1px 0 rgba(255, 236, 190, 0.08);
  animation: lp-trail-card-in 0.4s ease both;
}
.lp-trail-card:nth-child(odd) { animation-delay: 0.02s; }
.lp-trail-card:nth-child(even) { animation-delay: 0.05s; }
@keyframes lp-trail-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.lp-trail-card.is-current {
  border-color: color-mix(in srgb, var(--lp-theme) 55%, #ffe7a8 45%);
  box-shadow:
    inset 0 0 0 1px rgba(var(--lp-theme-rgb), 0.28),
    inset 0 1px 0 rgba(255, 236, 190, 0.14),
    0 6px 16px rgba(0, 0, 0, 0.28);
}
.lp-trail-card.is-done {
  opacity: 0.78;
  border-color: rgba(184, 255, 128, 0.28);
}
.lp-trail-card.is-locked {
  opacity: 0.55;
  filter: saturate(0.75);
}
.lp-trail-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.lp-trail-card-kicker {
  margin: 0;
  font: 700 9px/1 system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--lp-theme) 35%, #ffe7a8 65%);
}
.lp-trail-card.is-done .lp-trail-card-kicker { color: #b8ff80; }
.lp-trail-card.is-locked .lp-trail-card-kicker { color: rgba(245, 245, 245, 0.45); }
.lp-trail-card-pay {
  margin: 0;
  font: 700 10px/1 system-ui, sans-serif;
  color: #ffe7a8;
}
.lp-trail-card-title {
  margin: 0 0 4px;
  font: 400 14px/1.15 "Russo One", system-ui, sans-serif;
  color: #fff8e8;
  letter-spacing: 0.02em;
}
.lp-trail-card-text {
  margin: 0;
  font: 500 11px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.78);
}
.lp-trail-card-bar {
  height: 6px;
  margin-top: 9px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.4);
  overflow: visible;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 0 calc(3px + (var(--lp-bar-pct, 0) * 0.07px))
      color-mix(in srgb, var(--lp-theme-mid) 45%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: lp-bar-track-pulse 2.5s ease-in-out infinite;
}
.lp-trail-card-bar > .lp-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform-origin: left center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent 44%),
    linear-gradient(90deg, var(--lp-theme-deep), color-mix(in srgb, var(--lp-theme-mid) 35%, #ffe7a8 65%));
  box-shadow:
    0 0 9px color-mix(in srgb, var(--lp-theme-mid) 58%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: lp-bar-fill-pulse 1.9s ease-in-out infinite;
}

/* Energia da barra: pulse, shimmer, tip, partículas, bounce de ganho */
.lp-bar-shine {
  position: absolute;
  inset: -30% -45%;
  display: block;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(255, 255, 255, 0.26) 48%,
    rgba(255, 248, 220, 0.14) 52%,
    transparent 68%
  );
  animation: lp-bar-shimmer 2.8s linear infinite;
  pointer-events: none;
}
.lp-bar-tip {
  position: absolute;
  top: -35%;
  right: -1px;
  width: 10px;
  height: 170%;
  border-radius: 999px;
  display: block;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42) 0%, rgba(255, 231, 168, 0.28) 38%, transparent 72%);
  box-shadow: 0 0 7px color-mix(in srgb, var(--lp-theme-mid) 55%, #ffe7a8);
  animation: lp-bar-tip-glow 1.85s ease-in-out infinite;
  pointer-events: none;
}
.lp-bar-sparks {
  position: absolute;
  inset: -6px 0 -6px 0;
  width: calc(var(--lp-bar-pct, 0) * 1%);
  max-width: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.lp-bar-sparks > i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff8e8;
  box-shadow: 0 0 6px color-mix(in srgb, var(--lp-theme-mid) 80%, #ffe7a8);
  opacity: 0;
  animation: lp-bar-spark 2.2s ease-in-out infinite;
}
.lp-bar-sparks > i:nth-child(1) { left: 12%; top: 10%; animation-delay: 0s; }
.lp-bar-sparks > i:nth-child(2) { left: 34%; top: 70%; animation-delay: 0.35s; }
.lp-bar-sparks > i:nth-child(3) { left: 55%; top: 5%; animation-delay: 0.7s; }
.lp-bar-sparks > i:nth-child(4) { left: 74%; top: 60%; animation-delay: 1.05s; }
.lp-bar-sparks > i:nth-child(5) { left: 92%; top: 20%; animation-delay: 1.4s; }

@keyframes lp-bar-shimmer {
  0% { transform: translateX(-60%) skewX(-14deg); opacity: 0.12; }
  40% { opacity: 0.38; }
  100% { transform: translateX(60%) skewX(-14deg); opacity: 0.1; }
}
@keyframes lp-bar-fill-pulse {
  0%, 100% { filter: brightness(1) saturate(1); }
  50% { filter: brightness(1.07) saturate(1.05); }
}
@keyframes lp-bar-track-pulse {
  0%, 100% { filter: brightness(1); box-shadow: 0 0 calc(3px + (var(--lp-bar-pct, 0) * 0.06px)) color-mix(in srgb, var(--lp-theme-mid) 40%, transparent); }
  50% { filter: brightness(1.04); box-shadow: 0 0 calc(5px + (var(--lp-bar-pct, 0) * 0.08px)) color-mix(in srgb, var(--lp-theme-mid) 48%, transparent); }
}
@keyframes lp-bar-tip-glow {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 0.68; transform: scaleY(1.08); }
}
@keyframes lp-bar-spark {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.6); }
  25% { opacity: 0.42; transform: translateY(-3px) scale(1); }
  55% { opacity: 0.18; transform: translateY(-5px) scale(0.8); }
}
/* Feedback de ganho: scale sutil + brilho contido (sem o zoom antigo scaleY 1.85). */
@keyframes lp-bar-gain-pop {
  0% { transform: scaleY(1) scaleX(1); filter: brightness(1.03); }
  40% { transform: scaleY(1.08) scaleX(1.015); filter: brightness(1.12); }
  100% { transform: scaleY(1) scaleX(1); filter: brightness(1); }
}
.lp-contract.is-bar-gain .lp-contract-bar > .lp-bar-fill,
.lp-mission-run.is-bar-gain .lp-mission-run-bar > .lp-bar-fill,
.lp-trail-card.is-bar-gain .lp-trail-card-bar > .lp-bar-fill,
#wrap .lp-contract.is-bar-gain .lp-contract-bar > .lp-bar-fill,
#wrap .lp-mission-run.is-bar-gain .lp-mission-run-bar > .lp-bar-fill,
#wrap .lp-trail-card.is-bar-gain .lp-trail-card-bar > .lp-bar-fill {
  animation: lp-bar-gain-pop 0.36s ease-out;
}
.lp-contract.is-bar-hot .lp-contract-bar,
.lp-mission-run.is-bar-hot .lp-mission-run-bar,
.lp-trail-card.is-bar-hot .lp-trail-card-bar {
  animation-duration: 1.2s;
}
.lp-contract.is-bar-hot .lp-contract-bar > .lp-bar-fill,
.lp-mission-run.is-bar-hot .lp-mission-run-bar > .lp-bar-fill,
.lp-trail-card.is-bar-hot .lp-trail-card-bar > .lp-bar-fill {
  animation-duration: 0.95s;
}
.lp-contract.is-bar-hot .lp-bar-shine,
.lp-mission-run.is-bar-hot .lp-bar-shine,
.lp-trail-card.is-bar-hot .lp-bar-shine {
  animation-duration: 0.95s;
}
.lp-contract.is-bar-hot .lp-bar-sparks > i,
.lp-mission-run.is-bar-hot .lp-bar-sparks > i,
.lp-trail-card.is-bar-hot .lp-bar-sparks > i {
  animation-duration: 1.35s;
}

/* Personalidade da barra por planeta */
#wrap[data-planet="classic"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="classic"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="classic"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 10px rgba(155, 27, 48, 0.55), inset 0 1px 0 rgba(255, 236, 190, 0.35);
}
#wrap[data-planet="classic"] .lp-bar-sparks > i {
  background: #ffe7a8;
  box-shadow: 0 0 7px rgba(201, 162, 74, 0.9);
}
#wrap[data-planet="neon"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="neon"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="neon"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.65), inset 0 1px 0 rgba(180, 255, 255, 0.4);
  animation-duration: 1.2s;
}
#wrap[data-planet="neon"] .lp-bar-shine {
  animation-duration: 1.05s;
  background: linear-gradient(
    105deg,
    transparent 32%,
    rgba(180, 255, 255, 0.78) 48%,
    rgba(0, 212, 255, 0.35) 54%,
    transparent 68%
  );
}
#wrap[data-planet="neon"] .lp-bar-sparks > i {
  background: #b8ffff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.95);
}
#wrap[data-planet="magma"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="magma"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="magma"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 12px rgba(251, 146, 60, 0.65), inset 0 1px 0 rgba(255, 210, 150, 0.4);
  animation-duration: 1.25s;
}
#wrap[data-planet="magma"] .lp-bar-sparks > i {
  background: #ffd29a;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.95);
  animation-name: lp-bar-spark-magma;
}
@keyframes lp-bar-spark-magma {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
  30% { opacity: 1; transform: translateY(-5px) scale(1.3); }
  60% { opacity: 0.4; transform: translateY(-9px) scale(0.7); }
}
#wrap[data-planet="frost"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="frost"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="frost"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 11px rgba(125, 211, 252, 0.6), inset 0 1px 0 rgba(220, 245, 255, 0.45);
  animation-duration: 2.15s;
}
#wrap[data-planet="frost"] .lp-bar-shine { animation-duration: 2s; }
#wrap[data-planet="frost"] .lp-bar-sparks > i {
  background: #e0f7ff;
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.9);
  border-radius: 1px;
  width: 2px;
  height: 5px;
}
#wrap[data-planet="jungle"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="jungle"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="jungle"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 10px rgba(132, 204, 22, 0.55), inset 0 1px 0 rgba(220, 255, 170, 0.35);
  animation-duration: 1.85s;
}
#wrap[data-planet="jungle"] .lp-bar-sparks > i {
  background: #d9ff8a;
  box-shadow: 0 0 7px rgba(132, 204, 22, 0.9);
}
#wrap[data-planet="void"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="void"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="void"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 13px rgba(167, 139, 250, 0.65), inset 0 1px 0 rgba(230, 210, 255, 0.4);
  animation-duration: 1.45s;
}
#wrap[data-planet="void"] .lp-bar-sparks > i {
  background: #efe6ff;
  box-shadow: 0 0 9px rgba(167, 139, 250, 0.95);
}
#wrap[data-planet="golden"] .lp-contract-bar > .lp-bar-fill,
#wrap[data-planet="golden"] .lp-mission-run-bar > .lp-bar-fill,
#wrap[data-planet="golden"] .lp-trail-card-bar > .lp-bar-fill {
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.65), inset 0 1px 0 rgba(255, 244, 180, 0.45);
  animation-duration: 1.65s;
}
#wrap[data-planet="golden"] .lp-bar-sparks > i {
  background: #fff3b0;
  box-shadow: 0 0 9px rgba(250, 204, 21, 0.95);
}

#wrap[data-planet="classic"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #9B1B30 0 18px, #c9a24a 18px 36px);
}
#wrap[data-planet="neon"] .lp-trail-panel {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 212, 255, 0.18), transparent 70%),
    linear-gradient(180deg, #10141a 0%, #0a0c10 100%);
}
#wrap[data-planet="magma"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #c2410c 0 18px, #fbbf24 18px 36px);
}
#wrap[data-planet="frost"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #0e7490 0 18px, #a5f3fc 18px 36px);
}
#wrap[data-planet="jungle"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #166534 0 18px, #a3e635 18px 36px);
}
#wrap[data-planet="void"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #5b21b6 0 18px, #e9d5ff 18px 36px);
}
#wrap[data-planet="golden"] .lp-trail-awning {
  background: repeating-linear-gradient(90deg, #92400e 0 18px, #fcd34d 18px 36px);
}

.lp-planet {
  position: absolute;
  inset: 0;
  z-index: 87;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(6px, env(safe-area-inset-top, 0px)) 6px max(8px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  pointer-events: auto;
  touch-action: manipulation;
  --planet-focus: #9B1B30;
  --planet-focus-rgb: 155, 27, 48;
  --planet-focus-mid: #9B1B30;
  --planet-focus-deep: #4a0e18;
}
.lp-planet[hidden] {
  display: none !important;
  pointer-events: none !important;
}
.lp-planet-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(var(--planet-focus-rgb), 0.34), transparent 70%),
    rgba(4, 3, 8, 0.78);
  transition: background 0.45s ease;
}
.lp-planet-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 424px);
  height: auto;
  max-height: min(96dvh, 96vh);
  flex: 0 1 auto;
  align-self: center;
  overflow: visible;
  overscroll-behavior: none;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--planet-focus) 42%, #c9a24a 58%);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 85% 48% at 50% -8%, rgba(var(--planet-focus-rgb), 0.38), transparent 68%),
    linear-gradient(180deg, #141218 0%, #0a0b10 55%, #07070c 100%);
  background-clip: padding-box;
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 236, 190, 0.1);
  animation: lp-planet-pop 0.36s cubic-bezier(0.22, 0.68, 0.2, 1);
  touch-action: manipulation;
  transition: border-color 0.4s ease, background 0.45s ease;
}
@keyframes lp-planet-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.lp-planet-vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
  background: radial-gradient(ellipse 90% 70% at 50% 30%, transparent 40%, rgba(0, 0, 0, 0.28) 100%);
}
.lp-planet-head {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 14px 14px 10px;
  background:
    linear-gradient(180deg, rgba(10, 11, 16, 0.97) 0%, rgba(10, 11, 16, 0.88) 70%, transparent 100%);
  border-bottom: 1px solid rgba(var(--planet-focus-rgb), 0.22);
}
.lp-planet-kicker {
  font: 600 9px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a24a;
  transition: color 0.35s ease;
}
.lp-planet-titles h2 {
  font: 400 18px/1.1 "Russo One", system-ui, sans-serif;
  color: #f5f5f5;
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(var(--planet-focus-rgb), 0.35);
}
.lp-planet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(155, 27, 48, 0.5);
  border-radius: 10px;
  background: rgba(155, 27, 48, 0.16);
  color: #f5f5f5;
  font: 500 20px/1 system-ui, sans-serif;
  line-height: 1;
  cursor: pointer;
}
.lp-planet-body {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  overscroll-behavior: none;
  padding: 6px 12px 12px;
  touch-action: manipulation;
}
.lp-planet-dock {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  margin-bottom: 8px;
  padding: 9px 10px 8px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 70% at 8% 0%, rgba(var(--planet-focus-rgb), 0.32), transparent 62%),
    radial-gradient(ellipse 55% 50% at 100% 100%, rgba(var(--planet-focus-rgb), 0.14), transparent 55%),
    linear-gradient(165deg, color-mix(in srgb, var(--planet-focus-mid) 38%, #12141a) 0%, #0c0d12 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px rgba(var(--planet-focus-rgb), 0.42),
    inset 0 1px 0 rgba(255, 236, 190, 0.12),
    0 0 28px rgba(var(--planet-focus-rgb), 0.12);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  animation: lp-planet-dock-in 0.42s cubic-bezier(0.22, 0.68, 0.2, 1);
}
.lp-planet-dock.is-swap {
  animation: lp-planet-dock-swap 0.38s cubic-bezier(0.22, 0.68, 0.2, 1);
}
@keyframes lp-planet-dock-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@keyframes lp-planet-dock-swap {
  0% { opacity: 0.55; transform: scale(0.985) translateY(4px); filter: saturate(0.7); }
  55% { opacity: 1; transform: scale(1.01); filter: saturate(1.15); }
  100% { opacity: 1; transform: none; filter: none; }
}
.lp-planet-fx {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.lp-planet-lore {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}
.lp-planet-lore-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(var(--planet-focus-rgb), 0.5));
  animation: lp-planet-logo-breathe 3.2s ease-in-out infinite;
}
.lp-planet-lore-logo .lp-planet-logo {
  width: 40px;
  height: 40px;
}
@keyframes lp-planet-logo-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(var(--planet-focus-rgb), 0.4)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 0 16px rgba(var(--planet-focus-rgb), 0.65)); }
}
.lp-planet-lore-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.lp-planet-lore-name {
  font: 400 15px/1.1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: #fff8e8;
}
.lp-planet-lore-sub {
  font: 600 10px/1.15 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--planet-focus) 55%, #ffe7a8 45%);
}
.lp-planet-lore-text {
  margin-top: 2px;
  font: 400 11px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.78);
}
.lp-planet-lore-whisper {
  margin-top: 4px;
  font: 500 9px/1.3 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--planet-focus) 40%, #ffe7a8 60%);
  opacity: 0.85;
}
.lp-planet-go {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--planet-focus) 50%, #c9a24a 50%);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.14), transparent 42%),
    linear-gradient(180deg, var(--planet-focus-mid), var(--planet-focus-deep));
  background-clip: padding-box;
  color: #fff8e8;
  font: 400 14px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.28),
    0 4px 14px rgba(0, 0, 0, 0.35);
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.lp-planet-go:disabled {
  opacity: 0.55;
  cursor: default;
  filter: grayscale(0.15);
}
@media (hover: hover) and (pointer: fine) {
  .lp-planet-go:not(:disabled):hover {
    filter: brightness(1.06);
  }
}
.lp-planet-hint {
  position: relative;
  z-index: 1;
  margin: 0 2px 10px;
  font: 400 10px/1.35 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.5);
}

/* —— World rows (lista vertical full-width) —— */
.lp-planet-worlds {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lp-planet-extras {
  margin: 2px 2px 0;
  font: 600 9px/1 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.42);
}
.lp-planet-card {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  /* Anel inset: spread externo + overflow:hidden desalinhava no mobile. */
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 55% 120% at 0% 50%, rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.22), transparent 62%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.32));
  background-clip: padding-box;
  color: #f5f5f5;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  box-shadow:
    inset 0 0 0 1px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.34),
    inset 0 1px 0 rgba(255, 236, 190, 0.06);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.lp-planet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.55;
  background: var(--row-fx, none);
}
.lp-planet-card > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .lp-planet-card:hover:not(.is-focus):not(.is-on) {
    box-shadow:
      inset 0 0 0 1px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.55),
      inset 0 1px 0 rgba(255, 236, 190, 0.06);
    transform: translateX(2px);
  }
}
.lp-planet-card.is-focus {
  box-shadow:
    inset 0 0 0 2px rgba(var(--card-rgb), 0.72),
    inset 0 1px 0 rgba(255, 236, 190, 0.1),
    0 0 22px rgba(var(--card-rgb), 0.28);
  transform: translateX(2px);
}
.lp-planet-card.is-on {
  box-shadow:
    inset 0 0 0 2px var(--card-theme, var(--lp-theme)),
    inset 0 1px 0 rgba(255, 236, 190, 0.12),
    0 0 20px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.38);
}
.lp-planet-card--home {
  padding: 8px 11px;
  background:
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(var(--card-rgb), 0.32), transparent 65%),
    linear-gradient(120deg, color-mix(in srgb, var(--card-mid, #9B1B30) 28%, #141218) 0%, #0c0d12 100%);
  background-clip: padding-box;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--card-theme, #9B1B30) 55%, #c9a24a 45%),
    inset 0 1px 0 rgba(255, 236, 190, 0.14),
    0 6px 18px rgba(0, 0, 0, 0.28);
}
.lp-planet-card--home.is-on {
  box-shadow:
    inset 0 0 0 2px var(--card-theme, var(--lp-theme)),
    inset 0 1px 0 rgba(255, 236, 190, 0.14),
    0 0 20px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.38);
}
.lp-planet-card-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.lp-planet-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 1px;
  padding: 2px 6px;
  border-radius: 999px;
  font: 700 8px/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-theme, var(--planet-focus, var(--lp-theme)));
}
.lp-planet-logo-wrap {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 10px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.45));
}
.lp-planet-card--home .lp-planet-logo-wrap {
  width: 40px;
  height: 40px;
}
.lp-planet-logo {
  width: 32px;
  height: 32px;
  display: block;
}
.lp-planet-card--home .lp-planet-logo {
  width: 36px;
  height: 36px;
}
.lp-planet-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff8e8, var(--card-theme, var(--lp-theme)) 42%, #12080c);
  box-shadow: 0 0 14px rgba(var(--card-rgb, var(--lp-theme-rgb)), 0.55);
}
.lp-planet-card-name {
  font: 400 13px/1.15 "Russo One", system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: #fff8e8;
}
.lp-planet-card-sub {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: rgba(245, 245, 245, 0.58);
}
.lp-planet-card-detail {
  margin-top: 2px;
  font: 600 9px/1.2 system-ui, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-theme, #c9a24a) 70%, #ffe7a8 30%);
  opacity: 0.9;
}
.lp-planet-card-chev {
  font: 500 16px/1 system-ui, sans-serif;
  color: rgba(var(--card-rgb), 0.55);
  transition: color 0.2s ease, transform 0.2s ease;
}
.lp-planet-card.is-focus .lp-planet-card-chev {
  color: rgba(var(--card-rgb), 0.95);
  transform: translateX(2px);
}

/* Row atmosphere micro-FX */
.lp-planet-card[data-planet="neon"] {
  --row-fx: repeating-linear-gradient(
    0deg,
    transparent 0 3px,
    rgba(255, 0, 127, 0.05) 3px 4px
  );
}
.lp-planet-card[data-planet="magma"] {
  --row-fx: radial-gradient(circle at 18% 80%, rgba(255, 120, 20, 0.28), transparent 28%),
    radial-gradient(circle at 40% 90%, rgba(255, 80, 0, 0.16), transparent 22%);
}
.lp-planet-card[data-planet="frost"] {
  --row-fx: radial-gradient(circle at 85% 20%, rgba(180, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 70% 70%, rgba(0, 240, 255, 0.1), transparent 30%);
}
.lp-planet-card[data-planet="jungle"] {
  --row-fx: radial-gradient(ellipse 40% 80% at 100% 0%, rgba(57, 255, 20, 0.18), transparent 50%),
    radial-gradient(ellipse 35% 70% at 0% 100%, rgba(30, 122, 12, 0.22), transparent 50%);
}
.lp-planet-card[data-planet="void"] {
  --row-fx: conic-gradient(from 180deg at 90% 50%, transparent 0 70%, rgba(157, 0, 255, 0.14) 85%, transparent 100%);
}
.lp-planet-card[data-planet="golden"] {
  --row-fx: linear-gradient(115deg, transparent 40%, rgba(255, 215, 0, 0.1) 50%, transparent 60%);
}
.lp-planet-card[data-planet="classic"] {
  --row-fx: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(155, 27, 48, 0.2), transparent 60%);
}

/* —— Dock surprises (únicas por planeta) —— */
.lp-planet-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lp-planet-dock[data-surprise="neon"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0 2px,
    rgba(255, 0, 127, 0.07) 2px 3px
  );
  animation: lp-fx-scan 2.4s linear infinite;
  mix-blend-mode: screen;
}
.lp-planet-dock[data-surprise="neon"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 46, 147, 0.18) 48%, transparent 52%),
    linear-gradient(0deg, rgba(0, 255, 200, 0.06), transparent 40%);
  animation: lp-fx-glitch 1.8s steps(2, end) infinite;
  opacity: 0.7;
}
.lp-planet-dock[data-surprise="neon"] .lp-planet-lore-name {
  animation: lp-fx-neon-flicker 2.6s ease-in-out infinite;
}
@keyframes lp-fx-scan {
  from { transform: translateY(-8%); }
  to { transform: translateY(8%); }
}
@keyframes lp-fx-glitch {
  0%, 90%, 100% { clip-path: inset(0 0 0 0); transform: none; }
  92% { clip-path: inset(12% 0 55% 0); transform: translate(2px, -1px); }
  94% { clip-path: inset(60% 0 10% 0); transform: translate(-3px, 1px); }
  96% { clip-path: inset(30% 0 40% 0); transform: translate(1px, 0); }
}
@keyframes lp-fx-neon-flicker {
  0%, 19%, 21%, 62%, 64%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(255, 0, 127, 0.45); }
  20%, 63% { opacity: 0.72; text-shadow: 0 0 2px rgba(0, 255, 200, 0.8); }
}

.lp-planet-dock[data-surprise="magma"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  inset: -10% -5%;
  background:
    radial-gradient(ellipse 80% 50% at 50% 115%, rgba(255, 85, 0, 0.45), transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(255, 160, 40, 0.25), transparent 20%),
    radial-gradient(circle at 75% 95%, rgba(255, 60, 0, 0.22), transparent 18%);
  animation: lp-fx-heat 2.8s ease-in-out infinite;
  filter: blur(6px);
}
.lp-planet-dock[data-surprise="magma"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #ffb347 0 35%, transparent 36%) 12% 78% / 5px 5px no-repeat,
    radial-gradient(circle, #ff7a1a 0 35%, transparent 36%) 38% 88% / 4px 4px no-repeat,
    radial-gradient(circle, #ffe7a8 0 35%, transparent 36%) 62% 72% / 3px 3px no-repeat,
    radial-gradient(circle, #ff5500 0 35%, transparent 36%) 82% 86% / 4px 4px no-repeat;
  animation: lp-fx-embers 2.2s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes lp-fx-heat {
  0%, 100% { transform: translateY(0) scaleX(1); opacity: 0.75; }
  50% { transform: translateY(-4%) scaleX(1.04); opacity: 1; }
}
@keyframes lp-fx-embers {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(-10px); opacity: 1; }
}

.lp-planet-dock[data-surprise="frost"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(184, 255, 255, 0.28), transparent 55%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 70% 18%, rgba(184, 255, 255, 0.4) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 35%, rgba(0, 240, 255, 0.35) 0 1px, transparent 2px);
  animation: lp-fx-breath 3.4s ease-in-out infinite;
}
.lp-planet-dock[data-surprise="frost"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 240, 255, 0.12), transparent);
  animation: lp-fx-frost-rise 3.6s ease-in-out infinite;
}
@keyframes lp-fx-breath {
  0%, 100% { opacity: 0.55; filter: blur(0); }
  50% { opacity: 1; filter: blur(0.4px); }
}
@keyframes lp-fx-frost-rise {
  0%, 100% { transform: translateY(8%); opacity: 0.4; }
  50% { transform: translateY(0); opacity: 0.85; }
}

.lp-planet-dock[data-surprise="jungle"] .lp-planet-fx::before,
.lp-planet-dock[data-surprise="jungle"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  top: -8%;
  width: 28%;
  height: 120%;
  background:
    radial-gradient(ellipse 60% 40% at 50% 20%, rgba(57, 255, 20, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 50% at 40% 55%, rgba(30, 122, 12, 0.4), transparent 65%),
    radial-gradient(ellipse 55% 45% at 60% 85%, rgba(124, 255, 77, 0.28), transparent 60%);
  filter: blur(1px);
  animation: lp-fx-vine 3.8s ease-in-out infinite;
}
.lp-planet-dock[data-surprise="jungle"] .lp-planet-fx::before {
  left: -6%;
  transform-origin: top left;
}
.lp-planet-dock[data-surprise="jungle"] .lp-planet-fx::after {
  right: -6%;
  left: auto;
  transform-origin: top right;
  animation-delay: 0.6s;
}
@keyframes lp-fx-vine {
  0%, 100% { transform: scaleY(0.88) rotate(0deg); opacity: 0.55; }
  50% { transform: scaleY(1.05) rotate(2deg); opacity: 0.95; }
}

.lp-planet-dock[data-surprise="void"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 2px solid rgba(196, 77, 255, 0.35);
  box-shadow:
    0 0 0 8px rgba(157, 0, 255, 0.08),
    0 0 24px rgba(157, 0, 255, 0.35),
    inset 0 0 20px rgba(224, 160, 255, 0.2);
  animation: lp-fx-rune 3.2s ease-in-out infinite;
}
.lp-planet-dock[data-surprise="void"] .lp-planet-fx::after {
  content: "✦  ·  ᚠ  ·  ✧  ·  ᛟ";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  font: 500 11px/1 system-ui, sans-serif;
  letter-spacing: 0.35em;
  color: rgba(224, 160, 255, 0.7);
  animation: lp-fx-whisper 4s ease-in-out infinite;
}
@keyframes lp-fx-rune {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes lp-fx-whisper {
  0%, 100% { opacity: 0.25; letter-spacing: 0.28em; }
  50% { opacity: 0.9; letter-spacing: 0.42em; }
}

.lp-planet-dock[data-surprise="golden"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, #ffe7a8 0 40%, transparent 41%) 18% 0 / 7px 7px,
    radial-gradient(circle, #ffd700 0 40%, transparent 41%) 42% -10% / 5px 5px,
    radial-gradient(circle, #c9a24a 0 40%, transparent 41%) 68% 5% / 6px 6px,
    radial-gradient(circle, #ffe44d 0 40%, transparent 41%) 88% -5% / 5px 5px,
    radial-gradient(circle, #ffc107 0 40%, transparent 41%) 30% 8% / 4px 4px;
  background-repeat: no-repeat;
  animation: lp-fx-coins 2.6s linear infinite;
  opacity: 0.85;
}
.lp-planet-dock[data-surprise="golden"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 215, 0, 0.18) 50%, transparent 65%);
  animation: lp-fx-gold-sheen 3.2s ease-in-out infinite;
}
@keyframes lp-fx-coins {
  0% { transform: translateY(-12%); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(110%); opacity: 0.15; }
}
@keyframes lp-fx-gold-sheen {
  0%, 100% { transform: translateX(-30%); opacity: 0.35; }
  50% { transform: translateX(30%); opacity: 0.7; }
}

.lp-planet-dock[data-surprise="classic"] .lp-planet-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(201, 162, 74, 0.22), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(155, 27, 48, 0.2), transparent 30%);
  animation: lp-fx-classic-pulse 3s ease-in-out infinite;
}
.lp-planet-dock[data-surprise="classic"] .lp-planet-fx::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a24a, #9B1B30, #c9a24a, transparent);
  opacity: 0.55;
  animation: lp-fx-classic-line 2.8s ease-in-out infinite;
}
@keyframes lp-fx-classic-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}
@keyframes lp-fx-classic-line {
  0%, 100% { transform: scaleX(0.7); opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 0.8; }
}

/* Mobile / viewport curto: densifica levemente para caber todos os mundos */
@media (max-width: 480px), (max-height: 780px) {
  .lp-planet {
    padding: max(4px, env(safe-area-inset-top, 0px)) 4px max(6px, env(safe-area-inset-bottom, 0px));
  }
  .lp-planet-panel {
    height: auto;
    max-height: min(98dvh, 98vh);
    overflow: hidden;
    border-radius: 14px;
  }
  .lp-planet-head { padding: 8px 10px 5px; gap: 6px; }
  .lp-planet-kicker { font-size: 8px; letter-spacing: 0.12em; }
  .lp-planet-titles h2 { font-size: 15px; }
  .lp-planet-close { width: 28px; height: 28px; font-size: 18px; border-radius: 8px; }
  .lp-planet-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 8px 8px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 162, 74, 0.35) transparent;
  }
  .lp-planet-dock { padding: 6px 8px; margin-bottom: 5px; border-radius: 12px; }
  .lp-planet-lore {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }
  .lp-planet-lore-logo { width: 36px; height: 36px; }
  .lp-planet-lore-logo .lp-planet-logo { width: 32px; height: 32px; }
  .lp-planet-lore-name { font-size: 13px; }
  .lp-planet-lore-sub { font-size: 9px; }
  .lp-planet-lore-text {
    margin-top: 1px;
    font-size: 10px;
    line-height: 1.28;
  }
  .lp-planet-lore-whisper { display: none; }
  .lp-planet-go { padding: 6px 8px; font-size: 12px; border-radius: 9px; }
  .lp-planet-hint { margin: 0 2px 5px; font-size: 9px; line-height: 1.25; }
  .lp-planet-extras { margin: 0 2px; font-size: 8px; letter-spacing: 0.14em; }
  .lp-planet-worlds { gap: 3px; }
  .lp-planet-card {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    padding: 4px 7px;
    gap: 6px;
    border-radius: 10px;
  }
  .lp-planet-card--home { padding: 5px 8px; }
  .lp-planet-badge { padding: 1px 5px; font-size: 7px; margin-bottom: 0; }
  .lp-planet-logo-wrap { width: 28px; height: 28px; }
  .lp-planet-logo { width: 24px; height: 24px; }
  .lp-planet-card--home .lp-planet-logo-wrap { width: 30px; height: 30px; }
  .lp-planet-card--home .lp-planet-logo { width: 26px; height: 26px; }
  .lp-planet-mini { width: 26px; height: 26px; }
  .lp-planet-card-name { font-size: 12px; }
  .lp-planet-card-sub { font-size: 9px; }
  .lp-planet-card-detail { display: none; }
  .lp-planet-card-chev { font-size: 14px; }
}

@media (max-width: 480px) and (max-height: 720px), (max-height: 620px) {
  .lp-planet {
    align-items: flex-start;
    padding-top: max(4px, env(safe-area-inset-top, 0px));
  }
  .lp-planet-head { padding: 6px 8px 4px; }
  .lp-planet-titles h2 { font-size: 14px; }
  .lp-planet-body { padding: 2px 6px 6px; }
  .lp-planet-dock { padding: 5px 7px; margin-bottom: 4px; }
  .lp-planet-lore {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 5px;
    margin-bottom: 4px;
  }
  .lp-planet-lore-logo { width: 32px; height: 32px; }
  .lp-planet-lore-logo .lp-planet-logo { width: 28px; height: 28px; }
  .lp-planet-lore-name { font-size: 12px; }
  .lp-planet-go { padding: 5px 7px; font-size: 11px; }
  .lp-planet-hint { display: none; }
  .lp-planet-card { padding: 3px 6px; gap: 5px; }
  .lp-planet-card--home { padding: 4px 7px; }
  .lp-planet-worlds { gap: 2px; }
}

.lp-coinrain {
  position: absolute;
  inset: 0;
  z-index: 86;
  pointer-events: none;
  overflow: hidden;
}
.lp-coinrain[hidden] { display: none; }
.lp-flycoin {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe7a8, #d4a017 62%, #8a6a12);
  box-shadow: 0 0 3px rgba(212, 160, 23, 0.28);
  opacity: 0.75;
  animation: lp-flycoin 0.48s ease-out forwards;
}
@keyframes lp-flycoin {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.45);
    opacity: 0;
  }
}

/* Planetas extras recoloram HUD/loja; Clássico 163 fica no visual 1.4.x. */
#wrap[data-planet]:not([data-planet="classic"]) .lp-plaque,
#wrap[data-planet]:not([data-planet="classic"]) .lp-bolsa--hud,
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-btn {
  border-color: var(--lp-theme);
  background:
    linear-gradient(180deg, rgba(255, 232, 186, 0.16) 0%, transparent 40%),
    linear-gradient(185deg, var(--lp-theme-mid) 0%, var(--lp-theme-deep) 62%, #12080c 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 190, 0.38),
    inset 0 -3px 7px rgba(0, 0, 0, 0.38),
    0 1px 0 color-mix(in srgb, var(--lp-theme) 55%, #000),
    0 3px 0 #12080c,
    0 6px 12px rgba(0, 0, 0, 0.42);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-plaque::before {
  border-color: rgba(var(--lp-theme-rgb), 0.45);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-bolsa:not(.lp-bolsa--hud) {
  background:
    linear-gradient(180deg, rgba(var(--lp-theme-rgb), 0.28) 0%, transparent 42%),
    linear-gradient(180deg, var(--lp-theme-mid) 0%, var(--lp-theme-deep) 62%, #12080c 100%);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-bolsa--hud .lp-bolsa-count {
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 6px rgba(255, 214, 120, 0.72),
    0 0 14px var(--lp-theme-glow),
    0 2px 0 #2a080e,
    0 3px 5px rgba(0, 0, 0, 0.5);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-btn-txt,
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-btn-txt {
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 6px rgba(255, 214, 120, 0.68),
    0 0 12px var(--lp-theme-glow),
    0 2px 0 #2a080e;
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-btn:hover .lp-fair-btn-txt,
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-btn:hover .lp-planet-btn-txt {
  text-shadow:
    -1px 0 0 #4a0e16,
    1px 0 0 #4a0e16,
    0 -1px 0 #4a0e16,
    0 1px 0 #4a0e16,
    0 0 8px rgba(255, 214, 120, 0.85),
    0 0 16px var(--lp-theme-glow),
    0 2px 0 #2a080e;
}
/* Planetas: mesmos ícones CSS do clássico, recoloridos com mid/cream/deep
   (sem primary neon na aba). Clássico permanece ouro/carmesim intacto. */
#wrap[data-planet]:not([data-planet="classic"]) .lp-pouch-body {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.1)),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--lp-theme-mid) 70%, var(--lp-theme-deep) 30%) 0%,
      color-mix(in srgb, var(--lp-theme-deep) 88%, #000 12%) 100%
    );
  box-shadow:
    inset 0 2px 0 rgba(255, 232, 186, 0.12),
    0 3px 0 color-mix(in srgb, var(--lp-theme-deep) 72%, #000 28%);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-pouch-flap {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-theme-mid) 42%, #fff5e6 58%) 0%,
    color-mix(in srgb, var(--lp-theme) 28%, var(--lp-theme-deep) 72%) 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 236, 180, 0.32);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-pouch-clasp {
  background: radial-gradient(
    circle at 35% 30%,
    color-mix(in srgb, var(--lp-theme) 16%, #fff8e8 84%),
    color-mix(in srgb, var(--lp-theme-mid) 48%, #fff5e6 52%) 55%,
    color-mix(in srgb, var(--lp-theme) 36%, var(--lp-theme-deep) 64%)
  );
  box-shadow: 0 0 5px color-mix(in srgb, var(--lp-theme-glow) 42%, transparent);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-stall-roof {
  background: repeating-linear-gradient(
    90deg,
    color-mix(in srgb, var(--lp-theme-mid) 78%, var(--lp-theme-deep) 22%) 0 5px,
    color-mix(in srgb, var(--lp-theme-mid) 38%, #fff5e6 62%) 5px 10px
  );
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-stall-cloth {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 35%, transparent 65%, rgba(255, 255, 255, 0.1)),
    linear-gradient(180deg, var(--lp-theme-mid) 0%, var(--lp-theme-deep) 100%);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-stall-pole {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--lp-theme-mid) 32%, #fff5e6 68%),
    color-mix(in srgb, var(--lp-theme) 30%, var(--lp-theme-deep) 70%)
  );
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-orb {
  background: radial-gradient(
    circle at 32% 28%,
    color-mix(in srgb, var(--lp-theme) 12%, #fff8e8 88%),
    color-mix(in srgb, var(--lp-theme-mid) 72%, var(--lp-theme-deep) 28%) 42%,
    var(--lp-theme-deep)
  );
  box-shadow: 0 0 6px color-mix(in srgb, var(--lp-theme-glow) 48%, transparent);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-panel {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(var(--lp-theme-rgb), 0.28), transparent 70%),
    linear-gradient(180deg, #141216 0%, #0c0b0e 100%);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-panel {
  border-color: color-mix(in srgb, var(--planet-focus, var(--lp-theme)) 42%, #c9a24a 58%);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-awning {
  background: repeating-linear-gradient(90deg, var(--lp-theme) 0 18px, #c9a24a 18px 36px);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-close,
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-close {
  border-color: rgba(var(--planet-focus-rgb, var(--lp-theme-rgb)), 0.5);
  background: rgba(var(--planet-focus-rgb, var(--lp-theme-rgb)), 0.16);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-planet-kicker {
  color: var(--planet-focus, var(--lp-theme));
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-fair-tab {
  border-color: rgba(var(--lp-theme-rgb), 0.45);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-item {
  border-color: rgba(var(--lp-theme-rgb), 0.35);
}
#wrap[data-planet]:not([data-planet="classic"]) .lp-item-btn:not(.is-ghost):not(.is-on) {
  border-color: var(--lp-theme);
  background: var(--lp-theme-deep);
}

@media (max-width: 360px) {
  .lp-hud { right: 6px; gap: 5px; }
  .lp-hud--left { left: 6px; right: auto; }
  .lp-mission-run { left: 6px; }
  .lp-bolsa--hud .lp-bolsa-count { font-size: 16px; }
  .lp-fair-btn-txt,
  .lp-inv-btn-txt,
  .lp-planet-btn-txt { font-size: 11px; letter-spacing: 0.05em; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-bolsa::after,
  .lp-pouch,
  .lp-stall,
  .lp-inv-glyph,
  .lp-inv-pack-buckle,
  .lp-inv-row.is-on .lp-inv-ico,
  .lp-fair-confirm-pedestal,
  .lp-bolsa--hud.is-ping,
  .lp-ico-phoenix,
  .lp-ico-peacock,
  .lp-ico-bills,
  .lp-ico-clover,
  .lp-ico-magnet,
  .lp-ico-egg,
  .lp-ico-flappy,
  .lp-ico-tiao,
  .lp-ico-pira,
  .lp-ico-betinho,
  .lp-ico-cemao,
  .lp-ico-ovni,
  .lp-ico-barao,
  .lp-fair-panel,
  .lp-inv-panel,
  .lp-inv-doll,
  .lp-planet-panel,
  .lp-trail-panel,
  .lp-trail-card,
  .lp-contract.is-paid,
  .lp-contract.is-enter,
  .lp-contract.is-new,
  .lp-contract-aura,
  .lp-mission-run.is-cleared,
  .lp-mission-run.is-new .lp-mission-run-item,
  .lp-mission-run.is-combo .lp-mission-run-item,
  .lp-mission-run.is-lap-reset .lp-mission-run-item,
  .lp-contract.is-combo,
  .lp-contract.is-lap-reset,
  .lp-mission-run-item,
  .lp-mission-fx-burst,
  .lp-mission-fx-ring,
  .lp-mission-fx-flash,
  .lp-mission-fx-p,
  .lp-death-fx-flash,
  .lp-death-fx-ring,
  .lp-death-fx-scan,
  .lp-death-fx-shards,
  .wrap.is-death-shake,
  .wrap.is-death-glitch #game,
  .lp-mission-toast.is-on,
  .lp-bolsa-count.is-rolling,
  .lp-flycoin,
  .lp-egg-badge,
  .lp-egg-badge-glow,
  .lp-contract-bar,
  .lp-mission-run-bar,
  .lp-trail-card-bar,
  .lp-contract-bar > .lp-bar-fill,
  .lp-mission-run-bar > .lp-bar-fill,
  .lp-trail-card-bar > .lp-bar-fill,
  .lp-bar-shine,
  .lp-bar-tip,
  .lp-bar-sparks > i,
  .lp-contract.is-bar-gain .lp-contract-bar > .lp-bar-fill,
  .lp-mission-run.is-bar-gain .lp-mission-run-bar > .lp-bar-fill,
  .lp-trail-card.is-bar-gain .lp-trail-card-bar > .lp-bar-fill {
    animation: none !important;
  }
  .lp-contract-bar,
  .lp-mission-run-bar,
  .lp-trail-card-bar {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    overflow: hidden;
  }
  .lp-contract-bar > .lp-bar-fill,
  .lp-mission-run-bar > .lp-bar-fill,
  .lp-trail-card-bar > .lp-bar-fill {
    filter: none !important;
    box-shadow: none;
  }
  .lp-bar-sparks,
  .lp-bar-tip,
  .lp-bar-shine {
    display: none !important;
  }
  .lp-planet-dock,
  .lp-planet-dock.is-swap,
  .lp-planet-lore-logo,
  .lp-planet-fx,
  .lp-planet-fx::before,
  .lp-planet-fx::after,
  .lp-planet-dock[data-surprise="neon"] .lp-planet-lore-name,
  .lp-planet-card,
  .lp-planet-card.is-focus,
  .lp-planet-go,
  .lp-planet-backdrop,
  .lp-planet-panel,
  .lp-planet-lore,
  .lp-fair-tabs,
  .lp-fair-inv,
  .lp-inv-panel,
  .lp-inv-doll,
  .lp-inv-tab,
  .lp-inv-eq,
  .lp-contract-bar > .lp-bar-fill,
  .lp-mission-run-bar > .lp-bar-fill,
  .lp-trail-card-bar > .lp-bar-fill {
    transition: none !important;
  }
  .hp-player,
  .hp-player-play,
  .hp-player-time,
  .hp-player-seek,
  .hp-player-vol,
  .hp-player-menu,
  .hp-float,
  .lp-sfx {
    transition: none !important;
  }
}
