#lb-list-popup {
  padding: 0 8px
}

.price-tabs {
  display: flex;
  gap: 0;
  background: #0d0615;
  border-radius: 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 18px
}

.price-tab {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, .35);
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
  user-select: none
}

.price-tab.active {
  background: linear-gradient(135deg, #d336ff, #9d1fd4);
  color: #fff;
  box-shadow: 0 4px 14px rgba(211, 54, 255, .35)
}

.price-tab.active::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    background: url('svg/ton.svg') no-repeat center;
    background-size: contain;
}

.price-tab.locked {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none
}

.price-tab img {
  width: 13px;
  height: 13px
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
  transition: background .3s ease, color .3s ease
}

.state-badge.waiting {
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .4)
}

.state-badge.starting {
  background: rgba(250, 204, 21, .14);
  color: #facc15
}

.state-badge.running {
  background: rgba(239, 68, 68, .14);
  color: #ef4444
}

.sbdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: sbpulse 1s infinite alternate;
  display: inline-block
}

@keyframes sbpulse {
  from {
    opacity: .3
  }

  to {
    opacity: 1
  }
}

.rounds-track {
  display: flex;
  gap: 5px;
  margin: 14px 0 4px
}

.r-dot {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  transition: .4s
}

.r-dot.active {
  background: linear-gradient(90deg, #d336ff, #ff66cc)
}

.r-dot.done {
  background: #22c55e
}

.rounds-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  opacity: .3;
  letter-spacing: .4px;
  margin-bottom: 8px
}

.players-preview {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
  min-height: 8px
}

.pav {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .09);
  border: 1.5px solid rgba(255, 255, 255, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  animation: avatarIn .4s cubic-bezier(.22, .9, .3, 1);
  will-change: transform
}

.pav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.pav.more {
  background: rgba(30, 30, 46, .5);
  border: 1.5px solid rgba(255, 255, 255, .13);
  font-size: 11px;
  color: #fff
}

@keyframes avatarIn {
  from {
    transform: scale(0) rotate(-15deg);
    opacity: 0
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1
  }
}

@keyframes avatarOut {
  from {
    transform: scale(1);
    opacity: 1
  }

  to {
    transform: scale(0) rotate(10deg);
    opacity: 0
  }
}

.pav.leaving {
  animation: avatarOut .3s ease forwards;
  pointer-events: none
}

.top-cards {
  display: flex;
  gap: 10px;
  margin-bottom: 16px
}

.mini-card {
  flex: 1;
  background: linear-gradient(135deg, rgba(61, 16, 99, .35), rgba(18, 8, 29, .6));
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent
}

.mini-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .04);
  opacity: 0;
  transition: .15s
}

.mini-card:active::after {
  opacity: 1
}

.tag {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, .45);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: block;
  margin-bottom: 4px
}

.card-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff
}

.val {
  font-size: 20px;
  font-weight: 800;
  color: #e0c04e;
  display: flex;
  align-items: center;
  gap: 4px
}

.card-sub-info {
  font-size: 11px;
  color: rgba(255, 255, 255, .5);
  margin-top: 6px
}

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(.4, 0, .2, 1)
}

.popup-backdrop.open {
  opacity: 1;
  pointer-events: auto
}

.popup-sheet {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: linear-gradient(160deg, #1a0828, #0f051a);
  border: none;
  display: flex;
  flex-direction: column;
  transform: translateY(40px);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
}

.popup-backdrop.open .popup-sheet {
  transform: translateY(0)
}

.popup-handle {
  width: 36px;
  height: 90px;
  background: rgba(255, 255, 255, .2);
  border-radius: 4px;
  margin: 12px auto 0;
  flex-shrink: 0;
  opacity: 0;
}

.popup-header {
  padding: 14px 20px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0
}

.popup-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff
}

.popup-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: none;
  color: rgba(255, 255, 255, .6);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center
}

.popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px 24px
}

.popup-body::-webkit-scrollbar {
  display: none
}

.popup-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding: 0 0 2px;
  flex-shrink: 0
}

