/* Spectator page: the personal (purple) side of the site */
.spectator li, .spectator .sp-meta, .spectator h2, .spectator h3 { text-align: left; }
.spectator h2 {
  margin: 2.2rem 0 0.8rem;
}

.sp-intro {
  max-width: 42rem;
}

.sp-note {
  font-size: 0.9rem;
  color: #6b6b66;
}

.sp-tag {
  font-size: 0.7rem;
  font-weight: 600;
  vertical-align: middle;
  padding: 0.15rem 0.5rem;
  border-radius: 1rem;
  background-color: #e5d8f7;
}

/* Films */
.sp-films {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1.2rem;
  max-width: 42rem;
}

.sp-film {
  position: relative;
  padding: 0.6rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 10px;
  background-color: #e5d8f7;
  transition: all 200ms;
}

.sp-film:hover {
  transform: translate(-5px, -5px) rotate(-1deg);
  box-shadow: 5px 5px #1c1c1c;
}

.sp-film img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background-color: #d5c8e7;
}

.sp-film h3 {
  margin-top: 0.5rem;
  text-align: left;
}

.sp-meta {
  font-size: 0.85rem;
  margin: 0;
}

.sp-rank {
  position: absolute;
  top: -0.8rem;
  left: -0.8rem;
  width: 2rem;
  height: 2rem;
  line-height: 1.8rem;
  text-align: center;
  font-weight: 700;
  border: 0.15rem solid #1c1c1c;
  border-radius: 50%;
  background-color: #fcd8d8;
  z-index: 1;
}

/* Ranked lists */
.sp-ranked,
.sp-words,
.sp-sky,
.sp-langs {
  list-style: none;
  max-width: 34rem;
  counter-reset: rank;
}

.sp-ranked li,
.sp-words li {
  counter-increment: rank;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.5rem 0.8rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  background-color: #e5d8f7;
  transition: background-color 0.2s, transform 0.2s;
}

.sp-ranked li::before,
.sp-words li::before {
  content: counter(rank);
  font-weight: 700;
  min-width: 1.2rem;
}

.sp-ranked li:hover,
.sp-words li:hover {
  background-color: #d5c8e7;
  transform: translateX(4px);
}

.sp-ranked li { display: block; }
.sp-ranked li::before { margin-right: 0.6rem; }

.sp-words .es {
  font-weight: 700;
  flex: 1;
}

.sp-words .en {
  font-style: italic;
  text-align: right;
}

/* Moments of the day, coloured like the sky at that time */
.sp-sky li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.8rem 1rem;
  margin-bottom: 0.4rem;
  border-radius: 8px;
  transition: transform 0.2s;
}

