:root { --c: #00e5ff; --m: #ff2bd6 }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent }
html, body { margin: 0; height: 100%; background: #02030a; color: #dff; font: 600 16px system-ui, sans-serif; overflow: hidden; touch-action: none; user-select: none }
body { display: flex; align-items: center; justify-content: center; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) }
#st { position: relative } canvas { display: block; width: 100%; height: 100% }
#ctl { position: absolute; inset: 0; pointer-events: none; display: none }
#ctl button { pointer-events: auto; position: absolute; border: 1px solid var(--c); background: #00e5ff22; color: #cff; border-radius: 14px; font: 800 14px system-ui; backdrop-filter: blur(6px) }
#pz { top: 6px; right: 8px; width: 40px; height: 40px } #mn { top: 6px; left: 8px; width: 40px; height: 40px }
#pull, #push { bottom: 12px; width: 86px; height: 54px } #pull { left: 12px } #push { right: 12px; border-color: var(--m); background: #ff2bd622 }
#ov { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: #05061acc; backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); overflow: auto; padding: 16px }
.p { display: none; flex-direction: column; gap: 10px; align-items: center; text-align: center; width: min(340px, 100%); margin: auto; animation: in .25s ease }
@keyframes in { from { opacity: 0; transform: translateY(12px) } }
h1 { margin: 0; font: 900 46px/1 system-ui; letter-spacing: 3px; background: linear-gradient(90deg, var(--c), var(--m)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px #00e5ff88) }
h2 { margin: 0; color: var(--c); text-shadow: 0 0 12px var(--c) }
.p button { width: 100%; padding: 13px; border-radius: 12px; border: 1px solid #00e5ff88; background: #00e5ff14; color: #e8ffff; font: inherit; box-shadow: 0 0 12px #00e5ff22 }
.p button:active { transform: scale(.97); background: #00e5ff33 }
.p button.pri { background: linear-gradient(90deg, #00b8d4, #c000b0); border: 0; box-shadow: 0 0 20px #ff2bd666 }
small { display: block; font-weight: 400; font-size: 12px; opacity: .8 }
input[type=range] { width: 100%; accent-color: var(--c) }
.row { width: 100%; text-align: left; font-size: 14px } .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100% }
.st { background: #ffffff0d; border-radius: 10px; padding: 8px } .st b { display: block; font-size: 20px; color: var(--c) }
.bd { opacity: .3; filter: grayscale(1) } .bd.on { opacity: 1; filter: none } .bd span { font-size: 26px; display: block }
#av { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--c); box-shadow: 0 0 14px var(--c); display: none }
#toast { position: fixed; top: 14%; left: 50%; transform: translateX(-50%); background: #000c; border: 1px solid var(--m); padding: 8px 16px; border-radius: 99px; opacity: 0; transition: .3s; pointer-events: none; z-index: 9 }
#toast.on { opacity: 1 } #msg, #lbl { font-size: 13px; min-height: 16px; white-space: pre-line }