.ptab {
  flex: 1;
  padding: 9px 0;
  text-align: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: .2s;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.ptab.active {
  background: linear-gradient(135deg, rgba(211, 54, 255, .3), rgba(157, 31, 212, .2));
  color: #fff;
  border-color: rgba(211, 54, 255, .4);
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .04);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  margin: 8px 0;
  border-radius: 15px;
}

.lb-row:last-child {
  border-bottom: none
}

.lb-rank {
  font-size: 13px;
  font-weight: 800;
  color: rgb(255 255 255 / 88%);
  text-align: center;
  flex-shrink: 0;
  border-radius: 100%;
  background: rgb(255 255 255 / 12%);
  height: 30px;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-rank.gold {
  color: #e6c200
}

.lb-rank.silver {
  color: #b0bec5
}

.lb-rank.bronze {
  color: #c19a6b
}

.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700
}

.lb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.lb-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.lb-val {
  display: flex;
  font-size: 14px;
  font-weight: 700;
  color: #e0c04e;
  flex-shrink: 0;
  align-items: center;
  gap: 5px;
}

.lb-val.p {
  color: #c084fc
}

.lb-row.top1 {
  background: linear-gradient(90deg, rgba(230, 194, 0, .08), transparent);
  border-radius: 10px;
  padding: 10px 8px
}

.lg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .04)
}

.lg-row:last-child {
  border-bottom: none
}

.lg-price-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(211, 54, 255, .15);
  color: #d336ff;
  flex-shrink: 0
}

.lg-winner {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.lg-prize {
  font-size: 14px;
  font-weight: 800;
  color: #e0c04e;
  flex-shrink: 0
}

.lg-empty {
  text-align: center;
  padding: 30px;
  color: rgba(255, 255, 255, .3);
  font-size: 14px
}

.lgc-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
  overflow: hidden
}

.lgc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px
}

.lgc-game-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6)
}

.lgc-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, .35)
}

.lgc-time svg {
  width: 12px;
  height: 12px;
  opacity: .6
}

.lgc-body {
  display: flex;
  align-items: center;
  gap: 10px
}

.lgc-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d336ff, #9d1fd4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden
}

.lgc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.lgc-avatar-icon {
  font-size: 18px
}

.lgc-info {
  flex: 1;
  min-width: 0
}

.lgc-winner-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.lgc-place {
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-top: 1px
}

.lgc-prize {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  font-weight: 900;
  color: #e0c04e;
  flex-shrink: 0
}

.lgc-prize img {
  width: 16px;
  height: 16px
}

.lb-mini-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px
}

.lb-mini-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.lb-mini-val {
  font-size: 13px;
  font-weight: 800;
  color: #e0c04e
}

.lb-mini-val.p {
  color: #c084fc
}

#my-balance-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #e0c04e;
  cursor: default;
  min-width: 70px;
  justify-content: center;
  transition: background .3s ease, border-color .3s ease, transform .2s ease
}

#my-balance-chip img {
  width: 14px;
  height: 14px
}

#my-balance-chip.flash {
  background: rgba(239, 68, 68, .25);
  border-color: rgba(239, 68, 68, .5);
  color: #ef4444;
  transform: scale(.95);
  transition: all .15s ease
}

#my-balance-chip.flash-green {
  background: rgba(34, 197, 94, .2);
  border-color: rgba(34, 197, 94, .4);
  color: #22c55e;
  transform: scale(1.05);
  transition: all .15s ease
}

.timer-pill-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .7);
  margin-top: 10px;
}

.timer-pill-inline.urgent {
  background: rgba(239, 68, 68, .18);
  color: #ef4444
}

.timer-count {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  transition: color .3s
}

.timer-count.urgent {
  color: #ef4444;
  animation: tpulse .5s infinite alternate
}

@keyframes tpulse {
  from {
    opacity: 1
  }

  to {
    opacity: .35
  }
}

