/* ==========================================================================
   BOTTOM ACTION DOCK, RAID BUTTON, HINT STRIP & REACTION CONTROLS
   ========================================================================== */

/* 5. Rigid Locked-Grid Action Dock (Dark Footer Below Table) */
.bottom-tray {
  position: relative;
  z-index: 26;
  height: 124px;
  background: linear-gradient(180deg, #101628 0%, #090d18 100%);
  border-top: 1.5px solid rgba(240, 180, 58, 0.24);
  padding: 7px 10px 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.action-dock-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px;
  gap: 6px;
  height: 86px;
  width: 100%;
}

.action-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 40px);
  gap: 6px;
  width: 100%;
}

.act-btn {
  position: relative;
  width: 100%;
  height: 40px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 4px;
  font-family: 'Fredoka', sans-serif;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.14s ease, opacity 0.2s ease;
}

.act-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.act-btn-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-tag-owned {
  background: rgba(74, 222, 128, 0.26);
  border: 1px solid rgba(134, 239, 172, 0.65);
  color: #dcfce7;
}

.act-tag-bluff {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.act-tag-safe {
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

.act-tag-lock {
  background: rgba(15, 23, 42, 0.85);
  color: #fca5a5;
}

.act-btn:hover:not(:disabled) { filter: brightness(1.1); }
.act-btn:active:not(:disabled) { filter: brightness(0.92); }
.act-btn:disabled {
  opacity: 0.42;
  filter: grayscale(0.65);
  cursor: not-allowed;
}

.act-steal { background: linear-gradient(180deg, #c93b47 0%, #8f1d28 100%); box-shadow: 0 2px 0 #591017; }
.act-assassinate { background: linear-gradient(180deg, #278a59 0%, #165938 100%); box-shadow: 0 2px 0 #0c3520; }
.act-exchange { background: linear-gradient(180deg, #9843cc 0%, #682194 100%); box-shadow: 0 2px 0 #3f115c; }
.act-income { background: linear-gradient(180deg, #d89b2b 0%, #a56a12 100%); box-shadow: 0 2px 0 #633d06; }
.act-aid { background: linear-gradient(180deg, #4f9b5e 0%, #2f6c3c 100%); box-shadow: 0 2px 0 #1b4123; }
.act-tax { background: linear-gradient(180deg, #3576c7 0%, #1d4b8c 100%); box-shadow: 0 2px 0 #102d56; }

/* Slim Vertical RAID -7 Button */
.raid-btn {
  width: 68px;
  height: 86px;
  border-radius: 10px;
  background: linear-gradient(180deg, #524136 0%, #291e19 100%);
  border: 2px solid #846d57;
  box-shadow: 0 2px 0 #17100c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2px;
  color: #d6c5b3;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.25s ease;
}

.raid-btn.raid-ready {
  background: linear-gradient(180deg, #ffe066 0%, #df8d16 62%, #9a4f06 100%);
  border-color: #fff2b2;
  color: #3d1800;
  box-shadow: 0 2px 0 #663002, 0 0 16px rgba(251, 191, 36, 0.72);
}

.raid-btn.raid-mandatory {
  animation: raidPulse 1s ease-in-out infinite alternate;
}

@keyframes raidPulse {
  0% { box-shadow: 0 2px 0 #663002, 0 0 12px rgba(251, 191, 36, 0.7); }
  100% { box-shadow: 0 2px 0 #663002, 0 0 22px rgba(249, 115, 22, 0.95); }
}

.raid-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Fixed-Height Single-Line Stationary Hint Strip */
.dock-hint-strip {
  height: 18px;
  line-height: 18px;
  width: 100%;
  text-align: center;
  font-size: 10.5px;
  font-weight: 800;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Reaction Panel (Multi-line Prompt + Countdown Progress Bar + Explicit Buttons) */
.reaction-bar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  height: 100%;
  width: 100%;
}

.reaction-prompt-box {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #fde68a;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 4px;
}

.reaction-timer-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.reaction-timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #4ade80, #facc15);
  transition: width 0.15s linear;
}

.reaction-timer-fill.urgent {
  background: #fb7185;
}

.reaction-btn-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  height: 46px;
  width: 100%;
}

.react-btn {
  height: 46px;
  border-radius: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 4px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  transition: filter 0.12s ease;
}

.react-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
}

.react-btn-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 9px;
  font-weight: 900;
  opacity: 0.92;
  line-height: 1;
}

.react-btn:hover { filter: brightness(1.08); }
.react-btn:active { filter: brightness(0.92); }

.react-pass {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 3px 0 #14532d;
}

.react-challenge {
  background: linear-gradient(180deg, #fb7185 0%, #dc2626 100%);
  border: 1.5px solid #fecdd3;
  box-shadow: 0 3px 0 #7f1d1d;
}

.react-block {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  border: 1.5px solid #bae6fd;
  box-shadow: 0 3px 0 #0c4a6e;
}
