* { margin: 0; padding: 0; box-sizing: border-box; } html, body { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; font-family: Arial, sans-serif; overflow: hidden; } /* ===================== ТЕМА (тёмная/светлая) ===================== */ body { background: radial-gradient(circle at 50% 18%, #1a1d24 0%, #0d0f13 70%); transition: background 0.3s ease; } body[data-theme="light"] { background: radial-gradient(circle at 50% 18%, #ffffff 0%, #dde1e7 70%); } #theme-toggle { position: fixed; top: 16px; right: 18px; z-index: 500; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #333a46; background: #222a37; color: #ccc; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; } body[data-theme="light"] #theme-toggle { border-color: #c7cbd1; background: #ffffff; color: #555; } /* ===================== КАРТОЧКА ПРИЛОЖЕНИЯ ===================== */ #app { width: 360px; border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3); overflow: hidden; background: #1b1e24; transition: background 0.3s ease; } body[data-theme="light"] #app { background: #ffffff; } /* ---- бренд-блок ---- */ #brand { display: flex; flex-direction: column; align-items: center; padding: 26px 24px 16px; gap: 6px; } .logo-icon { position: relative; width: 64px; height: 48px; /* пропорции 640:480 исходного лого */ margin-bottom: 6px; } .logo-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; } .logo-icon .logo-dark { mix-blend-mode: screen; display: block; } .logo-icon .logo-light { mix-blend-mode: multiply; display: none; } body[data-theme="light"] .logo-icon .logo-dark { display: none; } body[data-theme="light"] .logo-icon .logo-light { display: block; } #brand h1 { color: #eeeeee; font-size: 21px; letter-spacing: 3.5px; font-weight: 700; } #brand .tag { color: #7a7f89; font-size: 11px; letter-spacing: 1.2px; } body[data-theme="light"] #brand h1 { color: #1b1d22; } body[data-theme="light"] #brand .tag { color: #888d97; } /* Панель вкладок (пока скрыта атрибутом hidden в HTML) */ .tabs { display: flex; background: transparent; } .tabs[hidden] { display: none; /* без этого .tabs{display:flex} выше перебивает атрибут hidden */ } .tab-button { flex: 1; padding: 12px; background: transparent; border: none; cursor: pointer; font-size: 14px; color: #9aa0aa; transition: background 0.2s; } .tab-button:hover { background: rgba(255,255,255,0.05); } .tab-button.active { color: #eee; border-bottom: 2px solid #b8362a; font-weight: bold; } body[data-theme="light"] .tab-button { color: #7a7f89; } body[data-theme="light"] .tab-button.active { color: #1b1d22; } /* Содержимое вкладок */ .tab-content { display: none; padding: 4px 22px 24px; } .tab-content.active { display: block; } /* Вертикально расположенные кнопки */ .buttons-vertical { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; } .action-button { padding: 11px; font-size: 14px; cursor: pointer; border: 1px solid #2a2d34; border-radius: 8px; background-color: #15171c; color: #e8e8e8; transition: background-color 0.2s, border-color 0.2s; } .action-button:hover { background-color: #1d2027; border-color: #3a3e46; } body[data-theme="light"] .action-button { background-color: #ffffff; border-color: #ccd1d9; color: #22242a; } body[data-theme="light"] .action-button:hover { background-color: #f0f2f5; border-color: #aeb4bd; } .close-button { background-color: #b8362a; color: white; border-color: #8f2a20; } .close-button:hover { background-color: #c73f31; } body[data-theme="light"] .close-button { background-color: #e74c3c; border-color: #c0392b; color: #fff; } body[data-theme="light"] .close-button:hover { background-color: #d8432f; } /* Панель частоты */ #frequency-panel { display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; background-color: #15171c; border: 1px solid #2a2d34; border-radius: 8px; margin-bottom: 9px; } #frequency-label { font-weight: bold; color: #9aa0aa; font-size: 13px; } #frequency-value { font-size: 17px; color: #f2f2f2; } body[data-theme="light"] #frequency-panel { background-color: #ffffff; border-color: #ccd1d9; } body[data-theme="light"] #frequency-label { color: #7a7f89; } body[data-theme="light"] #frequency-value { color: #1b1d22; } /* Панель статуса */ #status-panel { display: flex; align-items: center; gap: 9px; padding: 9px 13px; background-color: #15171c; border: 1px solid #2a2d34; border-radius: 8px; } body[data-theme="light"] #status-panel { background-color: #ffffff; border-color: #ccd1d9; } .indicator { width: 14px; height: 14px; border-radius: 50%; display: inline-block; } .indicator-red { background-color: #e74c3c; } .indicator-green { background-color: #2ecc71; } #status-text { font-size: 14px; color: #ddd; } body[data-theme="light"] #status-text { color: #333; } /* ===================== ИНТРО (двери) ===================== */ #intro-overlay { position: fixed; inset: 0; z-index: 1000; background: #000; /* подстраховка: перекрывает всё, даже пока JS ещё не выставил размеры дверей */ transform: scale(1.04); } #intro-overlay.appear { animation: introPop 0.45s cubic-bezier(.2,.9,.3,1) forwards; } @keyframes introPop { to { transform: scale(1); } } .door { position: absolute; top: 0; bottom: 0; overflow: hidden; background-color: #000; background-repeat: no-repeat; transition: transform 1.17s cubic-bezier(.65,0,.35,1); } .door-left { left: 0; } .door-right { left: 0; } /* left/width выставляются из JS под реальный размер окна */ #intro-overlay.open .door-left { transform: translateX(-100%); } #intro-overlay.open .door-right { transform: translateX(100%); } #intro-overlay.open { transition: opacity 0.45s ease 0.65s; opacity: 0; pointer-events: none; } /* Модальное окно */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 100; } .modal.hidden { display: none; } .modal-content { background: #1b1e24; padding: 20px; border-radius: 8px; width: 300px; box-shadow: 0 5px 15px rgba(0,0,0,0.4); position: relative; color: #eee; } body[data-theme="light"] .modal-content { background: #ffffff; color: #222; } .close-modal { position: absolute; top: 10px; right: 15px; font-size: 22px; cursor: pointer; color: #999; } .close-modal:hover { color: #eee; } body[data-theme="light"] .close-modal { color: #777; } body[data-theme="light"] .close-modal:hover { color: #333; } .modal-content h3 { margin-bottom: 15px; text-align: center; } .freq-input-group { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 15px; } .freq-btn { width: 40px; height: 40px; font-size: 20px; background: #b8362a; color: white; border: none; border-radius: 4px; cursor: pointer; transition: background 0.2s; } .freq-btn:hover { background: #c73f31; } #freq-input { width: 100px; padding: 8px; font-size: 18px; text-align: center; border: 1px solid #444; border-radius: 4px; background: #15171c; color: #eee; } body[data-theme="light"] #freq-input { border-color: #ccc; background: #fff; color: #222; } #btn-set-freq { display: block; width: 100%; margin-top: 10px; } .error-msg { color: #e74c3c; margin-top: 8px; text-align: center; font-size: 14px; } .error-msg.hidden { display: none; }