
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 18px;
  background: #07111f;
  color: #e5efff;
  font-family: Arial, sans-serif;
}

.app {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
  background: #101e32;
  border: 1px solid #29415f;
  border-radius: 18px;
}

.brand {
  text-align: center;
  color: #38bdf8;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: bold;
}

h1 {
  color: white;
  text-align: center;
  margin: 14px 0;
  font-size: clamp(22px,3vw,30px);
}

.intro {
  text-align: center;
  color: #b8cbe1;
  line-height: 1.6;
}

.stage {
  position: relative;
  margin-top: 20px;
  background: #061525;
  border: 1px solid #34516c;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1000 / 480;
}

#scene3d,
#overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#scene3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

#overlay {
  pointer-events: none;
}

.gold {
  fill: #facc15;
  font-size: 21px;
  font-weight: bold;
}

.blue {
  fill: #38bdf8;
  font-size: 18px;
  font-weight: bold;
}

.guide {
  stroke: #facc15;
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0;
}

button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 9px;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
}

button:hover { background: #1d4ed8; }

#reset { background: #33465e; }
#toggle { background: #166d80; }

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label strong { color: #7dd3fc; }

input {
  width: 160px;
  accent-color: #38bdf8;
}

.note {
  background: #192f49;
  border-left: 4px solid #38bdf8;
  padding: 18px;
  border-radius: 9px;
  line-height: 1.7;
}

.note strong { color: #7dd3fc; }
.note p { margin-bottom: 0; }

footer {
  text-align: center;
  color: #8297b1;
  font-size: 12px;
  margin-top: 18px;
}

@media(max-width:600px) {
  body { padding: 5px; }
  .app { padding: 12px; }
  .controls { gap: 10px; }
}
