body {
  margin: 0;
  background: #383838;
  color: white;
  font-family: sans-serif;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  align-items: flex-end;
  overflow: hidden;
  width: 100vw;
  position: relative;
}

#app {
  max-width: 500px;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transform: translateZ(0); /* makes overflow:hidden clip position:fixed children */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
#app::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.25);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#app.cola-open::before {
  opacity: 1;
  pointer-events: auto;
}

#slots {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: absolute;
  bottom: 105px;
  z-index: 3000;
}

@media (max-width: 600px) {
  #slots {
    bottom: 115px;
  }
}
.slot {
  display: inline-block;
  margin: 0 3px;
  vertical-align: top;
  text-align: center;
  position: relative;
  width: 42px;
  margin-top: 30px;
}
.slot.upgrade-space {
  height: 60px; /* Reserve space for upgrade buttons */
}
.slot .die {
  width: 42px;
  height: 42px;
  perspective: 400px;
  margin-bottom: 5px;
  cursor: pointer;
}
.slot .die.disabled {
  pointer-events: none;
  opacity: 0.3;
}
.slot .die.charged {
  animation: chargedPulse 0.6s ease-in-out infinite alternate;
}
@keyframes chargedPulse {
  from {
    box-shadow: 0 0 6px 2px rgba(255, 200, 0, 0.6);
  }
  to {
    box-shadow: 0 0 14px 5px rgb(255, 200, 0);
  }
}
.slot .die .cube-wrapper {
  width: 42px;
  height: 42px;
  perspective: none;
  transform-style: preserve-3d;
}
.slot .die .face {
  position: absolute;
  width: 42px;
  height: 42px;
  line-height: 42px;
  background: #fff;
  color: #000;
  border: 1px solid #999;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0;
  margin: 0;
  user-select: none;
  -webkit-user-select: none;
}
.slot .die .cube {
  width: 42px;
  height: 42px;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateY(0deg) translateZ(-30px);
  transition: transform 1s;
}
.slot .die .cube-wrapper.rolling {
  animation: popRoll 0.5s ease;
}
@keyframes popRoll {
  0% {
    transform: scale(1) translateZ(0);
  }
  30% {
    transform: scale(1.2) translateZ(-10px);
  }
  100% {
    transform: scale(1) translateZ(0);
  }
}
.slot .die {
  /* Face placement */
}
.slot .die .front {
  transform: rotateY(0deg) translateZ(21px);
}
.slot .die .back {
  transform: rotateY(180deg) translateZ(21px);
}
.slot .die .right {
  transform: rotateY(90deg) translateZ(21px);
}
.slot .die .left {
  transform: rotateY(-90deg) translateZ(21px);
}
.slot .die .top {
  transform: rotateX(90deg) translateZ(21px);
}
.slot .die .bottom {
  transform: rotateX(-90deg) translateZ(21px);
}
.slot .die.bounce {
  animation: bounceDie 0.25s ease;
}
@keyframes bounceDie {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
.slot .cooldown {
  width: 100%;
  height: 6px;
  background: #444;
  border-radius: 3px;
  overflow: visible;
  position: relative;
}
.slot .cooldown .cooldown-fill {
  height: 100%;
  background: #a8832a;
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}
.slot .cooldown .charge-dot {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  background: #c44a18;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: left 0.1s linear;
  box-shadow: 0 0 4px rgba(180, 60, 10, 0.7);
}

.plus-slot {
  position: absolute;
  top: 0;
  right: -80px;
  width: 60px;
}

#enemy-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: url("../images/grass.png");
  background-repeat: repeat;
  background-size: 60%;
  background-position: top left;
}
@media (max-width: 1200px) {
  #enemy-zone {
    background-size: 50%;
  }
}
@media (max-width: 600px) {
  #enemy-zone {
    background-size: 70%;
  }
}
@media (max-width: 500px) {
  #enemy-zone {
    background-size: 80%;
  }
}
@media (max-width: 400px) {
  #enemy-zone {
    background-size: 90%;
  }
}

