:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #666666;
  --line: #e2ded7;
  --accent: #ff4d00;
  --accent-disabled: #ffbca8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.logo-text {
  background-color: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
}

.music-player {
  margin-left: auto;
}

.music-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: #545454;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.music-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.stage-wrap {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stage {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1/1;
  background-color: #eee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  position: relative;
}

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

.hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.panel {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step {
  background: var(--surface);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
}

.step h2 {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.step h2 span {
  background: var(--ink);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.range {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.range input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

.row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn.primary {
  width: 100%;
  padding: 12px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}

.btn.primary:hover:not(:disabled) {
  background-color: #e04400;
}

.btn.primary:disabled {
  background-color: var(--accent-disabled);
  cursor: not-allowed;
}

.btn.small {
  padding: 8px;
  background: #f0ede6;
  color: var(--ink);
  font-size: 0.8rem;
}

.btn.small.wide {
  flex: 1;
}

.btn.small:hover:not(:disabled) {
  background: #e2ded7;
}


.ig-link-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  color: #545454; 
  text-decoration: none;
  font-size: 0.75rem; 
  font-weight: 500;
  transition: color 0.2s;
}

.ig-link-inline:hover {
  color: var(--ink);
  text-decoration: underline;
}
