/* Qinziyao · the bedtime cast
   A character-goods roster: pastel cells, sticker mascots, name plates. */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "ZCOOL KuaiLe";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/zcool-kuaile-qinziyao.woff2") format("woff2");
  unicode-range: U+4EB2, U+5B50, U+8C23;
}

:root {
  --milk: #FFF7EC;
  --ink: #2A2A4A;
  --ink-2: #55557A;
  --plate: #FFFFFF;
  --blush: #FFD9E0;
  --mint: #CDEBD8;
  --butter: #FFE9A8;
  --sky: #C9DDF7;
  --lilac: #E2D8FA;
  --peach: #FFDCC2;
  --pill: #FFD966;
  --pill-hi: #FFE48A;
  --on-ink: #FFF7EC;
  --on-ink-2: #C9C9E6;
  --alert: #FFB3A6;

  --round: "Baloo 2", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --han: "ZCOOL KuaiLe", "Baloo 2", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --pad: clamp(1rem, 3.3vw, 3rem);
  --gap: clamp(.625rem, 1.25vw, 1.125rem);
  --r-cell: clamp(1.125rem, 2vw, 1.75rem);
  --out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink) var(--milk); }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font: 500 1.125rem/1.5 var(--round);
  caret-color: #C92C7C;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
p { text-wrap: pretty; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: .125em; }
::selection { background: var(--pill); color: var(--ink); }
:focus-visible { outline: .1875rem solid var(--ink); outline-offset: .1875rem; border-radius: .5rem; }
.night :focus-visible, .you :focus-visible { outline-color: var(--pill); }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: .5rem 1rem; border-radius: 2rem;
  background: var(--ink); color: var(--on-ink); font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- mascot art (shared by every <use>) ---------- */
