﻿html,
body {
      max-width: 100%;
      overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

 body {
      font-family: Arial, sans-serif;
      background: #121212 !important;
      color: #e0e0e0 !important;
      padding: 5px;
    }
    .container {
      background: #1e1e1e !important;
      padding: 1vw;
      border-radius: 10px;
      max-width: 100%; 
      margin: auto;
    }
    .row {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .section-title {
      font-weight: bold;
      font-size: 18px;
      margin-bottom: 10px;
    }
    input[type="number"] {
      padding: 10px;
      font-size: 20px;
      width: 150px;
    }
    .result {
      font-size: 64px;
      margin-top: 20px;
      color: #bdfc9a;
    }
    input, button {
      background: #2e2e2e !important;
      color: #e0e0e0 !important;
      border: 1px solid #444 !important;
    }
    button {
      font-size: 18px;
      padding: 10px 20px;
      border-radius: 8px;
      cursor: pointer;
    }
	
    #modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y:auto;
  max-height: calc(5.5 * 48px + 10px);
}
    .fruit-button img {
      width: 70px;
      height: 70px;
      opacity: 0.5;
	  border: none;
    }

    .fruit-button {
      width: 90px;
      height: 90px;
      min-width: 90px;
      max-width: 90px;
      min-height: 90px;
      max-height: 90px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 8px 6px;
      box-sizing: border-box;
    }
   
	.fruit-button.active {
  box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #bdfc9a;
}
    .modifier-button {
      margin: 5px;
      padding: 10px;
      border-radius: 8px;
      background-color: #2c2c2c;
      color: #e0e0e0;
      border: 1px solid #444;
      cursor: pointer;
      transition: all 0.3s;
    }
	#togglePriceRangeBtn.active {
  background-color: #3a3a3a;
  border-color: #bdfc9a;
  box-shadow: 0 0 10px 4px #bdfc9a;
}
    .modifier-button.active {
      box-shadow: 0 0 10px 2px #bdfc9a;
      background-color: #3c3c3c;
    }
    .modifier-button.disabled {
      opacity: 0.3;
      pointer-events: none;
    }
    .category-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 20px;
    }
    .category-toggle-button {
      font-size: 18px;
      padding: 12px 24px;
      background-color: #3a3a3a;
      border: 2px solid #555;
      border-radius: 10px;
      cursor: pointer;
      transition: all 0.2s ease-in-out;
    }
	  .fruit-button.active {
  box-shadow: 0 0 10px 3px #bdfc9a;
  border: 2px solid #bdfc9a;
}
    .category-toggle-button.active {
      transform: scale(1.05);
      background-color: #4a4a4a;
      border-color: #bdfc9a;
    }
	.category-toggle-button.bee-glow {
  box-shadow: 0 0 8px 4px yellow;
  border-color: yellow;
}
.fruit-button span {
  text-transform: capitalize;
  font-size: 10px;
  line-height: 1.08;
  white-space: normal;
  overflow: hidden;
  text-overflow: unset;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  max-height: 3.24em;
  text-align: center;
  word-break: normal;
  overflow-wrap: break-word;
}
.category-wrapper {
  position: relative;
  height: 550px; 
  overflow: visible;
overflow-y: visible;
  margin-bottom: 20px;

}

.category-toggle-button.bee-default-glow {
  box-shadow: 0 0 12px 4px yellow;
  border-color: yellow;
}

.category-toggle-button.active {
  transform: scale(1.05);
  background-color: #4a4a4a;
  border-color: #bdfc9a;
  box-shadow: 0 0 10px 4px #bdfc9a;
}

.category-toggle-button.active.bee-default-glow {
  box-shadow: 0 0 10px 4px #bdfc9a;
  border-color: #bdfc9a;
}
.category-content {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  flex-wrap: wrap;
  gap: 10px;
  display: none;
  transition: opacity 0.3s ease-in-out;
  z-index: 0; 
padding-bottom: 10px;
}
.category-content.active {
  display: flex;
}

.google-form {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
  margin: 0 auto;
}

.desktop-ad {
  width: 100%;
  max-width: 320px;
  margin: 20px auto 0;
  text-align: center;
}
.form-ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.form-ad-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}
.input-group {
   display: flex;         
  flex-direction: row;  
  gap: 1rem;            
  flex-wrap: nowrap;    
  align-items: center; 
}

.input-block {
display: flex;
  flex-direction: column;
  min-width: 150px;
  margin: 2px 5px
}

.input-block.small {
  flex: 0 1 75px;
}

.input-block.large {
  flex: 1 1 100px;
}

.input-block input[type="number"],
.input-block input[type="range"] {
  font-size: 18px;
  padding: 8px;
  background: #2e2e2e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 6px;
  max-width: 200px;
}

.input-block label {
  margin-bottom: 6px;
  font-size: 14px;
}

#sliderValueLabel {
  margin-top: 6px;
  font-size: 14px;
  color: #ccc;
}

#layoutContainer.layout-side-by-side {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
#layoutContainer.layout-side-by-side .left-panel,
#layoutContainer.layout-side-by-side .right-panel {
  flex: 1;
min-width: 0;
}
#layoutContainer.layout-default .left-panel,
#layoutContainer.layout-default .right-panel {
  width: 100%;
}

#layoutToggleBtn {
  display: block;
}

#layoutContainer.layout-side-by-side .left-panel {
  max-height: calc(100vh - 60px); /* adjust if header/button takes more space */
  overflow-y: auto;
  padding-right: 10px;
  box-sizing: border-box;
}

.ad-slot-wrapper,
.pet-ad-slot {
  width: min(100%, 728px);
  min-height: 90px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 1079px) {
  .category-content:not(:has(#petAbilityButtons)) {
    max-height: 400px; /* or whatever fits your layout */
    overflow-y: auto;
    padding-right: 10px; /* optional: avoid scrollbar overlap */
  }
}

.top-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 1000;
}

#layoutContainer.layout-side-by-side .category-toggle-button:first-child {
  margin-left: 10px; /* or more, adjust as needed */
}

.modifier-button.active.rainbow {
  box-shadow:
    0 0 4px #ff0000,
    0 0 8px #ff9900,
    0 0 12px #33cc33,
    0 0 16px #3399ff,
    0 0 20px #9900cc;
}

