:root {
    --bg-dark: black;
    --bg-card: black;

    --green-1: #00ff88;
    --green-2: #00481e;
    --green-3: #01190e;

    --success: #00ff88;
    --warning: #facc15;
    --danger: #ef4444;
    
    --muted-mic: #F54927;
    --muted-mic-border: #8c311e;
    --mic: #4DFF4D;
    --mic-border: #248724;


    --glitch-x-1: 10px;
    --glitch-hue-1: 16deg;
    --glitch-x-2: -24px;
    --glitch-hue-2: -18deg;

    --text-muted: rgba(255,255,255,0.6);
}

@font-face {
    font-family: Monocraft-Bold;
    src: url(./fonts/Monocraft-Bold.ttf);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    margin: 0;
    height: 100vh;
    background-color: var(--bg-dark);

    background-image:
        linear-gradient(rgba(255,255,255,0.2) 2px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.2) 2px, transparent 1px);

    background-size: 60px 60px;
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    display: grid;
    place-items: center;
}

/* ================= CARD ================= */

.card-screen {
    position: relative;

    background: var(--bg-card);
    backdrop-filter: blur(20px);

    padding: 10px;
    border-radius: 5px;

    width: 100%;
    max-width: 240px;

    box-shadow:
        0 0 40px rgba(0,255,136,0.15),
        0 20px 60px rgba(0,0,0,0.6);
}

.hidden {
    display: none;
}

/* ================= HEADER ================= */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.status-indicator {
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
    font-size: 12px;
    font-weight: 600;
}

/* ================= OPTIONS ================= */

.options-panel {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.client-options {
    flex: 1;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,136,0.15);
}

.client-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,255,136,0.2);
    background: #1f2937;
    color: white;
}

/* ================= AGE ================= */

label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.options {
    display: grid;
    gap: 8px;
}

.options button {
    background: #1f2937;
    border: 1px solid rgba(0,255,136,0.2);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.options button:hover {
    background: rgba(0,255,136,0.2);
}

.options button.active {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
    box-shadow: 0 0 15px rgba(0,255,136,0.5);
}

/* ================= PARTICIPANTS ================= */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.call-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.participant {
    text-align: center;
    cursor: pointer;
}

.participant.disconnected {
    display: none;
}

.avatar {
  background-color: #2f3136;
  font-size: 50px;
  padding: 20px;
  border-radius: 200px;
  position: relative;
  filter: blur(5px);
  overflow: hidden;
}

.voice-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    margin-left: 6px;
    transition: background 0.1s ease, box-shadow 0.1s ease;
}

.voice-indicator.active {
    background: #00ff55;
    box-shadow: 0 0 8px #00ff55;
}

/* shimmer эффект */
.avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.avatar.loaded {
    filter: blur(0);
    background-color: #36393f; 
}


.avatar.loaded::before {
  display: none;
}

/* ================= CONNECTION DOTS ================= */

.connection-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: linear-gradient(135deg, var(--green-1), var(--green-2));

    box-shadow: 0 0 15px rgba(0,255,136,0.8);

    animation: pulseDot 1.4s infinite ease-in-out;
}

.connection-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.connection-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulseDot {
    0% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.4; transform: scale(0.8); }
}

/* ================= BUTTONS ================= */

.button-link {
    max-height: 40px;
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    outline: none;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    vertical-align: text-top;
}

.btn, textarea {
    max-height: 35px;
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    outline: none;
}

.btn .loading-icon {
    width: 15px;
    padding: 0;
    margin: 0;
}

