* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
  background-color: transparent;
}

.hidden {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  padding-top: env(safe-area-inset-top);
  background-color: black;
  font-family: sans-serif;
  overflow: hidden;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.container {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background-color: transparent;
  scroll-behavior: smooth;
}

.container::-webkit-scrollbar {
  display: none;
}

.video-wrapper {
  height: 100vh;
  width: 100vw;
  scroll-snap-align: start;
  position: relative;
  background: transparent;
  margin-bottom: 15px;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  background: black;
  position: relative;
  z-index: 1;
}

.gift-btn {
  position: fixed;
  bottom: 20px;
  right: 10%;
  width: 60px;
  height: 60px;
  z-index: 200;
  background-color: transparent !important;
}

.gift-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 430px;
  background-color: #2e2e2e !important;
  border-radius: 15px 15px 0 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.gift-open {
  animation: giftmenu 0.3s forwards;
}

.gift-close {
  animation: close 0.3s forwards;
}

@keyframes giftmenu {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0%);
  }
}

@keyframes close {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(100%);
  }
}

.headerimg {
  flex: 0 0 auto;
  padding: 10px;
  background-color: #2e2e2e !important;
  border-radius: 10px 10px 0px 0px;
  height: 60px;
  border-bottom: solid 1px rgb(118 114 114 / 39%);
}

.giftlvl {
  margin-top: 0px;
  width: 94%;
  margin-left: 10px;
  border-radius: 8px;
}
.gift-item {
  background-color: transparent;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  color: white;
}

.gift-item img {
  height: 100%;
  width: 100%;
}

.widthgif,
.primary-tiktokstars {
  width: 67px !important;
}

.gifts-wrapper {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background-color: #2e2e2e !important;
}

.gifts-wrapper::-webkit-scrollbar {
  display: none;
}

.gifts-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  box-sizing: border-box;
  background-color: #2e2e2e !important;
}

.gifts-section img {
  width: 55px;
}

.gift-title {
  color: #aaaaab;
  text-align: center;
  font-size: 10px;
  font-weight: 550;
  margin-top: 4px;
}

.coin1 {
  width: 32px !important;
  margin-top: 4px;
}

@supports (-webkit-touch-callout: none) {
  html,
  body,
  .container,
  .video-wrapper {
    height: 100vh !important;
    max-height: 100vh !important;
  }
}

.bottomimg {
  width: 100%;
  background-color: #2e2e2e !important;
}

.icecream {
  width: 70px !important;
  height: 99%;
}

.second-rose,
.flame-secondary,
.fingerheart-secondary,
.lion-secondary,
.second-zeus,
.second-tiktokstars,
.second-gorila,
.second-glory,
.second-sealandwhale,
.second-phoenix {
  transform: scale(1.5);
  animation: zoom 0.3s;
  transition: 0.5s;
}

@keyframes zoom {
  0% {
    transform: scale(1.5);
  }
  50% {
    transform: scale(1.6);
  }
  100% {
    transform: scale(1.5);
  }
}

.lion-canvas,
.zeus-canvas,
.tiktokstars-canvas,
.gorila-canvas,
.glory-canvas,
.sealandwhale-canvas,
.phoenix-canvas,
.universe-canvas {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 8888;
  background: transparent;
  pointer-events: none;
  display: none;
}

.sent-lion {
  position: absolute !important;
  top: 470px;
  left: 2%;
  z-index: 99999 !important;

  width: 170px !important;
  height: 40px !important;

  opacity: 0;
  transform: translateX(-230px);
  pointer-events: none;
}

.sent-lion.notify-in {
  animation: sentLionIn 0.8s ease forwards;
}

.sent-lion.notify-out {
  animation: sentLionOut 0.7s ease forwards;
}

@keyframes sentLionIn {
  from {
    opacity: 0;
    transform: translateX(-230px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes sentLionOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(0);
  }
}

.sent-zeus {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}
.sent-gorila {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}
.sent-gorila.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}

