* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    position: relative;
}

.top-divider {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background-color: #1d1e20;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.divider-logo {
    height: 35px;
    width: 0px;
    background-color: #1d1e20;
    padding: 0px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-logo img {
    height: 100%;
    width: auto;
}

.container {
    background-color: #121212;
    padding: 40px 20px;
    border-radius: 20px;
    box-shadow: 0 0 0 2px rgb(0, 163, 255);
    text-align: center;
    width: 100%;
    max-width: 360px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.initial-message {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 5px;
    min-height: 24px;
}

.number {
    font-size: 48px;
    font-weight: bold;
    text-decoration: underline;
    min-height: 56px;
    margin-bottom: 5px;
    color: #ffffff;
    text-decoration-color: #ffffff;
}

.label {
    font-size: 40px;
    font-weight: bold;
    min-height: 48px;
    margin-bottom: 10px;
}

.indicator-container {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.spinner {
    width: 25px;
    height: 25px;
    perspective: 600px;
    visibility: hidden;
}

.spinner.active {
    visibility: visible;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin-cube 2s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 15px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(145deg, #d9d9d9, #f1f1f1, #a6a6a6);
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #444;
    border-radius: 2px;
    backface-visibility: hidden;
}

.spinner .front {
    transform: rotateY(0deg) translateZ(12.5px);
}

.spinner .back {
    transform: rotateY(180deg) translateZ(12.5px);
}

.spinner .right {
    transform: rotateY(90deg) translateZ(12.5px);
}

.spinner .left {
    transform: rotateY(-90deg) translateZ(12.5px);
}

.spinner .top {
    transform: rotateX(90deg) translateZ(12.5px);
}

.spinner .bottom {
    transform: rotateX(-90deg) translateZ(12.5px);
}

@keyframes spin-cube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.arrow-indicator {
    font-size: 36px;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
}

.arrow-indicator.visible {
    opacity: 1;
}

.signal-btn {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(to right, #2065d1, #4dabf7);
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    color: #e6e6e6;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    margin-top: 20px;
    transition: transform 0.1s ease;
}

.progress-bar {
    height: 20px;
    background: linear-gradient(to right, #2065d1, #4dabf7);
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
}

.progress-wrapper {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0 10px;
}

.wait-text {
    font-size: 16px;
    color: #cccccc;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 20px;
}

.visible {
    opacity: 1;
}

.blue {
    color: #4dabf7;
}

.red {
    color: #f75b4d;
}
    
.back-btn {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(to right, #ca0f0f, #fe2714);
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    color: #e6e6e6;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    margin-top: 20px;;
    transition: transform 0.1s ease;
}


.signal-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}
.back-btn:hover {
    background-color: #555;
    transform: translateY(-2px);
}

.back-btn.active {
    background-color: #666;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b1220;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.preloader-img {
  max-width: 180px;
  max-height: 180px;
  margin-bottom: 52px;
  display: block;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.2); /* полупрозрачный круг */
  border-top: 4px solid #18a0fb;          /* основной цвет */
  box-shadow: 0 4px 24px #18a0fb33;
  animation: spin 0.85s linear infinite;   /* чуть быстрее */
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

