:root {
  --card: #fff;
  --accent: var(--dd-accent);
  --signup: #fff8f6;
  --signup-line: #f0d2c8;
}
body.tox { overflow-x: clip; }
.tox .hc-bar .wrap { flex-wrap: wrap; }
.tox .lead { min-height: 0; }
body.tox main section.tox-hero {
  padding-bottom: var(--s4);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)), var(--bg));
}
html.theme-dark body.tox main section.tox-hero {
  background: var(--bg);
}
.tox-crumb { margin-bottom: var(--s2); }
.tox-crumb a { color: var(--ink-2); }
.tox-hero .updated { margin-bottom: var(--s3); }

.tox-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: auto;
  margin: 0 0 var(--s4);
  padding: 28px 10px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) * 2);
  background-color: var(--card);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--card) 62%);
}
html.theme-dark .tox-stage {
  background-color: var(--surface);
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 62%);
}
.tox-stage.has-champ { grid-template-columns: 1fr 1fr 1.4fr 1fr 1fr; }
.tox-floor {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 30px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  z-index: 0;
}
.tox-walker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  min-width: 0;
  margin: 0;
  z-index: 1;
  animation: tox-patrol 3.2s ease-in-out infinite;
}
.tox-walk-1 { animation-delay: -.4s; }
.tox-walk-2 { animation-delay: -.9s; }
.tox-walk-3 { animation-delay: -1.5s; }
.tox-walk-4 { animation-delay: -2.1s; }
.tox-walker .mascot { width: min(86%, 84px); aspect-ratio: 1; }
.tox-walker figcaption {
  width: 100%;
  margin: 8px 0 0;
  text-align: center;
  font-size: clamp(.62rem, 2.6vw, .78rem);
  font-weight: 800;
  color: var(--ink-2);
  line-height: 1.15;
  white-space: nowrap;
}
.tox-walker.is-champ {
  z-index: 2;
  animation-name: tox-champion;
  animation-duration: 2.5s;
  animation-delay: 0s;
}
.tox-walker.is-champ .mascot { width: min(100%, 132px); }
@keyframes tox-patrol {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
@keyframes tox-champion {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html:not(.hv-still) .tox-walker:hover { animation-play-state: paused; }
}

.tox .signup {
  background: var(--signup);
  border-color: var(--signup-line);
  padding: var(--s3) var(--s4);
}
.tox .signup a { color: var(--link); }
.tox .signup p { margin-bottom: var(--s2); }
.tox .signup :last-child { margin-bottom: 0; }
.tox .signup .msg:empty { display: none; min-height: 0; }
.tox .signup form { align-items: center; }
.tox .signup input[type="email"] {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
.tox .nbox {
  display: grid;
  gap: 2px var(--s4);
  align-items: center;
}
.tox-form-label { flex: 1 1 16rem; font-weight: 700; color: var(--ink); margin: 0; }

.tox-featured, .tox-rest { display: grid; gap: var(--s3); align-items: start; }
.tox-featured { margin-bottom: var(--s3); }
.tox-rest + .signup { margin-top: var(--s2); }
.tox-post { min-width: 0; height: auto; align-self: start; background: var(--card); }
.tox-post.is-featured { border-color: color-mix(in srgb, var(--accent) 42%, var(--line)); }
.tox-post.is-rank-1 { box-shadow: inset 3px 0 0 var(--accent); }
.tox-post-head {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: var(--s3);
  align-items: center;
  margin-bottom: var(--s2);
}
.tox-rank {
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: var(--accent);
  color: #14161a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.tox-avatar { width: 64px; height: 64px; display: block; }
.tox-avatar .mascot { width: 100%; height: 100%; }
.is-rank-1 .tox-avatar { width: 104px; height: 104px; }
.is-rank-2 .tox-avatar,
.is-rank-3 .tox-avatar { width: 84px; height: 84px; }
.is-rank-1 h3 { font-size: 1.28rem; }
.tox-post h3 { overflow-wrap: anywhere; margin: 0 0 2px; }
.tox-post h3 a { color: var(--ink); text-decoration: none; }
.tox-post h3 a:hover { color: var(--link); }
.tox-post .meta { margin: 0; }
.tox-summary {
  color: var(--ink-2);
  margin: 0 0 var(--s3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.is-rank-1 .tox-summary { -webkit-line-clamp: 4; }
.tox-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--line);
  margin: 0 0 var(--s3);
}
.tox-embed {
  position: relative;
  min-width: 0;
  margin: 0 0 var(--s2);
  overflow: hidden;
}
.tox-embed.is-eager {
  aspect-ratio: 2 / 3;
  background: var(--line);
}
.tox-embed.is-eager > blockquote {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.tox .tox-embed .twitter-tweet,
.tox .tox-embed blockquote {
  margin: 0 !important;
  padding: 0;
  border: 0;
}
.tox-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
}
.tox-open {
  margin: 0;
  color: var(--link);
  font-weight: 700;
}
.tox-days { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; }
.tox-days a, .tox-days span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
}
.badge-disclosure { margin-top: var(--s3); }
.badge-disclosure img { display: block; }

@media (min-width: 800px) {
  .tox-stage { gap: 18px; padding: 48px 20px 14px; }
  .tox-floor { bottom: 34px; }
  .tox-walker .mascot { width: min(72%, 120px); }
  .tox-walker.is-champ .mascot { width: min(88%, 176px); }
  .tox-walker figcaption { font-size: .8rem; }
  .tox .nbox { grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); }
  .tox .nbox .nf { grid-column: 2; grid-row: 1 / span 3; }
  .tox .nbox .msg:not(:empty) { grid-column: 2; }
  .tox #under-top5-signup,
  .tox #list-signup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s3);
  }
  .tox #list-signup .nbt { margin: 0; }
  .tox #under-top5-signup .nf,
  .tox #list-signup .nf { flex: 1 1 320px; margin: 0; }
  .tox-featured {
    grid-template-columns: 1.25fr 1fr;
    align-items: start;
  }
  .tox-post.is-rank-1 { grid-row: span 2; }
  .tox-rest { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.hv-still) .tox-avatar .mascot-art { animation: none; }
  html:not(.hv-still) .tox-avatar.is-in .mascot-art {
    animation: tox-pop .55s cubic-bezier(.2, 1.2, .4, 1) both, hv-sway 4s cubic-bezier(.333, 1, .667, 1) .55s infinite;
  }
}
@keyframes tox-pop {
  0% { transform: translateY(12px) scale(.86); }
  70% { transform: translateY(-6px) scale(1.05); }
  100% { transform: rotate(-3.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .tox-walker { animation: none !important; }
}
html.hv-still .tox-walker { animation: none !important; }
