/* Игра «Банда-миллионер» (js/millionaire.js). Крупно и просто — аудитория в возрасте. */

/* ── Кнопка входа на главной ─────────────────────────────────────────────── */
.mil-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 90, 0.55);
  background: linear-gradient(135deg, #1b1446 0%, #2a1a5e 55%, #3b2a08 100%);
  color: #fff;
  text-align: left;
  box-shadow: 0 0 22px rgba(255, 196, 0, 0.18);
}
.mil-entry[hidden] { display: none; }
.mil-entry-icon { font-size: 38px; line-height: 1; }
.mil-entry-txt { flex: 1; min-width: 0; }
.mil-entry-txt strong { display: block; font-size: 20px; letter-spacing: .02em; color: #ffd65a; }
.mil-entry-sub { display: block; font-size: 14px; color: #d6d0f5; margin-top: 3px; }
.mil-entry-go { font-size: 26px; color: #ffd65a; }
.mil-entry.is-waiting { opacity: .7; filter: saturate(.5); border-color: rgba(255, 255, 255, .15); box-shadow: none; }
.mil-entry.is-waiting .mil-entry-go { visibility: hidden; }

/* ── Экран игры ─────────────────────────────────────────────────────────── */
.mil-ov {
  background: radial-gradient(120% 70% at 50% 0%, #1e1a5c 0%, #0b0a24 60%, #06051a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(8px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
}
.mil-ov[hidden] { display: none; }
body.mil-open .bottom-nav { display: none; }
.mil-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mil-exit {
  border: 0; border-radius: 999px; padding: 9px 16px;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 16px; font-weight: 600;
}
.mil-title { font-size: 20px; font-weight: 800; color: #ffd65a; }

.mil-top { display: flex; gap: 10px; flex: 1; min-height: 0; }
.mil-top[hidden] { display: none; }
.mil-stage {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
}
.mil-stage[hidden] { display: none; }
.mil-speaker {
  width: 110px; height: 110px; border-radius: 50%;
  display: grid; place-items: center; font-size: 52px;
  background: radial-gradient(circle, #3b3fd8 0%, #1d1f7a 70%);
  box-shadow: 0 0 0 4px rgba(120, 140, 255, .25);
}
.mil-speaker.is-talking { animation: milPulse 1s ease-in-out infinite; }
@keyframes milPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(120, 140, 255, .25); transform: scale(1); }
  50% { box-shadow: 0 0 0 16px rgba(120, 140, 255, .08); transform: scale(1.05); }
}
.mil-status { font-size: 19px; font-weight: 600; color: #d6d0f5; min-height: 24px; }
.mil-timer {
  font-size: 76px; font-weight: 900; line-height: 1; color: #ffd65a;
  text-shadow: 0 0 22px rgba(255, 214, 90, .55);
}
.mil-timer[hidden] { display: none; }
.mil-timer.is-low { color: #ff5a5a; text-shadow: 0 0 22px rgba(255, 80, 80, .6); }
.mil-replay {
  border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff;
  border-radius: 999px; padding: 10px 18px; font-size: 16px;
}
.mil-replay[hidden] { display: none; }

/* Лестница выигрыша — справа, всегда на виду. */
.mil-ladder {
  list-style: none; margin: 0; padding: 4px;
  width: 118px; flex: 0 0 118px;
  overflow-y: auto;
  border-radius: 14px; background: rgba(0, 0, 0, .3);
}
.mil-step {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 8px; border-radius: 8px; font-size: 15px; color: #bfb8e8;
}
.mil-n { opacity: .6; font-size: 13px; }
.mil-p { font-weight: 700; }
.mil-step.is-done { color: #7f78a8; }
.mil-step.is-safe { color: #ffd65a; }
.mil-step.is-safe .mil-p::after { content: " ★"; }
.mil-step.is-cur {
  background: linear-gradient(90deg, #ffb300, #ffd65a);
  color: #1b1446;
  box-shadow: 0 0 12px rgba(255, 196, 0, .6);
}
.mil-step.is-cur .mil-n { opacity: 1; }

/* 4 ответа — синие плашки. */
.mil-answers { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 10px; }
.mil-answers[hidden] { display: none; }
.mil-ans {
  display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 16px;
  border-radius: 30px;
  border: 2px solid #5c8bff;
  background: linear-gradient(180deg, #1c3fa8 0%, #122a78 100%);
  color: #fff; font-size: 19px; font-weight: 600; text-align: left;
}
.mil-ans b { color: #ffd65a; font-size: 18px; }
.mil-ans:disabled { opacity: 1; }
.mil-ans.is-picked { border-color: #ffd65a; background: linear-gradient(180deg, #a07400, #6b4d00); }
.mil-ans.is-right { animation: milRight .3s ease-in-out 4; background: linear-gradient(180deg, #1f9d4c, #0f6b31); border-color: #5dff9a; }
.mil-ans.is-wrong { animation: milWrong .3s ease-in-out 4; background: linear-gradient(180deg, #b3261e, #7a1510); border-color: #ff8080; }
.mil-ans.is-right-show { background: linear-gradient(180deg, #1f9d4c, #0f6b31); border-color: #5dff9a; }
@keyframes milRight { 50% { filter: brightness(1.6); } }
@keyframes milWrong { 50% { filter: brightness(1.7); } }

/* Панель: старт / итог. */
.mil-panel { margin-top: 10px; text-align: center; }
.mil-panel[hidden] { display: none; }
.mil-lead { font-size: 18px; line-height: 1.45; color: #e2ddff; margin: 0 0 12px; }
.mil-note { font-size: 16px; color: #ffd65a; margin: 0 0 12px; }
.mil-won { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.mil-won-sum { font-size: 44px; font-weight: 900; color: #ffd65a; text-shadow: 0 0 20px rgba(255, 214, 90, .5); margin-bottom: 14px; }
.mil-panel-btns { display: flex; flex-direction: column; gap: 10px; }
.mil-big {
  width: 100%; padding: 16px; border: 0; border-radius: 16px;
  background: linear-gradient(180deg, #ffd65a, #ffb300); color: #1b1446;
  font-size: 20px; font-weight: 800;
}
.mil-big.is-ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.mil-big:disabled { opacity: .6; }

/* ── Супер-игра: колесо фортуны, неон/киберпанк ─────────────────────────── */
.mil-super {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding-top: 6px; text-align: center;
  background: radial-gradient(90% 60% at 50% 40%, rgba(176, 38, 255, .25), transparent 70%);
}
.mil-super[hidden] { display: none; }
.mil-sup-title {
  font-size: 30px; font-weight: 900; letter-spacing: .06em;
  color: #00f0ff; text-shadow: 0 0 8px #00f0ff, 0 0 22px #ff2bd6;
}
.mil-sup-sub { font-size: 17px; color: #e2ddff; }
.mil-w-wrap { position: relative; width: min(82vw, 330px); aspect-ratio: 1; }
.mil-w-ptr {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent;
  border-top: 30px solid #ffe600; filter: drop-shadow(0 0 8px #ffe600);
}
.mil-wheel {
  position: absolute; inset: 0; border-radius: 50%;
  border: 6px solid #0b0a24;
  box-shadow: 0 0 0 3px #00f0ff, 0 0 26px #00f0ff, 0 0 60px #ff2bd6, inset 0 0 30px rgba(0, 0, 0, .55);
}
.mil-w-lbl { position: absolute; inset: 0; display: flex; justify-content: center; pointer-events: none; }
.mil-w-lbl span {
  margin-top: 16px; font-size: 18px; font-weight: 900; color: #fff;
  text-shadow: 0 0 6px #000, 0 0 12px rgba(0, 0, 0, .8);
}
.mil-w-hub {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-items: center;
  background: #0b0a24; color: #ffe600; font-size: 30px;
  box-shadow: 0 0 0 3px #ff2bd6, 0 0 20px #ff2bd6;
}
.mil-spin { max-width: 320px; }
.mil-sup-res { width: 100%; max-width: 360px; }
.mil-sup-res[hidden] { display: none; }
