:root {
  --bg: #f4ecd8;
  --paper: rgba(255, 255, 255, 0.75);
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --accent: #c89b3c;
  --shadow: 0 12px 35px rgba(0,0,0,0.12);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at top, #fff, var(--bg));
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 30px 14px;
}

.book {
  width: 100%;
  max-width: 520px;
  background: var(--paper);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
}

/* HEADER */

.header {
  text-align: center;
}

.header h1 {
  margin: 8px 0 4px;
  font-size: 30px;
  letter-spacing: 1px;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stars {
  color: var(--accent);
  font-size: 14px;
}

/* FRASE */

.quote {
  margin: 22px 0;
  text-align: center;
  font-style: italic;
  color: #444;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(200,155,60,0.08);
  border-radius: 10px;
}

/* PLAYER */

.player {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

audio {
  width: 100%;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* CAPÍTULOS */

.chapters h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--muted);
}

.chapter {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}

.chapter:hover {
  background: rgba(0,0,0,0.05);
}

.active {
  background: rgba(200,155,60,0.18);
  border-left: 3px solid var(--accent);
}

/* FOOTER */

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.hidden {
  display:none;
}


.lock {

min-height:100vh;

display:flex;

align-items:center;

justify-content:center;

padding:20px;

}



.lock-card {


width:100%;

max-width:400px;

background:var(--paper);

padding:30px;

border-radius:20px;

box-shadow:var(--shadow);

text-align:center;


}



.lock-card h1 {

margin-top:10px;

}



.lock-card input {


width:100%;

box-sizing:border-box;

padding:12px;

border-radius:12px;

border:1px solid #ddd;

margin:15px 0;

font-size:16px;


}



.lock-card button {


width:100%;


}



.hint {


font-style:italic;

color:var(--muted);

margin-top:20px;


}



#error {


color:#a33;

font-size:14px;

}