/* ---------------------------------------------------------------------------
   Encontre os Erros (/encontre-os-erros). Kept out of assets/css/main.css on
   purpose, loaded via $app_styles — same reasoning digital_block.css and
   qr_code_generator's studio.css follow, this game's whole front end lives
   under assets/apps/spot_the_differences/ as one self-contained unit.

   --wp-spot-cor is set inline per view from $app['color'], not hardcoded here
   — same pattern .wp-card/.wp-app-frame use, unlike .wp-dblock's own fixed
   accent, because this app has no canvas identity of its own to protect.

   Side-by-side is the default two-column grid; .wp-spot--toggle (set by
   game.js) collapses it to one column and shows only whichever frame is
   currently visible. Below 640px it collapses the same way even before JS
   runs, so a slow connection never flashes two cramped frames first.
   --------------------------------------------------------------------------- */

.wp-spot__title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #fff;
  margin: 1.5rem 0 0.4rem;
}

.wp-spot__meta {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1rem;
}

.wp-spot__intro {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 62ch;
  margin: 0 0 1.75rem;
}

.wp-spot__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.wp-spot__btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.75em 1em;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.wp-spot__btn:hover,
.wp-spot__btn:focus-visible {
  color: var(--wp-spot-cor);
  border-color: var(--wp-spot-cor);
  background: rgba(255, 255, 255, 0.04);
}

.wp-spot__progress {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--wp-spot-cor);
  margin: 0 0 0 auto;
}

.wp-spot__frames {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.wp-spot--toggle .wp-spot__frames {
  grid-template-columns: 1fr;
}

@media (max-width: 640px) {
  .wp-spot__frames {
    grid-template-columns: 1fr;
  }
}

.wp-spot__frame {
  position: relative;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 3px;
  overflow: hidden;
  background: #05050a;
  line-height: 0;
}

.wp-spot__image {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
}

.wp-spot__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wp-spot__marker {
  position: absolute;
  width: 2rem;
  height: 2rem;
  margin-left: -1rem;
  margin-top: -1rem;
  border: 2px solid var(--wp-spot-cor);
  border-radius: 50%;
  box-shadow: 0 0 14px -2px var(--wp-spot-cor);
}

.wp-spot__found-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.wp-spot__found-item {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  border-left: 3px solid var(--wp-spot-cor);
  padding: 0.6rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 4px 4px 0;
}

.wp-spot__found-badge {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.03em;
  padding: 0.4em 0.55em;
  border-radius: 3px;
  margin-right: 0.7em;
  vertical-align: middle;
}

.wp-spot__found-badge--meaning {
  background: rgba(212, 175, 55, 0.15);
  color: var(--wp-ouro);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.wp-spot__found-badge--fun {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.wp-spot__quiz {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wp-spot__quiz-question {
  margin-bottom: 1.5rem;
}

.wp-spot__quiz-prompt {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #fff;
  margin: 0 0 0.85rem;
}

.wp-spot__quiz-option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.wp-spot__quiz-option--correct {
  color: var(--wp-l4);
}

.wp-spot__quiz-option--incorrect {
  color: var(--wp-vermelho);
}

.wp-spot__quiz-submit {
  margin-top: 0.5rem;
}

.wp-spot__complete {
  margin-top: 2rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--wp-spot-cor);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.wp-spot__complete-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--wp-spot-cor);
  margin: 0 0 0.9rem;
}

.wp-spot__complete-blurb {
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
  max-width: 62ch;
  margin: 0 auto 1.4rem;
}

.wp-spot-gallery__card {
  display: flex;
  flex-direction: column;
}

.wp-spot-gallery__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------------------------------------------------------------------------
   Home / setup screen. Same "icon, then one column of decisions" shape as
   qr_code_generator's studio.css (.wp-qr-studio/.wp-qr-tipos/.wp-qr-tipo) —
   var(--wp-app-cor) is already in scope here, injected by .wp-app-frame in
   system/views/app_header.php, no need to redeclare it.
   --------------------------------------------------------------------------- */

.wp-spot-setup {
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.wp-spot-setup__titulo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  line-height: 1.9;
  text-align: center;
  color: #fff;
  margin: 0 0 1.5rem;
}

.wp-spot-setup__categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}

.wp-spot-setup__categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5em;
  font-family: system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 1.1em 0.8em;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

button.wp-spot-setup__categoria:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.wp-spot-setup__categoria--on {
  color: #fff !important;
  border-color: var(--wp-app-cor) !important;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 14px -6px var(--wp-app-cor), inset 0 0 20px -18px var(--wp-app-cor);
}

.wp-spot-setup__categoria--on .wp-spot-setup__categoria-icone {
  color: var(--wp-app-cor);
}

.wp-spot-setup__categoria-icone {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.18s ease;
}

.wp-spot-setup__categoria-nome {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  line-height: 1.4;
}

.wp-spot-setup__categoria-desc {
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.45);
}

.wp-spot-setup__categoria--em-breve {
  cursor: default;
  opacity: 0.6;
}

.wp-spot-setup__categoria-badge {
  position: absolute;
  top: -1px;
  left: -1px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  background: var(--wp-preto);
  color: var(--wp-ouro);
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 0.35em 0.6em;
  letter-spacing: 0.05em;
}

.wp-spot-setup__controles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.wp-spot-setup__quiz {
  flex: 1 1 auto;
  min-width: 14rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.wp-spot-setup__avancado {
  width: auto;
  height: auto;
  gap: 0.5em;
  padding: 0 0.9em;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
}

/* ---------------------------------------------------------------------------
   Top players of the month
   --------------------------------------------------------------------------- */

.wp-spot-top {
  max-width: 44rem;
  margin: 0 auto 3rem;
}

.wp-spot-top__titulo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  color: #fff;
  margin: 0 0 1rem;
}

.wp-spot-top__titulo svg {
  color: var(--wp-ouro);
}

.wp-spot-top__vazio {
  font-family: system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.5);
}

.wp-spot-top__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.wp-spot-top__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.02);
}

.wp-spot-top__item--eu {
  border: 1px solid var(--wp-app-cor);
  background: rgba(255, 255, 255, 0.04);
}

.wp-spot-top__pos {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
  width: 1.6em;
}

.wp-spot-top__nome {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.85);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wp-spot-top__tempo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--wp-app-cor);
}

/* ---------------------------------------------------------------------------
   Hero pitch
   --------------------------------------------------------------------------- */

.wp-spot-hero {
  max-width: 50rem;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wp-spot-hero__kicker {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wp-app-cor);
  text-shadow: 0 0 20px var(--wp-app-cor);
  margin: 0 0 1rem;
}

.wp-spot-hero__corpo {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.wp-spot-hero__subtitulo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 1rem;
}

.wp-spot-hero__categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.wp-spot-hero__categoria {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 0.5em 1em;
}

.wp-spot-hero__categoria svg {
  color: var(--wp-app-cor);
}

.wp-spot-hero__categoria--em-breve {
  color: rgba(255, 255, 255, 0.4);
  border-style: dashed;
}

.wp-spot-hero__categoria--em-breve svg {
  color: rgba(255, 255, 255, 0.3);
}
