.dialog-container {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: #00000066;
  font-size: 4cqh;
  z-index: 101;
  justify-content: center;
  align-items: center;
}

.dialog-container[style*="block"] {
  display: flex !important;
}

.dialog-container[style*="flex"] {
  display: flex !important;
}

.dialog-container.dungeon-dialog {
  background-color: #0d162899;
}

/* Sits above the meter-zoom panel (z 10000) and portaled meter (z 9999). */
.dialog-container.above-meter-zoom {
  z-index: 10001;
}

.dialog-box {
  display: block;
  position: relative;
  width: 80%;
  max-width: 70cqh;
  max-height: 90cqh;
  overflow-y: auto;
  background-color: #181b46;
  z-index: 101;
}

.dialog-inner-border {
  margin: 2cqh;
  border: solid 1px white;
}

.dialog-text {
  display: block;
  margin: 5% 7%;
  line-height: 1.5;
  font-size: 4cqh;
}

.dialog-confirm {
  display: inline-block;
  width: 40%;
  margin-bottom: 7%;
  margin-left: 7%;
  padding: 1.5cqh 0;
  margin-top: 7%;
}

.dialog-cancel {
  display: inline-block;
  width: 40%;
  margin-bottom: 7%;
  margin-left: 7%;
  padding: 1.5cqh 0;
  margin-top: 7%;
}

.settings-menu-button {
  display: block;
  width: 80%;
  margin: 1.5cqh auto;
  padding: 1.5cqh 0;
}

.settings-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5cqh;
  width: 80%;
  margin: 3cqh auto 1cqh;
  font-size: 3cqh;
  cursor: pointer;
}

.settings-menu-toggle input[type="checkbox"] {
  width: 3.5cqh;
  height: 3.5cqh;
  cursor: pointer;
}

.settings-menu-toggle input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.settings-menu-note {
  width: 80%;
  margin: 0 auto 2cqh;
  font-size: 2.2cqh;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

.name-dialog-counter {
  position: absolute;
  font-size: 3cqh;
  color: #bbb;
  top: 3cqh;
  right: 3cqh;
}

.dialog-text-error {
  color: red;
  font-size: 3cqh;
  margin-top: -2cqh;
  margin-left: 10%;
  min-height: 3.5cqh;
}

.name-dialog-input {
  background-color: #0000;
  color: white;
  font-size: 3cqh;
  border-width: 0 0 1px 0;
  border-bottom: 1px solid white;
  border-radius: 2px;
  padding: 1cqh 2cqh;
  width: calc(80% - 4cqh);
  margin: 1cqh 10% 3cqh 10%;
  outline: none;
}

.name-dialog-button {
  width: 80% !important;
  margin: 2cqh 10% 6cqh 10% !important;
}

.seed-breeze-section {
  margin-top: 3cqh;
  text-align: center;
}

.seed-breeze-button {
  display: inline-flex;
  align-items: center;
  gap: 1cqh;
}

.seed-breeze-button-icon {
  width: 4cqh;
  height: 4cqh;
  fill: white;
}

.level-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqh;
  margin: 3cqh 0;
}

.level-selector-arrow-button {
  color: white;
  border: none;
  border-radius: 1cqh;
  width: 8cqh;
  height: 8cqh;
  font-size: 4cqh;
  cursor: pointer;
}

.level-selector-arrow-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.level-selector-display {
  text-align: center;
  min-width: 20cqh;
}

.level-selector-level-text {
  font-size: 4cqh;
  color: white;
  margin-bottom: 1cqh;
  white-space: nowrap;
}

.level-selector-cost-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqh;
  font-size: 3cqh;
}

.level-selector-cost-icon {
  width: 3cqh;
  height: 3cqh;
}

.dialog-subtext {
  font-size: 2.5cqh;
  color: #aaa;
  margin: 0 7% 1cqh;
}

.sun-level-cost-label {
  color: white;
}