.btn:disabled:hover {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

textarea {
    margin-top: 15px;
    resize: none;
    border: none;
}

textarea:focus {
    border: 1px rgb(0,255,136) solid;
}

.btn-success {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,255,136,0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: black;
}

.btn:disabled {
    background: gray;
    color: black;
    opacity: 0.5;
    transition: 0;
    cursor: not-allowed;
}

.mute-btn-wrapper {
    display: flex;
    justify-content: center;
}

.mute-btn {
    font-size: 20px;
    width: 60px;
    cursor: pointer;
    border-radius: 100%;
    height: 60px;
    background-color: var(--mic);
    border: 2px solid var(--mic-border);
    outline: none;
}

.mute-btn.muted {
    background-color: var(--muted-mic);
    border: 2px solid var(--muted-mic-border);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-screen {
    justify-content: center;
}



.subtitle {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
}

.subtitle .accent {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,0.8);
}

.subtitle .muted {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.subtitle .creator {
    color: #00ff88;
    text-decoration: none;
    position: relative;
    transition: 0.2s;
}

.subtitle .creator:hover {
    text-shadow: 0 0 12px #00ff88;
}

.subtitle .creator::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    opacity: 0;
    transition: 0.3s;
}

.subtitle .creator:hover::after {
    opacity: 1;
}

.card-screen .tg-icon {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    border-radius: 100px;
}

.card-screen .tg-icon img {
    width: 100px;
    border-radius: 100px;
}

.card-screen .icon {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    border-radius: 100px;
}

.card-screen .icon img {
    width: 200px;
    border-radius: 10psx;
}

/* ================= INPUT ================= */

input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,136,0.2);
    background: #1f2937;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

/* Placeholder */
input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Focus эффект */
input:focus {
    border: 1px solid var(--green-1);
    box-shadow: 0 0 15px rgba(0,255,136,0.4);
}

/* Disabled */
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.time {
    font-size: 19px;
    font-weight: 700;
}

.warning {
    background-color: #facc15;
    padding: 5px 15px;
    border-radius: 13px;
    color: black;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.warning p {
    font-size: 13px;
    margin: 0;
    font-weight: 400;
    padding: 0;
    text-align: end;
}

.warning .sign {
    font-size: 29px;
}

:root {
    --bg-dark: black;
    --bg-card: black;

    --green-1: #00ff88;
    --green-2: #00c853;
    --green-3: #00e676;

    --success: #00ff88;
    --warning: #facc15;
    --danger: #ef4444;

    --glitch-x-1: 10px;
    --glitch-hue-1: 16deg;
    --glitch-x-2: -24px;
    --glitch-hue-2: -18deg;

    --text-muted: rgba(255,255,255,0.6);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    margin: 0;
    height: 100vh;
    background-color: var(--bg-dark);

    background-image:
        linear-gradient(rgba(255,255,255,0.2) 2px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.2) 2px, transparent 1px);

    background-size: 60px 60px;
}

body {
    font-family: 'Inter', sans-serif;
    color: white;
    display: grid;
    place-items: center;
}

/* ================= CARD ================= */

.card-screen {
    position: relative;

    background: var(--bg-card);
    backdrop-filter: blur(20px);

    padding: 40px;
    border-radius: 5px;

    width: 100%;
    max-width: 440px;
}

.hidden {
    display: none;
}

/* ================= HEADER ================= */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.status-indicator {
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
    font-size: 12px;
    font-weight: 600;
}

/* ================= OPTIONS ================= */

.options-panel {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.client-options {
    flex: 1;
    margin-bottom: 20px;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 14px;
    border: 1px solid rgba(0,255,136,0.15);
}

.client-options h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0,255,136,0.2);
    background: #1f2937;
    color: white;
}

/* ================= AGE ================= */

label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.options {
    display: grid;
    gap: 8px;
}

.options button {
    background: #1f2937;
    border: 1px solid rgba(0,255,136,0.2);
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.options button:hover {
    background: rgba(0,255,136,0.2);
}

.options button.active {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
    box-shadow: 0 0 15px rgba(0,255,136,0.5);
}

/* ================= PARTICIPANTS ================= */

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.call-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 30px 0;
}

.participant {
    text-align: center;
    cursor: pointer;
}

.participant.disconnected {
    display: none;
}

.avatar {
  background-color: #2f3136;
  font-size: 50px;
  padding: 20px;
  border-radius: 200px;
  position: relative;
  filter: blur(5px);
  overflow: hidden;
}