@keyframes castle-shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(5px);
  }
  80% {
    transform: translateX(-3px);
  }
}
.castle-shake {
  animation: castle-shake 0.35s ease;
}

@keyframes castle-fall {
  0% {
    transform: translateX(0) translateY(0);
  }
  6% {
    transform: translateX(-10px) translateY(0);
  }
  12% {
    transform: translateX(12px) translateY(3px);
  }
  18% {
    transform: translateX(-14px) translateY(8px);
  }
  24% {
    transform: translateX(14px) translateY(16px);
  }
  32% {
    transform: translateX(-10px) translateY(35px);
  }
  42% {
    transform: translateX(8px) translateY(80px);
  }
  55% {
    transform: translateX(-5px) translateY(150px);
  }
  70% {
    transform: translateX(3px) translateY(240px);
  }
  100% {
    transform: translateX(0) translateY(380px);
  }
}
.castle-falling {
  animation: castle-fall 2s ease-in forwards;
  pointer-events: none;
}

@keyframes melee-attack {
  0% {
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
  25% {
    transform: scale(1.25) translateY(-10px);
    filter: brightness(2);
  }
  60% {
    transform: scale(0.9) translateY(6px);
    filter: brightness(1);
  }
  100% {
    transform: scale(1) translateY(0);
    filter: brightness(1);
  }
}
.melee-attack {
  animation: melee-attack 0.45s ease;
}

.net-overlay {
  position: absolute;
  inset: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  line-height: 1;
  background: rgba(180, 180, 140, 0.25);
  border-radius: 10px;
  z-index: 20;
  pointer-events: none;
  animation: net-drop 0.25s ease;
}

.die {
  overflow: visible;
}

@keyframes net-drop {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}
.die.netted {
  cursor: not-allowed;
}

.stone-overlay {
  position: absolute;
  inset: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 90, 70, 0.35);
  border-radius: 10px;
  z-index: 20;
  pointer-events: none;
  animation: stone-drop 0.2s ease;
}
.stone-overlay img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

@keyframes stone-drop {
  from {
    transform: scale(1.4);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.die.stoned {
  cursor: not-allowed;
  filter: grayscale(60%) brightness(0.8);
}

.castle {
  position: fixed;
  bottom: 0;
  left: -10px;
  width: calc(100% + 20px);
  height: 180px;
  background-color: #7a6248;
  background-image: url("../images/castle.png");
  background-repeat: repeat;
  background-size: 100px 100px;
  background-position: top left;
  z-index: 1000;
  display: flex;
  justify-content: center;
  overflow: visible;
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.07), 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.castle-top {
  position: absolute;
  top: -14px;
  left: 52px;
  right: 52px;
  height: 14px;
  background-color: #7a6248;
  background-image: url("../images/castle.png");
  background-repeat: repeat;
  background-size: 100px 100px;
  background-position: -52px 180px;
  -webkit-mask-image: repeating-linear-gradient(90deg, black 0, black 14px, transparent 14px, transparent 25px);
  mask-image: repeating-linear-gradient(90deg, black 0, black 14px, transparent 14px, transparent 25px);
}

.castle-tower {
  position: absolute;
  bottom: 0;
  width: 52px;
  height: 218px;
  background-color: #5d4832;
  background-image: url("../images/castle.png");
  background-repeat: repeat;
  background-size: 100px 100px;
  background-position: top left;
  filter: brightness(0.82);
  will-change: filter;
  overflow: visible;
  box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.25), inset -2px 0 5px rgba(0, 0, 0, 0.25);
}
.castle-tower.left {
  left: 0;
  z-index: 2;
}
.castle-tower.right {
  right: 0;
  z-index: 2;
}
.castle-tower #castle-strength {
  position: absolute;
  top: 8px;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  letter-spacing: 1px;
  pointer-events: none;
}