.modifier-button.active.gold { box-shadow: 0 0 10px 3px gold; }
.modifier-button.active.pollinated { box-shadow: 0 0 10px 3px #ffaa1c; }
.modifier-button.active.celestial { box-shadow: 0 0 10px 3px #f04ac3; }
.modifier-button.active.moonlit { box-shadow: 0 0 10px 3px #999dff; }
.modifier-button.active.burnt { box-shadow: 0 0 10px 2px #444, 0 0 2px 1px white;}
.modifier-button.active.shocked { box-shadow: 0 0 10px 3px #ffe66d; }
.modifier-button.active.disco { box-shadow: 0 0 10px 3px #f48fd6; }
.modifier-button.active.choc { box-shadow: 0 0 10px 3px #3d2218; }
.modifier-button.active.zombified { box-shadow: 0 0 10px 3px #4bb973; }
.modifier-button.active.honeyglazed { box-shadow: 0 0 10px 3px #ffc94d; }
.modifier-button.active.jellygem { box-shadow: 0 0 10px 3px #f7d5ff; }
.modifier-button.active.honeygem { box-shadow: 0 0 10px 3px #ffb84d; }
.modifier-button.active.molten { box-shadow: 0 0 10px 3px #e76a0b; }
.modifier-button.active.frozen,
.modifier-button.active.chilled { box-shadow: 0 0 10px 3px #72bff5; }
.modifier-button.active.wet { box-shadow: 0 0 10px 3px #66b6e3; }
.modifier-button.active.meteoric { box-shadow: 0 0 10px 3px #403483; }
.modifier-button.active.heavenly { box-shadow: 0 0 10px 3px #F2EB99; }
.modifier-button.active.bloodlit { box-shadow: 0 0 10px 3px #B00000; }
.modifier-button.active.voidtouched { box-shadow: 0 0 10px 3px #D24CFF; }
.modifier-button.active.plasma { box-shadow: 0 0 10px 3px #9D2D6F; }
.modifier-button.active.cooked { box-shadow: 0 0 10px 3px #CC6000; }
.modifier-button.active.windstruck { box-shadow: 0 0 10px 3px #A2B9D1; }
.modifier-button.active.sundried { box-shadow: 0 0 10px 3px #CF5D00; }
.modifier-button.active.alienlike { box-shadow: 0 0 10px 3px #5CC6B1; }
.modifier-button.active.verdant { box-shadow: 0 0 10px 3px #386F28; }
.modifier-button.active.paradisal { box-shadow: 0 0 10px 3px #9DC237; }
.modifier-button.active.galactic { box-shadow: 0 0 10px 3px #A96CD4; }
.modifier-button.active.sandy { box-shadow: 0 0 10px 3px #D4BF8D; }
.modifier-button.active.clay { box-shadow: 0 0 10px 3px #966450; }
.modifier-button.active.ceramic { box-shadow: 0 0 10px 3px #EAB892; }
.modifier-button.active.aurora { box-shadow: 0 0 10px 3px #6258AC; }
.modifier-button.active.twisted { box-shadow: 0 0 10px 3px #B8B8B8; }
.modifier-button.active.cloudtouched { box-shadow: 0 0 10px 3px #DEFCFC; }
.modifier-button.active.ancientamber { box-shadow: 0 0 10px 3px #893314; }
.modifier-button.active.amber { box-shadow: 0 0 10px 3px #FFC000; }
.modifier-button.active.fried { box-shadow: 0 0 10px 3px #974D1C; }
.modifier-button.active.oldamber { box-shadow: 0 0 10px 3px #AC6E5E; }
.modifier-button.active.friendbound { box-shadow: 0 0 10px 3px #E9267E; }
.modifier-button.active.tempestous {box-shadow: 0 0 10px 3px #8CA0B1; }
.modifier-button.active.infected {box-shadow: 0 0 10px 3px #43A700; }
.modifier-button.active.tranquil {box-shadow: 0 0 10px 3px #FFFFFF; }
.modifier-button.active.radioactive {box-shadow: 0 0 10px 3px #62FF00; }
.modifier-button.active.corrupt {box-shadow: 0 0 10px 3px #B0171A; }
.modifier-button.active.sliced {box-shadow: 0 0 10px 3px #DFDFDF; }
.modifier-button.active.junkshock {box-shadow: 0 0 10px 3px #93F700; }
.modifier-button.active.oil {box-shadow: 0 0 10px 3px #32324B; }
.modifier-button.active.subzero {box-shadow: 0 0 10px 3px #00FFFF; }
.modifier-button.active.jackpot {box-shadow: 0 0 10px 3px #84F570; }
.modifier-button.active.silver {box-shadow: 0 0 10px 3px #C0C0C0; }
.modifier-button.active.acidic {box-shadow: 0 0 10px 3px #8cf947; }
.modifier-button.active.sauce {box-shadow: 0 0 10px 3px #C62D23; }
.modifier-button.active.boil {box-shadow: 0 0 10px 3px #8CF947; }
.modifier-button.active.aromatic {box-shadow: 0 0 10px 3px #8D8130; }
.modifier-button.active.touchdown {box-shadow: 0 0 10px 3px #CB5F00; }
.modifier-button.active.meatball {box-shadow: 0 0 10px 3px #843431; }
.modifier-button.active.blitzshock {box-shadow: 0 0 10px 3px #00BBEF; }
.modifier-button.active.pasta {box-shadow: 0 0 10px 3px #E5CC84; }
.modifier-button.active.static {box-shadow: 0 0 10px 3px #FDFDDF; }
.modifier-button.active.spaghetti {box-shadow: 0 0 10px 3px #F8BA8E; }
.modifier-button.active.bloom {box-shadow: 0 0 10px 3px #97C738; }
.modifier-button.active.eclipsed {box-shadow: 0 0 10px 3px #24405A; }
.modifier-button.active.fortune { box-shadow: 0 0 10px 3px gold; }
.modifier-button.active.lightcycle { box-shadow: 0 0 10px 3px #FFFFFF; }
.modifier-button.active.brainrot { box-shadow: 0 0 10px 3px #FD6B6D; }
.modifier-button.active.warped { box-shadow: 0 0 10px 3px #BD33FB; }
.modifier-button.active.maelstrom { box-shadow: 0 0 10px 3px #0F43D7; }
.modifier-button.active.gloom { box-shadow: 0 0 10px 3px #444564; }
.modifier-button.active.cosmic { box-shadow: 0 0 10px 3px #8B8ECA; }
.modifier-button.active.stormcharged { box-shadow: 0 0 10px 3px #8CBED5; }
.modifier-button.active.glitched { box-shadow: 0 0 10px 3px #D053C6; }
.modifier-button.active.glimmering { box-shadow: 0 0 10px 3px #FF87F5; } 
.modifier-button.active.abyssal { box-shadow: 0 0 10px 3px #44136E; } 
.modifier-button.active.infernal { box-shadow: 0 0 10px 3px #81DD62; }
.modifier-button.active.flaming { box-shadow: 0 0 10px 3px #B44419; }
.modifier-button.active.cracked{ box-shadow: 0 0 10px 3px #70695F; }
.modifier-button.active.luminous { box-shadow: 0 0 10px 3px #5A90D1; }
.modifier-button.active.corrosive { box-shadow: 0 0 10px 3px #69DC3D; }
.modifier-button.active.gnomed  { box-shadow: 0 0 10px 3px #3D8CBC; } 
.modifier-button.active.drenched { box-shadow: 0 0 10px 3px #3aa6ff; }
.modifier-button.active.chakra { box-shadow: 0 0 10px 3px #7a5cff; }
.modifier-button.active.corruptchakra { box-shadow: 0 0 10px 3px #8a1f2d; }
.modifier-button.active.harmonisedchakra { box-shadow: 0 0 10px 3px #b08cff; }
.modifier-button.active.foxfire { box-shadow: 0 0 10px 3px #4d7cff; }
.modifier-button.active.corruptfoxfire { box-shadow: 0 0 10px 3px #7a1e35; }
.modifier-button.active.harmonisedfoxfire { box-shadow: 0 0 10px 3px #7bc7ff; }
.modifier-button.active.ascendedchakra { box-shadow: 0 0 10px 3px #efe3ff; }
.modifier-button.active.rot { box-shadow: 0 0 10px 3px #6e7b36; }
.modifier-button.active.beanbound { box-shadow: 0 0 10px 3px #7fbf3f; }
.modifier-button.active.cyclonic { box-shadow: 0 0 10px 3px #6fb7d6; }
.modifier-button.active.toxic { box-shadow: 0 0 10px 3px #6eff5a; }
.modifier-button.active.enchanted { box-shadow: 0 0 10px 3px #ff7de9; }
.modifier-button.active.blazing { box-shadow: 0 0 10px 3px #ff7a2c; }
.modifier-button.active.fall { box-shadow: 0 0 10px 3px #c97a2b; }
.modifier-button.active.graceful { box-shadow: 0 0 10px 3px #f5d0ff; }
.modifier-button.active.gilded { box-shadow: 0 0 10px 3px #d4af37; }
.modifier-button.active.severed { box-shadow: 0 0 10px 3px #9b1c1c; }
.modifier-button.active.azure { box-shadow: 0 0 10px 3px #2e9bff; }
.modifier-button.active.astral { box-shadow: 0 0 10px 3px #d6c4ff; }
.modifier-button.active.sizzled { box-shadow: 0 0 10px 3px #ff9b42; }
.modifier-button.active.plagued { box-shadow: 0 0 10px 3px #86a700; }
.modifier-button.active.wiltproof { box-shadow: 0 0 10px 3px #c4a36b; }
.modifier-button.active.enlightened { box-shadow: 0 0 10px 3px #fff4a3; }
.modifier-button.active.slashbound { box-shadow: 0 0 10px 3px #d9d9d9; }
.modifier-button.active.oilboil { box-shadow: 0 0 10px 3px #5c6d8a; }
.modifier-button.active.biohazard { box-shadow: 0 0 10px 3px #9dff00; }
.modifier-button.active.gourmet { box-shadow: 0 0 10px 3px #e7a86a; }
.modifier-button.active.ghostly { box-shadow: 0 0 10px 3px #cfd8ff; }
.modifier-button.active.spooky { box-shadow: 0 0 10px 3px #8a70c7; }
.modifier-button.active.vamp { box-shadow: 0 0 10px 3px #b00030; }
.modifier-button.active.umbral { box-shadow: 0 0 10px 3px #4b3b6b; }
.modifier-button.active.shadowbound { box-shadow: 0 0 10px 3px #2c2c52; }
.modifier-button.active.moonbled { box-shadow: 0 0 10px 3px #8f4fa8; }
.modifier-button.active.contagion { box-shadow: 0 0 10px 3px #7b9f31; }
.modifier-button.active.blackout { box-shadow: 0 0 10px 3px #101820; }
.modifier-button.active.blight { box-shadow: 0 0 10px 3px #567a3a; }
.modifier-button.active.pestilent { box-shadow: 0 0 10px 3px #647a32; }
.modifier-button.active.wilted { box-shadow: 0 0 10px 3px #8a6b43; }
.modifier-button.active.withered { box-shadow: 0 0 10px 3px #5c4b36; }
.modifier-button.active.desolate { box-shadow: 0 0 10px 3px #8f7a62; }
.modifier-button.active.necrotic { box-shadow: 0 0 10px 3px #5f7f4a; }
.modifier-button.active.batty { box-shadow: 0 0 10px 3px #7a4fb0; }
.modifier-button.active.leeched { box-shadow: 0 0 10px 3px #6f0000; }
.modifier-button.active.glossy { box-shadow: 0 0 10px 3px #d9d0ff; }
.modifier-button.active.terran { box-shadow: 0 0 10px 3px #6b8e23; }
.modifier-button.active.stampede { box-shadow: 0 0 10px 3px #8b5a2b; }
.modifier-button.active.arid { box-shadow: 0 0 10px 3px #c9a060; }
.modifier-button.active.volcanic { box-shadow: 0 0 10px 3px #b34700; }
.modifier-button.active.nocturnal { box-shadow: 0 0 10px 3px #2f3d63; }
.modifier-button.active.mirage { box-shadow: 0 0 10px 3px #d8c27a; }
.modifier-button.active.brewed { box-shadow: 0 0 10px 3px #7b4a2e; }
.modifier-button.active.lush { box-shadow: 0 0 10px 3px #4caf50; }
.modifier-button.active.monsoon { box-shadow: 0 0 10px 3px #2f85c7; }
.modifier-button.active.wildfast { box-shadow: 0 0 10px 3px #72c85f; }
.modifier-button.active.twilight { box-shadow: 0 0 10px 3px #6b5fa8; }
.modifier-button.active.geode { box-shadow: 0 0 10px 3px #8f78d1; }
.modifier-button.active.glacial { box-shadow: 0 0 10px 3px #9be7ff; }
.modifier-button.active.webbed { box-shadow: 0 0 10px 3px #9fa8da; }
.modifier-button.active.crystalized { box-shadow: 0 0 10px 3px #b8f0ff; }
.modifier-button.active.charcoal { box-shadow: 0 0 10px 3px #4a4a4a; }
.modifier-button.active.alienated { box-shadow: 0 0 10px 3px #7cf0c6; }
.modifier-button.active.affluent { box-shadow: 0 0 10px 3px #f0d56c; }
.modifier-button.active.fractured { box-shadow: 0 0 10px 3px #9aa0ac; }
.modifier-button.active.mindbender { box-shadow: 0 0 10px 3px #b24cff; }
.modifier-button.active.snowtouched { box-shadow: 0 0 10px 3px #dff6ff; }
.modifier-button.active.supernatural { box-shadow: 0 0 10px 3px #c085ff; }
.modifier-button.active.sunscorched { box-shadow: 0 0 10px 3px #ffb347; }
.modifier-button.active.tempered { box-shadow: 0 0 10px 3px #9a7858; }
.modifier-button.active.stormbound { box-shadow: 0 0 10px 3px #5f8cff; }
.modifier-button.active.moist { box-shadow: 0 0 10px 3px #6fb5a7; }
.modifier-button.active.riptide { box-shadow: 0 0 10px 3px #1c8dd6; }
.modifier-button.active.coin { box-shadow: 0 0 10px 3px #f2c14e; }
.modifier-button.active.peppermint { box-shadow: 0 0 10px 3px #ff5f87; }
.modifier-button.active.snowy { box-shadow: 0 0 10px 3px #f5fbff; }
.modifier-button.active.ornamented { box-shadow: 0 0 10px 3px #d94d6a; }
.modifier-button.active.arctic { box-shadow: 0 0 10px 3px #88d8ff; }
.modifier-button.active.whalebound { box-shadow: 0 0 10px 3px #4f7dbf; }
.modifier-button.active.fierywork { box-shadow: 0 0 10px 3px #ff5c33; }
.modifier-button.active.fiery { box-shadow: 0 0 10px 3px #ff4500; }
.modifier-button.active.firework { box-shadow: 0 0 10px 3px #ff7f50; }
.modifier-button.active.eggnog { box-shadow: 0 0 10px 3px #f2e2b3; }
.modifier-button.active.festive { box-shadow: 0 0 10px 3px #2fad62; }
.modifier-button.active.clockwork { box-shadow: 0 0 10px 3px #b58b4c; }
.modifier-button.active.extraterrestrial { box-shadow: 0 0 10px 3px #6ef7c8; }
.modifier-button.active.sleepy { box-shadow: 0 0 10px 3px #8c8fbf; }
.modifier-button.active.whimsical { box-shadow: 0 0 10px 3px #ff9fe0; }
.modifier-button.active.mineral { box-shadow: 0 0 10px 3px #8ea3ad; }
.modifier-button.active.opulent { box-shadow: 0 0 10px 3px #d7b95f; }
.modifier-button.active.blizzard { box-shadow: 0 0 10px 3px #c8f5ff; }
.modifier-button.active.gale { box-shadow: 0 0 10px 3px #9bcde5; }
.modifier-button.active.grim { box-shadow: 0 0 10px 3px #5b5b5b; }
.modifier-button.active.goldsparkle { box-shadow: 0 0 10px 3px #ffd700; }
.modifier-button.active.ash { box-shadow: 0 0 10px 3px #8b8b8b; }
.modifier-button.active.gummy { box-shadow: 0 0 10px 3px #ff66c4; }
.modifier-button.active.haze { box-shadow: 0 0 10px 3px #d4c06a; }


@keyframes rainbowText {
  0%   { color: red; }
  33%  { color: blue; }
  66%  { color: green; }
  100% { color: red; }
}

.rainbow-animated {
  animation: rainbowText 3s infinite ease-in-out;
  font-weight: bold;
}

#mutationBreakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 75%;
}

#mutationBreakdown span {
  white-space: nowrap;
}

#owlXpInputs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  overflow: visible;
  max-height: unset;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(255, 255, 0, 1);
  }
  100% {
    box-shadow: 0 0 10px 2px rgba(255, 255, 0, 0.7);
  }
}

.glow-highlight {
  animation: pulse-glow 1.5s ease-in-out infinite;
  border: 2px solid #ffd700;
  border-radius: 6px;
}

.adsbygoogle[data-ad-format="autorelaxed"] {
  display: none !important;
}

@media (min-width: 1080px) {
  .right-banner-ad {
    position: fixed;
    top: 100px;
    right: 0;
    width: 10vw;
    max-width: 160px;
    height: auto;
    z-index: 1000;
    display: block;
    padding: 10px;
    box-sizing: border-box;
  }
}

/* Hide on mobile */
@media (max-width: 900px) {
  .right-banner-ad {
    display: none;
  }
}

#layoutContainer.layout-side-by-side .category-content.active {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  grid-auto-rows: 110px; /* Fixed row height */
  gap: 10px;
  padding-right: 10px;
  overflow-y: auto;
  max-height: calc(110px * 6 + 50px); /* 6 rows + gap + scrollbar room */
}

#footer-ad {
  min-height: 100px;
  text-align: center;
}

@media (max-width: 900px) {
  .category-toggle {
    display: none !important;
  }

  .mobile-only-category {
    display: block !important;
  }
}

.disclaimer-instructions-bar {
    display: flex;
    flex-wrap: nowrap;
    background-color: #1e1e1e;
    color: #e0e0e0;
    padding: 24px 32px;
    margin-top: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
    font-size: 14px;
    text-align: left;
    gap: 0;
  }
  .disclaimer-section {
    width: 50%;
    padding-right: 24px;
  }
  .instructions-section {
    width: 50%;
    padding-left: 24px;
  }
  .divider {
    width: 1px;
    background-color: #444;
    margin: 0 24px;
  }

  /* MOBILE */
  @media (max-width: 768px) {
    .disclaimer-instructions-bar {
      flex-direction: column;
      gap: 16px; /* vertical spacing */
    }
    .disclaimer-section,
    .instructions-section {
      width: 100% !important;
      padding: 0 !important;
    }
    .divider {
      display: none; /* hide vertical divider on mobile */
    }
  }


#layoutContainer.layout-side-by-side .category-content.active {
   display: grid !important;
   grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Increase the min width */
   grid-auto-rows: minmax(110px, auto); /* Allow dynamic row height */
   gap: 10px;
   padding-right: 10px;
   overflow-y: auto;
   max-height: calc(110px * 6 + 50px); /* Adjust number of visible rows if needed */
}

.pet-xp-section, .pet-weight-section, .hatch-speed-section {
   height: auto;
   overflow-y: visible;
}

.ability-button.active {
  border: 2px solid #90ee90;
  background-color: #123c12;
  box-shadow: 0 0 10px 2px #90ee90;
}

  .category-content.active:has(#petAbilityButtons) {
    margin-top: 20px;
  }

  /* Limit pet ability grid */
  #petAbilityButtons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    grid-auto-rows: 100px;
    gap: 10px;
    max-height: calc(150px * 2.5 + 20px); /* ~2.5 rows */
    overflow-y: auto;
    padding-right: 8px;
  }

  #petAbilityButtons::after {
    content: "â¬‡ Scroll for more pets â¬‡";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #aaa;
    margin-top: 8px;
  }
}

/* Events dropdown â€” use same look as .category-toggle-button */
.events-dropdown { position: relative; display: inline-block; }
.events-dropdown > .category-toggle-button { /* inherits your category button styles */
  display: inline-flex;
  align-items: center;
}
.events-menu {
  display: none;
  position: absolute;
  left: 0; top: 100%;
  background: #1f1f1f;
  border: 1px solid #444;
  border-radius: 14px;
  min-width: 240px;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 20;
  padding: 10px;
}
.events-menu.show {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.events-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: #262626;
  border: 1px solid #454545;
  padding: 10px 12px;
  color: #ddd;
  border-radius: 12px;
  cursor: pointer;
}
.events-menu button:hover {
  background: #2f2f2f;
  border-color: #5a5a5a;
}

.event-card-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.event-card-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.event-card-thumb-placeholder {
  border: 1px dashed #555;
}

.event-card-label {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: normal;
}

@media (max-width: 1320px) {
  .events-menu.show {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .events-menu.show {
    grid-template-columns: 1fr;
  }
}


/* Force the dropdown to float under the trigger using fixed positioning */
.events-menu.portal {
  position: fixed !important;
  left: 0;            /* will be set inline by JS */
  top: 0;             /* will be set inline by JS */
  min-width: 240px;   /* will be set inline by JS to at least trigger width */
  z-index: 9999;      /* float above everything */
}

/* --- Pet Ability layout & styling --- */

/* Make this category use our custom layout instead of the generic grid */
.category-content.active:has(#petAbilityButtons) {
  display: block !important;
  margin-top: 20px;
}

.pet-ability-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(340px, 1.6fr);
  gap: 16px;
  align-items: flex-start;
}

.pet-ability-left {
  display: flex;
  flex-direction: column;
  gap: 8px;

}

/* Search bar */
#petSearch {
  width: 95%;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #111;
  color: #eee;
  font-size: 14px;
}

/* Uniform grid of pet buttons â€“ slightly bigger, more rows visible */
#petAbilityButtons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  grid-auto-rows: 130px;
  gap: 10px;
  overflow-y: auto;
  max-height: 540px;    /* shows more rows at once */
  padding-right: 8px;
}

#petAbilityButtons::after {
  content: "Scroll for more pets";
  display: block;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  margin-top: 8px;
}

/* Base pet button style */
.ability-button {
  border: 1px solid #444;
  background: #151515;
  border-radius: 12px;
  padding: 8px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    border-color 0.08s ease,
    background 0.08s ease;
}



.ability-button img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 4px;
}

.ability-button span {
  font-size: 12px;
  color: #ddd;
  text-transform: capitalize;
}

.ability-button-label {
  display: block;
  max-width: 100%;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ability-button-label--small {
  font-size: 10px;
}

.ability-button-label--tiny {
  font-size: 8.5px;
}

/* Right side: calc menu + results */
.pet-ability-right {
  min-width: 0;
  max-height: 900px;
  overflow-y: auto;
}

#petAbilityOutput {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Make the "Calculations" card always visible at the top while scrolling results */
#petAbilityOutput .ability-controls {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 10px 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pet-calc-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.ability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}

.ability-row-title {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.ability-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.ability-pill-group label {
  background: #191919;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid #333;
  font-size: 12px;
}

.ability-pill-group input {
  margin-right: 4px;
}

.pet-calc-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #4caf50;
  background: #145214;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.pet-calc-btn:hover {
  filter: brightness(1.1);
}

.pet-calc-hint {
  font-size: 12px;
  color: #aaa;
  margin-left: 8px;
}

/* Nicer results box */
#petAbilityResults {
  background: #111;
  border-radius: 10px;
  border: 1px solid #333;
  padding: 10px 12px;
  font-size: 13px;
}

#petAbilityResults h4 {
  margin: 8px 0 4px;
}

#petAbilityResults p {
  margin: 2px 0 6px;
}

.pet-ad-slot {
  flex: 0 0 auto;
  border: 1px solid #333;
  border-radius: 12px;
  background: #111;
}

/* Mobile fallback: stack instead of side-by-side */
@media (max-width: 900px) {
  .pet-ability-layout {
    grid-template-columns: 1fr;
  }

  .pet-ability-right,
  #petAbilityButtons {
    max-height: none;
  }

  #petAbilityOutput .ability-controls {
    position: static;
    box-shadow: none;
  }

  .ad-slot-wrapper,
  .pet-ad-slot {
    min-height: 50px;
  }
}

.displaybox-value {
  color: #ffd54f;       /* bright yellow-gold to pop on dark background */
  font-weight: 600;
}
.selected-pet-indicator{
  margin: 0 0 10px;
  font-weight: 600;
}

.selected-pet-name{
  font-weight: 700;
}

/* === Trading Value Button Glow === */

@keyframes trading-blink {
  0% {
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
    border-color: #ffd700;
  }
  50% {
    box-shadow: 0 0 18px 6px rgba(255, 215, 0, 1);
    border-color: #fff176;
  }
  100% {
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.7);
    border-color: #ffd700;
  }
}

.trading-glow-btn {
  position: relative;
  border: 2px solid #ffd700 !important;
  animation: trading-blink 1.5s infinite ease-in-out;
  font-weight: bold;
}

.trading-glow-btn:hover {
  animation: none;
  box-shadow: 0 0 20px 8px gold;
  background-color: #3a3a3a !important;
}

@keyframes grow2-blink {
  0% {
    box-shadow: 0 0 8px 2px rgba(130, 216, 255, 0.55);
    border-color: #82d8ff;
  }
  50% {
    box-shadow: 0 0 18px 6px rgba(189, 252, 154, 0.78);
    border-color: #bdfc9a;
  }
  100% {
    box-shadow: 0 0 8px 2px rgba(130, 216, 255, 0.55);
    border-color: #82d8ff;
  }
}

/* === 2026 Calculator Refresh === */

:root {
  --garden-bg: #101915;
  --garden-panel: rgba(18, 31, 26, 0.88);
  --garden-panel-strong: rgba(24, 42, 35, 0.94);
  --garden-panel-soft: rgba(255, 255, 255, 0.04);
  --garden-border: rgba(178, 235, 185, 0.16);
  --garden-border-strong: rgba(189, 252, 154, 0.34);
  --garden-text: #ecf5ef;
  --garden-text-soft: #b8c8be;
  --garden-highlight: #bdfc9a;
  --garden-highlight-strong: #f5d66f;
  --garden-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(111, 180, 82, 0.18), transparent 28%),
    linear-gradient(180deg, #18251e 0%, #101915 42%, #0c1310 100%) !important;
  color: var(--garden-text) !important;
  padding: 12px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.2;
}

.page-shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-shell,
.calculator-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 8px auto 22px;
}

.hero-banner,
.disclaimer-instructions-bar,
.container,
.site-footer {
  border: 1px solid var(--garden-border);
  box-shadow: var(--garden-shadow);
}

.hero-banner {
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(245, 214, 111, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(31, 58, 47, 0.96), rgba(18, 31, 26, 0.92));
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-brand-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(189, 252, 154, 0.18), rgba(255, 221, 107, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.hero-heading h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-eyebrow,
.hero-subtitle {
  margin: 0;
}

.hero-eyebrow {
  margin-bottom: 8px;
  color: var(--garden-highlight);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-subtitle {
  max-width: 760px;
  margin-top: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--garden-text-soft);
}

.hero-pills,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills {
  margin-top: 18px;
}

.hero-pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--garden-text);
  font-size: 0.92rem;
}

.disclaimer-instructions-bar {
  background: linear-gradient(145deg, rgba(14, 25, 21, 0.94), rgba(23, 38, 31, 0.92));
  border-radius: 24px;
  padding: 24px 28px;
}

.disclaimer-section,
.instructions-section {
  font-size: 0.98rem;
  line-height: 1.7;
}

.status-alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(182, 52, 52, 0.16);
  border: 1px solid rgba(255, 126, 126, 0.22);
  color: #ffb0b0;
  font-weight: 600;
}

.status-alert-success {
  background: rgba(71, 138, 71, 0.18);
  border-color: rgba(126, 206, 126, 0.28);
  color: #bdfc9a;
}

.status-alert-link {
  background: rgba(189, 252, 154, 0.08);
  border-color: rgba(189, 252, 154, 0.18);
  color: #dce8d7;
}

.inline-link {
  color: #8ad2ff;
  text-decoration: underline;
}

.btn,
.footer-contributors-btn,
.info-btn {
  background: linear-gradient(180deg, rgba(39, 55, 48, 0.95), rgba(24, 35, 30, 0.95));
  color: var(--garden-text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 18px;
  border-radius: 14px;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover,
.footer-contributors-btn:hover,
.info-btn:hover {
  transform: translateY(-1px);
  border-color: var(--garden-border-strong) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(189, 252, 154, 0.18);
  color: var(--garden-highlight);
}

.hero-actions {
  justify-content: center;
}

.calculator-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-controls {
  position: static;
  justify-content: flex-end;
  margin: 0;
}

.container {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 120px),
    linear-gradient(145deg, rgba(18, 31, 26, 0.97), rgba(14, 23, 20, 0.95)) !important;
  border-radius: 30px;
  padding: 24px !important;
}

.panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 20px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.category-toggle,
#modifiers,
.row {
  gap: 12px;
}

.category-toggle-button,
.modifier-button,
.fruit-button,
.ability-button {
  border-radius: 16px;
}

.category-toggle-button {
  background: linear-gradient(180deg, rgba(50, 69, 60, 0.96), rgba(28, 39, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-toggle-button.active {
  background: linear-gradient(180deg, rgba(85, 114, 72, 0.92), rgba(45, 67, 42, 0.92));
}

.fruit-button,
.ability-button {
  background: linear-gradient(180deg, rgba(17, 24, 21, 0.92), rgba(22, 31, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px;
}

.fruit-button {
  width: 90px;
  height: 90px;
  min-width: 90px;
  max-width: 90px;
  min-height: 90px;
  max-height: 90px;
  padding: 8px 6px;
}

.fruit-button img {
  width: 70px;
  height: 70px;
}

.modifier-button {
  background: linear-gradient(180deg, rgba(36, 48, 42, 0.94), rgba(23, 31, 27, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

input,
button,
select,
textarea {
  border-radius: 12px !important;
}

input,
button {
  background: rgba(16, 24, 20, 0.9) !important;
  color: var(--garden-text) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

input:focus,
button:focus,
select:focus {
  outline: none;
  border-color: var(--garden-border-strong) !important;
  box-shadow: 0 0 0 3px rgba(189, 252, 154, 0.12);
}

#selectedModifiersFormulaExplain,
#selectedModifiersDisplay,
#mutationBreakdown,
#plantList,
#finalValueDisplay {
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

#selectedModifiersFormulaExplain {
  color: var(--garden-text-soft) !important;
}

#selectedModifiersDisplay,
#mutationBreakdown,
#plantList {
  border: 1px solid rgba(189, 252, 154, 0.08);
}

.result {
  margin-top: 16px;
  color: var(--garden-highlight);
  text-shadow: 0 0 22px rgba(189, 252, 154, 0.15);
}

#value,
#weightFromValue,
#finalValueDisplay {
  letter-spacing: -0.04em;
}

#plantList:empty,
#selectedModifiersDisplay:empty,
#finalValueDisplay:empty {
  display: none;
}

#valueToWeightBox {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer {
  margin: 26px 0 12px;
  padding: 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(189, 252, 154, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(17, 28, 24, 0.96), rgba(11, 18, 15, 0.96));
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-meta,
.footer-support {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.footer-cat {
  height: 20px;
  width: auto;
}

.footer-note {
  color: var(--garden-text-soft);
  line-height: 1.6;
}

.footer-copyright {
  margin: 0;
  color: #93a59a;
  font-size: 0.92rem;
}

@media (max-width: 899px) {
  body {
    padding: 8px;
  }

  .hero-banner,
  .disclaimer-instructions-bar,
  .container,
  .site-footer {
    border-radius: 22px;
  }

  .hero-banner,
  .container,
  .site-footer {
    padding: 18px !important;
  }

  .hero-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-brand-mark {
    width: 74px;
    height: 74px;
  }

  .hero-actions,
  .footer-links,
  .top-controls {
    justify-content: stretch;
  }

  .hero-actions .btn,
  .footer-links .btn,
  .top-controls .info-btn,
  .footer-contributors-btn {
    width: 100%;
  }

  .panel-card {
    padding: 14px;
  }
}

/* === Visual tuning pass === */

body {
  background:
    radial-gradient(circle at top, rgba(189, 252, 154, 0.1), transparent 24%),
    linear-gradient(180deg, #161616 0%, #121212 42%, #101010 100%) !important;
}

.page-shell {
  width: 95vw;
  max-width: none;
  max-width: 100%;
  overflow-x: clip;
}

.hero-shell {
  gap: 12px;
  margin: 6px auto 16px;
}

.hero-banner {
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(34, 34, 34, 0.98), rgba(24, 24, 24, 0.96));
}

.hero-title-row {
  gap: 14px;
}

.hero-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(189, 252, 154, 0.12), rgba(255, 255, 255, 0.03));
}

.hero-brand-mark img {
  width: 42px;
  height: 42px;
}

.hero-heading h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.hero-eyebrow,
.hero-subtitle,
.hero-pills {
  display: none;
}

.disclaimer-instructions-bar {
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(145deg, rgba(34, 34, 34, 0.98), rgba(25, 25, 25, 0.96));
}

.hero-actions {
  gap: 8px;
}

.btn,
.footer-contributors-btn,
.info-btn {
  background: #2e2e2e;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 9px 15px;
}

.btn:hover,
.footer-contributors-btn:hover,
.info-btn:hover {
  box-shadow: 0 0 10px 3px rgba(189, 252, 154, 0.18);
}

.container {
  border-radius: 20px;
  padding: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 120px),
    #1e1e1e !important;
  max-width: 100%;
  overflow-x: clip;
}

.panel-card {
  background: rgba(25, 25, 25, 0.92);
  border-radius: 18px;
  padding: 16px;
  max-width: 100%;
  overflow-x: clip;
}

.category-toggle-button {
  background: #3a3a3a;
}

.category-toggle-button.active {
  background: #424242;
}

.events-dropdown {
  position: relative;
}

.events-menu,
.events-menu.portal {
  position: absolute !important;
  left: 0 !important;
  top: calc(100% + 10px) !important;
  min-width: 290px;
  max-width: min(420px, 72vw);
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  background: #1f1f1f;
  border: 1px solid #4e644e;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(189, 252, 154, 0.08);
  z-index: 9999;
}

.events-menu button {
  margin: 0 !important;
  margin-bottom: 6px !important;
  padding: 10px 12px;
  border-radius: 10px;
  background: #2b2b2b !important;
  border: 1px solid #3f3f3f !important;
  color: #e0e0e0;
}

.events-menu button:last-child {
  margin-bottom: 0 !important;
}

.events-menu button:hover {
  background: #323232 !important;
  border-color: #bdfc9a !important;
}

.pet-ability-layout {
  grid-template-columns: minmax(320px, 1fr) minmax(560px, 1.55fr);
  gap: 18px;
  align-items: start;
}

.pet-ability-left,
.pet-ability-right {
  min-height: 0;
}

.pet-ability-right {
  max-height: none;
  overflow: visible;
}

.category-content.active:has(#petAbilityButtons) {
  display: block !important;
  overflow: visible !important;
  padding-bottom: 24px;
  max-width: 100%;
}

#petSearch {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: #141414;
}

#petAbilityButtons {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  grid-auto-rows: 132px;
  gap: 12px;
  max-height: 760px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

.ability-button {
  position: relative;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  background: linear-gradient(180deg, #171717, #202421);
  border-radius: 16px;
  padding: 10px 6px;
}

.ability-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(189, 252, 154, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 0.16s ease;
}

.ability-button:hover::before,
.ability-button.active::before {
  opacity: 1;
}

.ability-button.active {
  border-color: #bdfc9a;
  box-shadow: 0 0 14px rgba(189, 252, 154, 0.22);
  transform: translateY(-1px);
}

.ability-button img,
.ability-button span {
  position: relative;
  z-index: 1;
}

#petAbilityOutput .ability-controls,
.ability-controls {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #1a201b, #151515);
  border-radius: 16px;
  border: 1px solid #344339;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

#petAbilityOutput {
  min-height: 0;
  min-width: 0;
  max-width: 100%;
}

.selected-pet-indicator {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(189, 252, 154, 0.12);
  font-size: 1.05rem;
}

.selected-pet-name {
  color: #f4f6f2;
}

.pet-cap-info {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #3a4b3f;
  border-radius: 14px;
  background: #161616;
  color: #ccc;
}

.pet-cap-title {
  font-weight: 700;
  color: #bdfc9a;
  margin-bottom: 6px;
}

.pet-tool-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.pet-tool-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(189, 252, 154, 0.12);
  background: linear-gradient(180deg, rgba(24, 30, 26, 0.96), rgba(20, 20, 20, 0.98));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.pet-tool-card-subtle {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hatch-tool-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 18px;
  align-items: end;
}

.pet-tool-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hatch-stats-grid,
.pet-weight-tool-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hatch-stat-column,
.pet-weight-inputs,
.pet-weight-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pet-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pet-tool-result {
  font-size: 16px;
  color: #bdfc9a;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(189, 252, 154, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.pet-tool-primary-btn {
  width: min(220px, 100%);
}

.pet-inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pet-tool-subnote {
  margin-top: 4px;
  font-size: 14px;
  color: #ccc;
}

.pet-tool-scroll-output {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  background: #141414;
  padding: 10px 12px;
  border: 1px solid #444;
  border-radius: 10px;
  color: #ccc;
  flex: 1;
  white-space: pre-wrap;
}

.ability-basic label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.ability-basic input {
  min-width: 0;
}

.ability-row {
  gap: 10px 12px;
  align-items: flex-start;
}

.ability-row-title {
  min-width: 110px;
  padding-top: 9px;
  color: #e8efe8;
}

.ability-pill-group {
  gap: 8px;
}

.ability-pill-group label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #3c3c3c;
  background: #1d1d1d;
  color: #efefef;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ability-pill-group label:hover {
  border-color: #6d8d6a;
  background: #222724;
}

.ability-pill-group label:has(input:checked) {
  border-color: #bdfc9a;
  background: linear-gradient(180deg, rgba(189, 252, 154, 0.12), rgba(40, 53, 43, 0.9));
  box-shadow: 0 0 0 1px rgba(189, 252, 154, 0.14), 0 8px 18px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.ability-pill-group input {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 16px;
  height: 16px;
  border: 2px solid #a4a4a4;
  background: #f0f0f0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.ability-pill-group input[type="radio"] {
  border-radius: 50%;
}

.ability-pill-group input[type="checkbox"] {
  border-radius: 4px;
}

.ability-pill-group input::after {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 0.14s ease;
  background: #1a2e1e;
  border-radius: inherit;
}

.ability-pill-group input[type="checkbox"]::after {
  width: 9px;
  height: 9px;
  clip-path: polygon(14% 44%, 0 58%, 40% 100%, 100% 19%, 84% 5%, 37% 67%);
  background: #1a2e1e;
}

.ability-pill-group input:checked {
  border-color: #bdfc9a;
  background: #bdfc9a;
  box-shadow: 0 0 12px rgba(189, 252, 154, 0.3);
}

.ability-pill-group input:checked::after {
  transform: scale(1);
}

.pet-calc-btn {
  padding: 10px 18px;
  background: linear-gradient(180deg, #274527, #1d311d);
  border-color: #78b978;
}

.pet-calc-hint {
  padding-top: 10px;
}

#petAbilityResults {
  background: #151515;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#beyond100Container {
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #333;
  border-radius: 14px;
  background: #121212;
}

#beyond100Container h4 {
  margin: 0 0 10px;
  position: sticky;
  top: 0;
  background: #121212;
  padding-bottom: 8px;
}

#beyond100Container .ability-age-row {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#beyond100Container .ability-age-row:last-child {
  border-bottom: 0;
}

.footer-contributors-btn {
  align-self: flex-start;
  width: auto;
  min-width: 0;
  padding: 6px 12px;
  font-size: 0.92rem;
}

.site-footer {
  padding: 18px;
  background: linear-gradient(145deg, rgba(33, 33, 33, 0.98), rgba(22, 22, 22, 0.96));
  position: relative;
  z-index: 1;
  clear: both;
  max-width: 100%;
  overflow-x: clip;
}

.footer-support br {
  display: none;
}

.footer-copyright {
  margin-top: 4px;
}

@media (max-width: 899px) {
  .page-shell {
    width: 100%;
  }

  body {
    padding: 0;
  }

  .hero-banner,
  .disclaimer-instructions-bar,
  .container,
  .site-footer {
    border-radius: 14px;
  }

  .hero-banner {
    padding: 12px 14px !important;
  }

  .hero-header-controls {
    top: 8px;
    right: 8px;
    gap: 6px;
  }

  .theme-switcher-toggle,
  .site-default-toggle {
    min-height: 34px;
    padding: 0 10px;
    gap: 6px;
  }

  .theme-switcher-toggle-label {
    font-size: 0;
  }

  .theme-switcher-toggle-label::after {
    content: "Theme";
    font-size: 0.72rem;
  }

  .site-default-toggle-label {
    display: none;
  }

  .site-default-toggle-short {
    display: inline;
    font-size: 0.72rem;
  }

  .theme-switcher-menu,
  .site-default-menu {
    min-width: 170px;
  }

  .disclaimer-instructions-bar {
    padding: 10px 12px !important;
    gap: 10px !important;
    font-size: 12px;
  }

  .disclaimer-section,
  .instructions-section {
    line-height: 1.45;
  }

  .disclaimer-section strong,
  .instructions-section strong {
    display: inline-block;
    margin-bottom: 2px;
  }

  .status-alert {
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .hero-actions {
    gap: 8px;
  }

  .container {
    width: 100%;
    padding: 6px !important;
    margin-bottom: 18px;
  }

  .panel-card {
    padding: 6px;
  }

  .site-footer {
    margin-top: 18px;
  }

  .pet-ability-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hatch-stats-grid,
  .pet-weight-tool-layout {
    grid-template-columns: 1fr;
  }

  .pet-tool-card {
    padding: 12px;
  }

  .pet-tool-actions {
    flex-direction: column;
  }

  .pet-tool-primary-btn {
    width: 100%;
  }

  .pet-ability-left {
    order: 1;
    gap: 8px;
  }

  .pet-ability-right {
    order: 2;
    overflow: visible;
  }

  #petAbilityOutput {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  #petAbilityButtons {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    grid-auto-rows: auto;
    gap: 10px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .pet-mobile-placeholder {
    padding: 16px 14px;
    border-radius: 14px;
    border: 1px dashed rgba(189, 252, 154, 0.22);
    background: #151515;
    color: #cdd8cf;
    text-align: center;
    font-weight: 600;
  }

  #petAbilityButtons::after {
    display: none;
  }

  #petAbilityButtons .ability-button {
    flex: 0 0 96px;
    min-height: 104px;
    scroll-snap-align: start;
  }

  #petAbilityOutput .ability-controls,
  .ability-controls {
    position: static;
    padding: 12px;
    margin-bottom: 0;
  }

  .ability-controls {
    border-radius: 14px;
  }

  .ability-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ability-row-title {
    min-width: 0;
    padding-top: 0;
  }

  .ability-pill-group label {
    width: 100%;
    justify-content: flex-start;
    border-radius: 14px;
  }

  .ability-basic label {
    width: 100%;
  }

  .selected-pet-indicator {
    font-size: 1rem;
  }

  .ability-actions {
    position: static;
    margin-top: 14px;
    padding-top: 12px;
    gap: 8px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pet-calc-btn {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }

  .pet-calc-hint {
    padding-top: 0;
    text-align: center;
    display: block;
    opacity: 0.85;
  }

  #petSearch {
    position: static;
    margin-bottom: 2px;
  }
}

:root {
  --theme-bg: #121212;
  --theme-text: #e0e0e0;
  --theme-muted: #b7b7b7;
  --theme-surface: #1e1e1e;
  --theme-surface-strong: #232323;
  --theme-control: #2e2e2e;
  --theme-control-strong: #3a3a3a;
  --theme-border: #444;
  --theme-accent: #bdfc9a;
  --theme-accent-strong: #8bd861;
  --theme-shadow: rgba(0, 0, 0, 0.35);
  --theme-link: #bdfc9a;
}

body {
  background: var(--theme-bg) !important;
  color: var(--theme-text) !important;
  transition: background 0.25s ease, color 0.25s ease;
}

body[data-theme="dark"] {
  --theme-bg: #121212;
  --theme-text: #e0e0e0;
  --theme-muted: #b7b7b7;
  --theme-surface: #1e1e1e;
  --theme-surface-strong: #232323;
  --theme-control: #2e2e2e;
  --theme-control-strong: #3a3a3a;
  --theme-border: #444;
  --theme-accent: #bdfc9a;
  --theme-accent-strong: #8bd861;
  --theme-shadow: rgba(0, 0, 0, 0.35);
  --theme-link: #bdfc9a;
}

body[data-theme="gradient-green"] {
  --theme-bg: radial-gradient(circle at top right, rgba(56, 130, 77, 0.28), transparent 28%), linear-gradient(135deg, #050505 0%, #0b120b 44%, #112816 100%);
  --theme-text: #edf4eb;
  --theme-muted: #b8c7ba;
  --theme-surface: rgba(17, 23, 18, 0.92);
  --theme-surface-strong: rgba(20, 32, 22, 0.96);
  --theme-control: rgba(27, 38, 29, 0.95);
  --theme-control-strong: rgba(31, 45, 34, 0.98);
  --theme-border: #31533a;
  --theme-accent: #8ef08b;
  --theme-accent-strong: #58c95f;
  --theme-shadow: rgba(0, 0, 0, 0.42);
  --theme-link: #9df497;
}

body[data-theme="gradient-blue"] {
  --theme-bg: radial-gradient(circle at top right, rgba(73, 117, 204, 0.26), transparent 26%), linear-gradient(135deg, #040506 0%, #08111d 42%, #12243c 100%);
  --theme-text: #eef4ff;
  --theme-muted: #b7c5dc;
  --theme-surface: rgba(14, 19, 28, 0.92);
  --theme-surface-strong: rgba(18, 28, 43, 0.96);
  --theme-control: rgba(25, 35, 50, 0.95);
  --theme-control-strong: rgba(28, 43, 63, 0.98);
  --theme-border: #355071;
  --theme-accent: #7bc3ff;
  --theme-accent-strong: #4f9be6;
  --theme-shadow: rgba(0, 0, 0, 0.42);
  --theme-link: #8dcfff;
}

.hero-banner,
.disclaimer-instructions-bar,
.container,
.panel-card,
.site-footer,
.pet-tool-card,
.pet-tool-card-subtle,
.pet-cap-info,
.ability-controls,
#petAbilityOutput,
.pet-mobile-placeholder,
.category-wrapper {
  background: var(--theme-surface) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
  box-shadow: 0 18px 40px var(--theme-shadow);
}

.section-title,
.hero-heading h1,
.disclaimer-section,
.instructions-section,
label,
strong,
.site-footer,
.site-footer * {
  color: var(--theme-text);
}

input,
button,
textarea,
select,
.input-block input[type="number"],
.input-block input[type="range"],
#plantSearch,
#mutationSearch,
#petSearch,
#openMobileDropdownBtn,
.theme-option,
.site-default-menu button {
  background: var(--theme-control) !important;
  color: var(--theme-text) !important;
  border-color: var(--theme-border) !important;
}

button:hover,
.category-toggle-button:hover,
.modifier-button:hover,
.ability-button:hover,
.theme-option:hover,
.site-default-menu button:hover {
  background: var(--theme-control-strong) !important;
}

.category-toggle-button,
.modifier-button,
.ability-button,
.theme-option,
.site-default-toggle,
.site-default-menu button,
.btn,
.info-btn {
  background: var(--theme-control) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}

.category-toggle-button.active,
.theme-option.active,
.site-default-menu button.active,
.fruit-button.active,
.ability-button.active,
.btn:hover {
  border-color: var(--theme-accent) !important;
  box-shadow: 0 0 12px rgba(189, 252, 154, 0.28), 0 0 18px color-mix(in srgb, var(--theme-accent) 38%, transparent) !important;
}

.result,
.inline-link,
.status-alert a,
#selectedModifiersDisplay,
#mutationBreakdown,
#petGrowthResult,
#eggHatchResult,
#petWeightResults,
#finalValueDisplay {
  color: var(--theme-accent) !important;
}

.inline-link {
  color: var(--theme-link) !important;
}

#sliderValueLabel,
.pet-calc-hint,
.pet-tool-subnote,
.theme-switcher-note {
  color: var(--theme-muted) !important;
}

.hero-header-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-banner {
  position: relative;
}

.theme-switcher,
.site-default-switcher {
  position: relative;
}

.theme-switcher-toggle,
.site-default-toggle {
  min-height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--theme-border) !important;
  background: var(--theme-control) !important;
  box-shadow: 0 10px 24px var(--theme-shadow);
}

.theme-switcher-toggle::before,
.site-default-toggle::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-accent) 0%, color-mix(in srgb, var(--theme-accent) 22%, #ffffff) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--theme-accent) 40%, transparent);
}

.site-default-toggle::before {
  border-radius: 4px;
}

.theme-switcher-toggle-label,
.site-default-toggle-label,
.site-default-toggle-short {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--theme-text);
  white-space: nowrap;
}

.site-default-toggle-short {
  display: none;
}

.theme-switcher-menu[hidden],
.site-default-menu[hidden] {
  display: none !important;
}

.theme-switcher-menu,
.site-default-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--theme-border);
  background: var(--theme-surface-strong);
  box-shadow: 0 22px 40px var(--theme-shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-default-menu {
  min-width: 190px;
}

.theme-switcher-heading,
.site-default-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-text);
  margin-bottom: 2px;
}

.theme-option,
.site-default-menu button {
  width: 100%;
  text-align: left;
  font-size: 0.95rem;
  padding: 9px 12px;
  border-radius: 12px;
}

.theme-option.active,
.site-default-menu button.active {
  border-color: var(--theme-accent) !important;
  color: var(--theme-accent) !important;
}

.theme-switcher-note {
  font-size: 0.8rem;
  line-height: 1.35;
  padding-top: 4px;
}

.theme-switcher-note[hidden] {
  display: none;
}

body[data-theme="light"] .status-alert,
body[data-theme="light"] .status-alert-success,
body[data-theme="light"] .status-alert-link {
  background: rgba(255, 255, 255, 0.7) !important;
}





body[data-theme="light"] {
  --theme-bg: linear-gradient(180deg, #f2f6ef 0%, #e6ede1 100%);
  --theme-text: #172117;
  --theme-muted: #4f5f4f;
  --theme-surface: rgba(255, 255, 255, 0.9);
  --theme-surface-strong: rgba(248, 251, 246, 0.95);
  --theme-control: #f5f8f1;
  --theme-control-strong: #eef4e7;
  --theme-border: #b8c7b0;
  --theme-accent: #4f9f36;
  --theme-accent-strong: #2d6f1f;
  --theme-shadow: rgba(76, 104, 69, 0.16);
  --theme-link: #2d6f1f;
}

body[data-theme="light"] .fruit-button span,
body[data-theme="light"] .fruit-button,
body[data-theme="light"] .ability-button span,
body[data-theme="light"] #petAbilityButtons .ability-button span,
body[data-theme="light"] .pet-mobile-placeholder,
body[data-theme="light"] .pet-calc-hint,
body[data-theme="light"] #petAbilityOutput,
body[data-theme="light"] .selected-pet-indicator,
body[data-theme="light"] .ability-controls,
body[data-theme="light"] .ability-row-title,
body[data-theme="light"] .pet-tool-result,
body[data-theme="light"] .pet-tool-scroll-output,
body[data-theme="light"] .status-alert,
body[data-theme="light"] .status-alert *,
body[data-theme="light"] .section-title,
body[data-theme="light"] .category-toggle-button,
body[data-theme="light"] .modifier-button,
body[data-theme="light"] .ability-button,
body[data-theme="light"] label {
  color: #172117 !important;
}

body[data-theme="light"] .ability-actions {
  background: linear-gradient(180deg, rgba(245, 248, 241, 0), #f5f8f1 30%);
}


body[data-theme="light"] .events-menu,
body[data-theme="light"] .events-menu button,
body[data-theme="light"] .modifier-button,
body[data-theme="light"] #petAbilityResults,
body[data-theme="light"] #petAbilityResults h4,
body[data-theme="light"] #petAbilityResults p,
body[data-theme="light"] .ability-controls,
body[data-theme="light"] .pet-cap-info,
body[data-theme="light"] .pet-tool-card,
body[data-theme="light"] .pet-tool-card-subtle,
body[data-theme="light"] .pet-tool-result,
body[data-theme="light"] .pet-tool-scroll-output,
body[data-theme="light"] .ability-pill-group label,
body[data-theme="light"] .ability-basic input,
body[data-theme="light"] #petSearch,
body[data-theme="light"] #plantSearch,
body[data-theme="light"] #mutationSearch {
  background: #f5f8f1 !important;
  color: #172117 !important;
  border-color: #b8c7b0 !important;
}

body[data-theme="light"] .events-menu button:hover,
body[data-theme="light"] .modifier-button:hover,
body[data-theme="light"] .ability-pill-group label:hover {
  background: #eef4e7 !important;
  color: #172117 !important;
}

body[data-theme="light"] .ability-pill-group label:has(input:checked),
body[data-theme="light"] .category-toggle-button.active {
  background: #e7f3df !important;
  color: #172117 !important;
  border-color: #7bb45f !important;
}

body[data-theme="light"] .ability-pill-group input {
  background: #ffffff !important;
  border-color: #8fb580 !important;
}

body[data-theme="light"] .ability-pill-group input:checked {
  background: #7bb45f !important;
  border-color: #5e9647 !important;
}

body[data-theme="light"] .events-menu button,
body[data-theme="light"] .modifier-button,
body[data-theme="light"] .ability-button,
body[data-theme="light"] .ability-button span,
body[data-theme="light"] .fruit-button span,
body[data-theme="light"] .ability-row-title,
body[data-theme="light"] .selected-pet-indicator,
body[data-theme="light"] .selected-pet-name,
body[data-theme="light"] .pet-cap-info,
body[data-theme="light"] .pet-cap-title,
body[data-theme="light"] #petCapInfoBody,
body[data-theme="light"] .pet-calc-hint,
body[data-theme="light"] .pet-tool-subnote,
body[data-theme="light"] #petAbilityResults,
body[data-theme="light"] #petAbilityResults * {
  color: #172117 !important;
}

body[data-theme="light"] .ability-button {
  background: linear-gradient(180deg, #f7faf4, #edf3e8) !important;
  border-color: #b8c7b0 !important;
}

body[data-theme="light"] .ability-actions {
  background: linear-gradient(180deg, rgba(245, 248, 241, 0), #f5f8f1 30%) !important;
}

.grow2-glow-btn,
.grow2-category-button {
  position: relative;
  border: 2px solid #82d8ff !important;
  animation: grow2-blink 2s infinite ease-in-out;
  font-weight: 900;
}

.wiki-category-button {
  position: relative;
  border: 2px solid #bdfc9a !important;
  animation: grow2-blink 2s infinite ease-in-out;
  font-weight: 900;
}

.grow2-glow-btn:hover,
.grow2-category-button:hover,
.wiki-category-button:hover {
  animation: none;
  border-color: #bdfc9a !important;
  box-shadow: 0 0 20px 6px rgba(189, 252, 154, 0.7) !important;
}

body[data-theme="light"] .grow2-category-button {
  color: #172117 !important;
  background: #edf7fb !important;
  border-color: #49a8d8 !important;
}

body[data-theme="light"] .wiki-category-button {
  color: #172117 !important;
  background: #f0faec !important;
  border-color: #6abf59 !important;
}

.calculator-choice-overlay[hidden],
.calculator-choice-redirect[hidden] {
  display: none !important;
}

body.calculator-choice-open {
  overflow: hidden;
}

.calculator-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 8, 7, 0.88);
  backdrop-filter: blur(10px);
}

.calculator-choice-dialog {
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(189, 252, 154, 0.28);
  border-radius: 18px;
  background: linear-gradient(180deg, #191c19, #111511);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.58);
}

.calculator-choice-header {
  max-width: 780px;
  margin-bottom: 18px;
}

.calculator-choice-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: #bdfc9a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calculator-choice-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
  letter-spacing: 0;
}

.calculator-choice-header p,
.calculator-choice-note {
  color: #cbd6c8;
  font-size: 16px;
  line-height: 1.5;
}

.calculator-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.calculator-choice-card {
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  text-align: left;
  border: 1px solid rgba(189, 252, 154, 0.24) !important;
  border-radius: 14px;
  background: #202420 !important;
  color: #f6fff2 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 36px rgba(0, 0, 0, 0.26);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.calculator-choice-card:hover,
.calculator-choice-card:focus-visible {
  transform: translateY(-2px);
  border-color: #bdfc9a !important;
  box-shadow: 0 0 0 3px rgba(189, 252, 154, 0.12), 0 24px 54px rgba(0, 0, 0, 0.34);
  outline: none;
}

.calculator-choice-card-gag2 {
  border-color: rgba(130, 216, 255, 0.42) !important;
  background: linear-gradient(180deg, #17232a, #151d18) !important;
}

.calculator-choice-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.calculator-choice-card-top img {
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.calculator-choice-card-top strong {
  display: block;
  color: #ffffff;
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.08;
}

.calculator-choice-card-top small {
  display: block;
  margin-top: 7px;
  color: #bdfc9a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.calculator-choice-card-copy {
  color: #d9e4d5;
  font-size: 17px;
  line-height: 1.5;
}

.calculator-choice-card-action {
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 10px;
  background: #bdfc9a;
  color: #10150f;
  font-size: 16px;
  font-weight: 900;
}

.calculator-choice-redirect {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18000;
  width: min(430px, calc(100vw - 36px));
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(130, 216, 255, 0.45);
  border-radius: 14px;
  background: rgba(18, 25, 22, 0.96);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

.calculator-choice-redirect-text {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.calculator-choice-redirect strong {
  color: #ffffff;
  font-size: 17px;
}

.calculator-choice-redirect-line {
  color: #d9e4d5;
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.calculator-choice-countdown {
  display: inline-block;
  min-width: 1.2em;
  color: #bdfc9a;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.calculator-choice-redirect-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calculator-choice-redirect-actions button {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
}

body[data-theme="light"] .calculator-choice-dialog,
body[data-theme="light"] .calculator-choice-card,
body[data-theme="light"] .calculator-choice-redirect {
  background: #f5f8f1 !important;
  color: #172117 !important;
  border-color: #b8c7b0 !important;
}

body[data-theme="light"] .calculator-choice-header h2,
body[data-theme="light"] .calculator-choice-card-top strong,
body[data-theme="light"] .calculator-choice-redirect strong {
  color: #172117 !important;
}

body[data-theme="light"] .calculator-choice-header p,
body[data-theme="light"] .calculator-choice-card-copy,
body[data-theme="light"] .calculator-choice-note,
body[data-theme="light"] .calculator-choice-redirect-line {
  color: #31402e !important;
}

body[data-theme="light"] .calculator-choice-countdown {
  color: #4e8e36 !important;
}

@media (max-width: 760px) {
  .calculator-choice-overlay {
    padding: 14px;
    align-items: start;
  }

  .calculator-choice-dialog {
    max-height: calc(100vh - 28px);
    padding: 16px;
    border-radius: 14px;
  }

  .calculator-choice-grid {
    grid-template-columns: 1fr;
  }

  .calculator-choice-card {
    min-height: 230px;
    padding: 18px;
    gap: 16px;
  }

  .calculator-choice-card-top img {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .calculator-choice-redirect {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .calculator-choice-redirect-actions button {
    flex: 1 1 150px;
  }
}