.k { --k: #fff; --kw: 14px; stroke: #fff; stroke-width: 14px; stroke-linejoin: round; stroke-linecap: round; }
.ln {
  fill: none;
  stroke: var(--k, #2A2A4A);
  stroke-width: calc(var(--w, 3.4px) + var(--kw, 0px));
  stroke-linecap: round; stroke-linejoin: round;
}
.w5 { --w: 5px; } .w7 { --w: 7px; } .w9 { --w: 9px; } .w11 { --w: 11px; }
.fi { fill: var(--k, #2A2A4A); }
.fw { fill: var(--k, #fff); }
.fb { fill: #FF7F9E; opacity: .55; }
.eo { opacity: var(--awake, 1); }
.ec { opacity: var(--asleep, 0); }
.thread { opacity: var(--thread, 1); }
.c-wool { fill: var(--k, #3E3E60); }
.c-wool2 { fill: var(--k, #53537B); }
.c-cream { fill: var(--k, #FBEBDC); }
.c-blue { fill: var(--k, #2A63D4); }
.c-mouse { fill: var(--k, #B9B3D2); }
.c-mouse2 { fill: var(--k, #A29BC2); }
.c-pink { fill: var(--k, #F9BFCB); }
.c-violet { fill: var(--k, #7B46D6); }
.s-violet { stroke: var(--k, #7B46D6); }
.s-pink { stroke: var(--k, #F3A6B8); }
.c-moon { fill: var(--k, #FFD23F); }
.c-cow { fill: var(--k, #FFFDF8); }
.s-cow { stroke: var(--k, #FFFDF8); }
.c-green { fill: var(--k, #18804F); }
.s-green { stroke: var(--k, #18804F); }
.c-egg { fill: var(--k, #FFF4DC); }
.s-egg { stroke: var(--k, #FFF4DC); }
.c-jeans { fill: var(--k, #6FA3EE); }
.s-jeans { stroke: var(--k, #6FA3EE); }
.c-brick { fill: var(--k, #EC7B5E); }
.c-cap { fill: var(--k, #F6A68F); }
.s-mortar { stroke: #FFE3D6; }
.c-red { fill: var(--k, #D03A22); }
.c-star { fill: var(--k, #FFD23F); }
.puff { stroke: var(--k, #FFD23F); stroke-width: calc(18px + var(--kw, 0px)); stroke-linejoin: round; }
.c-rose { fill: var(--k, #C92C7C); }
.c-hull { fill: var(--k, #F6A04D); }
.c-teal { fill: var(--k, #0C7C86); }
.c-wood { fill: var(--k, #8A5A3C); }
.c-sail { fill: var(--k, #FFFFFF); }
.c-sail2 { fill: var(--k, #FFF1D6); }
.s-mast { stroke: var(--k, #8A5A3C); }
.c-sea { fill: var(--k, #8CC3F5); }
.c-plum { fill: var(--k, #4B3A78); }
.s-plum { stroke: var(--k, #4B3A78); }
.c-magenta { fill: var(--k, #A8238F); }
.s-white { stroke: #fff; }
.c-big { fill: var(--k, #FF8A6B); }
.c-small { fill: var(--k, #FFD23F); }
.s-big { stroke: var(--k, #FF8A6B); }
.s-small { stroke: var(--k, #FFD23F); }
.ghost { fill: none; stroke: currentColor; stroke-width: 6px; stroke-dasharray: 1 13; stroke-linecap: round; }

symbol { overflow: visible; }
.m { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 .3125rem .375rem rgba(42, 42, 74, .2)); transform-origin: 50% 90%; }

@keyframes hop {
  0% { transform: none; }
  28% { transform: translateY(-11%) scale(.96, 1.05); }
  58% { transform: translateY(0) scale(1.06, .94); }
  80% { transform: translateY(-2.5%) scale(.99, 1.01); }
  100% { transform: none; }
}
@keyframes breathe {
  0%, 100% { transform: none; }
  50% { transform: scale(1.03, .975); }
}

/* ---------- bar ---------- */
.wrap { max-width: 96rem; margin-inline: auto; padding-inline: var(--pad); }
.bar { display: flex; align-items: center; gap: .75rem 1.25rem; flex-wrap: wrap; padding-block: 1.125rem .5rem; }
.brand { font-weight: 800; font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; text-decoration: none; }
.gloss { display: flex; align-items: center; gap: .625rem; font-size: 1rem; line-height: 1.35; color: var(--ink-2); }
.han { font-family: var(--han); font-weight: 400; font-style: normal; }
.gloss .han { padding: .25rem .75rem .1875rem; border-radius: 2rem; background: var(--lilac); color: var(--ink); font-size: 1.1875rem; line-height: 1.2; letter-spacing: .08em; white-space: nowrap; }
.bar-go {
  margin-left: auto; display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: .25rem 1.125rem; border-radius: 2rem; border: .1875rem solid var(--ink);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background-color .2s var(--out), color .2s var(--out);
}
.bar-go:hover { background: var(--ink); color: var(--on-ink); }

/* ---------- cast: the first viewport ---------- */
.cast { display: flex; flex-direction: column; min-height: 100svh; padding-bottom: clamp(1rem, 2.4vw, 2.25rem); }
.head {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: end; gap: 1rem clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(.75rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.75rem);
}
h1 { font-weight: 800; font-size: clamp(2.75rem, 6.1vw, 5.5rem); line-height: .92; letter-spacing: -.025em; text-wrap: balance; }
.lede { max-width: 31rem; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.4; justify-self: end; text-wrap: pretty; }

.roster {
  flex: 1; display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(15.5rem, 34svh, 18.5rem), 1fr);
  list-style: none; margin: 0; padding: 0;
}
.cell {
  --tint: var(--blush); --rib: var(--ink);
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(.625rem, 1.1vw, 1rem);
  border-radius: var(--r-cell);
  background-color: var(--tint);
  transition: background-color .35s var(--out);
}
/* printed catalog grounds: sprinkle and candy stripe */
.dots { background-image: radial-gradient(rgba(255, 255, 255, .7) 18%, transparent 20%); background-size: 1.375rem 1.375rem; }
.stripes { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .36) 0 .75rem, transparent .75rem 1.5rem); }

.sheep { --tint: var(--sky); --rib: #2A63D4; }
.mouse { --tint: var(--lilac); --rib: #7B46D6; }
.cow { --tint: var(--mint); --rib: #18804F; }
.humpty { --tint: var(--peach); --rib: #D03A22; }
.star { --tint: var(--blush); --rib: #C92C7C; }
.boat { --tint: var(--butter); --rib: #0C7C86; }
.spider { --tint: var(--lilac); --rib: #A8238F; }

.rank {
  position: absolute; left: clamp(.75rem, 1.4vw, 1.25rem); top: 0; z-index: 1;
  width: 2.375rem; height: 3rem; padding-top: .3125rem;
  background: var(--rib); color: #fff;
  font-weight: 800; font-size: 1.375rem; line-height: 1; text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  transition: background-color .35s var(--out), color .35s var(--out);
}
.art { position: relative; flex: 1 1 0; min-height: 6.5rem; }
.art .m { position: absolute; left: 10%; top: .5rem; width: 80%; height: calc(100% - 1.125rem); }
.plate {
  padding: .5rem .875rem .5625rem;
  border-radius: 1.125rem;
  background: var(--plate);
  box-shadow: 0 .25rem .625rem rgba(42, 42, 74, .12);
}
.plate-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .125rem .5rem; }
.name { font-size: clamp(1.125rem, 1.6vw, 1.4375rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.name button {
  all: unset; cursor: pointer; font: inherit; color: inherit;
}
.name button::after { content: ""; position: absolute; inset: 0; }
.cell { overflow: hidden; }
.name button:focus-visible { outline: none; }
.cell:has(.name button:focus-visible) { outline: .1875rem solid var(--ink); outline-offset: .1875rem; }
.since {
  flex: none; padding: .125rem .5rem .0625rem; border-radius: 1rem;
  background: var(--tint); font-size: .8125rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.note { text-wrap: balance; margin-top: .1875rem; font-size: .9375rem; line-height: 1.35; color: var(--ink-2); }
.lines { margin-top: .375rem; display: grid; gap: .3125rem; font-size: .9375rem; line-height: 1.35; }
.lines p { display: grid; grid-template-columns: auto 1fr; gap: .4375rem; align-items: start; }
.lines b {
  margin-top: .0625rem; padding: .0625rem .4375rem 0; border-radius: .75rem;
  background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.45; white-space: nowrap;
}
.lines .kid b { background: var(--rib); }
.lines .kid { color: var(--rib); font-weight: 600; }
.js .cell:not(.is-open) .lines { display: none; }
.js .cell.is-open .note { display: none; }

/* a character takes its ribbon colour when it has the floor */
.cell.is-open .art { min-height: 4.25rem; }
.cell.is-open { background-color: var(--rib); }
.cell.is-open .rank { background: #fff; color: var(--rib); }
@media (hover: hover) {
  .cell.char:hover .m { animation: hop .55s var(--out); }
}
.cell.is-open .m, .roster.cheer .cell .m { animation: hop .55s var(--out) both; }
.roster.cheer .cell .m { animation-delay: calc(var(--i) * 70ms); }
.roster > :nth-child(1), .bed > :nth-child(1) { --i: 0; }
.roster > :nth-child(2), .bed > :nth-child(2) { --i: 1; }
.roster > :nth-child(3), .bed > :nth-child(3) { --i: 2; }
.roster > :nth-child(4), .bed > :nth-child(4) { --i: 3; }
.roster > :nth-child(5), .bed > :nth-child(5) { --i: 4; }
.roster > :nth-child(6), .bed > :nth-child(6) { --i: 5; }
.roster > :nth-child(7), .bed > :nth-child(7) { --i: 6; }
.roster > :nth-child(8), .bed > :nth-child(8) { --i: 7; }

/* the eighth cell: you two */
.you {
  --tint: var(--ink);
  background-color: var(--ink); color: var(--on-ink);
  padding: clamp(1rem, 1.5vw, 1.375rem);
  justify-content: center;
}
.ask { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.you-pair { position: absolute; right: -.25rem; top: -.25rem; width: 4.5rem; height: 4.5rem; color: #B4B4E0; }
.ask h2 { max-width: 11ch; font-size: clamp(1.625rem, 2.3vw, 2.125rem); font-weight: 800; line-height: 1; letter-spacing: -.015em; }
.ask h2 em { font-style: normal; color: var(--pill); }
.join { display: grid; gap: .5rem; margin-top: .875rem; }
.join label { font-size: .875rem; font-weight: 700; line-height: 1.2; color: var(--on-ink-2); }
.field {
  width: 100%; min-height: 3rem; padding: .3125rem 1rem .1875rem;
  border: .1875rem solid #fff; border-radius: 1rem;
  background: #fff; color: var(--ink); font-size: 1.0625rem; font-weight: 500;
}
.field::placeholder { color: #6A6A8C; opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--alert); }
.btn {
  min-height: 3rem; padding: .3125rem 1.25rem .1875rem;
  border: 0; border-radius: 2rem; cursor: pointer;
  background: var(--pill); color: var(--ink);
  font-weight: 800; font-size: 1.1875rem; line-height: 1.1;
  box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .28);
  transition: transform .2s var(--out), box-shadow .2s var(--out), background-color .2s var(--out);
}
.btn:hover { background: var(--pill-hi); transform: translateY(-.125rem); box-shadow: 0 .4375rem .875rem rgba(0, 0, 0, .3); }
.btn:active { transform: translateY(.0625rem); box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .3); }
.btn:disabled { cursor: progress; background: #D9D4C0; transform: none; }
.oops { font-size: .875rem; line-height: 1.35; font-weight: 700; color: var(--alert); }
.oops:empty { display: none; }
.oops:not(:empty) ~ .fine { display: none; }
.fine { font-size: .875rem; line-height: 1.35; color: var(--on-ink-2); }
.nojs { font-size: .875rem; line-height: 1.35; color: var(--pill); }
.js .nojs { display: none; }

/* after joining, the navy cell is one more cast card */
.you.is-joined { --tint: var(--sky); --rib: #D03A22; background-color: var(--sky); color: var(--ink); padding: clamp(.625rem, 1.1vw, 1rem); justify-content: flex-start; }
.you.is-joined > .ask { display: none; }
.card { display: contents; }
.when-joined { display: none; }
.is-joined .when-joined { display: inline; }
.is-joined .when-open { display: none; }
.card .note b { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.again {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: .125rem -.5rem;
  font-size: .875rem; font-weight: 700; line-height: 1.3; text-decoration: underline; text-underline-offset: .2em;
}
.again:focus-visible { outline: .1875rem solid var(--ink); outline-offset: .125rem; border-radius: .5rem; }

.legend { margin-top: clamp(.75rem, 1.4vw, 1.125rem); max-width: 70ch; font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }

/* ---------- name: three characters of our own ---------- */
.sec { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem); }
h2.big { font-weight: 800; font-size: clamp(2.25rem, 5vw, 4rem); line-height: .98; letter-spacing: -.02em; text-wrap: balance; }
.big + p { text-wrap: balance; margin-top: .875rem; max-width: 38rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; }
.name-grid {
  display: grid; gap: var(--gap); margin-top: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr);
}
.glyph { --tint: var(--mint); --rib: #18804F; min-height: 18.5rem; }
.glyph:nth-child(2) { --tint: var(--butter); --rib: #B4540A; }
.glyph:nth-child(3) { --tint: var(--blush); --rib: #C92C7C; }
.glyph .han-big {
  flex: 1; display: grid; place-items: center;
  font-family: var(--han); font-size: clamp(5.5rem, 10.5vw, 9.5rem); line-height: 1;
  color: var(--rib);
  -webkit-text-stroke: .875rem #fff; paint-order: stroke fill;
  filter: drop-shadow(0 .3125rem .375rem rgba(42, 42, 74, .2));
}
.glyph .name { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
.profile {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.125rem, 2.2vw, 2rem) clamp(1.125rem, 2.4vw, 2.25rem);
  border-radius: var(--r-cell); background: var(--plate);
  box-shadow: 0 .25rem .875rem rgba(42, 42, 74, .1);
}
.profile h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.profile h3 .han { font-size: 1.05em; letter-spacing: .06em; margin-right: .25em; }
.profile dl { margin-top: .875rem; }
.profile dl > div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-block: .5rem .4375rem; border-top: .125rem dashed #D9D2EC; }
.profile dt { font-size: .9375rem; font-weight: 700; line-height: 1.4; color: var(--ink-2); }
.profile dd { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }

/* ---------- questions ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 1.5rem clamp(1.5rem, 5vw, 5rem); align-items: start; }
.faq-list { display: grid; gap: .625rem; }
.q { border-radius: 1.25rem; background: var(--plate); box-shadow: 0 .1875rem .625rem rgba(42, 42, 74, .08); }
.q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: .625rem 1.25rem .5rem; cursor: pointer; list-style: none;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 700; line-height: 1.25;
  border-radius: 1.25rem;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: ""; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / .75rem .1875rem no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / .1875rem .75rem no-repeat,
    var(--lilac);
  transition: transform .35s var(--out);
}
.q[open] summary::after {
  background: linear-gradient(var(--ink), var(--ink)) center / .75rem .1875rem no-repeat, var(--pill);
  transform: rotate(180deg);
}
.q p { padding: 0 1.25rem 1.125rem; max-width: 62ch; line-height: 1.5; color: #3B3B5E; }

/* ---------- goodnight ---------- */
.night { background: var(--ink); color: var(--on-ink); padding-block: clamp(3.5rem, 8vw, 6.5rem) 1.5rem; scrollbar-color: var(--pill) var(--ink); }
.night-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem clamp(1.5rem, 5vw, 5rem); align-items: end; }
.night .big em { font-style: normal; color: var(--pill); }
.night-copy p { margin-top: .875rem; max-width: 30rem; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; color: var(--on-ink-2); }
.join-wide { max-width: 30rem; }
.join-wide .row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.done { display: grid; gap: .25rem; max-width: 30rem; padding: 1rem 1.25rem; border-radius: 1.25rem; background: var(--butter); color: var(--ink); }
.done b { font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.done p { font-size: 1rem; line-height: 1.4; }
.done [data-masked] { font-weight: 700; overflow-wrap: anywhere; }

.bed { --awake: 0; --asleep: 1; --thread: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(.25rem, 1vw, 1rem); align-items: end; margin-top: clamp(2.5rem, 6vw, 4.5rem); list-style: none; padding: 0; }
.bed > span { position: relative; display: block; aspect-ratio: 1; }
.bed .spot .m { position: absolute; inset: 0; }
.bed .m { animation: breathe 4.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); filter: none; }
.bed .spot { color: #7C7CA8; }
.bed .spot .m { animation: none; }
.bed .spot .mine { display: none; }
.is-joined .bed .spot .mine { display: block; animation: breathe 4.2s ease-in-out infinite; }
.is-joined .bed .spot .open { display: none; }
.blanket { height: .75rem; margin-top: -.375rem; border-radius: .375rem; background: repeating-linear-gradient(90deg, var(--blush) 0 1.5rem, var(--mint) 1.5rem 3rem, var(--butter) 3rem 4.5rem, var(--sky) 4.5rem 6rem); }

.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; margin-top: clamp(2rem, 4vw, 3rem); font-size: .875rem; line-height: 1.5; color: var(--on-ink-2); }
.foot p { max-width: 54ch; }
.foot-end { justify-self: end; text-align: right; }
.foot a { color: var(--on-ink); font-weight: 700; display: inline-block; padding-block: .625rem; }

/* ---------- widths ---------- */
@media (max-width: 62rem) {
  .roster { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(17rem, auto); }
  .you { grid-column: span 2; }
  .ask h2 { max-width: none; }
  .head { grid-template-columns: 1fr; gap: .75rem; }
  .lede { justify-self: start; max-width: 38rem; }
  .name-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile { grid-column: 1 / -1; }
  .glyph { min-height: 15rem; }
  .faq, .night-in { grid-template-columns: 1fr; }
  .cast { min-height: 0; }
}
@media (max-width: 40rem) {
  .bar { padding-top: .875rem; }
  .gloss { order: 3; flex-basis: 100%; font-size: .9375rem; }
  .bar-go { min-height: 2.75rem; }
  .head { grid-template-columns: 1fr; gap: .625rem; padding-block: .75rem 1rem; }
  .lede { justify-self: start; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .cell.char { min-height: 16.5rem; }
  .lines p { grid-template-columns: 1fr; gap: .125rem; justify-items: start; }
  .cell.is-open .art { min-height: 7rem; }
  .you { order: 1; grid-column: 1 / -1; }
  .roster > :nth-child(n + 3):not(.you) { order: 2; }
  .spider { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .75rem; min-height: 0; padding-top: 3rem; }
  .cell.char.spider { min-height: 0; }
  .spider .art { flex: 0 0 40%; height: 9.5rem; }
  .spider .plate { flex: 1; }
  .plate { padding-inline: .6875rem; }
  .you-pair { width: 4rem; height: 4rem; }
  .glyph { min-height: 11rem; padding: .5rem; }
  .glyph .han-big { -webkit-text-stroke-width: .625rem; font-size: clamp(4.25rem, 21vw, 6rem); }
  .glyph .plate { padding-inline: .5rem; }
  .glyph .plate-top { justify-content: center; text-align: center; }
  .profile dl > div { grid-template-columns: 1fr; gap: 0; }
  .join-wide .row { grid-template-columns: 1fr; }
  .bed { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
  .foot { grid-template-columns: 1fr; }
  .foot-end { justify-self: start; text-align: left; }
}
@media (max-width: 22.5rem) {
  .rank { width: 2rem; height: 2.625rem; font-size: 1.1875rem; }
  .name { font-size: 1.0625rem; }
  .note, .lines { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