.voice-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
    margin-left: 6px;
    transition: background 0.1s ease, box-shadow 0.1s ease;
}

.voice-indicator.active {
    background: #00ff55;
    box-shadow: 0 0 8px #00ff55;
}

/* shimmer эффект */
/* .avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.05) 25%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.05) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
} */


.avatar .mute-icon {
    display: none;
}

.avatar .deafen-icon {
    display: none;
}


/* mute */
.participant.mute .avatar .mute-icon {
  display: block;
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;;
  width: 28px;
  height: 28px;
  background-color: #ed4245;
  background-image: url("../icons/mic-mute-fill.svg");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #2f3136;
}

/* deafen */
.participant.deafen .avatar .deafen-icon {
  display: block;
  content: '';
  position: absolute;
  bottom: 10px;
  right: 65px;
  width: 28px;
  height: 28px;
  background-color: #ed4245;
  background-image: url("../icons/volume-mute-fill.svg");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #2f3136;
}


@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.avatar.loaded {
    filter: blur(0);
    background-color: #36393f; 
}


.avatar.loaded::before {
  display: none;
}


/* ================= CONNECTION DOTS ================= */

.connection-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: linear-gradient(135deg, var(--green-1), var(--green-2));

    box-shadow: 0 0 15px rgba(0,255,136,0.8);

    animation: pulseDot 1.4s infinite ease-in-out;
}

.connection-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.connection-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulseDot {
    0% { opacity: 0.4; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0.4; transform: scale(0.8); }
}

/* ================= BUTTONS ================= */

.btn, textarea {
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    outline: none;
}


