:root {
  --paper: #f4efe6;
  --ink: #1a1814;
  --muted: #6b645a;
  --line: #d9d0c3;
  --common: #1f6f5b;
  --contested: #c45c26;
  --opinion: #5b4b8a;
  --card: #fbf7f0;
  --max: 68rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; }
.mast { border-bottom: 3px solid var(--ink); }
.mast-inner { max-width: var(--max); margin: 0 auto; padding: .85rem 1.25rem .75rem; display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: center; }
.brand-lockup { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f7f1e6;
  flex: 0 0 auto;
}
.wordmark { font-family: Georgia, "Iowan Old Style", serif; font-size: 1.85rem; font-weight: 700; text-decoration: none; letter-spacing: -.03em; line-height: 1; }
.tag { margin: 0; color: var(--muted); font-size: .88rem; }
#nav-auth { display: contents; }
.feed-status { text-align: center; color: var(--muted); font-size: .9rem; min-height: 1.2em; }
#feed-more { height: 1px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .55rem 1rem; }
.nav a, .nav summary, .nav .puzzle-toggle, .nav .logout-form button {
  text-decoration: none;
  font: inherit;
  font-size: .92rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
}
.nav a:hover, .nav summary:hover, .nav .puzzle-toggle:hover, .nav .logout-form button:hover { border-bottom-color: var(--ink); }
.logout-form { display: inline; margin: 0; }
.nav-browse { position: relative; }
.nav-browse summary { list-style: none; }
.nav-browse summary::-webkit-details-marker { display: none; }
.nav-browse summary::after, .nav-place summary::after { content: " ▾"; font-size: .7em; color: var(--muted); }
.browse-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  min-width: 12rem;
  background: var(--card);
  border: 1px solid var(--ink);
  z-index: 50;
  padding: .25rem 0;
  box-shadow: 0 12px 28px rgba(26, 24, 20, .16);
}
.browse-menu a {
  display: block;
  padding: .42rem .8rem;
  border-bottom: 0;
  color: var(--ink);
  font-size: .88rem;
}
.browse-menu a:hover {
  background: var(--paper);
  color: var(--common);
  border-bottom: 0;
}
.browse-menu a.is-on {
  background: #efe4c8;
  color: var(--contested);
  font-weight: 600;
}
.nav-place { position: relative; max-width: 100%; }
.nav-place summary {
  max-width: 13.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-place summary.is-set { border-bottom-color: var(--line); }
.place-menu {
  position: absolute;
  right: 0;
  top: calc(100% + .45rem);
  width: 18.75rem;
  max-width: min(18.75rem, calc(100vw - 1.5rem));
  background: var(--card);
  border: 1px solid var(--ink);
  z-index: 50;
  padding: .65rem .7rem .8rem;
  box-shadow: 0 12px 28px rgba(26, 24, 20, .16);
  display: grid;
  gap: .4rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: min(32rem, calc(100vh - 5rem));
  box-sizing: border-box;
}
.place-menu label {
  display: grid;
  gap: .15rem;
  font-size: .78rem;
  color: var(--muted);
  min-width: 0;
}
.place-menu input, .place-menu select {
  font: inherit;
  font-size: .88rem;
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
  padding: .28rem .4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.place-lead, .place-status, .place-cookie {
  margin: 0;
  font-size: .78rem;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.place-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; min-width: 0; }
.place-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.place-menu .btn { font-size: .82rem; padding: .28rem .55rem; }
.place-combo { position: relative; min-width: 0; }
.place-combo.is-off input {
  background: #efece6;
  color: #8a847a;
  cursor: not-allowed;
}
.place-combo-list {
  position: static;
  z-index: 2;
  max-height: 9.25rem;
  overflow-x: hidden;
  overflow-y: auto;
  margin: .15rem 0 0;
  padding: .15rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--ink);
  box-sizing: border-box;
  width: 100%;
}
.place-combo-list li {
  padding: .28rem .5rem;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-combo-list li:hover, .place-combo-list li.is-on { background: #efe4c8; }
.place-combo-list li.is-empty { color: var(--muted); cursor: default; }
.empty-feed { color: var(--muted); max-width: 36rem; }
.place-hint { margin: .6rem 0 0; font-size: .9rem; color: var(--muted); }
main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
.foot { max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem 2.5rem; color: var(--muted); font-size: .85rem; }
.foot:has(.story-compass) {
  max-width: none;
}
.foot-row {
  --foot-visual-h: 17.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1.25rem 2rem;
  margin: 0;
}
.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  min-width: 0;
  flex: 1 1 18rem;
  max-width: 40rem;
}
.foot-art {
  width: auto;
  height: var(--foot-visual-h);
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  margin: 0;
  border: 1px solid var(--line);
  background: #f7f1e6;
}
.foot-tag { margin: 0; }
.story-compass {
  flex: 0 0 auto;
  margin: 0;
  height: var(--foot-visual-h);
}
.story-compass svg {
  width: var(--foot-visual-h);
  height: var(--foot-visual-h);
  display: block;
}
.empty-spot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  margin: 0;
}
.empty-spot img {
  width: 7.2rem;
  height: auto;
  max-height: 7.6rem;
  object-fit: contain;
  object-position: center;
  border: 0;
  background: transparent;
}
.empty-hero, .login-mark {
  width: 9rem;
  height: 9rem;
  object-fit: cover;
  border: 1px solid var(--line);
  margin: 0 0 .8rem;
  background: #f7f1e6;
}
.game-spot-wrap {
  flex: 0 0 2.35rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #3a342c;
  background: #1a1814;
}
.game-spot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  transform: scale(1.48);
  margin: 0;
  border: 0;
  border-radius: 0;
}
.banner { background: #efe4c8; border: 1px solid #e0c98a; padding: .7rem 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.hero { margin: 0; }
.hero h1, .story-head h1, .narrow h1 { font-family: Georgia, serif; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: .35rem 0 .15rem; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.story-head h1, .narrow h1 { margin: .2rem 0 .6rem; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--muted); margin: 0; }
.lede { font-size: 1.15rem; max-width: 40rem; color: #3c3832; }
.mix { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 1.1rem; margin-top: 2rem; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 16rem; }
.story-card { position: relative; }
.story-card .card-hit { position: absolute; inset: 0; z-index: 1; }
.story-card .tag-pills { position: relative; z-index: 2; }
.story-card:hover { border-color: var(--ink); }
.card-art { background: #e8dfd0; overflow: hidden; aspect-ratio: 4 / 3; }
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.img-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; margin: 1rem 0 1.5rem; }
.img-pick { margin: 0; }
.img-pick button { display: block; width: 100%; background: var(--card); color: inherit; border: 1px solid var(--line); padding: .4rem; cursor: pointer; font: inherit; text-align: left; }
.img-pick button:hover { border-color: var(--ink); }
.img-pick img { width: 100%; height: 8rem; object-fit: cover; object-position: 50% 0%; display: block; background: #e8dfd0; }
.img-pick .meta { display: block; font-size: .72rem; color: var(--muted); margin: .35rem 0 0; }
.img-now { display: flex; gap: .8rem; align-items: start; color: var(--muted); font-size: .85rem; }
.img-now img { width: 8rem; height: 6rem; object-fit: cover; background: #e8dfd0; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h2 { font-family: Georgia, serif; font-size: 1.25rem; margin: 0; }
.card h2 a { text-decoration: none; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.game-card p { flex: none; color: #c4bdb3; }
.more { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.pin { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--contested); }
.puzzle-card { background: #1a1814; color: #f4efe6; border-color: #1a1814; }
.puzzle-card.alt { background: #2c4a6e; border-color: #2c4a6e; }
.puzzle-card p, .puzzle-card .kicker { color: #d9d0c3; }
.topic-bar { display: none; }
.tag-set { border: 1px solid var(--line); padding: .6rem .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.tag-set legend { font-size: .85rem; }
.tag-pills { display: flex; flex-wrap: wrap; gap: .3rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.tag-pills a, .tag-pills span {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--line);
  padding: .12rem .4rem;
  text-decoration: none;
  color: var(--muted);
}
.story-card .tag-pills a:hover { border-color: var(--ink); color: var(--ink); }
body.puzzles-hidden .game-card { display: none; }
.game-card { background: #1a1814; color: #f4efe6; border-color: #1a1814; padding: .7rem .8rem 2rem; position: relative; min-height: auto; overflow: visible; }
.game-card > .game-head,
.game-card > .game-blurb,
.game-card > .game-stage,
.game-card > .game-status,
.game-card > .game-chrome { flex: 0 0 auto; }
.game-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .45rem; margin: 0 0 .35rem; }
.game-card h2 { font-family: Georgia, serif; font-size: 1.08rem; margin: 0; line-height: 1.25; flex: 1; min-width: 0; }
.game-diff { font-family: inherit; font-size: .68rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #c4bdb3; }
.game-card .kicker, .game-blurb { color: #c4bdb3; }
.game-blurb { font-size: .82rem; margin: 0 0 .7rem; line-height: 1.35; overflow-wrap: anywhere; background: #1a1814; }
.game-stage { position: relative; background: #2a2620; padding: .55rem; outline: none; flex: 0 0 auto; }
.game-card.is-live .game-stage { outline: 2px solid #e8dfd0; }
.game-veil { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .4rem; background: rgba(26,24,20,.28); z-index: 2; cursor: pointer; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.game-veil span { background: rgba(26,24,20,.78); color: #f4efe6; padding: .18rem .5rem; }
.game-card.is-live .game-veil { opacity: 0; pointer-events: none; }
.game-board { display: grid; gap: 4px; width: 100%; min-width: 0; }
.shift-board, .court-board, .pairs-board {
  width: min(100%, 13.5rem);
  margin-inline: auto;
}
.lamps-board {
  width: 100%;
  margin-inline: auto;
}
.game-status { margin: .5rem 0 0 6.2rem; font-size: .8rem; color: #c4bdb3; min-height: 1.2em; position: relative; z-index: 1; }
.game-chrome {
  position: absolute;
  left: .45rem;
  bottom: .35rem;
  display: flex;
  align-items: baseline;
  z-index: 4;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8f877c;
}
.game-share, .game-opts-open {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  line-height: 1;
}
.game-chrome-sep { color: inherit; pointer-events: none; letter-spacing: 0; padding: 0 .2em; }
.game-share:hover, .game-opts-open:hover, .game-share[aria-expanded="true"], .game-opts-open[aria-expanded="true"] { color: #e8dfd0; }
.game-pop {
  position: absolute;
  left: .4rem;
  right: auto;
  bottom: 1.85rem;
  width: min(13.5rem, calc(100% - .8rem));
  background: #2a2620;
  color: #f4efe6;
  border: 1px solid #e8dfd0;
  padding: .55rem .6rem .6rem;
  z-index: 8;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.game-pop[hidden] { display: none; }
.game-pop-title { margin: 0 0 .4rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #c4bdb3; }
.game-opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .78rem;
  margin: 0 0 .45rem;
  text-transform: none;
  letter-spacing: 0;
}
.game-diff-pick, .game-seed-fields .game-seed {
  width: 7.2rem;
  box-sizing: border-box;
  background: #1a1814;
  color: #f4efe6;
  border: 1px solid #5a5348;
  padding: .22rem .35rem;
  font: inherit;
}
.game-seed-fields { margin: 0 0 .4rem; }
.game-seed-fields .game-seed { width: 100%; font-variant-numeric: tabular-nums; }
.game-two-row { justify-content: flex-start; }
.game-two-row input { margin: 0 .35rem 0 0; }
.game-reload {
  background: #f4efe6;
  color: #1a1814;
  border: 0;
  padding: .25rem .5rem;
  font: inherit;
  cursor: pointer;
  display: block;
  margin: 0 0 .45rem;
}
.game-reload:hover { background: #e3c56b; }
.game-share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.game-share-list a {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #f4efe6;
  text-decoration: none;
  font-size: .82rem;
  padding: .28rem .2rem;
}
.game-share-list a:hover { color: #e3c56b; }
.game-share-list svg { width: 1rem; height: 1rem; flex: 0 0 auto; }
.tile, .lamp, .sq { aspect-ratio: 1; border: 0; cursor: pointer; font: inherit; font-weight: 700; min-width: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.tile { background: #f4efe6; color: #1a1814; }
.sudoku-board {
  margin-inline: auto;
  gap: 0;
  border: 2px solid #f4efe6;
}
.sudoku-board.size-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  width: min(100%, 13rem);
}
.sudoku-board.size-9 {
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  width: min(100%, 15.2rem);
}
.sudoku-board .tile {
  font-size: 0.78rem;
  line-height: 1;
  border: 1px solid #c4bdb3;
}
.sudoku-board .box-e { border-right: 2px solid #1a1814; }
.sudoku-board .box-s { border-bottom: 2px solid #1a1814; }
.sudoku-board .box-w { border-left: 2px solid #1a1814; }
.sudoku-board .box-n { border-top: 2px solid #1a1814; }
.sudoku-board.size-9 .tile { font-size: 0.68rem; }
.sudoku-board .tile.sudo {
  min-width: 0;
  width: 100%;
  padding: 0;
}
.sudoku-board .hl-unit { background: #e4d6b8; }
.sudoku-board .hl-num { background: #e3c56b; color: #1a1814; }
.sudoku-board .hl-sel { box-shadow: inset 0 0 0 2px #c45c26; z-index: 1; }
.win-burst {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgba(227, 197, 107, 0.45), transparent 68%);
  animation: win-pop 0.85s ease forwards;
}
.game-card.lost .win-word { color: #c4bdb3; }
.win-word {
  font-family: Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  font-weight: 700;
  color: #e3c56b;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 #1a1814, 0 0 18px rgba(227, 197, 107, 0.7);
  animation: win-word 1.05s cubic-bezier(.2, 1.4, .3, 1) forwards;
}
@keyframes win-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes win-word {
  0% { transform: scale(0.35) rotate(-10deg); opacity: 0; }
  60% { transform: scale(1.18) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.maze-board {
  width: 100%;
  margin-inline: auto;
  gap: 0;
}
.checkers-board {
  width: min(100%, 14rem);
  margin-inline: auto;
  gap: 0;
  border: 2px solid #c4bdb3;
}
.ck {
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}
.ck.light { background: #e8dfd0; cursor: default; }
.ck.dark { background: #5a4a38; }
.ck.sel { box-shadow: inset 0 0 0 2px #e3c56b; }
.ck.dest { box-shadow: inset 0 0 0 2px #f4efe6; }
.ck-man {
  width: 70%;
  height: 70%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .28);
  font-size: .55rem;
  line-height: 1;
  color: #e3c56b;
}
.ck-man.red { background: #c45c26; }
.ck-man.black { background: #1a1814; box-shadow: inset 0 0 0 1px #8f877c, inset 0 -2px 0 rgba(255,255,255,.08); }
.game-board.letters-board { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.letters-found { min-height: 2.4rem; font-size: .72rem; color: #c4bdb3; line-height: 1.35; }
.letters-tray, .letters-rack { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; min-height: 2rem; }
.letters-tile {
  width: 1.7rem; height: 1.7rem;
  border: 0; background: #f4efe6; color: #1a1814;
  font: inherit; font-weight: 700; font-size: .95rem;
  cursor: pointer;
}
.letters-tray .letters-tile { background: #e3c56b; }
.letters-actions { display: flex; gap: .35rem; justify-content: center; }
.letters-actions button {
  background: #f4efe6; color: #1a1814; border: 0;
  padding: .25rem .5rem; font: inherit; cursor: pointer;
}
.tile.empty { background: transparent; cursor: default; }
.lamp { background: #3a342c; }
.lamp.on { background: #e3c56b; }
.sq { background: #f4efe6; color: #1a1814; font-size: 1.1rem; }
.sq.dark { background: #cfc6b8; }
.sq.q { background: #2c4a6e; color: #f4efe6; }
.clash-inline .q { background: #3a342c; padding: .55rem .6rem; margin-bottom: .4rem; font-size: .85rem; }
.clash-inline .q p { margin: .25rem 0 0; color: #f4efe6; }
.clash-inline .q strong { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #c4bdb3; }
.clash-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.clash-btns button { padding: .45rem; cursor: pointer; border: 0; background: #f4efe6; font: inherit; }
.sq.lock { box-shadow: inset 0 0 0 2px #c45c26; }
.pair.matched { opacity: .45; }
.tile.given { display: flex; align-items: center; justify-content: center; }
.tile.sudo { text-align: center; padding: 0; min-width: 0; width: 100%; }
.peg-row { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.peg { width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 0; cursor: pointer; }
.peg.filled { background: #c45c26; }
.peg.hole { background: #3a342c; }
.peg.sel { outline: 2px solid #f4efe6; }
.mz { aspect-ratio: 1; border: 0; background: #3a342c; padding: 0; min-width: 0; }
.mz.wn { border-top: 1px solid #d9d0c3; }
.mz.ws { border-bottom: 1px solid #d9d0c3; }
.mz.we { border-right: 1px solid #d9d0c3; }
.mz.ww { border-left: 1px solid #d9d0c3; }
.mz.here { background: #c45c26; }
.mz.goal { background: #1f6f5b; }
.peg-tower { min-height: 7.5rem; background: #3a342c; border: 0; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: .4rem; }
.peg-tower.sel { outline: 2px solid #f4efe6; }
.disk-stack { width: 100%; display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.disk { background: #e3c56b; color: #1a1814; font-size: .7rem; font-weight: 700; height: .7rem; border-radius: 2px; }
.story-head { overflow: visible; }
.story-head:has(.story-hero) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 17.5rem);
  column-gap: 1.35rem;
  align-items: stretch;
}
.story-copy { min-width: 0; }
.story-copy .lede { max-width: none; }
.story-hero {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  width: auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.story-hero img {
  width: 100%;
  flex: 1 1 0;
  min-height: 16rem;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
  background: #e8dfd0;
}
.story-hero-cap {
  color: var(--ink);
  font-size: .82rem;
  line-height: 1.3;
  margin: .4rem 0 0;
}
.story-hero-credit {
  color: var(--muted);
  font-size: .62rem;
  line-height: 1.3;
  margin: .15rem 0 0;
  overflow-wrap: anywhere;
}
.story-hero-credit a { color: inherit; }
.story-hero-credit a:hover { text-decoration: underline; }
@media (max-width: 40rem) {
  .story-head:has(.story-hero) {
    grid-template-columns: minmax(0, 1fr) 8.25rem;
    column-gap: .7rem;
    align-items: start;
  }
  .story-hero img {
    min-height: 0;
    flex: 0 0 auto;
    aspect-ratio: 3 / 4;
    object-position: 50% 0%;
  }
}
.hint { color: var(--muted); font-size: .9rem; }
main:has(.story-board) {
  max-width: none;
  container-type: inline-size;
  overflow-x: hidden;
}
body:has(.story-board) { overflow-x: hidden; }
.story-summary { font-size: 1.02rem; max-width: 42rem; line-height: 1.45; margin: .9rem 0 0; }
.story-summary.is-placeholder { color: var(--muted); font-style: italic; }
.story-board {
  --gap: .65rem;
  --col-min: 20.15rem;
  /* --fit = visible source columns (shared is extra). JS may raise it when the window is wide. */
  --fit: 3;
  --col: max(var(--col-min), calc((100cqi - (var(--fit) * var(--gap))) / (var(--fit) + 1)));
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  margin: 1.2rem 0 2rem;
  padding-bottom: 8rem;
  overflow: visible;
}
.story-sources {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  isolation: isolate;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--col-min), var(--col));
  gap: var(--gap);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.story-sources::-webkit-scrollbar {
  display: none;
  height: 0;
  width: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 28rem;
  min-width: 0;
  overflow: visible;
}
.panel.shared {
  background: #fff;
  border: 1px solid var(--ink);
  flex: 0 0 var(--col);
  width: var(--col);
  max-width: var(--col);
  min-width: var(--col-min);
  position: relative;
  z-index: 6;
  isolation: isolate;
  box-shadow: 8px 0 14px rgba(26, 24, 20, .12);
}
.panel.shared .shared-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.panel.shared .shared-col[hidden],
.panel.shared .shared-block[hidden] {
  display: none !important;
}
.panel.shared.is-split {
  display: grid;
  grid-template-columns: minmax(var(--col-min), var(--col)) minmax(var(--col-min), var(--col));
  align-items: stretch;
  gap: var(--gap);
  flex: 0 0 calc(var(--col) * 2 + var(--gap));
  width: calc(var(--col) * 2 + var(--gap));
  max-width: none;
  min-width: calc(var(--col-min) * 2 + var(--gap));
  background: transparent;
  border: none;
  box-shadow: none;
  isolation: auto;
}
.panel.shared.is-split .shared-col {
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: 8px 0 14px rgba(26, 24, 20, .12);
  isolation: isolate;
  flex: none;
}
.panel.source {
  width: 100%;
  min-width: var(--col-min);
  max-width: none;
  border-top: 5px solid var(--c);
}
.story-sources.is-wide {
  grid-auto-columns: minmax(var(--col-min), var(--col));
  grid-auto-rows: max-content;
  align-items: stretch;
  align-content: start;
}
.story-board:has(.story-sources.is-wide) .panel.source {
  height: auto;
  background: var(--card);
}
.story-board:has(.story-sources.is-wide) .panel.shared:not(.is-split) {
  background: #fff;
  overflow: visible;
  align-self: stretch;
}
.story-board:has(.story-sources.is-wide) .panel.shared.is-split {
  background: transparent;
}
.story-hscroll {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 50;
  height: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-sizing: border-box;
}
.story-hscroll.is-on { display: block; }
.story-hscroll-inner { height: 1px; pointer-events: none; }
.panel-head { padding: .85rem .9rem .6rem; border-bottom: 1px solid var(--line); }
.panel-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.panel-kicker { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rev-pick { margin: 0; }
.rev-pick select {
  font: inherit;
  font-size: .68rem;
  max-width: 8.5rem;
  padding: .1rem .15rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.panel-dates { margin: .25rem 0 0; font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; gap: .1rem; }
.panel-dates .rev-date { font-style: italic; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.panel-head h2 { font-family: Georgia, serif; font-size: 1.05rem; margin: .15rem 0; }
.panel-head h2 a { text-decoration: none; border-bottom: 1px solid var(--line); }
.panel-head h2 a:hover { border-bottom-color: var(--ink); }
.panel-art { margin: .25rem 0 0; font-size: .88rem; }
.panel-art a { text-decoration: none; border-bottom: 1px solid var(--line); }
.panel-meta { margin: .2rem 0 0; font-size: .78rem; color: var(--muted); }
.panel-top { padding: .7rem .75rem 1rem; flex: 1; }
.panel-bottom { padding: .7rem .75rem 1rem; border-top: 1px dashed var(--line); background: rgba(26,24,20,.03); }
.panel h3 { margin: 0 0 .55rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel.shared h3 { white-space: nowrap; }
.shared-block { margin: 0; }
.shared-col > .shared-block:not(:last-child) {
  padding-bottom: .55rem;
}
.shared-block + .shared-block {
  padding-top: .7rem;
  border-top: 1px dashed var(--line);
}
.shared-col .shared-block:first-child { padding-top: .7rem; }
.shared-block[data-key^="disputed"],
.shared-block.is-cont[data-from^="disputed"] {
  background: #ecebe9;
  background: color-mix(in srgb, var(--ink) 8%, #fff);
}
.shared-col > .shared-block[data-key^="disputed"]:last-child,
.shared-col > .shared-block.is-cont[data-from^="disputed"]:last-child {
  flex: 1 1 auto;
}
.shared-block h3 { padding: 0 .75rem; }
.shared-cards { padding: 0 .75rem 1rem; }
.stmt {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: .65rem .7rem;
  margin: 0 0 .45rem;
  cursor: pointer;
  z-index: 1;
}
.stmt.common { border-left: 4px solid var(--common); }
.stmt.contested { border-left: 4px solid var(--contested); }
.stmt.opinion { border-left: 4px solid var(--opinion); }
.stmt.source.fact { border-left: 4px solid var(--c, #2c4a6e); }
.stmt-face { margin: 0; font-size: .95rem; line-height: 1.35; }
.overlay-quote {
  margin: 0;
  font-size: .92rem;
  line-height: 1.4;
}
.overlay-ellipsis {
  margin: .2rem 0 .15rem;
  color: var(--muted);
  letter-spacing: .18em;
  font-size: .85rem;
  line-height: 1;
}
.stmt-pop .stmt-marked strong,
.span-fly .stmt-marked strong {
  font-weight: 700;
}
.stmt.source:hover .stmt-pop > .stmt-face,
.stmt.source:focus-within .stmt-pop > .stmt-face,
.stmt.source.is-open .stmt-pop > .stmt-face {
  display: none;
}
.stmt.is-attr::before,
.stmt.is-attr::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}
.stmt.is-attr::before {
  left: -4px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid #1a1814;
  z-index: 3;
}
.stmt.is-attr::after {
  left: -3px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #fff;
  z-index: 4;
}
.stmt.is-attr:hover::before,
.stmt.is-attr:hover::after,
.stmt.is-attr:focus-within::before,
.stmt.is-attr:focus-within::after,
.stmt.source.is-open.is-attr::before,
.stmt.source.is-open.is-attr::after {
  display: none;
}
.attr-note {
  margin: 0 0 .45rem;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stmt.source { z-index: 2; }
.stmt.source:hover, .stmt.source:focus-within, .stmt.source.is-open { z-index: 12; }
.stmt-pop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
  padding: .65rem .7rem;
  transition: inset .22s ease, padding .22s ease, box-shadow .22s ease;
}
.stmt-pop .ctx {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .28s ease, opacity .2s ease, margin .22s ease;
}
.stmt.source:hover .stmt-pop,
.stmt.source:focus-within .stmt-pop,
.stmt.source.is-open .stmt-pop {
  inset: -1.25rem 0 auto 0;
  min-height: calc(100% + 2.5rem);
  min-width: 0;
  width: auto;
  padding: 1.05rem .7rem 1.2rem;
  box-shadow: 0 18px 44px rgba(26,24,20,.22);
}
.panel-bottom .stmt.source:hover .stmt-pop,
.panel-bottom .stmt.source:focus-within .stmt-pop,
.panel-bottom .stmt.source.is-open .stmt-pop {
  inset: auto 0 -1.25rem 0;
  top: auto;
}
.stmt.source:hover .stmt-pop .ctx,
.stmt.source:focus-within .stmt-pop .ctx,
.stmt.source.is-open .stmt-pop .ctx {
  max-height: 22rem;
  opacity: 1;
  margin-top: .7rem;
}
.ctx-sen { font-family: Georgia, serif; color: #3c3832; margin: 0 0 .35rem; }
.ctx-quote { margin: 0; font-size: .88rem; color: var(--muted); }
.ctx-meta { margin: .4rem 0 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.span-fly {
  --span-fade: 104px;
  position: absolute;
  z-index: 40;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  pointer-events: none;
  transition: width .18s ease, height .18s ease, top .18s ease, left .18s ease;
}
.span-fly[hidden] { display: none; }
.span-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.12) calc(var(--span-fade) * 0.28),
    rgba(0, 0, 0, 0.5) calc(var(--span-fade) * 0.55),
    #000 var(--span-fade),
    #000 calc(100% - var(--span-fade)),
    rgba(0, 0, 0, 0.5) calc(100% - var(--span-fade) * 0.55),
    rgba(0, 0, 0, 0.12) calc(100% - var(--span-fade) * 0.28),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0,
    rgba(0, 0, 0, 0.12) calc(var(--span-fade) * 0.28),
    rgba(0, 0, 0, 0.5) calc(var(--span-fade) * 0.55),
    #000 var(--span-fade),
    #000 calc(100% - var(--span-fade)),
    rgba(0, 0, 0, 0.5) calc(100% - var(--span-fade) * 0.55),
    rgba(0, 0, 0, 0.12) calc(100% - var(--span-fade) * 0.28),
    transparent 100%
  );
}
.span-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  background: transparent;
}
.span-grid { display: grid; height: 100%; align-items: start; padding: .5rem 0 0; }
.span-back {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--ink);
  pointer-events: none;
}
.span-fly > .span-cell {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  z-index: 3;
  box-shadow: 0 18px 44px rgba(26, 24, 20, .22);
}
.span-fly > .span-cell .stmt-face { font-size: .95rem; line-height: 1.35; }
.span-fly > .span-cell .overlay-quote { font-size: .92rem; line-height: 1.4; }
.span-fly > .span-cell .ctx-sen { margin: .7rem 0 0; font-size: .88rem; }
.story-extra { margin-top: 1rem; }
.muted { color: var(--muted); font-size: .85rem; }
.orig ul { list-style: none; padding: 0; }
.orig li { display: grid; grid-template-columns: 12px 1fr; gap: .4rem .6rem; margin: .7rem 0; }
.orig .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: .4rem; }
.orig .meta { grid-column: 2; color: var(--muted); font-size: .85rem; }
.narrow { max-width: 32rem; }
.form label, .inline-form label { display: block; margin: .7rem 0; font-size: .9rem; }
.form input, .form textarea, .form select, .inline-form input, .inline-form textarea, .inline-form select {
  width: 100%; padding: .45rem .5rem; border: 1px solid var(--line); background: #fff; font: inherit; margin-top: .25rem;
}
.form button, .btn { background: var(--ink); color: var(--paper); border: 0; padding: .55rem 1rem; cursor: pointer; font: inherit; text-decoration: none; display: inline-block; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.error { color: #9b1c1c; }
.ok { color: var(--common); }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.puzzle-list { list-style: none; padding: 0; }
.puzzle-list li { background: var(--card); padding: 1rem; margin: .7rem 0; border: 1px solid var(--line); }
.clash-board { background: var(--card); border: 1px solid var(--line); padding: 1.2rem; min-height: 12rem; }
.pair { display: grid; gap: .8rem; }
.pair .q { background: #fff; padding: 1rem; border-left: 4px solid var(--ink); }
.pair .actions { display: flex; gap: .6rem; }
.pair .actions button { flex: 1; padding: .8rem; font-size: 1rem; }
.compass-play { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; max-width: 28rem; }
.compass-play button { min-height: 5.5rem; cursor: pointer; border: 1px solid var(--line); background: var(--card); font: inherit; }
.prompt { font-family: Georgia, serif; font-size: 1.2rem; }
.scoreline { font-weight: 600; }
.desk { background: #ece7de; }
.desk-shell { display: grid; grid-template-columns: 13.5rem 1fr; min-height: 100vh; }
.desk-side { background: #1a1814; color: #f4efe6; padding: 1.2rem 1rem; }
.desk-side .brand-lockup { margin-bottom: 1.2rem; color: #f4efe6; }
.desk-side .wordmark { color: #f4efe6; display: block; font-size: 1.15rem; }
.desk-side .brand-mark { border-color: #3a342c; }
.desk-side nav { display: flex; flex-direction: column; gap: .55rem; }
.desk-side a, .desk-side .logout-form button { color: #f4efe6; text-decoration: none; font-size: .92rem; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; text-align: left; }
.who { margin-top: 2rem; font-size: .8rem; color: #c4bdb3; }
.who span { color: #8f877c; }
.desk-main { padding: 1.5rem 1.6rem 3rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; }
.stat-row li { background: var(--card); padding: .7rem 1rem; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .4rem; align-items: end; }
.inline-form textarea { width: 100%; }
.crumb { font-size: .85rem; color: var(--muted); }
.rev-card { background: var(--card); border: 1px solid var(--line); padding: .8rem 1rem 1rem; margin: 1rem 0; }
.rev-card h3 { margin: 0 0 .3rem; font-size: 1rem; }
.rev-body { white-space: pre-wrap; font: inherit; font-size: .88rem; background: #fff; padding: .6rem; border: 1px solid var(--line); }
@media (max-width: 900px) {
  .mast-inner, .desk-shell { grid-template-columns: 1fr; }
  .desk-shell { display: block; }
  .nav { justify-content: flex-start; }
  .browse-menu { left: 0; right: auto; }
}
.span-drop { display: none; }
@media (max-width: 640px) {
  .story-board { flex-direction: column; height: auto; max-height: none; padding-bottom: 2rem; align-items: stretch; }
  .panel { min-height: 0; height: auto; }
  .panel-top { flex: 0 0 auto; }
  .panel.shared,
  .panel.shared.is-split {
    display: flex;
    flex-direction: column;
    flex: none;
    width: auto;
    max-width: none;
    min-width: 0;
    position: relative;
    overflow: visible;
    background: #fff;
    border: 1px solid var(--ink);
    box-shadow: none;
  }
  .panel.shared.is-split .shared-col {
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    min-width: 0;
  }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-brand { max-width: 100%; flex: none; width: 100%; }
  .story-compass,
  .story-compass svg {
    width: min(17.5rem, 78vw);
    height: min(17.5rem, 78vw);
  }
  .foot-art { height: auto; width: 100%; max-width: 100%; }
  .panel.source { width: auto; min-width: 0; max-width: none; }
  .story-sources,
  .story-sources.is-wide {
    display: flex;
    flex-direction: column;
    overflow: visible;
    grid-auto-flow: unset;
    flex: none;
  }
  .story-hscroll { display: none !important; }
  .span-fly { display: none !important; }
  .stmt.shared { padding-right: 1.7rem; }
  .stmt.shared::after {
    content: "▾";
    position: absolute;
    right: .55rem;
    top: .7rem;
    color: var(--muted);
    font-size: .75rem;
    pointer-events: none;
    line-height: 1;
  }
  .stmt.shared.is-drop-open { z-index: 20; }
  .stmt.shared.is-drop-open::after { content: "▴"; }
  .span-drop {
    display: block;
    position: absolute;
    left: -.75rem;
    right: -.75rem;
    top: calc(100% + .28rem);
    width: auto;
    z-index: 30;
    background: var(--card);
    border: 1px solid var(--ink);
    box-shadow: 0 12px 28px rgba(26, 24, 20, .16);
    padding: .25rem 0;
  }
  .span-drop-item {
    padding: .5rem .8rem .55rem;
    border-bottom: 1px solid var(--line);
    border-left: 4px solid var(--c, var(--ink));
  }
  .span-drop-item:last-child { border-bottom: 0; }
  .span-drop-item.is-missing { border-left-color: var(--line); }
  .span-drop-kicker {
    margin: 0 0 .28rem;
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .span-drop-item .overlay-quote,
  .span-drop-item .stmt-face {
    margin: 0;
  }
}
