.sp-tempelspiel-root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #dedbb2;
  color: #17261f;
  border: 1px solid rgba(23, 38, 31, 0.16);
  border-radius: 14px;
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto;
  box-sizing: border-box;
}
.sp-tempelspiel-root * {
  box-sizing: border-box;
}
.sp-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(23, 38, 31, 0.16);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.sp-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #17261f;
}
.sp-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .sp-grid {
    grid-template-columns: 1fr;
  }
}
.sp-panel {
  background: #dedbb2;
  border: 1px solid rgba(23, 38, 31, 0.2);
  color: #17261f;
  border-radius: 12px;
  padding: 18px;
}
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.15s ease;
}
.sp-btn:hover:not(:disabled) {
  opacity: 0.92;
}
.sp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.sp-btn-primary {
  background: #b45309;
  color: #ffffff;
}
.sp-btn-secondary {
  background: #e9e6cd;
  color: #17261f;
  border: 1px solid rgba(23, 38, 31, 0.16);
}
.sp-btn-danger {
  background: #be123c;
  color: #ffffff;
}
.sp-input,
.sp-select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(23, 38, 31, 0.24);
  background: #ffffff;
  color: #17261f;
  font-size: 0.95rem;
}
.sp-board-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: #10241d;
  background-size: cover;
  background-position: center;
}
.sp-board-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 18, 0.48);
}
.sp-field-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.sp-field-node img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.sp-field-node span {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}
.sp-field-temple {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, #f59e0b, #92400e);
  border: 3px solid #fef3c7;
  z-index: 4;
  font-size: 12px;
}
.sp-field-start {
  width: 56px;
  height: 56px;
  background: #047857;
  border: 2px solid #d1fae5;
}
.sp-tokens {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  z-index: 6;
}
.sp-token {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.sp-decks-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 640px) {
  .sp-decks-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.sp-deck-card {
  border-radius: 10px;
  padding: 10px;
  color: #ffffff;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.sp-deck-card img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 6px;
}
.sp-action-card {
  background: #ffffff;
  color: #0f172a;
  border-radius: 12px;
  padding: 18px;
  border: 2px solid #d97706;
  margin-top: 14px;
}
.sp-player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(23, 38, 31, 0.12);
  color: #17261f;
  margin-bottom: 6px;
}
.sp-player-row.is-active {
  background: #fef3c7;
  border: 1px solid #d97706;
}
.sp-log {
  max-height: 170px;
  overflow-y: auto;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #33443b;
  border-top: 1px solid rgba(23, 38, 31, 0.16);
  padding-top: 10px;
  margin-top: 12px;
}
