@font-face {
    font-family: 'Siekoo';
    src: url('../fonts/Siekoo.ttf');
    font-weight: normal;
    font-style: normal;
}

.tonik {
    width: 30vw;
    height: 14.95vw;
    background-color: black;
    box-shadow: 0px 0px 13px 2px rgb(187 187 187) inset;
    border-radius: 0.4vw;
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
}

.tonik.noInspector, .tonik-light.noInspector {
    transition: linear .3s;
}

.tonik-container {
    width: 96%;
    height: 92%;
    background-color: #c9c9c9;
    box-shadow: 0px 0px 2px 1px rgb(64 64 64) inset;
}

.tonik-logo {
    width: 8%;
    position: absolute;
    top: 7%;
    left: 4%;
}

.tonik-title {
    position: absolute;
    top: 7.5%;
    left: 14%;
    font-size: 1.5vw;
    font-weight: 700;
    color: #2f2f2f;
    font-family: 'Montserrat', sans-serif;
}

.tonik-title2 {
    position: absolute;
    top: 4.5%;
    right: 5%;
    font-size: 1.8vw;
    font-weight: 800;
    color: #2f2f2f;
}

.tonik-table {
    font-family: 'Siekoo';
    font-size: 2vw;
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #350302;
    box-shadow: inset 0px 0px 3px 1px rgb(0 0 0);
    width: 30%;
    height: 21%;
}

.tonik-table-container {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f3082f;
    width: 100%;
    height: 100%;
    font-size: 3.2vw;
    gap: 7%;
}

.tonik-table-block {
    letter-spacing: -0.3vw;
}

.tonik-table-block.bg {
    color: #510004;
}

.tonik-circle {
    position: absolute;
    top: 34%;
    right: 26%;
    background-color: black;
    border-radius: 1vw;
    width: 2%;
    height: 4%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0px 0px 2px 1px rgb(64 64 64);
}

.tonik-circle#work {
    background-color: #c90727;
}

.tonik-percent {
    position: absolute;
    top: 33.2%;
    right: 18.5%;
    transform: translate(-50%, -50%);
    font-size: 1.4vw;
    font-weight: 800;
}

.tonik-button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 75%;
    width: 100%;
    height: 20%;
    gap: 3%;
}

.tonik-button-block {
    width: 9%;
    height: 90.4%;
    border-radius: 5vw;
    background-color: #6b4e12;
    display: flex;
    align-items: center;
    justify-content: center;   
    box-shadow: inset 0px 0px 3px 0px rgb(72 72 72);
    position: relative;
}

.tonik-button {
    width: 92%;
    height: 90%;
    background-color: #c9b020;
    border-radius: 5vw;
    box-shadow: inset 1px -2px 1px 0px rgb(245 245 245);
    cursor: pointer;
}

.tonik-button:active {
    background-color: #998518;
    box-shadow: inset 1px -2px 1px 0px rgb(155, 155, 155);
}

.tonik-button-switch-block {
    width: 4%;
    height: 75%;
    background-color: #adadad;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0px 0px 3px 1px rgb(0 0 0);
    margin-left: 3%;
}

.tonik-button-switch-block2 {
    width: 43%;
    height: 72%;
    background-color: black;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tonik-button-switch {
    position: absolute;
    width: 150%;
    height: 60%;
    bottom: 0%;
    background-color: #474747;
    cursor: pointer;
}

.tonik-button-switch#work {
    top: 0%;
}

.tonik-button-text-1 {
    position: absolute;
    top: -60%;
    font-size: 0.7vw;
    font-weight: 800;
}

.tonik-button-text-2 {
    position: absolute;
    bottom: -50%;
    font-size: 0.7vw;
    font-weight: 800;
}

.tonik-button-switch-block .tonik-button-text-1 {
    top: -49%;
}

.tonik-button-switch-block .tonik-button-text-2 {
    bottom: -39%;
}

.tonik-trube1 {
    width: 1.5%;
    height: 35%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #292a2f 10%);
    box-shadow: inset -2px 0px 1px 0px rgb(34 34 34);
    position: absolute;
    right: -1.5%;
    border-radius: 0 5vw 5vw 0;
}

.tonik-trube2 {
    width: 12%;
    height: 24%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #232323 10%);
    box-shadow: inset -2px 0px 2px 0px rgb(0 0 0), 2px 0px 2px 0px rgb(50 50 50);
    position: absolute;
    right: -13%;
}

.tonik-trube3 {
    width: 4%;
    height: 35%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #292a2f 10%);
    position: absolute;
    right: -16.8%;
}

.tonik-trube3-line1 {
    width: 100%;
    height: 2%;
    background-color: white;
    position: relative;
    top: 11%;
}

.tonik-trube3-line2 {
    width: 100%;
    height: 2%;
    background-color: white;
    position: relative;
    top: 86%;
}

.tonik-trube3-line3 {
    width: 100%;
    height: 2%;
    background-color: white;
    position: relative;
    top: 89%;
}

.tonik-light {
    width: 12vw;
    height: 5.232vw;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
}

.tonik-light-trube1 {
    width: 10%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #292a2f 10%);
    position: absolute;
}

.tonik-light-trube2 {
    width: 46%;
    height: 68.6%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #232323 10%);
    box-shadow: inset -2px 0px 2px 0px rgb(0 0 0), 2px 0px 2px 0px rgb(50 50 50);
    position: absolute;
    left: 9%;
}

.tonik-light-trube3 {
    width: 47%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #292a2f 10%);
    box-shadow: inset -2px 0px 1px 0px rgb(34 34 34);
    position: absolute;
    right: -1.5%;
    border-radius: 0 0.6vw 0.6vw 0;
}

.tonik-light-trube1-line1 {
    width: 100%;
    height: 2%;
    background-color: #aeaeae;
    position: relative;
    top: 11%;
}

.tonik-light-trube2-line2 {
    width: 100%;
    height: 2%;
    background-color: #aeaeae;
    position: relative;
    top: 86%;
}

.tonik-light-trube3-line3 {
    width: 100%;
    height: 2%;
    background-color: #aeaeae;
    position: relative;
    top: 89%;
}

.tonik-window {
    width: 1vw;
    height: 30vw;
    border-radius: 1vw 0.4vw 0.4vw 1vw
}

.tonik-window {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    
    /* Твои размеры и скругления */
    width: 1vw;
    height: 30vw;
    border-radius: 1vw 0.4vw 0.4vw 1vw;

    /* Делаем его черным и тонированным */
    background-color: #0a0a0a;  /* Очень темный, почти черный цвет */
    opacity: 0.85;              /* Эффект полупрозрачного стекла (тонировки) */
    
    /* Слои, чтобы стекло встало строго МЕЖДУ частями прибора */
    z-index: 20; 
}

#tonik-device {
    position: absolute; /* Обязательно для свободного перемещения */
    cursor: grab;       /* Курсор в виде открытой ладони */
}
#tonik-device:active {
    cursor: grabbing;   /* Курсор сжимается в кулак при перетаскивании */
}
.tonik-table-block.active {
    color: #ff0000; /* Яркий красный цвет цифр */
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; /* Неоновое свечение */
}

/* Эффект нажатия на желтые кнопки (чтобы они визуально утапливались) */
.tonik-button:active {
    transform: scale(0.95);
    filter: brightness(0.8);
}