/* keion ♪ — after-school club room. Notebook paper, cherry-sunburst guitar,
   tea and cake, and a little bit of a 2003 personal homepage. */

:root {
  --page: #fdf6ea; /* cream, behind the polka dots */
  --dot: #efb7c6; /* pastel pink polka dots */
  --dot-size: 2.6px;
  --dot-gap: 26px;
  --veil: rgba(253, 246, 234, 0.72); /* over the wallpaper */
  --paper: #fffefb; /* inputs, bubbles, inner panels */
  --paper-2: #fffaf3; /* cards */
  --line: #f0e4d2;
  --ink: #4b3a3a;
  --ink-soft: #7d6763;
  --outline: #6e5a5a; /* borders: a little softer than the text */
  --pop: #efcdd5; /* sticker shadows */
  --cherry: #b64567; /* accent text: numbers, times, focus rings */
  --amber: #f3c77a;
  --rose: #f7b3c4;
  --sakura: #fcdde4;
  --mint: #cdeedd;
  --sky: #d4e8f8;
  --butter: #ffeab0;
  --lavender: #e6dcf7;
  --tape: rgba(247, 179, 196, 0.6);
  --tape-2: rgba(170, 222, 196, 0.65);
  --shadow: 3px 3px 0 var(--pop);
  --radius: 14px;
  --font-hand: "Yomogi", "Comic Sans MS", cursive;
  --font-body: "Zen Maru Gothic", ui-rounded, system-ui, sans-serif;
  --font-pixel: "DotGothic16", ui-monospace, monospace;
  /* butter -> peach -> pink -> lavender, a pastel take on Gitah's sunburst */
  --sunburst: radial-gradient(
    circle at 30% 32%,
    #fff6d1 0 14%,
    #ffdcbf 38%,
    #fac6d3 70%,
    #e6d6f4 100%
  );
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--page);
  font: 500 16px/1.6 var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: var(--cherry);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px dashed var(--cherry);
  outline-offset: 3px;
}

.hand {
  font-family: var(--font-hand);
}

.pixel {
  font-family: var(--font-pixel);
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ---------- banner ---------- */

.banner {
  position: relative;
  padding: 30px 28px 24px;
  color: var(--ink);
  background: var(--sunburst);
  border: 3px solid var(--outline);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--pop);
}

.logo {
  display: inline-block;
  text-decoration: none;
}

.logo-jp {
  display: block;
  font-family: var(--font-hand);
  font-size: 20px;
  letter-spacing: 0.12em;
}

.logo-en {
  display: block;
  font-size: clamp(48px, 9vw, 88px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--rose);
}

.logo-note {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.6em;
  animation: bob 2.4s ease-in-out infinite;
}

.tagline {
  margin: 12px 0 0;
  font-weight: 700;
}

.tagline .hand {
  font-weight: 400;
  opacity: 0.9;
}

.banner-guitar {
  position: absolute;
  right: 36px;
  bottom: -26px;
  width: 92px;
  transform: rotate(18deg);
  filter: drop-shadow(3px 3px 0 var(--pop));
}

.sparkle {
  position: absolute;
  color: #fff;
  font-size: 18px;
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle:nth-of-type(2) {
  animation-delay: 1s;
}

.sparkle:nth-of-type(3) {
  animation-delay: 2s;
}

.tape {
  position: absolute;
  top: -13px;
  width: 112px;
  height: 28px;
  background: repeating-linear-gradient(
      45deg,
      transparent 0 6px,
      rgba(255, 255, 255, 0.35) 6px 9px
    ),
    var(--tape);
  transform: rotate(-5deg);
}

.tape-l {
  left: 28px;
}

.tape-r {
  right: 150px;
  background-color: var(--tape-2);
  transform: rotate(4deg);
}

/* ---------- ticker ---------- */

.ticker {
  margin: 20px 0 22px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 14px;
  background: var(--paper-2);
  border: 2px dashed var(--ink-soft);
  border-radius: 999px;
}

.ticker span {
  display: inline-block;
  padding: 5px 0;
  animation: marquee 40s linear infinite;
}

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

@media (max-width: 880px) {
  .layout,
  .two-up {
    grid-template-columns: minmax(0, 1fr);
  }

  .main {
    order: -1;
  }

  .banner-guitar,
  .tape-r {
    display: none;
  }
}

/* ---------- cards ---------- */

.card {
  position: relative;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--paper-2);
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-hand);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.section-title > span {
  padding: 0 4px;
  background: linear-gradient(transparent 58%, var(--sakura) 58%);
}

