/* Меню 3D-игры: счётчики, табличка с названием, герой, «Играть», круглые кнопки. Базовый размер 390 x 700 внутри #menuIn.
   Палитра — в переменных: меняй под игру. Формы и объём (рамка, блик, толстая нижняя кромка) сохраняй. */
.m3 { --plate-a: #6d7480; --plate-b: #3b404a; --plate-c: #2a2e36; --edge: #14161a; --rivet: #f2f4f7;
  --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: 176px; width: 390px; height: 330px; }

/* счётчики: стальная рамка, тёмное табло, объёмный значок выступает слева */
.m3-top { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between; }
.m3-stat { position: relative; display: flex; align-items: center; height: 38px; padding: 3px 3px 3px 26px; margin-left: 14px; border-radius: 11px;
  background: linear-gradient(#8a909a, var(--plate-b) 55%, var(--plate-c)); border: 2px solid var(--edge); 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: 44px; height: 44px; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }
.m3-val { min-width: 74px; 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-stat * { pointer-events: none; }
.m3-plus { width: 28px; height: 28px; margin-left: 3px; border-radius: 7px; border: 2px solid #0d4a14; position: relative; padding: 0;
  background: linear-gradient(#7df067, #1f9e2c); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 2px 0 #0b3510; }
.m3-plus::before, .m3-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 1px; }
.m3-plus::before { width: 12px; height: 4px; margin: -2px 0 0 -6px; } .m3-plus::after { width: 4px; height: 12px; margin: -6px 0 0 -2px; }

/* табличка с названием: металл, заклёпки по углам */
.m3-plate { position: absolute; left: 50%; top: 56px; width: 330px; margin-left: -165px; padding: 10px 0 8px; border-radius: 14px; line-height: 0;
  background: linear-gradient(var(--plate-a), var(--plate-b) 45%, var(--plate-c)); border: 3px solid var(--edge);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .4), 0 8px 18px rgba(0, 0, 0, .55); }
.m3-plate i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--rivet), #6a707a 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-menu { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m3-guest { display: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: rgba(13, 7, 3, .7); color: #ffd9a0; font-size: 12px; font-weight: 600; }
.m3-guest.show { display: flex; }
.m3-play { position: relative; width: 290px; height: 80px; border-radius: 20px; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; 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 10px 0 8px var(--play-deep), 0 22px 24px rgba(0, 0, 0, .6);
  transition: transform .06s; animation: m3pulse 1.7s ease-in-out infinite; }
.m3-play::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 34%; border-radius: 14px; 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: 16px; margin-top: 8px; }
.m3-rb { display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; color: var(--label); font: inherit; font-size: 11px; font-weight: 700; text-shadow: 0 1px 2px #000; }
.m3-rb b { width: 62px; height: 62px; 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 5px 0 #0d0703, 0 9px 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); } }
/* «Сочный клинок»: деревянная табличка с гвоздями, сочная палитра сада */
.m3 { --plate-a: #e8a25a; --plate-b: #b8662a; --plate-c: #7a3a14; --edge: #3a1806; --rivet: #fff2d0;
  --play-a: #ffe04a; --play-b: #ff9a10; --play-c: #ff5a00; --play-d: #ff7a10; --play-rim: #fff0a0; --play-edge: #7a2000; --play-deep: #3a0e00;
  --screen-a: #2a0e06; --screen-b: #4a1e0e; --num: #fff1a0; --num-glow: rgba(255, 200, 60, .7); --label: #fffbe8; }
.m3-plate { background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 38px, rgba(90,40,10,.25) 38px 40px), linear-gradient(var(--plate-a), var(--plate-b) 50%, var(--plate-c)); }
.m3-plate::after { content: ""; position: absolute; inset: 4px; border-radius: 10px; border: 2px dashed rgba(255, 230, 180, .35); pointer-events: none; }
.m3-plate i { background: radial-gradient(circle at 35% 30%, #ffffff, #8a8f9a 55%, #3a3e46 90%); }
.m3-stat { background: linear-gradient(#f0b070, #b8662a 55%, #7a3a14); }
.m3-row { gap: 10px; }
.m3-rb b { width: 60px; height: 60px; }
.m3-r b { background: radial-gradient(circle at 35% 25%, #ffb0a0, #e0283a 70%); }
.m3-lvl { margin-top: 12px; padding: 3px 14px; border-radius: 10px; background: rgba(40, 14, 4, .55); color: #fff3c0; font-size: 13px; font-weight: 800; text-shadow: 0 1px 2px #000; pointer-events: none; }
.m3-menu { bottom: 12px; gap: 8px; }
.m3-row { margin-top: 2px; }
