/* WHITEOUT echoes: the town book, back issues, the corkboard, the lost and found,
   the hall of fame, about this town. Same chip language as ui.css, a little dustier. */
.echo-card { max-width: 820px !important; }
.echo-card .cat-wallet { display: none; }
.echo-card .cat-tabs { margin-top: 2px; }

/* ---------- the town book ---------- */
.book-card { background: #FBF8EF !important; }
.book-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 2px 0 8px; }
.book-count b { font: 700 26px "Cooper Hewitt", sans-serif; color: #003FBA; letter-spacing: -0.03em; }
.book-count span { font-size: 13px; color: #46546B; }
.book-you { margin: 0 !important; font-size: 13px !important; color: #46546B; }
.book-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.book-nav button { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 999px; touch-action: manipulation; }
.book-nav .book-mine { background: #F2C94C; }
.book-pg { width: 78px; height: 34px; border: 3px solid #000; border-radius: 10px; padding: 0 8px; font: 700 14px "Cooper Hewitt", sans-serif; text-align: center; }
.book-of { font-size: 12px; color: #46546B; }
.book-winters { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; margin: 8px 0 6px; }
.book-wl { font-size: 11px; color: #46546B; margin-right: 2px; }
.book-w { height: 26px; min-width: 28px; padding: 0 6px; font-size: 11px; border-width: 2px !important; border-radius: 8px; background: #fff; touch-action: manipulation; }
.book-w.on { background: #003FBA; color: #fff; }
.book-spread { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 3px solid #000; border-radius: 10px; overflow: hidden; background: #F6F1E3; box-shadow: inset 0 0 40px rgba(122,82,54,0.18); }
.book-page { position: relative; padding: 10px 16px 12px 18px; min-height: 300px;
  background: repeating-linear-gradient(to bottom, transparent 0 25px, rgba(0,63,186,0.13) 25px 26px), #F6F1E3; }
.book-page + .book-page { border-left: 2px solid rgba(0,0,0,0.35); box-shadow: inset 12px 0 16px -12px rgba(0,0,0,0.25); }
.book-page.blank { background: #F1EBDA; }
.book-ph { display: flex; justify-content: space-between; font: 700 11px "Cooper Hewitt", sans-serif; color: #8A7A5A; letter-spacing: 0.04em; text-transform: uppercase; height: 22px; }
.book-line { display: flex; align-items: baseline; gap: 8px; height: 26px; line-height: 26px; white-space: nowrap; overflow: hidden; transform-origin: left center; }
.book-line .bn { font: 11px "Courier New", monospace; color: #A8997A; min-width: 64px; }
.book-line .bs { font: italic 600 16px Georgia, "Times New Roman", serif; letter-spacing: 0.01em; }
.book-line .bt { font: italic 12px Georgia, serif; color: #6B6B6B; overflow: hidden; text-overflow: ellipsis; }
.book-line.ink0 .bs { color: #1B2A5C; }
.book-line.ink1 .bs { color: #2A2A2A; }
.book-line.ink2 .bs { color: #3F5E8C; opacity: 0.9; }
.book-line.ink3 .bs { color: #5B4636; }
.book-line.old .bs { color: #7A6A50; font-family: "Courier New", monospace; font-style: normal; font-weight: 700; font-size: 14px; }
.book-line.me { background: rgba(242,201,76,0.35); border-radius: 6px; }
.book-line.me .bs { color: #003FBA; }
.book-line.met .bs { color: #8A2433; }
.book-line.empty { opacity: 0; }
.book-keeper { font: italic 12px Georgia, serif; color: #8A2433; margin: -4px 0 2px 72px; transform: rotate(-1.2deg); }
.book-search { display: flex; gap: 8px; margin-top: 10px; }
.book-search input { flex: 1; min-width: 0; height: 38px; border: 3px solid #000; border-radius: 12px; padding: 0 12px; font: 600 15px "Avenir Next", system-ui, sans-serif; }
.book-search button { height: 38px; padding: 0 16px; font-size: 14px; }
.book-results { margin-top: 6px; }
.book-hits { display: flex; flex-wrap: wrap; gap: 6px; }
.book-hit { height: 32px; padding: 0 10px; font-size: 12px; border-radius: 999px; border-width: 2px !important; background: #fff; }
.book-note, .book-foot { font-size: 12px !important; color: #46546B; margin: 6px 0 0 !important; }

/* ---------- back issues ---------- */
.arc-top { margin-bottom: 4px; }
.arc-now { height: 34px; padding: 0 12px; font-size: 13px; background: #F28C28; border-radius: 999px; }
.arc-pager { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #46546B; margin: 0 0 6px; }
.arc-pager button { height: 30px; padding: 0 10px; font-size: 12px; border-radius: 999px; }
.arc-list { overflow-y: auto; border-top: 3px solid #000; }
.arc-row { border-bottom: 1px solid rgba(0,0,0,0.18); background: #FBF8EF; }
.arc-row:nth-child(2n) { background: #F6F1E3; }
.arc-h { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: baseline; width: 100%; padding: 8px 10px; cursor: pointer; }
.arc-h:focus-visible { outline: 3px solid #34A1E5; }
.arc-no { font: 700 12px "Courier New", monospace; color: #8A7A5A; }
.arc-hl { font: 700 15px "Cooper Hewitt", sans-serif; letter-spacing: -0.01em; color: #1B2A5C; }
.arc-dt { font: 11px "Courier New", monospace; color: #8A7A5A; white-space: nowrap; }
.arc-row.ms .arc-hl { color: #8A2433; }
.arc-row.ms .arc-no::after { content: " *"; color: #D9475B; }
.arc-b { margin: 0 !important; padding: 0 12px 10px 94px; font: 14px/1.45 Georgia, serif !important; color: #2A2A2A; }

/* ---------- corkboard ---------- */
.cork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; padding: 14px; background: #C99B66; border: 6px solid #7A5236; border-radius: 10px; overflow-y: auto;
  background-image: radial-gradient(rgba(122,82,54,0.35) 1px, transparent 1.4px); background-size: 9px 9px; }
.cork-p { position: relative; padding: 14px 12px 12px; border: 1px solid rgba(0,0,0,0.35); box-shadow: 2px 3px 0 rgba(0,0,0,0.18); filter: saturate(0.55); }
.cork-p::before { content: ""; position: absolute; top: 4px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #D9475B; border: 1px solid #000; }
.cork-p h4 { margin: 4px 0 6px; font: 700 15px/1.05 "Cooper Hewitt", sans-serif; letter-spacing: 0.01em; color: rgba(0,0,0,0.78); }
.cork-p p { margin: 2px 0 !important; font-size: 12px !important; line-height: 1.3 !important; color: rgba(0,0,0,0.7); }
.cork-p .cork-n { font: italic 13px Georgia, serif !important; color: #1B2A5C; margin-top: 8px !important; transform: rotate(-2deg); }
.cork-p.c-sun { background: #F7E2A0; }
.cork-p.c-frost { background: #DDEFFB; }
.cork-p.c-berry { background: #EDB3BB; }
.cork-p.c-plum { background: #D3C3EC; }
.cork-p.c-moss { background: #BFE0CC; }
.cork-p.c-white { background: #F6F1E3; }
.cork-p.c-ember { background: #F5C9A0; }
.cork-p.crossed h4 { text-decoration: line-through; text-decoration-thickness: 2px; }
.cork-p.crossed .cork-n { color: #8A2433; font-size: 18px !important; font-style: normal; font-weight: 700; }

/* ---------- lost and found ---------- */
.lost-keep { border: 3px solid #000; border-radius: 14px; padding: 10px 12px; background: #FFF4D6; margin-bottom: 10px; }
.lost-keep p { margin: 2px 0 !important; font-size: 14px !important; }
.lost-k { font-weight: 600; }
.lost-note { font-size: 12px !important; color: #46546B; }
.lost-take { height: 38px; padding: 0 16px; font-size: 14px; margin-top: 8px; background: #F2C94C; }
.lost-list { overflow-y: auto; display: flex; flex-direction: column; }
.lost-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(110px, 0.8fr) 2fr; gap: 10px; padding: 7px 4px; border-bottom: 1px dashed rgba(0,0,0,0.25); align-items: baseline; }
.lost-row b { font: 700 14px "Cooper Hewitt", sans-serif; }
.lost-who { font: 12px "Courier New", monospace; color: #8A7A5A; }
.lost-n { font: italic 13px Georgia, serif; color: #46546B; }

/* ---------- hall of fame ---------- */
.hof-card { background: #14204A !important; color: #fff !important; }
.hof-card h2, .hof-card .cat-sub { color: #fff !important; }
.hof-card .cat-tab { background: #1E2E66; color: #BFE6FF; border-color: #34A1E5; }
.hof-card .cat-tab.on { background: #F2C94C; color: #000; }
.hof-sub { font-size: 13px !important; color: #BFE6FF; margin: 0 0 8px !important; }
.hof-list { overflow-y: auto; border-top: 2px solid rgba(201,162,74,0.6); }
.hof-row { display: grid; grid-template-columns: 30px 1fr auto 80px; gap: 10px; align-items: baseline; padding: 7px 6px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hof-r { font: 700 15px "Cooper Hewitt", sans-serif; color: #C9A24A; text-align: right; }
.hof-n { font: 700 15px "Courier New", monospace; color: rgba(255,255,255,0.88); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-w { font: 11px "Courier New", monospace; color: rgba(191,230,255,0.6); white-space: nowrap; }
.hof-s { font: 700 15px "Cooper Hewitt", sans-serif; color: #F2C94C; text-align: right; }
.hof-row.me { background: rgba(242,201,76,0.18); border-radius: 8px; }
.hof-row.me .hof-n { color: #F2C94C; }
.hof-foot { font-size: 13px !important; color: #BFE6FF; margin-top: 10px !important; }

/* ---------- about this town ---------- */
.about-count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; border: 3px solid #000; border-radius: 14px; padding: 10px 14px; background: #E3F2FC; }
.about-count b { font: 700 32px "Cooper Hewitt", sans-serif; color: #003FBA; letter-spacing: -0.03em; }
.about-count span { font-size: 14px; font-weight: 600; }
.about-count small { flex-basis: 100%; font-size: 12px; color: #46546B; }
.about-you { font-size: 13px !important; color: #46546B; }
.about-worlds h3, .about-log h3 { font: 700 16px "Cooper Hewitt", sans-serif; margin: 10px 0 4px; }
.about-worlds p { margin: 2px 0 !important; font-size: 14px !important; }
.about-ret { color: #46546B; font-style: italic; }
.about-log { overflow-y: auto; min-height: 120px; }
.about-log p { display: grid; grid-template-columns: 48px 1fr; gap: 8px; margin: 0 !important; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,0.18); font-size: 14px !important; line-height: 1.35 !important; }
.about-log b { font: 700 12px "Courier New", monospace; color: #8A7A5A; padding-top: 2px; }
.sheet-list .about-btn { background: #F6F1E3; }

@media (max-width: 760px) {
  .book-spread { grid-template-columns: 1fr; grid-auto-rows: max-content; align-content: start; }
  .book-page + .book-page { border-left: 0; border-top: 2px solid rgba(0,0,0,0.35); }
  .book-page { min-height: 0; padding: 8px 10px 10px 12px; }
  .book-line .bn { min-width: 58px; font-size: 10px; }
  .book-line .bs { font-size: 15px; }
  .book-keeper { margin-left: 60px; }
  .book-nav button { padding: 0 9px; }
  .arc-h { grid-template-columns: 60px 1fr; }
  .arc-dt { grid-column: 2; }
  .arc-b { padding-left: 12px; }
  .lost-row { grid-template-columns: 1fr 1fr; }
  .lost-n { grid-column: 1 / -1; }
  .hof-row { grid-template-columns: 24px 1fr 64px; }
  .hof-w { grid-column: 2 / 4; grid-row: 2; }
  .cork-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px; }
}
.overlay .card input.book-pg { width: 84px; flex: none; margin: 0; height: 34px; padding: 0 6px; font-size: 14px; border-radius: 10px; }
.overlay .card .book-search input { width: auto; margin: 0; height: 38px; padding: 0 12px; font-size: 15px; }
