/* Find the Markers — Reuter's Mix
   A cena roda em canvas (1440x810 lógico, escala FIT). Esta folha cuida
   apenas do menu, HUD, coleção, pausa, toasts e controles touch. */

:root {
  --ink: #33333d;
  --paper: #fdfaf1;
  --accent: #e8a13c;
  --danger: #d1495b;
  --good: #2f7a4f;
  --hud-bg: rgba(20, 24, 32, 0.78);
  --font: "Comic Sans MS", "Segoe Print", "Segoe UI", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background: #101821;
  font-family: var(--font);
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#app {
  position: fixed;
  inset: 0;
}

#game-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-container canvas {
  display: block;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.45);
}

/* ---------- botões ---------- */
.button {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 14px;
  border: 3px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.button:active {
  transform: scale(0.96);
}

.button-primary {
  background: var(--accent);
  color: var(--ink);
}

.button-ghost {
  background: var(--paper);
  color: var(--ink);
}

.button-danger {
  background: var(--danger);
  color: #fff;
}

.button-danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
  font-size: 14px;
  padding: 8px 16px;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-button {
  font-family: var(--font);
  font-size: 18px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.icon-button:active {
  transform: scale(0.94);
}

/* ---------- telas ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.screen.is-active {
  display: flex;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  opacity: 0.65;
}

.menu-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 22px;
  padding: 34px 44px;
  max-width: 620px;
  width: min(92vw, 620px);
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  max-height: 92vh;
  overflow: auto;
}

.menu-card h1 {
  font-size: clamp(30px, 5vw, 44px);
  color: var(--accent);
  -webkit-text-stroke: 2px var(--ink);
  margin: 8px 0 2px;
}

.menu-card h1 small {
  display: block;
  font-size: 0.48em;
  color: var(--ink);
  -webkit-text-stroke: 0;
  font-weight: 700;
}

.menu-description {
  margin: 12px 0 20px;
  font-size: 15px;
  opacity: 0.8;
}

.menu-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.menu-help {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  margin-top: 20px;
  font-size: 13px;
  opacity: 0.75;
}

.menu-credits {
  margin-top: 14px;
  font-size: 12px;
  opacity: 0.6;
}

.confirm-box {
  display: none;
  margin: 14px auto 4px;
  padding: 12px;
  border: 3px dashed var(--danger);
  border-radius: 12px;
  background: #fbeef0;
  max-width: 420px;
}

.confirm-box.is-visible {
  display: block;
}

.confirm-box p {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-actions .button {
  font-size: 14px;
  padding: 8px 16px;
}

.reset-row {
  margin-top: 16px;
}

.error-card h2 {
  margin: 10px 0;
}

.character-select-card {
  max-width: 720px;
  width: min(94vw, 720px);
}

.character-select-card h2 {
  font-size: clamp(24px, 4vw, 32px);
  margin: 6px 0 4px;
  color: var(--ink);
}

.character-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 18px;
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: #fffef8;
  box-shadow: 0 8px 0 rgba(51, 51, 61, 0.12);
}

.character-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.character-preview {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(180deg, #d7ecf8 0%, #e8f5d4 70%, #c8e08a 100%);
  border-radius: 14px;
  border: 2px solid rgba(51, 51, 61, 0.25);
  overflow: hidden;
}

.character-preview img {
  max-height: 150px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

#character-select-back {
  margin-top: 4px;
}

#character-select-back[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .character-select-grid {
    grid-template-columns: 1fr;
  }

  .character-preview {
    height: 140px;
  }
}

/* ---------- HUD ---------- */
#game-ui {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 20;
}

#game-ui.is-active {
  display: block;
}

#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(to bottom, rgba(16, 22, 30, 0.85), rgba(16, 22, 30, 0));
  pointer-events: none;
}

#hud > * {
  pointer-events: auto;
}

.hud-counter {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--hud-bg);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 14px;
}

.hud-counter i {
  font-style: normal;
}

.marker-counter i {
  width: 14px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent);
  border: 2px solid #fff;
}

.hud-counter strong {
  font-size: 16px;
}

.egg-counter {
  opacity: 0.55;
}

.egg-counter.has-eggs {
  opacity: 1;
}

.hud-location {
  margin-left: auto;
  text-align: right;
  color: #fff;
  background: var(--hud-bg);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 4px 12px;
}

.hud-location span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.hud-location strong {
  font-size: 15px;
}

/* Boost 4x da nova área — só aparece com boost ativo (§39). */
.hud-boost {
  display: none;
  margin-left: auto;
  color: #10261a;
  background: linear-gradient(180deg, #a8f0c0, #62c462);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(98, 196, 98, 0.35);
}

.hud-boost.is-visible {
  display: block;
}

.hud-buttons {
  display: flex;
  gap: 8px;
}

/* ---------- toast ---------- */
#toast {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translate(-50%, -12px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 17px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  max-width: min(80vw, 520px);
  text-align: center;
}

#toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-icon {
  font-size: 20px;
}

/* ---------- notificação de coleta ---------- */
#marker-notification {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, 0) scale(0.7);
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 18px 34px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  min-width: 280px;
}

#marker-notification.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.mn-title {
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  -webkit-text-stroke: 0.8px var(--ink);
}

.mn-name {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0;
}

.mn-difficulty {
  font-size: 15px;
  font-weight: 700;
  color: var(--diff-color, var(--ink));
}

/* ---------- prompt [E] ---------- */
#interaction-prompt {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  cursor: pointer;
}

#interaction-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- coleção ---------- */
#collection-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: min(90vw, 720px);
  max-height: min(80vh, 700px);
  overflow: auto;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 30;
}

#collection-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

#collection-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

#collection-panel h2 {
  font-size: 22px;
}

#collection-count {
  font-size: 16px;
  opacity: 0.7;
  margin-left: 8px;
}

#collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.marker-chip {
  border: 2px solid rgba(51, 51, 61, 0.25);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: #fff;
}

.chip-body {
  width: 34px;
  height: 52px;
  border-radius: 8px;
  background: var(--paper);
  border: 2.5px solid var(--diff-color);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-cap {
  position: absolute;
  top: -1px;
  left: 2px;
  right: 2px;
  height: 11px;
  border-radius: 5px 5px 0 0;
  background: var(--diff-color);
}

.chip-face {
  font-size: 11px;
  margin-top: 8px;
  color: var(--ink);
}

.marker-chip.is-locked {
  opacity: 0.55;
  filter: grayscale(0.9);
}

.marker-chip.is-collected {
  border-color: var(--diff-color);
}

.chip-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  min-height: 2.2em;
}

.chip-diff {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: var(--diff-color);
  border-radius: 8px;
  padding: 1px 8px;
}

.chip-check {
  color: var(--good);
  font-weight: 700;
  min-height: 1em;
}

/* ---------- pausa ---------- */
#pause-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.6);
  z-index: 35;
}

#pause-overlay.is-open {
  display: flex;
}

.pause-card {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: min(88vw, 340px);
  text-align: center;
}

.pause-card h2 {
  margin-bottom: 6px;
}

/* ---------- controles touch (top-down: D-pad + E) ---------- */
#mobile-controls {
  position: absolute;
  inset: auto 0 0 0;
  display: none;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 18px calc(14px + env(safe-area-inset-bottom));
  z-index: 25;
  pointer-events: none;
}

#mobile-controls .mc-left,
#mobile-controls .mc-right {
  display: flex;
  gap: 12px;
  pointer-events: auto;
  align-items: center;
}

/* D-pad 3x3 grid: up / left-right / down */
#mobile-controls .mc-dpad {
  display: grid;
  grid-template-columns: 56px 56px 56px;
  grid-template-rows: 56px 56px 56px;
  gap: 6px;
  width: calc(56px * 3 + 12px);
  height: calc(56px * 3 + 12px);
}

#mobile-controls .mc-dpad .mc-up {
  grid-column: 2;
  grid-row: 1;
}

#mobile-controls .mc-dpad .mc-left-btn {
  grid-column: 1;
  grid-row: 2;
}

#mobile-controls .mc-dpad .mc-right-btn {
  grid-column: 3;
  grid-row: 2;
}

#mobile-controls .mc-dpad .mc-down {
  grid-column: 2;
  grid-row: 3;
}

#mobile-controls .mc-right {
  padding-bottom: 56px;
}

#mobile-controls button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  background: rgba(16, 22, 30, 0.55);
  color: #fff;
  font-size: 20px;
  font-family: var(--font);
  font-weight: 700;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#mobile-controls .mc-right button {
  width: 72px;
  height: 72px;
  font-size: 26px;
}

#mobile-controls button.is-pressed {
  background: rgba(232, 161, 60, 0.8);
}

@media (pointer: coarse) {
  #mobile-controls {
    display: flex;
  }
}

@media (max-width: 640px) {
  .hud-location {
    display: none;
  }

  #hud {
    flex-wrap: wrap;
  }

  #interaction-prompt {
    bottom: 170px;
    font-size: 15px;
  }

  .menu-champion-mascot {
    top: 8px;
    right: 10px;
    width: 52px;
    height: 64px;
  }

  .menu-card-world {
    padding: 28px 18px 22px;
  }
}

/* ---------- menu world backdrop + champion secret ---------- */
#menu-screen {
  overflow: hidden;
}