.tower-top {
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 2;
  background-color: #5d4832;
  background-image: url("../images/castle.png");
  background-repeat: repeat;
  background-size: 100px 100px;
  background-position: 0 218px;
  filter: brightness(0.82);
  will-change: filter;
  -webkit-mask-image: repeating-linear-gradient(90deg, black 0, black 14px, transparent 14px, transparent 25px);
  mask-image: repeating-linear-gradient(90deg, black 0, black 14px, transparent 14px, transparent 25px);
}

.projectile {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #0ff;
  border-radius: 50%;
  pointer-events: none;
}

#message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #f0e0b0;
  display: none;
  border: 2px solid #7a5c2a;
  padding: 0;
  background: rgba(30, 20, 10, 0.93);
  border-radius: 10px;
  z-index: 10001;
  min-width: 340px;
  max-width: 420px;
  width: 88%;
}
@media (max-width: 500px) {
  #message {
    min-width: 0;
    width: 90%;
  }
}

#end-screen {
  padding: 28px 32px 24px;
}
#end-screen h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #f5d87a;
  letter-spacing: 1px;
}
#end-screen .score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 20px;
}
#end-screen .score-table td {
  padding: 4px 6px;
  color: #d4c090;
  text-align: left;
}
#end-screen .score-table td:last-child {
  text-align: right;
  font-weight: bold;
}
#end-screen .score-table tr.score-section {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid #6b4217 td;
  border-bottom-color: #c8a860;
  border-bottom-font-size: 12px;
  border-bottom-font-weight: normal;
  border-bottom-text-transform: uppercase;
  border-bottom-letter-spacing: 1.5px;
  border-bottom-padding-top: 8px;
  border-bottom-padding-bottom: 4px;
  border-bottom-text-align: left;
}
#end-screen .score-table tr.score-total td {
  color: #f5d87a;
  font-size: 18px;
  font-weight: bold;
  border-top: 2px solid #8b6914;
  padding-top: 14px;
}

#name-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  margin-bottom: 0;
  gap: 4px;
  margin-bottom: 20px;
}
#name-field label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}
#name-field input {
  background: #fff;
  border: 2px solid #aaa;
  border-radius: 6px;
  color: #111;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  width: 60%;
  max-width: 300px;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
#name-field input::placeholder {
  color: rgba(0, 0, 0, 0.35);
  font-weight: normal;
}
#name-field input:focus {
  border-color: #f5d87a;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(245, 216, 122, 0.3);
}

.projectile {
  position: absolute;
  width: 8px;
  height: 8px;
  background: cyan;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
}

.add-die {
  display: inline-block;
  margin: 10px auto;
  padding: 6px 12px;
  font-size: 1rem;
  background: #4a6828;
  color: #f0e0b0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-die:hover {
  background: #5e8432;
}

.upgrade-buttons {
  position: absolute;
  top: 53px;
  left: 0px;
  width: 100%;
  overflow: hidden;
}
.upgrade-buttons button {
  display: block;
  margin: 4px auto;
  padding: 5px 0px;
  background: #4a3520;
  color: #f0e0b0;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  width: 42px;
}
.upgrade-buttons button:hover {
  background: #6b5030;
}
.upgrade-buttons button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.upgrade-buttons button.upgrade-element {
  background-color: white;
  padding: 2px;
}
.upgrade-buttons button.upgrade-element img {
  width: 20px;
  height: 20px;
}