.section-title small {
  margin-left: 6px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-soft);
}

.card-title {
  margin: 0 0 10px;
  padding-bottom: 4px;
  font-family: var(--font-hand);
  font-size: 19px;
  font-weight: 400;
  border-bottom: 2px dotted var(--ink-soft);
}

.empty {
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ---------- profile ---------- */

.profile {
  text-align: center;
}

.avatar {
  width: 92px;
  margin: 0 auto 4px;
  animation: bob 3.2s ease-in-out infinite;
}

.profile h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
}

.profile p {
  margin: 6px 0 10px;
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  margin: 8px 0 0;
  font-size: 14px;
  text-align: left;
}

.facts dt {
  font-family: var(--font-pixel);
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
}

/* ---------- sidebar lists ---------- */

.pick-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pick-list li + li {
  margin-top: 4px;
}

.pick {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 4px 10px;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 2px dashed transparent;
  border-radius: 10px;
  cursor: pointer;
}

.pick:hover {
  background: var(--paper);
  border-color: var(--ink-soft);
}

.pick.is-here {
  background: var(--mint);
  border: 2px solid var(--outline);
  cursor: default;
}

.pick .count {
  flex: none;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-soft);
}

.pick-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
}

/* ---------- hit counter ---------- */

.counter {
  text-align: center;
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin: 4px 0 2px;
}

.counter-digits span {
  padding: 1px 6px;
  font-family: var(--font-pixel);
  font-size: 24px;
  color: var(--cherry);
  background: #fff;
  border: 2px solid var(--outline);
  border-radius: 4px;
}

.counter-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

.online {
  margin: 10px 0 0;
  font-family: var(--font-pixel);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  background: var(--ink-soft);
  border-radius: 50%;
}

.dot.on {
  background: #6fcf97;
  box-shadow: 0 0 0 3px rgba(111, 207, 151, 0.3);
}

/* ---------- invite & login ---------- */

.invite .sticker {
  margin: 2px 4px 2px 0;
}

.me-avatar {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -3px;
  border: 1.5px solid var(--outline);
  border-radius: 50%;
}

.sticker.sticker--discord {
  margin: 4px 0 6px;
  text-decoration: none;
  background: #dfe3ff;
}

.owner-login {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 2px dotted var(--line);
}

.owner-login summary {
  color: var(--ink-soft);
  cursor: pointer;
}

.role {
  display: inline-block;
  padding: 0 6px;
  font-family: var(--font-pixel);
  font-size: 11px;
  background: var(--sky);
  border: 1.5px solid var(--outline);
  border-radius: 6px;
}

.role--owner {
  background: var(--butter);
}

.role--dj {
  background: var(--sakura);
}

.dj-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}

.djs .save-form {
  margin-top: 8px;
}

/* ---------- 88x31 badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  padding: 0 3px;
  font: 10px/1.1 var(--font-pixel);
  color: var(--ink);
  text-align: center;
  border: 1px solid var(--outline);
  box-shadow: 1px 1px 0 var(--pop);
}

.badge-a { background: linear-gradient(#fff, var(--sky)); }
.badge-b { background: linear-gradient(#fff, var(--lavender)); }
.badge-c { background: linear-gradient(#fff, var(--sakura)); }
.badge-d { background: linear-gradient(#fff, var(--mint)); }
.badge-e { background: linear-gradient(var(--butter), var(--rose)); }
.badge-f { color: var(--cherry); background: #fff; }

/* ---------- now playing ---------- */

.now-body {
  display: flex;
  gap: 26px;
  align-items: center;
}

