/* THE CANDY SHADOWS (templates/public/candy_shadows.html, 2026-10-05). A page
   of its own, in the album cover's colours: violet-black night, candy orange
   and amber, and the taffy twins' pink and blue as the only other accents.
   It loads NO site stylesheet on purpose: it is open while the site is
   locked and wears nothing of the site's. One theme (a carnival is at night),
   so every colour and the body's background are stated here. */
:root {
  --cs-night: #12081c; --cs-plum: #1d0f2b; --cs-plum-2: #2a1638; --cs-line: #45285a;
  --cs-orange: #ff9a3c; --cs-amber: #ffd9a8; --cs-ink: #f3e6d8; --cs-dim: #bfa9c9;
  --cs-pink: #ff8fc7; --cs-blue: #8fd0ff; --cs-lic: #0b0610;
  --cs-display: "Rockwell", "Georgia", "Times New Roman", serif;
  --cs-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--cs-night); }
body.cs {
  margin: 0; color: var(--cs-ink); font: 1rem/1.6 var(--cs-body);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255,154,60,.20), transparent 70%),
    radial-gradient(900px 500px at 85% 20%, rgba(143,208,255,.07), transparent 70%),
    radial-gradient(900px 500px at 10% 30%, rgba(255,143,199,.07), transparent 70%),
    var(--cs-night);
  padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  min-height: 100vh;
}
img { max-width: 100%; height: auto; }
a { color: var(--cs-orange); }
h1, h2 { font-family: var(--cs-display); font-weight: 700; letter-spacing: .02em; margin: 0; }
h2 { color: var(--cs-amber); font-size: 1.5rem; margin-bottom: .6rem; }
.cs-pink { color: var(--cs-pink); } .cs-blue { color: var(--cs-blue); }

/* the arch's thirteen bulbs, some of them out */
.cs-bulbs { display: flex; justify-content: center; gap: clamp(.5rem, 3vw, 1.6rem); padding: 1.2rem 1rem 0; }
.cs-bulbs i { width: .7rem; height: .7rem; border-radius: 50%; background: #ffd27a;
  box-shadow: 0 0 10px 3px rgba(255,190,90,.75); animation: cs-glow 3.2s ease-in-out infinite; }
.cs-bulbs i:nth-child(odd) { animation-delay: 1.1s; }
.cs-bulbs i.out { background: #4a3a52; box-shadow: none; animation: none; }
@keyframes cs-glow { 50% { opacity: .72; } }

.cs-head { text-align: center; padding: 1rem 16px 1.4rem; }
.cs-eyebrow { margin: 0; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cs-dim); }
.cs-head h1 { font-size: clamp(2.3rem, 9vw, 4.6rem); line-height: 1.05; color: var(--cs-orange);
  text-shadow: 0 2px 0 #7a2e08, 0 0 26px rgba(255,154,60,.45); margin: .3rem 0; }
.cs-sub { margin: 0; color: var(--cs-amber); }

.cs-main { max-width: 1000px; margin: 0 auto; padding: 0 16px; display: grid; gap: 2rem; }
.cs-main > section { background: linear-gradient(180deg, var(--cs-plum-2), var(--cs-plum));
  border: 1px solid var(--cs-line); border-radius: 18px; padding: clamp(1rem, 3vw, 1.6rem); }
.cs-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.6rem; align-items: center; }
.cs-cover { display: block; width: 100%; border-radius: 12px; border: 3px solid var(--cs-orange);
  box-shadow: 0 16px 50px rgba(0,0,0,.6); }
.cs-story p { margin: 0 0 .8rem; }
.cs-blurb { color: var(--cs-dim); }

.cs-hint { margin: 0 0 .8rem; color: var(--cs-dim); font-size: .9rem; }
.cs-tracks { list-style: none; margin: 0; padding: 0; counter-reset: cs; }
.cs-track { counter-increment: cs; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem;
  align-items: center; padding: .6rem .5rem; border-radius: 12px; border-bottom: 1px solid rgba(69,40,90,.6); }
.cs-track:last-child { border-bottom: 0; }
.cs-track.on { background: rgba(255,154,60,.12); }
.cs-play, .cs-bar-btns button { width: 2.9rem; height: 2.9rem; border-radius: 50%; border: 2px solid var(--cs-orange);
  background: var(--cs-lic); color: var(--cs-orange); cursor: pointer; display: grid; place-items: center;
  font-size: 1rem; padding: 0; flex: none; }
