/* ===== 花园得金币（种花玩法弹窗）===== */
/* 全局 [class*="-modal"] 缩放动画在部分环境不推进会导致弹窗停在 opacity:0 不可见（styles.css 同类问题已有先例），
   花园弹窗强制禁用动画并保证始终可见 */
.flower-modal-mask,
.flower-modal {
  animation: none !important;
  opacity: 1 !important;
}
.flower-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(5, 3, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.flower-modal {
  position: relative;
  width: 780px;
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 12px;
  border: 2px solid #a9742f;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.55), 0 0 26px rgba(169, 116, 47, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.35);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.flower-modal-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(24, 14, 3, 0.9), rgba(38, 22, 4, 0.86) 55%, rgba(18, 10, 2, 0.92));
  pointer-events: none;
}
.flower-modal-body {
  position: relative;
  z-index: 1;
  padding: 10px 12px 12px;
  max-height: 88vh;
  overflow: hidden;
  color: #f3e3c3;
}
.flower-modal-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(169, 116, 47, 0.45);
  margin-bottom: 8px;
}
.flower-modal-title {
  flex: 1;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #f2c96b;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.flower-modal-gold {
  font-size: 13px;
  color: #f3e3c3;
}
.flower-gold-num {
  color: #ffd76a;
  font-weight: 800;
}
.flower-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #a9742f;
  background: rgba(20, 12, 2, 0.7);
  color: #e8c98b;
  font-size: 13px;
  cursor: pointer;
}
.flower-modal-close:hover { background: #a9742f; color: #1a1002; }
.flower-modal-loading {
  text-align: center;
  padding: 50px 0;
  color: #d9bc85;
  letter-spacing: 2px;
}
/* 主区：左网格 + 右操作并排 */
.flower-main {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.flower-pots-wrap {
  flex: 1;
  min-width: 0;
}
/* 花园网格 */
.flower-pots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 84px;
  gap: 7px;
  max-height: 448px;
  overflow-y: auto;
}
.flower-pots::-webkit-scrollbar { width: 5px; }
.flower-pots::-webkit-scrollbar-thumb { background: #a9742f; border-radius: 3px; }
.flower-pot {
  position: relative;
  border-radius: 8px;
  border: 2px solid rgba(169, 116, 47, 0.55);
  background: rgba(10, 6, 1, 0.55);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.flower-pot:hover { border-color: #d9a94f; transform: translateY(-1px); }
.flower-pot.selected {
  border-color: #ffd76a;
  box-shadow: 0 0 0 2px rgba(255, 215, 106, 0.4), 0 0 12px rgba(255, 215, 106, 0.35);
}
.flower-pot.mature { border-color: #ffd76a; box-shadow: inset 0 0 12px rgba(255, 215, 106, 0.35); }
.flower-pot-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flower-pot-ripe {
  position: absolute;
  top: 4px;
  right: 4px;
  background: linear-gradient(135deg, #ffdf8a, #c8892c);
  color: #2a1500;
  font-size: 11px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.flower-pot-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2;
}
.flower-pot-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a9a6a, #d9e88a);
  transition: width 0.3s;
}
.flower-pot-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(243, 227, 195, 0.55);
  font-size: 12px;
  letter-spacing: 2px;
}
.flower-pot-empty i {
  font-style: normal;
  font-size: 10px;
  color: rgba(243, 227, 195, 0.35);
}
.flower-pots-info {
  text-align: center;
  font-size: 11.5px;
  color: #d9bc85;
  margin-top: 6px;
  letter-spacing: 1px;
}
/* 选中花位操作区（右栏，纵向排布） */
.flower-act {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(10, 6, 1, 0.5);
  border: 1px solid rgba(169, 116, 47, 0.4);
  box-sizing: border-box;
}
.flower-act-left {
  flex: none;
  text-align: center;
}
.flower-act-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid #a9742f;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.flower-act-img-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(169, 116, 47, 0.18);
  color: #d9bc85;
  font-size: 34px;
}
.flower-act-name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #f2c96b;
  letter-spacing: 1px;
}
.flower-act-progress { margin-top: 4px; }
.flower-act-progress-bar {
  height: 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(169, 116, 47, 0.5);
  overflow: hidden;
}
.flower-act-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4a9a6a, #d9e88a, #ffd76a);
  transition: width 0.3s;
}
.flower-act-progress-txt {
  margin-top: 3px;
  font-size: 11px;
  color: #d9bc85;
}
.flower-act-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
/* 照料条 */
.flower-care-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
}
.flower-care-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid rgba(169, 116, 47, 0.55);
  background: rgba(18, 10, 2, 0.65);
  cursor: pointer;
  color: #e8c98b;
  transition: all 0.15s;
}
.flower-care-btn:hover {
  border-color: #ffd76a;
  background: rgba(169, 116, 47, 0.35);
  box-shadow: 0 0 8px rgba(255, 215, 106, 0.3);
}
.flower-care-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  background-repeat: no-repeat;
}
.flower-care-btn em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 1px;
}
/* 操作按钮 */
.flower-act-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.flower-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #a9742f;
  background: linear-gradient(180deg, #7a5122, #4c2d0e);
  color: #f3e3c3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.flower-btn:hover {
  border-color: #ffd76a;
  box-shadow: 0 0 10px rgba(255, 215, 106, 0.4);
}
.flower-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.flower-btn-feed { background: linear-gradient(180deg, #6d5a1e, #3c2c0c); }
.flower-btn-harvest { background: linear-gradient(180deg, #8a2f17, #4a1306); }
.flower-btn-harvest.ready {
  border-color: #ff8a4a;
  background: linear-gradient(180deg, #b54618, #6b1d05);
  animation: flowerHarvestGlow 1.4s ease-in-out infinite;
}
@keyframes flowerHarvestGlow {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 138, 74, 0.4); }
  50% { box-shadow: 0 0 16px rgba(255, 138, 74, 0.85); }
}
.flower-btn-seed { background: linear-gradient(180deg, #3c7a4a, #1a3d24); }
.flower-btn-seed.ready {
  border-color: #7adf9a;
  box-shadow: 0 0 10px rgba(122, 223, 154, 0.45);
}
.flower-btn-cancel { background: rgba(40, 28, 10, 0.8); }
.flower-btn-place { width: 100%; padding: 10px; font-size: 14px; }
.flower-act-tip {
  text-align: center;
  font-size: 10.5px;
  color: #c9a868;
}
/* 播种选择 */
.flower-choose { text-align: center; }
.flower-choose-title {
  font-size: 13px;
  color: #f2c96b;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.flower-choose-list {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.flower-choose-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid rgba(169, 116, 47, 0.55);
  background: rgba(18, 10, 2, 0.65);
  cursor: pointer;
  color: #e8c98b;
  transition: all 0.15s;
}
.flower-choose-item:hover {
  border-color: #ffd76a;
  box-shadow: 0 0 8px rgba(255, 215, 106, 0.35);
}
.flower-choose-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #a9742f;
  background: #fff;
}
.flower-choose-item em {
  font-style: normal;
  font-size: 10px;
}
.flower-choose .flower-btn-cancel { margin-top: 6px; }
/* 底部栏 */
.flower-bottom {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(169, 116, 47, 0.4);
  padding-top: 8px;
  margin-top: 2px;
}
.flower-btn-refresh { background: linear-gradient(180deg, #4a6a2a, #24370f); }
.flower-btn-auto { background: linear-gradient(180deg, #2a4a6a, #0f2437); }
.flower-btn-auto.on {
  border-color: #6ad0ff;
  box-shadow: 0 0 10px rgba(106, 208, 255, 0.5);
}
.flower-btn-auto.locked {
  opacity: 0.6;
  cursor: not-allowed;
}
.flower-toast {
  margin-top: 8px;
  text-align: center;
  font-size: 12.5px;
  color: #ffd76a;
  letter-spacing: 1px;
  min-height: 16px;
}
.flower-modal-body::-webkit-scrollbar { width: 6px; }
.flower-modal-body::-webkit-scrollbar-thumb { background: #a9742f; border-radius: 3px; }