@keyframes bankPop {
  0% {
    transform: scale(1)
  }

  40% {
    transform: scale(1.12);
    color: #ffcc00
  }

  100% {
    transform: scale(1)
  }
}

@keyframes bankPopDown {
  0% {
    transform: scale(1)
  }

  40% {
    transform: scale(0.92);
    color: #ef4444
  }

  100% {
    transform: scale(1)
  }
}

.bank-pop {
  animation: bankPop .45s cubic-bezier(.36, .07, .19, .97)
}

.bank-pop-down {
  animation: bankPopDown .45s cubic-bezier(.36, .07, .19, .97)
}

@keyframes joinPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .7)
  }

  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0)
  }
}

.join-pulse {
  animation: joinPulse .6s ease
}

@keyframes countPop {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.3);
    color: #d336ff
  }

  100% {
    transform: scale(1)
  }
}

.count-pop {
  animation: countPop .35s ease
}

.progress-fill {
  transition: width .5s cubic-bezier(.4, 0, .2, 1) !important;
  background: linear-gradient(90deg, #d336ff, #ff66cc) !important
}

.bottom-nav {
  transition: transform .35s cubic-bezier(.22, .9, .3, 1), opacity .35s ease
}

.bottom-nav.hidden-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none
}

#join-btn {
  transition: background .3s ease, box-shadow .3s ease, opacity .2s ease, transform .12s ease
}

#join-btn:disabled {
  opacity: .55;
  cursor: not-allowed
}

#join-btn:active:not(:disabled) {
  transform: scale(.97)
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  margin: 0 0 10px 2px;
  display: block
}

.online-status {
  gap: 3px
}

#gtost {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  z-index: 99999;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22, .9, .3, 1)
}

#gtost.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.gtost-in {
  padding: 11px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  max-width: 290px;
  white-space: pre-line;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  backdrop-filter: blur(8px)
}

.gtost-in.pass {
  background: rgba(34, 197, 94, .93);
  color: #fff
}

.gtost-in.fail {
  background: rgba(239, 68, 68, .93);
  color: #fff
}

.gtost-in.win {
  background: linear-gradient(135deg, #ffd200, #f7971e);
  color: #fff;
  font-size: 15px
}

#game-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(160deg, #0a0118, #05010a);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden
}

#game-overlay.active {
  animation: overlayIn .3s ease both
}

@keyframes overlayIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

#tgo-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px 16px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  z-index: 2;
  pointer-events: none
}

#game-overlay:has(#game-play.active) #tgo-header,
#game-overlay:has(#game-dalgona.active) #tgo-header,
#game-overlay:has(#game-fiveclicks.active) #tgo-header,
#game-overlay:has(#game-knife.active) #tgo-header {
  display: none
}

#tgo-round-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
  color: rgba(255, 255, 255, .5);
  text-transform: uppercase
}

#tgo-game-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff
}

#tgo-alive-count {
  font-size: 13px;
  font-weight: 700;
  color: #d336ff
}

#tgo-between-screen {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, .95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
  backdrop-filter: blur(8px)
}

#tgo-between-screen.active {
  display: flex;
  animation: screenIn .35s ease both
}

#tgo-between-icon {
  font-size: 60px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1)
}

#tgo-between-icon.pop {
  transform: scale(1.15)
}

#tgo-between-title {
  font-size: 30px;
  font-weight: 900;
  color: #fff
}

#tgo-between-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  max-width: 260px;
  line-height: 1.5
}

#tgo-between-prize {
  font-size: 40px;
  font-weight: 900;
  color: #ffd200;
  text-shadow: 0 0 30px rgba(255, 210, 0, .4)
}

.rules-cap-info {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(211, 54, 255, .12);
  border: 1px solid rgba(211, 54, 255, .25);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  line-height: 1.5
}

.rules-cap-info b {
  color: #d336ff
}

.game-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding-top: 115px;
  box-sizing: border-box
}

.game-screen.active {
  display: flex;
  animation: screenIn .35s cubic-bezier(.22, .9, .3, 1) both
}

