:root {
  --bg: #ffffff;
  --ink: #3a2433;
  --muted: #86707c;
  --line: #f0e2e8;
  --accent: #b8457f;
  --peach-soft: #fef0e8;

  --p1: #f6b5a3;
  --p2: #fad1ad;
  --p3: #f7f0f3;
  --p4: #efb8d6;
  --p5: #d9a3c4;

  --display: "Young Serif", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
}
.wrap { padding: 0 clamp(20px, 4vw, 64px) 48px; }

.flag {
  height: 10px;
  background: linear-gradient(90deg,
    var(--p1) 0 20%, var(--p2) 20% 40%, var(--p3) 40% 60%, var(--p4) 60% 80%, var(--p5) 80%);
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 16px;
}
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  margin: 0;
}
h1 em { font-style: normal; color: var(--accent); }
.sub { color: var(--muted); margin: 8px 0 0; max-width: 56ch; }
.count { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.count b { color: var(--ink); font-family: var(--display); font-weight: 400; font-size: 1.5rem; }

.canon {
  display: flex;
  gap: 12px;
  background: var(--peach-soft);
  border: 1px solid var(--p2);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: .92rem;
}
.canon strong { font-family: var(--display); font-weight: 400; white-space: nowrap; }

.grid {
  --cols: 6;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 18px;
}
@media (min-width: 2000px) { .grid { --cols: 8; } }
@media (max-width: 1280px) { .grid { --cols: 4; } }
@media (max-width: 900px) { .grid { --cols: 3; } }
.card {
  font: inherit;
  color: inherit;
  text-decoration: none;
  text-align: left;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: transform .15s, border-color .15s;
}
.card:hover { border-color: var(--p5); transform: translateY(-2px); }

.poster {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}
.poster.has-img { position: relative; padding: 0; background: var(--line); }
:is(.poster, .ship-placeholder, .ship-cover-text).c0 { background: linear-gradient(160deg, #fde3d9, #f6b5a3); }
:is(.poster, .ship-placeholder, .ship-cover-text).c1 { background: linear-gradient(160deg, #feecdc, #fad1ad); }
:is(.poster, .ship-placeholder, .ship-cover-text).c2 { background: linear-gradient(160deg, #fbe5f0, #efb8d6); }
:is(.poster, .ship-placeholder, .ship-cover-text).c3 { background: linear-gradient(160deg, #f5e4ef, #d9a3c4); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .pt { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; }
.poster .py { font-size: .75rem; letter-spacing: .12em; opacity: .7; }

.body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.meta .type { color: var(--accent); font-weight: 700; }
.card h2 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.couple { font-size: .88rem; color: var(--muted); margin: 0; }
.couple b { color: var(--ink); font-weight: 600; }

.badge {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #7a5a6c;
  background: #f3eef1;
  border: 1px dashed var(--p5);
}

@media (max-width: 560px) {
  .canon { flex-direction: column; gap: 4px; }
}

[hidden] { display: none !important; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tag {
  font-size: .72rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--peach-soft);
}
.tag.tw { background: #fff4e0; color: #8a5a12; border: 1px solid #f0d3a0; }
.more { font-size: .78rem; color: var(--accent); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 36, 51, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10;
}
.controls {
  display: grid;
  grid-template-columns: 1fr repeat(4, auto);
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.search, select {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
select { cursor: pointer; min-width: 150px; }
.search:focus-visible, select:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; }
.pager .chip[aria-current="page"] { background: #fbeaf3; border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pager .gap { color: var(--muted); padding: 0 4px; }
.foot { border-top: 1px solid var(--line); padding: 20px; text-align: center; font-size: .85rem; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

@media (max-width: 820px) {
  .controls { grid-template-columns: 1fr 1fr; }
  .controls .search { grid-column: 1 / -1; }
  select { min-width: 0; }
}

.filters { padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.filters .row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.label {
  flex: 0 0 76px;
  padding-top: 8px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  text-decoration: underline 2px var(--p4);
  text-underline-offset: 5px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--p5); }
.chip:is([aria-pressed="true"], .on) { background: #fbeaf3; border-color: var(--accent); color: var(--accent); font-weight: 600; }
#hide .chip:is([aria-pressed="true"], .on) {
  background: #fff4e0;
  border-color: #e6b866;
  color: #8a5a12;
  text-decoration: line-through;
}
.hint { font-size: .8rem; color: var(--muted); margin: 2px 0 14px; }
.status { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); min-height: 34px; }
.status b { color: var(--ink); }
.clear, .reveal {
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--p4);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.clear:hover, .reveal:hover { background: #fbeaf3; }

@media (max-width: 560px) {
  .filters .row { flex-direction: column; gap: 6px; }
  .label { flex: none; padding-top: 0; }
}

body.locked-scroll { overflow: hidden; }
.sheet {
  position: relative;
  background: #fff;
  border-radius: 24px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(58, 36, 51, .25);
}
.sheet .in { padding: 20px 26px 26px; }
.sheet h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.15; margin: 6px 0 2px; }
.sheet .meta, .sheet h2 { padding-right: 40px; }
.sheet .close { background: var(--line); }
.sheet .orig { color: var(--muted); font-style: italic; margin: 0; }
.sheet .syn { margin: 14px 0 18px; font-size: 1rem; }
.sheet h3 { margin-top: 18px; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  font: inherit;
  color: var(--ink);
  border: 0;
  background: rgba(255, 255, 255, .8);
  border-radius: 50%;
  cursor: pointer;
}
.close:hover { background: #fff; }
dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; padding-top: 3px; }
dd { margin: 0; }
h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 8px; }
.couples { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.couples li { border-left: 3px solid var(--p4); padding: 2px 0 2px 12px; }
.couples .name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.couples .ship { font-size: .85rem; color: var(--muted); font-style: italic; }
.couples .who { font-size: .86rem; margin-top: 2px; }
.couples .who span { color: var(--muted); }
.outcome { margin: 6px 0 0; font-size: .92rem; }

.spoilers {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fbeaf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.spoilers p { margin: 0; color: var(--accent); font-size: .88rem; }
.spoilers.open { display: block; background: none; padding: 0; }
.ending { margin: 0 0 14px; font-size: .9rem; }
.end, .fate {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f3eef1;
  color: #6b5563;
}
.end.happy, .fate.together { background: #e6f4ea; color: #2f6b3f; }
.end.sad, .fate.apart { background: #eef0f7; color: #4b5578; }
.end.byg, .fate.death { background: #f9e3e3; color: #8c2f2f; }

:root { --surface: #fff; --soft: #fbeaf3; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.logo { font-family: var(--display); font-size: 1.6rem; color: var(--ink); text-decoration: none; }
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nav-links > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav-links > a:hover { background: var(--soft); }
.nav-links > a[aria-current="page"] { color: var(--accent); background: var(--soft); }
.suggest-btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  color: var(--accent); background: transparent;
  border: 1px solid var(--p4); border-radius: 999px; padding: 7px 14px;
}
.suggest-btn:hover { background: var(--soft); }
.theme { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.theme button {
  font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer;
  background: none; border: 0; border-radius: 999px; padding: 4px 12px;
}
.theme button[aria-pressed="true"] { background: var(--ink); color: var(--bg); font-weight: 600; }
.link {
  font: inherit; color: var(--accent); background: none; border: 0; padding: 0;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.foot { color: var(--muted); display: grid; gap: 6px; }
.foot p { margin: 0; }
.foot .link { color: var(--muted); }
.foot .link:hover { color: var(--accent); }

header.page-head { display: block; padding: 20px 0 8px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); }
.kicker, .eyebrow {
  margin: 0; font-family: var(--body); font-size: .75rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow { color: var(--muted); margin-bottom: 12px; }
a.chip { text-decoration: none; display: inline-block; }
a.chip span { color: var(--muted); }

header.hero { display: flex; flex-wrap: wrap; gap: 36px; align-items: stretch; padding: 32px 0 40px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.hero .sub { font-size: 1.05rem; margin: 0; }
.hero-search { display: flex; gap: 8px; align-items: center; max-width: 560px; border: 2px solid var(--ink); border-radius: 14px; padding: 5px 5px 5px 16px; background: var(--surface); }
.hero-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; border: 0; outline: none; background: transparent; color: var(--ink); padding: 8px 0; }
.hero-search button { font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer; }
.featured { flex: 1 1 320px; min-width: 0; background: var(--soft); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.featured-top { display: flex; gap: 14px; align-items: flex-end; }
.featured-poster { width: 120px; flex: none; border-radius: 10px; overflow: hidden; }
.featured-poster .poster { padding: 10px; }
.featured-poster .pt { font-size: 1rem; }
.featured .meta { display: block; }
.featured h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: 4px 0; }
.featured-title { margin: 0; color: var(--muted); font-size: .9rem; }
.featured .syn { margin: 0; }
.featured .tag { background: var(--surface); }
.featured .send { align-self: flex-start; }

.shelf { border-top: 1px solid var(--line); padding: 24px 0 4px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.shelf-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.shelf-head a { color: var(--accent); font-weight: 600; }
.shelf-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; cursor: grab; }
.shelf-row::-webkit-scrollbar { display: none; }
.shelf-row.dragging { cursor: grabbing; user-select: none; }
.shelf-row.dragging .tile { pointer-events: none; }
.shelf-row .tile { width: 160px; flex: none; }

.tile { font: inherit; color: var(--ink); text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.tile .poster { border-radius: 10px; overflow: hidden; padding: 10px; transition: transform .15s; }
.tile .pt { font-size: 1rem; }
.tile:hover .poster { transform: translateY(-2px); }
.tile-meta { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile-meta b { color: var(--accent); }

.banner { margin-top: 32px; border: 1px dashed var(--p5); border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.banner h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 4px; }
.banner p { margin: 0; color: var(--muted); }

.sheet.wide { max-width: 820px; }
.sheet-top { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 16px; }
.sheet-poster { border-radius: 12px; overflow: hidden; }
.sheet-info h2 { margin-top: 4px; }
.sheet-info .syn { margin: 10px 0 12px; }
.sheet .tags { margin-bottom: 4px; }
.couples .pair { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.monos { display: flex; flex: none; }
.mono {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 1.1rem; color: #3a2433; background: var(--p1);
}
.mono.m1 { background: var(--p5); margin-left: -12px; box-shadow: 0 0 0 3px var(--surface); }
.pair-text { min-width: 0; }
.spoilers > div > b { font-family: var(--display); font-weight: 400; font-size: 1.15rem; color: var(--ink); }
.spoilers > div > p { margin: 2px 0 0; }
.spoilers.open .outcome { color: var(--ink); }
.related { margin-top: 22px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 620px) {
  .sheet-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .sheet-poster .pt, .sheet-poster .py { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.explore-block { padding: 20px 0; }
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.door { color: #3a2433; text-decoration: none; border-radius: 16px; padding: 18px; min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; transition: transform .15s; }
.door:hover { transform: translateY(-2px); }
.door-name { font-family: var(--display); font-size: 1.5rem; }
.door-n { font-weight: 600; font-size: .9rem; }
.explore-cols { display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line); }
.explore-cols > section { flex: 1 1 380px; min-width: 0; }
.bars { list-style: none; margin: 0 0 10px; padding: 0; }
.bars li { border-bottom: 1px solid var(--line); }
.bars a { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 44px; gap: 12px; align-items: center; padding: 9px 0; color: var(--ink); text-decoration: none; }
.bars a:hover .bar-name { color: var(--accent); }
.bar-name { font-weight: 600; }
.bar { height: 10px; border-radius: 5px; background: var(--p3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 5px; background: var(--p5); }
.bar-n { text-align: right; color: var(--muted); font-size: .9rem; }
.surprise { margin-top: 24px; background: var(--peach-soft); border: 1px solid var(--p2); border-radius: 16px; padding: 18px; display: grid; gap: 10px; justify-items: start; }
.surprise h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 0; }
.surprise p { margin: 0; color: var(--muted); font-size: .9rem; }
.surprise .chip:has(input:checked) { background: #fff4e0; border-color: #e6b866; color: #8a5a12; text-decoration: line-through; }

header.ships-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ships-head .search { flex: 0 1 340px; }
.status-line { color: var(--muted); font-size: .9rem; }
.status-line b { color: var(--ink); }
.ships { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
@media (min-width: 2200px) { .ships { --cols: 6; } }
@media (max-width: 1500px) { .ships { --cols: 4; } }
@media (max-width: 1150px) { .ships { --cols: 3; } }
@media (max-width: 820px) { .ships { --cols: 2; } }
@media (max-width: 520px) { .ships { --cols: 1; } }
.ship-card {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s;
}
.ship-card:hover { border-color: var(--p5); transform: translateY(-2px); }
.ship-card .monos { margin-bottom: 8px; }
.ship-card .mono { width: 52px; height: 52px; font-size: 1.3rem; }
.ship-name { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.ship-couple { font-weight: 600; }
.ship-title { color: var(--muted); font-size: .88rem; }
.ship-hidden { align-self: flex-start; margin-top: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); background: var(--p3); border-radius: 999px; padding: 4px 10px; }
.suggest-card { border-style: dashed; border-color: var(--p5); justify-content: center; min-height: 200px; }
.suggest-card .ship-name { color: var(--ink); font-size: 1.3rem; }
.ship-add { margin-top: 6px; color: var(--accent); font-weight: 700; }

.suggest h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; margin: 16px 0; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-size: .8rem; font-weight: 600; }
.form-grid .opt { font-weight: 400; color: var(--muted); }
.form-grid input, .form-grid textarea, .form-grid select { display: block; margin-top: 5px; }
.form-grid input, .form-grid textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--surface, #fff);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0;
}
.form-grid select { min-width: 0; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus-visible, .form-grid textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { background: #fbe8e6; color: #8c2f2f; border-radius: 10px; padding: 10px 14px; font-size: .88rem; margin-bottom: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.send {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 8px 18px;
}
.send:disabled { opacity: .6; cursor: wait; }
.thanks h2 { margin-top: 0; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1218;
  --surface: #251a22;
  --soft: #3d2232;
  --ink: #f4e8ee;
  --muted: #b8a1ae;
  --line: #3b2b35;
  --accent: #f08cbf;
  --peach-soft: #33242c;
}
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .search,
:root[data-theme="dark"] select,
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .clear,
:root[data-theme="dark"] .reveal,
:root[data-theme="dark"] .sheet { background: var(--surface); }
:root[data-theme="dark"] .chip:is([aria-pressed="true"], .on),
:root[data-theme="dark"] .pager .chip[aria-current="page"],
:root[data-theme="dark"] .clear:hover,
:root[data-theme="dark"] .reveal:hover,
:root[data-theme="dark"] .spoilers:not(.open) { background: var(--soft); }
:root[data-theme="dark"] .canon { background: #2b1f1c; border-color: #5a3f33; }
:root[data-theme="dark"] .poster { color: #3a2433; }
:root[data-theme="dark"] .overlay { background: rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .sheet { box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .close { background: rgba(37, 26, 34, .85); }
:root[data-theme="dark"] .sheet .close { background: var(--line); }
:root[data-theme="dark"] .badge { background: #2f242b; color: #d8bfcd; }
:root[data-theme="dark"] .tag.tw,
:root[data-theme="dark"] #hide .chip:is([aria-pressed="true"], .on) { background: #3a2d17; color: #f2c879; border-color: #6b5326; }
:root[data-theme="dark"] .end,
:root[data-theme="dark"] .fate { background: #2f242b; color: #d8bfcd; }
:root[data-theme="dark"] .end.happy, :root[data-theme="dark"] .fate.together { background: #1e3526; color: #8fd3a3; }
:root[data-theme="dark"] .end.sad, :root[data-theme="dark"] .fate.apart { background: #252a3d; color: #aab4e0; }
:root[data-theme="dark"] .end.byg, :root[data-theme="dark"] .fate.death { background: #3d1f1f; color: #f0a3a3; }
:root[data-theme="dark"] .errors { background: #3d1f1f; color: #f0a3a3; }
:root[data-theme="dark"] .send { color: #1a1218; }
:root[data-theme="dark"] .hero-search button { color: #1a1218; }
:root[data-theme="dark"] .ship-hidden,
:root[data-theme="dark"] .bar { background: #33242c; }
:root[data-theme="dark"] .surprise { background: #2b1f1c; border-color: #5a3f33; }
:root[data-theme="dark"] .surprise .chip:has(input:checked) { background: #3a2d17; color: #f2c879; border-color: #6b5326; }
:root[data-theme="dark"] .door { filter: saturate(.85) brightness(.92); }

a.tile, a.ship-card, a.chip, a.clear, a.reveal, a.send { text-decoration: none; }
a.reveal, a.clear, a.send { display: inline-block; }
a.tile, a.ship-card { color: var(--ink); }

.page-sheet { max-width: 900px; max-height: none; overflow: visible; margin: 12px auto 0; box-shadow: none; border: 1px solid var(--line); }
.page-sheet .sheet-top { grid-template-columns: 240px minmax(0, 1fr); }
.page-sheet h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; margin: 4px 0 2px; }
.back { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 600; }
.open-page { display: inline-block; margin-top: 18px; font-size: .85rem; color: var(--muted); }

.surprise .chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.surprise .chip input { margin: 0; accent-color: #8a5a12; }

.more-countries summary { color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; margin: 10px 0; }

.js .controls .go { display: none; }
.controls .go { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; }

@media (max-width: 620px) {
  .page-sheet .sheet-top { grid-template-columns: 110px minmax(0, 1fr); }
}

.sheet::-webkit-scrollbar { width: 12px; }
.sheet::-webkit-scrollbar-track { background: transparent; margin: 22px 0; }
.sheet::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--p1), var(--p2), var(--p3), var(--p4), var(--p5)) padding-box;
}
@supports not selector(::-webkit-scrollbar) {
  .sheet { scrollbar-width: thin; scrollbar-color: var(--p4) transparent; }
}

img.mono { object-fit: cover; padding: 0; }
.monos.big .mono { width: 52px; height: 52px; font-size: 1.3rem; }
.couples .ship { font-size: .85rem; color: var(--accent); font-style: italic; text-decoration: none; }
.couples .ship:hover { text-decoration: underline; }

.ship-card { position: relative; overflow: hidden; }
.ship-cover { width: calc(100% + 40px); height: auto; margin: -20px -20px 8px; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.ship-title b { color: var(--accent); }
.spoiler-note { margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--peach-soft); font-size: .9rem; }
.spoiler-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #8a5a12; background: #fff4e0; border: 1px solid #f0d3a0; border-radius: 999px; padding: 2px 9px;
}
.spoiler-tag.on-card { position: absolute; top: 12px; right: 12px; z-index: 1; }
:root[data-theme="dark"] .spoiler-tag { background: #3a2d17; color: #f2c879; border-color: #6b5326; }
:root[data-theme="dark"] .spoiler-note { background: var(--soft); }
.sheet .ship-info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; margin: 6px 0 4px; color: var(--accent); padding-right: 0; }
.sheet .ship-body .in { padding-top: 56px; }

.ship-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 20px; }
.ship-picture img, .ship-placeholder { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 16px; object-fit: cover; display: block; }
.ship-placeholder { display: flex; align-items: center; justify-content: center; }
.ship-placeholder .monos .mono { width: 96px; height: 96px; font-size: 2.4rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); }
.ship-placeholder .monos .mono.m1 { margin-left: -24px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .6); }
.ship-info h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.05; margin: 6px 0 4px; color: var(--accent); }
.ship-couple-big { font-size: 1.2rem; font-weight: 600; margin: 0; }
.characters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.character { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.character b { display: block; font-size: 1.05rem; }
.character div span { color: var(--muted); font-size: .9rem; }
.character-photo {
  width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 2rem; color: #3a2433; background: var(--p1);
}
.character-photo.m1 { background: var(--p5); }
.ship-body .tiles { margin-bottom: 4px; }
.ending-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ending-row .year { color: var(--muted); }

@media (max-width: 700px) {
  .ship-top { grid-template-columns: 1fr; }
}

.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.title-body .meta a, .title-body dd a { color: inherit; text-decoration: none; }
.title-body .meta a:hover, .title-body dd a:hover { text-decoration: underline; }
a.tag { text-decoration: none; color: inherit; }
a.tag:hover { filter: brightness(.95); outline: 1px solid currentColor; }

@media (max-width: 560px) {
  .grid { --cols: 2; gap: 10px; }
  .grid .poster { padding: 10px; }
  .grid .poster .pt { font-size: 1rem; }
  .grid .body { padding: 10px 10px 12px; gap: 4px; }
  .grid .meta { flex-direction: column; gap: 2px; font-size: .62rem; }
  .grid .card h2 { font-size: 1rem; }
  .grid .couple { font-size: .78rem; }
  .grid .tags .tag { font-size: .66rem; padding: 2px 6px; }
  .grid .badge { font-size: .62rem; }
}

.pair-photo { width: 140px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; flex: none; display: block; }

@media (max-width: 560px) {
  .ship-top { gap: 14px; margin-bottom: 14px; }
  .ship-info h1, .sheet .ship-info h2 { font-size: 1.9rem; }
  .ship-couple-big { font-size: 1rem; }
  .ship-placeholder .monos .mono { width: 60px; height: 60px; font-size: 1.5rem; }
  .ship-placeholder .monos .mono.m1 { margin-left: -8px; }
  .characters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
  .character { gap: 8px; padding: 8px; border-radius: 12px; }
  .character-photo { width: 40px; height: 40px; font-size: 1.1rem; }
  .character b { font-size: .85rem; line-height: 1.2; }
  .character div span { font-size: .75rem; }
  .couples .pair { gap: 10px; padding: 10px; }
  .monos.big .mono, .couples .mono { width: 34px; height: 34px; font-size: .9rem; }
  .couples .mono.m1 { margin-left: -9px; }
  .spoilers > div > b { font-size: 1rem; }
  .couples .pair { font-size: .85rem; }
  .pair-photo { width: 96px; }
  .ship-card { padding: 16px; }
  .ship-cover { width: calc(100% + 32px); margin: -16px -16px 8px; }
  .ship-card .mono { width: 40px; height: 40px; font-size: 1rem; }
  .ship-name { font-size: 1.3rem; }
}

a.pair { color: inherit; text-decoration: none; align-items: center; transition: border-color .15s, background .15s; }
a.pair:hover { border-color: var(--p5); background: var(--peach-soft); }
.couples li { border-left: 0; padding: 0; }
.pair-text { display: grid; gap: 2px; flex: 1; }
.pair-text .name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pair-text .who, .pair-text .outcome { display: block; }
.pair-text .outcome { color: var(--muted); margin-top: 2px; }
.spoilers.open .pair-text .outcome { color: var(--ink); }
.pair-go { flex: none; color: var(--accent); font-size: 1.2rem; margin-left: auto; }
:root[data-theme="dark"] a.pair:hover { background: var(--soft); }

.report-line { margin: 18px 0 0; text-align: center; font-size: .85rem; }
.report-about { margin: 0; font-size: .95rem; }
#reportForm select { width: 100%; }
#reportTitleField[hidden] { display: none; }
.privacy { max-width: 68ch; padding-bottom: 32px; }
.privacy h2 { font-size: 1.2rem; margin: 24px 0 8px; }
.privacy li { margin-bottom: 8px; }

.more { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; }
.more summary { cursor: pointer; padding: 11px 0; font-weight: 600; font-size: .9rem; list-style: none; display: flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: '+'; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--peach-soft, #fdeee8); color: var(--accent); font-weight: 700; }
.more[open] summary::before { content: '−'; }
.more .count-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 6px; }
.more-grid label { display: grid; gap: 4px; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.more-grid select { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; color: var(--ink); min-width: 0; }
.more-grid .lbl { display: flex; align-items: center; gap: 4px; min-height: 20px; }
.more .hint { margin: 4px 0 12px; font-size: .78rem; color: var(--muted); }
.spoiler-mark { display: inline-block; margin-left: 4px; font-size: .62rem; padding: 1px 6px; border-radius: 999px; background: #fff4e0; color: #8a5a12; letter-spacing: .04em; }
:root[data-theme="dark"] .more { background: var(--surface); }
:root[data-theme="dark"] .spoiler-mark { background: #3a2d17; color: #f2c879; }
@media (max-width: 820px) { .more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .more-grid { grid-template-columns: 1fr; } }

.people-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.people-grid { --cols: 6; list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1600px) { .people-grid { --cols: 5; } }
@media (max-width: 1300px) { .people-grid { --cols: 4; } }
@media (max-width: 1000px) { .people-grid { --cols: 3; } }
@media (max-width: 760px) { .people-grid { --cols: 2; } }
.person-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, #fff); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.person-card:hover { border-color: var(--accent); background: var(--peach-soft); }
.person-card b { display: block; }
.person-card small { color: var(--muted); font-size: .8rem; }
.person-initial { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display, 'Young Serif', serif); font-size: 1.2rem; background: linear-gradient(160deg, #fbe5f0, #efb8d6); color: #4a2440; }
.section-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 24px 0 12px; font-family: inherit; }
.with-role { display: grid; gap: 6px; align-content: start; }
.with-role > .card { height: 100%; }
.role { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.3em; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.role b { color: var(--ink); }
.people-hint { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: var(--peach-soft); font-size: .9rem; }
.people-hint a { color: var(--accent); text-decoration: none; }
.people-hint a:hover { text-decoration: underline; }
.title-body dd a, .character a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.title-body dd a:hover, .character a:hover { color: var(--accent); }
@media (max-width: 560px) { .people-grid { --cols: 1; } }
.people-search .go { font: inherit; font-weight: 600; color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; }
.js .people-search { grid-template-columns: 1fr; }
.js .people-search .go { display: none; }

img.person-initial { object-fit: cover; padding: 0; }
header.person-head { display: flex; align-items: center; gap: 22px; }
.person-photo { flex: none; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--peach-soft); }
@media (max-width: 560px) { header.person-head { gap: 14px; } .person-photo { width: 84px; height: 84px; } }

.poster { position: relative; }
.age-badge { position: absolute; right: 8px; bottom: 8px; z-index: 1; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 6px;
  display: inline-grid; place-items: center; font: 800 .8rem/1 Figtree, system-ui, sans-serif; color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25); letter-spacing: 0; }
.age-badge.inline { position: static; box-shadow: none; vertical-align: middle; }
.age-L { background: #0a8f3c; } .age-10 { background: #1f6fd1; } .age-12 { background: #e0b100; color: #1d1d1d; }
.age-14 { background: #e8781a; } .age-16 { background: #d42020; } .age-18 { background: #111; }
.imdb, .community { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.imdb i, .community i { font-style: normal; color: #e0a800; }
.imdb .out-of, .community .out-of { font-size: .78em; font-weight: 600; opacity: .7; margin-left: 1px; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.card .meta .imdb { margin-right: auto; letter-spacing: 0; text-transform: none; font-size: .8rem; }
.title-body .muted { color: var(--muted); }

.won-badge { color: var(--accent); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e0315b; margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(224, 49, 91, .5); animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(224, 49, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 49, 91, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.bracket-banner { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; margin: 0 0 28px;
  padding: 18px 22px; border-radius: 18px; background: linear-gradient(110deg, var(--soft), var(--peach-soft)); color: inherit; text-decoration: none; }
.bracket-banner .kicker { grid-column: 1; margin: 0; }
.bracket-banner b { grid-column: 1; font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.bracket-banner > span:not(.kicker):not(.go) { grid-column: 1; color: var(--muted); font-size: .9rem; }
.bracket-banner .go { grid-column: 2; grid-row: 1 / span 3; background: var(--accent); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; }
.bracket-head .bracket-now { margin: 10px 0 0; }
.round-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.round-steps .step { display: grid; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: .75rem; }
.round-steps .step b { color: var(--ink); font-size: .85rem; }
.round-steps .step.open { border-color: var(--accent); background: var(--peach-soft); }
.round-steps .step.closed { opacity: .7; }
.past-winners { margin: 12px 0 32px; }
@media (max-width: 560px) {
  .bracket-banner { grid-template-columns: 1fr; }
  .bracket-banner .go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
}

.featured-top { align-items: flex-start; }
.featured h2 { font-size: 1.7rem; text-wrap: balance; overflow-wrap: anywhere; }
.featured h2.long { font-size: 1.35rem; }
.featured h2.xlong { font-size: 1.15rem; }
.featured-poster { width: 104px; }

.live-bracket { border-radius: 20px; padding: 22px 24px; margin: 0 0 18px; background: linear-gradient(120deg, var(--soft), var(--peach-soft)); display: grid; gap: 16px; }
.live-bracket.quiet h2 { margin: 0; font-family: var(--display); font-weight: 400; }
.live-bracket.quiet p { margin: 0; color: var(--muted); }
.live-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.live-top .kicker { margin: 0; }
.live-top h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 4px 0; line-height: 1.05; }
.live-sub { margin: 0; color: var(--muted); }
.live-stats { display: flex; gap: 22px; }
.live-stats div { display: grid; }
.live-stats b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.live-stats span { font-size: .75rem; color: var(--muted); }
.live-duels { display: grid; gap: 8px; }
.mini-duel { display: grid; grid-template-columns: 1fr minmax(80px, 2fr) 1fr; grid-template-areas: "a bar b" "pa . pb"; gap: 2px 10px; align-items: center;
  background: var(--surface); border-radius: 12px; padding: 10px 14px; font-size: .88rem; }
.mini-duel > span:first-child { grid-area: a; font-weight: 600; }
.mini-duel > span:nth-child(3) { grid-area: b; text-align: right; font-weight: 600; }
.mini-duel small:nth-of-type(1) { grid-area: pa; color: var(--muted); }
.mini-duel small:nth-of-type(2) { grid-area: pb; color: var(--muted); text-align: right; }
.mini-bar { grid-area: bar; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: var(--share); background: var(--accent); }
.live-bracket .send { justify-self: start; }
.next-line { margin: 0 0 24px; color: var(--muted); }
.bracket-archive .section-title span { color: var(--muted); margin-left: 6px; }
.archive-grid { --cols: 5; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
@media (max-width: 1500px) { .archive-grid { --cols: 4; } }
@media (max-width: 1150px) { .archive-grid { --cols: 3; } }
@media (max-width: 820px) { .archive-grid { --cols: 2; } }
@media (max-width: 480px) { .archive-grid { --cols: 1; } }
.archive-card { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s; }
.archive-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.collage { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 8 / 5; overflow: hidden; }
.collage .poster { border-radius: 0; aspect-ratio: auto; height: 100%; padding: 6px; }
.collage .poster img { height: 100%; object-fit: cover; }
.collage .pt { font-size: .7rem; } .collage .py, .collage .age-badge { display: none; }
.archive-text { display: grid; gap: 3px; padding: 12px 14px 14px; }
.archive-text b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }
.archive-text small { color: var(--muted); font-size: .78rem; }
.champ { font-size: .85rem; font-weight: 600; }
.champ.live { color: var(--accent); }

.bracket-head .kicker a { color: inherit; }
.champion-banner { display: flex; gap: 16px; align-items: center; margin-top: 14px; padding: 14px; border-radius: 16px; background: #fff4e0; max-width: 520px; }
.champion-poster { width: 70px; flex: none; border-radius: 8px; overflow: hidden; }
.champion-poster .poster { padding: 5px; } .champion-poster .pt { font-size: .6rem; } .champion-poster .py { display: none; }
.champion-banner .kicker { margin: 0; color: #8a5a12; }
.champion-banner a { color: inherit; text-decoration: none; font-family: var(--display); font-size: 1.4rem; }
.champion-banner span { display: block; color: var(--muted); font-size: .82rem; }
:root[data-theme="dark"] .champion-banner { background: #3a2d17; }
.back-line { margin: 8px 0 40px; }
.back-line a { color: var(--accent); }

.star-1 { --star: #d52d00; }
.star-2 { --star: #ef7627; }
.star-3 { --star: #ff9a56; }
.star-4 { --star: #d162a4; }
.star-5 { --star: #b55690; }
.star-6 { --star: #a30262; }
:root[data-theme="dark"] .star-6 { --star: #e0479a; }
.imdb[class*="star-"] i, .community[class*="star-"] i { color: var(--star); }

.idea-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: start;
  padding: 24px; margin: 0 0 40px; border-radius: 20px; border: 1px dashed var(--accent); }
.idea-box h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 0 0 6px; }
.idea-box p { margin: 0; color: var(--muted); }
.idea-form { display: grid; gap: 10px; }
.idea-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; }
.idea-form input, .idea-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
.idea-form .send { justify-self: start; }
.idea-thanks { font-weight: 600; color: var(--ink) !important; }
@media (max-width: 760px) { .idea-box { grid-template-columns: 1fr; } }

.timeline { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.timeline::before { content: ''; width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid currentColor;
  background: conic-gradient(currentColor 0 25%, transparent 0); opacity: .8; }
.pair-text .timeline { margin-top: 2px; }
.tile-with-time { display: grid; gap: 4px; align-content: start; }

.tag.rep { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box,
  linear-gradient(90deg, #d52d00, #ff9a56, #d162a4, #a30262) border-box; color: var(--ink); text-decoration: none; }

.my-list-buttons { display: none; gap: 8px; flex-wrap: wrap; margin: 4px 0 12px; }
.js .my-list-buttons { display: flex; }
.my-list-buttons button { font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s; }
.my-list-buttons button:hover { border-color: var(--accent); }
.my-list-buttons button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.my-mark { position: absolute; top: 8px; left: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: .85rem; color: #fff; background: var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.my-mark[data-state="seen"] { background: #0a8f3c; }
.my-list-link .count-badge { margin-left: 4px; }
.my-tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.my-tabs button { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px;
  margin-bottom: -1px; cursor: pointer; color: var(--muted); }
.my-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; line-height: 1; vertical-align: 1px; }
.count-badge[hidden] { display: none; }

.bracket-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .75fr); gap: 16px; margin: 8px 0 32px; }
.board-round { display: flex; flex-direction: column; min-width: 0; }
.board-title { margin: 0 0 10px; font-family: inherit; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.board-title span { display: block; margin-top: 2px; font-weight: 600; letter-spacing: .04em; text-transform: none; font-size: .78rem; color: var(--muted); }
.board-round.open .board-title { color: var(--accent); }
.board-round.open .board-title span { color: var(--accent); }
.board-round.upcoming .match { opacity: .6; }
.board-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.match { position: relative; display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.board-round.open .match { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 2px 10px rgba(184, 69, 127, .08); }
.mside { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; margin: 0; }
.mside + .mside { border-top: 1px solid var(--line); }
.mside.tbd { grid-template-columns: 40px 1fr; color: var(--muted); font-size: .8rem; }
.mside-poster { display: block; width: 40px; border-radius: 6px; overflow: hidden; flex: none; }
.mside-poster.empty { aspect-ratio: 2 / 3; border: 1px dashed var(--line); }
.mside-poster .poster { padding: 3px; }
.mside-poster .pt { font-size: .45rem; }
.mside-poster .py, .mside-poster .age-badge { display: none; }
.mside-text { display: grid; gap: 1px; min-width: 0; }
.mside-text a { color: inherit; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.mside-text a:hover b { text-decoration: underline; }
.mside-text b { font-size: .88rem; line-height: 1.25; }
.mside-text small { color: var(--muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seed { font-size: .64rem; color: var(--muted); letter-spacing: .04em; }
.pick { color: var(--accent); font-weight: 700; }
.mside-end { display: flex; align-items: center; }
.match .bar, .match .share { display: none; }
.match.show .bar { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 3px; }
.match.show .bar i { display: block; height: 100%; width: var(--share); background: var(--accent); border-radius: inherit; transition: width .4s; }
.match.show .share { display: block; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.vote-btn { font: inherit; font-weight: 700; font-size: .78rem; color: #fff; background: var(--accent);
  border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.vote-btn:hover { filter: brightness(1.08); }
.vote-btn:disabled { opacity: .6; cursor: wait; }
.mside.mine { background: var(--peach-soft); }
.mside.won { background: var(--soft); }
.mside.won b::after { content: " ✓"; color: var(--accent); }
.mside.lost { opacity: .5; }
.duel-error { margin: 0; padding: 6px 10px; color: #b3261e; font-size: .78rem; text-align: center; border-top: 1px solid var(--line); }
.board-champ { display: grid; justify-items: center; gap: 8px; padding: 16px 10px; border: 2px solid var(--accent); border-radius: 16px;
  text-align: center; color: inherit; text-decoration: none; background: var(--surface); }
.board-champ .mside-poster { width: 84px; }
.board-champ .mside-poster .pt { font-size: .7rem; }
.board-champ b { font-size: .95rem; }
.board-champ small { color: var(--muted); font-size: .72rem; }
.board-champ .trophy { font-size: 1.8rem; }
.board-champ.won { background: #fff4e0; border-color: #e0a84a; }
:root[data-theme="dark"] .board-champ.won { background: #3a2d17; }
@media (max-width: 1000px) {
  .bracket-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-round.open { order: -1; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bracket-board { grid-template-columns: 1fr; gap: 22px; }
  .board-matches { gap: 10px; }
}

.grid-end, .grid-fill { grid-column: 1 / -1; }
@supports (width: calc(mod(5, 3) * 1px)) {
  .grid-end, .grid-fill { grid-column: span calc(var(--cols) - mod(var(--n, 0), var(--cols))); }
}
.grid-end { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; min-height: 110px;
  padding: 20px 24px; border: 2px dashed color-mix(in srgb, var(--p5) 55%, var(--line)); border-radius: 12px; list-style: none; }
.grid-end p { margin: 0; color: var(--muted); max-width: 42ch; }
.grid-end b { display: block; color: var(--ink); font: 400 1.2rem var(--display); margin-bottom: 2px; }
.grid-end .send { flex: none; text-decoration: none; }
@media (max-width: 560px) { .grid-end { padding: 16px; min-height: 0; } }

.community i { font-size: .95em; }
.community.big { font-size: 1.5rem; font-family: var(--display); font-weight: 400; gap: 6px; }
.tile-scores { display: inline-flex; gap: 8px; }
.card .meta .community { margin-left: -4px; }
.rate { margin: 18px 0 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--peach-soft); }
.rate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.rate-head h3 { margin: 0; }
.rate-score { margin: 0; }
.rate-scale { margin: 10px 0 0; }
.rate-label { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.rate-buttons { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; }
.rate-n { font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; padding: 8px 0; border-radius: 9px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface, #fff); color: var(--ink); transition: background .12s, border-color .12s, color .12s; }
.rate-n:hover { border-color: var(--star); color: var(--star); }
.rate-n[aria-pressed="true"] { background: var(--star); border-color: var(--star); color: #fff; }
.rate-n:disabled { opacity: .6; cursor: wait; }
.rate-clear { margin-top: 8px; font-size: .8rem; }
.rate-msg { margin: 8px 0 0; font-size: .85rem; color: var(--accent); }
@media (max-width: 560px) {
  .rate { padding: 14px; }
  .rate-buttons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.has-typeahead { position: relative; }
.typeahead { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: min(70vh, 460px); overflow-y: auto;
  padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(40, 10, 30, .18); text-align: left; }
.typeahead a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.typeahead a:hover, .typeahead a[aria-selected="true"] { background: var(--peach-soft); }
.typeahead img, .ta-blank { width: 34px; height: 42px; object-fit: cover; border-radius: 5px; flex: none; background: var(--line); }
.ta-person img, .ta-initial { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.ta-initial { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: .85rem; }
.typeahead span { display: grid; min-width: 0; }
.typeahead b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.typeahead small { color: var(--muted); font-size: .76rem; }
.ta-head { margin: 8px 10px 2px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.typeahead .ta-all { justify-content: center; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font-weight: 600; color: var(--accent); }
.ta-none { margin: 8px 10px; color: var(--muted); font-size: .9rem; }

.captcha { margin: 12px 0 4px; min-height: 65px; }
.captcha:empty { min-height: 0; margin: 0; }

.vote-progress { display: block; margin-top: 4px; }
.voted-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: .8rem; }
.share-picks { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 14px 0 0;
  padding: 14px 18px; border-radius: 14px; background: var(--peach-soft); border: 1px solid var(--line); }
.share-picks p { margin: 0; }
.share-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-x { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: #000; color: #fff;
  font-weight: 700; text-decoration: none; }
.btn-x:hover { background: #222; }
:root[data-theme="dark"] .btn-x { background: #fff; color: #000; }

.side-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.side-switch a { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; color: var(--muted); text-decoration: none; }
.side-switch a:hover { color: var(--ink); }
.side-switch a[aria-current="true"] { background: var(--accent); color: #fff; }
.aud-mg { background: #1f6fd1; } .aud-ya { background: #e8781a; } .aud-na { background: #d42020; } .aud-adult { background: #111; }
:root[data-theme="dark"] .aud-adult { background: #555; }
@media (max-width: 720px) {
  .site-nav .side-switch { margin-left: auto; }
  .side-switch a { padding: 6px 10px; font-size: .78rem; }
}

.ship-cover-text { display: grid; place-items: center; aspect-ratio: 3 / 1; font: 400 2.4rem/1 var(--display); color: rgba(58, 36, 51, .45); }
.ship-top.no-pic { grid-template-columns: 1fr; }
.characters .character:not(:has(.character-photo)) { padding: 12px 16px; }

.adapt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 4px; padding: 10px 12px;
  border: 1px dashed var(--p5); border-radius: 14px; background: var(--peach-soft); }
.adapt b { font-size: .9rem; }
.adapt-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--accent);
  color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; }
.adapt-link:hover { filter: brightness(1.08); }
.adapt-link small { font-weight: 500; opacity: .85; }
.adapt-also { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
:root[data-theme="dark"] .adapt { background: transparent; }

.series-box { margin: 12px 0 4px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; }
.series-box b { font-size: .9rem; }
.series-box ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.series-box li { display: flex; align-items: baseline; gap: 8px; font-size: .9rem; }
.series-box li .n { min-width: 2.2em; font-weight: 700; color: var(--accent); }
.series-box li small { color: var(--muted); }
.series-box li.current { font-weight: 700; }
.series-tag { margin: -2px 0 4px; font-size: .78rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.series-box a { color: inherit; text-decoration-color: var(--p5); text-underline-offset: 3px; }
.series-box a:hover { color: var(--accent); }

.couples .guide li { border-left: 0; padding: 0; }
.guide { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.guide summary { cursor: pointer; font-weight: 600; font-size: .85rem; padding: 8px 12px; color: var(--accent); }
.guide summary span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.guide ol { list-style: none; margin: 0; padding: 0 12px 10px; display: grid; gap: 6px; counter-reset: moment; }
.guide li { display: grid; grid-template-columns: minmax(64px, auto) 1fr; gap: 10px; font-size: .88rem; align-items: baseline; }
.guide li b { font-size: .75rem; letter-spacing: .04em; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 2px 8px; justify-self: start; white-space: nowrap; }
.guide li span:only-child { grid-column: 1 / -1; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.new-block { border-top: 1px solid var(--line); padding: 24px 0 8px; scroll-margin-top: 80px; }
.new-block .shelf-head .hint { margin: 0; }
.dated { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dated > .card { flex: 1; }
.when { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.empty.small { padding: 16px 0; text-align: left; }
.pick-note { margin: 0; font-size: .85rem; color: var(--muted); font-style: italic; }

.tl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.tl-facts div { background: var(--soft); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.tl-facts b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; color: var(--accent); }
.tl-facts span { font-size: .85rem; color: var(--muted); }
.tl-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.tl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fate-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-decade { border-top: 1px solid var(--line); padding: 20px 0 8px; display: grid; gap: 10px; }
.tl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tl-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0; }
.tl-head a { color: var(--accent); font-weight: 600; text-decoration: none; }
.tl-count { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.tl-count span { display: block; height: 100%; background: var(--p4); border-radius: 999px; }
.tl-bar { display: flex; height: 18px; border-radius: 8px; overflow: hidden; background: var(--line); }
.tl-bar span { display: block; height: 100%; min-width: 3px; }
.tl-bar .together, .fate-dot.together { background: #7cc497; }
.tl-bar .open, .fate-dot.open { background: #f2c48d; }
.tl-bar .apart, .fate-dot.apart { background: #9aa6d6; }
.tl-bar .death, .fate-dot.death { background: #d97a7a; }
.tl-bar .unknown, .fate-dot.unknown { background: #e3d6dd; }
.tl-note { margin: 0; font-size: .85rem; color: var(--muted); }
.tl-note b { color: var(--ink); }
:root[data-theme="dark"] .tl-bar .unknown, :root[data-theme="dark"] .fate-dot.unknown { background: #4a3b44; }

.door-new { background: #fde2d3; }
.door-timeline { background: #e3e0f6; }
.empty a { color: var(--accent); }
.tl-firsts { margin: 4px 0 -4px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; position: relative; }
.share-main { font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.share-main:hover, .share-icon:hover { border-color: var(--accent); color: var(--accent); }
.share-icon { font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; text-decoration: none; padding: 0; }
.share-icon.wa:hover { color: #1fa855; border-color: #1fa855; }
.share-done { font-size: .8rem; font-weight: 600; color: #0a8f3c; margin-left: 4px; }
.share-row.compact .share-main { padding: 6px 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-toggle { display: none; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; color: var(--ink); }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary span { font-size: .7em; opacity: .7; }
.nav-more summary:hover, .nav-more[open] summary { background: var(--soft); }
.nav-more summary.here { color: var(--accent); background: var(--soft); }
.nav-more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 200px; display: grid; gap: 2px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 30px rgba(58, 36, 51, .14); }
.nav-more-menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 9px 12px; border-radius: 10px; }
.nav-more-menu a:hover { background: var(--soft); }
.nav-more-menu a[aria-current="page"] { color: var(--accent); background: var(--soft); }
.nav-more-suggest { font: inherit; font-weight: 600; font-size: .9rem; text-align: left; cursor: pointer; color: var(--accent);
  background: none; border: 0; border-top: 1px solid var(--line); margin-top: 4px; padding: 11px 12px 6px; }
.theme-toggle { font: inherit; font-size: 1rem; line-height: 1; cursor: pointer; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; margin-left: 4px; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .when-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .when-dark { display: inline; }
:root[data-theme="dark"] .theme-toggle .when-light { display: none; }
@media (max-width: 720px) {
  .js .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { gap: 10px; }
  .site-nav .side-switch { margin-left: auto; }
  .js .nav-links { display: none; }
  .js .site-nav.open .nav-links { display: grid; width: 100%; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
  .site-nav.open .nav-links > a { padding: 11px 12px; border-radius: 10px; }
  .site-nav.open .nav-more summary { display: none; }
  .site-nav.open .nav-more-menu { position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; }
  .site-nav.open .theme-toggle { margin: 6px 0 0 8px; }
}

.title-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 10px; }
.title-actions .my-list-buttons { margin: 0; }
.title-actions .share-row { margin: 0; }
.native-share .share-row.compact .share-icon { display: none; }
.native-share .share-row.compact .share-done { display: none; }

.rate-open > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .88rem;
  color: var(--accent); padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--p4); background: var(--surface); margin-top: 6px; }
.rate-open > summary::-webkit-details-marker { display: none; }
.rate-open[open] > summary { display: none; }

.more-chips { margin: 4px 0 10px; }
.more-chips > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem;
  color: var(--accent); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.more-chips > summary::-webkit-details-marker { display: none; }
.more-chips > summary::before { content: '+'; font-weight: 700; }
.more-chips[open] > summary::before { content: '−'; }
.more-chips > summary .count-n { background: var(--accent); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.more-chips[open] > summary { margin-bottom: 12px; }

@media (max-width: 720px) {
  .site-nav { flex-wrap: wrap; }
  .site-nav .logo { font-size: 1.35rem; }
  .site-nav .side-switch { margin-left: auto; }
  .site-nav .side-switch a { padding: 5px 9px; font-size: .74rem; }
  .js .nav-toggle { width: 38px; height: 38px; }
}
@media (max-width: 620px) {
  .sheet-top, .page-sheet .sheet-top { grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 0; }
  .sheet-top .sheet-poster { grid-row: 1 / span 3; }
  .sheet-top .sheet-info { display: contents; }
  .sheet-top .sheet-info > .meta, .sheet-top .sheet-info > h1, .sheet-top .sheet-info > h2, .sheet-top .sheet-info > .orig { grid-column: 2; }
  .sheet-top .sheet-info > :not(.meta):not(h1):not(h2):not(.orig) { grid-column: 1 / -1; }
  .sheet-top .sheet-info > .meta { flex-wrap: wrap; gap: 2px 8px; }
  .title-actions .my-list-buttons button, .title-actions .share-main { padding: 7px 11px; font-size: .82rem; }
}
.chips:not(#hide, #focus) .chip.on:not(.all)::before, .legend .chip.on::before { content: "✓ "; }
.chip.out { background: #fdecec; border-color: #e3a1a1; color: #a23434; text-decoration: line-through; font-weight: 600; }
.chip.small { font-size: .78rem; padding: 3px 10px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 12px; }
.legend .chip { cursor: default; }
.match-mode { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; margin-left: 4px; }
.match-mode a { padding: 5px 11px; text-decoration: none; color: var(--muted); }
.match-mode a + a { border-left: 1px solid var(--line); }
.match-mode a.on { background: #fbeaf3; color: var(--accent); font-weight: 600; }
.multi { display: block; min-width: 0; }
.picked { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.picked[hidden] { display: none; }
.picked .chip { text-decoration: none; }
.years { display: flex; align-items: center; gap: 6px; }
.years input { width: 100%; min-width: 0; font: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; font-weight: 400;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.spoiler-rows { margin-top: 10px; }
.spoiler-rows .label { flex-basis: 120px; }
:root[data-theme="dark"] .chip.out { background: #3a1f22; color: #f0a3a3; border-color: #6b3434; }
:root[data-theme="dark"] .match-mode a.on { background: var(--soft); }
:root[data-theme="dark"] .years input { background: var(--surface); }

.privacy-request .idea-form { margin-top: 12px; }
.request-items { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.request-items legend { font-size: .85rem; font-weight: 600; padding: 0 6px; }
.request-items .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: .95rem; }
.request-items .check input { margin-top: 3px; accent-color: var(--accent); }
.request-items .opt { margin: -4px 0 4px 26px; font-size: .82rem; color: var(--muted); }
.request-items .list-link { margin-left: 26px; }
.privacy-request .idea-thanks { background: #fbeaf3; border-radius: 12px; padding: 14px 16px; }
:root[data-theme="dark"] .privacy-request .idea-thanks { background: var(--soft); }
.privacy-request .opt { font-weight: 400; color: var(--muted); }
.request-items .check input { padding: 0; border: 0; width: auto; background: none; }