/* components.reaction-modal.css
 * Styles for the reactive power cards modal
 */

/* Global override: No rounded corners anywhere in reactive modals */
#kot-reaction-modal button,
#kot-reaction-modal .btn,
#kot-reaction-modal .btn-primary,
#kot-reaction-modal .btn-secondary,
#kot-reaction-modal .btn-cancel,
#kot-reaction-modal .btn-confirm,
.psychic-probe-confirm-modal button,
.psychic-probe-confirm-modal .btn,
.psychic-probe-result-modal button,
.psychic-probe-result-modal .btn,
.psychic-probe-heart-loss-modal button,
.psychic-probe-heart-loss-modal .btn,
.card-removal-animation-modal button,
.card-removal-animation-modal .btn {
  border-radius: 0 !important;
}

/* Modal overlay and positioning */
#kot-reaction-modal.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999998 !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.reaction-modal-content {
  background: #1c1c1c;
  border: 2px solid #111;
  border-radius: 0;
  box-shadow: 6px 6px 0 #000, 0 0 0 2px #000 inset, 0 10px 26px -8px rgba(0,0,0,.7);
  color: #e4e4e4;
  font-family: 'Nunito', system-ui, sans-serif;
  max-width: 640px;
  margin: 2vh auto;
}

.reaction-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  padding: 1.6vh 2vw;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

