:root {
  color-scheme: light;
  --bg: #fbf7f0;
  --paper: #fffdf9;
  --ink: #2d2926;
  --muted: #736b62;
  --line: #eadfce;
  --rose: #a5524b;
  --rose-dark: #7b3f3b;
  --green: #496d63;
  --shadow: 0 18px 45px rgba(65, 45, 28, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.7;
  background:
    linear-gradient(135deg, rgba(165, 82, 75, 0.10), transparent 36%),
    linear-gradient(315deg, rgba(73, 109, 99, 0.13), transparent 34%),
    var(--bg);
}

.shell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.panel {
  margin: 0 0 18px;
  padding: clamp(22px, 5vw, 36px);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(234, 223, 206, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro {
  padding-top: clamp(30px, 8vw, 54px);
}

.eyebrow,
.disk-number {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 8vw, 3.55rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 5vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1.03rem;
  line-height: 1.35;
  letter-spacing: 0;
}

p,
small,
label,
li {
  color: var(--muted);
}

.hint-image,
video {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #efe6d9;
}

video {
  max-height: 72vh;
  box-shadow: 0 12px 28px rgba(45, 41, 38, 0.14);
}

.placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 24px;
  text-align: center;
  border: 1px dashed #d9c8b4;
  border-radius: 8px;
  background: #f7efe4;
}

.placeholder span {
  display: block;
  color: var(--rose-dark);
  font-weight: 700;
}

.placeholder small {
  display: block;
  margin-top: 6px;
}

.video-placeholder {
  min-height: 260px;
}

.unlock-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

label {
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  border: 1px solid #d8c7b4;
  border-radius: 8px;
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(165, 82, 75, 0.14);
}

button {
  min-height: 50px;
  padding: 12px 18px;
  color: #fffdf9;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 12px 24px rgba(123, 63, 59, 0.25);
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.message {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.error {
  color: #7b312f;
  background: #f7dfd9;
}

.feedback {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 14px 12px 32px;
  border-radius: 8px;
  background: #f8f0e6;
}

.disk-grid {
  display: grid;
  gap: 14px;
  margin: 22px 0 8px;
}

.disk-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf3;
}

.disk-card img,
.disk-missing {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 8px;
}

.disk-card img {
  object-fit: cover;
}

.disk-card p,
.disk-card small {
  margin-bottom: 0;
}

.target-song {
  margin-top: 8px;
  color: var(--ink);
}

.target-song strong {
  font-weight: 800;
}

.disk-missing {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  background: #ecede3;
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 18px, 760px);
    padding-top: 18px;
  }

  .panel {
    padding: 20px;
  }

  .disk-card {
    grid-template-columns: 78px 1fr;
  }

  .disk-card img,
  .disk-missing {
    width: 78px;
  }
}
