/* Jogo Leve — Encontra o Par. Two large symbols, two buttons, and a shrinking meter. */

.jl-encontra-par {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #241a2c 0%, #110b16 70%);
  color: #f2ecf7;
  overflow: hidden;
}

.jl-ep-col {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 6px 8px 8px;
}

.jl-ep-hud { display: flex; gap: 20px; padding: 2px 0 6px; }
.jl-ep-stat { display: flex; align-items: baseline; gap: 6px; }
.jl-ep-lab { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #9b86ad; }
.jl-ep-val { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd54f; }

/* THE METER: a full-width bar that shrinks right to left. `transform` not `width`, so the
   browser can composite it without a layout pass every 100 ms. */
.jl-ep-meterwrap {
  width: 100%;
  max-width: 420px;
  height: 5px;
  border-radius: 3px;
  background: #241a2c;
  overflow: hidden;
  margin-bottom: 10px;
}
.jl-ep-meter {
  height: 100%;
  width: 100%;
  background: #8f6fd0;
  transform-origin: left center;
  border-radius: 3px;
}
.jl-ep-meter.urgent { background: #ff6b6b; }

/* THE TWO SYMBOLS, as large as the space allows. Sized with `min()` on both axes so a wide
   window does not push the buttons off the bottom. */
.jl-ep-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 4vw, 28px);
  width: 100%;
  max-width: 460px;
  min-height: 0;
  padding: 4px 0;
}

.jl-ep-sym {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(38vw, 34vh, 180px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: #1a1220;
  border: 1px solid #32243c;
  font-size: min(26vw, 24vh, 130px);
  line-height: 1;
}

.jl-ep-vs { font-size: 17px; color: #5f4a70; font-weight: 800; }

/* ---- the two answers, at thumb height ---- */
.jl-ep-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 460px;
  padding-top: 10px;
}
.jl-ep-btn {
  flex: 1 1 0;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
/* IGUAIS and DIFERENTES are deliberately NOT coloured green and red: colour is part of the
   task on the board, and using it for the buttons would compete with the symbols. */
.jl-ep-same { background: #2c3f5c; color: #d6e6fa; }
.jl-ep-diff { background: #3d2f52; color: #e6d6fa; }
.jl-ep-btn:active { filter: brightness(1.25); }
.jl-ep-btn:focus-visible { outline: 2px solid #ffd54f; outline-offset: 2px; }

/* ---- the veil ---- */
.jl-ep-veil {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 6, 14, .96);
  z-index: 5;
}
.jl-ep-veil[hidden] { display: none; }
.jl-ep-box { width: 100%; max-width: 320px; text-align: center; }
.jl-ep-box h2 { margin: 0 0 8px; font-size: 21px; }
.jl-ep-sub { margin: 0 0 16px; font-size: 13px; color: #a48fb8; line-height: 1.5; }
.jl-ep-go {
  width: 100%; min-height: 48px;
  border: 0; border-radius: 11px;
  background: #ffd54f; color: #10161d;
  font-size: 15px; font-weight: 800; cursor: pointer;
}
.jl-ep-go:active { background: #e8bf3d; }
.jl-ep-go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .jl-ep-meter { transition: none; }
}

@media (max-height: 460px) {
  .jl-ep-sym { width: min(30vw, 30vh, 130px); font-size: min(20vw, 20vh, 90px); }
  .jl-ep-btn { min-height: 46px; }
}
