/* style.css — каркас: базовые стили, монтирование Pixi-поля, debug/dev-панели.
   Весь дизайн-хром (пиллы, sheets, sysbar, модалки, прелоадер) — в tapium.css. */

html {
    font-size: 62.5%;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    color: rgba(0, 0, 0, 0.70);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }

/* Поле: Pixi-канвас монтируется сюда (PixiRenderer('volatiles-container')) */
#volatiles-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #FFFFFF;
}

body.lock-zoom #volatiles-container {
    touch-action: none;
}

.hidden {
    display: none !important;
}

/* --- DEBUG UI --- */
#debug-ui {
    position: absolute;
    top: 7rem;
    right: 2.4rem;
    background: rgba(10, 10, 25, 0.9);
    padding: 1.5rem;
    border-radius: 1.2rem;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border: 1px solid #333;
    backdrop-filter: blur(10px);
    width: 25.0rem;
    user-select: none;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 3000;
    font-family: 'Segoe UI', sans-serif;
    font-size: 1.1rem;
}

#debug-ui::-webkit-scrollbar { width: 4px; }
#debug-ui::-webkit-scrollbar-thumb { background: #555; border-radius: 2px; }

.debug-section-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #555;
    border-bottom: 1px solid #333;
    padding-bottom: 0.3rem;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.debug-control-group { display: flex; flex-direction: column; gap: 0.4rem; }
.debug-control-group label { display: flex; justify-content: space-between; color: #aaa; font-size: 1rem; }
.debug-control-group label span { color: #0ff; font-weight: bold; }

.debug-control-group input[type="range"] {
    appearance: none;
    background: #222;
    height: 3px;
    border-radius: 2px;
    outline: none;
}

.debug-control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    background: #ff3296;
    border-radius: 50%;
    cursor: pointer;
}

.debug-graphs-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.debug-graph-item {
    display: flex;
    flex-direction: column;
}

.debug-graph-title {
    font-size: 0.9rem;
    color: #0ff;
    margin-bottom: 0.2rem;
    text-align: center;
    font-weight: bold;
}

#debugGraphCanvas, #debugTrendGraphCanvas {
    background: #0a0a14;
    border: 1px solid #222;
    border-radius: 0.6rem;
    width: 100%;
    height: 6.0rem;
}

.debug-graph-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #444;
    padding: 0 0.5rem;
}

