/* Главное меню: синяя адресная табличка с названием, счётчики в эмалевых рамках, дворник, большая «Играть». Базовый размер 390 x 700. */
.m2 { position: absolute; inset: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 900; }
.m2-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }

.m2-top { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; }
.m2-stat { position: relative; display: flex; align-items: center; height: 40px; padding: 3px 3px 3px 26px; margin-left: 16px; border-radius: 12px;
  background: linear-gradient(#4a9af0, #1f5fc0 55%, #174aa0); border: 3px solid #2e1a2e; box-shadow: inset 0 0 0 2px #fff, inset 0 3px 0 rgba(255,255,255,.4), 0 4px 0 #2e1a2e, 0 6px 10px rgba(0,0,0,.35); }
.m2-stat svg { position: absolute; left: -20px; top: -6px; width: 46px; height: 46px; filter: drop-shadow(0 3px 2px rgba(0,0,0,.5)); }
.m2-stat * { pointer-events: none; }
.m2-val { min-width: 72px; height: 100%; padding: 0 10px; border-radius: 7px; display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(#08142e, #142a52); box-shadow: inset 0 2px 4px #000; color: #ffe27a; font-size: 18px; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px rgba(255,200,60,.6); }
.m2-val small { color: #8fb4e8; font-size: 12px; margin-left: 3px; text-shadow: none; }
.m2-plus { width: 28px; height: 28px; margin-left: 3px; border-radius: 8px; border: 2px solid #0d4a14; position: relative;
  background: linear-gradient(#7df067, #1f9e2c); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), 0 2px 0 #0b3510; }
.m2-plus::before, .m2-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; }
.m2-plus::before { width: 12px; height: 4px; margin: -2px 0 0 -6px; } .m2-plus::after { width: 4px; height: 12px; margin: -6px 0 0 -2px; }

/* табличка: эмаль с белой каймой и заклёпками, как номер дома */
.m2-plate { position: absolute; left: 50%; top: 60px; width: 332px; margin-left: -166px; padding: 8px 0 10px; border-radius: 18px; line-height: 0; text-align: center;
  background: linear-gradient(#3a86e8, #1f5fc0 55%, #174aa0); border: 4px solid #2e1a2e;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 7px #2e1a2e, inset 0 12px 16px rgba(255,255,255,.28), 0 8px 0 #2e1a2e, 0 16px 22px rgba(0,0,0,.45); animation: m2sway 4s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes m2sway { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
.m2-plate i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8a94a4 70%); box-shadow: 0 1px 1px #000; }
.m2-plate i:nth-child(1) { left: 14px; top: 14px; } .m2-plate i:nth-child(2) { right: 14px; top: 14px; } .m2-plate i:nth-child(3) { left: 14px; bottom: 14px; } .m2-plate i:nth-child(4) { right: 14px; bottom: 14px; }
.m2-house { display: inline-block; margin: 6px 0 2px; padding: 0 10px; font-size: 11px; line-height: 18px; letter-spacing: 1.5px; color: #2e1a2e; background: #fff; border-radius: 9px; }
#m-title { line-height: 0; }

.m2-menu { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.m2-guest { display: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(14,26,58,.78); color: #d8ecff; font-size: 12px; font-weight: 700; }
.m2-guest.show { display: flex; }
.m2-play { position: relative; width: 290px; height: 82px; border-radius: 22px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 0;
  background: linear-gradient(#ffc233, #ff8a00 48%, #f25c00 52%, #ff7a00);
  box-shadow: 0 0 0 3px #7a2a00, 0 0 0 6px #ffd98a, 0 0 0 9px #2e1a2e, 0 11px 0 9px #2e1a2e, 0 24px 24px rgba(0,0,0,.5); animation: m2pulse 1.6s ease-in-out infinite; transition: transform .06s; }
.m2-play::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 34%; border-radius: 16px; background: linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.1)); pointer-events: none; }
.m2-play:active { transform: translateY(6px); }
.m2-play > * { position: relative; pointer-events: none; }
.m2-pl { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.m2-pl small { font-size: 12px; line-height: 14px; color: #fff3d6; text-shadow: 0 1px 0 #8a2a00; letter-spacing: 1px; }
@keyframes m2pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.14); } }
.m2-row { display: flex; gap: 10px; margin-top: 10px; }
.m2-rb { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: #fff; font: inherit; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.m2-rb b { position: relative; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #2e1a2e;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.3), 0 5px 0 #2e1a2e, 0 9px 10px rgba(0,0,0,.45); transition: transform .06s; }
.m2-rb:active b { transform: translateY(4px); }
.m2-rb * { pointer-events: none; }
.m2-g b { background: radial-gradient(circle at 35% 25%, #8df27a, #1f9e2c 70%); }
.m2-p b { background: radial-gradient(circle at 35% 25%, #ff9ad8, #d02a8a 70%); }
.m2-y b { background: radial-gradient(circle at 35% 25%, #ffe98a, #e0a100 70%); }
.m2-t b { background: radial-gradient(circle at 35% 25%, #8ff0e8, #12a89a 70%); }
.m2-b b { background: radial-gradient(circle at 35% 25%, #8fd8ff, #1877d8 70%); }
.m2-row2 { display: flex; gap: 8px; }
.m2-pill { position: relative; display: flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 20px; border: 3px solid #2e1a2e; color: #2e1a2e;
  font: inherit; font-size: 13px; font-weight: 900; background: linear-gradient(#ffffff, #dde8f4); box-shadow: inset 0 -3px 0 rgba(0,0,0,.12), 0 4px 0 #2e1a2e; }
.m2-pill:active { transform: translateY(3px); }
.m2-pill * { pointer-events: none; }
.m2-pill svg { color: #1877d8; }
.m2-rank { display: inline-block; margin-top: 4px; padding: 0 10px; font-size: 11px; line-height: 18px; font-weight: 900; color: #ffe27a; background: rgba(8,20,46,.7); border-radius: 9px; }
