:root {
  --bg: #4DB8C4;
  --panel: #3FA5A9;
  --text: #ffffff;
  --muted: #E0F4F7;
  --cookie-bg: #ffd700;
  --christmas-red: #2596BE;
  --christmas-green: #2D8B8F;
  --christmas-gold: #FDB813;
  --building-hover: #6ECFD9;
  --disabled: #2A7C80;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: url('./assets/background.PNG') no-repeat center center fixed;
  background-size: cover;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Snowflakes */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

.snowflake {
  position: absolute;
  top: -10%;
  color: #ffffff;
  font-size: 1.5em;
  opacity: 0.8;
  animation: fall linear infinite;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.snowflake:nth-child(1) {
  left: 10%;
  animation-duration: 10s;
  animation-delay: 0s;
  font-size: 1.2em;
}

.snowflake:nth-child(2) {
  left: 25%;
  animation-duration: 12s;
  animation-delay: 2s;
  font-size: 1.8em;
}

.snowflake:nth-child(3) {
  left: 40%;
  animation-duration: 8s;
  animation-delay: 4s;
  font-size: 1.5em;
}

.snowflake:nth-child(4) {
  left: 55%;
  animation-duration: 14s;
  animation-delay: 1s;
  font-size: 1.3em;
}

.snowflake:nth-child(5) {
  left: 70%;
  animation-duration: 11s;
  animation-delay: 3s;
  font-size: 1.6em;
}

.snowflake:nth-child(6) {
  left: 85%;
  animation-duration: 9s;
  animation-delay: 5s;
  font-size: 1.4em;
}

.snowflake:nth-child(7) {
  left: 15%;
  animation-duration: 13s;
  animation-delay: 6s;
  font-size: 1.7em;
}

.snowflake:nth-child(8) {
  left: 95%;
  animation-duration: 10s;
  animation-delay: 2.5s;
  font-size: 1.2em;
}

@keyframes fall {
  0% {
    top: -10%;
    transform: translateX(0) rotate(0deg);
  }
  100% {
    top: 110%;
    transform: translateX(100px) rotate(360deg);
  }
}

/* Game Layout */
.game-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Left Panel - Present Clicker Area */
.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(77, 184, 196, 0.3) 0%, transparent 70%);
  padding: 40px;
  position: relative;
  overflow: visible;
}

.stats {
  position: absolute;
  top: 60px;
  text-align: center;
  width: 100%;
  z-index: 20;
}

.cookie-count {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #FFD54A;
  text-shadow:
    2px 2px 8px rgba(196, 30, 58, 0.6),
    0 0 20px rgba(255, 215, 0, 0.3),
    -2px -2px 0 #5C3A21,
    2px -2px 0 #5C3A21,
    -2px 2px 0 #5C3A21,
    2px 2px 0 #5C3A21,
    -2px 0 0 #5C3A21,
    2px 0 0 #5C3A21,
    0 -2px 0 #5C3A21,
    0 2px 0 #5C3A21;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
  min-width: 200px;
  display: inline-block;
  text-align: center;
}

.cookies-per-second {
  font-size: 18px;
  color: #000000;
  font-weight: 700;
}

.cookies-per-second span {
  color: #000000;
  font-weight: 700;
}

/* Building Visuals Background */
.building-visuals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.building-visual-group {
  position: absolute;
  pointer-events: auto;
  cursor: help;
  transition: all 0.3s ease;
}

.building-visual-emoji:hover {
  opacity: 0.95 !important;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
  z-index: 10;
}

.building-visual-emoji::after {
  content: attr(data-name);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: var(--christmas-gold);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: Inter, sans-serif;
}

.building-visual-emoji:hover::after {
  opacity: 1;
}

.building-floating-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--christmas-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
  pointer-events: none;
  z-index: 100;
  animation: building-float-up 1s ease-out forwards;
}

@keyframes building-float-up {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80px) scale(0.8);
  }
}

.building-visual-emoji {
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, filter 0.3s ease, transform 0.3s ease;
  animation: building-idle 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  position: absolute;
  left: 0;
  top: 0;
}

.building-visual-emoji img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

@keyframes building-idle {
  0%, 100% {
    transform: translate(var(--x, 0), var(--y, 0)) scale(1);
  }
  25% {
    transform: translate(var(--x, 0), calc(var(--y, 0) - 5px)) scale(1.05);
  }
  75% {
    transform: translate(var(--x, 0), calc(var(--y, 0) + 3px)) scale(0.98);
  }
}

