/* Меню горизонтальной 3D-игры: счётчики по углам, грузовик слева, справа — деревенская табличка, «В путь!», круглые кнопки.
   Табличка — доска со шляпками гвоздей; кнопки объёмные с бликом и толстой кромкой. */
.m3 { --plate-a: #c98a4a; --plate-b: #9a5f2c; --plate-c: #6e3f18; --edge: #2a1406; --rivet: #e8e2d8;
  --play-a: #ffc233; --play-b: #ff8a00; --play-c: #f25c00; --play-d: #ff7a00; --play-rim: #ffd98a; --play-edge: #7a2a00; --play-deep: #3a1200;
  --screen-a: #0b0d11; --screen-b: #1c2129; --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; }
.m3-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m3-hero { position: absolute; left: 0; top: 52px; width: 470px; height: 340px; }

.m3-top { position: absolute; left: 12px; right: 12px; top: 8px; display: flex; justify-content: space-between; pointer-events: none; }
.m3-stat { position: relative; display: flex; align-items: center; height: 36px; padding: 3px 3px 3px 24px; margin-left: 14px; border-radius: 11px;
  background: linear-gradient(#8a909a, #3b404a 55%, #2a2e36); border: 2px solid #14161a; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 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 10px; border-radius: 7px; display: flex; align-items: center; justify-content: flex-end;
  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: 18px; font-variant-numeric: tabular-nums; letter-spacing: .5px; text-shadow: 0 0 8px var(--num-glow); }
.m3-val small { color: #8f98a6; font-size: 13px; margin-left: 3px; text-shadow: none; }

.m3-side { position: absolute; right: 14px; top: 46px; width: 240px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m3-plate { position: relative; width: 240px; padding: 9px 0 7px; border-radius: 12px; line-height: 0; display: flex; justify-content: center;
  background: repeating-linear-gradient(transparent 0 21px, rgba(60, 30, 8, .45) 21px 23px), linear-gradient(var(--plate-a), var(--plate-b) 50%, var(--plate-c));
  border: 3px solid var(--edge); box-shadow: inset 0 2px 0 rgba(255, 230, 190, .45), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 8px 18px rgba(0, 0, 0, .5); transform: rotate(-1.5deg); }
.m3-plate i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--rivet), #5a5048 70%); box-shadow: 0 1px 1px #000; }
.m3-plate i:nth-child(1) { left: 8px; top: 8px; } .m3-plate i:nth-child(2) { right: 8px; top: 8px; } .m3-plate i:nth-child(3) { left: 8px; bottom: 8px; } .m3-plate i:nth-child(4) { right: 8px; bottom: 8px; }
.m3-next { max-width: 240px; padding: 3px 10px; border-radius: 8px; background: rgba(40, 20, 5, .62); color: #fff3d6; font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m3-guest { position: absolute; left: 12px; bottom: 10px; display: none; align-items: center; gap: 6px; max-width: 330px; padding: 4px 10px; border-radius: 8px; background: rgba(13, 7, 3, .72); color: #ffd9a0; font-size: 11px; font-weight: 600; }
.m3-guest.show { display: flex; }
.m3-play { position: relative; width: 220px; height: 62px; margin: 6px 0 14px; border-radius: 18px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 8px; 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-row { display: flex; gap: 12px; }
.m3-rb { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--label); font: inherit; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 4px #000; }
.m3-rb b { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #14161a;
  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 8px 10px 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); } }