.add-die {
  display: block;
  margin: 12px auto;
  padding: 6px 12px;
  font-size: 1rem;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.add-die:hover {
  background: #218838;
}

.die-color-white.die .face {
  background-color: #ffffff;
}

.die-color-yellow.die .face {
  background-color: #ffff99;
}

.die-color-green.die .face {
  background-color: #c7db2a;
}

.die-color-blue.die .face {
  background-color: #57a5f4;
}

.die-color-red.die .face {
  background-color: #ff9999;
}

.die-color-brown.die .face {
  background-color: #d9560d;
}

.die-color-black.die .face {
  background-color: #333;
  color: white;
}

.enemy {
  position: absolute;
  width: 64px;
  height: 89px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  z-index: 2;
}
.enemy.boss .sprite-wrapper {
  box-shadow: 0 0 40px red, inset 0 0 24px red;
  border-radius: 50%;
}
.enemy .sprite-wrapper {
  width: 64px;
  height: 64px;
  overflow: hidden;
  position: relative;
}
.enemy .sprite-wrapper .burning-effect {
  position: absolute;
  top: 0;
  left: 78%;
  transform: translateX(-50%);
  width: 78px;
  height: 131px;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 5;
  transform-origin: bottom center;
}
.enemy .enemy-sprite {
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 128px;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  transform: scale(0.5);
  transform-origin: top left;
}
.enemy .enemy-sprite.burning {
  animation: burn 1s infinite;
}
@keyframes burn {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.enemy .enemy-hp {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: bold;
  color: black;
}

.enemy-target-marker {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 4px #000, 0 0 8px #000, 1px 1px 0 #000;
  pointer-events: none;
  z-index: 10;
  animation: target-bounce 0.65s ease-in-out infinite alternate;
}

@keyframes target-bounce {
  from {
    transform: translateX(-50%) translateY(0);
  }
  to {
    transform: translateX(-50%) translateY(-6px);
  }
}
.enemy {
  cursor: pointer;
  pointer-events: auto;
}

.upgrade-placeholder {
  height: 28px;
}

.element-icon {
  position: relative;
  top: -86px;
  left: -1px;
  width: 24px;
  height: 24px;
  z-index: 10;
  pointer-events: none;
  background-color: white;
  border-radius: 50%;
  padding: 3px;
}

#splashscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  background-color: #00070a;
  color: white;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 2rem;
  z-index: 9999;
  flex-direction: column;
  text-align: center;
  padding-top: 24px;
  padding-bottom: max(env(safe-area-inset-bottom, 0px), 20px);
  box-sizing: border-box;
  overflow-y: auto;
}
#splashscreen img.dd-logo {
  width: 72%;
  max-width: 280px;
}
#splashscreen .version-label {
  margin: 4px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: normal;
}
#splashscreen #splashscreen-text {
  width: 100%;
}
#splashscreen #splashscreen-text .level-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
#splashscreen #splashscreen-text .level-buttons button {
  padding: 9px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #111;
  text-shadow: none;
  transition: transform 0.1s ease;
}
#splashscreen #splashscreen-text .level-buttons button:hover {
  transform: scale(1.05);
}
#splashscreen #splashscreen-text .level-buttons button.casual {
  background: #ffffff;
  color: #111;
  width: 80%;
  max-width: 300px;
}
#splashscreen #splashscreen-text .level-buttons button.easy {
  background: #ffff99;
  color: #111;
}
#splashscreen #splashscreen-text .level-buttons button.normal {
  background: #c7db2a;
  color: #111;
}
#splashscreen #splashscreen-text .level-buttons button.hard {
  background: #57a5f4;
  color: #111;
}
#splashscreen #splashscreen-text .level-buttons button.brutal {
  background: #ff9999;
  color: #111;
}
#splashscreen #splashscreen-text .level-buttons button.infernal {
  background: #d9560d;
  color: #fff;
  text-shadow: 1px 1px 2px #000;
}
#splashscreen #splashscreen-text .level-buttons button.insane {
  background: #333333;
  color: #fff;
  border: 1px solid #fff;
  text-shadow: 1px 1px 2px #000;
}
#splashscreen #splashscreen-text .level-buttons button.dev {
  background: #1fa841;
  color: #fff;
}
#splashscreen #splashscreen-text .level-buttons button.birk {
  background: #5a3622;
  color: #fff;
  border: 1px solid #fff;
}
#splashscreen #splashscreen-text .level-buttons button .diff-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  vertical-align: middle;
  line-height: 1;
}
#splashscreen #splashscreen-text .level-buttons button .diff-won {
  background: #fff;
  color: #00c050;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
#splashscreen #splashscreen-text .level-buttons button .diff-lost {
  background: #fff;
  color: #e03030;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}