.btn:disabled:hover {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

textarea {
    margin-top: 15px;
    resize: none;
    border: none;
}

textarea:focus {
    border: 1px rgb(0,255,136) solid;
}

.btn-success {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    color: #002b1a;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,255,136,0.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: black;
}

.btn:disabled {
    background: gray;
    color: black;
    opacity: 0.5;
    transition: 0;
    cursor: not-allowed;
}


.controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-screen {
    justify-content: center;
}

.glitch {
    font-family: Monocraft-Bold;
   position: relative;
   font-size: 40px;
   text-align: center;
   font-weight: 700;
   line-height: 1.2;
   color: #00ff55;
   letter-spacing: 2px;
   z-index: 1;
}

.glitch:before {
   content: attr(data-glitch);
   position: absolute;
   top: 0;
   left: -2px;
   width: 100%;
   color: #00ff55;
   background-color: black;
   overflow: hidden;
   clip: rect(0, 900px, 0, 0);
   animation: noise-before 3s infinite linear alternate-reverse;
}

.glitch:after {
   content: attr(data-glitch);
   position: absolute;
   top: 0;
   left: 2px;
   width: 100%;
   color: #00ff55;
   background-color: black;
   overflow: hidden;
   clip: rect(0, 900px, 0, 0);
   animation: noise-after 2s infinite linear alternate-reverse;
}

@keyframes noise-before {
   0% {
      clip: rect(61px, 9999px, 52px, 0);
   }

   5% {
      clip: rect(33px, 9999px, 144px, 0);
   }

   10% {
      clip: rect(121px, 9999px, 115px, 0);
   }

   15% {
      clip: rect(144px, 9999px, 162px, 0);
   }

   20% {
      clip: rect(62px, 9999px, 180px, 0);
   }

   25% {
      clip: rect(34px, 9999px, 42px, 0);
   }

   30% {
      clip: rect(147px, 9999px, 179px, 0);
   }

   35% {
      clip: rect(99px, 9999px, 63px, 0);
   }

   40% {
      clip: rect(188px, 9999px, 122px, 0);
   }

   45% {
      clip: rect(154px, 9999px, 14px, 0);
   }

   50% {
      clip: rect(63px, 9999px, 37px, 0);
   }

   55% {
      clip: rect(161px, 9999px, 147px, 0);
   }

   60% {
      clip: rect(109px, 9999px, 175px, 0);
   }

   65% {
      clip: rect(157px, 9999px, 88px, 0);
   }

   70% {
      clip: rect(173px, 9999px, 131px, 0);
   }

   75% {
      clip: rect(62px, 9999px, 70px, 0);
   }

   80% {
      clip: rect(24px, 9999px, 153px, 0);
   }

   85% {
      clip: rect(138px, 9999px, 40px, 0);
   }

   90% {
      clip: rect(79px, 9999px, 136px, 0);
   }

   95% {
      clip: rect(25px, 9999px, 34px, 0);
   }

   100% {
      clip: rect(173px, 9999px, 166px, 0);
   }
}

@keyframes noise-after {
   0% {
      clip: rect(26px, 9999px, 33px, 0);
   }

   5% {
      clip: rect(140px, 9999px, 198px, 0);
   }

   10% {
      clip: rect(184px, 9999px, 89px, 0);
   }

   15% {
      clip: rect(121px, 9999px, 6px, 0);
   }

   20% {
      clip: rect(181px, 9999px, 99px, 0);
   }

   25% {
      clip: rect(154px, 9999px, 133px, 0);
   }

   30% {
      clip: rect(134px, 9999px, 169px, 0);
   }

   35% {
      clip: rect(26px, 9999px, 187px, 0);
   }

   40% {
      clip: rect(147px, 9999px, 137px, 0);
   }

   45% {
      clip: rect(31px, 9999px, 52px, 0);
   }

   50% {
      clip: rect(191px, 9999px, 109px, 0);
   }

   55% {
      clip: rect(74px, 9999px, 54px, 0);
   }

   60% {
      clip: rect(145px, 9999px, 75px, 0);
   }

   65% {
      clip: rect(153px, 9999px, 198px, 0);
   }

   70% {
      clip: rect(99px, 9999px, 136px, 0);
   }

   75% {
      clip: rect(118px, 9999px, 192px, 0);
   }

   80% {
      clip: rect(1px, 9999px, 83px, 0);
   }

   85% {
      clip: rect(145px, 9999px, 98px, 0);
   }

   90% {
      clip: rect(121px, 9999px, 154px, 0);
   }

   95% {
      clip: rect(156px, 9999px, 44px, 0);
   }

   100% {
      clip: rect(67px, 9999px, 122px, 0);
   }
}

.subtitle {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1px;
}

.subtitle .accent {
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0,255,136,0.8);
}

.subtitle .muted {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.subtitle .creator {
    color: #00ff88;
    text-decoration: none;
    position: relative;
    transition: 0.2s;
}

.subtitle .creator:hover {
    text-shadow: 0 0 12px #00ff88;
}

.subtitle .creator::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, transparent);
    opacity: 0;
    transition: 0.3s;
}

.subtitle .creator:hover::after {
    opacity: 1;
}

.card-screen .tg-icon {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    border-radius: 100px;
}

.card-screen .tg-icon img {
    width: 100px;
    border-radius: 100px;
}

.card-screen .icon {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
    border-radius: 100px;
}

.card-screen .icon img {
    width: 200px;
    border-radius: 10psx;
}

/* ================= INPUT ================= */

input {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0,255,136,0.2);
    background: #1f2937;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

/* Placeholder */
input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Focus эффект */
input:focus {
    border: 1px solid var(--green-1);
    box-shadow: 0 0 15px rgba(0,255,136,0.4);
}

/* Disabled */
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Для type="number" убрать стрелки (Chrome) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.time {
    font-size: 19px;
    font-weight: 700;
}

