*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --page-bg: #4a1456;
  --card-bg-top: #211d44;
  --card-bg-bottom: #1a1736;
  --card-border: rgba(204, 170, 255, 0.14);
  --text-main: #f5ede3;
  --text-soft: #efe3d8;
  --text-muted: #cabbd8;
  --button-bg: #d4b6ff;
  --button-text: #2d2146;
  --soft-panel: rgba(96, 88, 134, 0.26);
  --soft-border: rgba(255, 255, 255, 0.08);
  --glow: 0 0 26px rgba(212, 182, 255, 0.34);
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: Georgia, serif;
}

.shadow-tool {
  max-width: 780px;
  margin: 0 auto;
  padding: 34px 26px 24px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card-bg-top) 0%, var(--card-bg-bottom) 100%);
  border: 1px solid var(--card-border);
  text-align: center;
}

.icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.shadow-tool h2 {
  margin: 0 0 14px;
  font-size: 2rem;
}

.tool-intro {
  margin: 0 auto 22px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-soft);
}

button {
  border: none;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  cursor: pointer;
}

#startButton,
#nextButton,
#restartButton {
  background: var(--button-bg);
  color: var(--button-text);
}

.secondary-button {
  background: transparent;
  color: var(--text-soft);
  border: 1px solid rgba(255,255,255,0.2);
}

.prompt-box,
.result-box {
  background: var(--soft-panel);
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
}

#responseInput {
  width: 100%;
  min-height: 120px;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}

.hidden {
  display: none;
}