/* Cookie Button */
.cookie-area {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.big-cookie {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.big-cookie img {
  width: 280px;
  height: 280px;
  object-fit: contain;
}

.big-cookie:hover {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.6)) brightness(1.1);
}

.big-cookie:active {
  transform: scale(0.95);
}

/* Puff animation for image change */
@keyframes puff {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.5;
    filter: blur(10px);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

.big-cookie.puff img {
  animation: puff 0.6s ease-out;
}

/* Floating Click Effect */
.floating-text {
  position: absolute;
  font-size: 32px;
  font-weight: 700;
  color: var(--christmas-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.6);
  pointer-events: none;
  z-index: 100;
  animation: float-up 1s ease-out forwards;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, -80px) scale(0.8);
  }
}

/* Visual Cursors Around Cookie */
.cursor-visual {
  position: absolute;
  pointer-events: none;
  z-index: 15;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--rotation));
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5));
}

.cursor-visual img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cursor-visual.clicking {
  animation: cursor-click 0.3s ease-out;
}

@keyframes cursor-click {
  0% {
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--rotation));
  }
  50% {
    transform: translate(-50%, -50%) translate(calc(var(--x) * 0.6), calc(var(--y) * 0.6)) rotate(var(--rotation));
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--rotation));
  }
}

/* Right Panel - Store */
.right-panel {
  width: 380px;
  background: linear-gradient(180deg, #8B6F47 0%, #6D5635 50%, #5C4526 100%);
  border-left: 3px solid #3E2A1A;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5), inset 0 0 100px rgba(0, 0, 0, 0.3);
}

.store-title {
  margin: 0;
  padding: 20px;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  background: #5C3A21;
  border-bottom: 3px solid #3E2A1A;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 15px rgba(253, 184, 19, 0.4);
  position: sticky;
  top: 0;
  z-index: 10;
}

.mute-btn {
  position: absolute;
  top: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFD54A;
  border: 2px solid #3E2A1A;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 30;
}

.mute-btn:hover {
  background: #FFE680;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.mute-btn:active {
  transform: scale(0.95);
}

.restart-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #8B0000;
  border: 2px solid #3E2A1A;
  font-size: 36px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 30;
  line-height: 0;
  padding: 0;
  padding-bottom: 3px;
}

.restart-btn:hover {
  background: #A52A2A;
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.restart-btn:active {
  transform: scale(0.95);
}

/* Upgrades Section */
.upgrades-section {
  padding: 10px;
  background: rgba(255, 255, 255, 0.3);
  border-bottom: 2px solid #3E2A1A;
}

.upgrades-title {
  margin: 0 0 10px 0;
  padding: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #3E2A1A;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3);
}

.upgrades {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.upgrade {
  width: 80px;
  background: linear-gradient(135deg, rgba(37, 150, 190, 0.7), rgba(30, 122, 154, 0.7));
  border: 2px solid var(--christmas-gold);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.upgrade:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(253, 184, 19, 0.4), 0 0 15px rgba(37, 150, 190, 0.3);
  border-color: #FFE066;
}

.upgrade:active {
  transform: translateY(-1px);
}

.upgrade.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: rgba(255, 215, 0, 0.3);
}

.upgrade.disabled:hover {
  transform: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.3);
}

.upgrade.locked {
  opacity: 0.25;
  cursor: not-allowed;
  border-color: rgba(255, 215, 0, 0.2);
  filter: grayscale(0.8);
}

.upgrade.locked:hover {
  transform: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.2);
}

.upgrade-icon {
  font-size: 32px;
  line-height: 1;
}

.upgrade-name {
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.upgrade-cost {
  font-size: 11px;
  font-weight: 700;
  color: #90ee90;
  text-shadow: 0 0 5px rgba(144, 238, 144, 0.3);
}

.upgrade.disabled .upgrade-cost {
  color: #ff6b6b;
  text-shadow: none;
}

/* Buildings Section */
.buildings-title {
  margin: 0;
  padding: 16px;
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7), 0 0 15px rgba(253, 184, 19, 0.4);
  background: #5C3A21;
  border-bottom: 2px solid #3E2A1A;
}

.store {
  padding: 10px;
  background: rgba(92, 69, 38, 0.6);
}

