/* «Стена эфира» (assets/wall.js): карточки группы, сердечки, гора окон Копипастов. Классы — с префиксом wall- и mt-.
   Плитки и окна горы двигает GSAP — у них нет transition/animation по transform; ховер — через translate. */
.wall-ov { position: fixed; inset: 0; z-index: 20010; display: grid; place-items: stretch; padding: clamp(8px, 2vh, 22px) clamp(8px, 2vw, 26px);
  background: rgba(6, 8, 30, .72); backdrop-filter: blur(4px); color: #fff; font-family: Nunito, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.wall-box { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; max-width: 1500px; width: 100%; margin: 0 auto;
  border-radius: 26px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .14);
  background: radial-gradient(900px 500px at 30% 0%, #3a3fa8 0%, transparent 70%), radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.4px) 0 0 / 28px 28px,
    linear-gradient(180deg, #1b1f4b, #0d1030); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.wall-ov [hidden] { display: none !important; }
.wall-hd { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 2px solid rgba(255, 255, 255, .1); }
.wall-x { flex: none; width: 52px; height: 52px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .1);
  color: #fff; font: 900 24px/1 Nunito, sans-serif; cursor: pointer; transition: background-color .15s; }
.wall-x:hover { background: #ff5d7a; }
.wall-title { min-width: 0; flex: 1; }
.wall-title b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
.wall-title small { display: block; font-size: 15px; font-weight: 800; color: #b9bde8; }
.wall-count { flex: none; padding: 8px 16px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 2px solid #3ee0ff; font-size: 18px; font-weight: 900;
  font-variant-numeric: tabular-nums; }
.wall-main { display: grid; grid-template-columns: clamp(220px, 22vw, 290px) minmax(0, 1fr); min-height: 0; }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); align-content: start; gap: 18px; padding: 18px; overflow: auto; min-height: 0; }
.wall-tile { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wall-tile .shc { flex: 1; }
.wall-tile.mine .shc { box-shadow: 0 0 0 4px #ffd23e, 0 10px 30px rgba(10, 14, 40, .45); }
.wall-tile.review .shc { opacity: .55; filter: grayscale(.6); }
.wall-ribbon { position: absolute; top: -9px; left: 14px; z-index: 1; padding: 2px 12px; border-radius: 99px; background: #ffd23e; color: #1b1f4b; font-size: 13px; font-weight: 900; }
.wall-foot { display: flex; justify-content: center; min-height: 48px; }
.wall-got { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; background: rgba(255, 111, 174, .18); border: 2px solid #ff6fae;
  font-size: 17px; font-weight: 900; }
.wall-got b { color: #ff6fae; font-variant-numeric: tabular-nums; }
.wall-tile.review .wall-got { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.wall-heart { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 18px 6px 12px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1); color: #fff; font: 900 17px/1 Nunito, sans-serif; cursor: pointer; transition: background-color .15s, border-color .15s, translate .1s; }
.wall-heart:hover:not(:disabled) { background: rgba(255, 111, 174, .25); border-color: #ff6fae; translate: 0 -2px; }
.wall-heart .wh-ico { font-size: 26px; color: #ff9cc8; }
.wall-heart.on { background: #ff6fae; border-color: #ff6fae; cursor: default; }
.wall-heart.on .wh-ico { color: #fff; }
.wall-heart:disabled:not(.on) { opacity: .6; }
.wall-fly { position: fixed; z-index: 20060; margin: -14px 0 0 -10px; font-size: 26px; color: #ff6fae; pointer-events: none; text-shadow: 0 0 10px rgba(255, 111, 174, .8); }
.wall-locked { grid-column: 1 / -1; display: grid; place-items: center; gap: 6px; padding: 60px 20px; text-align: center; }
.wall-locked b { font-size: 60px; }
.wall-locked p { margin: 0; font-size: 22px; font-weight: 800; color: #b9bde8; max-width: 420px; }
.wall-load { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; background: rgba(13, 16, 48, .85); }

/* гора окон Копипастов: ярус k — k + 1 окно; окно — рамка с полосой, глаза хамелеона */
.wall-mtn { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 12px; min-height: 0;
  border-right: 2px solid rgba(255, 255, 255, .1); background: linear-gradient(180deg, transparent, rgba(46, 165, 106, .12)); }
.mt-sky { position: relative; width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; min-height: 160px; }
.mt-stack { --mt: 40px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mt-row { display: flex; gap: 3px; }
.mt-win { position: relative; display: block; width: var(--mt); height: calc(var(--mt) * .78); border-radius: 5px; overflow: hidden; rotate: var(--rot, 0deg);
  background: #eaf7ef; border: 2px solid var(--c); box-shadow: 0 3px 0 rgba(0, 0, 0, .3); }
.mt-win i { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: var(--c); }
.mt-win u { position: absolute; top: 45%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 2px solid var(--c); }
.mt-win u::after { content: ""; position: absolute; inset: 28%; border-radius: 50%; background: #10203f; }
.mt-win u:first-of-type { left: 18%; } .mt-win u:last-of-type { right: 18%; }
.mt-fallen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; text-align: center; }
.mt-fallen p { margin: 0; font-size: 22px; font-weight: 900; color: #b6f23a; text-shadow: 0 0 18px rgba(182, 242, 58, .6); }
.mt-octo { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.mt-octo b { font-size: 70px; line-height: 1; }
.mt-juggle { position: absolute; inset: 0; animation: mtJuggle 2.4s linear infinite; }
.mt-juggle i { position: absolute; font-style: normal; font-size: 26px; }
.mt-juggle i:nth-child(1) { left: 44%; top: -6%; } .mt-juggle i:nth-child(2) { left: 2%; top: 58%; } .mt-juggle i:nth-child(3) { right: 2%; top: 58%; }
@keyframes mtJuggle { to { rotate: 360deg; } }
.mt-title { align-self: stretch; text-align: center; font-size: 17px; font-weight: 900; color: #7be3a6; }
.mt-cap { margin: 0; min-height: 22px; font-size: 16px; font-weight: 800; color: #b9bde8; text-align: center; }

@media (max-width: 760px) {
  .wall-main { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .wall-mtn { flex-direction: row; border-right: 0; border-bottom: 2px solid rgba(255, 255, 255, .1); padding: 10px 12px; }
  .mt-sky { min-height: 110px; }
  .mt-stack { --mt: 26px !important; }
  .wall-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; padding: 14px; }
  .wall-count { font-size: 15px; padding: 6px 12px; }
  .wall-title small { display: none; }
  .mt-title { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mt-juggle { animation: none; } }

/* кнопка «📺 Эфир» в шапке кабинета: на ноутбуке класса (1366) с ⬇️ и ⚔️ кнопкам тесно — подпись прячем, отступы меньше */
@media (max-width: 1500px) {
  #wall-btn span:not(.ico) { display: none; }
  .topbar .top-btn { padding-inline: 12px; gap: 6px; }
}
.mt-octo .mt-host img { width: 110px; height: 110px; object-fit: contain; }
.mt-fallen, .mt-juggle, .mt-octo { pointer-events: none; }

/* урок 12 «Любимые игры класса»: горы нет — карточки на всю ширину; «🎮 Я тоже играю» — зелёная */
.wall-games .wall-main { grid-template-columns: minmax(0, 1fr); }
.wall-games .wall-mtn { display: none; }
.wall-games .wall-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wall-tile .gmc { flex: 1; }
.wall-tile.mine .gmc { box-shadow: 0 0 0 4px #ffd23e, 0 10px 30px rgba(10, 14, 40, .45); }
.wall-tile.review .gmc { opacity: .55; filter: grayscale(.6); }
.wall-metoo .wh-ico { color: inherit; font-size: 24px; }
.wall-metoo:hover:not(:disabled) { background: rgba(182, 242, 58, .2); border-color: #b6f23a; }
.wall-metoo.on { background: #b6f23a; border-color: #b6f23a; color: #10203f; }
.wall-games .wall-got { background: rgba(182, 242, 58, .14); border-color: #b6f23a; }
.wall-games .wall-got b { color: #b6f23a; }
.wall-games .wall-tile.review .wall-got { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
