/* ── MAIN ── */
main {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 100px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #888;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.15s;
}
.back-link:hover { color: #1a1a1a; }

.game-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
}
.game-subtitle {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 32px;
  font-weight: 600;
}

/* ── VOLUME DISPLAY ── */
.vol-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.vol-number {
  font-size: 7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -4px;
  transition: color 0.4s ease;
}
.vol-pct {
  font-size: 2.8rem;
  font-weight: 800;
  color: #aaa;
}
.vol-bar-wrap {
  width: 100%;
  height: 14px;
  background: #eee;
  border-radius: 99px;
  border: 2.5px solid #1a1a1a;
  overflow: hidden;
  margin-bottom: 10px;
}
.vol-bar {
  height: 100%;
  background: #1a1a1a;
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}
.vol-info {
  font-size: 0.9rem;
  color: #999;
  font-weight: 700;
  margin-bottom: 24px;
  min-height: 1.4em;
}

/* ── CANVAS ── */
.canvas-wrap {
  border: 3px solid #1a1a1a;
  border-radius: 18px;
  overflow: hidden;
  display: inline-block;
  background: #f5f5f5;
  box-shadow: 6px 6px 0 #1a1a1a;
}
#confettiCanvas { display: block; cursor: crosshair; }

.result-msg {
  margin-top: 22px;
  font-size: 1.6rem;
  font-weight: 900;
  min-height: 2.4rem;
  letter-spacing: -0.5px;
}
.result-msg.pos  { color: #16a34a; }
.result-msg.mid  { color: #d97706; }
.result-msg.neg  { color: #dc2626; }