.reaction-header h2 {
  margin: 0 0 0.4vh;
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.reaction-context {
  font-size: 0.9rem;
  opacity: 0.95;
  color: #fff;
}

.reaction-body {
  padding: 1.6vh 2vw;
}

.player-resources {
  display: flex;
  gap: 1.5vw;
  margin-bottom: 1.6vh;
  padding: 1vh 1.5vw;
  background: #111;
  border-radius: 0;
  justify-content: center;
  align-items: center;
}

.player-resources .resource {
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.player-resources .health {
  color: #ff6b6b;
}

.player-resources .energy {
  color: #feca57;
}

.player-resources .vp {
  color: #48dbfb;
}

.available-reactions {
  display: flex;
  flex-direction: column;
  gap: 1vh;
  margin-bottom: 1.6vh;
}

.reaction-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.reaction-option.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.reaction-option.disabled .reaction-card {
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-color: #222;
  filter: grayscale(0.7);
}

.reaction-option.disabled .reaction-icon {
  opacity: 0.4;
}

.reaction-option.disabled .reaction-info h3,
.reaction-option.disabled .reaction-info p {
  color: #666;
}

.reaction-option:not(.disabled):hover .reaction-card {
  transform: translateY(-2px);
  box-shadow: 0 0.4vh 1.2vh rgba(0,0,0,0.4);
}

.reaction-card {
  display: flex;
  align-items: center;
  gap: 1.5vw;
  padding: 1.2vh 1.5vw;
  background: linear-gradient(135deg, #2d3436, #222);
  border: 1px solid #333;
  border-radius: 0;
  transition: all 0.2s ease;
}

.reaction-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.reaction-info {
  flex: 1;
}

.reaction-info h3 {
  margin: 0 0 0.4vh;
  font-size: 1.2rem;
  font-family: 'Bangers', cursive;
  letter-spacing: 0.5px;
  color: #e4e4e4;
}

.reaction-info p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.4;
}

.reaction-cost {
  display: inline-block;
  margin-top: 0.4vh;
  padding: 0.2vh 0.8vw;
  background: #feca57;
  color: #2d3436;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 0;
}

.disabled-reason {
  display: inline-block;
  margin-top: 0.6vh;
  padding: 0.4vh 0.8vw;
  font-size: 0.75rem;
  color: #ff9999;
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 0;
  font-style: italic;
  font-weight: 500;
}

/* Card-specific UI */
.reaction-card-ui {
  background: #111;
  padding: 1.6vh 2vw;
  border-radius: 0;
  margin-bottom: 1.6vh;
}

.reaction-card-ui .card-header {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 1.2vh;
  padding-bottom: 1vh;
  border-bottom: 1px solid #333;
}

.reaction-card-ui .card-icon {
  font-size: 2rem;
}

.reaction-card-ui .card-header h3 {
  margin: 0;
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.reaction-card-ui .card-description {
  margin-bottom: 1.6vh;
  font-size: 0.9rem;
  line-height: 1.5;
}

.damage-value {
  color: #ff6b6b;
  font-weight: 700;
}

/* Rapid Healing UI */
.healing-controls {
  margin-bottom: 1.6vh;
}

.healing-controls label {
  display: block;
  margin-bottom: 0.8vh;
  font-weight: 600;
  font-size: 0.9rem;
}

.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.8vh;
}

.heal-slider {
  width: 100%;
  height: 0.6vh;
  background: #333;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.heal-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 2vh;
  height: 2vh;
  background: #00b894;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.heal-slider::-webkit-slider-thumb:hover {
  background: #00a085;
  transform: scale(1.1);
}

.heal-slider::-moz-range-thumb {
  width: 2vh;
  height: 2vh;
  background: #00b894;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.heal-slider::-moz-range-thumb:hover {
  background: #00a085;
  transform: scale(1.1);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.heal-display {
  font-weight: 700;
  color: #00b894;
  font-size: 1.1rem;
}

.cost-display {
  color: #feca57;
  font-weight: 600;
}

.health-preview {
  background: #1a1a1a;
  padding: 1.2vh 1.5vw;
  border-radius: 0;
  margin-bottom: 1.6vh;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6vh;
  font-size: 0.9rem;
}

.preview-row:last-child {
  margin-bottom: 0;
}

.preview-row .label {
  opacity: 0.8;
}

.preview-row .value {
  font-weight: 600;
}

.preview-row .value.health {
  color: #ff6b6b;
}

.preview-row .value.survival {
  color: #00b894;
  font-weight: 700;
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.healing-preview {
  border-top: 1px solid #333;
  padding-top: 0.6vh;
}

.damage-preview {
  border-top: 1px solid #333;
  padding-top: 0.6vh;
  font-weight: 700;
}

/* Stretchy UI */
.dice-display {
  display: flex;
  gap: 8px;
  margin-bottom: 1.6vh;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1vh 0;
}

/* Use the same dice styling as dice-tray, but smaller for modal */
.reaction-modal-content .die {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: radial-gradient(circle at 24% 26%, rgba(0, 0, 0, 0.05) 0 10%, transparent 11%) 0 0/12px 12px,
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.68, -.55, .265, 1.55), box-shadow .28s, filter .28s;
  position: relative;
  box-shadow: 3px 3px 0px #000, 4px 4px 12px rgba(0, 0, 0, 0.4);
  transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(0deg);
  background-size: 8px 8px, 100% 100%;
}

.reaction-modal-content .die:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 6px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.reaction-modal-content .die:hover {
  transform: perspective(300px) rotateX(15deg) rotateY(-15deg) translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* Glow effect for changed die */
.reaction-modal-content .die.changed-die {
  animation: die-glow 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px #48dbfb, 0 0 25px rgba(72, 219, 251, 0.5), 3px 3px 0px #000;
}

@keyframes die-glow {
  0%, 100% {
    box-shadow: 0 0 15px #48dbfb, 0 0 25px rgba(72, 219, 251, 0.5), 3px 3px 0px #000;
  }
  50% {
    box-shadow: 0 0 25px #48dbfb, 0 0 40px rgba(72, 219, 251, 0.7), 3px 3px 0px #000;
  }
}

/* Face picker modal */
.face-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.face-picker-tray {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: #1c1c1c;
  border: 3px solid #000;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Face picker dice inherit all the .die styling */
.face-picker-die {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: radial-gradient(circle at 24% 26%, rgba(0, 0, 0, 0.05) 0 10%, transparent 11%) 0 0/12px 12px,
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.68, -.55, .265, 1.55), box-shadow .28s, filter .28s;
  position: relative;
  box-shadow: 3px 3px 0px #000, 4px 4px 12px rgba(0, 0, 0, 0.4);
  transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(0deg);
  background-size: 8px 8px, 100% 100%;
}

.face-picker-die:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 6px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.face-picker-die:hover {
  transform: perspective(300px) rotateX(20deg) rotateY(-20deg) translateY(-6px) scale(1.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.die-option {
  padding: 1.2vh;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.die-option:not(.locked):hover {
  border-color: #48dbfb;
  transform: translateY(-2px);
}

.die-option.selected {
  border-color: #48dbfb;
  background: #1e3a5f;
}

.die-option.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.die-face {
  font-size: 2.5rem;
  margin-bottom: 0.4vh;
}

.die-label {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
}

.new-face-options {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.8vh;
  margin: 1vh 0;
}

.face-option-btn {
  padding: 1vh;
  font-size: 1.5rem;
  background: #1a1a1a;
  border: 2px solid #333;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  color: inherit;
}

.face-option-btn:hover {
  border-color: #48dbfb;
  transform: scale(1.05);
}

.face-option-btn.selected {
  border-color: #48dbfb;
  background: #1e3a5f;
}

.stretchy-cost {
  text-align: center;
  font-weight: 600;
  color: #feca57;
  font-size: 0.9rem;
  margin-top: 0.8vh;
}

/* Psychic Probe UI */
.psychic-probe-ui .opponent-info {
  margin: 1.2vh 0 0.8vh;
  font-size: 0.95rem;
  color: #b8b8b8;
}

/* Psychic Probe dice use EXACT same styling as Stretchy dice */
.psychic-probe-die {
  /* Identical to .stretchy-die and .reaction-modal-content .die */
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: radial-gradient(circle at 24% 26%, rgba(0, 0, 0, 0.05) 0 10%, transparent 11%) 0 0/12px 12px,
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
  color: #000;
  border: 3px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.68, -.55, .265, 1.55), box-shadow .28s, filter .28s;
  position: relative;
  box-shadow: 3px 3px 0px #000, 4px 4px 12px rgba(0, 0, 0, 0.4);
  transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(0deg);
  background-size: 8px 8px, 100% 100%;
}

.psychic-probe-die:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 6px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.psychic-probe-die:hover {
  transform: perspective(400px) rotateX(8deg) rotateY(-4deg) translateY(-4px) scale(1.05);
  box-shadow: 3px 3px 0px #000, 6px 6px 16px rgba(138, 43, 226, 0.4);
}

.psychic-probe-die.rolling {
  animation: dieRoll 0.6s ease-in-out;
}

.psychic-probe-die.psychic-probe-changed {
  animation: psychicProbeGlow 1.5s ease-in-out;
}

@keyframes psychicProbeGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(138, 43, 226, 0); }
  50% { box-shadow: 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.4); }
}

/* Psychic Probe Confirmation Modal */
.psychic-probe-confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psychic-probe-confirm-modal .confirm-modal-content {
  background: #1c1c1c;
  border: 2px solid #111;
  border-radius: 0;
  padding: 0;
  min-width: 520px;
  box-shadow: 6px 6px 0 #000, 0 0 0 2px #000 inset, 0 10px 26px -8px rgba(0,0,0,.7);
}

.psychic-probe-confirm-modal .confirm-modal-header {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  padding: 1.6vh 2vw;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}

.psychic-probe-confirm-modal h2 {
  margin: 0;
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.psychic-probe-confirm-modal .confirm-modal-body {
  padding: 2vh 2.4vw;
}

.psychic-probe-confirm-modal p {
  margin: 0 0 1.6vh 0;
  font-size: 1.1rem;
  color: #e4e4e4;
  line-height: 1.5;
}

.psychic-probe-confirm-modal .die-prompt {
  display: flex;
  align-items: center;
  gap: 0.8vw;
  margin-bottom: 1.6vh;
}

.psychic-probe-confirm-modal .current-die {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: radial-gradient(circle at 24% 26%, rgba(0, 0, 0, 0.05) 0 10%, transparent 11%) 0 0/12px 12px,
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
  color: #000;
  border: 4px solid #000;
  border-radius: 0;
  box-shadow: 4px 4px 0px #000, 6px 6px 15px rgba(0, 0, 0, 0.4);
  transform: perspective(400px) rotateX(5deg) rotateY(-2deg);
  background-size: 8px 8px, 100% 100%;
  position: relative;
}

.psychic-probe-confirm-modal .current-die:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 6px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.psychic-probe-confirm-modal .current-die.rolling {
  animation: koShakeSide 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  border-color: #000 !important;
  background: linear-gradient(135deg, #e0e0e0 0%, #f0f0f0 50%, #d0d0d0 100%) !important;
  will-change: transform;
  pointer-events: none;
}

@keyframes koShakeSide {
  0%   { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(0deg) translateX(0) }
  10%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(-12deg) translateX(-7px) }
  20%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(12deg) translateX(7px) }
  30%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(-14deg) translateX(-9px) }
  40%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(14deg) translateX(9px) }
  50%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(-11deg) translateX(-7px) }
  60%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(11deg) translateX(7px) }
  70%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(-8deg) translateX(-6px) }
  80%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(8deg) translateX(6px) }
  90%  { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(-5deg) translateX(-4px) }
  100% { transform: perspective(400px) rotateX(5deg) rotateY(-2deg) rotateZ(0deg) translateX(0) }
}

