/* GLOBAL */

@font-face {
  font-family: 'Matemasie';
  src: url('./Matemasie-Regular.ttf') format('truetype');
}



body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    font-family: sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-x pan-y; /* или 'none' если вообще нельзя двигать */
}

/* Если нужно полностью заблокировать любые движения (включая скролл) */
html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* IDs */

#overlays {
    display:none; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    background-color: rgba(0,0,0,0.5); 
	backdrop-filter: blur(10px);
    z-index: 200;
	justify-content: center;
    align-items: center;
}

/* ЛОГО */
#title {
    font-size: 70px;
}

/* Синий градиент */
.slither {
	  font-family: 'Matemasie', sans-serif;
	  color: #0087ff;
	  text-shadow: #2e62ad 1px 0 10px;
}
/* Красный градиент */
.su {
	  font-family: 'Matemasie', sans-serif;
	  color: #ef4141;
	  text-shadow: #ff00009c 1px 0 10px;
}
#hint {
    color: #6ca0a6;
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
    font-weight: 600;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(0,255,150,0.2); }
    to   { text-shadow: 0 0 40px rgba(0,255,150,0.6); }
}
#captcha-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center;z-index:9999;}

#canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

#connecting {
    display:none;
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    z-index: 100; 
    background-color: rgba(0,0,0,0.5);
}

#nick {
    color: white;
    text-align: center;
    font-size: 18px;
    z-index: 1;
    background: rgb(32 32 32);
    border: 0px;
    outline: none;
    height: 40px;
    border-radius: 10px;
    width: 180px;
}
.loger{
	display: flex;
    gap: 10px;
}

#helloDialog {display: flex;flex-direction: column;align-items: center;transform: translateY(-30%);gap: 40px;}

#chat_textbox {
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    background: rgba(0, 0, 0, .2);
    border: 0px;
    outline: none;
    color: #FFF;
    height: 30px;
    text-indent: 12px;
    left: 10px;
    width: 300px;
}

#chat_textbox:focus {
    background: rgba(0, 0, 0, .5);
}

#footer{
    position: absolute;
    bottom: 2px;
    width: 100%;
    text-align: center;
}
#footer a {
    color: #6b6b6b;
	font-size: 12px;
	text-decoration: none;
}
#footer a:hover{
	color:white;
}

#play-btn {
    padding: 12px 35px;
    border-radius: 30px;
    border: none;
    background: linear-gradient(#ff6f6f, #c43b3b);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 0 #9c2c2c, 0 10px 30px rgb(255 0 0 / 30%);
    transition: 0.2s;
}
#play-btn:hover {
    transform: scale(1.07);
}

/* Кнопка шестерёнки */
.settings-icon-btn {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: #1f1f1f;
    color: #ffffff;
    border: 2px solid #444;
    border-radius: 12px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.settings-icon-btn:hover {
    background: #c0392b;
    transform: rotate(45deg);
    border-color: #c0392b;
}

/* Панель настроек */
.settings-panel {
    position: fixed;
    top: 80px;           /* отступ сверху */
    right: -320px;
    width: 300px;
    max-height: calc(100vh - 100px);   /* не на весь экран */
    background: #1a1a1a;
    border-radius: 20px;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid #333;
}

.settings-panel.open {
    right: 15px;
}

/* Шапка */
.settings-header {
    background: #111;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.settings-header h3 {
    margin: 0;
    color: #eee;
    font-size: 18px;
    font-weight: 500;
}

.close-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #c0392b;
    color: white;
}

/* Контент */
.settings-content {
    padding: 10px 0;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #ddd;
    cursor: pointer;
    transition: background 0.2s;
}

.setting-item:hover {
    background: #252525;
}

.setting-item input[type="checkbox"] {
    margin-right: 12px;
    accent-color: #c0392b;
    transform: scale(1.2);
}

/* Секция скорости */
.speed-section {
    padding: 20px;
    border-top: 1px solid #333;
}

.speed-label {
    display: block;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 15px;
}

.speed-section input[type="range"] {
    width: 100%;
    accent-color: #c0392b;
}

.speed-values {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #888;
}

.mb-10 {
    margin-bottom: 10px;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.center {
    display: table;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}