.sun-level-cost-icon {
  fill: var(--fire-color, #e74c3c);
}

.seed-breeze-cost-icon,
.bee-breeze-cost-icon {
  fill: var(--air-color, #91bd00);
}

.seed-breeze-dialog-box {
  max-width: 50cqh;
}

/* The fruit picker: one icon per seed the breeze can bring, all five always
   offered. Wraps rather than shrinking, so the row stays legible on a narrow
   dialog. */
.seed-breeze-type-row {
  display: flex;
  justify-content: center;
  /* Row gap carries the price labels that hang below a locked icon, so a
     wrapped second row does not land on top of them. */
  gap: 3cqh 1.5cqh;
  flex-wrap: wrap;
  margin: 1cqh 5% 3.5cqh;
}

.seed-breeze-type-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6cqh;
  height: 6cqh;
  padding: 0.8cqh;
  background: #373a5a;
  border: 0.4cqh solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.seed-breeze-type-button:hover {
  transform: scale(1.05);
}

.seed-breeze-type-button-selected {
  border-color: var(--air-color, #91bd00);
  background: rgba(145, 189, 0, 0.2);
}

.seed-breeze-type-icon {
  width: 100%;
  height: 100%;
  fill: white;
}

/* A fruit that has not been bought yet. Dimmed rather than hidden — the point
   is that the player can see what is on offer — with its price tucked under
   the glyph. Still clickable: that is what opens the purchase. */
.seed-breeze-type-button-locked {
  position: relative;
  opacity: 0.45;
}

.seed-breeze-type-button-locked .seed-breeze-type-icon {
  fill: #b9bcd6;
}

.seed-breeze-type-price {
  position: absolute;
  bottom: -1.6cqh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.2cqh;
  font-size: 1.6cqh;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.seed-breeze-type-price-icon {
  height: 1.6cqh;
  fill: var(--star-color, #ffc700);
}

.seed-breeze-arrow-button,
.bee-breeze-arrow-button {
  background-color: var(--air-color);
}

.seed-breeze-cost-display,
.bee-breeze-cost-display {
  color: var(--air-color);
}

.bee-breeze-dialog-box {
  max-width: 50cqh;
}

.fertilizer-dialog-box,
.ground-fertilizer-dialog-box {
  max-width: 60cqh;
}

.ground-fert-status {
  margin: 2cqh 10%;
  text-align: center;
}

.ground-fert-level {
  font-size: 2.5cqh;
  margin-bottom: 1cqh;
  color: var(--earth-color);
}

.ground-fert-meter {
  width: 100%;
  height: 2cqh;
  background: #373a5a;
  border-radius: 999px;
  overflow: hidden;
  border: 0.5cqh solid rgba(255, 255, 255, 0.3);
}

.ground-fert-meter-fill {
  height: 100%;
  background: var(--earth-color);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.ground-fert-timer {
  font-size: 2cqh;
  margin-top: 1cqh;
  color: rgba(255, 255, 255, 0.7);
}

.fertilizer-options {
  display: flex;
  flex-direction: column;
  gap: 2cqh;
  margin: 3cqh 10%;
}

.fertilizer-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2cqh 3cqh;
}

.fertilizer-option:disabled {
  opacity: 0.5;
}

.fertilizer-cost {
  display: flex;
  align-items: center;
  gap: 1cqh;
  color: var(--earth-color);
}

.fertilizer-cost-icon {
  width: 3cqh;
  height: 3cqh;
}

.sun-level-dialog-box {
  max-width: 50cqh;
}

.sun-level-selector {
  margin: 3cqh 0;
}

.sun-dialog-fire-icon {
  display: inline-block;
  height: 1em;
  width: auto;
  vertical-align: -0.15em;
  fill: var(--fire-color);
}

.sun-dialog-fire-num {
  font-weight: 700;
}

.sun-level-arrow-button {
  background-color: var(--fire-color);
}

.sun-level-cost-display {
  color: var(--fire-color);
}

.shop-qty-arrow-button {
  background-color: #c8a820;
}

.shop-qty-cost-display {
  color: #c8a820;
}

.inv-qty-arrow-button {
  background-color: #7b5ea7;
}

.inv-qty-cost-display {
  color: #b89ee0;
}