.psychic-probe-confirm-modal .current-die.psychic-probe-changed {
  animation: psychicProbeGlow 2s ease-in-out;
  box-shadow: 4px 4px 0px #000, 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.6) !important;
}

@keyframes psychicProbeGlow {
  0%, 100% {
    box-shadow: 4px 4px 0px #000, 6px 6px 15px rgba(0, 0, 0, 0.4);
  }
  50% {
    box-shadow: 4px 4px 0px #000, 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 215, 0, 0.6);
    transform: perspective(400px) rotateX(5deg) rotateY(-2deg) scale(1.1);
  }
}

.psychic-probe-confirm-modal .warning {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 1rem;
  background: rgba(255, 107, 107, 0.1);
  padding: 1.2vh 1.5vw;
  border-radius: 0.4vh;
  border-left: 3px solid #ff6b6b;
  margin-bottom: 2vh;
  display: flex;
  align-items: center;
  gap: 0.6vw;
}

.psychic-probe-confirm-modal .confirm-modal-actions {
  display: flex;
  gap: 1.2vw;
  margin-top: 2.4vh;
  justify-content: flex-end;
}

.psychic-probe-confirm-modal .btn-cancel {
  padding: 1vh 2vw;
  background: #2d3436;
  border: 2px solid #555;
  border-radius: 0 !important;
  color: #e4e4e4;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
  box-shadow: 2px 2px 0 #000;
}