.sent-glory {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}
.sent-glory.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}

.sent-sealandwhale {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}
.sent-sealandwhale.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}

.sent-phoenix {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}
.sent-phoenix.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}

.sent-tiktokstars {
  position: absolute !important;
  top: 470px;
  left: -100%; /* სურათი მარცხნიდან იწყებს */
  height: 70px;
  z-index: 99999 !important;
  transition: left 0.8s ease;
  pointer-events: none;
  width: 170px !important;
  height: 40px !important;
}

.sent-zeus.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}

.sent-tiktokstars.show {
  left: 2% !important; /* გამოისვლება მარცხნიდან */
}
.zeusnotifand {
  opacity: 1;
  animation: endanim 1s;
}

.tiktokstarstifand {
  opacity: 1;
  animation: endanim 1s;
}

.gorilanotifand {
  opacity: 1;
  animation: endanim 1s;
}
.glorynotifand {
  opacity: 1;
  animation: endanim 1s;
}
.sealnotifand {
  opacity: 1;
  animation: endanim 1s;
}
.phoenixnotifand {
  opacity: 1;
  animation: endanim 1s;
}

@keyframes endanim {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.combo-container {
  position: absolute; /* იყო fixed */
  bottom: 100px;
  right: 10%;
  display: none;
  z-index: 9999; /* აღარ გვჭირდება 9999 */
}

.gift-button-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
}

.gift-button {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ff3056;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.1s ease;
  overflow: hidden;
}

.gift-button:active {
  transform: scale(0.93);
}

.button-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-style: italic;
  font-weight: bold;
  color: white;
  font-size: 18px;
  pointer-events: none;
}

.combo-count {
  position: absolute;
  top: -50px;
  left: 35%;
  background: #ff3056;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: white;
  pointer-events: none;
}

.combo-count.fade-out {
  transform: translateY(30px);
}

.combo-count.active {
  opacity: 1;
  transform: translate(-50%, -10px) scale(1);
}

.combo-count.hide {
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.5);
}

/* SVG Progress Ring */
.progress-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 1;
  transform: rotate(-90deg);
  transform-origin: center;
}

.progress-ring__background {
  stroke: #ff007f;
  stroke-width: 4;
  fill: transparent;
}

.progress-ring__progress {
  stroke: black;
  stroke-width: 4;
  fill: transparent;
  transform: rotate(0deg);
  transform-origin: center;
}