@keyframes screenIn {
  from {
    opacity: 0;
    transform: scale(.97) translateY(6px)
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

#game-rules.active,
#game-transition.active,
#game-fiveclicks-rules.active,
#game-knife-rules.active {
  padding-top: 115px
}

#game-play.active {
  padding-top: 115px
}

#game-dalgona.active {
  padding-top: 80px
}

#game-fiveclicks.active {
  padding-top: 0
}

#game-knife.active {
  padding-top: 115px
}

#game-countdown.active {
  padding-top: 0
}

.rules-card {
  background: rgba(20, 8, 32, .95);
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 300px;
  width: calc(100% - 40px);
  border: 1px solid rgba(211, 54, 255, .2);
  text-align: center;
  box-sizing: border-box;
  animation: cardFloat .4s cubic-bezier(.22, .9, .3, 1) both
}

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.rules-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #d336ff;
  margin-bottom: 8px;
  text-transform: uppercase
}

.rules-main-title {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 12px
}

.rules-divider {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 10px 0
}

.rules-item {
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left
}

.rules-list {
  text-align: left
}

.rules-footer {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .35)
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0
}

.dot.green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e
}

.dot.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444
}

.dot.pink {
  background: #d336ff;
  box-shadow: 0 0 8px #d336ff
}

.green-text {
  color: #22c55e;
  font-weight: 700
}

.red-text {
  color: #ef4444;
  font-weight: 700
}

.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center
}

.countdown-number {
  font-size: 160px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 40px rgba(255, 255, 255, .2), 0 0 80px rgba(211, 54, 255, .15);
  line-height: 1
}

.countdown-label {
  letter-spacing: 5px;
  color: #d336ff;
  font-weight: bold;
  margin-top: 20px;
  font-size: 14px
}

.pulse-anim {
  animation: pulseNumber .45s cubic-bezier(.2, .8, .2, 1)
}

@keyframes pulseNumber {
  0% {
    transform: scale(.4);
    opacity: 0
  }

  60% {
    transform: scale(1.05);
    opacity: 1
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

.round-timer {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px
}

.light-indicator {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 40px #ef4444;
  margin: 0 auto 28px;
  transition: background .2s, box-shadow .2s
}

.progress-container-circle {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto 28px
}

.progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg)
}

.progress-svg .bg {
  fill: none;
  stroke: rgba(255, 255, 255, .08);
  stroke-width: 8
}

.progress-svg .bar {
  fill: none;
  stroke: #d336ff;
  stroke-width: 8;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset .1s linear;
  stroke-linecap: round
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 22px;
  font-weight: 900;
  color: #fff
}

.main-game-btn {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, .2) !important;
  background: linear-gradient(145deg, #2a0e4a, #12081d) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .5) !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  transition: transform .12s cubic-bezier(.22, .9, .3, 1), box-shadow .12s ease !important;
  -webkit-tap-highlight-color: transparent
}

.main-game-btn:active {
  transform: scale(.92) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .6), inset 0 0 20px rgba(211, 54, 255, .3) !important
}

.dalgona-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box
}

.timer {
  font-size: 22px;
  font-weight: 900;
  color: #fff
}

.candy {
  width: min(300px, 80vw);
  height: min(300px, 80vw);
  cursor: crosshair;
  touch-action: none
}

.candy svg {
  width: 100%;
  height: 100%
}

#shape {
  fill: none;
  stroke: rgba(0, 0, 0, .25) !important;
  stroke-width: 9 !important
}

#line {
  fill: none;
  stroke: #d336ff;
  stroke-width: 6
}

.percent {
  font-size: 22px;
  font-weight: 900;
  color: #d336ff
}

.dalgona-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, .45)
}

#fiveclicks-container {
  position: fixed;
  inset: 0;
  overflow: hidden
}

.spawn {
  position: absolute;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  pointer-events: auto
}

.redZone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: rgba(255, 68, 68, .46);
  border: 2px solid rgb(164, 0, 0);
  z-index: 1
}

.grey {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(2px)
}