.menu-world {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.menu-world-layer {
  position: absolute;
  inset: 0;
}

.menu-world-sky {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, #7eb8e8 0%, transparent 55%),
    linear-gradient(180deg, #5a9fd4 0%, #8bc4a0 42%, #6a9b5a 100%);
}

.menu-world-hills {
  background:
    radial-gradient(ellipse 60% 40% at 15% 78%, #4a7a3a 0%, transparent 70%),
    radial-gradient(ellipse 55% 35% at 85% 82%, #3d6b32 0%, transparent 65%),
    radial-gradient(ellipse 90% 30% at 50% 95%, #2f5a28 0%, transparent 70%);
  opacity: 0.9;
}

.menu-world-trees {
  background-image:
    radial-gradient(circle at 12% 62%, #1e4a22 0 18px, transparent 19px),
    radial-gradient(circle at 18% 58%, #2a5e2c 0 28px, transparent 29px),
    radial-gradient(circle at 78% 55%, #1a4520 0 22px, transparent 23px),
    radial-gradient(circle at 88% 60%, #2d6230 0 34px, transparent 35px),
    radial-gradient(circle at 8% 70%, #163818 0 14px, transparent 15px),
    radial-gradient(circle at 92% 72%, #1c4a24 0 16px, transparent 17px);
  animation: menu-parallax-trees 18s ease-in-out infinite alternate;
}

.menu-world-path {
  background:
    radial-gradient(ellipse 28% 12% at 50% 88%, #c4a574 0%, transparent 70%),
    radial-gradient(ellipse 18% 8% at 42% 78%, #b89560 0%, transparent 70%),
    radial-gradient(ellipse 16% 7% at 58% 72%, #c4a574 0%, transparent 70%);
  opacity: 0.55;
}

.menu-world-dust {
  background-image:
    radial-gradient(circle, rgba(255, 255, 240, 0.55) 0 1.5px, transparent 2px),
    radial-gradient(circle, rgba(255, 250, 200, 0.4) 0 1px, transparent 2px);
  background-size: 120px 90px, 80px 110px;
  background-position: 0 0, 40px 30px;
  animation: menu-dust-drift 22s linear infinite;
  opacity: 0.45;
}

.menu-world-dim {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 24, 0.42);
  backdrop-filter: blur(2px);
}

@keyframes menu-parallax-trees {
  from { transform: translateX(-8px); }
  to { transform: translateX(10px); }
}

@keyframes menu-dust-drift {
  from { background-position: 0 0, 40px 30px; }
  to { background-position: 120px -90px, -40px 140px; }
}

.menu-card-world {
  position: relative;
  z-index: 2;
  background: rgba(253, 250, 241, 0.94);
  backdrop-filter: blur(6px);
}

.menu-save-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  padding: 8px 14px;
  max-width: 320px;
  border: 2px solid rgba(51, 51, 61, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

.menu-save-card[hidden] {
  display: none !important;
}

.menu-save-label {
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.55;
  text-transform: uppercase;
  font-size: 11px;
}

.menu-save-summary {
  font-weight: 700;
}

.menu-champion-mascot {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 64px;
  height: 78px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  outline: none;
}

.menu-champion-mascot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.menu-champion-body {
  display: block;
  width: 44px;
  height: 52px;
  margin: 14px auto 0;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, #fffef8 0%, #f2c94c 45%, #e8a13c 100%);
  border: 2.5px solid #2a2418;
  box-shadow: 0 4px 0 rgba(42, 36, 24, 0.2), 0 0 0 0 rgba(242, 201, 76, 0);
  position: relative;
}

.menu-champion-crown {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1;
  color: #f2c94c;
  text-shadow: 0 1px 0 #2a2418;
  z-index: 2;
  pointer-events: none;
}

.menu-champion-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #2a2418;
  pointer-events: none;
}

.menu-champion-bubble {
  position: absolute;
  top: -4px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #2a2418;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  pointer-events: none;
}

.menu-champion-bubble[hidden] {
  display: none !important;
}

.menu-champion-spark {
  position: absolute;
  font-size: 12px;
  color: #f2c94c;
  pointer-events: none;
  animation: menu-spark-rise 0.7s ease-out forwards;
}

@keyframes menu-spark-rise {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-28px) scale(1.4); }
}

.menu-champion-mascot.rx-sway .menu-champion-body {
  animation: menu-sway 0.45s ease-in-out;
}

.menu-champion-mascot.rx-look .menu-champion-face {
  transform: translateX(3px);
  transition: transform 0.2s ease;
}

.menu-champion-mascot.rx-irritate .menu-champion-body {
  animation: menu-shake 0.35s ease-in-out;
}

.menu-champion-mascot.rx-nudge {
  transform: translate(4px, -3px);
  transition: transform 0.15s ease;
}

.menu-champion-mascot.rx-glow .menu-champion-body,
.menu-champion-mascot.is-solved .menu-champion-body {
  box-shadow: 0 4px 0 rgba(42, 36, 24, 0.2), 0 0 18px 4px rgba(242, 201, 76, 0.55);
}

.menu-champion-mascot.rx-blink .menu-champion-face {
  animation: menu-blink 0.6s ease-in-out 2;
}

.menu-champion-mascot.rx-spark .menu-champion-body {
  filter: brightness(1.08);
}

.menu-champion-mascot.rx-freeze .menu-champion-body {
  animation: none;
  filter: saturate(0.7);
}

.menu-champion-mascot.is-awakening .menu-champion-body {
  animation: menu-awaken-pulse 0.8s ease-in-out infinite;
}

.menu-champion-mascot.is-awakened .menu-champion-crown {
  color: #fff8c8;
  text-shadow: 0 0 8px #f2c94c, 0 1px 0 #2a2418;
}

@keyframes menu-sway {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-8deg); }
  70% { transform: rotate(8deg); }
}

@keyframes menu-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

@keyframes menu-blink {
  0%, 100% { opacity: 1; }
  40%, 60% { opacity: 0.15; }
}

@keyframes menu-awaken-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 12px 2px rgba(242, 201, 76, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 28px 8px rgba(242, 201, 76, 0.75); }
}

.menu-champion-awaken {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 14, 0.72);
  pointer-events: none;
}

.menu-champion-awaken.is-visible {
  display: flex;
  animation: menu-awaken-fade 2.8s ease forwards;
}

.menu-champion-awaken p {
  text-align: center;
  color: #f6efdd;
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 0 24px rgba(242, 201, 76, 0.6);
  padding: 0 24px;
}

.menu-champion-awaken strong {
  color: #f2c94c;
  font-size: 1.15em;
}

@keyframes menu-awaken-fade {
  0% { opacity: 0; }
  12% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; }
}

.marker-chip .chip-area {
  display: block;
  font-size: 10px;
  opacity: 0.7;
  margin-top: 2px;
  line-height: 1.25;
  max-width: 110px;
}

.marker-chip .chip-hint {
  font-style: italic;
  opacity: 0.65;
}

.marker-chip.is-menu-champion.is-locked .chip-diff {
  color: #c9a227;
}

/* ---------- CAPY SLOT ---------- */
.slot-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 6, 14, 0.72);
  z-index: 38;
  padding: 12px;
}

.slot-overlay.is-open {
  display: flex;
}

.slot-card {
  position: relative;
  width: min(92vw, 620px);
  max-width: 700px;
  min-width: min(92vw, 320px);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(242, 201, 76, 0.25) 0%, transparent 55%),
    linear-gradient(165deg, #5c1218 0%, #2a0c14 40%, #1a0a12 100%);
  border: 5px solid #f2c94c;
  border-radius: 22px;
  padding: 22px 24px 18px;
  box-shadow:
    0 0 0 3px #7a1f28,
    0 18px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fdf6e3;
  text-align: center;
  overflow: hidden;
}

.slot-lights {
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #f2c94c 0 14px,
    #d1495b 14px 28px,
    #7c3aed 28px 42px,
    #22c55e 42px 56px
  );
  opacity: 0.85;
  pointer-events: none;
}

.slot-overlay.is-jackpot .slot-lights {
  animation: slot-lights-flash 0.28s steps(2) infinite;
}

.slot-overlay.is-jackpot .slot-card {
  border-color: #ffe566;
  box-shadow:
    0 0 0 4px #f2c94c,
    0 0 40px rgba(242, 201, 76, 0.55),
    0 18px 50px rgba(0, 0, 0, 0.55);
}

@keyframes slot-lights-flash {
  0% { filter: brightness(1.4); }
  100% { filter: brightness(0.55); }
}

.slot-header {
  position: relative;
  margin-top: 6px;
  margin-bottom: 10px;
}

.slot-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  opacity: 0.7;
}

.slot-title {
  font-size: clamp(22px, 4vw, 30px);
  color: #f2c94c;
  -webkit-text-stroke: 1px #1a0a12;
  text-shadow: 0 2px 0 #7a1f28;
  margin: 4px 0 0;
}

.slot-close {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  border-color: rgba(242, 201, 76, 0.45);
  background: rgba(0, 0, 0, 0.35);
}

.slot-balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 14px;
  font-size: 16px;
  font-weight: 700;
}

.slot-balance {
  font-size: 22px;
  color: #f2c94c;
  min-width: 2ch;
}

.slot-delta {
  display: none;
  font-size: 15px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  animation: slot-delta-pop 0.45s ease;
}

.slot-delta.is-visible {
  display: inline-block;
}

.slot-delta.is-spend {
  background: rgba(209, 73, 91, 0.35);
  color: #ffb4bc;
}

.slot-delta.is-gain {
  background: rgba(47, 122, 79, 0.4);
  color: #b6f5c8;
}

@keyframes slot-delta-pop {
  0% { transform: scale(0.7); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

.slot-machine-frame {
  position: relative;
  margin: 0 auto;
  padding: 14px 12px;
  max-width: 420px;
  background: linear-gradient(180deg, #3a151c 0%, #1e0c12 100%);
  border: 4px solid #c9a227;
  border-radius: 16px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}

.slot-payline {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: linear-gradient(90deg, transparent, #f2c94c 12%, #f2c94c 88%, transparent);
  box-shadow: 0 0 8px rgba(242, 201, 76, 0.7);
  z-index: 3;
  pointer-events: none;
  opacity: 0.9;
}

.slot-reels {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}

.slot-reel {
  flex: 1 1 0;
  min-width: 0;
  max-width: 110px;
  border-radius: 12px;
  border: 3px solid #8a6238;
  background: #0e0a10;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.slot-reel.is-stopped {
  border-color: #f2c94c;
}

.slot-reel.is-highlight {
  border-color: #ffe566;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.5),
    0 0 14px rgba(242, 201, 76, 0.55);
}

.slot-window {
  /* 3 fileiras visíveis (grid 3x3) */
  height: 216px;
  overflow: hidden;
  position: relative;
}

.slot-strip {
  will-change: transform;
  transform: translateY(0);
}

.slot-cell {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
  user-select: none;
}

.slot-cell span {
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.slot-cell.is-win-cell {
  background: rgba(242, 201, 76, 0.16);
}

.slot-cell.is-win-cell span {
  filter: drop-shadow(0 0 8px rgba(242, 201, 76, 0.95));
}

.slot-status {
  min-height: 1.4em;
  margin: 14px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #f6e7b0;
}

.slot-overlay.is-win .slot-status {
  color: #b6f5c8;
}

.slot-overlay.is-lose .slot-status {
  color: #d4c4b0;
  opacity: 0.9;
}

.slot-overlay.is-jackpot .slot-status {
  color: #ffe566;
  font-size: 18px;
  text-shadow: 0 0 12px rgba(242, 201, 76, 0.6);
}

.slot-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.slot-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.slot-bets {
  display: flex;
  gap: 4px;
}

.slot-bet-chip {
  min-width: 38px;
  padding: 8px 8px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
  border: 2px solid rgba(242, 201, 76, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #fdf6e3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.slot-bet-chip:hover:not(:disabled) {
  border-color: rgba(242, 201, 76, 0.7);
}

.slot-bet-chip.is-active {
  background: #f2c94c;
  border-color: #1a0a12;
  color: #1a0a12;
}

.slot-bet-chip:disabled {
  opacity: 0.35;
  cursor: default;
}

.slot-auto-btn {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 10px;
  border: 2px solid rgba(242, 201, 76, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #fdf6e3;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.slot-auto-btn:hover {
  border-color: rgba(242, 201, 76, 0.7);
}

.slot-auto-btn.is-active {
  background: #2f7a4f;
  border-color: #b6f5c8;
  color: #eafff2;
  box-shadow: 0 0 12px rgba(47, 122, 79, 0.55);
}

.slot-spin-btn {
  min-width: min(80vw, 260px);
  font-size: 17px;
  padding: 12px 22px;
  background: linear-gradient(180deg, #f2c94c 0%, #e8a13c 100%);
  border-color: #1a0a12;
  color: #1a0a12;
  font-weight: 800;
}

.slot-spin-btn:disabled {
  opacity: 0.45;
  filter: grayscale(0.2);
}

.slot-hint {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 4px;
}

.slot-jackpots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.slot-jackpot-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(242, 201, 76, 0.35);
  min-width: 0;
}

.slot-jackpot-chip.is-max {
  border-color: #ffe566;
  background: rgba(242, 201, 76, 0.18);
  box-shadow: 0 0 10px rgba(242, 201, 76, 0.35);
}

.slot-jackpot-glyph {
  font-size: 20px;
  line-height: 1.1;
}

.slot-jackpot-pay {
  font-size: 11px;
  font-weight: 800;
  color: #f2c94c;
  letter-spacing: 0.02em;
}

.slot-jackpot-cap {
  font-size: 9px;
  line-height: 1.15;
  opacity: 0.72;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.slot-paytable-wrap {
  margin: 8px 0 2px;
  text-align: left;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(242, 201, 76, 0.22);
  border-radius: 10px;
  padding: 4px 10px 6px;
}

.slot-paytable-wrap summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f6e7b0;
  list-style: none;
  padding: 6px 0;
}

.slot-paytable-wrap summary::-webkit-details-marker {
  display: none;
}

.slot-paytable {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
  max-height: 168px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.slot-pay-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  padding: 2px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.slot-pay-row.is-rare {
  color: #ffe566;
}

.slot-pay-glyph {
  font-size: 14px;
  line-height: 1;
}

.slot-pay-label {
  opacity: 0.82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-pay-coins {
  font-weight: 800;
  color: #f2c94c;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .slot-card {
    padding: 18px 14px 14px;
    width: min(96vw, 620px);
  }

  .slot-machine-frame {
    padding: 10px 8px;
  }

  .slot-reels {
    gap: 6px;
  }

  .slot-window,
  .slot-cell {
    height: 64px;
  }

  .slot-window {
    height: 192px;
  }

  .slot-cell {
    font-size: 34px;
  }

  .slot-title {
    font-size: 22px;
  }

  .slot-jackpots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .slot-jackpot-chip {
    min-width: 0;
    padding: 4px 4px 5px;
  }

  .slot-jackpot-cap {
    font-size: 8px;
  }
}

@media (min-width: 1366px) {
  .slot-card {
    width: min(90vw, 660px);
  }
}


/* ============================ MARKER DEX ============================ */
#dex-summary { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
#dex-summary-text { margin: 0; font-weight: 800; letter-spacing: 0.06em; font-size: 13px; color: #33333d; }
.dex-bar {
  --dex-percent: 0%;
  display: block; height: 10px; border-radius: 999px;
  background: linear-gradient(90deg, #62c462 var(--dex-percent), #e5e0d0 var(--dex-percent));
  border: 2px solid #33333d;
}
.dex-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.dex-tabs button {
  flex: 1; padding: 9px 10px; border-radius: 12px; cursor: pointer;
  border: 3px solid #33333d; background: #f6f2e8; font-weight: 800; letter-spacing: 0.04em;
  font-family: inherit; font-size: 13px; color: #33333d;
}
.dex-tabs button.is-active { background: #33333d; color: #f8f4ea; }
.dex-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.dex-toolbar.is-hidden { display: none; }
#dex-search {
  flex: 1 1 220px; padding: 9px 12px; border-radius: 12px; border: 3px solid #33333d;
  font-family: inherit; font-size: 14px; background: #fffdf6; color: #33333d;
}
.dex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dex-chips button {
  padding: 6px 10px; border-radius: 999px; border: 2px solid #33333d; background: #fffdf6;
  font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: #33333d;
}
.dex-chips button.is-active { background: #62c462; color: #10310f; }
#dex-difficulty {
  padding: 8px 10px; border-radius: 12px; border: 3px solid #33333d;
  font-family: inherit; font-size: 13px; background: #fffdf6; color: #33333d;
}
.marker-chip .chip-status {
  font-size: 10px; font-weight: 800; letter-spacing: 0.05em; color: #6b7280; text-transform: uppercase;
}
.marker-chip.is-collected .chip-status { color: #2f7a3f; }
.marker-chip.is-secret { outline: 2px dashed #b37feb; outline-offset: 2px; }
.dex-empty { grid-column: 1 / -1; text-align: center; padding: 24px 8px; color: #6b7280; font-weight: 700; }

.dex-area-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; cursor: pointer;
  background: #fffdf6; border: 3px solid #33333d; border-radius: 14px; padding: 12px;
  font-family: inherit;
}
.dex-area-card:hover { transform: translateY(-2px); }
.dex-area-name { font-weight: 800; color: #33333d; }
.dex-area-progress {
  display: block; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #f2c94c var(--dex-percent), #e5e0d0 var(--dex-percent));
  border: 2px solid #33333d;
}
.dex-area-meta { font-size: 12px; color: #6b7280; font-weight: 700; }
.dex-back {
  grid-column: 1 / -1; justify-self: start; padding: 8px 12px; border-radius: 10px;
  border: 2px solid #33333d; background: #fffdf6; font-family: inherit; font-weight: 800;
  cursor: pointer; color: #33333d;
}
.dex-area-head { grid-column: 1 / -1; }
.dex-area-head h3 { margin: 0 0 4px; color: #33333d; }
.dex-area-head p { margin: 0; color: #6b7280; font-size: 13px; font-weight: 600; }
.dex-area-marker {
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  background: #fffdf6; border: 2px solid #d9d2c0; border-radius: 10px; padding: 8px 10px;
}
.dex-area-marker.is-collected { border-color: #62c462; }
.dex-area-marker-name { font-weight: 800; color: #33333d; }
.dex-area-marker-diff { font-size: 12px; font-weight: 800; }
.dex-area-marker-hint { font-size: 12px; color: #8a8a80; font-style: italic; flex-basis: 100%; }

.dex-profile, .dex-quests, .dex-achievements, .dex-multiplayer {
  grid-column: 1 / -1; background: #fffdf6; border: 3px solid #33333d; border-radius: 14px; padding: 14px;
}
.dex-profile h3, .dex-quests h3, .dex-achievements h3, .dex-multiplayer h3 { margin: 0 0 8px; color: #33333d; }
.dex-profile p, .dex-quests p, .dex-achievements p, .dex-multiplayer p { margin: 4px 0; color: #4b5563; font-size: 14px; }
.dex-quest { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.dex-quest.is-done { color: #2f7a3f; }
.dex-achievements p.is-done { color: #2f7a3f; font-weight: 800; }
.dex-multiplayer p em { color: #b8860b; font-weight: 800; font-style: normal; }

#dex-detail { display: block; }
#dex-detail[hidden] { display: none; }
.dex-detail-card { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; padding: 12px; }
.dex-detail-card h3 { margin: 4px 0 0; color: #33333d; font-size: 22px; }
.dex-detail-card p { margin: 0; color: #4b5563; font-size: 14px; font-weight: 600; }
.dex-detail-hint { color: #8a6238 !important; font-style: italic; }
.dex-detail-lore { color: #4b5563 !important; font-style: italic; }
.dex-detail-method { color: #2f7a3f !important; font-weight: 800 !important; }
.chip-body-large { width: 64px; height: 92px; transform: scale(1.6); margin: 14px 0 22px; }

/* Home do menu: card CONTINUAR + navegação rápida */
.menu-quicknav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0 4px; }
.menu-quicknav .button { font-size: 12px; letter-spacing: 0.04em; }
.menu-continue-meta { font-size: 12px; color: #6b7280; font-weight: 700; }

@media (max-width: 720px) {
  .dex-tabs button { font-size: 11px; padding: 8px 6px; }
  .dex-toolbar { flex-direction: column; align-items: stretch; }
  .marker-chip { font-size: 12px; }
}

#collection-panel { border-color:var(--account-frame,#33333d); }

.account-confetti{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}.account-confetti i{position:absolute;left:calc(10% + var(--i)*4.4%);top:35%;width:8px;height:14px;background:#54b7ff;animation:account-confetti-fall 1.3s ease-out forwards;animation-delay:calc(var(--i)*12ms)}.account-confetti i:nth-child(3n){background:#dfad45}.account-confetti i:nth-child(3n + 1){background:#9d7cff}@keyframes account-confetti-fall{to{transform:translateY(45vh) rotate(250deg);opacity:0}}@media(prefers-reduced-motion:reduce){.account-confetti{display:none}}

/* ============================================================================
   LOJA DE EXPLORAÇÃO + INVENTÁRIO (painel DOM)
   Cartoon do FTM: cantos generosos, acento por categoria, alvos grandes.
   ========================================================================== */
.ftm-shop,
.ftm-inv {
  position: absolute;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 28px);
}
.ftm-shop[hidden],
.ftm-inv[hidden] { display: none; }

.ftm-shop__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 18, 0.62);
  backdrop-filter: blur(2px);
}

.ftm-shop__panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #241f33 0%, #191527 100%);
  border: 3px solid #4a3f6b;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  color: #f0ecff;
}
.ftm-shop__panel--inv { width: min(860px, 100%); }

/* ---- cabeçalho fixo ---- */
.ftm-shop__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #34294f, #241f33);
  border-bottom: 2px solid #4a3f6b;
}
.ftm-shop__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ftm-shop__logo { font-size: 30px; line-height: 1; }
.ftm-shop__head h2 { margin: 0; font-size: clamp(18px, 2.4vw, 24px); }
.ftm-shop__sub { margin: 2px 0 0; font-size: 13px; opacity: 0.75; }
.ftm-shop__headActions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.ftm-shop__wallet {
  font: 700 15px/1 "Comic Sans MS", system-ui, sans-serif;
  color: #221a06;
  background: linear-gradient(180deg, #ffe08a, #f2c94c);
  border: 2px solid #7a5c14;
  border-radius: 999px;
  padding: 9px 14px;
  white-space: nowrap;
}
.ftm-shop__icon {
  width: 40px; height: 40px;
  font-size: 18px;
  color: #f0ecff;
  background: #322a4a;
  border: 2px solid #4a3f6b;
  border-radius: 12px;
  cursor: pointer;
}
.ftm-shop__icon:hover { background: #3d3358; }

/* ---- abas ---- */
.ftm-shop__tabs {
  display: flex; gap: 6px;
  padding: 10px 14px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ftm-shop__tab {
  flex: 0 0 auto;
  font: 600 14px/1 "Comic Sans MS", system-ui, sans-serif;
  color: #d8cff5;
  background: #2a2440;
  border: 2px solid #3a3157;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 38px;
}
.ftm-shop__tab.is-active { background: #6a4fd0; border-color: #a78bfa; color: #fff; }
.ftm-shop__tab:disabled { opacity: 0.4; cursor: not-allowed; }
.ftm-shop__tab.is-empty { border-style: dashed; }

/* ---- toolbar ---- */
.ftm-shop__toolbar {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center;
  padding: 6px 14px 10px;
}
.ftm-shop__toolbar input[type="search"] {
  flex: 1 1 200px; min-height: 40px;
  font-size: 15px;
  color: #f0ecff;
  background: #1c1729;
  border: 2px solid #3a3157;
  border-radius: 10px;
  padding: 8px 12px;
}
.ftm-shop__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ftm-shop__chip {
  font: 600 13px/1 system-ui, sans-serif;
  color: #cdc3ee;
  background: #241f33;
  border: 2px solid #3a3157;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 34px;
  cursor: pointer;
}
.ftm-shop__chip.is-active { background: #4a3f6b; color: #fff; }

/* ---- corpo + grade ---- */
.ftm-shop__body { flex: 1; overflow-y: auto; padding: 4px 14px 12px; outline: none; }
.ftm-shop__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.ftm-card {
  display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, #2b2440, #221c33);
  border: 2px solid #3a3157;
  border-radius: 14px;
  padding: 12px;
  min-height: 190px;
}
.ftm-card.is-owned { border-color: #4f8a5b; background: linear-gradient(180deg, #26382a, #1d2a20); }
.ftm-card.is-equipped { border-color: #f2c94c; background: linear-gradient(180deg, #3a3320, #2a2517); }

.ftm-card__top { display: flex; align-items: center; justify-content: space-between; }
.ftm-card__icon { font-size: 26px; line-height: 1; }
.ftm-card__cat {
  font: 600 11px/1 system-ui, sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #a99ad6;
  background: #191527;
  border-radius: 999px;
  padding: 4px 8px;
}
.ftm-card__name { margin: 0; font-size: 16px; }
.ftm-card__desc { margin: 0; font-size: 13px; line-height: 1.4; opacity: 0.85; }
.ftm-card__purpose, .ftm-card__effect { margin: 0; font-size: 12px; color: #9fe0b0; }
.ftm-card__foot { margin-top: auto; font-size: 14px; font-weight: 700; color: #ffe08a; }
.ftm-card__missing { margin: 0; font-size: 12px; color: #ff9f9f; }
.ftm-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.ftm-btn {
  font: 700 14px/1 "Comic Sans MS", system-ui, sans-serif;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
}
.ftm-btn.buy { background: linear-gradient(180deg, #7ee08a, #4caf50); color: #08210d; }
.ftm-btn.primary { background: linear-gradient(180deg, #8b6ff0, #6a4fd0); color: #fff; }
.ftm-btn.ghost { background: #322a4a; color: #d8cff5; border-color: #4a3f6b; }
.ftm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.ftm-tag {
  display: inline-flex; align-items: center;
  font: 700 13px/1 system-ui, sans-serif;
  padding: 10px 12px; border-radius: 10px;
}
.ftm-tag.is-ok { background: #2f5c3a; color: #d6ffdf; border: 2px solid #4f8a5b; }

.ftm-shop__empty, .ftm-shop__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 34px 16px;
  opacity: 0.8;
}
.ftm-shop__help {
  grid-column: 1 / -1;
  background: #1c1729;
  border: 2px solid #4a3f6b;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}
.ftm-shop__help h3 { margin: 0 0 8px; font-size: 15px; }
.ftm-shop__help ul { margin: 0 0 10px; padding-left: 18px; }

.ftm-shop__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  border-top: 2px solid #4a3f6b;
  background: #1c1729;
}
.ftm-shop__status { margin: 0; font-size: 14px; min-height: 18px; }
.ftm-shop__status.is-ok { color: #9fe0b0; }
.ftm-shop__status.is-error { color: #ff9f9f; }
.ftm-shop__hint { margin: 0; font-size: 12px; opacity: 0.6; }

/* ---- responsivo ---- */
@media (max-width: 720px) {
  .ftm-shop__panel { max-height: 92vh; border-radius: 14px; }
  .ftm-shop__head { flex-wrap: wrap; }
  .ftm-shop__headActions { width: 100%; justify-content: space-between; }
  .ftm-shop__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .ftm-shop__hint { display: none; }
  .ftm-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ftm-shop *, .ftm-inv * { animation: none !important; transition: none !important; }
}

/* equipamento/cosmético equipado no HUD */
.hud-gear {
  display: none;
  color: #fff;
  background: rgba(16, 22, 30, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 15px;
  white-space: nowrap;
}
.hud-gear.is-visible { display: block; }
.hud-location { border-color: var(--nameplate, rgba(255, 255, 255, 0.25)); }