.pulse {
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.primary-glory {
  width: 64px !important;
}

.primary-sealandwhale {
  width: 65px !important;
}

.second-sealandwhale {
  height: 75px !important;
}

.second-phoenix {
  height: 82px !important;
}

.primary-phoenix {
  transform: scaleX(1.1) !important;
  transform: scaleY(1.1) !important;
  width: 60px !important;
}
.second-universe {
  transform: scale(1.5);
  animation: zoom 0.3s;
  transition: 0.5s;
}
/* ============ Battle Bar (ADD-ON) — FULL WIDTH & THINNER TEXT ============ */
:root {
  --bar-top: 185px;
  --bar-h: 14px;
  --bar-radius: 0px;

  --png-w: 96px;
  --head-w: 24px;
  --head-offset: 70px;
  --gap: 4px;

  /* IMPORTANT: plain px (JS parseFloat) */
  --safe-left: 10px;
  --safe-right: 56px;

  --trail-fade: 18px;

  --score-fz: 12px;
  --score-fw: 600;
  --score-inset: 12px;
}

/* wrapper – FULL WIDTH */
.tt-battle {
  position: absolute;
  top: var(--bar-top);
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  z-index: 1200;
  pointer-events: none;
}

/* მთავარი ბარი — ფონი ნეიტრალური, რომ "შერევა" არ მოხდეს */
.tt-bar {
  position: relative;
  height: var(--bar-h);
  border-radius: var(--bar-radius);
  overflow: hidden;
  background: #141414; /* ← განზრახ ნეიტრალური */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* ორი დამოუკიდებელი შევსება */
.tt-bar__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  transition: width 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* მარცხენა მხარე */
.tt-bar__fill--left {
  left: 0;
  right: auto;
  width: 0; /* JS ცვლის */
  background: linear-gradient(90deg, #ff2d7d 0%, #ff4b97 100%);
}

/* მარჯვენა მხარე */
.tt-bar__fill--right {
  right: 0;
  left: auto;
  width: 0; /* JS ცვლის */
  background: linear-gradient(90deg, #00d0d8 0%, #2aa8ff 100%);
}

/* trail window */
.tt-trail-window {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.tt-trail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--png-w);
  height: var(--bar-h);
  left: 0;
  background: url("../assets/img/cometa.png") no-repeat 0 50% / contain;
  filter: drop-shadow(0 0 3px rgba(255, 75, 151, 0.35));
  -webkit-mask-image: linear-gradient(
    to right,
    #000 0 calc(100% - var(--trail-fade)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    #000 0 calc(100% - var(--trail-fade)),
    transparent 100%
  );
}

/* comet-ის თეთრი თავი */
.tt-head {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--png-w);
  height: var(--bar-h);
  z-index: 3;
  background: url("../assets/img/cometa.png") no-repeat 0 50% / contain;
  transition: left 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
  clip-path: inset(0 0 0 calc(100% - var(--head-w)));
}

/* კიდეებზე ქულები */
.tt-edge {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  padding-left: var(--score-inset);
  padding-right: var(--score-inset);
  font-weight: var(--score-fw);
  font-size: var(--score-fz);
  color: #fff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
  z-index: 4;
  letter-spacing: 0.2px;
}
.tt-edge--right {
  left: auto;
  right: 0;
  justify-content: flex-end;
}
.tt-edge span {
  display: inline-block;
  transform-origin: left center;
}
.tt-edge--right span {
  transform-origin: right center;
}
.tt-edge span.bump {
  animation: score-bump 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes score-bump {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tt-bar__fill,
  .tt-head {
    transition: none;
  }
}

.gift-item img {
  width: 55px;
  height: auto;
  object-fit: contain;
}

.gift-item .widthgif {
  width: 67px !important;
  height: auto !important;
}


.dynamic-coins{
  position:absolute;
  right:22px;
  bottom:35px;
  height: 30px;

  display:flex;
  align-items:center;
  gap:4px;

  background: #1f1f1f;
  border-radius:10px;

  padding:6px 10px;

  color:#ffffff;
  font-size:14px;
  font-weight:400;
font-family: Arial, Helvetica, sans-serif;
  z-index:20;
}

.coin-dot{
  font-size:12px;
}

.coin-arrow{
  color:#ffffff;
  font-size:23px;
  margin-left:-1px;
  margin-top: -3px;
}

.coinimg{
  margin-top: 3px;
  width: 16px;
}

.recharge-popup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,0.45);

  display: flex;
  align-items: flex-end;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

.recharge-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.recharge-popup.hidden {
display: none;
}

.recharge-panel {
  width: 100%;
  max-width: 430px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.recharge-popup.show .recharge-panel {
  transform: translateY(0);
}

.recharge-image {
  width: 100%;
  display: block;
}


.recharge-panel {
  position: relative;
}

.popup-cover-balance {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 58%;
  height: 4%;
  background: rgba(255, 255, 255, 0);
  z-index: 2;
}

.popup-balance-text {
  position: absolute;
  left: 22.5%;
  top: 13.3%;
  z-index: 3;
  color: #8e8e93;
  font-size: clamp(12px, 3.2vw, 14px);
}

.popup-short-text {
  position: absolute;
  left: 32%;
  top: 13.3%;
  z-index: 3;
  color: #ef4b43;
  font-size: clamp(12px, 3.2vw, 14px);
}