.sp-stats {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

#sp-message {
  min-height: 24px;
  margin-bottom: 18px;
  text-align: center;
  color: #2f6821;
  font-weight: 700;
}

.sp-panel {
  margin-top: 20px;
}

.sp-board {
  width: min(92vw, 440px);
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid rgba(30, 51, 26, 0.2);
  border-radius: 0;
  background: linear-gradient(180deg, #315c28 0%, #203f1c 100%);
  box-shadow: 0 22px 44px rgba(19, 42, 15, 0.26);
}

.sp-tile {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  appearance: none;
  cursor: pointer;
  background-repeat: no-repeat;
  background-color: #274e22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: box-shadow 120ms ease;
}

.sp-tile:hover {
  box-shadow: inset 0 0 0 2px rgba(255, 244, 198, 0.5);
}

.sp-empty {
  background: rgba(19, 42, 15, 0.72);
  border: 1px dashed rgba(255, 244, 198, 0.48);
  box-shadow: none;
  cursor: default;
}

.sp-modal-open {
  overflow: hidden;
}

.sp-reward-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 35, 15, 0.82);
  z-index: 999;
}

.sp-reward-modal[hidden] {
  display: none;
}

.sp-reward-dialog {
  width: min(92vw, 720px);
  padding: 24px;
  border: 1px solid rgba(255, 244, 198, 0.38);
  border-radius: 8px;
  background: linear-gradient(180deg, #315c28 0%, #203f1c 100%);
  box-shadow: 0 28px 60px rgba(7, 18, 5, 0.45);
}

.sp-reward-dialog h2 {
  margin: 0 0 14px;
  color: #f4f8fb;
  text-align: center;
}

.sp-reward-close {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  margin: 0 0 12px auto;
  padding: 10px 14px;
  border: 1px solid rgba(255, 244, 198, 0.36);
  border-radius: 4px;
  background: rgba(18, 35, 15, 0.72);
  color: #f4f8fb;
  cursor: pointer;
}

.sp-reward-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 6px;
}
