/* 道具版：魔法紫 + 金，叠在经典版样式之上 */

.props-mode {
  background: #0a0c14;
}

.props-mode .scene {
  background: radial-gradient(ellipse 80% 60% at 50% 110%, #1a1040 0%, #0a0c14 55%);
}

.props-mode .scene-glow--left {
  background: rgba(124, 77, 255, 0.22);
}

.props-mode .scene-glow--right {
  background: rgba(255, 180, 60, 0.12);
}

.props-mode .scene-grid {
  background-image:
    linear-gradient(rgba(124, 77, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 77, 255, 0.07) 1px, transparent 1px);
}

.props-mode .mark {
  background: linear-gradient(145deg, #c4b5fd, #7c3aed);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
  animation: markBob 2.8s ease-in-out infinite;
}

.props-mode .brand h1 {
  color: #e9d5ff;
}

.props-mode .back {
  color: #c4b5fd;
}

.props-mode .tool-select select,
.props-mode .btn.ghost {
  border-color: rgba(196, 181, 253, 0.28);
  color: #e9d5ff;
}

.props-mode .status strong,
.props-mode .board-kicker,
.props-mode .msg,
.props-mode .side h2 {
  color: #e9d5ff;
}

.props-mode .board-wrap {
  border-color: rgba(196, 181, 253, 0.2);
}

.props-mode .board-wrap.is-tense {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 32px rgba(124, 58, 237, 0.15), 0 16px 40px rgba(0, 0, 0, 0.35);
}

.props-mode .board-wrap.is-critical {
  border-color: rgba(251, 191, 36, 0.5);
}

.props-mode .num-cell.is-live {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.4), transparent 45%),
    linear-gradient(145deg, #ddd6fe, #a78bfa 55%, #7c3aed);
  box-shadow: 0 4px 0 #5b21b6, 0 0 16px rgba(124, 58, 237, 0.3);
}

.props-mode .num-cell.is-live:hover:not(:disabled) {
  box-shadow: 0 7px 0 #5b21b6, 0 0 24px rgba(167, 139, 250, 0.45);
}

.props-mode .num-cell.is-probed {
  color: #6ee7b7;
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.35), rgba(6, 78, 59, 0.4));
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.45);
  cursor: not-allowed;
  opacity: 0.9;
}

.props-mode .num-cell.is-probed .num::after {
  content: "✓";
  display: block;
  font-size: 0.55rem;
  opacity: 0.85;
}

.props-mode .leg-probed::before {
  background: rgba(16, 185, 129, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.5);
}

.props-mode .side {
  border-color: rgba(196, 181, 253, 0.18);
}

.props-mode .rules .t {
  color: #e9d5ff;
  font-weight: 800;
  margin: 0.85rem 0 0.45rem;
}

/* 道具栏与模式 UI */
.duo-setup {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
  align-items: end;
}

.duo-name {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.duo-name input {
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: #e9d5ff;
}

.duo-first {
  display: grid;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 7.5rem;
}

.duo-first select {
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  color: #e9d5ff;
  cursor: pointer;
}

.prop-pool {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(196, 181, 253, 0.2);
}

.pool-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pool-chip {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #ddd6fe;
}

.prop-zone {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.prop-row {
  padding: 0.55rem 0.65rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 181, 253, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prop-row.is-turn {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.12);
}

.prop-row-title {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: #c4b5fd;
}

.free-offer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.18), rgba(30, 20, 60, 0.45));
  border: 1px solid rgba(196, 181, 253, 0.22);
}

.free-offer-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a78bfa;
}

.free-offer-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 360px;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.08);
}

.free-offer-card .icon {
  font-size: 2rem;
  line-height: 1;
}

.free-offer-card .meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.free-offer-card .meta strong {
  font-size: 1.05rem;
  color: #fde68a;
}

.free-offer-card .meta span {
  font-size: 0.82rem;
  color: #c4b5fd;
  line-height: 1.35;
}

.free-offer-actions {
  display: flex;
  gap: 0.5rem;
}

.free-offer-hint {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(196, 181, 253, 0.75);
}

.free-offer--empty {
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
  border-color: rgba(196, 181, 253, 0.15);
}

.free-offer--empty .free-offer-hint {
  color: rgba(196, 181, 253, 0.55);
}

.prop-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.prop-bar--free {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .prop-bar--free {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .duo-setup {
    grid-template-columns: 1fr;
  }
}

.prop-btn.is-dimmed {
  opacity: 0.35;
}

.side-sub {
  margin: 1rem 0 0;
  font-family: var(--font-d);
  font-size: 1.2rem;
  color: #e9d5ff;
}

.mode-rules .t:first-child {
  margin-top: 0.65rem;
}

.prop-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.35rem 0.5rem;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.22), rgba(30, 20, 60, 0.55));
  color: #ede9fe;
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
}

.prop-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.prop-btn:active:not(:disabled) {
  transform: translateY(0);
}

.prop-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.prop-btn.is-armed {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.25);
  animation: propArmed 1.4s ease-in-out infinite;
}

@keyframes propArmed {
  0%, 100% { box-shadow: 0 0 12px rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 24px rgba(251, 191, 36, 0.45); }
}

.prop-btn .icon {
  font-size: 1.35rem;
  line-height: 1;
}

.prop-btn .name {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.prop-btn .charges {
  position: absolute;
  top: 0.28rem;
  right: 0.32rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1rem;
  color: #fde68a;
}

.hint-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.hint-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #ddd6fe;
  animation: chipIn 0.35s ease both;
}

.hint-badge.is-freeze {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}

.hint-badge.is-shield {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.hint-badge.is-banana {
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(234, 179, 8, 0.45);
  color: #fef08a;
}

.prop-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.prop-list li {
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(196, 181, 253, 0.14);
  font-size: 0.86rem;
  color: var(--muted);
}

.prop-list strong {
  color: #ddd6fe;
  font-weight: 800;
}

.prop-toast {
  position: fixed;
  left: 50%;
  top: 18%;
  z-index: 90;
  transform: translateX(-50%) translateY(-8px);
  padding: 0.75rem 1.2rem;
  border-radius: 16px;
  font-family: var(--font-d);
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(76, 29, 149, 0.95));
  border: 1px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.prop-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shield-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.shield-layer.is-active .shield-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(253, 224, 71, 0.7), transparent 65%);
  animation: flashBang 0.6s ease-out forwards;
}

.shield-core {
  font-size: clamp(3.5rem, 14vw, 6rem);
  filter: drop-shadow(0 0 30px rgba(251, 191, 36, 0.75));
  transform: scale(0.3);
  opacity: 0;
}

.shield-layer.is-active .shield-core {
  animation: coreBurst 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

.shield-text {
  position: absolute;
  bottom: 20%;
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(1.4rem, 4.5vw, 2.2rem);
  color: #fde68a;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  opacity: 0;
}

.shield-layer.is-active .shield-text {
  animation: textRise 0.5s 0.2s ease-out forwards;
}

.history li.is-prop {
  background: rgba(124, 58, 237, 0.18);
  border-color: rgba(196, 181, 253, 0.35);
  color: #ddd6fe;
}