.psychic-probe-confirm-modal .btn-cancel:hover {
  background: #3a3a3a;
  border-color: #777;
  transform: translateY(-1px);
}

.psychic-probe-confirm-modal .btn-confirm {
  padding: 1vh 2vw;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border: 2px solid #ee5a24;
  border-radius: 0 !important;
  color: white;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  box-shadow: 2px 2px 0 #000;
}

.psychic-probe-confirm-modal .btn-confirm:hover {
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
  border-color: #ff6b6b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
}

/* Psychic Probe Result Modal - shows after die is rolled */
.psychic-probe-result-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.psychic-probe-result-modal .confirm-modal-content {
  background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
  border: 2px solid #8a2be2;
  border-radius: 12px;
  padding: 2.4vh 2.4vw;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.psychic-probe-result-modal h3 {
  margin: 0 0 1.6vh;
  font-size: 1.4rem;
  color: #8a2be2;
  text-align: center;
}

.result-die-display {
  display: flex;
  justify-content: center;
  margin: 2vh 0;
}

.result-die-display .result-die {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  background: radial-gradient(circle at 24% 26%, rgba(0, 0, 0, 0.05) 0 10%, transparent 11%) 0 0/12px 12px,
    linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
  color: #000;
  border: 4px solid #000;
  border-radius: 0;
  position: relative;
  box-shadow: 4px 4px 0px #000, 6px 6px 15px rgba(0, 0, 0, 0.4);
  transform: perspective(400px) rotateX(5deg) rotateY(-2deg);
  background-size: 8px 8px, 100% 100%;
  animation: resultDiePulse 2s ease-in-out infinite;
}

.result-die-display .result-die:before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 6px;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

@keyframes resultDiePulse {
  0%, 100% { 
    box-shadow: 4px 4px 0px #000, 6px 6px 15px rgba(0, 0, 0, 0.4);
  }
  50% { 
    box-shadow: 4px 4px 0px #000, 0 0 20px rgba(138, 43, 226, 0.8), 0 0 40px rgba(138, 43, 226, 0.5);
    transform: perspective(400px) rotateX(5deg) rotateY(-2deg) scale(1.1);
  }
}

.psychic-probe-result-modal p {
  margin: 1vh 0;
  font-size: 1.1rem;
  color: #e4e4e4;
  text-align: center;
}

.psychic-probe-result-modal .warning {
  color: #ff6b6b;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.6vh;
}

.confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
}