.now-info {
  flex: 1;
  min-width: 0;
}

.polaroid {
  position: relative;
  flex: none;
  width: 184px;
  margin: 8px 4px 4px;
  padding: 8px 8px 32px;
  background: #fff;
  border: 2px solid var(--outline);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}

.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 70px;
  height: 22px;
  background: var(--tape);
  transform: translateX(-50%) rotate(3deg);
}

.polaroid img,
.polaroid-empty {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.polaroid-empty {
  display: grid;
  place-items: center;
  font-size: 56px;
  color: var(--ink);
  background: var(--sunburst);
}

.polaroid figcaption {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--ink);
  text-align: center;
}

.now--playing .polaroid {
  animation: sway 5s ease-in-out infinite;
}

.now--paused .polaroid img {
  filter: grayscale(0.5) sepia(0.25);
}

.bubble {
  position: relative;
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 14px;
  font-family: var(--font-hand);
  font-size: 16px;
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 16px;
}

.bubble::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 18px;
  width: 11px;
  height: 11px;
  background: var(--paper);
  border-right: 2px solid var(--outline);
  border-bottom: 2px solid var(--outline);
  transform: rotate(45deg);
}

.now-title {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.now-by {
  margin: 4px 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.now-empty {
  padding: 8px 0 4px;
  text-align: center;
}

.now-empty .cake {
  font-size: 54px;
  animation: bob 3s ease-in-out infinite;
}

.now-empty .hint {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* the fretboard progress bar with a guitar-pick thumb */
.progress {
  cursor: pointer;
}

.progress-track {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(
      90deg,
      transparent 0 26px,
      var(--line) 26px 28px
    ),
    var(--paper);
  border: 2px solid var(--outline);
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--butter), var(--rose));
  border-radius: 999px;
}

.progress-pick {
  position: absolute;
  top: -10px;
  width: 24px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 112'%3E%3Cpath d='M50 106C22 80 6 54 7 32 8 12 28 5 50 5s42 7 43 27c1 22-15 48-43 74Z' fill='%23f59ab0' stroke='%236e5a5a' stroke-width='8'/%3E%3Cpath d='M30 26q20-10 40 0' fill='none' stroke='%23fff' stroke-width='6' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transform: translateX(-50%);
  pointer-events: none;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-soft);
}

.chips {
  margin: 12px 0 0;
}

.chip {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 0 7px;
  font-family: var(--font-pixel);
  font-size: 13px;
  background: var(--mint);
  border: 1.5px solid var(--outline);
  border-radius: 6px;
}

.chip:nth-child(2) {
  background: var(--sky);
}

.chip--radio {
  background: var(--paper);
  opacity: 0.75;
}

.chip--radio.is-on {
  background: var(--butter);
  color: var(--ink);
  opacity: 1;
}

.radio-because {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.radio-next {
  position: relative;
  margin: 0;
  padding: 8px 12px 8px 44px;
  line-height: 1.3;
  background: var(--paper);
  border: 2px dashed var(--amber);
  border-radius: 12px;
}

.radio-next-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--cherry);
}

/* ---------- buttons ---------- */

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font: 700 15px/1.2 var(--font-body);
  color: var(--ink);
  background: var(--sakura);
  border: 2px solid var(--outline);
  border-radius: 999px;
  box-shadow: 2px 3px 0 var(--pop);
  cursor: pointer;
  transition: transform 0.08s ease;
}

.sticker:hover {
  transform: translateY(-1px) rotate(-1.5deg);
}

.sticker:active {
  box-shadow: 0 1px 0 var(--pop);
  transform: translateY(2px);
}

.sticker:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

.sticker--mint { background: var(--mint); }
.sticker--sky { background: var(--sky); }
.sticker--amber { background: var(--butter); }
.sticker--cherry {
  color: var(--ink);
  background: var(--rose);
}

.sticker--small {
  padding: 4px 12px;
  font-size: 13px;
}

.sticker--big {
  width: 66px;
  height: 66px;
  padding: 0;
  font-size: 28px;
  color: var(--ink);
  background: var(--sunburst);
  border-radius: 50%;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.amp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 14px;
}