/* Custom Scrollbar */
.right-panel::-webkit-scrollbar {
  width: 12px;
}

.right-panel::-webkit-scrollbar-track {
  background: rgba(92, 58, 33, 0.5);
  border-radius: 6px;
}

.right-panel::-webkit-scrollbar-thumb {
  background: #5C3A21;
  border-radius: 6px;
  border: 2px solid #4A2F1A;
}

.right-panel::-webkit-scrollbar-thumb:hover {
  background: #6D4528;
}

/* Building Items */
.building {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
  border: 2px solid #5C3A21;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.building:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
  border-color: #6D4528;
  transform: translateX(-3px);
  box-shadow: 0 5px 20px rgba(92, 58, 33, 0.3), 0 0 15px rgba(109, 69, 40, 0.2);
}

.building:active {
  transform: translateX(-2px) scale(0.98);
}

.building.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-color: rgba(92, 58, 33, 0.3);
}

.building.disabled:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-color: rgba(92, 58, 33, 0.3);
}

.building.locked {
  opacity: 0.25;
  cursor: not-allowed;
  background: var(--disabled);
  border-color: rgba(255, 215, 0, 0.2);
  filter: grayscale(0.8);
}

.building.locked:hover {
  transform: none;
  box-shadow: none;
  background: var(--disabled);
  border-color: rgba(255, 215, 0, 0.2);
}