.warning {
    background-color: #facc15;
    padding: 5px 15px;
    border-radius: 13px;
    color: black;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.warning p {
    font-size: 13px;
    margin: 0;
    font-weight: 400;
    padding: 0;
    text-align: end;
}

.warning .sign {
    font-size: 29px;
}

.floating-nicks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-nicks .nick {
  position: absolute;
  color: rgba(0,255,136,0.2);
  font-family: 'Press Start 2P', cursive;
  font-size: 14px;
  opacity: 1;
  animation: floatNick linear forwards;
}

.floating-nicks img.nick {
  position: absolute;
  color: rgba(0,255,136,0.2);
  font-family: 'Press Start 2P', cursive;
  max-width: 50px;
  font-size: 14px;
  opacity: 1;
  animation: floatNickImg linear forwards;
}

@keyframes floatNick {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.5); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x-end), var(--y-end)) scale(1); }
}

@keyframes floatNickImg {
  0% { opacity: 0; transform: translate(var(--x), var(--y)) scale(0.5)  rotate(0deg); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x-end), var(--y-end)) scale(1) rotate(360deg); }
}


.tg-icon-wide {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
}

.tg-icon-wide img {
    border-radius: 10px
}

.context-menu {
    position: absolute;
    min-width: 200px;

    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(0,255,136,0.2);
    border-radius: 12px;

    padding: 6px;
    display: none;

    box-shadow:
        0 0 20px rgba(0,255,136,0.15),
        0 10px 40px rgba(0,0,0,0.8);

    animation: contextMenuFade 0.12s ease;
    z-index: 9999;
}

.context-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;

    background: transparent;
    border: none;

    color: rgba(255,255,255,0.85);
    font-size: 14px;

    padding: 10px 12px;
    border-radius: 8px;

    cursor: pointer;
    transition: all 0.15s ease;
}


.context-menu button:hover {
    background: rgba(0,255,136,0.15);
    color: var(--green-1);

    box-shadow: inset 0 0 10px rgba(0,255,136,0.2);
}


.context-menu .danger:hover {
    background: rgba(239,68,68,0.2);
    color: #ff4d4f;
}


.context-menu hr {
    border: none;
    height: 1px;
    margin: 6px 4px;
    background: rgba(255,255,255,0.08);
}


@keyframes contextMenuFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.toggle-container {
    display: flex;
    gap: 20px;
}


.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(0,255,136,0.3);
    border-radius: 34px;
    transition: 0.4s;
    box-shadow: 0 0 5px rgba(0,255,136,0.3);
}

.toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    margin-bottom: 15px;
}

.toggle-label {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}


.switch {
    position: relative;
    display: inline-block;
    width: 40px;  
    height: 20px;  
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(0,255,136,0.3);
    border-radius: 20px;
    transition: 0.4s;
    box-shadow: 0 0 4px rgba(0,255,136,0.3);
}

.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background: #1f2937;
    border-radius: 50%;
    transition: 0.4s;
    box-shadow: 0 0 6px rgba(0,255,136,0.5);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--green-1), var(--green-2));
    border-color: rgba(0,255,136,0.8);
    box-shadow: 0 0 8px rgba(0,255,136,0.8);
}

input:checked + .slider::before {
    transform: translateX(20px);
    background: #002b1a;
    box-shadow: 0 0 8px rgba(0,255,136,0.9);
}

.switch:hover .slider {
    border-color: var(--green-1);
    box-shadow: 0 0 8px rgba(0,255,136,0.5);
}

.enhanced-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(250, 204, 21, 0.15);
    border: 1px solid var(--warning);
    border-left: 4px solid var(--green-2);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    animation: fadeIn 0.4s ease forwards;
    box-shadow: 0 0 10px rgba(250,204,21,0.3);
}

.enhanced-warning .warning-icon {
    font-size: 24px;
    color: var(--green-1);
    flex-shrink: 0;
    text-shadow: 0 0 8px rgba(0,255,136,0.6);
}

.enhanced-warning .warning-text p {
    margin: 0;
    color: rgba(255,255,255,0.9);
}

.enhanced-warning .warning-text strong {
    color: var(--green-1);
    text-shadow: 0 0 6px rgba(0,255,136,0.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}


@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.loading-image {
    animation: spin 1s infinite;
    width: 350px;
}

#welcome-screen {
    animation: fadeIn 0.2s linear;
}

.timer {
    text-align: center;
    font-size: 19px;
}