* { box-sizing: border-box; }
html { margin: 0; background: #0b0d1d; }
body { margin: 0; font-family: Montserrat, Arial, sans-serif; color: #fff; min-height: 100vh;
  background: #0b0d1d radial-gradient(circle at 30% 0, #2b3260 0, #161a35 600px, #0b0d1d 1200px) no-repeat; }
main { max-width: 1160px; margin: 0 auto; padding: 24px 20px 48px; }
header h1 { font-size: 52px; font-weight: 900; margin: 0; line-height: 1.05; }
.hl { color: #ff6b8b; }
.lead { color: #ffd84d; font-weight: 800; font-size: 21px; margin: 10px 0 20px; }
.wrap { display: flex; gap: 24px; align-items: flex-start; }
.stage { flex: 1 1 auto; min-width: 0; position: sticky; top: 0; z-index: 2; padding: 8px 0; }
#counter { width: 100%; border-radius: 16px; background: rgba(255, 255, 255, 0.04); }
#counter iframe { display: block; border: 0; width: 100%; background: transparent; }
.panel { flex: 0 0 360px; background: rgba(255, 255, 255, 0.06); border-radius: 18px; padding: 16px; }
.panel h2, .about h2 { font-size: 18px; margin: 4px 0 10px; }
.chat { display: flex; gap: 8px; margin: 0 0 6px; }
.chat input { flex: 1 1 auto; min-width: 0; font: 600 16px Montserrat, Arial, sans-serif; padding: 9px 12px; border-radius: 12px; border: 0; }
.chat button, .buttons button { font: 700 15px/1.25 Montserrat, Arial, sans-serif; color: #fff; cursor: pointer; border: 0; border-radius: 22px;
  padding: 10px 16px; background: #4b5bd6; box-shadow: 0 4px 0 #2e3a9e; }
.chat button:active, .buttons button:active { transform: translateY(3px); box-shadow: 0 1px 0 #2e3a9e; }
.hint { color: #b8bfdc; font-size: 14px; margin: 0 0 16px; }
.buttons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.buttons button { text-align: left; }
.buttons button.reset { background: #3a3f57; box-shadow: 0 4px 0 #22263a; }
label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; margin: 8px 0 18px; }
select { font: 600 15px Montserrat, Arial, sans-serif; padding: 6px 8px; border-radius: 8px; border: 0; max-width: 230px; }
.log { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: #dfe3f5; min-height: 22px; }
.log li { margin: 0 0 4px; }
.log .yes { color: #6fe0b5; font-weight: 800; }
.log .no { color: #ff9aa9; font-weight: 800; }
.about { margin-top: 28px; max-width: 760px; line-height: 1.55; font-size: 16px; }
.about p { margin: 0 0 10px; }
.small { color: #b8bfdc; font-size: 14px; }
@media (max-width: 900px) {
  main { padding: 16px 12px 40px; }
  header h1 { font-size: 36px; }
  .lead { font-size: 18px; }
  .wrap { flex-direction: column; align-items: stretch; }
  .stage { width: 100%; background: #0b0d1d; padding: 6px 0 8px; }
  .panel { flex: none; width: 100%; }
}
