html, body { margin: 0; padding: 0; }
body {
  box-sizing: border-box;
  padding: 12px;
  font-family: Arial, sans-serif;
  color: #222;
}
h1 { font-size: clamp(20px, 4vw, 32px); margin: 0 0 12px; }
.container-fluid { width: 100%; max-width: 900px; margin: 0 auto; }
#myCanvas { width: 100%; }
#lsCanvas {
  display: block;
  width: 100%;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.row { width: 100%; box-sizing: border-box; margin-bottom: 16px; }
.label { font-weight: bold; margin-bottom: 6px; display: block; }

select, input[type="text"], textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  background: #fff;
}
select { width: 100%; max-width: 360px; }
input[type="text"] { width: 100%; }
textarea {
  width: 100%;
  min-height: 110px;
  font-family: Menlo, Consolas, monospace;
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.slider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px 18px;
}
.slider-row .value {
  font-family: Menlo, Consolas, monospace;
  color: #444;
  font-weight: bold;
  margin-left: 6px;
}

button {
  background: #4a78d8;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}
button.secondary {
  background: #eee;
  color: #222;
  border: 1px solid #ccc;
}
button:hover { filter: brightness(0.95); }

.info {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}
.hint {
  background: #f5f5f7;
  border: 1px solid #e0e0e6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.6;
}
code { background: #ececf0; padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }

.button-row { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.rules-hint { font-weight: normal; color: #666; font-size: 12px; }