.building-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.building-icon {
  font-size: 36px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.building-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.building-details {
  flex: 1;
}

.building-name {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.building-cost {
  font-size: 13px;
  color: #8B1A1A;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(139, 26, 26, 0.3);
}

.building.disabled .building-cost {
  color: #ff6b6b;
  text-shadow: none;
}

.building-stats {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.building-owned {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  background: #FFD54A;
  padding: 4px 12px;
  border-radius: 8px;
  min-width: 50px;
  text-align: center;
  border: 1px solid var(--christmas-gold);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.building-cps {
  font-size: 12px;
  color: #000000;
  font-weight: 600;
}

/* Progress Bar */
.progress-bar-container {
  position: fixed;
  bottom: 20px;
  left: 30px;
  right: calc(380px + 30px);
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  pointer-events: none;
  padding: 0 20px;
}

.progress-bar {
  position: relative;
  width: 100%;
  height: 30px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid var(--christmas-gold);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.progress-fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    #E74C3C,
    #E74C3C 10px,
    #FFFFFF 10px,
    #FFFFFF 20px
  );
  border-radius: 12px;
  transition: width 0.3s ease;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
  width: 0%;
}

.milestones {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  width: calc(100% - 40px);
  height: 100%;
  transform: translateY(-50%);
  pointer-events: auto;
}

.milestone {
  position: absolute;
  top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.milestone img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5);
  transition: all 0.3s ease;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid rgba(253, 184, 19, 0.3);
  position: relative;
}

.milestone.achieved img {
  filter: grayscale(0) brightness(1) drop-shadow(0 0 12px rgba(253, 184, 19, 0.8));
  transform: scale(1.1);
  border: 3px solid var(--christmas-gold);
  background: #FFFFFF;
}

.milestone.current img {
  filter: grayscale(0.7) brightness(0.7) drop-shadow(0 0 8px rgba(253, 184, 19, 0.5));
  transform: scale(1.05);
  border: 2px solid var(--christmas-gold);
  background: rgba(180, 180, 180, 0.95);
}

.milestone.locked {
  display: none;
}

@keyframes pulse-milestone {
  0%, 100% {
    transform: scale(1.3);
  }
  50% {
    transform: scale(1.4);
  }
}

.milestone-lock {
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: rgba(180, 180, 180, 0.95);
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--christmas-gold);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.milestone.current .milestone-lock {
  display: flex;
}

.milestone.current img {
  display: none;
}

.milestone-label {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--christmas-gold);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  background: rgba(74, 55, 40, 0.95);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(253, 184, 19, 0.4);
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 968px) {
  .game-container {
    flex-direction: column;
  }

  .left-panel {
    height: 55vh;
    padding: 15px;
  }

  .stats {
    top: 15px;
  }

  .cookie-count {
    font-size: 36px;
  }

  .cookies-per-second {
    font-size: 15px;
  }

  .big-cookie img {
    width: 220px;
    height: 220px;
  }

  .cursor-visual img {
    width: 28px;
    height: 28px;
  }

  .building-visual-emoji img {
    width: 32px;
    height: 32px;
  }

  .right-panel {
    width: 100%;
    height: 45vh;
    border-left: none;
    border-top: 3px solid #3E2A1A;
  }

  .store-title {
    font-size: 22px;
    padding: 12px;
  }

  .upgrades-section {
    padding: 8px;
  }

  .upgrades-title {
    font-size: 15px;
    padding: 6px;
  }

  .upgrade {
    width: 70px;
    padding: 6px;
  }

  .upgrade-icon {
    font-size: 28px;
  }

  .upgrade-name {
    font-size: 9px;
  }

  .buildings-title {
    font-size: 18px;
    padding: 12px;
  }

  .building {
    padding: 10px;
    margin-bottom: 8px;
  }

  .building-icon {
    width: 42px;
    height: 42px;
  }

  .building-icon img {
    width: 32px;
    height: 32px;
  }

  .building-name {
    font-size: 14px;
  }

  .building-cost {
    font-size: 12px;
  }

  .building-owned {
    font-size: 18px;
    padding: 3px 10px;
    min-width: 45px;
  }

  .building-cps {
    font-size: 11px;
  }

  .mute-btn,
  .restart-btn {
    width: 45px;
    height: 45px;
    font-size: 22px;
  }

  .restart-btn {
    font-size: 32px;
  }

  .progress-bar-container {
    bottom: 15px;
    left: 20px;
    right: 20px;
    height: 70px;
  }

  .progress-bar {
    height: 28px;
  }

  .milestone img {
    width: 36px;
    height: 36px;
  }

  .milestone-label {
    font-size: 10px;
    padding: 2px 5px;
  }
}

@media (max-width: 480px) {
  .left-panel {
    height: 50vh;
    padding: 10px;
  }

  .stats {
    top: 10px;
  }

  .cookie-count {
    font-size: 28px;
    min-width: 150px;
  }

  .cookies-per-second {
    font-size: 13px;
  }

  .big-cookie img {
    width: 180px;
    height: 180px;
  }

  .cursor-visual img {
    width: 24px;
    height: 24px;
  }

  .floating-text {
    font-size: 24px;
  }

  .building-visual-emoji img {
    width: 28px;
    height: 28px;
  }

  .building-floating-text {
    font-size: 14px;
  }

  .right-panel {
    height: 50vh;
  }

  .store-title {
    font-size: 20px;
    padding: 10px;
  }

  .upgrades-section {
    padding: 6px;
  }

  .upgrades-title {
    font-size: 14px;
    padding: 5px;
    margin-bottom: 6px;
  }

  .upgrades {
    gap: 6px;
  }

  .upgrade {
    width: 65px;
    padding: 5px;
    gap: 3px;
  }

  .upgrade-icon {
    font-size: 26px;
  }

  .upgrade-name {
    font-size: 8px;
  }

  .upgrade-cost {
    font-size: 9px;
  }

  .buildings-title {
    font-size: 16px;
    padding: 10px;
  }

  .store {
    padding: 8px;
  }

  .building {
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 10px;
  }

  .building-info {
    gap: 10px;
  }

  .building-icon {
    width: 38px;
    height: 38px;
  }

  .building-icon img {
    width: 28px;
    height: 28px;
  }

  .building-name {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .building-cost {
    font-size: 11px;
  }

  .building-owned {
    font-size: 16px;
    padding: 3px 8px;
    min-width: 40px;
  }

  .building-cps {
    font-size: 10px;
  }

  .mute-btn,
  .restart-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    top: 10px;
    right: 10px;
  }

  .mute-btn {
    top: 60px;
  }

  .restart-btn {
    font-size: 28px;
    padding-bottom: 2px;
  }

  .progress-bar-container {
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 60px;
    padding: 0 10px;
  }

  .progress-bar {
    height: 24px;
    border: 2px solid var(--christmas-gold);
  }

  .milestones {
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
  }

  .milestone {
    top: 12px;
  }

  .milestone img,
  .milestone-lock {
    width: 30px;
    height: 30px;
    padding: 3px;
    border-width: 2px;
  }

  .milestone.achieved img {
    border-width: 2px;
  }

  .milestone-lock {
    font-size: 18px;
  }

  .milestone-label {
    font-size: 9px;
    padding: 1px 4px;
    margin-top: 3px;
  }

  .snowflake {
    font-size: 1.2em;
  }
}
