/* === ★ ЕДИНАЯ ЦВЕТОВАЯ СХЕМА (ФИОЛЕТОВЫЙ КИБЕРПАНК) === */
:root {
--mobc-primary: #b026ff;
--mobc-primary-glow: rgba(176, 38, 255, 0.6);
--mobc-accent: #00f0ff;
--mobc-danger: #ff003c;
--mobc-warning: #ccff00;
--mobc-heal: #00f0ff;
--mobc-bg-dark: #0a0514;
--mobc-bg-panel: rgba(20, 10, 40, 0.85);
--mobc-bg-card: linear-gradient(135deg, rgba(15, 10, 35, 0.98), rgba(40, 15, 60, 0.98));
--mobc-font-main: 'Orbitron', sans-serif;
--mobc-font-mono: 'Share Tech Mono', monospace;
}
.mobc-wrapper {
all: initial;
font-family: var(--mobc-font-main);
color: var(--mobc-primary);
max-width: 650px;
margin: 40px auto;
box-sizing: border-box;
line-height: 1.4;
text-align: center;
display: block;
}
.mobc-wrapper * { box-sizing: border-box; margin: 0; padding: 0; }
/* === ★ HUD-ПАНЕЛЬ === */
.mobc-hud {
position: absolute;
top: 0;
left: 0;
width: 100%;
z-index: 20;
background: linear-gradient(to bottom, rgba(10, 5, 20, 0.95) 0%, rgba(10, 5, 20, 0.7) 70%, transparent 100%);
padding: 10px 15px 20px;
display: flex;
flex-direction: column;
gap: 6px;
pointer-events: none;
}
.mobc-hud-row {
display: flex;
justify-content: center;
gap: 8px;
flex-wrap: wrap;
align-items: center;
}
.mobc-hud .mobc-stat {
font-family: var(--mobc-font-mono);
font-size: 13px;
letter-spacing: 1px;
text-transform: uppercase;
padding: 4px 10px;
background: rgba(176, 38, 255, 0.08);
border: 1px solid rgba(176, 38, 255, 0.4);
border-radius: 4px;
text-shadow: 0 0 5px var(--mobc-primary);
color: var(--mobc-primary);
pointer-events: auto;
}
.mobc-hud .mobc-bonus-active {
color: var(--mobc-warning);
border-color: var(--mobc-warning);
text-shadow: 0 0 8px var(--mobc-warning);
animation: mobc-pulse 1s infinite;
}
.mobc-hud .mobc-ext-stat {
color: var(--mobc-warning) !important;
border-color: rgba(204, 255, 0, 0.4) !important;
text-shadow: 0 0 5px var(--mobc-warning) !important;
}
.mobc-hud .mobc-handcuffs-stat {
color: var(--mobc-accent) !important;
border-color: rgba(0, 240, 255, 0.4) !important;
text-shadow: 0 0 5px var(--mobc-accent) !important;
}
.mobc-hud .mobc-medicine-stat {
color: var(--mobc-heal) !important;
border-color: rgba(0, 240, 255, 0.4) !important;
text-shadow: 0 0 5px var(--mobc-heal) !important;
}
.mobc-control-btn-hud {
background: rgba(10, 5, 20, 0.8);
border: 1px solid var(--mobc-primary);
color: var(--mobc-primary);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
pointer-events: auto;
backdrop-filter: blur(4px);
}
.mobc-control-btn-hud:hover {
background: rgba(176, 38, 255, 0.2);
box-shadow: 0 0 15px var(--mobc-primary);
transform: scale(1.1);
}
/* === ★ ИГРОВОЕ ПОЛЕ === */
#mobc-game-area {
width: 100%;
height: 450px;
border-radius: 12px;
border: 2px solid var(--mobc-primary);
position: relative;
overflow: hidden;
background: linear-gradient(135deg, var(--mobc-bg-dark) 0%, #150a24 50%, var(--mobc-bg-dark) 100%);
box-shadow: 0 0 30px var(--mobc-primary-glow), inset 0 0 50px rgba(0, 0, 0, 0.8);
cursor: crosshair;
transition: border-color 0.3s, box-shadow 0.3s;
}
#mobc-game-area::before {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(rgba(176, 38, 255, 0.05) 1px, transparent 1px),
linear-gradient(90deg, rgba(176, 38, 255, 0.05) 1px, transparent 1px);
background-size: 40px 40px;
pointer-events: none;
z-index: 1;
}
.mobc-scanlines {
position: absolute;
inset: 0;
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
background-size: 100% 4px;
pointer-events: none;
z-index: 2;
opacity: 0.4;
}
/* === ОБЪЕКТЫ === */
.mobc-emoji {
position: absolute;
width: 50px;
height: 50px;
cursor: pointer;
user-select: none;
z-index: 10;
transition: transform 0.1s;
animation: mobc-spawn 0.3s ease-out;
display: flex;
align-items: center;
justify-content: center;
}
.mobc-emoji img {
width: 100%;
height: 100%;
object-fit: contain;
filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
pointer-events: none;
}
.mobc-emoji:active { transform: scale(0.8); }
.mobc-emoji:active img { filter: drop-shadow(0 0 12px var(--mobc-primary-glow)); }
@keyframes mobc-spawn {
0% { transform: scale(0) rotate(-180deg); opacity: 0; }
100% { transform: scale(1) rotate(0); opacity: 1; }
}
/* === ★ ОВЕРЛЕИ === */
.mobc-overlay {
position: absolute;
inset: 0;
background: rgba(10, 5, 20, 0.92);
backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 100;
gap: 20px;
padding: 20px;
}
.mobc-start-img {
max-width: 60%;
height: auto;
margin-bottom: 10px;
filter: drop-shadow(0 0 20px var(--mobc-primary-glow));
animation: mobc-pulse 2s infinite;
}
.mobc-title {
font-size: 42px;
font-weight: 900;
color: var(--mobc-primary);
text-shadow: 0 0 20px var(--mobc-primary), 0 0 40px var(--mobc-primary);
line-height: 1.1;
letter-spacing: 4px;
}
.mobc-subtitle {
font-family: var(--mobc-font-mono);
color: var(--mobc-danger);
font-size: 16px;
letter-spacing: 3px;
text-shadow: 0 0 10px var(--mobc-danger);
}
.mobc-final-score {
font-family: var(--mobc-font-mono);
font-size: 24px;
color: #fff;
text-shadow: 0 0 10px #fff;
}
.mobc-glitch {
font-size: 36px;
color: var(--mobc-danger);
text-shadow: 0 0 10px var(--mobc-danger);
position: relative;
animation: mobc-glitch-anim 2s infinite;
}
@keyframes mobc-glitch-anim {
0%, 100% { text-shadow: 0 0 10px var(--mobc-danger); }
20% { text-shadow: 2px 0 var(--mobc-primary), -2px 0 var(--mobc-warning); }
40% { text-shadow: -2px 0 var(--mobc-primary), 2px 0 var(--mobc-warning); }
60% { text-shadow: 0 0 10px var(--mobc-danger); }
}
/* Картинка на экране смерти */
.mobc-end-img {
max-width: 60%;
height: auto;
margin-bottom: 10px;
filter: drop-shadow(0 0 20px currentColor);
animation: mobc-pulse 2s infinite;
}
/* === ★ КНОПКИ === */
.mobc-btn {
all: unset;
cursor: pointer;
font-family: var(--mobc-font-mono);
font-size: 18px;
font-weight: bold;
color: #fff;
background: var(--mobc-primary);
padding: 12px 30px;
border: 2px solid var(--mobc-primary);
border-radius: 6px;
text-transform: uppercase;
letter-spacing: 2px;
box-shadow: 0 0 15px var(--mobc-primary-glow), inset 0 0 15px rgba(255,255,255,0.1);
transition: all 0.2s;
position: relative;
z-index: 101;
}
.mobc-btn:hover {
background: transparent;
color: var(--mobc-primary);
box-shadow: 0 0 25px var(--mobc-primary);
text-shadow: 0 0 5px var(--mobc-primary);
}
.mobc-btn-rules {
background: transparent !important;
color: var(--mobc-primary) !important;
border: 1px solid var(--mobc-primary) !important;
box-shadow: 0 0 10px var(--mobc-primary-glow) !important;
font-size: 14px !important;
padding: 10px 24px !important;
margin-top: 10px !important;
opacity: 0.85;
}
.mobc-btn-mute {
background: transparent !important;
color: var(--mobc-warning) !important;
border: 1px solid var(--mobc-warning) !important;
box-shadow: 0 0 10px rgba(204, 255, 0, 0.3) !important;
font-size: 14px !important;
padding: 10px 24px !important;
margin-top: 10px !important;
opacity: 0.85;
}
.mobc-btn-reset {
background: transparent !important;
color: var(--mobc-danger) !important;
border: 1px solid var(--mobc-danger) !important;
box-shadow: 0 0 10px rgba(255, 0, 60, 0.3) !important;
font-size: 14px !important;
padding: 10px 24px !important;
margin-top: 10px !important;
}
/* === ВСПЛЫВАЮЩИЙ ТЕКСТ === */
.mobc-float-text, .mobc-bonus-text {
position: absolute;
font-family: var(--mobc-font-main);
font-weight: 900;
z-index: 50;
pointer-events: none;
text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
animation: mobc-floatUp 0.8s ease-out forwards;
}
.mobc-float-text { font-size: 24px; }
.mobc-bonus-text {
font-size: 28px;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
animation: mobc-bonusPop 1.2s ease-out forwards;
}
@keyframes mobc-floatUp {
0% { transform: translateY(0) scale(1); opacity: 1; }
100% { transform: translateY(-60px) scale(1.5); opacity: 0; }
}
@keyframes mobc-bonusPop {
0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
80% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}
/* === УТИЛИТЫ === */
.mobc-hidden { display: none !important; }
@keyframes mobc-pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
.mobc-shake { animation: mobc-shakeAnim 0.4s cubic-bezier(.36, .07,.19,.97) both; }
@keyframes mobc-shakeAnim {
10%, 90% { transform: translate3d(-1px, 0, 0); }
20%, 80% { transform: translate3d(2px, 0, 0); }
30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
40%, 60% { transform: translate3d(4px, 0, 0); }
}
.mobc-shield-active {
border-color: var(--mobc-warning) !important;
box-shadow: 0 0 30px var(--mobc-warning), inset 0 0 30px rgba(204, 255, 0, 0.15) !important;
}
.mobc-timer-active {
border-color: var(--mobc-accent) !important;
box-shadow: 0 0 30px var(--mobc-accent), inset 0 0 30px rgba(0, 240, 255, 0.15) !important;
animation: mobc-timerPulse 1s infinite;
}
@keyframes mobc-timerPulse {
0%, 100% { box-shadow: 0 0 30px var(--mobc-accent), inset 0 0 30px rgba(0, 240, 255, 0.15); }
50% { box-shadow: 0 0 50px var(--mobc-accent), inset 0 0 40px rgba(0, 240, 255, 0.25); }
}
/* === АНИМАЦИЯ ПОЖАРА === */
.mobc-fire {
animation: mobc-firePulse 0.3s ease-in-out infinite alternate, mobc-fireFlicker 0.15s linear infinite !important;
filter: drop-shadow(0 0 15px #ff3300) drop-shadow(0 0 25px #ff0000) drop-shadow(0 0 35px #ff6600) !important;
z-index: 15 !important;
}
.mobc-fire img {
animation: mobc-firePulse 0.3s ease-in-out infinite alternate, mobc-fireFlicker 0.15s linear infinite !important;
filter: drop-shadow(0 0 15px #ff3300) drop-shadow(0 0 25px #ff0000) drop-shadow(0 0 35px #ff6600) !important;
}
@keyframes mobc-firePulse {
0% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 10px #ff3300) brightness(1); }
100% { transform: scale(1.15) rotate(3deg); filter: drop-shadow(0 0 25px #ff0000) brightness(1.4); }
}
@keyframes mobc-fireFlicker {
0%, 100% { opacity: 1; }
50% { opacity: 0.85; }
}
.mobc-fire::before {
content: '💨';
position: absolute;
top: -25px;
left: 50%;
transform: translateX(-50%);
font-size: 20px;
opacity: 0.6;
animation: mobc-smokeRise 2s ease-out infinite;
pointer-events: none;
}
@keyframes mobc-smokeRise {
0% { transform: translateX(-50%) translateY(0) scale(0.5); opacity: 0.6; }
100% { transform: translateX(-50%) translateY(-40px) scale(1.5); opacity: 0; }
}
.mobc-fire::after {
content: '✨';
position: absolute;
top: 0;
left: 0;
font-size: 14px;
animation: mobc-sparks 0.8s ease-out infinite;
pointer-events: none;
}
@keyframes mobc-sparks {
0% { transform: translate(0, 0) scale(1); opacity: 1; }
100% { transform: translate(20px, -30px) scale(0.3); opacity: 0; }
}
/* === ЯДЕРНЫЙ ВЗРЫВ === */
.mobc-nuke-effect { animation: mobc-nukeFlash 1.5s ease-out; }
@keyframes mobc-nukeFlash {
0% { filter: brightness(1); }
10% { filter: brightness(3) hue-rotate(90deg); box-shadow: 0 0 100px #00ff00, inset 0 0 100px rgba(0, 255, 0, 0.5); }
30% { filter: brightness(2) hue-rotate(180deg); box-shadow: 0 0 80px #ff0000, inset 0 0 80px rgba(255, 0, 0, 0.5); }
100% { filter: brightness(0.3); }
}
.mobc-nuke-wave {
position: absolute;
top: 50%;
left: 50%;
width: 10px;
height: 10px;
border-radius: 50%;
background: radial-gradient(circle, rgba(0, 255, 0, 0.8) 0%, rgba(255, 255, 0, 0.6) 30%, rgba(255, 0, 0, 0.4) 60%, transparent 100%);
transform: translate(-50%, -50%);
animation: mobc-waveExpand 1.5s ease-out forwards;
pointer-events: none;
z-index: 200;
}
@keyframes mobc-waveExpand {
0% { width: 10px; height: 10px; opacity: 1; }
100% { width: 1500px; height: 1500px; opacity: 0; }
}
/* === ★ МОДАЛЬНЫЕ ОКНА === */
.mobc-modal, .mobc-tutorial-modal {
position: fixed;
inset: 0;
background: rgba(5, 2, 15, 0.95);
backdrop-filter: blur(12px);
z-index: 9999;
display:  flex;
justify-content: center;
align-items: center;
padding: 20px;
animation: mobc-fadeIn 0.3s ease-out;
}
.mobc-modal-content, .mobc-tutorial-card {
position: relative;
max-width : 550px;
width: 100%;
max-height: 85vh;
overflow-y: auto;
background: var(--mobc-bg-card);
border: 3px solid var(--mobc-primary);
border-radius: 16px;
padding: 30px;
box-shadow: 0  0 50px var(--mobc-primary-glow), inset 0 0 30px rgba(176, 38, 255, 0.1);
font-family: var(--mobc-font-mono);
color: #e0e0e0;
animation: mobc-slideUp 0.4s ease-out;
text-align: cent er;
}
@keyframes mobc-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mobc-slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0);  opacity: 1; } }
.mobc-modal-close {
all: unset;
position: absolute;
top: 15px;
right: 15px;
width: 32px;
height: 32px;
background: rgba(255, 0, 60, 0.2);
border: 1px solid var(--mo bc-danger);
border-radius: 50%;
color: var(--mobc-danger);
font-size: 18px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.m obc-modal-close:hover {
background: var(--mobc-danger);
color: #fff;
transform: rotate(90deg);
}
.mobc-modal-title, .mobc-tutorial-title {
font-family: var(--mobc-font-main);
color : var(--mobc-primary);
font-size: 26px;
font-weight: 900;
text-align: center;
margin-bottom: 20px;
text-shadow: 0 0 15px var(--mobc-primary);
letter-spacing: 2px;
}
.mobc-rules-sec tion {
margin-bottom: 20px;
padding: 15px;
background: rgba(176, 38, 255, 0.05);
border-left: 3px solid var(--mobc-primary);
border-radius: 4px;
text-align: left;
}
.mobc-rules-sec tion h3 {
font-family: var(--mobc-font-main);
color: var(--mobc-primary);
font-size: 16px;
margin-bottom: 10px;
letter-spacing: 1px;
text-shadow: 0 0 8px var(--mobc-primary);
}
.mo bc-rules-section p { font-size: 14px; line-height: 1.6; margin: 0; }
.mobc-rules-danger {
border-left-color: var(--mobc-danger) !important;
background: rgba(255, 0, 60, 0.08) !important;
}
.mobc-rules-danger h3 {
color: var(--mobc-danger) !important;
text-shadow: 0 0 8px var(--mobc-danger) !important;
}
.mobc-rules-list { list-style: none; padding: 0; margin : 0; }
.mobc-rules-list li {
padding: 6px 0;
font-size: 14px;
line-height: 1.5;
border-bottom: 1px dashed rgba(176, 38, 255, 0.2);
}
.mobc-rules-list li:last-child { border-bottom:  none; }
.mobc-emoji-preview {
display: inline-block;
width: 24px;
height: 24px;
margin-right: 6px;
vertical-align: middle;
filter: drop-shadow(0 0 4px currentColor);
}
.mobc-emoji -preview img { width: 100%; height: 100%; object-fit: contain; }
.mobc-highlight {
color: var(--mobc-warning);
font-weight: bold;
text-shadow: 0 0 5px var(--mobc-warning);
}
.mobc-danger {
color: var(--mobc-danger) !important;
text-shadow: 0 0 5px var(--mobc-danger) !important;
}
.mobc-modal-ok {
display: block;
margin: 25px auto 0;
min-width: 250px;
}
.mobc -modal-content::-webkit-scrollbar, .mobc-tutorial-card::-webkit-scrollbar { width: 8px; }
.mobc-modal-content::-webkit-scrollbar-track, .mobc-tutorial-card::-webkit-scrollbar-track  { background: rgba(0, 0, 0, 0.3); border-radius: 4px; }
.mobc-modal-content::-webkit-scrollbar-thumb, .mobc-tutorial-card::-webkit-scrollbar-thumb {
background: var(--mobc-primary );
border-radius: 4px;
box-shadow: 0 0 8px var(--mobc-primary);
}
/* === ★ СПЕЦИФИКА ТУТОРИАЛА === */
.mobc-tutorial-step {
position: absolute;
top: 15px;
right: 15px;
font-family: var(--mobc-font-mono);
font-size: 14px;
color: var(--mobc-warning);
background: rgba(204, 255, 0, 0.15);
border: 1px solid var(--mobc-warning);
border-radius: 20px;
padding: 4px 12px;
text-shadow: 0 0 5px var(--mobc-warning);
}
.mobc-tutorial-icon {
width: 100px;
height: 100px;
margin: 0 auto 20px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(176, 38, 255, 0.1);
border: 2px solid var(--mobc-primary);
border-radius: 50%;
box-shadow: 0 0 30px var(--mobc-primary-glow), inset 0 0 20px rgba(176, 38, 255, 0.2);
animation: mobc-tutorialIconPulse 2s ease-in-out infinite;
}
@keyframes mobc-tutorialIconPulse {
0%, 100% { box-shadow: 0 0 30px var(--mobc-primary-glow), inset 0 0 20px rgba(176, 38, 255, 0.2); }
50% { box-shadow: 0 0 50px var(--mobc-primary), inset 0 0 30px rgba(176, 38, 255, 0.3); }
}
.mobc-tutorial-icon img {
width: 70px;
height: 70px;
object-fit: contain;
filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}
.mobc-tutorial-desc {
font-size: 16px;
line-height: 1.6;
color: #e0e0e0;
margin-bottom: 25px;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}
.mobc-tutorial-ok {
background: var(--mobc-primary) !important;
color: #fff !important;
border: 2px solid var(--mobc-primary) !important;
box-shadow: 0 0 20px var(--mobc-primary-glow) !important;
font-size: 18px !important;
padding: 12px 36px !important;
min-width: 220px;
}
.mobc-tutorial-ok:hover {
background: transparent !important;
color: var(--mobc-primary) !important;
box-shadow: 0 0 35px var(--mobc-primary) !important;
}
/* === ★ МОБИЛЬНАЯ АДАПТАЦИЯ === */
@media screen and (max-width: 600px) {
.mobc-wrapper { margin: 10px; }
#mobc-game-area { height: 400px; border-radius: 8px; }
.mobc-emoji { width: 42px; height: 42px; }
.mobc-hud .mobc-stat { font-size: 11px; padding: 3px 6px; }
.mobc-hud { padding: 8px 10px 15px; gap: 4px; }
.mobc-start-img { max-width: 90%; }
.mobc-end-img { max-width: 80%; }
.mobc-title { font-size: 28px; letter-spacing: 2px; }
.mobc-subtitle { font-size: 14px; }
.mobc-btn { font-size: 16px; padding: 10px 20px; }
.mobc-control-btn-hud { width: 28px; height: 28px; font-size: 14px; }
.mobc-modal, .mobc-tutorial-modal { padding: 10px; align-items: center; }
.mobc-modal-content, .mobc-tutorial-card { padding: 20px 15px; max-height: 85dvh; margin-bottom: 20px; }
.mobc-modal-title, .mobc-tutorial-title { font-size: 20px; margin-bottom: 15px; }
.mobc-rules-section { padding: 10px; margin-bottom: 15px; }
.mobc-rules-section h3 { font-size: 14px; }
.mobc-rules-section p, .mobc-rules-list li { font-size: 13px; }
.mobc-emoji-preview { width: 20px; height: 20px; }
.mobc-tutorial-icon { width: 80px; height: 80px; margin-bottom: 15px; }
.mobc-tutorial-icon img { width: 55px; height: 55px; }
.mobc-tutorial-desc { font-size: 14px; line-height: 1.5; }
.mobc-tutorial-ok { font-size: 16px !important; padding: 10px 24px !important; }
.mobc-tutorial-step { font-size: 12px; padding: 3px 8px; }
}