.sp-sky li:hover { transform: scale(1.02); }
.sp-sky span { font-size: 0.85rem; font-style: italic; }
.sp-sky .nautical { background: linear-gradient(90deg, #1f2a5a, #4b4f8c); color: #f1ecff; }
.sp-sky .civil { background: linear-gradient(90deg, #6f6aa8, #e7a6b8); color: #1c1c1c; }
.sp-sky .golden { background: linear-gradient(90deg, #f6c66b, #fde7b0); color: #1c1c1c; }

/* Languages */
.sp-langs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
}

.sp-langs b { min-width: 6rem; }
.sp-langs i { font-size: 0.85rem; }

.sp-langs .lvl {
  margin-left: auto;
  width: 10rem;
  height: 0.6rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, #b9a3e0 calc(var(--n) * 20%), #ece4f9 0);
}

.sp-credits {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: #6b6b66;
  text-align: left;
}

.sp-credits p { margin: 0 0 0.3rem; }
.sp-credits ul { margin: 0; padding-left: 1.1rem; }
.sp-credits li { margin-bottom: 0.15rem; }

@media only screen and (max-width:750px) {
  .sp-films { grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
  .sp-film { padding: 0.35rem; }
  .sp-film h3 { font-size: 0.85rem; }
  .sp-meta { font-size: 0.7rem; }
  .sp-rank { width: 1.6rem; height: 1.6rem; line-height: 1.4rem; font-size: 0.8rem; }
  .sp-langs i { white-space: nowrap; }
  .sp-langs .lvl { width: 5rem; }
}


/* Poets */
.sp-poets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 1rem;
  max-width: 42rem;
}

.sp-poet {
  position: relative;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.6rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 10px;
  background-color: #e5d8f7;
  text-decoration: none;
  color: #1c1c1c;
  transition: all 200ms;
}

.sp-poet:hover {
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px #1c1c1c;
  color: #1c1c1c !important;
  text-decoration: none;
}

.sp-poet img,
.sp-monogram {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 30%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1);
}

.sp-monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Vollkorn SC", serif;
  font-size: 1.4rem;
  font-weight: 700;
  background-color: #d5c8e7;
}

.sp-poet-txt {
  display: flex;
  flex-direction: column;
}

.sp-poet-txt * { text-align: left; }
.sp-go { font-size: 0.8rem; font-style: italic; }

/* Poem sheet */
.sp-sheet-bg {
  position: fixed;
  inset: 0;
  background: rgba(40, 20, 70, 0.25);
  z-index: 10;
}

.sp-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(36rem, 92vw);
  padding: 2rem 2rem 4rem;
  overflow-y: auto;
  background-color: #faf6ff;
  border-left: 0.2rem solid #1c1c1c;
  box-shadow: -6px 0 #e5d8f7;
  transform: translateX(105%);
  transition: transform 300ms ease;
  z-index: 11;
}

.sp-sheet.open { transform: translateX(0); }

.sp-close {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.sp-poem h2 { margin: 0.3rem 0 1.2rem; text-align: left; }
.sp-poem p { text-align: left; }
.sp-verses p { margin-bottom: 1rem; line-height: 1.7; }

.sp-bilingual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.sp-bilingual [lang="es"] {
  color: #6b5a8a;
  font-style: italic;
  border-left: 2px solid #e5d8f7;
  padding-left: 1rem;
}

@media only screen and (max-width:750px) {
  .sp-poets, .sp-artists { grid-template-columns: 1fr; }
  .sp-sheet { padding: 1.5rem 1.2rem 3rem; }
}

/* Two languages in one file: each text has a data-l="es" and a data-l="en" twin */
html[data-lang="es"] [data-l="en"],
html[data-lang="en"] [data-l="es"] {
  display: none !important;
}

.sp-langswitch {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  margin-bottom: 1rem;
}

.sp-langswitch button {
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border: 0.15rem solid #1c1c1c;
  background-color: #faf6ff;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sp-langswitch button:first-child { border-radius: 2rem 0 0 2rem; border-right: none; }
.sp-langswitch button:last-child { border-radius: 0 2rem 2rem 0; }
.sp-langswitch button:hover { background-color: #e5d8f7; }
.sp-langswitch button[aria-pressed="true"] { background-color: #b9a3e0; }

/* Books open an excerpt in the same sheet */
.sp-books a {
  display: inline;
  text-decoration: none;
  color: inherit;
}

.sp-books a:hover { color: inherit !important; text-decoration: none; }

.sp-quote {
  margin: 0 0 1.5rem;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 0.25rem solid #b9a3e0;
  font-size: 1.1rem;
  line-height: 1.7;
}

.sp-quote p { text-align: left; }

.sp-trans {
  font-size: 0.9rem;
  font-style: italic;
  color: #6b5a8a;
}

.sp-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.1rem;
  border: 0.15rem solid #1c1c1c;
  border-radius: 2rem;
  background-color: #e5d8f7;
  font-weight: 700;
  text-decoration: none;
}

/* Search */
.sp-search input {
  font: inherit;
  width: 100%;
  max-width: 34rem;
  padding: 0.55rem 1rem;
  border: 0.15rem solid #1c1c1c;
  border-radius: 2rem;
  background-color: #faf6ff;
  margin-bottom: 1rem;
}

.sp-search input:focus { outline: none; box-shadow: 3px 3px #b9a3e0; }
.sp-hide { display: none !important; }
.sp-noresults { color: #6b6b66; font-style: italic; }

/* Least favourite moment */
.sp-sky .hungry { background: repeating-linear-gradient(135deg, #d9d6cf 0 12px, #e8e5de 12px 24px); color: #1c1c1c; }

/* Artists (Spotify players, dark theme so they stay calm) */
.sp-player {
  display: block;
  width: 100%;
  height: 80px;
  border: none;
  border-radius: 12px;
}

.sp-artists {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  max-width: 42rem;
}

.sp-artist {
  position: relative;
  padding: 0.6rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 10px;
  background-color: #e5d8f7;
  transition: all 200ms;
}

.sp-artist:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px #1c1c1c; }

.sp-artist-head {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

/* Same size and shape as the poets' portraits, so the page keeps one rhythm */
.sp-artist-pic {
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: 30%;
  object-fit: cover;
}

.sp-chips {
  list-style: none;
  counter-reset: song;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.8rem 0;
}

.sp-chips button {
  counter-increment: song;
  font: inherit;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 0.1rem solid #1c1c1c;
  border-radius: 1rem;
  background-color: #faf6ff;
  cursor: pointer;
}

.sp-chips button::before { content: counter(song) ". "; font-weight: 700; }
.sp-chips button:hover { background-color: #d5c8e7; }
.sp-chips button[aria-pressed="true"] { background-color: #b9a3e0; font-weight: 700; }

/* Books as covers, opening a sheet with images */
.sp-book { text-decoration: none; color: #1c1c1c; display: block; }
.sp-book:hover { color: #1c1c1c !important; text-decoration: none; }
.sp-book img { filter: saturate(0.85); }

.sp-figure { margin: 0 0 1.2rem; }
.sp-hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.sp-hero {
  display: block;
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border-radius: 8px;
  border: 0.15rem solid #1c1c1c;
}

.sp-hero-pair .sp-hero { height: 16rem; filter: sepia(0.25); }

.sp-figure figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-style: italic;
  color: #6b5a8a;
  text-align: left;
}

/* Sayings: big, unfinished on purpose */
.sp-sayings { list-style: none; }

.sp-sayings li {
  font-family: "Vollkorn SC", serif;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: left;
  color: #4b3a6e;
}

.sp-player-tall { height: 152px; margin-top: 0.8rem; }

.sp-chip-link {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border: 0.1rem dashed #1c1c1c;
  border-radius: 1rem;
  background-color: #faf6ff;
  text-decoration: none;
}

/* Chapters: small labels that group the lists into a story */
.sp-chapter {
  margin: 3.5rem 0 -1rem;
  font-family: "Vollkorn SC", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #8a76b3;
  text-align: left;
  border-top: 0.1rem dashed #b9a3e0;
  padding-top: 0.6rem;
  max-width: 42rem;
}

/* Favourite vs least favourite moment, face to face */
.sp-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: start;
  max-width: 42rem;
}

.sp-duel-col h3 { font-size: 0.95rem; margin-bottom: 0.5rem; text-align: left; }
.sp-duel .sp-sky li { flex-direction: column; align-items: flex-start; gap: 0.1rem; min-height: 3.6rem; }
.sp-duel .sp-sky .hungry { min-height: calc(3 * 3.6rem + 2 * 0.4rem); justify-content: center; }

.sp-vs {
  align-self: center;
  font-family: "Vollkorn SC", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #8a76b3;
  transform: rotate(-8deg);
}

/* Countries by their shape */
.sp-countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 42rem;
}

.sp-country {
  position: relative;
  padding: 0.8rem 0.6rem 0.6rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 10px;
  background-color: #e5d8f7;
  text-align: center;
  transition: all 200ms;
}

.sp-country:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px #1c1c1c; }

.sp-country svg {
  display: block;
  width: 100%;
  height: 7rem;
  margin-bottom: 0.4rem;
}

.sp-country path {
  fill: #b9a3e0;
  stroke: #1c1c1c;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  transition: fill 200ms;
}

.sp-country:hover path { fill: #8a76b3; }
.sp-country h3 { font-size: 0.85rem; text-align: center; }

/* Recited poems */
.sp-video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0.5rem 0 1rem;
  border: 0.15rem solid #1c1c1c;
  border-radius: 8px;
  overflow: hidden;
}

.sp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media only screen and (max-width:750px) {
  .sp-duel { gap: 0.4rem; }
  .sp-duel .sp-sky li { padding: 0.6rem; font-size: 0.85rem; }
  .sp-vs { font-size: 1rem; }
  .sp-countries { gap: 0.6rem; }
  .sp-country svg { height: 5rem; }
  .sp-country h3 { font-size: 0.7rem; }
}

/* Empty slot among the least favourite moments: on purpose */
.sp-duel .sp-sky .hungry { min-height: 3.6rem; }
.sp-sky .sp-empty {
  min-height: 3.6rem;
  border: 0.15rem dashed #c9c5bc;
  background: transparent;
}

/* Poems: each verse whole on one line; the translation goes under it,
   smaller, and only when the page is in the other language */
.sp-lines {
  margin-bottom: 1rem;
  font-size: min(1.05rem, 4vw);
  line-height: 1.5;
  text-align: left;
}

.sp-lines span { display: block; white-space: nowrap; }
.sp-lines .sp-tr {
  white-space: normal;
  margin: 0 0 0.35rem 0.8rem;
  font-size: 0.8em;
  font-style: italic;
  line-height: 1.3;
  color: #7a6a99;
}
html[data-lang="es"] .sp-lines .sp-tr[lang="en"],
html[data-lang="en"] .sp-lines .sp-tr[lang="es"] { display: none; }
.sp-lines .sp-gap { height: 0.9rem; }
.sp-lines .sp-cut { color: #7a6a99; }
.sp-epi { margin-left: auto; width: fit-content; max-width: 100%; font-size: min(0.85rem, 3.3vw); font-style: italic; color: #4b3f5e; }
.sp-epi .sp-epi-by { margin-top: 0.3rem; text-align: right; font-style: normal; }

/* Stanzas: each line a bubble with its syllable count on top; same colour, same rhyme */
.sp-ranked.sp-stanzas { max-width: 42rem; }
.sp-ranked.sp-stanzas li { display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 0; column-gap: 0.2rem; }
.sp-ranked.sp-stanzas li::before { min-width: 1rem; align-self: center; }
.sp-stanzas .sp-meta { color: #6b5a8a; margin-left: 0.6rem; align-self: center; }
.sp-stanzas li > b { align-self: center; }
.sp-rhyme { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 0 auto; padding-left: 1rem; align-items: flex-end; }
.sp-stanza-wide .sp-rhyme { flex: 0 0 100%; margin: 0.5rem 0 0.1rem; padding-left: 1.8rem; box-sizing: border-box; }
.sp-rhyme-alex { gap: 0.9rem; }
.sp-alex { display: inline-flex; height: 1.3rem; border: 1px solid rgba(28, 28, 28, 0.25); border-radius: 1.3rem; background-color: var(--c); font-style: normal; }
.sp-alex > i { width: var(--h, 1.4rem); font-style: normal; font-size: 0.7rem; font-weight: 700; line-height: 1.2rem; text-align: center; color: #2b2b2b; }
.sp-alex > i:first-child { border-right: 2px dotted #6b5a8a; }
.sp-alex-lab { display: flex; flex-direction: column; align-items: center; min-height: 1.4rem; margin-top: 1px; font-size: 0.55rem; font-style: normal; line-height: 1.1; color: #6b5a8a; white-space: nowrap; }
.sp-ar { display: grid; grid-template-columns: 1fr; font-size: 0.7rem; line-height: 1; }
.sp-ar-2 { grid-template-columns: var(--h, 1.4rem) var(--h, 1.4rem); column-gap: 2px; }
.sp-ar i { font-style: normal; text-align: center; }
.sp-v { display: inline-flex; flex-direction: column; align-items: center; font-style: normal; }
.sp-v small { font-size: 0.55rem; line-height: 1; margin-bottom: 2px; color: #6b5a8a; }
.sp-r {
  display: inline-block; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  border: 1px solid rgba(28, 28, 28, 0.25);
  background-color: var(--c); color: #2b2b2b; font-style: normal; font-size: 0.7rem; font-weight: 700;
  line-height: 1.2rem; text-align: center;
}
.sp-r-s { width: 1.05rem; height: 1.05rem; line-height: 0.95rem; font-size: 0.62rem; }
.sp-r-xs { width: 0.8rem; height: 0.8rem; line-height: 0.7rem; font-size: 0.5rem; }
.sp-split { display: inline-flex; gap: 2px; font-style: normal; }
.sp-r-half-l { width: 0.75rem; border-radius: 1.3rem 0 0 1.3rem; text-align: right; padding-right: 1px; }
.sp-r-half-r { width: 0.75rem; border-radius: 0 1.3rem 1.3rem 0; text-align: left; padding-left: 1px; }
.sp-gap-s { display: inline-block; width: 0.5rem; }
.sp-more { font-style: normal; color: #6b5a8a; font-weight: 700; padding: 0 0.2rem; }

/* Cities: a ranked list of framed cards; number, photo, then name and country to the right */
.sp-cities { display: flex; flex-direction: column; gap: 0.8rem; max-width: 36rem; }
.sp-city {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem 11rem 1fr;
  grid-template-areas: "r i n" "r i m";
  column-gap: 1rem;
  align-items: center;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 0.2rem solid #1c1c1c; border-radius: 12px; background-color: #e5d8f7;
  transition: all 200ms;
}
.sp-city:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px #1c1c1c; }
.sp-city .sp-rank { grid-area: r; position: static; width: 2.4rem; height: 2.4rem; line-height: 2.1rem; font-size: 1.2rem; }
.sp-city img { grid-area: i; display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background-color: #d5c8e7; }
.sp-city h3 { grid-area: n; align-self: end; margin: 0; font-size: 1.3rem; text-align: left; }
.sp-city .sp-meta { grid-area: m; align-self: start; margin: 0.15rem 0 0; text-align: left; }
.sp-cities-wish { max-width: 30rem; gap: 0.6rem; }
.sp-city-wish { grid-template-columns: 2rem 7rem 1fr; border-style: dashed; background-color: #f3ecfc; }
.sp-city-wish .sp-rank { width: 2rem; height: 2rem; line-height: 1.7rem; font-size: 1rem; }
.sp-city-wish h3 { font-size: 1.1rem; }

/* Copyright warning under the fragments, with a sad face (one day, a photo) */
.sp-warning {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 0.8rem 1rem;
  border: 0.15rem dashed #6b5a8a;
  border-radius: 10px;
  background-color: #f3ecfc;
  text-align: left;
  font-size: 0.88rem;
  color: #3d3350;
}
.sp-warning p { margin: 0; text-align: left; }
.sp-warning b { display: block; margin-bottom: 0.2rem; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.75rem; color: #6b5a8a; }
.sp-warning-face { flex: none; font-size: 2rem; line-height: 1; filter: grayscale(0.3); }

/* Series: posters, two big and the rest small, two per row */
.sp-series-big,
.sp-series-small {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
}

.sp-series-big { grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
.sp-series-small { grid-template-columns: repeat(2, 1fr); }

.sp-show {
  position: relative;
  padding: 0.6rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 10px;
  background-color: #e5d8f7;
  transition: all 200ms;
}

.sp-show:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px #1c1c1c; }

.sp-show { display: flex; gap: 0.8rem; align-items: flex-start; }
.sp-show .sp-poster {
  flex: none;
  width: 7rem;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  background-color: #d5c8e7;
}
.sp-show-small .sp-poster { width: 4rem; }
.sp-show-txt { min-width: 0; text-align: left; }
.sp-show-txt h3 { margin: 0.1rem 0 0.3rem; text-align: left; }
.sp-show-small h3 { font-size: 0.95rem; }
.sp-show-note { font-size: 0.85rem; margin: 0.4rem 0 0; text-align: left; }

/* Songs of my life: a line with a dot per song, oldest first; thin rows */
.sp-timeline {
  list-style: none;
  max-width: 42rem;
  margin: 0;
  padding: 0 0 0 1.2rem;
  border-left: 0.2rem solid #1c1c1c;
}

.sp-timeline li {
  position: relative;
  margin-bottom: 0.45rem;
  text-align: left;
}

.sp-timeline li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.95rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 0.2rem solid #1c1c1c;
  border-radius: 50%;
  background-color: #e5d8f7;
  box-sizing: border-box;
}

.sp-song {
  display: grid;
  grid-template-columns: 8.5rem 2.4rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: none;
  border-radius: 8px;
  background-color: #282828;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms;
}

.sp-song:hover, .sp-song[aria-expanded="true"] { background-color: #3a3a3a; }
.sp-song img { width: 2.4rem; height: 2.4rem; border-radius: 4px; object-fit: cover; }
.sp-when { display: flex; flex-direction: column; line-height: 1.15; font-size: 0.85rem; text-align: left; }
.sp-when small { color: #b9a8dc; font-size: 0.72rem; text-align: left; }
.sp-song-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.sp-song-txt b, .sp-song-txt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-song-txt b { font-size: 0.92rem; }
.sp-song-txt span { font-size: 0.78rem; color: #b3b3b3; }
.sp-play {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background-color: #fff;
  color: #1c1c1c;
  font-size: 0.75rem;
  line-height: 1.8rem;
  text-align: center;
}
.sp-song[aria-expanded="true"] .sp-play { background-color: #1ed760; }
.sp-timeline .sp-player { margin-top: 0.3rem; }

@media only screen and (max-width:750px) {
  .sp-series-big { grid-template-columns: 1fr; }
  .sp-series-small { gap: 0.6rem; }
  .sp-series-small { grid-template-columns: 1fr; }
  .sp-show-small .sp-poster { width: 3.5rem; }
  .sp-song { grid-template-columns: 2.2rem 1fr auto; gap: 0.15rem 0.6rem; padding-left: 0.5rem; }
  .sp-when { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 0.4rem; }
  .sp-timeline li::before { top: 0.35rem; }
  .sp-song img { width: 2.2rem; height: 2.2rem; }
  .sp-city { grid-template-columns: 2rem 7.5rem 1fr; column-gap: 0.7rem; padding: 0.45rem 0.7rem 0.45rem 0.45rem; }
  .sp-city .sp-rank { width: 2rem; height: 2rem; line-height: 1.7rem; font-size: 1rem; }
  .sp-city h3 { font-size: 1.05rem; }
  .sp-city-wish { grid-template-columns: 1.8rem 5.5rem 1fr; }
  .sp-city-wish .sp-rank { width: 1.8rem; height: 1.8rem; line-height: 1.5rem; font-size: 0.9rem; }
  .sp-city-wish h3 { font-size: 0.95rem; }
  .sp-rhyme, .sp-stanza-wide .sp-rhyme { flex: 0 0 100%; margin: 0.4rem 0 0; padding-left: 1.2rem; gap: 2px; box-sizing: border-box; }
  .sp-rhyme-alex, .sp-stanza-wide .sp-rhyme-alex { gap: 0.5rem; }
  .sp-rhyme-alex { --h: 1.1rem; }
  .sp-r { width: 1.1rem; height: 1.1rem; line-height: 1rem; font-size: 0.6rem; }
  .sp-r-s { width: 0.9rem; height: 0.9rem; line-height: 0.8rem; font-size: 0.55rem; }
  .sp-r-xs { width: 0.7rem; height: 0.7rem; line-height: 0.6rem; font-size: 0.45rem; }
  .sp-r-half-l, .sp-r-half-r { width: 0.62rem; }
  .sp-gap-s { width: 0.3rem; }
}

/* Recordatorios: goals as cards with a big adjective */
.rc-state { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.55rem; border: 0.15rem solid #2e8b57; border-radius: 999px; color: #2e8b57; font-size: 0.75rem; font-weight: 700; vertical-align: middle; }
.rc-goals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 42rem; }
.rc-goal { position: relative; padding: 1rem 1.1rem 0.9rem; border: 0.2rem solid #1c1c1c; border-radius: 14px; background-color: #e5d8f7; transition: all 200ms; }
.rc-goal:nth-child(2) { background-color: #fcd8d8; }
.rc-goal:nth-child(3) { background-color: #c4e6cc; }
.rc-goal:nth-child(4) { background-color: #fde7b0; }
.rc-goal:hover { transform: translate(-4px, -4px) rotate(-0.6deg); box-shadow: 4px 4px #1c1c1c; }
.rc-goal h3 { font-size: 1.6rem; margin: 0.2rem 0 0.4rem; text-align: left; }
.rc-goal p { margin: 0; font-size: 0.92rem; text-align: left; }
@media only screen and (max-width:750px) { .rc-goals { grid-template-columns: 1fr; } }
.rc-intro { margin: 1.8rem 0 -0.5rem; font-style: italic; }

/* Para mí: after the credits the whole background turns dark green, down to the end of the page */
.rc-night {
  margin-top: 7rem;
  padding: 3rem 0 2rem;
  background-color: #1f3d2c;
  box-shadow: 0 0 0 100vmax #1f3d2c;
  clip-path: inset(0 -100vmax -100vmax -100vmax);
  color: #e9f3ea;
}
.rc-title { color: #f1fcee; font-family: "Vollkorn SC", serif; letter-spacing: 0.04em; }
.rc-warning {
  max-width: 34rem;
  margin: 1rem 0 1.5rem;
  padding: 0.8rem 1rem;
  border: 0.15rem dashed #f7d59c;
  border-radius: 10px;
  color: #f7e7c4;
  text-align: left;
}
.rc-warning b { display: block; margin-bottom: 0.2rem; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; color: #f7d59c; }
.rc-warning p { margin: 0; font-size: 0.95rem; text-align: left; }
.rc-night .rc-intro, .rc-night .sp-note { color: #b7cfbd; }
.rc-night h2 { color: #f1fcee; }
.rc-night .rc-state { border-color: #9fdcb0; color: #9fdcb0; }
.rc-night .rc-goal { border-color: #0f1f16; color: #1c1c1c; }
.rc-night .rc-goal:hover { box-shadow: 4px 4px #0f1f16; }
.rc-night .sp-rank { border-color: #0f1f16; }
.rc-night .sp-ranked li { border-color: #0f1f16; color: #1c1c1c; }
.rc-night .sp-ranked li:hover { box-shadow: 4px 4px #0f1f16; }
@media only screen and (max-width:750px) {
  .sp-artists { grid-template-columns: 1fr; }
  .sp-artist { min-width: 0; }
}

/* Stanzas, compact: number | name with its note right beside it | drawing. One line per stanza on
   the computer; on the phone the drawing goes underneath, but the note never takes a line of its own */
.sp-ranked.sp-stanzas { width: fit-content; max-width: 100%; }
.sp-ranked.sp-stanzas li {
  display: grid;
  grid-template-columns: 1rem auto 1fr auto;
  grid-template-areas: "n name meta rhyme";
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0;
}
.sp-ranked.sp-stanzas li::before { grid-area: n; align-self: center; }
.sp-stanzas li > b { grid-area: name; align-self: center; white-space: nowrap; }
.sp-stanzas .sp-meta { grid-area: meta; align-self: center; margin: 0; font-size: 0.78rem; line-height: 1.25; }
.sp-stanzas .sp-rhyme, .sp-stanza-wide .sp-rhyme { grid-area: rhyme; margin: 0 0 0 0.8rem; padding: 0; flex: none; }
@media only screen and (max-width:750px) {
  .sp-ranked.sp-stanzas { width: auto; }
  .sp-ranked.sp-stanzas li { grid-template-columns: 1rem auto 1fr; grid-template-areas: "n name meta" "n rhyme rhyme"; column-gap: 0.5rem; }
  .sp-stanzas .sp-rhyme, .sp-stanza-wide .sp-rhyme { margin: 0.3rem 0 0; }
}

/* ── Phone: made for the thumb ──────────────────────────────────────────
   More width for the content, and card lists become rows you swipe through
   sideways, one card at a time, with dots underneath; the page itself only
   scrolls down. */
@media only screen and (max-width:750px) {
  .mainbody.spectator { padding: 2rem 1rem 3rem; }

  .sp-swipe {
    display: flex !important;
    gap: 0.9rem;
    max-width: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.8rem;
    padding: 0.8rem 0.8rem 0.6rem;
    margin: 0 -1rem;
    scrollbar-width: none;
  }
  .sp-swipe::-webkit-scrollbar { display: none; }
  .sp-swipe > * { flex: 0 0 78%; min-width: 0; scroll-snap-align: start; }
  .sp-swipe > *:hover { transform: none; box-shadow: none; }
  .sp-swipe > *:last-child { margin-right: 0.8rem; }

  /* Series: big and small ones become one row of posters, like the films */
  .sp-series-big, .sp-series-small { display: contents; }
  .sp-series .sp-show { flex: 0 0 70%; min-width: 0; scroll-snap-align: start; flex-direction: column; gap: 0.5rem; padding: 0.6rem; }
  .sp-series .sp-show:hover { transform: none; box-shadow: none; }
  .sp-series .sp-poster, .sp-series .sp-show-small .sp-poster { width: 100%; height: auto; aspect-ratio: 2 / 3; }
  .sp-series .sp-show h3 { font-size: 1.15rem; }
  .sp-series .sp-meta { font-size: 0.85rem; }
  .sp-series .sp-show:last-child { margin-right: 0.8rem; }

  /* Films and books: one poster per swipe, readable without zooming */
  .sp-films.sp-swipe > * { flex-basis: 70%; padding: 0.6rem; }
  .sp-films.sp-swipe h3 { font-size: 1.15rem; }
  .sp-films.sp-swipe .sp-meta { font-size: 0.85rem; }

  .sp-poets.sp-swipe > *, .sp-artists.sp-swipe > * { flex-basis: 84%; }
  .rc-goals.sp-swipe > * { flex-basis: 80%; }

  .sp-rank { width: 2rem; height: 2rem; line-height: 1.75rem; font-size: 0.95rem; }
  .sp-swipe .sp-rank { top: -0.6rem; left: -0.6rem; }

  .sp-dots { display: flex; justify-content: center; gap: 0.5rem; margin: 0.2rem 0 0.4rem; }
  .sp-dots button {
    width: 0.6rem; height: 0.6rem; padding: 0;
    border: 0.12rem solid #1c1c1c; border-radius: 50%;
    background: transparent; cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
  }
  .sp-dots button[aria-current="true"] { background-color: #1c1c1c; transform: scale(1.25); }
  .rc-night .sp-dots button { border-color: #f1fcee; }
  .rc-night .sp-dots button[aria-current="true"] { background-color: #f1fcee; }

  /* Bigger targets for the thumb */
  .sp-langswitch button { padding: 0.55rem 1.3rem; }
  .sp-search input { min-height: 2.8rem; font-size: 1rem; }
}
@media only screen and (min-width:751px) { .sp-dots { display: none; } }

/* Phone: the sidebar becomes a short header (photo and name, sections in a row, the balance)
   so the lists start sooner */
@media only screen and (max-width:750px) {
  header { padding-top: 1.2rem !important; padding-bottom: 0.8rem !important; }
  header .me img { width: 4.5rem !important; height: 4.5rem !important; margin: 0 auto 0.4rem !important; }
  header .me p { width: auto; margin: 0 !important; text-align: center; }
  header > p, header > u, header > .links, header > .sc { display: none !important; }
  header .nav-box { margin: 0.8rem 0 0.4rem; padding: 0.3rem; }
  header .nav-box ul { display: flex; overflow-x: auto; scrollbar-width: none; border-radius: 10px; }
  header .nav-box ul::-webkit-scrollbar { display: none; }
  header .nav-box li { flex: 1 1 auto; padding: 0.75rem 0.4rem; border-radius: 0 !important; }
  header .nav-box a { white-space: nowrap; font-size: 0.82rem; text-align: center; }
}

/* Artists with albums: a small cover and its date, then my songs from it, in order */
.sp-albums { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.7rem 0 0.8rem; }
.sp-album { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 0.55rem; align-items: center; }
.sp-album img { grid-row: 1 / 3; width: 2.4rem; height: 2.4rem; border-radius: 4px; border: 0.1rem solid #1c1c1c; align-self: start; }
.sp-album p { margin: 0; font-size: 0.8rem; line-height: 1.2; text-align: left; }
.sp-album p .sp-meta { font-size: 0.72rem; }
.sp-album .sp-chips { margin: 0.25rem 0 0; gap: 0.25rem; }
.sp-album .sp-chips button { font-size: 0.72rem; padding: 0.1rem 0.45rem; }

/* Favourite numbers: one big figure per tile */
.sp-numbers { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; max-width: 30rem; }
.sp-numbers li {
  position: relative; padding: 0.9rem 0.4rem 0.7rem;
  border: 0.2rem solid #1c1c1c; border-radius: 10px; background-color: #e5d8f7;
  text-align: center; font-size: 1.9rem; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sp-ast { font-size: 0.7em; font-weight: 400; margin-left: 0.1em; }
.spectator .sp-asterisk { text-align: left; font-size: 0.8rem; margin-top: 0.5rem; }

/* Happiness: a level bar like in a video game (ten segments, warm to bright) and the year so far */
.rc-hp { max-width: 24rem; padding: 0.9rem 1rem 0.6rem; border: 0.2rem solid #0f1f16; border-radius: 12px; background-color: #17301f; }
.rc-hp-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.45rem; color: #f1fcee; }
.rc-hp-lvl { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; color: #9fdcb0; }
.rc-hp-num { font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(94, 224, 192, 0.55); }
.rc-hp-num small { font-size: 0.9rem; color: #9fdcb0; margin-left: 0.15rem; text-shadow: none; }
.rc-hp-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; padding: 3px; border: 0.15rem solid #f1fcee; border-radius: 6px; }
.rc-hp-bar i { height: 1.2rem; border-radius: 2px; background-color: var(--c); box-shadow: 0 0 6px var(--c); animation: rc-fill 0.5s backwards; }
.rc-hp-bar i:nth-child(n+9) { animation: rc-fill 0.5s backwards, rc-glow 2.4s 0.6s ease-in-out infinite; }
.rc-hp-bar i:nth-child(1) { animation-delay: 0s; } .rc-hp-bar i:nth-child(2) { animation-delay: .05s; } .rc-hp-bar i:nth-child(3) { animation-delay: .1s; }
.rc-hp-bar i:nth-child(4) { animation-delay: .15s; } .rc-hp-bar i:nth-child(5) { animation-delay: .2s; } .rc-hp-bar i:nth-child(6) { animation-delay: .25s; }
.rc-hp-bar i:nth-child(7) { animation-delay: .3s; } .rc-hp-bar i:nth-child(8) { animation-delay: .35s; }
.rc-hp-bar i:nth-child(9) { animation-delay: .4s, 0.6s; } .rc-hp-bar i:nth-child(10) { animation-delay: .45s, 0.6s; }
@keyframes rc-fill { from { opacity: 0; transform: scaleY(0.3); } }
@keyframes rc-glow { 50% { filter: brightness(1.25); box-shadow: 0 0 12px var(--c); } }
@media (prefers-reduced-motion: reduce) { .rc-hp-bar i { animation: none !important; } }
.rc-chart { display: block; width: 100%; height: auto; margin-top: 0.8rem; font-family: inherit; }
.rc-chart text { font-size: 8px; fill: #9fb8a6; }
.rc-chart .rc-grid line { stroke: #2e4a37; stroke-width: 1; stroke-dasharray: 2 3; }
.rc-chart .rc-area { fill: url(#rc-heat); opacity: 0.22; }
.rc-chart .rc-line { fill: none; stroke: url(#rc-heat); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.rc-chart .rc-now { fill: #5ee0c0; stroke: #f1fcee; stroke-width: 1.5; }

/* Poets: one single deck, tier S first, then A, then B. Each card wears its tier in the top-left
   corner, and the face-down cards take their tier's colour, so the next tier shows before it arrives */
.sp-pile { max-width: 42rem; overflow-x: clip; padding-top: 0.4rem; }
.sp-bard[data-tier="s"] { --tier: #f4a6a6; --tier-pale: #fbe4e4; --tier-deep: #ec9696; }
.sp-bard[data-tier="a"] { --tier: #f7c89c; --tier-pale: #fdeedf; --tier-deep: #f0b580; }
.sp-bard[data-tier="b"] { --tier: #f7e39c; --tier-pale: #fdf6dd; --tier-deep: #eed679; }
.sp-bard-tier { position: absolute; top: -0.8rem; left: -0.8rem; z-index: 2; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 0.2rem solid #1c1c1c; border-radius: 9px; background-color: var(--tier); color: #1c1c1c; font: 700 1.4rem/1 sans-serif; box-shadow: 2px 2px 0 #1c1c1c; transform: rotate(-8deg); }
.sp-bard.sp-tier-new .sp-bard-tier { animation: sp-tier-pop 520ms cubic-bezier(.3,1.6,.5,1); }
@keyframes sp-tier-pop { 0% { transform: rotate(-8deg) scale(0.4); } 60% { transform: rotate(-14deg) scale(1.35); } 100% { transform: rotate(-8deg) scale(1); } }
.sp-tierbar { display: flex; justify-content: center; gap: 0.45rem; margin: 0.2rem 0 0; }
.sp-tierbar button { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; padding: 0; border: 0.15rem solid #1c1c1c; border-radius: 7px; background-color: #faf6ff; color: #6b6080; font: 700 1.05rem/1 sans-serif; cursor: pointer; opacity: 0.55; transition: transform 200ms, opacity 200ms; }
.sp-tierbar button.sp-on { opacity: 1; color: #1c1c1c; transform: scale(1.12); box-shadow: 2px 2px 0 #1c1c1c; }
.sp-tierbar .sp-tb-s.sp-on { background-color: #f4a6a6; }
.sp-tierbar .sp-tb-a.sp-on { background-color: #f7c89c; }
.sp-tierbar .sp-tb-b.sp-on { background-color: #f7e39c; }
.sp-tierbar [hidden] { display: none; }
.sp-deck { position: relative; width: min(52%, 14rem); aspect-ratio: 5 / 8.6; margin: 1.6rem auto 0.4rem; touch-action: pan-y; outline: none; user-select: none; -webkit-user-select: none; }
.sp-bard { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0.6rem; border: 0.2rem solid #1c1c1c; border-radius: 12px; background-color: var(--tier-pale, #e5d8f7); box-shadow: 2px 3px 0 rgba(28, 28, 28, 0.85); transition: transform 300ms cubic-bezier(.2,.8,.25,1), opacity 200ms; will-change: transform; }
.sp-bard.sp-drag { transition: none; }
.sp-bard img, .sp-bard-q { display: block; flex: none; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; border-radius: 7px; background-color: #d5c8e7; pointer-events: none; -webkit-user-drag: none; }
.sp-bard h3 { margin: 0.5rem 0 0.15rem; font-size: 1.05rem; line-height: 1.2; text-align: left; }
.sp-bard .sp-meta { font-size: 0.75rem; line-height: 1.35; color: #4a4060; text-align: left; }
.sp-bard.sp-face { cursor: grab; }
.sp-bard.sp-back { background: repeating-linear-gradient(135deg, var(--tier) 0 9px, var(--tier-deep) 9px 18px); }
.sp-bard.sp-back > * { visibility: hidden; }
.sp-bard.sp-passed { filter: saturate(0.75) brightness(0.97); }
.sp-bard.sp-gone { opacity: 0; pointer-events: none; }
.sp-bard.sp-bump { animation: sp-bump 320ms ease; }
@keyframes sp-bump { 0%, 100% { translate: 0 0; } 25% { translate: -7px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }
.sp-bard-anon { border-style: dashed; }
.sp-bard-q { display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 700; color: #b06a6a; background: repeating-linear-gradient(135deg, #f8d3d3 0 8px, #f4c4c4 8px 16px); }
.sp-deck-bar { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 0.6rem 0 0.8rem; }
.sp-deck-bar button { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0 0 0.15rem; margin: 0; border: 0.15rem solid #1c1c1c; border-radius: 50%; background-color: #faf6ff; color: #1c1c1c; font: 700 1.5rem/1 sans-serif; cursor: pointer; }
.sp-deck-bar button:disabled { opacity: 0.3; cursor: default; }
.sp-deck-bar button:active { background-color: #e5d8f7; }
.sp-deck-bar .sp-deck-again { width: auto; height: 2.4rem; padding: 0 0.9rem; border-radius: 1.2rem; font: inherit; font-size: 0.85rem; font-weight: 700; background-color: #e5d8f7; }
.sp-deck-bar [hidden] { display: none; }
.sp-deck-n { min-width: 3rem; text-align: center; font-size: 0.85rem; color: #4a4060; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .sp-bard { transition: none; } .sp-bard.sp-bump { animation: none; } }
@media only screen and (max-width:750px) {
  .sp-pile { margin: 0 -1rem; padding-left: 1rem; padding-right: 1rem; }
  .sp-deck { width: min(60%, 14.5rem); }
}

/* Books of my life: same line as the songs, in light colours; each opens its sheet */
.sp-bookrow {
  display: grid;
  grid-template-columns: 8.5rem 2.1rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  border: 0.15rem solid #1c1c1c;
  border-radius: 8px;
  background-color: #f3ecfc;
  color: #1c1c1c;
  text-decoration: none;
  transition: background-color 150ms;
}
.sp-bookrow:hover { background-color: #e5d8f7; color: #1c1c1c !important; text-decoration: none; }
.sp-bookrow img { width: 2.1rem; height: 3rem; border-radius: 3px; object-fit: cover; background-color: #d5c8e7; }
.sp-booktime .sp-when small { color: #6b5a8a; }
.sp-booktime .sp-song-txt span { color: #4a4060; }
.sp-booktime .sp-tag { font-size: 0.65rem; vertical-align: middle; }
.sp-go-arrow { font-size: 1.4rem; line-height: 1; color: #6b5a8a; }
.sp-booktime li::before { top: 1.25rem; }

/* Medals: gold, silver and bronze tucked at the side of a row */
.sp-medal {
  position: absolute;
  right: -0.5rem;
  top: 0.45rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 0.12rem solid var(--m-edge);
  background: radial-gradient(circle at 35% 30%, var(--m-light) 0 22%, var(--m-base) 55%, var(--m-dark) 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: rotate(-10deg);
  opacity: 0.92;
}
.sp-medal::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0.7rem;
  height: 0.5rem;
  margin-left: -0.35rem;
  background: linear-gradient(90deg, #6f8fd8 0 50%, #d86f6f 50% 100%);
  clip-path: polygon(0 0, 100% 0, 75% 100%, 25% 100%);
}
.sp-medal-gold   { --m-light: #fff6c8; --m-base: #e2b53b; --m-dark: #a87a12; --m-edge: #7d5a0c; }
.sp-medal-silver { --m-light: #ffffff; --m-base: #c4c9d0; --m-dark: #8b929b; --m-edge: #5f656d; }
.sp-medal-bronze { --m-light: #ffd9b5; --m-base: #c67c3e; --m-dark: #8a4f22; --m-edge: #5f3416; }

/* Book sheet facts */
.sp-facts { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.8rem; margin: 0 0 1rem; font-size: 0.9rem; }
.sp-facts div { display: contents; }
.sp-facts dt { font-weight: 700; color: #6b5a8a; text-align: left; }
.sp-facts dd { margin: 0; text-align: left; }

@media only screen and (max-width:750px) {
  .sp-bookrow { grid-template-columns: 2rem 1fr auto; gap: 0.15rem 0.6rem; padding-left: 0.5rem; }
  .sp-bookrow .sp-when { grid-column: 1 / -1; }
  .sp-bookrow img { width: 2rem; height: 2.8rem; }
  .sp-booktime li::before { top: 0.35rem; }
  .sp-medal { right: -0.3rem; }
}

/* Times of day on the phone: favourites first, big; swipe to the least favourite */
@media only screen and (max-width:750px) {
  .sp-duel.sp-swipe { gap: 0.8rem; }
  .sp-duel.sp-swipe > .sp-duel-col { flex: 0 0 86%; }
  .sp-duel.sp-swipe > .sp-vs { display: none; }
  .sp-duel-col h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
  .sp-duel .sp-sky li { font-size: 1.1rem; padding: 0.9rem 1rem; min-height: 5.4rem; justify-content: center; line-height: 1.25; }
  .sp-duel .sp-sky li span { font-size: 0.9rem; }
  .sp-duel .sp-sky .hungry { min-height: 5.4rem; }
}

/* Podium: wherever there is a first, second and third, the 1 is gold, the 2 silver and the 3 bronze */
.sp-rank-1, .sp-ranked li:nth-child(1)::before, .sp-words li:nth-child(1)::before { --p-light: #fff4c2; --p-base: #f0c94a; --p-edge: #9a6f0e; }
.sp-rank-2, .sp-ranked li:nth-child(2)::before, .sp-words li:nth-child(2)::before { --p-light: #ffffff; --p-base: #cdd2d8; --p-edge: #6b7179; }
.sp-rank-3, .sp-ranked li:nth-child(3)::before, .sp-words li:nth-child(3)::before { --p-light: #ffe0c4; --p-base: #d48f55; --p-edge: #7a4520; }
.sp-rank.sp-rank-1, .sp-rank.sp-rank-2, .sp-rank.sp-rank-3 { background: radial-gradient(circle at 35% 30%, var(--p-light) 0 18%, var(--p-base) 70%); color: #1c1c1c; }
.sp-ranked li:nth-child(-n+3)::before, .sp-words li:nth-child(-n+3)::before {
  display: inline-grid; place-items: center; box-sizing: border-box;
  width: 1.6rem; min-width: 1.6rem; height: 1.6rem; border-radius: 50%;
  border: 0.13rem solid var(--p-edge);
  background: radial-gradient(circle at 35% 30%, var(--p-light) 0 18%, var(--p-base) 70%);
  font-size: 0.85rem; line-height: 1; vertical-align: middle; color: #1c1c1c;
}
.sp-ranked li:nth-child(n+4)::before, .sp-words li:nth-child(n+4)::before { display: inline-block; min-width: 1.6rem; text-align: center; }
.sp-ranked.sp-stanzas li { grid-template-columns: 1.6rem auto 1fr auto; }
@media only screen and (max-width:750px) {
  .sp-ranked.sp-stanzas li { grid-template-columns: 1.6rem auto 1fr; }
}

/* Idols have no order: small roman numerals, no podium */
.sp-ranked.sp-unranked li:nth-child(n)::before {
  content: counter(rank, lower-roman);
  display: inline-block; width: auto; min-width: 1.6rem; height: auto;
  border: none; border-radius: 0; background: none;
  font-size: inherit; font-weight: 400; font-style: italic; color: #4a4060; text-align: left;
}

/* Sayings, in order: gold and silver bubble beside each one */
.sp-sayings li { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.3rem; }
.sp-sayings .sp-rank { position: static; flex: none; font-family: sans-serif; font-size: 0.95rem; color: #1c1c1c; }

/* Ideas: one card per idea, like the goals; they will keep coming */
.sp-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 46rem; }
.sp-idea { position: relative; padding: 1rem 1.1rem 0.9rem; border: 0.2rem solid #1c1c1c; border-radius: 14px; background-color: #e5d8f7; transition: all 200ms; }
.sp-idea:nth-child(2n) { background-color: #fcd8d8; }
.sp-idea:hover { transform: translate(-4px, -4px); box-shadow: 4px 4px #1c1c1c; }
.sp-idea h3 { font-size: 1.35rem; margin: 0.1rem 0 0.5rem; text-align: left; }
.sp-idea p { margin: 0 0 0.5rem; font-size: 0.95rem; line-height: 1.45; text-align: left; }
.sp-idea .sp-idea-note { font-size: 0.82rem; font-style: italic; color: #4a4060; padding-left: 0.6rem; border-left: 0.2rem solid rgba(28, 28, 28, 0.35); }
@media only screen and (max-width:750px) {
  .sp-ideas.sp-swipe > * { flex-basis: 84%; }
  .sp-idea h3 { font-size: 1.3rem; }
  .sp-idea p { font-size: 1.02rem; }
  .sp-idea .sp-idea-note { font-size: 0.92rem; }
}