.amp input {
  width: 140px;
  accent-color: var(--cherry);
}

.amp output {
  min-width: 3.5ch;
}

/* ---------- forms ---------- */

.field {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 10px;
}

.field:focus {
  outline: 3px dashed var(--cherry);
  outline-offset: 2px;
}

.request label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-hand);
  font-size: 22px;
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 180px) auto;
  gap: 10px;
}

@media (max-width: 600px) {
  .request-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.working {
  display: none;
  margin: 8px 0 0;
  font-family: var(--font-hand);
  color: var(--cherry);
}

.htmx-request .working,
.htmx-request.working {
  display: block;
}

/* ---------- setlist (lined paper) ---------- */

.setlist {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 39px,
    var(--line) 39px 40px
  );
  background-position: 0 50px;
}

.setlist::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52px;
  width: 2px;
  background: var(--cherry);
  opacity: 0.3;
}

.setlist-items {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setlist-items li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
}

.num {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--cherry);
  text-align: right;
}

.song {
  min-width: 0;
  line-height: 1.25;
}

.song-title {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song-by {
  display: block;
  overflow: hidden;
  font-size: 13px;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.len {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-soft);
}

.x {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 50%;
  cursor: pointer;
}

.x:hover {
  background: var(--rose);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ---------- playlists & guestbook ---------- */

.cake-list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.cake-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: var(--paper);
  border: 2px solid var(--outline);
  border-radius: 12px;
}

.cake-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.cake-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.slice {
  font-size: 22px;
}

.cake-name {
  display: block;
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cake-count {
  display: block;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--ink-soft);
}

.cake-actions {
  display: flex;
  gap: 6px;
}

.save-form {
  display: flex;
  gap: 8px;
}

.guestbook .entries {
  max-height: 300px;
  margin: 0;
  padding: 4px 10px;
  overflow-y: auto;
  list-style: none;
  background: var(--paper);
  border: 2px dashed var(--ink-soft);
  border-radius: 10px;
}

.guestbook li {
  padding: 6px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
  border-bottom: 1px dotted var(--line);
}

.guestbook li:last-child {
  border-bottom: 0;
}

.guestbook time {
  display: block;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--cherry);
}

/* ---------- footer ---------- */

.footer {
  margin-top: 26px;
  font-family: var(--font-hand);
  font-size: 16px;
  text-align: center;
  color: var(--ink-soft);
}

.footer p {
  margin: 4px 0;
}

.webring {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 2px 12px;
  background: var(--paper-2);
  border: 2px solid var(--outline);
  border-radius: 999px;
}

.link-button {
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cherry);
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- toasts ---------- */

.toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 10px 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
  background: var(--paper-2);
  border: 2px solid var(--outline);
  border-radius: 12px;
  box-shadow: var(--shadow);
  animation:
    toast-in 0.25s ease-out,
    toast-out 0.4s ease-in 4.5s forwards;
}

.toast--oops {
  background: var(--sakura);
}

/* ---------- login / waiting ---------- */

.center-wrap {
  display: grid;
  min-height: 100vh;
  padding: 16px;
  place-items: center;
}

.center-card {
  width: 100%;
  max-width: 380px;
  padding: 30px 24px 22px;
  text-align: center;
}

.center-card .logo-jp {
  color: var(--cherry);
}

.center-card h1 {
  margin: 4px 0;
  font-size: 28px;
  font-weight: 400;
}

.center-card .field {
  margin: 10px 0 14px;
  text-align: center;
}

.oops {
  margin: 8px 0 0;
  font-family: var(--font-hand);
  color: var(--cherry);
}

/* ---------- personal artwork (data/theme, optional) ---------- */

/* Background layers, both fixed to the screen: the wallpaper (under a cream
   veil) stays still, the polka dots drift at a third of the scroll speed
   (keion.js moves them), and the page scrolls on top: parallax */
