.tzj-game {
  --tzj-blue: #1769aa;
  --tzj-blue-light: #2185d0;
  --tzj-green: #5f9d4f;
  --tzj-green-dark: #477f3b;
  --tzj-earth: #b78f61;
  --tzj-ink: #17202a;
  --tzj-paper: #ffffff;
  --tzj-yellow: #ffd84a;
  width: 100%;
  max-width: 900px;
  margin: 24px auto;
  font-family: inherit;
  color: var(--tzj-ink);
}

.tzj-game * {
  box-sizing: border-box;
}

.tzj-game__topbar {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tzj-game__brand {
  display: grid;
  gap: 2px;
}

.tzj-game__brand strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.05;
}

.tzj-game__eyebrow {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf4fb;
  color: var(--tzj-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.tzj-game__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  gap: 8px;
}

.tzj-game__stat {
  min-width: 84px;
  padding: 9px 12px;
  border: 1px solid rgba(23, 32, 42, .12);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.tzj-game__stat span {
  display: block;
  margin-bottom: 2px;
  color: #64717d;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tzj-game__stat strong {
  font-size: 20px;
  line-height: 1;
}

.tzj-game__stage {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(23, 32, 42, .14);
  border-radius: 24px;
  background: var(--tzj-green);
  box-shadow: 0 18px 55px rgba(34, 56, 31, .13);
  touch-action: none;
  user-select: none;
}

.tzj-game__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.tzj-game__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 28, 18, .38);
  backdrop-filter: blur(2px);
  transition: opacity .18s ease, visibility .18s ease;
}

.tzj-game__overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tzj-game__overlay-card {
  width: min(420px, 100%);
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  text-align: center;
}

.tzj-game__tractor-icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.tzj-game__overlay-card h3 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.08;
}

.tzj-game__overlay-card p {
  margin: 0;
}

.tzj-game__start {
  margin-top: 18px;
  min-width: 150px;
  border: 0;
  border-radius: 14px;
  padding: 13px 24px;
  background: var(--tzj-blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 0 #0e4a79;
  transform: translateY(0);
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}

.tzj-game__start:hover {
  filter: brightness(1.05);
}

.tzj-game__start:active {
  transform: translateY(5px);
  box-shadow: 0 3px 0 #0e4a79;
}

.tzj-game__hint {
  margin-top: 18px !important;
  color: #6b7885;
  font-size: 13px;
}

.tzj-game__mobile-controls {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.tzj-game__mobile-controls button {
  min-height: 58px;
  border: 1px solid rgba(23, 32, 42, .14);
  border-radius: 16px;
  background: #fff;
  color: var(--tzj-blue);
  font: inherit;
  font-size: 28px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

@media (max-width: 700px) {
  .tzj-game {
    margin: 16px auto;
  }

  .tzj-game__topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tzj-game__stats {
    width: 100%;
  }

  .tzj-game__stat {
    min-width: 0;
    padding: 8px;
  }

  .tzj-game__stage {
    border-radius: 18px;
  }

  .tzj-game__mobile-controls {
    display: grid;
  }
}
