/* «Процедурная» на телефоне. */
#remote.vein-remote { background: #0d141b; color: #eef3f7; }
.rv { --me: #2fd1b0; --flash: #2fd1b0; min-height: 100%; display: flex; flex-direction: column; align-items: stretch; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); gap: 10px; user-select: none; -webkit-user-select: none; font: 16px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.rv-top { display: flex; align-items: center; gap: 8px; flex: none; }
.rv-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--me); }
.rv-name { font-size: 18px; }
.rv-code { color: #93a6b6; font-size: 13px; flex: 1; }
.rv-leave { font: inherit; font-size: 14px; background: transparent; border: 1.5px solid #2b3d4c; border-radius: 10px; padding: 4px 10px; color: #eef3f7; }
.rv-banner { background: #ffb347; color: #2b1800; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; flex: none; }
.rv-main { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; }
.rv.playing { height: 100%; }
.rv:not(.playing) .rv-btn { width: min(62vw, 260px); margin: 8px 0 4px; }
.rv.playing .rv-main { display: none; }
.rv-hero { text-align: center; margin-top: 8px; }
.rv-title { font-size: 26px; font-weight: 850; }
.rv-sub { color: #b9c8d4; font-size: 16px; margin-top: 4px; }
.rv-modes { display: grid; gap: 10px; }
.rv-mode { text-align: left; background: #16212b; color: #eef3f7; border: 2px solid #2b3d4c; border-radius: 16px; padding: 14px 16px; font: inherit; display: flex; flex-direction: column; gap: 2px; }
.rv-mode b { font-size: 20px; }
.rv-mode span { color: #93a6b6; font-size: 14px; }
.rv-mode.on { border-color: var(--me); background: #12332d; }
.rv-check { display: flex; align-items: center; gap: 10px; color: #b9c8d4; padding: 4px 2px; }
.rv-check input { width: 22px; height: 22px; accent-color: #2fd1b0; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.rv-chips span { background: #12332d; color: #2fd1b0; border: 1px solid #1f5a4d; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.rv-chips span.new { background: #2fd1b0; color: #062a22; }
.rv-field { flex: 1; min-height: 0; position: relative; border-radius: 16px; overflow: hidden; background: #05080b; }
.rv-field canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rv-hud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; color: #b9c8d4; font-size: 14px; flex: none; }
.rv-time { font-size: 30px; color: #fff; font-variant-numeric: tabular-nums; }
.rv-err { color: #ff8d8d; }
.rv-cd, .rv-warn { width: 100%; text-align: center; font-weight: 850; font-size: 18px; border-radius: 10px; padding: 6px; }
.rv-cd { background: #22313d; color: #fff; }
.rv-warn { background: #ffb347; color: #2b1800; }
.rv-btn { flex: none; align-self: center; width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%; border: 0; background: var(--me); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font: 900 40px system-ui, sans-serif; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); touch-action: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.06); transition: transform 0.07s, box-shadow 0.07s; }
.rv-btn small { font-size: 15px; font-weight: 650; }
.rv-btn.down { transform: translateY(7px) scale(0.98); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.rv-btn.flash { animation: rvflash 0.5s ease-out; }
@keyframes rvflash { 0% { box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 0 0 18px var(--flash); } 100% { box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.06); } }
.rv.playing .rv-btn { margin: auto 0; }
.rv.field-mode .rv-btn { margin: 0; }
.rv.field-mode .rv-btn { width: 100%; aspect-ratio: auto; height: 22vh; min-height: 110px; border-radius: 22px; font-size: 34px; }
.rv-result { text-align: center; font-size: 26px; font-weight: 900; min-height: 1.3em; flex: none; }
.rv.field-mode .rv-result { display: none; }
.rv-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rv-stats div { background: #16212b; border: 1px solid #2b3d4c; border-radius: 14px; padding: 12px; text-align: center; }
.rv-stats b { display: block; font-size: 30px; }
.rv-stats span { color: #93a6b6; font-size: 13px; }
.rv-stats .good b { color: #3ddc84; }
.rv-stats .gold b { color: #ffd23f; }
.rv-stats .bad b { color: #ff6b6b; }
.rv-pause { position: fixed; inset: 0; z-index: 30; background: rgba(5, 9, 13, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.rv-count { font-size: 120px; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .rv-btn.flash { animation: none; } }