.fc-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, .6);
  z-index: 3;
  cursor: pointer
}

.fc-btn svg {
  width: 55px;
  height: 55px;
  pointer-events: none
}

#fiveclicks-round {
  position: fixed;
  bottom: 40px;
  display: flex;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  z-index: 10;
  text-align: center;
  width: 100%;
  justify-content: center;
}

.flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease
}

.flash.show {
  opacity: 1
}

.redZone.win {
  animation: expand .55s cubic-bezier(.2, .8, .2, 1) forwards;
  background: #43ff6466;
  border-color: #38ff6a
}

@keyframes expand {
  to {
    width: 200vmax;
    height: 200vmax;
    border-width: 0
  }
}

#game-knife {
  background: linear-gradient(160deg, #0a0118, #05010a);
  justify-content: flex-start
}

#knife-avatars {
  position: relative;
  width: 100%;
  height: 90px;
  margin-top: 6px;
  flex-shrink: 0
}

.k-avatar {
  position: absolute;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14071c;
  border: 2px solid #2a0c40;
  font-size: 22px;
  transition: .5s cubic-bezier(.22, .9, .3, 1);
  transform: translate(-50%, -50%) scale(.75);
  opacity: .45;
  overflow: hidden;
  will-change: transform, opacity
}

.k-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.k-avatar.center {
  transform: translate(-50%, -50%) scale(1.35) !important;
  opacity: 1 !important;
  border-color: #ff2e88 !important;
  box-shadow: 0 0 22px #ff2e88;
  transition: .4s cubic-bezier(.22, .9, .3, 1)
}

.k-avatar.dead {
  filter: grayscale(1);
  opacity: .15 !important;
  border-color: #333 !important;
  box-shadow: none !important;
  transform: translate(-50%, -50%) scale(.6) !important;
  transition: .5s ease
}

#knife-line {
  width: 82%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2e88, transparent);
  flex-shrink: 0;
  margin: 8px 0
}

#knife-turn-text {
  font-size: 18px;
  color: #ff2e88;
  font-weight: 700;
  flex-shrink: 0;
  min-height: 26px
}

#knife-arena {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative
}

#knife-candy {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f0bc72, #e7a85c 40%, #b66a1a 100%);
  box-shadow: inset 0 -4px 12px rgba(0, 0, 0, .4), inset 0 4px 8px rgba(255, 220, 160, .25), 0 8px 30px rgba(0, 0, 0, .7), 0 0 60px rgba(182, 106, 26, .15);
  position: relative;
  z-index: 3
}

#knife-candy svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform
}

#knife-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: none;
  z-index: 1
}

#knife-tap-zone {
  position: fixed;
  inset: 0;
  z-index: 2
}

#knife-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 0, 20, .55);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 5
}

#knife-modal.show {
  opacity: 1;
  pointer-events: auto
}

#knife-msg {
  padding: 20px 44px;
  border-radius: 22px;
  font-size: 42px;
  font-weight: 900;
  color: #ff2e88;
  background: radial-gradient(circle at 30% 30%, #2a003f, #12001c);
  box-shadow: 0 0 60px #ff2e8866;
  transform: scale(.5);
  opacity: 0;
  transition: .4s cubic-bezier(.2, .9, .2, 1)
}

#knife-modal.show #knife-msg {
  transform: scale(1);
  opacity: 1
}

#pass-notify {
  display: none
}

.passed-list-title {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
  text-align: center
}

.passed-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .2);
  margin-bottom: 5px;
  animation: passRowIn .3s ease
}

.passed-list-row.me {
  background: rgba(34, 197, 94, .22);
  border-color: rgba(34, 197, 94, .5)
}

.passed-list-row .pr-icon {
  font-size: 14px;
  flex-shrink: 0
}

.passed-list-row .pr-name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.passed-list-row .pr-me {
  font-size: 10px;
  font-weight: 800;
  color: #22c55e;
  background: rgba(34, 197, 94, .2);
  padding: 2px 6px;
  border-radius: 50px;
  flex-shrink: 0
}