.debug-stats {
    font-size: 1.2rem;
    color: #d4ff00;
    font-family: monospace;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

.debug-btn-secondary {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #ccc !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem;
}

.debug-btn-secondary:hover { background: rgba(255,255,255,0.1) !important; }

.debug-spike-rule {
    background: rgba(0,0,0,0.2);
    border: 1px solid #333;
    padding: 0.8rem;
    border-radius: 0.6rem;
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.debug-spike-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0ff;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.debug-btn-del {
    background: rgba(255,0,0,0.1) !important;
    color: #ff4466 !important;
    padding: 0.2rem 0.6rem !important;
    font-size: 0.8rem !important;
    border: 1px solid rgba(255,0,0,0.2) !important;
}

.debug-spike-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

.debug-spike-inputs {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.debug-spike-inputs input {
    background: #111;
    border: 1px solid #333;
    color: #fff;
    width: 3.5rem;
    text-align: center;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    padding: 0.1rem;
}

.debug-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.debug-actions button {
    background: #707070;
    color: #EBEBEB;
    border: none;
    padding: 0.8rem;
    border-radius: 0.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.debug-actions button:hover { background: #808080; }
.debug-actions button:active { transform: scale(0.95); }

#debug-save-btn { background: #FF0080; color: #fff; }
#debug-save-btn:hover { background: #e60073; }

#debug-reset-btn { background: #444; color: #ccc; }
#debug-reset-btn:hover { background: #555; }

#debug-copy-btn {
    background: #00e5ff;
    color: #05050a;
}

#debug-copy-btn:hover { background: #00b8cc; }
#debug-copy-btn.copied { background: #00ff88; }

/* ── Admin Panels (Settings, Bot, Speed) — game-authentic style, darker ── */
/* Design language: Inter, gray palette (#707070/#D4D4D4), rounded */

.settings-toggle-btn {
    position: fixed;
    top: 60px;
    right: 0;
    z-index: 9501;
    background: #5a5a5a;
    color: #EBEBEB;
    border: none;
    border-radius: 1.0rem 0 0 1.0rem;
    padding: 1.2rem 0.8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: -2px 0 8px rgba(0,0,0,0.25);
}

.settings-toggle-btn:hover { background: #4a4a4a; }

.settings-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 28rem;
    height: 100vh;
    overflow-y: auto;
    background: #B8B8B8;
    z-index: 9500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    color: #2a2a2a;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.settings-panel-inner { padding: 1.4rem 1.6rem 2.0rem; }

.settings-title {
    height: 2.9rem;
    display: flex;
    align-items: center;
    padding: 0 1.6rem;
    background: #5a5a5a;
    color: #EBEBEB;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.2rem 0;
    flex-shrink: 0;
}

.settings-group { margin-bottom: 1.0rem; }

.settings-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #505050;
    font-size: 1.1rem;
    font-weight: 500;
}

.settings-group input[type="number"],
.settings-group input[type="range"],
.settings-group select {
    width: 100%;
    box-sizing: border-box;
    background: #D4D4D4;
    color: #2a2a2a;
    border: 1px solid #9a9a9a;
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.settings-save-btn, .settings-rtp-btn {
    width: 100%;
    margin-top: 0.8rem;
    border-radius: 0.5rem;
    padding: 0.9rem;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
}

.settings-save-btn {
    background: #5a5a5a;
    color: #EBEBEB;
}
.settings-save-btn:hover { background: #4a4a4a; }

.settings-rtp-btn {
    background: #707070;
    color: #EBEBEB;
}
.settings-rtp-btn:hover { background: #5a5a5a; }

.settings-rtp-result {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    color: #2a2a2a;
    white-space: pre-wrap;
    max-height: 12rem;
    overflow-y: auto;
    background: #D4D4D4;
    border: 1px solid #9a9a9a;
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
}

/* ── Bot Panel ─────────────────────────────────────────────────────────── */

.bot-toggle-btn {
    position: fixed;
    top: 160px;
    left: 0;
    z-index: 9501;
    background: #5a5a5a;
    color: #EBEBEB;
    border: none;
    border-radius: 0 1.0rem 1.0rem 0;
    padding: 1.2rem 0.8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    box-shadow: 2px 0 8px rgba(0,0,0,0.25);
}

.bot-toggle-btn:hover { background: #4a4a4a; }

.bot-panel {
    position: fixed;
    top: 50px;
    left: 0;
    width: 26rem;
    max-height: 80vh;
    overflow-y: auto;
    background: #B8B8B8;
    border-radius: 0 1.0rem 1.0rem 0;
    z-index: 9500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    color: #2a2a2a;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    padding: 0 0 1.0rem 0;
}

.bot-panel-inner { padding: 0 1.6rem 1.0rem; }

.bot-panel-title {
    height: 2.9rem;
    display: flex;
    align-items: center;
    padding: 0 1.6rem;
    background: #5a5a5a;
    border-radius: 0 1.0rem 0 0;
    color: #EBEBEB;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.2rem 0;
}

.bot-group { margin-bottom: 1.0rem; }

.bot-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #505050;
    font-size: 1.1rem;
    font-weight: 500;
}

.bot-group input[type="number"],
.bot-group select {
    width: 100%;
    box-sizing: border-box;
    background: #D4D4D4;
    color: #2a2a2a;
    border: 1px solid #9a9a9a;
    border-radius: 0.5rem;
    padding: 0.6rem 0.8rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
}

.bot-btn {
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.9rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
}

.bot-btn-start {
    background: #5a5a5a;
    color: #EBEBEB;
}
.bot-btn-start:hover { background: #4a4a4a; }
.bot-btn-start:disabled { opacity: 0.4; cursor: not-allowed; }

.bot-btn-save {
    background: #707070;
    color: #EBEBEB;
}
.bot-btn-save:hover { background: #5a5a5a; }

.bot-btn-copy {
    background: #828282;
    color: #EBEBEB;
}
.bot-btn-copy:hover { background: #6a6a6a; }

.bot-btn-reset {
    background: #4a6a8a;
    color: #EBEBEB;
}
.bot-btn-reset:hover { background: #3a5a7a; }

.bot-btn-stop {
    background: #8a4a4a;
    color: #EBEBEB;
}
.bot-btn-stop:hover { background: #7a3a3a; }
.bot-btn-stop:disabled { opacity: 0.4; cursor: not-allowed; }

.bot-stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.bot-stats-row span:last-child {
    color: #2a2a2a;
    font-weight: 600;
}

.bot-active { color: #3a6a3a; }
.bot-inactive { color: #707070; }

.bot-divider {
    border: none;
    border-top: 1px solid #9a9a9a;
    margin: 0.8rem 0;
}

/* ── Speed Controls Transport Bar ─────────────────────────────────────── */
#speedControls {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.0rem;
    background: #5a5a5a;
    border-radius: 1.0rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    user-select: none;
}

.speed-btn {
    min-width: 3.4rem;
    height: 3.0rem;
    padding: 0 0.6rem;
    background: #828282;
    color: #EBEBEB;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1;
    transition: background 120ms, color 120ms;
}

.speed-btn:hover {
    background: #707070;
    color: #fff;
}

.speed-btn.active {
    background: #D4D4D4;
    color: #2a2a2a;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.speed-btn.speed-pause.active {
    background: #8a4a4a;
    color: #EBEBEB;
}

.speed-label {
    min-width: 5.2rem;
    margin-left: 0.6rem;
    padding: 0 0.8rem;
    color: #EBEBEB;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