body::after {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: calc(100vh + var(--dot-gap));
  background-image: radial-gradient(
    var(--dot) var(--dot-size),
    transparent calc(var(--dot-size) + 0.4px)
  );
  background-size: var(--dot-gap) var(--dot-gap);
  transform: translate3d(0, var(--dots-shift, 0px), 0);
  will-change: transform;
  pointer-events: none;
}

body.has-wallpaper::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(var(--veil), var(--veil)), var(--wallpaper) center / cover;
  pointer-events: none;
}

/* Banner photo fading in from the right, behind the logo */
.banner--photo .banner-guitar {
  display: none;
}

.banner-photo {
  position: absolute;
  inset: 0 0 0 30%;
  background-position: center 30%;
  background-size: cover;
  border-radius: 0 21px 21px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  pointer-events: none;
}

.banner--photo .logo,
.banner--photo .tagline,
.banner--photo .tape {
  position: relative;
  z-index: 1;
}

.banner--photo .tape {
  position: absolute;
}

.banner--photo .logo-en {
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--rose), 0 0 18px #fff;
}

.banner--photo .tagline {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 250, 243, 0.8);
  border-radius: 999px;
}

@media (max-width: 880px) {
  .banner-photo {
    inset: 0;
    border-radius: 21px;
    opacity: 0.45;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.avatar-photo {
  display: block;
  width: 116px;
  height: 116px;
  object-fit: cover;
  object-position: top;
  background: var(--sakura);
  border: 3px solid var(--outline);
  border-radius: 50%;
  box-shadow: var(--shadow);
}

/* A character peeking over the top of the now-playing card */
.peek-wrap {
  position: relative;
}

.peeker {
  position: absolute;
  top: -62px;
  right: 22px;
  z-index: 2;
  width: 118px;
  transform: rotate(7deg);
  filter: drop-shadow(2px 3px 0 var(--pop));
  pointer-events: none;
}

@media (max-width: 600px) {
  .peeker {
    top: -44px;
    width: 84px;
  }
}

/* Nothing playing: the mood written on the sign the character holds */
.now-empty--art {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
}

.now-empty--art .hint {
  flex-basis: 100%;
}

.sign-holder {
  position: relative;
  width: 190px;
  margin: 0;
  container-type: inline-size;
}

.sign-holder img {
  display: block;
  width: 100%;
  filter: drop-shadow(2px 3px 0 var(--pop));
}

.sign-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2%;
  overflow: hidden;
  font-size: 8.5cqw;
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  transform: rotate(-2deg);
}

.toast-art {
  float: left;
  width: 38px;
  height: 38px;
  margin: -4px 10px -4px -4px;
  object-fit: cover;
  object-position: top;
  border-radius: 50%;
}

.center-art {
  display: block;
  width: 150px;
  margin: -70px auto 6px;
  filter: drop-shadow(2px 3px 0 var(--pop));
}

/* ---------- "are you sure?" dialog ---------- */

dialog.confirm {
  width: min(340px, calc(100vw - 32px));
  margin: auto;
  padding: 24px 22px 18px;
  overflow: visible;
  color: var(--ink);
  text-align: center;
  animation: confirm-in 0.18s ease-out;
}

dialog.confirm::backdrop {
  background: rgba(75, 58, 58, 0.22);
  backdrop-filter: blur(2px);
}

.confirm-art {
  display: block;
  width: 118px;
  margin: -84px auto 2px;
  filter: drop-shadow(2px 3px 0 var(--pop));
}

.confirm-emoji {
  margin: 0;
  font-size: 34px;
}

.confirm-question {
  margin: 6px 0 16px;
  font-size: 20px;
  line-height: 1.3;
}

.confirm-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

@keyframes confirm-in {
  from { opacity: 0; transform: translateY(8px) scale(0.97) rotate(-1deg); }
}

/* ---------- motion ---------- */

@keyframes bob {
  50% { transform: translateY(-4px); }
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(-1deg); }
}

@keyframes twinkle {
  50% { opacity: 0.25; transform: scale(0.8); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) rotate(-2deg); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(24px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }

  .toast {
    animation: toast-out 0.01ms linear 4.5s forwards !important;
  }
}