.passed-list-more {
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  margin-top: 4px
}

@keyframes passRowIn {
  from {
    opacity: 0;
    transform: translateX(-8px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

.lb-top3 {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 0 0;
}

.lb-podium {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  max-width: 110px;
}

.lb-podium.center {
  margin-bottom: 0;
}

.lb-podium.side {
  margin-bottom: 0;
}

.lb-crown {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 8px rgba(255, 200, 0, .8));
}

.lb-crown img {
  filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)) drop-shadow(0 0 12px rgba(255, 200, 0, 0.6));
}

.lb-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-avatar-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .1);
}

.lb-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.lb-podium.center .lb-avatar-circle {
  width: 72px;
  height: 72px;
  font-size: 26px;
  border: 3px solid #ffd700;
  box-shadow: 0 0 22px rgba(255, 200, 0, .55);
}

.lb-podium.side .lb-avatar-circle {
  width: 56px;
  height: 56px;
  font-size: 20px;
  border: 2px solid rgba(255, 255, 255, .25);
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  }

  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
  }
}

.lb-podium.center .lb-avatar-circle {
  animation: goldPulse 1.2s infinite alternate;
}

.lb-av-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #1a0828;
}

.lb-av-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ff9f00);
}

.lb-av-badge.silver {
  background: linear-gradient(135deg, #cfd8dc, #90a4ae);
}

.lb-av-badge.bronze {
  background: linear-gradient(135deg, #ffb74d, #bf6a00);
}

.lb-name-top {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  margin-top: 2px;
}

.lb-score-box {
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
}

.lb-podium.center .lb-score-box {
  background: rgb(88 63 17 / 46%);
  border-color: rgb(255 215 0 / 80%);
  height: 100px;
}

.lb-score-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}

.lb-score-num {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  display: block;
  line-height: 1;
}

.lb-podium.center .lb-score-num {
  font-size: 20px;
  color: #ffd700;
}

.lb-score-label {
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  display: block;
  margin-top: 2px;
}

#line {
  fill: none;
  stroke: #d336ff;
  stroke-width: 12 !important
}

html,
body {
  touch-action: manipulation;
}

#knife-candy {
  transform-origin: center center;
}

div img {
  width: 16px;
  height: 16px;
  top: 2px;
}

#join-ton-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-width: 180px;
}

#join-ton-btn .btn-label {
  white-space: nowrap;
}

.btn-ton-icon {
  width: 16px;
  height: 16px;
  position: relative;
}

#join-ton-btn.locked {
  pointer-events: none;
}

#join-ton-btn,
#join-ton-btn:active,
#join-ton-btn:focus,
#join-ton-btn.locked {
  opacity: 1 !important;
  filter: none !important;
}



.player-card.eliminated {
  filter: grayscale(1);
  opacity: 0.4;
  transform: scale(0.9);
  transition: all 0.4s ease;
}

.player-card.winner {
  box-shadow: 0 0 20px gold;
  transform: scale(1.1);
}

.progress-fill {
  transition: width 0.5s ease;
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.r-dot.active {
  background: #ffcc00;
  transform: scale(1);
  /* фиксируем размер */
  position: relative;
  box-shadow: 0 0 0px #ffcc00;
  animation: pulseDot 1s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0px #ffcc00;
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 10px #ffcc00;
    opacity: 0.7;
  }

  100% {
    box-shadow: 0 0 6px #ffcc00;
    opacity: 1;
  }
}

.r-dot.done {
  background: #22c55e;
}

.fallback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-box {
    width: 90%;
    max-width: 420px;
    background: #111;
    border-radius: 16px;
    padding: 20px;
    color: #fff;
    text-align: center;
}

.fb-title {
    font-size: 18px;
    font-weight: 800;
}

.fb-sub {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.fb-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.fb-row {
    display: flex;
    justify-content: space-between;
    padding: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fb-row.winner {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    font-weight: 700;
}

.fb-close {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #22c55e;
    border: none;
    font-weight: 700;
    cursor: pointer;
}