/* Development / slot / fish modals — restored from prior game.css layout */

#overlay .modal.mine-dev .sub,
#overlay .modal.boost-pick .sub {
  text-align: center;
  color: #b8d0c4;
  font-size: 13px;
  margin: 6px 0 10px;
}

#overlay .mine-up {
  border: 1px solid #9d8854;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(120deg, #435044, #273e3e);
  display: flex;
  gap: 12px;
  align-items: center;
}
#overlay .mine-up-copy {
  flex: 1;
  min-width: 0;
  font-weight: bold;
  font-size: 16px;
}
#overlay .mine-up-copy strong {
  display: block;
  color: #ffe09a;
}
#overlay .mine-up-copy small {
  display: block;
  font-size: 11px;
  font-weight: normal;
  color: #d1d2b2;
  margin-top: 5px;
  line-height: 1.4;
}
#overlay .mine-up .buy-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 96px;
  margin-top: 0;
  padding: 9px 12px;
  font-size: 14px;
  white-space: nowrap;
}
#overlay .mine-up .buy-level img {
  width: 18px;
  height: 18px;
}

#overlay .stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}
#overlay .stat {
  border-radius: 10px;
  background: #0f282c88;
  padding: 11px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
#overlay .stat .stat-icon {
  display: grid;
  place-items: center;
  min-height: 36px;
}
#overlay .stat .stat-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
#overlay .stat b {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #f8d68f;
  line-height: 1.15;
}
#overlay .stat small {
  display: block;
  color: #a9c3bc;
  font-size: 10px;
  font-weight: normal;
  line-height: 1.25;
}
#overlay .upgrade-log {
  font-size: 11px;
  color: #adc5bb;
  text-align: center;
  margin-top: 13px;
}
#overlay .modal.mine-dev .gold.wide img,
#overlay .modal .gold.wide img {
  width: 18px;
  height: 18px;
  vertical-align: -3px;
}

/* Boost pick cards */
#overlay .offer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 4px;
}
#overlay .choice {
  --rarity: #9faeac;
  position: relative;
  background: linear-gradient(145deg, color-mix(in srgb, var(--rarity) 23%, #213638), #112e33);
  border: 1.5px solid var(--rarity);
  border-radius: 13px;
  padding: 12px 7px 8px;
  text-align: center;
  color: var(--ink, #f9ebd1);
  box-shadow: 0 5px 12px #0003;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
#overlay .choice.rarity-1 { --rarity: #77c6ed; }
#overlay .choice.rarity-2 { --rarity: #c28bff; }
#overlay .choice.rarity-3 { --rarity: #ffce65; }
#overlay .choice .rarity {
  font-size: 8px;
  text-transform: uppercase;
  color: var(--rarity);
  font-weight: bold;
  letter-spacing: 0.4px;
  min-height: 14px;
}
#overlay .choice .effect-icon {
  display: grid;
  place-items: center;
  height: 56px;
  font-size: 34px;
  color: var(--rarity);
}
#overlay .choice .effect-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
#overlay .choice h3 {
  font-size: 12px;
  line-height: 1.3;
  min-height: 33px;
  margin: 5px 0;
  color: #f4ebcf;
}
#overlay .choice .amount {
  color: #fff0bd;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
}
#overlay .choice .who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 41px;
  font-size: 9px;
  line-height: 1.25;
  color: #b7cfc4;
  margin-top: 4px;
}
#overlay .choice .who-art {
  width: 30px;
  height: 33px;
  object-fit: contain;
}

/* Slot */
#overlay .resource-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a9c4b9;
  font-size: 13px;
  margin-bottom: 4px;
}
#overlay .resource-line span { flex: 1; min-width: 0; }
#overlay .resource-line b {
  flex: 0 0 auto;
  color: #f2d490;
  white-space: nowrap;
}
#overlay .slot-window {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 2px solid #b69b60;
  border-radius: 17px;
  background: #0b2027;
  box-shadow: inset 0 3px 12px #0009, 0 6px 0 #0b252b;
  margin: 16px 0;
  position: relative;
}
#overlay .slot-window:after {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border-radius: 9px;
  background: linear-gradient(#041b2266, transparent 22%, transparent 75%, #041b2266);
}
#overlay .reel {
  height: 110px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(#e4c998, #fff1cf 40%, #f0dab1);
  border: 1px solid #ffd79955;
}
#overlay .reel-strip { will-change: transform; }
#overlay .symbol {
  height: 110px;
  display: grid;
  place-items: center;
}
#overlay .symbol img {
  width: 80%;
  height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 3px 2px #70512b44);
}
#overlay .mini-result {
  text-align: center;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 15px;
  color: #d4e0c5;
  line-height: 1.45;
}
#overlay .mini-result strong {
  display: block;
  font-size: 26px;
  color: #ffd77c;
}

/* Fishing */
#overlay .fishing-lake {
  height: 220px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(#0c2a4344, #082b3855),
    url("../art/fishing-scene.webp") center / cover;
  border: 1px solid #5e8988;
  margin-top: 10px;
}
#overlay .rod {
  position: absolute;
  width: 130px;
  height: 5px;
  background: linear-gradient(#be9b58, #6f482a);
  left: 10%;
  top: 70%;
  transform: rotate(-48deg);
  transform-origin: left;
  border: 1px solid #dab76e;
  border-radius: 4px;
}
#overlay .line {
  position: absolute;
  left: 47%;
  top: 34%;
  width: 1px;
  height: 40%;
  background: #d5ecd399;
  transform: rotate(-16deg);
}
#overlay .bobber {
  position: absolute;
  left: 58%;
  top: 65%;
  width: 12px;
  height: 21px;
  border: 2px solid #ebd9a9;
  background: linear-gradient(#ea6849 50%, #fff0cf 50%);
  border-radius: 45%;
  animation: bob 1.7s infinite ease-in-out;
  z-index: 2;
}
#overlay .ripples {
  position: absolute;
  left: 51%;
  top: 72%;
  width: 70px;
  height: 15px;
  border: 1px solid #a5e4d788;
  border-radius: 50%;
  animation: ripple 2s infinite;
}
#overlay .timing {
  position: relative;
  height: 18px;
  border-radius: 10px;
  background: #10282f;
  border: 1px solid #668982;
  margin-top: 16px;
}
#overlay .timing-zone {
  position: absolute;
  left: 35%;
  width: 30%;
  height: 100%;
  background: #47b58e99;
  border-left: 1px solid #9ee3a4;
  border-right: 1px solid #9ee3a4;
}
#overlay .timing-pointer {
  position: absolute;
  height: 26px;
  width: 5px;
  background: #ffd775;
  top: -5px;
  left: 0;
  border: 1px solid #fff2ca;
  border-radius: 3px;
  box-shadow: 0 0 8px #ffe19277;
  transform: translateX(-50%);
}
#overlay .fish-progress {
  height: 4px;
  background: #102a30;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}
#overlay .fish-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #91d9b0;
  transition: width 0.1s;
}
#overlay .catch-art {
  position: absolute;
  inset: 10%;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #021b30aa);
  animation: catch 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes bob {
  50% { transform: translateY(4px) rotate(4deg); }
}
@keyframes ripple {
  to { transform: scale(1.5); opacity: 0; }
}
@keyframes catch {
  from { transform: translateY(120px) scale(0.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #overlay .bobber,
  #overlay .ripples,
  #overlay .catch-art { animation: none; }
}
