.spoiler {
  margin-bottom: 1rem;
}
.spoiler-click:hover {
  cursor: pointer;
  opacity: 0.8;
}
.scode-code a,
.scode-code a:hover,
.scode-code a:link,
.scode-code a:visited,
.scode-code a:active {
  color: inherit;
  text-decoration: none;
  cursor: default !important;
}
.spoiler-click,
.spoiler-text {
  padding: 5px;
}
.spoiler-click {
  text-transform: uppercase;
  color: #fff;
}
.spoiler-text {
  border: 1px dashed #666;
  border-top: 0;
}
pre.scode-code {
  padding: 5px;
  line-height: 15px;
  background-color: #c6dfef;
  border: 1px solid #000;
  font-family: monospace;
  font-size: 11px;
}
pre.scode-code > code {
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -pre-wrap;
  white-space: -o-pre-wrap;
  word-wrap: break-word;
}

.scode-box {
  padding: 10px;
  margin-bottom: 1rem;
}

.decoda-table td {
  border: 1px solid #eee;
  padding: 5px;
}
.decoda-table {
  table-layout: fixed;
  border: 1px solid #eee;
  border-collapse: collapse;
}

/*
* Survival / Holiday action buttons
*/
.surv-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0;
  position: relative;
}
.surv-actions-inline {
  display: inline-flex;
  margin: 2px 0;
}
.surv-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  background-size: 200% auto;
  line-height: 1.4;
  animation: surv-shimmer 3.5s linear infinite;
}
@keyframes surv-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.surv-btn img { display: block; transition: transform 0.15s; }
.surv-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.surv-btn:hover img {
  animation: surv-icon-bounce 0.4s ease;
}
@keyframes surv-icon-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}
.surv-btn:active { transform: scale(0.97); }
.surv-btn[disabled],
.surv-btn.surv-cooldown {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.6);
  animation: surv-recharge 2s ease-in-out infinite;
}
@keyframes surv-recharge {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.35; }
}
.surv-btn.surv-busy { opacity: 0.6; pointer-events: none; }

/* Kiss — pink candy */
.surv-kiss {
  background: linear-gradient(135deg, #f472b6 0%, #ec4899 40%, #f9a8d4 50%, #ec4899 60%, #db2777 100%);
  border-color: #db2777;
}
.surv-kiss:hover { background: linear-gradient(135deg, #ec4899, #db2777); color: #fff; }
.surv-kiss.surv-pop { box-shadow: 0 0 12px 4px rgba(236, 72, 153, 0.5); }

/* Bite — zombie green */
.surv-bite {
  background: linear-gradient(135deg, #86efac 0%, #22c55e 40%, #a7f3d0 50%, #22c55e 60%, #16a34a 100%);
  border-color: #16a34a;
}
.surv-bite:hover { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.surv-bite.surv-pop { box-shadow: 0 0 12px 4px rgba(34, 197, 94, 0.5); }

/* Dance — masquerade gold */
.surv-dance {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 40%, #fde68a 50%, #f59e0b 60%, #d97706 100%);
  border-color: #d97706;
  color: #451a03;
}
.surv-dance:hover { background: linear-gradient(135deg, #f59e0b, #d97706); color: #451a03; }
.surv-dance.surv-pop { box-shadow: 0 0 12px 4px rgba(245, 158, 11, 0.5); }

/* Shake on success */
@keyframes surv-shake {
  0%, 100% { transform: translateX(0); }
  10%, 50%, 90% { transform: translateX(-3px); }
  30%, 70% { transform: translateX(3px); }
}
.surv-shake { animation: surv-shake 0.5s ease-in-out; }

/* Pop on successful action — spring overshoot */
@keyframes surv-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.25); }
  60% { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.surv-pop {
  animation: surv-pop 0.4s ease-in-out;
  transition: box-shadow 0.4s;
}

/* Particle burst on success */
@keyframes surv-particle {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.5); }
}

/* Inline feedback below buttons */
.surv-feedback {
  width: 100%;
  font-size: 11px;
  line-height: 1.3;
  padding: 2px 0;
  color: #2e7d32;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
}
.surv-feedback-error { color: #c62828; }
.surv-feedback-show { opacity: 1; max-height: 3em; }

.hover-user {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.masquerade-ha {
  height: 100px;
  width: 100px;
  border-radius: 5px;
  border: 1px solid #eee;
  background-position: center -25px;
}