.confirm-modal-content {
  position: relative;
  background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
  border: 2px solid #6c5ce7;
  border-radius: 12px;
  padding: 2.4vh 2.4vw;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.confirm-modal-content h3 {
  margin: 0 0 1.2vh;
  font-size: 1.3rem;
  color: #6c5ce7;
}

.confirm-modal-content p {
  margin: 0.8vh 0;
  font-size: 1rem;
  color: #e4e4e4;
}

.confirm-modal-content .warning {
  color: #ff6b6b;
  font-size: 0.9rem;
  font-weight: 600;
}

.confirm-modal-actions {
  display: flex;
  gap: 1.2vw;
  margin-top: 1.6vh;
  justify-content: flex-end;
}

.confirm-modal-actions .btn-cancel {
  padding: 0.8vh 1.8vw;
  background: #2d3436;
  border: 2px solid #555;
  border-radius: 0 !important;
  color: #e4e4e4;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000;
}

.confirm-modal-actions .btn-cancel:hover {
  background: #3a3a3a;
  border-color: #777;
}

.confirm-modal-actions .btn-confirm {
  padding: 0.8vh 1.8vw;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  border: 2px solid #ee5a24;
  border-radius: 0 !important;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000;
}

.confirm-modal-actions .btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.4);
}

/* Psychic Probe Heart Message */
.psychic-probe-heart-message {
  text-align: center;
  padding: 2.4vh 1.6vw;
}

.psychic-probe-heart-message h3 {
  font-size: 1.5rem;
  color: #ff6b6b;
  margin-bottom: 1.2vh;
  animation: heartPulse 1s ease-in-out infinite;
}

@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.psychic-probe-heart-message p {
  font-size: 1.1rem;
  margin-bottom: 2vh;
  color: #e4e4e4;
}

.psychic-probe-heart-message .btn-primary {
  padding: 1vh 2.4vw;
  font-size: 1.1rem;
}

/* Heart Loss Modal - Full screen overlay */
.psychic-probe-heart-loss-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.psychic-probe-heart-loss-modal .confirm-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
}

.psychic-probe-heart-loss-modal .confirm-modal-content {
  position: relative;
  background: linear-gradient(135deg, #4a1a1a 0%, #2d0f0f 100%);
  border: 3px solid #ff6b6b;
  border-radius: 16px;
  padding: 3vh 3vw;
  max-width: 500px;
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.3);
  text-align: center;
}

.psychic-probe-heart-loss-modal h2 {
  font-size: 2rem;
  color: #ff6b6b;
  margin: 0 0 1.5vh;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.psychic-probe-heart-loss-modal p {
  font-size: 1.2rem;
  color: #ffb8b8;
  margin: 1vh 0;
  line-height: 1.6;
}

.psychic-probe-heart-loss-modal .die-result {
  font-size: 3rem;
  margin: 2vh 0;
  animation: dieResultPop 0.5s ease-out;
}

@keyframes dieResultPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.psychic-probe-heart-loss-modal button {
  margin-top: 2vh;
  padding: 1.2vh 3vw;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border: 2px solid #ff8787;
  border-radius: 0;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000;
}

.psychic-probe-heart-loss-modal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Card Removal Animation Modal */
.card-removal-animation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999997;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  pointer-events: all;
}

.animation-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: all;
  cursor: not-allowed;
}

