/* Меню: ледяная глыба с шапкой снега и сосульками, жёлтая «Играть» на синем, круглые льдинки-кнопки. Базовый размер 390 x 700. */
.m3 { --ice-a: #e9fbff; --ice-b: #9fe0ff; --ice-c: #4fb4f0; --edge: #0b3d78;
  --play-a: #fff27a; --play-b: #ffd21a; --play-c: #ffb000; --play-d: #ffc61f; --play-rim: #ffffff; --play-edge: #0b3d78; --play-deep: #06285a;
  --num: #0b3d78; --label: #ffffff;
  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: 232px; width: 390px; height: 200px; touch-action: none; }

/* счётчики: ледяная рамка, белое табло, значок выступает слева */
.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: 40px; padding: 3px 3px 3px 26px; margin-left: 14px; border-radius: 14px;
  background: linear-gradient(var(--ice-a), var(--ice-b) 55%, var(--ice-c)); border: 3px solid var(--edge); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(11, 61, 120, .25), 0 4px 0 var(--edge), 0 8px 10px rgba(0, 30, 80, .35); }
.m3-stat svg { position: absolute; left: -20px; top: -6px; width: 46px; height: 46px; filter: drop-shadow(0 3px 2px rgba(0, 30, 80, .45)); }
.m3-val { min-width: 74px; height: 100%; padding: 0 10px; border-radius: 9px; display: flex; align-items: center; justify-content: flex-end;
  background: linear-gradient(#ffffff, #dff4ff); box-shadow: inset 0 2px 3px rgba(11, 61, 120, .35);
  color: var(--num); font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.m3-val small { color: #5b84b8; font-size: 13px; margin-left: 3px; }
.m3-stat * { pointer-events: none; }
.m3-plus { width: 28px; height: 28px; margin-left: 3px; border-radius: 8px; border: 2px solid #7a3a00; position: relative; padding: 0;
  background: linear-gradient(#fff27a, #ffb000); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 2px 0 #7a3a00; }
.m3-plus::before, .m3-plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: #7a3a00; 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: 60px; width: 326px; margin-left: -163px; padding: 14px 0 10px; border-radius: 22px 22px 18px 18px; line-height: 0; text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, .95), rgba(170, 230, 255, .92) 40%, rgba(80, 180, 240, .92));
  border: 3px solid var(--edge); box-shadow: inset 0 3px 0 #fff, inset 0 -5px 0 rgba(20, 110, 200, .35), 0 6px 0 var(--edge), 0 14px 18px rgba(0, 30, 80, .35); }
.m3-plate::before { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; height: 26px; border-radius: 16px;
  background: radial-gradient(circle at 12% 70%, #fff 0 16px, transparent 17px), radial-gradient(circle at 34% 40%, #fff 0 18px, transparent 19px), radial-gradient(circle at 58% 60%, #fff 0 17px, transparent 18px), radial-gradient(circle at 82% 45%, #fff 0 19px, transparent 20px), linear-gradient(#fff, #fff) 0 14px / 100% 12px no-repeat;
  filter: drop-shadow(0 2px 0 #9cc4f2); }
.m3-plate::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: -16px; height: 16px;
  background: conic-gradient(from 150deg at 50% 0, #9fe0ff 0 60deg, transparent 60deg) 0 0 / 22px 16px repeat-x; filter: drop-shadow(0 2px 0 var(--edge)); }
.m3-plate i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; }
.m3-plate i:nth-child(1) { left: 14px; top: 18px; } .m3-plate i:nth-child(2) { right: 16px; top: 22px; } .m3-plate i:nth-child(3) { left: 20px; bottom: 14px; } .m3-plate i:nth-child(4) { right: 22px; bottom: 16px; }
#m3-title { position: relative; }

.m3-pw { position: relative; }
.m3-badge { position: absolute; right: -14px; top: -16px; width: 50px; height: 50px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #ffb0d0, #ef3f72 70%); border: 3px solid var(--edge); color: #fff; box-shadow: 0 3px 0 var(--edge); pointer-events: none; transform: rotate(8deg); }
.m3-badge small { font-size: 10px; font-weight: 800; }
.m3-badge b { font-size: 19px; }

/* низ: плашка гостя, «Играть», две таблетки, круглые кнопки */
.m3-menu { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m3-guest { display: none; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: rgba(11, 40, 90, .78); color: #d6f1ff; font-size: 12px; font-weight: 700; }
.m3-guest.show { display: flex; }
.m3-play { position: relative; width: 290px; height: 78px; border-radius: 24px; 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 9px var(--play-edge), 0 10px 0 9px var(--play-deep), 0 22px 24px rgba(0, 30, 80, .5);
  transition: transform .06s; animation: m3pulse 1.7s ease-in-out infinite; }
.m3-play::before { content: ""; position: absolute; left: 12px; right: 12px; top: 6px; height: 34%; border-radius: 16px; background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .1)); pointer-events: none; }
.m3-play:active { transform: translateY(6px); }
.m3-play > * { position: relative; pointer-events: none; }
.m3-pills { display: flex; gap: 12px; margin-top: 10px; }
.pill { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px 0 10px; border-radius: 22px; border: 3px solid var(--edge); color: #fff; font: inherit; font-size: 15px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .2), 0 4px 0 var(--edge); transition: transform .06s; }
.pill:active { transform: translateY(3px); }
.pill * { pointer-events: none; }
.pill-lv { background: linear-gradient(#8fdcff, #2f8df0); }
.pill-shop { background: linear-gradient(#ffb0d0, #ef3f72); }
.m3-row { display: flex; gap: 18px; margin-top: 2px; }
.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: 800; text-shadow: 0 1px 2px #0b2a55, 0 0 4px #0b2a55; }
.m3-rb b { width: 58px; height: 58px; 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, .55), inset 0 -4px 0 rgba(0, 0, 0, .2), 0 5px 0 var(--edge), 0 9px 10px rgba(0, 30, 80, .35); 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%, #fff2a8, #ffb000 70%); }
.m3-b b { background: radial-gradient(circle at 35% 25%, #ffc6f0, #d63ac8 70%); }
.m3-s b { background: radial-gradient(circle at 35% 25%, #b4ffe6, #13b98a 70%); }
.m3-p b { background: radial-gradient(circle at 35% 25%, #d8e4ff, #6a7fd8 70%); }
@keyframes m3pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.1); } }
