* { box-sizing: border-box; }
html { margin: 0; background: #0b0d1d; }
body { margin: 0; }
body { 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: 1120px; margin: 0 auto; padding: 24px 20px 48px; }
header h1 { font-size: 56px; font-weight: 900; margin: 0; line-height: 1; }
.hl { color: #ff4d7a; }
.lead { color: #ffd84d; font-weight: 800; font-size: 22px; margin: 10px 0 20px; }
.wrap { display: flex; gap: 24px; align-items: flex-start; }
.stage { flex: 1 1 auto; min-width: 0; }
#board { width: 100%; max-width: 640px; }
#board iframe { display: block; border: 0; width: 100%; background: transparent; }
.panel { flex: 0 0 340px; background: rgba(255, 255, 255, 0.06); border-radius: 18px; padding: 16px; }
.panel h2, .about h2 { font-size: 18px; margin: 4px 0 10px; }
.panel h2 + .buttons { margin-bottom: 18px; }
.buttons { display: flex; flex-direction: column; gap: 8px; }
.buttons button { font: 700 15px/1.25 Montserrat, Arial, sans-serif; color: #fff; text-align: left; cursor: pointer; border: 0; border-radius: 22px;
  padding: 10px 16px; background: #4b5bd6; box-shadow: 0 4px 0 #2e3a9e; }
.buttons button:active { transform: translateY(3px); box-shadow: 0 1px 0 #2e3a9e; }
.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; }
select { font: 600 15px Montserrat, Arial, sans-serif; padding: 6px 8px; border-radius: 8px; border: 0; max-width: 220px; }
.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: 760px) {
  main { padding: 16px 12px 40px; }
  header h1 { font-size: 40px; }
  .lead { font-size: 18px; }
  .wrap { flex-direction: column; align-items: stretch; }
  .stage { width: 100%; }
  .panel { flex: none; width: 100%; }
}
