:root {
  --paper: #fff4e3;
  --card: #fffaf1;
  --ink: #2b1b12;
  --muted: #7a5840;
  --tiger: #e26a12;
  --tiger-dark: #b84b08;
  --gold: #ffd56a;
  --leaf: #2f7d4a;
  --shadow: 0 10px 24px rgba(84, 42, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 8%, #ffe7bf 0 18%, transparent 19%),
    radial-gradient(circle at 88% 0%, #ffd9a3 0 14%, transparent 15%),
    repeating-linear-gradient(-18deg, transparent 0 28px, rgba(226, 106, 18, 0.05) 28px 32px),
    var(--paper);
  color: var(--ink);
  font-family: Nunito, ui-rounded, sans-serif;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}

.hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.tiger svg {
  display: block;
  filter: drop-shadow(0 8px 0 rgba(184, 75, 8, 0.18));
}

.eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--tiger-dark);
}

h1 {
  margin: 0;
  font-family: Fredoka, ui-rounded, sans-serif;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 0.95;
}

.lede {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.controls {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.slider {
  display: grid;
  gap: 8px;
  padding: 12px 16px 14px;
  border-radius: 18px;
  background: #ffe3c2;
  box-shadow: inset 0 0 0 3px rgba(43, 27, 18, 0.08);
}

.slider span {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  color: var(--muted);
}

.slider strong {
  color: var(--ink);
  font-family: Fredoka, sans-serif;
  font-size: 20px;
}

.slider input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  background: transparent;
}

.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: #fff7ea;
  box-shadow: inset 0 0 0 2px rgba(43, 27, 18, 0.08);
}

.slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tiger);
  box-shadow: 0 4px 0 var(--tiger-dark);
  cursor: pointer;
}

.slider input[type="range"]::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: #fff7ea;
}

.slider input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--tiger);
  box-shadow: 0 4px 0 var(--tiger-dark);
  cursor: pointer;
}

.play-all,
.line {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.play-all {
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  background: var(--leaf);
  color: white;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 6px 0 #1e5a34;
}

.play-all:active,
.line:active {
  transform: translateY(2px);
}

.play-all.is-playing {
  background: var(--tiger);
  box-shadow: 0 6px 0 var(--tiger-dark);
}

a.play-all {
  display: inline-grid;
  place-items: center;
  width: min(100%, 280px);
  text-decoration: none;
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.line {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
}

.num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffe0b0;
  font-family: Fredoka, sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.text {
  margin: 0;
  font-size: clamp(20px, 4.4vw, 28px);
  line-height: 1.35;
  font-weight: 800;
}

.t {
  color: var(--tiger-dark);
  background: linear-gradient(#ffefb0, #ffd56a);
  border-radius: 0.28em;
  padding: 0 0.12em;
  box-decoration-break: clone;
}

.icon {
  width: 28px;
  height: 28px;
  opacity: 0.35;
}

.icon.pause {
  display: none;
}

.line.is-playing,
.line.is-paused {
  background: #fff1d2;
  box-shadow: 0 0 0 4px #ffd56a, var(--shadow);
}

.line.is-playing .num,
.line.is-paused .num {
  background: var(--tiger);
  color: white;
}

.line.is-playing .icon,
.line.is-paused .icon {
  opacity: 1;
}

.line.is-playing .icon.play {
  display: none;
}

.line.is-playing .icon.pause {
  display: block;
  animation: pulse 0.9s ease-in-out infinite;
}

.line.is-paused .icon.pause {
  display: none;
}

.line.is-paused .icon.play {
  display: block;
}

.hint {
  margin: 18px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

@keyframes pulse {
  50% {
    transform: scale(1.12);
  }
}

@media (max-width: 560px) {
  .hero {
    align-items: flex-start;
  }

  .play-all {
    width: 100%;
  }
}
