/* Меню «Белого пятна»: живой мир за спиной, справа колонка — кожаный полевой планшет с названием,
   «Играть», гараж и круглые кнопки. Базовый размер 700 x 372 внутри #menuIn. */
.m3 { --leather-a: #9a5a2a; --leather-b: #6e3a16; --leather-c: #4a2208; --edge: #2a1406; --stitch: #f3d9a0;
  --play-a: #ffc233; --play-b: #ff8a00; --play-c: #f25c00; --play-d: #ff7a00; --play-rim: #ffd98a; --play-edge: #7a2a00; --play-deep: #3a1200;
  --screen-a: #1a1208; --screen-b: #2e2212; --num: #ffe27a; --num-glow: rgba(255, 190, 40, .6); --label: #fff3d6;
  position: absolute; inset: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 900; }
#scr-menu { background: #9cd6ff; }
#scr-menu #gl, #scr-game #gl { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#menuIn { position: absolute; left: 0; top: 0; overflow: hidden; }

.m3-top { position: absolute; left: 22px; top: 10px; display: flex; gap: 26px; }
.m3-stat { position: relative; display: flex; align-items: center; height: 42px; padding: 3px 3px 3px 26px; border-radius: 11px;
  background: linear-gradient(#b8783a, var(--leather-b) 55%, var(--leather-c)); border: 2px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255, 230, 180, .5), 0 4px 8px rgba(0, 0, 0, .45); }
.m3-stat svg { position: absolute; left: -18px; top: -5px; width: 42px; height: 42px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.m3-val { min-width: 70px; height: 100%; padding: 0 9px; border-radius: 7px; display: flex; align-items: center; justify-content: flex-end; gap: 4px;
  background: linear-gradient(var(--screen-a), var(--screen-b)); box-shadow: inset 0 2px 4px #000, inset 0 -1px 0 rgba(255, 255, 255, .12);
  color: var(--num); font-size: 17px; font-variant-numeric: tabular-nums; text-shadow: 0 0 8px var(--num-glow); }
.m3-val small { color: #c8a878; font-size: 11px; text-shadow: none; }
.m3-stat * { pointer-events: none; }

.m3-side { position: absolute; right: 14px; top: 6px; bottom: 6px; width: 262px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; }
.m3-plate { position: relative; width: 252px; padding: 12px 0 9px; border-radius: 14px; line-height: 0; text-align: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 220, 160, .35), transparent 60%), linear-gradient(var(--leather-a), var(--leather-b) 50%, var(--leather-c));
  border: 3px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255, 220, 170, .45), inset 0 -3px 0 rgba(0, 0, 0, .4), 0 8px 18px rgba(0, 0, 0, .55); }
.m3-plate::before { content: ""; position: absolute; inset: 6px; border-radius: 9px; border: 2px dashed var(--stitch); opacity: .75; pointer-events: none; }
.m3-plate i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6c0, #c89030 55%, #6a4a10 85%); box-shadow: 0 1px 1px #000; }
.m3-plate i:nth-child(1) { left: 9px; top: 9px; } .m3-plate i:nth-child(2) { right: 9px; top: 9px; } .m3-plate i:nth-child(3) { left: 9px; bottom: 9px; } .m3-plate i:nth-child(4) { right: 9px; bottom: 9px; }
#m3-title { position: relative; display: inline-block; }

.m3-guest { display: none; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(40, 20, 6, .78); color: #ffd9a0; font-size: 11px; font-weight: 600; max-width: 252px; }
.m3-guest.show { display: flex; }
.m3-play { position: relative; width: 232px; height: 64px; margin-top: 6px; border-radius: 18px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 0;
  background: linear-gradient(var(--play-a), var(--play-b) 48%, var(--play-c) 52%, var(--play-d));
  box-shadow: 0 0 0 3px var(--play-edge), 0 0 0 6px var(--play-rim), 0 0 0 8px var(--play-edge), 0 9px 0 8px var(--play-deep), 0 18px 20px rgba(0, 0, 0, .55);
  transition: transform .06s; animation: m3pulse 1.7s ease-in-out infinite; }
.m3-play::before { content: ""; position: absolute; left: 10px; right: 10px; top: 5px; height: 34%; border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, .1)); pointer-events: none; }
.m3-play:active { transform: translateY(6px); }
.m3-play > * { position: relative; pointer-events: none; }
.m3-garage { margin-top: 12px; height: 42px; padding: 0 14px 0 10px; border-radius: 17px; border: 2px solid var(--edge); display: flex; align-items: center; gap: 8px;
  background: linear-gradient(#e2402f, #a8221a); color: #fff; font: inherit; font-size: 13px; font-weight: 800; text-shadow: 0 1px 1px #000;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 4px 0 #3a0a06, 0 6px 8px rgba(0, 0, 0, .4); }
.m3-garage:active { transform: translateY(3px); }
.m3-garage * { pointer-events: none; }
.m3-row { display: flex; gap: 12px; margin-top: 2px; }
.m3-rb { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 0; color: var(--label); font: inherit; font-size: 10px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.m3-rb b { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid var(--edge);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 4px 0 #0d0703, 0 7px 8px rgba(0, 0, 0, .5); transition: transform .06s; }
.m3-rb:active b { transform: translateY(4px); }
.m3-rb * { pointer-events: none; }
.m3-g b { background: radial-gradient(circle at 35% 25%, #8df27a, #1f9e2c 70%); }
.m3-b b { background: radial-gradient(circle at 35% 25%, #8fd8ff, #1877d8 70%); }
.m3-s b { background: radial-gradient(circle at 35% 25%, #ffe98a, #e0a100 70%); }
.m3-p b { background: radial-gradient(circle at 35% 25%, #c7ccd4, #5c626c 70%); }
@keyframes m3pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.13); } }
