/* Dating-show scrapbook. Live data overlays are kept separate from the opening spreads. */
:root {
  --pink: #ff4f86;
  --pink-2: #ff8fb1;
  --pink-3: #ffc2d4;
  --pink-4: #ffe4ec;
  --pink-5: #fff1f5;
  --cream: #fff8f2;
  --paper: #fffdf9;
  --sun: #ffd84d;
  --sun-2: #fff0b3;
  --mint: #7fdcb9;
  --mint-2: #d9f7ea;
  --sky: #7cc8ff;
  --sky-2: #dff1ff;
  --lilac: #b9a1ff;
  --lilac-2: #efe7ff;
  --coral: #ff8a65;
  --berry: #8a1f4a;
  --ink: #5a2638;
  --ink-2: #8f5b6c;
  --ink-3: #bb8f9d;
  --line: rgba(255, 79, 134, .16);
  --line-2: rgba(255, 79, 134, .3);
  --shadow: 0 6px 0 rgba(255, 79, 134, .14), 0 14px 30px rgba(196, 70, 110, .12);
  --shadow-sm: 0 3px 0 rgba(255, 79, 134, .14), 0 8px 18px rgba(196, 70, 110, .1);
  --display: "DouyinSans", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --cute: "ZCOOL KuaiLe", "DouyinSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --round: "Fredoka", "DouyinSans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --top-h: 68px;
  --accent: var(--pink);
  --text: var(--ink);
  --dim: var(--ink-2);
  --faint: var(--ink-3);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 400 14px/1.6 var(--body);
  background:
    radial-gradient(60vw 50vh at 8% 0%, rgba(255, 216, 77, .22), transparent 70%),
    radial-gradient(50vw 50vh at 100% 10%, rgba(255, 143, 177, .25), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 33c-5-3.6-7-6-7-8.4 0-1.9 1.4-3.3 3.2-3.3 1.6 0 2.8.9 3.8 2.3 1-1.4 2.2-2.3 3.8-2.3 1.8 0 3.2 1.4 3.2 3.3 0 2.4-2 4.8-7 8.4z' fill='%23ff8fb1' fill-opacity='.13'/%3E%3C/svg%3E"),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--pink-3); }

/* ============ header ============ */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 18px; height: var(--top-h); padding: 0 20px; background: rgba(255, 250, 247, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 3px solid #ffe0ea; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark svg { display: block; width: 42px; height: 38px; filter: drop-shadow(0 3px 0 #c9285e); }
.brand-mark path { fill: #ff4f86; stroke: #fff; stroke-width: 2; }
.brand-mark text { fill: #fff; font: 400 13px var(--round); font-weight: 700; }
.brand-name { font: 400 21px/1 var(--display); color: #6b2140; white-space: nowrap; }
.brand-name b { font-weight: 400; color: var(--pink); }
.brand-name em { font-style: normal; color: var(--pink); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font: 400 15px/1 var(--display); color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { color: var(--pink); background: var(--pink-5); }
.nav a.on { color: #fff; background: var(--pink); box-shadow: 0 3px 0 #c9285e; }
.nav .nav-cta { margin-left: 4px; color: #8a4a00; background: var(--sun); box-shadow: 0 3px 0 #e0a800; }
.nav .nav-cta:hover { color: #6a3800; background: #ffe370; }
.stats { display: flex; gap: 8px; margin-left: auto; font: 400 13px/1 var(--body); color: var(--ink-2); white-space: nowrap; }
.stats span { padding: 6px 10px; border-radius: 999px; background: #fff; border: 2px solid #ffe0ea; }
.stats b { font: 600 15px/1 var(--round); color: var(--pink); margin-right: 2px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.replay { padding: 7px 12px; border-radius: 999px; font: 400 13px/1 var(--display); color: var(--pink); background: #fff; border: 2px solid var(--pink-3); }
.replay:hover { background: var(--pink-5); }
.ca { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff; border: 2px solid #ffe0ea; font: 500 12px/1 var(--round); color: var(--ink-2); }
.ca:not(:disabled):hover { border-color: var(--pink-2); }
.ca-label { color: var(--ink-3); }
.ca-act { color: var(--pink); }

/* ============ lounge ============ */
main { position: relative; }
.view.lounge { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: calc(100vh - var(--top-h)); min-height: 620px; padding: 16px; }
.stage { position: relative; min-width: 0; border-radius: 28px; overflow: hidden; background: #fff4f1; border: 5px solid #fff; box-shadow: 0 0 0 3px #ffd3e0, var(--shadow); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-grain { z-index: 1; opacity: .35; border-radius: inherit; }
.room-switch { position: absolute; left: 14px; top: 14px; z-index: 3; display: flex; gap: 10px; flex-wrap: wrap; }
.rs-group { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.rs-label { padding: 0 8px 0 10px; font: 400 12px/1 var(--cute); color: var(--ink-3); }
.rs-group button { padding: 8px 14px; border-radius: 999px; font: 400 14px/1 var(--display); color: var(--ink-2); }
.rs-group button:hover { color: var(--pink); }
.rs-group button.on { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #c9285e; }
.rs-group button.rs-after.on { background: #ffb21e; box-shadow: 0 3px 0 #d0700c; }
.hud { position: absolute; z-index: 3; font: 500 13px/1 var(--round); color: var(--ink-2); }
.hud-tr { right: 14px; top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); color: #e8336f; letter-spacing: .04em; }
.hud-tr #clock { color: var(--ink-2); letter-spacing: 0; }
.hud-br { right: 16px; bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .86); font-family: var(--body); font-size: 12px; }
.hero { position: absolute; left: 16px; bottom: 16px; z-index: 3; max-width: min(560px, 60%); }
.hero p { margin: 0; padding: 10px 16px 10px 44px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); font: 400 13.5px/1.55 var(--body); color: var(--ink-2); position: relative; }
.hero p::before { content: "字幕"; position: absolute; left: 10px; top: 11px; padding: 2px 4px; border-radius: 5px; background: var(--pink); color: #fff; font: 400 11px/1.2 var(--display); writing-mode: vertical-rl; }
.empty-room { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; }
.empty-room p { margin: 0; padding: 10px 18px; border-radius: 999px; background: #fff; font: 400 16px/1.4 var(--cute); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-join { padding: 11px 22px; border-radius: 999px; background: var(--pink); color: #fff; font: 400 16px/1 var(--display); box-shadow: 0 4px 0 #c9285e; }

.side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 14px; min-height: 0; }
.side-block { min-height: 0; display: flex; flex-direction: column; border-radius: 24px; background: var(--paper); border: 3px solid #fff; box-shadow: 0 0 0 2px #ffe0ea, var(--shadow-sm); overflow: hidden; }
.side-block.grow { min-height: 0; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 10px; font: 400 17px/1 var(--display); color: #6b2140; border-bottom: 2px dashed #ffe0ea; }
.side-head .count { min-width: 26px; padding: 4px 8px; border-radius: 999px; background: var(--pink); color: #fff; font: 600 13px/1 var(--round); text-align: center; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.tabs button { padding: 5px 9px; border-radius: 999px; font: 400 12.5px/1 var(--display); color: var(--ink-3); }
.tabs button:hover { color: var(--pink); }
.tabs button.on { background: var(--pink-4); color: var(--pink); }
.dates { max-height: 34vh; overflow: auto; padding: 8px; display: grid; gap: 8px; }
.date-row { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 16px; background: #fff; border: 2px solid #ffe8ef; transition: border-color .15s, transform .15s; }
.date-row:hover { border-color: var(--pink-2); transform: translateY(-1px); }
.date-top { display: flex; align-items: baseline; gap: 5px; font: 400 15px/1.3 var(--display); color: #6b2140; }
.date-top .where { margin-left: auto; font: 400 12px/1 var(--body); color: var(--ink-3); }
.date-line { margin-top: 4px; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-bar { margin-top: 8px; height: 8px; border-radius: 99px; background: #ffeef3; overflow: hidden; }
.date-bar i { display: block; height: 100%; border-radius: inherit; background: repeating-linear-gradient(-45deg, #ff6f9b 0 6px, #ff8fb1 6px 12px); transition: width .4s; }
.empty { padding: 18px 12px; text-align: center; font: 400 14px/1.5 var(--cute); color: var(--ink-3); }
.log { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 12px; }
.ev { display: flex; gap: 10px; padding: 9px 6px; border-bottom: 1px dashed #ffe6ee; animation: ev-in .45s cubic-bezier(.3, 1.5, .6, 1); }
.ev.still { animation: none; }
@keyframes ev-in { from { opacity: 0; transform: translateX(16px) scale(.96); } }
.ev .av { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid; cursor: pointer; background: #fff; }
.ev-main { min-width: 0; flex: 1; }
.ev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 400 14px/1.4 var(--display); }
.ev-head .to { color: var(--ink-3); margin: 0 1px; }
.ev-head .about { color: var(--ink-3); font: 400 12px var(--body); }
.ev-time { margin-left: auto; font: 500 11px/1 var(--round); color: var(--ink-3); }
.chip-k { padding: 2px 7px; border-radius: 999px; background: #f4eef0; color: var(--ink-2); font: 400 11px/1.4 var(--display); }
.chip-k.hot { background: var(--pink-4); color: #e8336f; }
.chip-k.good { background: var(--mint-2); color: #1f8a6a; }
.chip-k.gold { background: #fff1c2; color: #b07800; }
.chip-k.dm { background: var(--sky-2); color: #2b7fd0; }
.chip-k.think { background: var(--lilac-2); color: #6d4fd6; }
.ev-text { margin-top: 3px; padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1.5px solid #ffe6ee; font-size: 13.5px; line-height: 1.55; color: var(--ink); word-break: break-word; }
.ev-text.dim { background: var(--lilac-2); border-color: #e4d9ff; color: #6a4f8f; font-family: var(--cute); }
.ev-text .where { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-3); }
.ev-sys { align-items: center; }
.ev-sys .pair { display: flex; flex: none; }
.ev-sys .pair .av + .av { margin-left: -10px; }
.ev-sys .ev-main { display: flex; align-items: center; gap: 6px; }
.ev-sys-text { flex: 1; padding: 6px 10px; border-radius: 12px; background: #fff7fa; font-size: 13px; color: var(--ink-2); }
.ev-sys.hot .ev-sys-text { background: var(--pink-4); color: #b8235a; }
.ev-sys.good .ev-sys-text { background: var(--mint-2); color: #1f7a5e; }
.ev-sys.gold .ev-sys-text { background: #fff3cc; color: #9a6a00; }
.who { cursor: pointer; font-weight: 400; }
.who:hover { text-decoration: underline wavy var(--pink-2); text-underline-offset: 3px; }
.gen { padding: 1px 6px; border-radius: 999px; background: var(--sun-2); color: #9a6a00; font: 400 11px/1.4 var(--display); }

/* ============ portraits ============ */
.av { position: relative; overflow: hidden; }
.cast-portrait-crop { container-type: size; position: absolute; inset: 0; display: block; overflow: hidden; }
.cast-portrait-tile { position: absolute; top: 50%; left: 50%; width: max(100cqw, 100cqh); aspect-ratio: 1; transform: translate(-50%, -50%); overflow: hidden; }
.cast-portrait-tile img { position: absolute; display: block; width: 300%; height: 200%; max-width: none; object-fit: fill; }
.cast-portrait-face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo { width: 100%; height: 100%; position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(180deg, #ffe4ec, #fff4ea); }
.photo .fig { width: 62%; height: auto; filter: drop-shadow(0 10px 14px rgba(138, 31, 74, .2)); }
.photo.small .fig { width: 96%; filter: none; }

/* ============ pages ============ */
.view.page { max-width: 1240px; margin: 0 auto; padding: 34px 22px 90px; }
.view.page.narrow { max-width: 860px; }
.page-head { display: grid; justify-items: center; gap: 14px; margin-bottom: 30px; text-align: center; }
.page-head p { margin: 0; color: var(--ink-2); font: 400 16px/1.5 var(--cute); }
.roomtabs { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); }
.roomtabs button { padding: 8px 16px; border-radius: 999px; font: 400 14px/1 var(--display); color: var(--ink-2); }
.roomtabs button.on { background: var(--pink); color: #fff; box-shadow: 0 3px 0 #c9285e; }
.rt-gap { width: 2px; height: 18px; margin: 0 4px; background: #ffe0ea; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; }
.pcard { position: relative; display: block; text-align: left; padding: 10px 10px 14px; background: #fff; border-radius: 10px; box-shadow: 0 4px 0 rgba(138, 31, 74, .1), 0 16px 28px rgba(138, 31, 74, .12); transition: transform .2s, box-shadow .2s; }
.pcard:nth-child(3n+1) { rotate: -1.4deg; }
.pcard:nth-child(3n+2) { rotate: 1.2deg; }
.pcard::before { content: ""; position: absolute; z-index: 2; top: -9px; left: 50%; width: 76px; height: 20px; margin-left: -38px; background: rgba(255, 216, 77, .8); rotate: -4deg; }
.pcard:nth-child(even)::before { background: rgba(143, 208, 255, .75); rotate: 3deg; }
.pcard:nth-child(3n)::before { background: rgba(255, 143, 177, .7); }
.pcard:hover { transform: translateY(-5px) rotate(0); box-shadow: 0 6px 0 rgba(255, 79, 134, .2), 0 22px 36px rgba(138, 31, 74, .18); }
.pcard-img { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #ffe4ec; }
.pcard-img .tag { position: absolute; left: 8px; top: 8px; z-index: 2; }
.pcard-body { padding: 10px 4px 0; }
.pcard-name { display: flex; align-items: baseline; gap: 6px; font: 400 21px/1.2 var(--display); color: #6b2140; }
.pcard-name > span:last-child { margin-left: auto; font: 400 13px/1 var(--body); color: var(--ink-3); }
.cast-card-role { margin-top: 3px; font: 400 13px/1.3 var(--display); color: var(--pink); }
.pcard-tag { margin-top: 6px; font: 400 14px/1.45 var(--cute); color: var(--ink-2); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink-2); font: 400 12px/1.2 var(--display); box-shadow: 0 2px 0 rgba(138, 31, 74, .12); }
.tag.date, .tag.couple, .tag.dating, .tag.together, .tag.living { background: var(--pink); color: #fff; }
.tag.engaged, .tag.married, .tag.family, .tag.expecting { background: #ffc93c; color: #6a3e00; }
.tag.talking, .tag.strangers { background: #fff; }
.tag.split, .tag.apart, .tag.moved_away, .tag.nomatch { background: #eee6ea; color: var(--ink-2); }
.tag.child, .tag.parent { background: var(--mint); color: #0f5a43; }

.couples { display: grid; gap: 14px; }
.sec-title { margin: 22px 0 4px; font: 400 22px/1.2 var(--display); color: #6b2140; }
.sec-note { margin: 0 0 6px; color: var(--ink-3); font: 400 14px/1.5 var(--cute); }
.crow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); border: 2px solid #ffeef3; }
.crow.alum { opacity: .84; background: #fffafc; }
.cpair { display: flex; align-items: center; position: relative; }
.cpair .av { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(138, 31, 74, .18); cursor: pointer; background: #ffe4ec; }
.cpair .av + .av { margin-left: -8px; }
.cpair::after { content: "♥"; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 13px; border: 2px solid #fff; }
.cnames { font: 400 19px/1.3 var(--display); color: #6b2140; }
.cmeta { margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.cverd { margin-top: 6px; display: grid; gap: 3px; font-size: 13px; color: var(--ink-2); }
.cverd b { font-weight: 600; color: var(--ink); }
.rate { color: var(--pink); font: 600 12px var(--round); }
.cright { display: grid; justify-items: end; gap: 6px; }
.feel { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.meter { position: relative; display: inline-block; width: 64px; height: 7px; border-radius: 99px; background: #ffeef3; overflow: hidden; }
.meter i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.kids { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.kid { padding: 3px 10px; border-radius: 999px; background: var(--mint-2); color: #1f7a5e; font-size: 12.5px; }
.story-btn { margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: var(--pink-4); color: var(--pink); font: 400 13px/1 var(--display); }
.empty-page { padding: 60px 20px; text-align: center; font: 400 18px/1.5 var(--cute); color: var(--ink-3); }

.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { position: relative; counter-increment: rule; padding: 22px 22px 20px 78px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); border: 2px solid #ffeef3; color: var(--ink-2); line-height: 1.65; }
.rules li::before { content: counter(rule); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--pink); color: #fff; font: 600 22px/1 var(--round); box-shadow: 0 4px 0 #c9285e; rotate: -6deg; }
.rules li:nth-child(4n+2)::before { background: #ffb21e; box-shadow: 0 4px 0 #d0700c; rotate: 5deg; }
.rules li:nth-child(4n+3)::before { background: #3fb2ff; box-shadow: 0 4px 0 #1f73c4; }
.rules li:nth-child(4n)::before { background: #9b7bff; box-shadow: 0 4px 0 #6243d1; rotate: 4deg; }
.rules b { display: block; margin-bottom: 4px; font: 400 18px/1.35 var(--display); color: #6b2140; font-weight: 400; }

/* ============ modal ============ */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal-bg { position: absolute; inset: 0; background: rgba(255, 214, 228, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-box { position: relative; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); width: min(980px, 100%); height: min(86vh, 760px); border-radius: 30px; overflow: hidden; background: var(--paper); border: 4px solid #fff; box-shadow: 0 0 0 3px #ffd3e0, 0 30px 70px rgba(138, 31, 74, .3); animation: modal-in .45s cubic-bezier(.3, 1.4, .6, 1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.modal-box.wide { display: block; width: min(720px, 100%); height: auto; max-height: min(86vh, 760px); padding: 26px 26px 20px; overflow: auto; }
.m-close { position: absolute; right: 14px; top: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--pink); font-size: 16px; box-shadow: var(--shadow-sm); }
.m-close:hover { background: var(--pink); color: #fff; }
.m-photo { position: relative; min-height: 520px; }
.cast-showcase { overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 55%, #fff 0, #ffe9f0 55%, #ffd6e3 100%); }
.cast-showcase::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 120px; height: 26px; border-radius: 50%; background: rgba(255, 143, 177, .3); filter: blur(6px); z-index: -1; }
.cast-portrait { position: absolute; inset: 0; }
.cast-portrait .photo { position: absolute; inset: 0; }
.cast-stage { position: absolute; inset: 60px 8px 134px; }
.cast-stage canvas { display: block; touch-action: pan-y; width: 100%; height: 100%; cursor: grab; outline-offset: -3px; }
.cast-stage.grabbing canvas { cursor: grabbing; }
.cast-modes, .cast-controls { position: absolute; z-index: 2; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); white-space: nowrap; }
.cast-modes { top: 14px; }
.cast-controls { bottom: 100px; }
.cast-modes button, .cast-controls button { padding: 7px 13px; border-radius: 999px; font: 400 13px/1 var(--display); color: var(--ink-2); }
.cast-modes button[aria-pressed="true"], .cast-controls button[aria-pressed="true"] { background: var(--pink); color: #fff; }
.cast-render-status { position: absolute; z-index: 4; left: 0; right: 0; bottom: 82px; text-align: center; font: 400 12.5px/1 var(--cute); color: var(--ink-3); }
.shade { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 14px 20px 16px; background: linear-gradient(0deg, rgba(255, 255, 255, .96) 55%, rgba(255, 255, 255, 0)); }
.cast-portrait:not([hidden]) ~ .shade { background: linear-gradient(0deg, rgba(255, 255, 255, .95) 45%, rgba(255, 255, 255, 0)); }
.m-name { font: 400 30px/1.15 var(--display); color: #6b2140; }
.m-age { margin-top: 2px; font: 400 14px/1.3 var(--display); color: var(--pink); }
.m-made { margin-top: 6px; }
.m-body { overflow: auto; padding: 26px 26px 24px; }
.m-status { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding-right: 44px; font-size: 14px; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.hot { background: var(--pink); box-shadow: 0 0 0 4px var(--pink-4); }
.m-tagline { margin: 14px 0 6px; padding: 12px 16px; border-radius: 16px; background: var(--pink-5); border: 2px dashed var(--pink-3); font: 400 19px/1.45 var(--cute); color: #8a1f4a; }
.m-sec { margin-top: 18px; }
.m-sec h4 { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 8px; background: var(--sun-2); font: 400 14px/1.3 var(--display); color: #8a5a00; font-weight: 400; }
.m-sec p { margin: 0; line-height: 1.7; color: var(--ink); }
.prompt { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid #ffeef3; }
.pq { font: 400 13px/1.3 var(--display); color: var(--pink); }
.pa { margin-top: 3px; font: 400 16px/1.45 var(--cute); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; background: #fff; border: 2px solid #ffe0ea; font-size: 13px; color: var(--ink-2); }
.chip.no { border-color: #e8dfe3; color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(187, 143, 157, .6); }
.rels { display: grid; gap: 8px; }
.rel { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.rel > span:first-child { flex: 1; }
.rel .feel { font-family: var(--round); }
.recent { display: grid; gap: 7px; font-size: 13.5px; color: var(--ink); }
.recent .k { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 6px; background: #f6eef1; color: var(--ink-2); font: 400 11.5px/1.5 var(--display); }

.dt-head { padding-right: 44px; }
.dt-head h3 { margin: 0; font: 400 26px/1.25 var(--display); color: #6b2140; }
.dt-head p { margin: 4px 0 0; color: var(--pink); font: 400 14px/1.4 var(--display); }
.dt-lines { margin-top: 18px; display: grid; gap: 10px; max-height: 60vh; overflow: auto; padding: 4px 2px 6px; }
.bub { justify-self: start; max-width: 78%; padding: 10px 14px; border-radius: 4px 18px 18px 18px; background: #fff; border: 2px solid #ffe0ea; line-height: 1.55; }
.bub small { display: block; margin-bottom: 2px; font: 400 12px/1.2 var(--display); color: var(--pink); }
.bub.r { justify-self: end; border-radius: 18px 4px 18px 18px; background: #ff7aa3; border-color: #ff7aa3; color: #fff; }
.bub.r small { color: #ffe4ec; }
.dt-verdict { padding: 10px 14px; border-radius: 14px; background: var(--sun-2); color: #7a5200; font-size: 13.5px; }
.story .st-item { display: grid; grid-template-columns: 70px 1fr; gap: 12px; }
.st-m { padding-top: 3px; font: 400 13px/1.2 var(--display); color: var(--pink); }
.st-text { line-height: 1.6; }
.st-quote { margin-top: 4px; color: var(--ink-2); font-family: var(--cute); }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .stats { display: none; }
  .brand-name { font-size: 18px; }
  .view.lounge { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
  :root { --top-h: auto; }
  .top { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px 12px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .top-right { margin-left: auto; }
  .view.lounge { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .stage { height: 74vh; min-height: 460px; }
  .side { grid-template-rows: auto 520px; }
  .rules { grid-template-columns: 1fr; }
  .modal-box { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; max-height: 92vh; overflow: auto; }
  .m-body { overflow: visible; }
  .m-photo { min-height: 440px; }
  .crow { grid-template-columns: auto 1fr; }
  .cright { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 15px; }
  .ca-addr { display: none; }
  .hero { max-width: calc(100% - 32px); }
  .room-switch { right: 14px; }
  .rs-label { display: none; }
  .hud-tr, .hud-br { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev, .modal-box { animation: none; }
}

/* A paper cover, a thumb index and the pages of the same notebook. */
:root {
  --pink: #cc316d; --pink-2: #ed799d; --pink-3: #f3b4c6;
  --pink-4: #ffdae6; --pink-5: #fff0f5; --cream: #fff5f3; --paper: #fffaf5;
  --berry: #922b53; --ink: #53273a; --ink-2: #754758; --ink-3: #8a5968;
  --shadow-sm: 0 2px 0 #a958741b, 0 5px 14px #96495812;
  --shadow: 0 3px 0 #b578861c, 0 12px 24px #9649581a;
  --paper-edge: polygon(0 0,100% 0,100% 97%,98% 98%,95% 96.8%,91% 98.2%,87% 97.4%,84% 99%,80% 97.7%,75% 98.8%,72% 97%,68% 98.5%,64% 97.7%,60% 99.2%,56% 98%,52% 99.4%,48% 97.5%,44% 98.8%,39% 98%,35% 99.5%,29% 97.8%,24% 99%,19% 98%,15% 99.4%,10% 97.5%,6% 98.7%,2% 97.7%,0 99%);
  --stock: #ffe5eb url("/singularity/paper-show/blush-paper.webp") center / cover;
  --top-h: 72px;
}
body { background: #fff7f5 url("/singularity/paper.png") repeat; background-size: 240px; }
body, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #af245e; outline-offset: 3px; }
.top { height: var(--top-h); padding: 0 max(4vw,calc((100vw - 1440px)/2)); gap: clamp(16px,3vw,52px); border-bottom: 1px solid #dfbac4; background: #fffaf7f7; }
/* The show title is spelled with the same glyph stickers as the opening. */
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-title { display: flex; align-items: center; font-size: 32px; }
.brand-title img { display: block; width: auto; max-width: none; margin: 0 -.05em; filter: drop-shadow(0 1px 1px #8844611f); }
.brand-title img:nth-child(odd) { rotate: -3deg; } .brand-title img:nth-child(even) { rotate: 3deg; }
.brand-title img.gap { margin-right: .12em; } .brand-title img:last-child { align-self: flex-start; margin-left: -.1em; }
.brand:hover .brand-title img { animation: brand-wave .55s ease-in-out; animation-delay: calc(var(--i) * 35ms); }
@keyframes brand-wave { 45% { translate: 0 -.2em; } }
.brand-sub { padding-left: 3px; color: #92556b; font: 700 9px/1 ui-monospace,monospace; letter-spacing: .2em; white-space: nowrap; }
.nav { align-self: stretch; align-items: center; gap: clamp(6px,1.3vw,24px); }
.nav a { position: relative; padding: 10px 3px; border: 0; border-radius: 0; background: transparent; color: #77535f; box-shadow: none; font: 600 14px/1.3 var(--body); }
.nav a.on, .nav a:hover { background: transparent; box-shadow: none; color: #b6255f; }
.nav a.on::after { content: ""; position: absolute; bottom: 3px; height: 3px; left: 3px; right: 4px; background: #e15a8e; border-radius: 80% 25% 70% 30%; transform: rotate(-3deg); }
.nav .replay { flex: none; margin-left: clamp(2px,.6vw,10px); padding: 6px 12px; border: 1px solid #e6a9bd; border-radius: 99px; background: #fff5f8; color: #b6255f; box-shadow: none; font: 600 13px/1.2 var(--body); white-space: nowrap; }
.nav .replay:hover { background: #ffe4ee; }
.nav .replay span { font-size: .8em; }
.top-right { margin-left: auto; flex: none; }
/* The project's token address when published. */
.ca { gap: 7px; padding: 5px 9px 5px 5px; border: 1px solid #e3b3c3; border-radius: 6px; background: #fffaf7; color: #77535f; font: 600 12px/1.3 var(--body); }
.ca:not(:disabled) { cursor: pointer; }
.ca:not(:disabled):hover { background: #ffeef4; border-color: #db8ca4; }
.ca:disabled { cursor: default; border-style: dashed; }
.ca-label { padding: 3px 7px; border-radius: 4px; background: #ffe0ea; color: #a72d59; }
.ca-addr { color: #6f4656; font: 600 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace; }
.ca-act { color: #b6255f; }
.xlink { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid #f2afc4; border-radius: 50%; color: #7d3150; font-weight: 750; }
.ca-social { display: inline-flex; align-items: center; gap: 7px; }
.xlink[aria-disabled="true"] { color: #a78392; cursor: default; }
.xlink[href]:hover, .xlink[href]:focus-visible { background: #ffe3ee; color: #a91851; }
.ca:disabled .ca-addr, .ca:disabled .ca-act { display: none; }
.show-join { display: inline-flex; align-items: center; gap: 12px; padding: 9px 15px; font: 600 13px/1.35 var(--body); background: #fff5f6; border: 1px solid #db8ca4; border-radius: 6px; color: #a72d59; }
.show-join:hover { background: #ffe4ee; }
#show { scroll-margin-top: var(--top-h); }
.view.lounge { margin: 0 auto; width: min(100%,1600px); padding: 22px clamp(12px,2.5vw,45px) 26px; grid-template-rows: auto minmax(0,1fr); gap: 14px; }
.live-heading { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.live-heading h1, .paper-heading { width: fit-content; margin: 0; color: #c83370; font: 400 clamp(32px,3.3vw,54px)/1.2 var(--cute); letter-spacing: .015em; text-shadow: 1px 2px #fff,2px 3px #edafc4; }
.live-heading h1 { font-size: clamp(24px,2.3vw,35px); }
.live-heading .stats span { border: 1px solid #efd0d9; border-radius: 4px; color: #784555; }
.stage, .side-block, .modal-box { border-radius: 6px; border: 5px solid #fffaf7; box-shadow: 0 0 0 1px #e7c0cc,var(--shadow); }
.stage { background: #ffedf0 url("/singularity/paper.png") repeat; }
.stage-grain { position: absolute; inset: 0; pointer-events: none; background: url("/singularity/paper.png") repeat; mix-blend-mode: multiply; opacity: .27; }
.side-head { background: #ffe7ef; color: #a32d59; font-family: var(--cute); font-size: 20px; }
.rs-group, .roomtabs, .date-row, .date-bar, .hero p, .hud, .m-tagline, .prompt { border-radius: 5px; }
.rs-group button, .roomtabs button, .tabs button { border-radius: 3px; }
.rs-group button.on, .roomtabs button.on, .rs-group button.rs-after.on { background: #bd3769; box-shadow: 0 2px 0 #842447; }
.hero p::before { background: #bc3865; }
.page-head { position: relative; justify-items: start; text-align: left; align-content: center; gap: 12px; min-height: 184px; margin: 0 0 29px; padding: 24px clamp(20px,3vw,45px); background: var(--stock); clip-path: var(--paper-edge); }
.page-head::after { content: ""; pointer-events: none; position: absolute; right: 5%; top: 6%; height: 85%; width: 24%; background: url("/singularity/paper-show/camera.webp") center / contain no-repeat; transform: rotate(7deg); }
#v-couples .page-head::after { background-image: url("/singularity/paper-show/heart.webp"); }
#v-rules .page-head::after { background-image: url("/singularity/paper-show/letter.webp"); }
.page-head > * { position: relative; z-index: 1; max-width: 72%; }
.page-head p { font: 400 15px/1.55 var(--body); }
.pcard { border-radius: 3px; border: 1px solid #ebd2d7; background: #fffaf4; }
.pcard::before, .pcard:nth-child(even)::before, .pcard:nth-child(3n)::before { background: repeating-linear-gradient(-45deg,#f7acc2cf 0 3px,#ffd3dece 3px 6px); }
.pcard-img, .crow, .rules li, .m-sec h4 { border-radius: 4px; }
.pcard-name, .cnames, .m-name, .sec-title { font-family: var(--cute); color: #aa335e; }
.crow, .rules li { border: 1px solid #e9c7d1; box-shadow: var(--shadow-sm); background: #fffcf9; }
.rules li::before, .rules li:nth-child(n)::before, .steps li:nth-child(n)::before { border-radius: 43% 54% 40% 51%; background: #ce497b; color: white; box-shadow: 2px 2px #f4b5c9; }
.rules b { color: #a8315f; font: 400 21px/1.35 var(--cute); }
.modal-bg { background: #65223b55; }
.cast-showcase { background: radial-gradient(ellipse at center,#fffaf3 28%,#ffdbe6 86%); }
.m-sec h4 { background: #ffe0e9; color: #973456; }
body .join-hero { padding: 22px; background: var(--stock); clip-path: var(--paper-edge); }
body .join-hero img { height: 95px; object-fit: contain; animation: none; }
body .join h2 { background: #ffdeea; color: #96335b; font-family: var(--cute); }
body .join .say, body .join .steps li, body .join .fact { border-radius: 4px; }
body .join .steps b { font-family: var(--cute); color: #a5315e; }
body .join .steps li:nth-child(n)::before { background: #c94177; box-shadow: 1px 2px #f8c1d0; }
@media (max-width: 1000px) {
  .top { gap: 15px; padding-inline: 20px; }
  .nav { gap: 12px; }
}
@media (max-width: 900px) {
  :root { --top-h: 90px; }
  .top { height: auto; padding: 7px 16px 0; gap: 2px 14px; }
  .nav { padding: 0; gap: 20px; }
  .view.lounge { height: auto; grid-template-rows: auto auto auto; }
  .side { grid-template-rows: auto minmax(280px,500px); }
}
@media (max-width: 650px) {
  .top { justify-content: space-between; }
  .nav { justify-content: space-between; gap: 9px; }
  .nav a { font-size: 12px; padding: 8px 1px; }
  .nav .replay { padding: 4px 9px; font-size: 12px; }
  .brand-title { font-size: 21px; }
  .brand-sub { font-size: 7px; }
  .show-join { font-size: 12px; padding: 6px 10px; gap: 6px; }
  .top-right { flex-direction: column; align-items: flex-end; gap: 4px; }
  .ca { padding: 3px 7px 3px 3px; font-size: 11px; } .ca-label { padding: 2px 5px; }
  .view.page { padding: 18px 13px 60px; }
  .page-head { padding: 18px 14px 23px; min-height: 154px; gap: 9px; }
  .page-head::after { width: 15%; right: 3%; top: 5%; height: 43%; }
  .page-head > * { max-width: 100%; }
  .roomtabs button { padding: 8px 10px; font-size: 12px; }
  .page-head p { font-size: 13px; }
  .room-switch { gap: 3px; }
  .rs-group button { padding: 7px 9px; }
  .stats { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .pcard, .date-row, .watch { transition: none; }
}
body, .stage { background-blend-mode: multiply; }
.dates { grid-template-columns: minmax(0,1fr); overflow-x: hidden; }
.date-row { min-width: 0; }
.map-scroll { position: absolute; inset: 0; }
.pan-hint { display: none; }
.live-dot { background: #ce437c; width: 8px; height: 8px; border-radius: 100%; }
@media (max-width: 650px) {
  .stage { height: clamp(440px,60svh,545px); min-height: 0; }
  .map-scroll { inset: 62px 0 58px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #dd98af #ffebf1; scrollbar-width: thin; }
  .map-scroll #field { position: relative; width: max(100%,660px); height: 100%; }
  .stage-grain { pointer-events: none; }
  .pan-hint { display: block; position: absolute; top: 49px; right: 10px; color: #91536a; font: 500 10px/1.2 var(--body); }
  .hero { bottom: 8px; left: 7px; max-width: calc(100% - 14px); }
  .hero p { padding: 6px 8px 6px 31px; font-size: 11px; }
  .hero p::before { top: 6px; left: 6px; font-size: 9px; }
}
.section-ink { display: block; height: clamp(52px,5.5vw,77px); width: auto; max-width: 100%; object-fit: contain; }
.live-heading .section-ink { height: clamp(37px,3.6vw,51px); }

