/* The comparison game (scripts/site/play.js) and the two pages that carry it. Nosy's own colours and typeface. */
:root { --paper:#EDEBE6; --paper-light:#F4F2EE; --paper-warm:#E6E1D8; --card:#FFFFFF; --ink:#141414; --muted:#5F5B55; --line:#DDD9D2; --cobalt:#2B54FF; --tomato:#EE4B2B; --sun:#F3C53B; --board:#141414; --snow:#FFFFFF; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --paper:#1C1A17; --paper-light:#242119; --paper-warm:#15130F; --card:#26231F; --ink:#F2EFEA; --muted:#B5ADA2; --line:#3A3530; --cobalt:#4D6EFF; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: linear-gradient(var(--paper-light), var(--paper) 55%, var(--paper-warm)) fixed; color: var(--ink); font: 500 17px/1.5 Figtree, -apple-system, system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
[hidden] { display: none !important; }

.solid { display: block; width: 100%; padding: 17px 22px; border: 0; border-radius: 999px; background: var(--board); color: var(--snow); font-weight: 800; font-size: 18px; text-align: center; text-decoration: none; }
.ghost { display: block; width: 100%; margin-top: 12px; padding: 15px 22px; border: 2px solid var(--ink); border-radius: 999px; background: none; color: var(--ink); font-weight: 800; font-size: 18px; text-align: center; }
.soon { display: inline-block; margin: 0; padding: 12px 18px; border: 2px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 16px; font-weight: 700; }
.quiet { display: inline-block; margin-top: 14px; padding: 6px 10px; border: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* The game */
#play { width: 100%; }
#play .wait { margin: 60px 0; text-align: center; color: var(--muted); font-weight: 600; }
.intro { padding-top: 6vh; text-align: center; }
.fan { display: flex; justify-content: center; margin: 0 0 30px; }
.fan .cover { position: relative; flex: none; width: 96px; aspect-ratio: 2 / 3; padding: 8px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 20px rgba(42, 37, 32, .22); }
.fan .cover-name { font-size: 12px; letter-spacing: 0; }
.fan .cover:nth-child(1) { transform: rotate(-9deg) translate(14px, 8px); }
.fan .cover:nth-child(2) { z-index: 1; transform: translateY(-6px); }
.fan .cover:nth-child(3) { transform: rotate(9deg) translate(-14px, 8px); }
.intro h1 { margin: 0 0 12px; font-size: clamp(30px, 8vw, 40px); font-weight: 900; line-height: 1.04; letter-spacing: -1.4px; text-wrap: balance; }
.intro .lead { margin: 0 auto 26px; max-width: 30ch; color: var(--muted); font-size: 17px; }

.game { display: flex; flex-direction: column; align-items: center; outline: none; }
.count { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.deck { position: relative; width: min(264px, 64vw); aspect-ratio: 2 / 3; touch-action: pan-y; }
.card { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--board); box-shadow: 0 16px 30px rgba(42, 37, 32, .26); transition: transform .24s cubic-bezier(.3, .7, .3, 1), opacity .24s; cursor: grab; user-select: none; -webkit-user-select: none; }
.card.held { transition: none; cursor: grabbing; }
.card.under { transform: translateY(12px) scale(.93) rotate(3deg); filter: brightness(.82); box-shadow: none; pointer-events: none; }
.card.under.rising { transform: none; filter: none; }
.cover { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; }
.cover-name { color: #fff; font-weight: 900; font-size: 26px; line-height: 1.05; letter-spacing: -.6px; text-align: center; overflow-wrap: break-word; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; -webkit-user-drag: none; pointer-events: none; }
.cover.has-art img { opacity: 1; }
.wash { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: #fff; pointer-events: none; }
.wash svg { width: 84px; height: 84px; }
.wash-love { background: var(--cobalt); }
.wash-hate { background: var(--tomato); }
/* A fixed height, whatever the title's length: the buttons below never move from one card to the next. */
.label { margin-top: 22px; height: 76px; text-align: center; }
.label strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; text-wrap: balance; }
.label span { color: var(--muted); font-size: 15px; font-weight: 600; }
.acts { display: flex; align-items: flex-start; justify-content: center; gap: 18px; margin-top: 16px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 700; }
.act .dot { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; transition: transform .12s; }
.act:active .dot { transform: scale(.92); }
.act .dot svg { width: 30px; height: 30px; }
.act-hate .dot { background: var(--card); color: var(--tomato); box-shadow: 0 6px 14px rgba(42, 37, 32, .14); }
.act-love .dot { background: var(--cobalt); color: #fff; box-shadow: 0 8px 18px rgba(43, 84, 255, .34); }
.act-skip { align-self: center; margin-bottom: 26px; padding: 13px 18px; border-radius: 999px; background: var(--board); color: var(--snow); }

.result { text-align: center; outline: none; }
.pair { margin: 0 0 14px; color: var(--muted); font-size: 16px; font-weight: 700; }
.ring { position: relative; width: 176px; height: 176px; margin: 0 auto 16px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 14; }
.ring .track { stroke: var(--line); }
.ring .fill { stroke: var(--cobalt); stroke-linecap: round; }
.ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 56px; font-weight: 900; letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.ring small { margin-top: 12px; font-size: 26px; letter-spacing: 0; }
.verdict { margin: 0 auto 26px; max-width: 18ch; font-size: clamp(26px, 7vw, 34px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.group { margin: 0 0 22px; text-align: left; }
.group h3 { display: inline-block; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 800; color: #fff; transform: rotate(-2deg); }
.g-love h3 { background: var(--cobalt); }
.g-hate h3 { background: var(--tomato); }
.g-clash h3 { background: var(--sun); color: #141414; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: none; width: 76px; margin: 0; }
.thumb .cover { position: relative; aspect-ratio: 2 / 3; padding: 6px; border-radius: 10px; overflow: hidden; }
.thumb .cover-name { font-size: 10.5px; letter-spacing: 0; }
.thumb figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cta { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta .more { margin: 0 auto 18px; max-width: 34ch; font-size: 17px; font-weight: 600; text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) { .card, .act .dot, .cover img { transition: none; } }

/* Making a shelf of one's own: a few more works, a first name, the link. */
a.ghost { text-decoration: none; }
.make-head { margin: 0 0 18px; text-align: center; }
.make-head h2 { margin: 0 0 6px; font-size: clamp(26px, 7vw, 34px); font-weight: 900; line-height: 1.05; letter-spacing: -1px; text-wrap: balance; }
.make-head p { margin: 0 auto; max-width: 30ch; color: var(--muted); font-size: 16px; }
.finish { width: auto; margin-top: 22px; padding: 12px 26px; font-size: 16px; }
.ask { padding-top: 5vh; text-align: center; outline: none; }
.ask h1, .ask h2 { margin: 0 auto 18px; max-width: 16ch; font-size: clamp(30px, 8vw, 40px); font-weight: 900; line-height: 1.04; letter-spacing: -1.4px; text-wrap: balance; }
.ask .lead { margin: 0 auto 22px; max-width: 32ch; color: var(--muted); }
.ask input { display: block; width: 100%; margin: 0 0 14px; padding: 16px 20px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); font: inherit; font-size: 20px; font-weight: 700; text-align: center; }
.ask input:focus { outline: none; border-color: var(--cobalt); }
.ask .error { margin: 0 0 14px; color: var(--tomato); font-weight: 700; }
.ask .note { margin: 16px auto 0; max-width: 36ch; color: var(--muted); font-size: 14px; }
.ask button:disabled { opacity: .5; }
.linkbox { display: block; margin: 0 0 14px; padding: 15px 16px; border: 2px dashed var(--line); border-radius: 18px; background: var(--card); font-size: 17px; font-weight: 800; text-decoration: none; overflow-wrap: anywhere; }
.replies { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.replies h2 { margin: 0 0 12px; max-width: none; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.replies .note { margin: 0; max-width: none; font-size: 16px; }
.replies ul { margin: 0; padding: 0; list-style: none; }
.replies li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.replies .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replies .pct { color: var(--cobalt); font-weight: 900; font-variant-numeric: tabular-nums; }
.replies a { padding: 7px 14px; border-radius: 999px; background: var(--board); color: var(--snow); font-size: 14px; font-weight: 800; text-decoration: none; }
.check { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.ask .check input { flex: none; display: inline-block; width: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--cobalt); }
/* Looking works up by title (common.js finder): the add step, and "My shelf". */
.finder { margin: 0 0 6px; text-align: left; }
.ask .finder input { text-align: left; font-size: 18px; }
.found { margin: 0; padding: 0; list-style: none; }
.found .none { padding: 14px 4px; color: var(--muted); font-size: 15px; }
.hit { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hit .cover.mini { position: relative; inset: auto; flex: none; width: 44px; height: 62px; padding: 3px; border-radius: 8px; overflow: hidden; }
.hit .cover.mini .cover-name { font-size: 8px; letter-spacing: 0; }
.hit-text { flex: 1; min-width: 0; line-height: 1.25; }
.hit-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.hit-text span { color: var(--muted); font-size: 14px; }
.pick { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--line); border-radius: 50%; background: var(--card); color: var(--muted); cursor: pointer; }
.pick svg { width: 20px; height: 20px; }
.pick-love.on { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.pick-hate.on { border-color: var(--tomato); background: var(--tomato); color: #fff; }
.pick:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.tally { margin: 16px 0 12px; font-weight: 800; }
/* The taste portrait, under the link once the shelf is made, and on "My shelf". */
.portrait { margin: 26px 0 8px; padding: 20px 22px 16px; border-radius: 22px; background: var(--sun); color: #141414; text-align: left; transform: rotate(-.6deg); }
.portrait h2, .portrait h3 { margin: 0 0 8px; max-width: none; font-size: 15px; font-weight: 900; letter-spacing: 0; line-height: 1.2; }
.portrait-text { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.3; text-wrap: pretty; }
.portrait-text.wait { opacity: .55; }
.ask .portrait .note { margin: 10px 0 0; max-width: none; color: rgba(20, 20, 20, .65); font-size: 13px; }
.add-more { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); text-align: left; }
.add-more h2 { margin: 0 0 4px; max-width: none; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.ask .add-more .note { margin: 0 0 14px; max-width: none; }
.chips { display: flex; gap: 6px; margin: -4px 0 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 13px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper-light); }
.searching { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* A work's page (scripts/site/workpages.mjs), after play.css: the band in the colour of its universe, the cover, Nosy's
   line on it, and the two answers; then the debate, the genres, where to find it, and more of the same universe. */
.in { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-weight: 900; font-size: 26px; letter-spacing: -1px; text-decoration: none; }
.brand .bubble { width: 36px; height: 36px; }
.top nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 700; }
.top nav a { color: inherit; opacity: .86; text-underline-offset: 3px; }
.top nav .pill { padding: 8px 16px; border-radius: 999px; background: #fff; color: #141414; opacity: 1; text-decoration: none; }

.w-hero { background: var(--k); color: var(--on); overflow: hidden; }
.w-in { display: grid; gap: 28px; padding-top: 34px; padding-bottom: 56px; }
.w-cover { justify-self: center; width: min(62vw, 260px); margin: 0; aspect-ratio: 2 / 3; border: 5px solid #fff; border-radius: 22px; background: rgba(20, 20, 20, .2); overflow: hidden; box-shadow: 0 22px 46px rgba(20, 20, 20, .28); transform: rotate(-3deg); }
.w-cover.square { aspect-ratio: 1; }
.w-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A work without a cover: the app's coloured block, its title in big type. */
.w-drawn { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; box-sizing: border-box; width: 100%; height: 100%; padding: 22px 20px; background: var(--t); color: #fff; overflow: hidden; }
.w-drawn b { font-size: clamp(26px, 4.2vw, 40px); font-weight: 900; line-height: 1; letter-spacing: -.03em; overflow-wrap: anywhere; hyphens: auto; }
.w-drawn i { font-style: normal; font-size: 15px; font-weight: 700; opacity: .82; }
.w-drawn.big b { margin-top: auto; }
.w-more .w-drawn { aspect-ratio: 2 / 3; margin-bottom: 8px; padding: 12px; border-radius: 12px; justify-content: flex-end; }
.w-more .w-drawn b { font-size: 17px; }
.w-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.w-kind a { padding: 6px 14px; border-radius: 999px; background: #fff; color: #141414; font-weight: 900; text-decoration: none; }
.w-kind span { opacity: .86; }
.w-hero h1 { margin: 0 0 18px; font-size: clamp(40px, 10vw, 76px); font-weight: 900; line-height: .95; letter-spacing: -.045em; text-wrap: balance; overflow-wrap: anywhere; }
/* The one loud thing on the page: Nosy's line, as on the app's Rate card. */
.w-line { position: relative; margin: 0 0 28px; padding-left: 20px; max-width: 26ch; font-size: clamp(24px, 5.4vw, 34px); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
.w-line::before { content: ''; position: absolute; left: 0; top: .12em; bottom: .12em; width: 6px; border-radius: 3px; background: currentColor; opacity: .5; }
.w-rate { display: flex; flex-wrap: wrap; gap: 12px; }
.w-rate button { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border: 3px solid #fff; border-radius: 999px; font: inherit; font-size: 18px; font-weight: 900; cursor: pointer; transition: transform 160ms ease; }
.w-rate button svg { width: 22px; height: 22px; }
.w-rate .love { background: #fff; color: #2B54FF; }
.w-rate .hate { background: #141414; color: #fff; border-color: #141414; }
.w-rate button:hover { transform: translateY(-2px); }
.w-rate button[aria-pressed="true"] { outline: 4px solid #F3C53B; outline-offset: 2px; }
.w-rate button:focus-visible { outline: 4px solid #F3C53B; outline-offset: 2px; }
.w-ask { margin: 16px 0 0; max-width: 44ch; font-size: 16px; font-weight: 600; opacity: .9; }

.w-flow { max-width: 380px; margin: 40px auto 0; }
.w-facts { display: grid; gap: 34px; padding: 46px 0 8px; }
.w-facts:empty { display: none; }
.w-facts h2, .w-more h2, .w-all h2 { margin: 0 0 12px; font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.w-debate .q { margin: 0 0 14px; max-width: 34ch; font-size: 22px; font-weight: 800; line-height: 1.2; }
.w-debate .sides { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.w-debate .sides span { padding: 9px 16px; border: 2px solid var(--ink); border-radius: 999px; font-weight: 800; }
.w-genres ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-genres li { padding: 7px 14px; border-radius: 999px; background: var(--card); font-weight: 700; }
.w-shops .links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.w-shops .links a { padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; text-decoration: none; }
.w-shops .note { margin: 0; max-width: 60ch; color: var(--muted); font-size: 13px; }

.w-more { padding: 44px 0 70px; }
.w-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 14px; margin: 0; padding: 0; list-style: none; }
.w-more a { display: block; color: inherit; font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; }
.w-more img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; margin-bottom: 8px; border-radius: 12px; object-fit: cover; background: var(--card); }
.w-more a:hover span { text-decoration: underline; }

.w-list-head { padding-top: 34px; padding-bottom: 50px; }
.w-list-head h1 { margin: 0 0 14px; font-size: clamp(38px, 8vw, 64px); font-weight: 900; line-height: .96; letter-spacing: -.04em; text-wrap: balance; }
.w-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.w-jump li { border: 3px solid #fff; border-radius: 999px; }
.w-jump a { display: block; padding: 7px 15px; color: #fff; font-weight: 900; text-decoration: none; }
.w-all { padding: 36px 22px 60px; }
.w-all section { padding-top: 26px; }
.w-all ul { columns: 15rem; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.w-all li { break-inside: avoid; padding: 3px 0; font-weight: 600; }
.w-all li a { color: inherit; }
.w-all li span { color: var(--muted); font-size: 14px; }

.foot { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 1120px; margin: 0 auto; padding: 26px 22px 44px; color: var(--muted); font-size: 14px; font-weight: 600; }
.foot a { color: inherit; }
.foot .langs { display: flex; flex-wrap: wrap; gap: 6px 14px; flex-basis: 100%; }
.foot .langs b { color: var(--ink); }

@media (min-width: 900px) {
  .w-in { grid-template-columns: 320px 1fr; align-items: center; gap: 64px; padding-top: 50px; padding-bottom: 84px; }
  .w-cover { width: 100%; }
  .w-facts { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .w-rate button { transition: none; } .w-rate button:hover { transform: none; } }
