/* Jungle Scratch — expedition theme */

.jungle-theme {
  background:
    linear-gradient(165deg, rgba(232, 245, 232, 0.95) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(210, 232, 210, 0.9) 100%);
  border-color: #2d6a4f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 0 0 3px rgba(45, 106, 79, 0.12);
  position: relative;
  overflow: hidden;
}

.jungle-theme::before,
.jungle-theme::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 7rem;
  height: 7rem;
  border: 1.75px solid rgba(45, 106, 79, 0.35);
  border-radius: 50% 40% 55% 45%;
  opacity: 0.55;
}

.jungle-theme::before {
  top: -1.5rem;
  left: -1.5rem;
  transform: rotate(-18deg);
}

.jungle-theme::after {
  bottom: -2rem;
  right: -1rem;
  transform: rotate(24deg);
  width: 9rem;
  height: 9rem;
}

.jungle-banner {
  text-align: center;
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

.jungle-banner__text {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 2.4vw, 1rem);
  color: #1b4332;
  padding: 0.35rem 1rem;
  border: 1.75px solid #2d6a4f;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.js-card {
  position: relative;
  max-width: 22rem;
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 1.75px solid #1b4332;
  background: linear-gradient(180deg, #d8f3dc, #b7e4c7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
  touch-action: none;
  z-index: 1;
}

.js-card[aria-disabled="true"] {
  opacity: 0.72;
}

.js-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  gap: 0;
}

.js-panel {
  position: relative;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #1b4332;
  cursor: pointer;
  border-right: 1px solid rgba(27, 67, 50, 0.2);
  border-bottom: 1px solid rgba(27, 67, 50, 0.2);
  min-height: 0;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.js-panel:nth-child(3n) {
  border-right: 0;
}

.js-panel:nth-child(n + 7) {
  border-bottom: 0;
}

.js-panel:disabled {
  cursor: default;
}

.js-panel:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
  z-index: 5;
}

.js-panel.is-revealed {
  background: rgba(255, 255, 255, 0.35);
}

.js-panel.is-win-symbol {
  background: rgba(255, 255, 255, 0.55);
  color: #081c15;
  box-shadow: inset 0 0 0 2px #40916c;
}

.js-panel__icon {
  width: 52%;
  height: 52%;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.js-panel.is-revealed .js-panel__icon {
  opacity: 1;
  transform: scale(1);
}

.js-scratch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 3;
  border-radius: inherit;
  touch-action: none;
}

.js-card.is-settled .js-scratch,
.js-card[aria-disabled="true"] .js-scratch {
  pointer-events: none;
}

.js-hint {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: var(--space-3) auto 0;
  max-width: 40ch;
  position: relative;
  z-index: 1;
}

.jungle-theme .game-result[data-tone="good"] {
  color: #1b4332;
}

.jungle-theme .game-result[data-tone="bad"] {
  color: #9b2226;
}

@media (prefers-reduced-motion: reduce) {
  .js-panel__icon {
    transition: none;
  }
}