#splashscreen #splashscreen-text .level-buttons .level-buttons-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 80%;
  max-width: 300px;
}
#splashscreen #splashscreen-text .level-buttons .level-buttons-grid button {
  width: calc(50% - 5px);
}
#splashscreen #splashscreen-text .level-buttons button:disabled:not(.locked) {
  opacity: 0.15;
  cursor: default;
  transform: none !important;
  filter: grayscale(80%);
  pointer-events: none;
}
#splashscreen #splashscreen-text .level-buttons button.locked {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(70%);
  pointer-events: all;
}

.protip-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  padding: 3px;
  vertical-align: middle;
  box-sizing: border-box;
  margin: 0 3px;
  object-fit: contain;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

#protip {
  margin-top: 12px;
  min-height: 62px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid #ffd700;
  border-radius: 4px;
  font-size: 13px;
  color: #ddd;
  text-align: left;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
}
#protip:hover {
  background: rgba(255, 255, 255, 0.13);
}

.protip-label {
  font-weight: bold;
  color: #ffd700;
  margin-right: 6px;
}

#info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.55);
  padding: 4px 10px 6px;
  color: #e8dfc0;
  z-index: 10000;
  font-size: 12px;
}
#info .info-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
#info .info-top #wave-name {
  font-size: 16px;
  font-weight: bold;
  color: #e8dfc0;
}
#info .info-top .info-version {
  font-size: 13px;
  font-weight: normal;
  color: #e8dfc0;
  letter-spacing: 0.5px;
}
#info .info-cols {
  display: flex;
  gap: 8px;
}
#info .info-cols .info-col {
  flex: 1;
  line-height: 1.5;
}
#info .info-cols .info-col b {
  font-size: 13px;
}

#next-wave-info {
  position: absolute;
  top: 8px;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  letter-spacing: 1px;
  pointer-events: none;
}

.restart-btn, #next-wave-button {
  display: block;
  margin: 4px auto;
  padding: 4px 20px;
  font-size: 25px;
  background: #8b6914;
  color: #f5e8c0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}

.splash-circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 150, 255, 0.18);
  border: 2px solid rgba(80, 180, 255, 0.75);
  box-shadow: 0 0 12px rgba(0, 150, 255, 0.35);
  pointer-events: none;
  z-index: 1;
}

.earth-stone {
  position: absolute;
  width: 60px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}
.earth-stone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes windGust {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateY(-130%);
    opacity: 0;
  }
}
.wind-gust {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(to bottom, rgba(255, 255, 255, var(--gust-alpha, 0.92)) 0%, transparent 65%);
  animation: windGust 1.1s linear forwards;
}

#upgrade-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8b6914;
  color: #f5e8c0;
  font-size: 17px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  user-select: none;
  animation: badge-pulse 1.4s ease-in-out infinite;
}

@keyframes shake {
  0%, 100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-5px, -2px);
  }
  40% {
    transform: translate(5px, 3px);
  }
  60% {
    transform: translate(-4px, 2px);
  }
  80% {
    transform: translate(3px, -2px);
  }
}
#app.shake {
  animation: shake 0.28s ease;
}

@keyframes badge-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}
@keyframes excellent-bounce {
  0% {
    transform: translateY(0);
  }
  18% {
    transform: translateY(-14px);
  }
  36% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  64% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
#next-wave-container {
  position: absolute;
  bottom: 240px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 10;
}
#next-wave-container button {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgb(139, 105, 20);
  border: 2px solid #333;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#next-wave-container button:hover {
  background-color: #ffcc00;
}
#next-wave-container button.shaking {
  animation: excellent-bounce 0.7s ease-in-out;
}

#cola-drawer {
  position: absolute;
  right: 0;
  top: 12%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  transform: translateX(260px);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 99999;
}
#cola-drawer.open {
  transform: translateX(0);
}

#cola-btn {
  writing-mode: vertical-lr;
  padding: 10px 6px;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-right: none;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
  margin-right: -1px;
}
#cola-btn:hover {
  color: rgb(255, 255, 255);
  border-color: rgb(255, 255, 255);
  background: rgba(0, 0, 0, 0.75);
}