.cs-play:hover, .cs-bar-btns button:hover { background: #2a1238; }
.cs-play:focus-visible, .cs-bar-btns button:focus-visible, .cs-btn:focus-visible, #cs-seek:focus-visible,
.cs-lyrics summary:focus-visible, .cs-foot a:focus-visible { outline: 3px solid var(--cs-blue); outline-offset: 2px; }
/* the play triangle and the pause bars, drawn so no font is needed */
.cs-ico { width: 0; height: 0; border-style: solid; border-width: .5rem 0 .5rem .8rem;
  border-color: transparent transparent transparent currentColor; margin-left: .18rem; }
.playing .cs-ico { width: .8rem; height: .95rem; border: 0; margin: 0;
  background: linear-gradient(90deg, currentColor 0 36%, transparent 36% 64%, currentColor 64% 100%); }
.cs-track.on .cs-play { background: var(--cs-orange); color: var(--cs-lic); }
.cs-title { font-family: var(--cs-display); font-size: 1.12rem; color: var(--cs-ink); }
.cs-title::before { content: counter(cs) ". "; color: var(--cs-dim); }
.cs-cap { color: var(--cs-dim); font-size: .88rem; }
.cs-dur { color: var(--cs-dim); font-variant-numeric: tabular-nums; font-size: .9rem; }
.cs-lyrics { margin-top: .3rem; }
.cs-lyrics summary { cursor: pointer; color: var(--cs-orange); font-size: .85rem; width: max-content; }
.cs-words { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--cs-amber); font-size: .92rem;
  margin: .5rem 0 .2rem; padding-left: .9rem; border-left: 2px solid var(--cs-line); }
.cs-empty { text-align: center; padding: 1.6rem .5rem; color: var(--cs-amber); }
.cs-empty p { margin: .2rem 0; }

.cs-cast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cs-cast li { background: rgba(11,6,16,.45); border: 1px solid var(--cs-line); border-radius: 12px; padding: .7rem .9rem;
  color: var(--cs-dim); font-size: .93rem; }
.cs-cast li strong { display: block; color: var(--cs-amber); font-family: var(--cs-display); font-size: 1.02rem; }

.cs-book { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 1.6rem; align-items: center; }
.cs-book img { border-radius: 10px; border: 2px solid var(--cs-line); display: block; }
.cs-btn { display: inline-block; padding: .75rem 1.4rem; border-radius: 999px; background: var(--cs-orange);
  color: var(--cs-lic); font-weight: 700; text-decoration: none; min-height: 44px; }

.cs-foot { max-width: 1000px; margin: 2rem auto 0; padding: 0 16px 1rem; display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: space-between; color: var(--cs-dim); font-size: .88rem; }

/* the player: a strip of black licorice along the bottom */
.cs-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(.6rem + env(safe-area-inset-bottom));
  width: min(1000px, calc(100% - 20px)); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: .8rem; align-items: center; padding: .6rem .8rem; border-radius: 16px; background: rgba(11,6,16,.96);
  border: 2px solid var(--cs-orange); box-shadow: 0 10px 40px rgba(0,0,0,.7); z-index: 5; }
.cs-bar[hidden] { display: none; }
#cs-bar-art { width: 3rem; height: 3rem; border-radius: 8px; object-fit: cover; display: block; }
.cs-bar-title { font-family: var(--cs-display); color: var(--cs-amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-bar-seek { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem; align-items: center;
  font-size: .78rem; color: var(--cs-dim); font-variant-numeric: tabular-nums; }
#cs-seek { width: 100%; accent-color: var(--cs-orange); height: 1.4rem; }
.cs-bar-btns { display: flex; gap: .4rem; }
.cs-bar-btns button { width: 2.6rem; height: 2.6rem; }
.cs-keep { font-size: .78rem; color: var(--cs-dim); display: flex; gap: .3rem; align-items: center; white-space: nowrap; }

@media (max-width: 720px) {
  .cs-hero, .cs-book { grid-template-columns: minmax(0, 1fr); }
  .cs-bar { grid-template-columns: minmax(0, 1fr) auto; }
  #cs-bar-art, .cs-keep { display: none; }
  .cs-bar-btns button { width: 2.75rem; height: 2.75rem; }
  .cs-play { width: 2.75rem; height: 2.75rem; }
}
@media (prefers-reduced-motion: reduce) { .cs-bulbs i { animation: none; } }
