@keyframes ht-logo-pop {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.3, 0.12);
  }
  35% {
    opacity: 1;
    transform: translateY(-16px) scale(1.05, 1.15);
  }
  55% {
    transform: translateY(4px) scale(1.1, 0.9);
  }
  75% {
    transform: translateY(-3px) scale(0.98, 1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes ht-rise {
  0% {
    opacity: 0;
    transform: translateY(26px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
#full-area.hamster-tubes {
  width: 100%;
  height: 100vh;
  position: absolute;
  overflow: hidden;
  background: #8fcdb3;
  user-select: none;
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  color: #2a2238;
}
#full-area.hamster-tubes section, #full-area.hamster-tubes section * {
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
  box-sizing: border-box;
}
#full-area.hamster-tubes #game-area {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1) !important;
}
#full-area.hamster-tubes #gameContainer {
  position: absolute;
  width: 1280px;
  height: 720px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #a6dcc5;
}
#full-area.hamster-tubes #ht-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
#full-area.hamster-tubes button {
  border: 0;
  background: none;
  outline: none;
  padding: 0;
  margin: 0;
}
#full-area.hamster-tubes section {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#full-area.hamster-tubes[data-state=home] .ht-home {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#full-area.hamster-tubes[data-state=over] .ht-over {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.15s;
}
#full-area.hamster-tubes .ht-btn {
  position: relative;
  width: 330px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: center/100% 100% no-repeat;
  transition: transform 0.12s ease, filter 0.12s ease;
}
#full-area.hamster-tubes .ht-btn span {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  color: #18294d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
#full-area.hamster-tubes .ht-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
#full-area.hamster-tubes .ht-btn:active {
  transform: scale(0.96);
}
#full-area.hamster-tubes .ht-btn-lit {
  background-image: url("/media/games/hamster-tubes/images/ui/capsule-lit.webp");
}
#full-area.hamster-tubes .ht-btn-lit span {
  color: #4a2300;
  text-shadow: 0 2px 0 rgba(255, 244, 200, 0.85);
}
#full-area.hamster-tubes .ht-btn-glass {
  background-image: url("/media/games/hamster-tubes/images/ui/capsule.webp");
}
#full-area.hamster-tubes .ht-sens {
  position: absolute;
  left: 22px;
  top: 588px;
  width: 270px;
  height: 47px;
  padding: 0 20px 2px 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: url("/media/games/hamster-tubes/images/ui/capsule.webp") center/100% 100% no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#full-area.hamster-tubes .ht-sens svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #18294d;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
#full-area.hamster-tubes .ht-sens svg rect {
  fill: #18294d;
}
#full-area.hamster-tubes .ht-sens span {
  flex: none;
  min-width: 38px;
  text-align: right;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1;
  color: #18294d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
#full-area.hamster-tubes .ht-sens input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
#full-area.hamster-tubes .ht-sens input[type=range]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 5px;
  border: 2px solid #18294d;
  background: linear-gradient(to bottom, rgba(24, 41, 77, 0.32), rgba(24, 41, 77, 0.12));
}
#full-area.hamster-tubes .ht-sens input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 5px;
  border: 2px solid #18294d;
  background: linear-gradient(to bottom, rgba(24, 41, 77, 0.32), rgba(24, 41, 77, 0.12));
}
#full-area.hamster-tubes .ht-sens input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: url("/media/games/hamster-tubes/images/ui/bulb-lit.webp") center/contain no-repeat;
}
#full-area.hamster-tubes .ht-sens input[type=range]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: url("/media/games/hamster-tubes/images/ui/bulb-lit.webp") center/contain no-repeat;
}
#full-area.hamster-tubes[data-state=play] .ht-sens {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#full-area.hamster-tubes .ht-home {
  inset: 0;
}
#full-area.hamster-tubes .ht-logo {
  position: absolute;
  left: 443px;
  top: 100px;
  width: 394px;
  transform-origin: 50% 100%;
  opacity: 0;
}
#full-area.hamster-tubes .ht-logo img {
  display: block;
  width: 100%;
  height: auto;
}
#full-area.hamster-tubes .ht-home[data-intro~=logo] .ht-logo {
  animation: ht-logo-pop 0.62s cubic-bezier(0.3, 0.7, 0.4, 1) both;
}
#full-area.hamster-tubes .ht-levels {
  position: absolute;
  left: 0;
  top: 344px;
  width: 1280px;
  display: flex;
  justify-content: center;
  gap: 8px;
  opacity: 0;
}
#full-area.hamster-tubes .ht-lvl {
  position: relative;
  width: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.12s ease;
}
#full-area.hamster-tubes .ht-lvl:not(.is-locked):hover {
  transform: translateY(-3px);
}
#full-area.hamster-tubes .ht-lvl:not(.is-locked):active {
  transform: scale(0.94);
}
#full-area.hamster-tubes .ht-lvl-face {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  background: url("/media/games/hamster-tubes/images/ui/bulb.webp") center/contain no-repeat;
}
#full-area.hamster-tubes .ht-lvl.is-picked .ht-lvl-face {
  background-image: url("/media/games/hamster-tubes/images/ui/bulb-lit.webp");
}
#full-area.hamster-tubes .ht-lvl.is-picked .ht-lvl-face .ht-lvl-num {
  color: #4a2300;
  text-shadow: 0 2px 0 rgba(255, 244, 200, 0.85);
}
#full-area.hamster-tubes .ht-lvl.is-locked {
  cursor: default;
}
#full-area.hamster-tubes .ht-lvl.is-locked .ht-lvl-face {
  background-image: url("/media/games/hamster-tubes/images/ui/bulb-lock.webp");
}
#full-area.hamster-tubes .ht-lvl-num {
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  color: #18294d;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}
#full-area.hamster-tubes .ht-lock {
  width: 30px;
  height: 30px;
  fill: #18294d;
  stroke: #18294d;
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.62;
}
#full-area.hamster-tubes .ht-lvl-best {
  min-height: 20px;
  font-family: "Lilita One", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 20px;
  color: #9a5427;
}
#full-area.hamster-tubes .ht-home-btns, #full-area.hamster-tubes .ht-over-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
#full-area.hamster-tubes .ht-home-btns {
  position: absolute;
  left: 0;
  width: 1280px;
  justify-content: center;
  top: 466px;
  opacity: 0;
}
#full-area.hamster-tubes .ht-home[data-intro~=btns] .ht-home-btns {
  animation: ht-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) 0.08s both;
}
#full-area.hamster-tubes .ht-home[data-intro~=btns] .ht-levels {
  animation: ht-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
#full-area.hamster-tubes .ht-home.ht-instant .ht-logo, #full-area.hamster-tubes .ht-home.ht-instant .ht-levels, #full-area.hamster-tubes .ht-home.ht-instant .ht-home-btns {
  animation: none;
  opacity: 1;
  transform: none;
}
#full-area.hamster-tubes .ht-over {
  inset: 0;
}
#full-area.hamster-tubes .ht-over-btns {
  position: absolute;
  left: 300px;
  top: 480px;
  opacity: 0;
}
#full-area.hamster-tubes[data-state=over] .ht-over-btns {
  animation: ht-rise 0.36s cubic-bezier(0.34, 1.45, 0.64, 1) 0.6s both;
}