.animation-modal-content {
  position: relative;
  background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
  border: 2px solid #6c5ce7;
  border-radius: 0;
  padding: 2.4vh 2.4vw;
  max-width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 6px 6px 0 #000, 0 0 0 2px #000 inset;
  pointer-events: none;
}

.animation-modal-content h3 {
  text-align: center;
  margin: 0 0 2vh;
  font-size: 1.4rem;
  color: #e4e4e4;
}

.owned-cards-grid {
  display: flex;
  flex-direction: row;
  gap: 1.2vw;
  padding: 1vh;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.owned-cards-grid .power-card {
  background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
  border: 2px solid #555;
  border-radius: 0;
  padding: 1.6vh 1.2vw;
  text-align: center;
  transition: all 0.4s ease;
  min-width: 140px;
  max-width: 160px;
  flex-shrink: 0;
}

.owned-cards-grid .power-card .card-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.8vh;
}

.owned-cards-grid .power-card .card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e4e4e4;
}

/* Card removal animations */
.owned-cards-grid .power-card.removing-card {
  border-color: #ff6b6b;
}

.owned-cards-grid .power-card.glowing {
  animation: cardGlowPulse 1.5s ease-in-out;
  border-color: #ff6b6b;
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255, 107, 107, 0.3);
}

@keyframes cardGlowPulse {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.6), 0 0 40px rgba(255, 107, 107, 0.3);
  }
  50% { 
    transform: scale(1.05); 
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.8), 0 0 60px rgba(255, 107, 107, 0.5);
  }
}

.owned-cards-grid .power-card.fading {
  animation: cardFadeOut 1s ease-out forwards;
}

@keyframes cardFadeOut {
  0% { 
    opacity: 1; 
    transform: scale(1);
  }
  100% { 
    opacity: 0; 
    transform: scale(0.8);
  }
}

.owned-cards-grid .power-card.shifting {
  animation: cardShift 0.4s ease-out;
}