#cola-modal-box {
  width: 260px;
  box-sizing: border-box;
  background: #100d06;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0 0 0 12px;
  padding: 20px 16px 16px;
  text-align: center;
  color: #f0e0b0;
  font-size: 14px;
  line-height: 1.5;
}

.cola-title {
  font-size: 16px;
  font-weight: bold;
  color: #f5d87a;
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.cola-personal {
  font-size: 12px;
  color: #d4b87a;
  margin: 0 0 14px;
  line-height: 1.4;
}

#cola-amounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cola-main {
  width: 100%;
}

.cola-row {
  display: flex;
  gap: 8px;
}
.cola-row .cola-amount {
  flex: 1;
}

.cola-amount {
  padding: 12px 8px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: filter 0.15s;
}
.cola-amount:hover {
  filter: brightness(1.15);
}

.ca-lime {
  background: #c7db2a;
  color: #111;
}

.ca-blue {
  background: #57a5f4;
  color: #111;
}

.ca-orange {
  background: #d9560d;
  color: #fff;
}

.ca-dark {
  background: #333333;
  color: #fff;
}

.cola-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
}

#cola-modal-close,
#cola-never {
  color: #6a5030;
  font-size: 12px;
  text-decoration: underline;
}
#cola-modal-close:hover,
#cola-never:hover {
  color: #c8a870;
}

#support-nudge {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #100d06;
  border: 1px solid #5a4020;
  border-radius: 10px;
  padding: 16px 20px 14px;
  text-align: center;
  color: #eee;
  font-size: 14px;
  line-height: 1.5;
  width: 280px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
#support-nudge p {
  margin: 0 0 6px;
}
#support-nudge .nudge-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 14px;
}
#support-nudge .nudge-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
#support-nudge #nudge-support {
  padding: 8px 16px;
  background: #0070ba;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
#support-nudge #nudge-support:hover {
  background: #005ea6;
}
#support-nudge #nudge-later, #support-nudge #nudge-never {
  background: transparent;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 4px;
}
#support-nudge #nudge-later:hover, #support-nudge #nudge-never:hover {
  color: #ccc;
}

#splash-hs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 6px 0 0;
}

.splash-hs-link {
  color: #f5d87a;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}
.splash-hs-link:hover {
  text-decoration: underline;
}

.splash-hs-plays {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}

.hs-link {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #a08040;
  text-decoration: underline;
  cursor: pointer;
}
.hs-link:hover {
  color: #f5d87a;
}

#die-protip {
  position: fixed;
  bottom: 10px;
  left: 58px;
  right: 58px;
  background: rgba(20, 15, 8, 0.9);
  border-left: 3px solid #ffd700;
  border-radius: 4px;
  padding: 6px 30px 6px 10px;
  font-size: 12px;
  color: #ddd;
  line-height: 1.4;
  z-index: 2500;
  box-sizing: border-box;
  cursor: pointer;
  min-height: 62px;
}
#die-protip:hover {
  border-left-color: #ffe066;
}
#die-protip #die-protip-close {
  position: absolute;
  top: 4px;
  right: 7px;
  background: none;
  border: none;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
#die-protip #die-protip-close:hover {
  color: #ccc;
}

@media (max-width: 600px) {
  #die-protip {
    bottom: 14px;
  }
}
.die.bricks-maxed {
  position: relative;
  pointer-events: none;
}

.bricks-full-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: bold;
  color: rgba(220, 60, 60, 0.92);
  background: rgba(0, 0, 0, 0.28);
  border-radius: 3px;
  z-index: 25;
  pointer-events: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

#boost-badge {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1a6e3a;
  color: #b8f0c8;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  user-select: none;
}

#locked-tip {
  position: fixed;
  background: rgba(0, 0, 0, 0.88);
  color: #f0e0b0;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
  white-space: nowrap;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.15s;
  transform: translateX(-50%);
}
#locked-tip.visible {
  opacity: 1;
}

/*# sourceMappingURL=dd.css.map */