@keyframes cardShift {
  0% { transform: translateX(20px); opacity: 0.5; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Mobile Carousel Mode for Card Removal */
.card-removal-animation-modal.mobile-carousel-mode .animation-modal-content {
  max-width: 90vw;
  padding: 2vh 2vw;
}

.mobile-carousel-content h3 {
  text-align: center;
  margin-bottom: 2vh;
  font-size: 1.2rem;
}

.mobile-carousel-content .ppcm-carousel {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.mobile-carousel-content .ppcm-carousel-card {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.6vh;
}

.mobile-carousel-content .ppcm-carousel-card .pc-card {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mobile-carousel-content .ppcm-carousel-card .pc-card.fading {
  opacity: 0;
  transform: scale(0.8);
}

.mobile-carousel-content .ppcm-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6vw;
}

.mobile-carousel-content .ppcm-carousel-btn {
  padding: 0.8vh 1.6vw;
  background: #2d3436;
  border: 2px solid #555;
  border-radius: 0;
  color: #e4e4e4;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000;
}

.mobile-carousel-content .ppcm-carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.mobile-carousel-content .ppcm-carousel-btn:not(:disabled):hover {
  background: #3a3a3a;
  border-color: #777;
}

.mobile-carousel-content .ppcm-card-counter {
  font-size: 1rem;
  color: #b8b8b8;
  min-width: 80px;
  text-align: center;
}

.mobile-carousel-content .ppcm-empty {
  text-align: center;
  padding: 4vh 2vw;
  font-size: 1.1rem;
  color: #888;
  font-style: italic;
}

/* Power Card Deck Glow */
.power-card-deck.deck-glow {
  animation: deckGlowEffect 2s ease-in-out;
}

@keyframes deckGlowEffect {
  0%, 100% { 
    box-shadow: none;
  }
  50% { 
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 0 0 40px rgba(108, 92, 231, 0.5);
    transform: scale(1.05);
  }
}

.opponents-list {
  display: flex;
  flex-direction: column;
  gap: 1.2vh;
  margin-bottom: 1.6vh;
}

.opponent-card {
  background: #1a1a1a;
  padding: 1.2vh 1.5vw;
  border-radius: 0;
  border: 1px solid #333;
}

.opponent-card h4 {
  margin: 0 0 0.8vh;
  font-size: 1rem;
  font-weight: 600;
  color: #e4e4e4;
}

.opponent-dice {
  display: flex;
  gap: 0.8vh;
  flex-wrap: wrap;
}

.die-reroll-btn {
  padding: 0.8vh 1.2vw;
  background: #2d3436;
  border: 2px solid #333;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: inherit;
  box-shadow: 2px 2px 0 #000;
}

.die-reroll-btn:hover {
  border-color: #6c5ce7;
  transform: translateY(-2px);
}

.die-reroll-btn.selected {
  border-color: #6c5ce7;
  background: #4834d4;
  color: #fff;
}

.no-dice {
  font-style: italic;
  opacity: 0.6;
  font-size: 0.85rem;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 1vw;
  justify-content: center;
  margin-top: 1.6vh;
}

.reaction-actions {
  display: flex;
  gap: 1vw;
  justify-content: center;
  margin-top: 1.6vh;
}

.btn {
  padding: 1vh 2vw;
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid;
  box-shadow: 2px 2px 0 #000;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #000;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 #000;
}

.btn-primary {
  background: #00b894;
  border-color: #00a085;
  color: #fff;
}

.btn-primary:hover {
  background: #00a085;
}

.btn-secondary {
  background: #636e72;
  border-color: #4a5458;
  color: #fff;
}

.btn-secondary:hover {
  background: #4a5458;
}

/* Modal animations */
.modal {
  animation: modalFadeIn 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.closing {
  animation: modalFadeOut 0.22s cubic-bezier(0.55, 0, 0.55, 0.2);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
}

/* Mobile responsive */
@media (max-width: 1024px) {
  /* Mobile-optimized reaction modal */
  #kot-reaction-modal.modal {
    align-items: center;
    padding: 0;
  }
  
  .reaction-modal-content {
    max-width: 95vw;
    width: 95vw;
    margin: 0 auto;
    border-radius: 0;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .reaction-header {
    padding: 1.2vh 3vw;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .reaction-header h2 {
    font-size: 1.3rem;
    margin: 0 0 0.2vh;
  }
  
  .reaction-context {
    font-size: 0.8rem;
  }
  
  .reaction-body {
    padding: 1.2vh 3vw 2.5vh;
  }
  
  .player-resources {
    gap: 3vw;
    font-size: 0.9rem;
    padding: 1vh 2.5vw;
    margin-bottom: 1.2vh;
  }
  
  .available-reactions {
    gap: 0.8vh;
    margin-bottom: 1.2vh;
  }
  
  .reaction-card {
    gap: 2.5vw;
    padding: 1vh 2.5vw;
  }
  
  .reaction-icon {
    font-size: 2rem;
  }
  
  .reaction-info h3 {
    font-size: 1rem;
    margin: 0 0 0.2vh;
  }
  
  .reaction-info p {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .reaction-cost {
    padding: 0.2vh 1.5vw;
    font-size: 0.7rem;
    margin-top: 0.3vh;
  }
  
  .disabled-reason {
    padding: 0.3vh 1.5vw;
    font-size: 0.7rem;
    margin-top: 0.4vh;
  }
  
  .dice-display {
    gap: 8px;
    justify-content: center;
  }
  
  .dice-display .die,
  .psychic-probe-die {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  
  .new-face-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .btn {
    padding: 1.2vh 3.5vw;
    font-size: 1rem;
    min-height: 44px;
  }
  
  .card-description {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .opponent-info {
    font-size: 0.95rem;
    margin: 1.2vh 0 1vh;
  }
  
  /* Make confirmation modals more mobile-friendly */
  .psychic-probe-confirm-modal .confirm-modal-content,
  .psychic-probe-result-modal .confirm-modal-content,
  .psychic-probe-heart-loss-modal .confirm-modal-content {
    max-width: 88vw;
    margin: 0 6vw;
  }
  
  .result-die-display .result-die {
    width: 64px;
    height: 64px;
    font-size: 2.2rem;
  }
  
  .face-picker-modal {
    padding: 1.5vh;
  }
  
  .face-picker-content {
    max-width: 88vw;
  }
}

