/* The Village (2026-10-28): a 16-bit top-down village for the seven of G-X-TEN, beside a list of who is where. */
.village-page .page-main.village-main { max-width: 1240px; padding: 120px clamp(16px, 3vw, 32px) 80px; }
.village-main .section-kicker { color: #c9a862; }
.village-main .lede { max-width: 46em; }
.village-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(16px, 2.5vw, 28px); align-items: start; margin-top: 28px; }
.village-frame { margin: 0; padding: 10px; border: 1px solid rgba(168, 255, 214, 0.2); border-radius: 14px; background: #070c09;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 24px 60px rgba(0, 0, 0, 0.5); }
.village-frame canvas { display: block; width: 100%; height: auto; aspect-ratio: 40 / 26; border-radius: 6px; image-rendering: pixelated; image-rendering: crisp-edges; cursor: pointer; }
@media (max-width: 760px) { .village-frame canvas { image-rendering: auto; } }
#village { cursor: grab; touch-action: pan-y; }
.village-zoom { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: grid; gap: 4px; }
.village-zoom button { width: 32px; height: 32px; padding: 0; border: 1px solid rgba(232, 251, 240, 0.7); border-radius: 6px; background: rgba(7, 12, 9, 0.86); color: #e7f1ea; font: 700 1.05rem/1 "JetBrains Mono", ui-monospace, monospace; cursor: pointer; }
.village-zoom button:hover:not(:disabled) { background: #1a2a22; }
.village-zoom button:disabled { opacity: 0.4; cursor: default; }
.village-zoom button:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 1px; }
.is-filming .village-zoom { display: none; }
.village-go { margin-left: 6px; min-height: 26px; padding: 2px 8px; font-size: 0.72rem; }
#village.is-dragging { cursor: grabbing; }
#village:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-frame canvas.village-mini { position: absolute; image-rendering: auto; bottom: 8px; right: 8px; z-index: 1; width: clamp(76px, 9.4%, 112px); height: auto; aspect-ratio: 80 / 52; border: 1px solid rgba(232, 251, 240, 0.7); border-radius: 4px; background: #2e5631; cursor: pointer; touch-action: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.is-filming .village-frame canvas.village-mini { display: none; }
.village-mini-btn { display: none; }
@media (max-width: 760px) {
  .village-frame canvas.village-mini { display: none; width: 58%; right: 6px; bottom: 44px; z-index: 3; }
  .village-frame canvas.village-mini.is-open { display: block; }
  .village-mini-btn { display: block; position: absolute; right: 6px; bottom: 6px; z-index: 3; min-width: 44px; min-height: 34px; padding: 4px 9px; border: 1px solid rgba(232, 251, 240, 0.7); border-radius: 6px; background: rgba(7, 12, 9, 0.86); color: #e7f1ea; font: 600 0.72rem/1 "JetBrains Mono", ui-monospace, monospace; cursor: pointer; }
  .is-filming .village-mini-btn { display: none; }
}
.village-beyond { margin-top: 6px !important; }   /* smaller than the map's own pixels: smoothed, or rows of them would simply vanish */
.village-frame figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: #9fb3a7; font: 500 0.78rem/1.4 "JetBrains Mono", ui-monospace, monospace; }
.village-panel { padding: 16px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 14px; background: rgba(9, 20, 15, 0.7); }
.village-page .village-panel h2 { margin: 0 0 4px; font-size: 1.15rem; }
.village-page .village-clock { margin: 0 0 14px; color: #d4ff7a; font: 700 1.5rem/1.2 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.village-residents { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.village-page .village-residents li { margin: 0; }
.village-resident { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 10px; border: 1px solid rgba(168, 255, 214, 0.14); border-radius: 10px;
  color: #e7f1ea; background: rgba(168, 255, 214, 0.03); text-align: left; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.village-resident:hover { border-color: rgba(168, 255, 214, 0.4); background: rgba(168, 255, 214, 0.07); }
.village-resident:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-resident.is-following { border-color: #d4ff7a; background: rgba(212, 255, 122, 0.08); box-shadow: 0 0 0 1px #d4ff7a inset; }
.village-avatar { width: 40px; height: 40px; flex: none; border-radius: 8px; background: #2e5631; image-rendering: pixelated; }
.village-resident-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.village-resident-name { font: 700 0.98rem/1.2 Inter, system-ui, sans-serif; }
.village-resident-role { color: #c9a862; font: 600 0.66rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.village-resident-now { color: #b7c7bd; font: 400 0.82rem/1.35 Inter, system-ui, sans-serif; }
.village-resident-mood { color: #8ff5c4; font: italic 500 0.74rem/1.3 Inter, system-ui, sans-serif; }
.village-resident-mood:empty { display: none; }
.village-chronicle-moods { color: #9fb3a7; font: 400 0.8rem/1.45 Inter, system-ui, sans-serif; }
.village-replay-btn { align-self: flex-start; margin: 2px 0 0; }
.village-replay { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 6px 10px; border: 1px solid rgba(143, 245, 196, 0.4); border-radius: 8px; background: rgba(7, 12, 9, 0.86); color: #cfe0d6; font: 500 0.74rem/1.35 Inter, system-ui, sans-serif; }
.village-replay[hidden] { display: none; }
.village-replay-controls { display: inline-flex; gap: 6px; }
.village-replay button { min-height: 26px; padding: 2px 9px; border: 1px solid rgba(143, 245, 196, 0.5); border-radius: 999px; background: rgba(143, 245, 196, 0.08); color: #8ff5c4; font: 600 0.72rem/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.village-replay button[aria-pressed="true"] { background: #8ff5c4; color: #06110b; }
.village-replay button:hover { background: rgba(143, 245, 196, 0.2); color: #fff; }
.village-replay button:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-replay-short { display: none; }
@media (max-width: 560px) { .village-replay { font-size: 0.7rem; padding: 4px 8px; } .village-replay-text { display: none; } .village-replay-short { display: inline; } }
.village-resident.is-following .village-resident-name::after { content: " · following"; color: #d4ff7a; font-size: 0.78rem; font-weight: 600; }
.village-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; padding: 0; list-style: none; color: #b7c7bd; font: 400 0.84rem/1.4 Inter, system-ui, sans-serif; }
.village-legend li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.village-legend i { width: 10px; height: 10px; border-radius: 2px; }
.village-legend .is-tower { background: #2c7d57; } .village-legend .is-arena { background: #9c2f3b; } .village-legend .is-watch { background: #2f6aa3; }
.village-legend .is-lab { background: #8c5f2e; } .village-legend .is-commons { background: #6d4f33; } .village-legend .is-foundry { background: #a8832a; }
.village-legend .is-archive { background: #6a49a3; } .village-legend .is-camp { background: #86724f; } .village-legend .is-monolith { background: #58e8a4; }
.village-legend .is-dungeon { background: #857f74; box-shadow: inset 0 0 0 2px #e8c15a; }
.village-page .village-note { margin-top: 18px; color: #9fb3a7; font-size: 0.88rem; }
@media (max-width: 900px) { .village-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .village-page .page-main.village-main { padding-top: 104px; } .village-frame { padding: 6px; } }
@media (prefers-reduced-motion: reduce) { .village-resident { transition: none; } }

/* conversations: a speech bubble over the speaker, and the day's log */
.village-stage { position: relative; }
.village-bubble { --bx: 50%; --by: 50%; position: absolute; left: var(--bx); top: var(--by); z-index: 2; width: max-content; max-width: min(300px, 70%); margin: 0;
  padding: 8px 11px; border: 2px solid #e7f1ea; border-radius: 4px; background: #0b1410; color: #f1f6f2; font: 500 0.86rem/1.35 Inter, system-ui, sans-serif;
  transform: translate(-18px, calc(-100% - 10px)); box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45); pointer-events: none; }
.village-bubble::after { content: ""; position: absolute; left: 12px; bottom: -8px; border: 6px solid transparent; border-top-color: #e7f1ea; border-bottom: 0; }
.village-bubble.is-left { transform: translate(calc(-100% + 18px), calc(-100% - 10px)); }
.village-bubble.is-left::after { left: auto; right: 12px; }
.village-bubble[hidden] { display: none; }
.village-bubble { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; align-items: start; }
.village-face { grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 4px; image-rendering: pixelated; image-rendering: crisp-edges; }
.village-answer { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; align-items: start; }
.village-answer .village-face { width: 32px; height: 32px; }
.village-bubble b, .village-log-line b { display: block; font: 700 0.7rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.village-log-line b { display: inline; margin-right: 6px; }
.is-kael b { color: #e0a050; } .is-mara b { color: #d9b48a; } .is-nexus b { color: #58e8a4; } .is-vesper b { color: #ff6b78; }
.is-orion b { color: #62c6ff; } .is-helix b { color: #f5ce69; } .is-echo b { color: #c593ff; }
.village-talk { margin-top: 28px; padding: 18px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 14px; background: rgba(9, 20, 15, 0.7); }
.village-page .village-talk h2 { margin: 0 0 6px; font-size: 1.15rem; }
.village-page .village-talk-status { margin: 0 0 12px; color: #9fb3a7; font-size: 0.86rem; }
.village-log { max-height: 360px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.village-page .village-log li { margin: 0; padding: 4px 0; color: #dfe9e2; font: 400 0.92rem/1.45 Inter, system-ui, sans-serif; }
.village-page .village-log .village-log-head { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(168, 255, 214, 0.12); color: #c9a862;
  font: 600 0.72rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.village-page .village-log .village-log-head:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.village-page .village-log .village-log-empty { color: #9fb3a7; }
@media (max-width: 560px) { .village-bubble { font-size: 0.78rem; max-width: 78%; padding: 6px 8px; } }
.village-bubble.is-below { transform: translate(-18px, 0); }
.village-bubble.is-below.is-left { transform: translate(calc(-100% + 18px), 0); }
.village-bubble.is-below::after { top: -8px; bottom: auto; border-top: 0; border-bottom: 6px solid #e7f1ea; border-top-color: transparent; }

/* polish: names on the map, the hover card, Up next */
.village-labels { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.village-labels[hidden] { display: none; }
.village-label { position: absolute; left: var(--lx); top: var(--ly); transform: translate(-50%, -50%); padding: 1px 6px; border-radius: 3px;
  background: rgba(5, 10, 7, 0.72); color: #eef6f0; font: 600 clamp(0.55rem, 0.9vw, 0.72rem)/1.3 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em; white-space: nowrap; text-shadow: 0 1px 0 #000; }
.village-label.is-monolith { color: #8ff5c4; }
.village-label.is-dungeon { color: #e8c15a; }
.village-tip { --tx: 50%; --ty: 50%; position: absolute; left: var(--tx); top: var(--ty); z-index: 3; max-width: min(320px, 80%); margin: 6px 0 0;
  padding: 7px 10px; border: 1px solid rgba(168, 255, 214, 0.35); border-radius: 6px; background: #0b1410f2; color: #e7f1ea;
  font: 500 0.8rem/1.4 Inter, system-ui, sans-serif; transform: translateX(-50%); pointer-events: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5); }
.village-tip[hidden] { display: none; }
.village-caption-end { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.village-names:disabled { opacity: 0.6; cursor: wait; }
.village-frame canvas:focus { outline: none; }
/* the launch film */
.village-film { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #030605; }
.village-film[hidden] { display: none; }
.village-film canvas { display: block; width: min(100vw, calc(100vh * 16 / 9)); height: auto; aspect-ratio: 16 / 9; image-rendering: pixelated; image-rendering: crisp-edges; }
.village-film-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; align-items: center; max-width: calc(100vw - 24px); padding: 8px 12px; border-radius: 10px; background: rgba(7, 12, 9, 0.82); color: #b7c7bd; font: 500 0.82rem/1.4 Inter, system-ui, sans-serif; }
.village-film-bar button { min-height: 32px; padding: 4px 10px; border: 1px solid rgba(168, 255, 214, 0.3); border-radius: 7px; background: transparent; color: #cfe0d6; font: 600 0.78rem/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.village-film-bar button:hover { border-color: rgba(168, 255, 214, 0.6); color: #fff; }
.village-film-bar button:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
body.is-filming { overflow: hidden; }
.village-names { min-height: 32px; padding: 4px 10px; border: 1px solid rgba(168, 255, 214, 0.3); border-radius: 7px; background: transparent; color: #cfe0d6;
  font: 600 0.74rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.village-names:hover { border-color: rgba(168, 255, 214, 0.6); color: #fff; }
.village-names:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-page .village-next { margin: -8px 0 14px; color: #c9a862; font: 500 0.82rem/1.4 Inter, system-ui, sans-serif; }
.village-page .village-match { margin: -8px 0 14px; color: #8ff5c4; font: 500 0.82rem/1.4 Inter, system-ui, sans-serif; }
.village-page .village-match[hidden] { display: none; }
.village-watch { margin-left: 4px; padding: 2px 9px; border: 1px solid rgba(143, 245, 196, 0.5); border-radius: 999px; background: rgba(143, 245, 196, 0.08); color: #8ff5c4; font: 600 0.72rem/1.4 Inter, system-ui, sans-serif; cursor: pointer; }
.village-watch:hover { background: rgba(143, 245, 196, 0.18); color: #fff; }
.village-watch:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-live-rule { height: 1px; margin: 10px 0; background: rgba(168, 255, 214, 0.14); }
@media (max-width: 560px) { .village-label { font-size: 0.5rem; padding: 0 3px; } }

/* the chronicle of past village days */
.village-chronicle-box { margin-top: 20px; padding: 18px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 14px; background: rgba(9, 20, 15, 0.7); }
.village-page .village-chronicle-box h2 { margin: 0 0 6px; font-size: 1.15rem; }
.village-chronicle { display: grid; gap: 12px; max-height: 420px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.village-page .village-chronicle li { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 10px 0 0; border-top: 1px solid rgba(168, 255, 214, 0.1); }
.village-page .village-chronicle li:first-child { padding-top: 0; border-top: 0; }
.village-chronicle-head { color: #c9a862; font: 600 0.72rem/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
.village-chronicle-text { color: #dfe9e2; font: 400 0.95rem/1.5 Inter, system-ui, sans-serif; }
.village-page .village-chronicle .village-chronicle-empty { color: #9fb3a7; font-size: 0.9rem; }

/* Join in: noticeboard, ask a resident, tomorrow's thread */
.village-join { margin-top: 20px; padding: 18px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 14px; background: rgba(9, 20, 15, 0.7); }
.village-page .village-join h2 { margin: 0 0 6px; font-size: 1.15rem; }
.village-join-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.village-join-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid rgba(168, 255, 214, 0.12); border-radius: 12px; background: rgba(0, 0, 0, 0.2); }
.village-page .village-join-card h3 { margin: 0; color: #f2f7f3; font: 700 1rem/1.2 Inter, system-ui, sans-serif; }
.village-page .village-join-help { margin: 0; color: #9fb3a7; font-size: 0.84rem; line-height: 1.45; }
.village-board { display: grid; gap: 8px; max-height: 260px; margin: 4px 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.village-page .village-board li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 8px 10px; border-left: 3px solid #c9a862; border-radius: 4px;
  background: rgba(201, 168, 98, 0.08); color: #e6ede8; font: 400 0.9rem/1.4 Inter, system-ui, sans-serif; }
.village-board b { color: #f0d28a; font: 600 0.74rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; }
.village-board em { color: #8ff5c4; font-size: 0.72rem; font-style: normal; }
.village-page .village-board .village-board-empty { border: 0; background: none; color: #9fb3a7; padding: 0; }
.village-form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.village-form label { display: flex; flex-direction: column; gap: 4px; color: #cfe0d6; font: 600 0.8rem/1.3 Inter, system-ui, sans-serif; }
.village-count { margin-left: auto; color: #9fb3a7; font-weight: 400; }
.village-form label:has(.village-count) { position: relative; }
.village-form input, .village-form textarea, .village-form select { min-height: 42px; padding: 8px 10px; border: 1px solid rgba(168, 255, 214, 0.25); border-radius: 8px;
  background: #050a07; color: #f2f7f3; font: 400 0.95rem/1.4 Inter, system-ui, sans-serif; }
.village-form textarea { resize: vertical; }
.village-form input:focus-visible, .village-form textarea:focus-visible, .village-form select:focus-visible, .village-form button:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-form button { align-self: flex-start; min-height: 42px; padding: 8px 18px; border: 0; border-radius: 9px; background: #6cffb8; color: #06140c; font: 700 0.9rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.village-form button:hover { background: #9affcf; }
.village-form button:disabled { opacity: 0.5; cursor: default; }
.village-page .village-form-status { min-height: 1.2em; margin: 0; color: #9fb3a7; font-size: 0.82rem; }
.village-page .village-form-status.is-bad { color: #ff9b8a; }
.village-page .village-answer { margin: 0; padding: 10px 12px; border: 1px solid rgba(168, 255, 214, 0.25); border-radius: 8px; background: #0b1410; color: #eef6f0; font-size: 0.92rem; line-height: 1.45; }
.village-answer[hidden] { display: none; }
.village-answer b { display: block; margin-bottom: 2px; font: 700 0.7rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.village-vote-options { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.village-vote-option { position: relative; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px !important; padding: 8px 10px; overflow: hidden;
  border: 1px solid rgba(168, 255, 214, 0.15); border-radius: 8px; cursor: pointer; font-weight: 500 !important; }
.village-vote-option input { min-height: 0; accent-color: #6cffb8; }
.village-vote-option small { color: #9fb3a7; font-size: 0.74rem; }
.village-vote-option i { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%); background: #6cffb8; opacity: 0.6; }
.village-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 980px) { .village-join-grid { grid-template-columns: minmax(0, 1fr); } }

/* phase 3: the season and sky under the clock, the places you can open, and a look inside each building */
.village-page .village-world { display: flex; flex-direction: column; gap: 2px; margin: -10px 0 10px; color: #b7c7bd; font: 500 0.82rem/1.4 Inter, system-ui, sans-serif; }
.village-page .village-world b { color: #f0d28a; font-weight: 600; }
.village-page .village-world:empty { display: none; }
.village-place { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: -6px -8px; padding: 6px 8px; border: 1px solid transparent; border-radius: 7px; background: none;
  color: inherit; font: inherit; cursor: pointer; }
.village-place:hover { border-color: rgba(168, 255, 214, 0.35); color: #fff; }
.village-place:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 1px; }
.village-room { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 16px; border: 1px solid rgba(168, 255, 214, 0.3); border-radius: 14px;
  background: #0b1410; color: #e7f1ea; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); overflow: auto; }
.village-room::backdrop { background: rgba(3, 6, 5, 0.72); }
.village-room-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.village-page .village-room-head h2 { margin: 0; font-size: 1.05rem; }
.village-room-close { width: 36px; height: 36px; flex: none; border: 1px solid rgba(168, 255, 214, 0.3); border-radius: 8px; background: transparent; color: #cfe0d6; font: 400 1.3rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.village-room-close:hover { border-color: rgba(168, 255, 214, 0.6); color: #fff; }
.village-room-close:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
.village-room canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 6px; border: 1px solid rgba(168, 255, 214, 0.18); image-rendering: pixelated; image-rendering: crisp-edges; }
.village-page .village-room-who { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; color: #dfe9e2; font: 400 0.9rem/1.45 Inter, system-ui, sans-serif; }
.village-room-person b { margin-right: 4px; font: 700 0.7rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.village-room-said { margin: 10px 0 0; padding: 0; list-style: none; }
.village-page .village-room-said li { margin: 0; padding: 3px 0; color: #dfe9e2; font: 400 0.9rem/1.45 Inter, system-ui, sans-serif; }
.village-page .village-room-said .village-log-head { padding-top: 8px; border-top: 1px solid rgba(168, 255, 214, 0.12); color: #c9a862; font: 600 0.72rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.village-page .village-room-said .village-log-empty { color: #9fb3a7; }
@media (max-width: 560px) { .village-room { padding: 12px; } }

/* phase 4: the real forge in the buildings, visitors as wanderers, and the news the residents hear */
.village-page .village-visitors { margin: -8px 0 14px; color: #b7c7bd; font: 500 0.8rem/1.4 Inter, system-ui, sans-serif; }
.village-page .village-visitors:empty { display: none; }
.village-forge { margin: -4px 0 12px; padding: 10px 12px; border: 1px solid rgba(201, 168, 98, 0.25); border-radius: 10px; background: rgba(201, 168, 98, 0.06); color: #dfe9e2; font: 400 0.86rem/1.45 Inter, system-ui, sans-serif; }
.village-forge[hidden] { display: none; }
.village-forge b { display: block; margin-bottom: 4px; color: #f0d28a; font: 600 0.7rem/1.2 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.12em; text-transform: uppercase; }
.village-page .village-forge ul { margin: 0; padding: 0 0 0 1.1em; }
.village-page .village-forge li { margin: 0; padding: 1px 0; }
.village-room-live { margin: 12px 0 0; padding: 10px 12px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 10px; background: rgba(168, 255, 214, 0.04); }
.village-room-live[hidden] { display: none; }
.village-page .village-live-title { margin: 0 0 6px; color: #f0d28a; font: 600 0.7rem/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.village-page .village-live-note { margin: 0 0 6px; color: #b7c7bd; font: 400 0.84rem/1.45 Inter, system-ui, sans-serif; }
.village-live-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin: 0 0 8px; padding: 0; list-style: none; }
.village-page .village-live-board li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: baseline; margin: 0; padding: 2px 0; border-bottom: 1px dotted rgba(168, 255, 214, 0.14);
  color: #dfe9e2; font: 400 0.82rem/1.4 Inter, system-ui, sans-serif; }
.village-live-board span { min-width: 0; }
.village-page .village-live-board.is-trend li { grid-template-columns: auto minmax(0, 1fr) auto; }
.village-live-board.is-trend em { min-width: 0; font-size: 0.72rem; }
.village-live-board b { font: 600 0.82rem/1.4 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.village-live-board em { min-width: 3.6em; color: #9fb3a7; font: 600 0.66rem/1.4 "JetBrains Mono", ui-monospace, monospace; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.village-live-board .is-nexus em { color: #58e8a4; } .village-live-board .is-vesper em { color: #ff6b78; } .village-live-board .is-orion em { color: #62c6ff; }
.village-live-board .is-helix em { color: #f5ce69; } .village-live-board .is-echo em { color: #c593ff; }
.village-live-link { display: inline-block; margin-top: 2px; color: #8ff5c4; font: 600 0.8rem/1.4 Inter, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.village-live-link:hover { color: #fff; }
/* a transmission's video on YouTube */
.village-watch { margin-left: 8px; color: #ff8a93; font: 600 0.72rem/1.4 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.village-watch:hover, .village-watch:focus-visible { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.village-live > .village-watch { display: inline-block; margin: 2px 0 6px; }
.village-live-art { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 8px; }
.village-live-art img { display: block; width: 160px; height: auto; border: 1px solid rgba(201, 168, 98, 0.4); border-radius: 4px; background: #000; }
.village-live-art figcaption { color: #dfe9e2; font: 400 0.84rem/1.45 Inter, system-ui, sans-serif; }
.village-lyrics-list { display: grid; gap: 2px; margin: 0 0 8px; padding: 0; list-style: none; }
.village-page .village-lyrics-list li { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.village-page .village-lyrics-list em { color: #9fb3a7; font: 600 0.66rem/2.2 "JetBrains Mono", ui-monospace, monospace; font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; }
.village-lyrics-track { flex: 1; min-height: 34px; padding: 4px 8px; border: 1px solid transparent; border-radius: 7px; background: none; color: #e7f1ea; font: 500 0.86rem/1.4 Inter, system-ui, sans-serif; text-align: left; }
button.village-lyrics-track { cursor: pointer; }
button.village-lyrics-track:hover { border-color: rgba(197, 147, 255, 0.5); color: #fff; }
button.village-lyrics-track:focus-visible, .village-live-back:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 2px; }
span.village-lyrics-track { color: #9fb3a7; }
.village-live-back { min-height: 34px; margin-bottom: 6px; padding: 4px 10px; border: 1px solid rgba(168, 255, 214, 0.3); border-radius: 7px; background: transparent; color: #cfe0d6; font: 600 0.78rem/1 Inter, system-ui, sans-serif; cursor: pointer; }
.village-live-back:hover { border-color: rgba(168, 255, 214, 0.6); color: #fff; }
.village-lyrics-text { max-height: 46vh; margin: 0; padding: 10px 12px; overflow: auto; border: 1px solid rgba(197, 147, 255, 0.25); border-radius: 8px; background: #0b0a12; color: #efe9f8;
  font: 400 0.9rem/1.55 Inter, system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .village-live-board { grid-template-columns: minmax(0, 1fr); } .village-live-art { grid-template-columns: minmax(0, 1fr); } .village-live-art img { width: 100%; max-width: 320px; } }

/* phase 13: a tidier page: a toolbar over the map, place chips under it, compact resident rows beside it, and tabs below */
.village-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.village-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin: 0 0 10px; }
.village-toolbar-time { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.village-page .village-clock { margin: 0; color: #d4ff7a; font: 700 1.25rem/1.2 "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.village-page .village-world { display: inline-flex; flex-wrap: wrap; flex-direction: row; gap: 2px 10px; margin: 0; color: #b7c7bd; font: 500 0.8rem/1.4 Inter, system-ui, sans-serif; }
.village-toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.village-help-btn { width: 32px; padding: 4px 0; font-weight: 700; }
.village-frame figcaption.village-help { display: block; margin-top: 10px; padding: 10px 12px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 10px; background: rgba(9, 20, 15, 0.7); color: #b7c7bd; font: 400 0.84rem/1.5 Inter, system-ui, sans-serif; }
.village-frame figcaption.village-help[hidden] { display: none; }
.village-page .village-help p { margin: 0 0 8px; }
.village-page .village-help p:last-child { margin: 0; }
.village-frame .village-legend { gap: 6px; margin: 10px 0 0; font-size: 0.78rem; }
.village-frame .village-legend li { margin: 0; }
.village-frame .village-legend li:first-child { padding: 3px 9px; border: 1px solid rgba(168, 255, 214, 0.14); border-radius: 999px; color: #b7c7bd; font: 500 0.78rem/1.3 Inter, system-ui, sans-serif; }
.village-frame .village-place { min-height: 28px; margin: 0; padding: 3px 9px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 999px; background: rgba(168, 255, 214, 0.04); color: #cfe0d6; font: 500 0.78rem/1.3 Inter, system-ui, sans-serif; }
.village-frame .village-place:hover { border-color: rgba(168, 255, 214, 0.5); background: rgba(168, 255, 214, 0.1); color: #fff; }
.village-page .village-frame .village-next { margin: 10px 0 0; }
.village-page .village-frame .village-match { margin: 4px 0 0; }
.village-panel { padding: 12px 12px 10px; }
.village-page .village-panel h2 { margin: 0 0 6px; font-size: 1rem; }
.village-residents { gap: 0; }
.village-resident { gap: 10px; min-height: 44px; padding: 6px; border: 0; border-bottom: 1px solid rgba(168, 255, 214, 0.1); border-radius: 0; background: none; }
.village-page .village-residents li:last-child .village-resident { border-bottom: 0; }
.village-resident:hover { border-color: rgba(168, 255, 214, 0.1); background: rgba(168, 255, 214, 0.06); }
.village-resident.is-following { border-color: rgba(168, 255, 214, 0.1); background: rgba(212, 255, 122, 0.1); box-shadow: inset 3px 0 0 #d4ff7a; }
.village-avatar { width: 30px; height: 30px; border-radius: 6px; background: #0b1410; }
.village-resident-text { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name mood" "now now"; column-gap: 8px; row-gap: 1px; align-items: center; width: 100%; }
.village-resident-name { grid-area: name; font-size: 0.9rem; }
.village-resident-role { display: none; }
.village-resident-mood { grid-area: mood; justify-self: start; padding: 1px 7px; border-radius: 999px; background: rgba(143, 245, 196, 0.12); color: #8ff5c4; font: 600 0.66rem/1.4 Inter, system-ui, sans-serif; }
.village-resident-now { grid-area: now; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.78rem; }
.village-resident.is-following .village-resident-name::after { font-size: 0.7rem; }
.village-page .village-visitors { margin: 10px 0 0; font-size: 0.76rem; }
.village-page .village-closest { margin: 4px 0 0; color: #9fb3a7; font: 400 0.76rem/1.4 Inter, system-ui, sans-serif; }
.village-page .village-closest:empty { display: none; }
.village-tabs { margin-top: 20px; padding: 0 18px 18px; border: 1px solid rgba(168, 255, 214, 0.18); border-radius: 14px; background: rgba(9, 20, 15, 0.7); }
.village-tablist { display: flex; flex-wrap: wrap; gap: 2px; margin: 0 -18px 14px; padding: 0 10px; border-bottom: 1px solid rgba(168, 255, 214, 0.14); }
.village-tablist [role="tab"] { min-height: 44px; margin-bottom: -1px; padding: 10px 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: #9fb3a7; font: 600 0.86rem/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.village-tablist [role="tab"]:hover { color: #fff; }
.village-tablist [role="tab"][aria-selected="true"] { color: #d4ff7a; border-bottom-color: #d4ff7a; }
.village-tablist [role="tab"]:focus-visible { outline: 2px solid #d4ff7a; outline-offset: -2px; border-radius: 6px; }
.village-pane[hidden] { display: none; }
.village-join-grid { margin-top: 4px; }
.village-forge { margin: 0; }
.village-page .village-forge-empty { margin: 0; }
.village-page .village-forge-empty[hidden] { display: none; }
.village-page .village-note { font-size: 0.82rem; }
@media (max-width: 900px) { .village-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .village-tabs { padding: 0 12px 12px; } .village-tablist { margin: 0 -12px 12px; padding: 0 4px; } .village-tablist [role="tab"] { padding: 10px; font-size: 0.8rem; } .village-page .village-clock { font-size: 1.1rem; } .village-toolbar-actions .village-names { padding: 4px 8px; font-size: 0.7rem; } }

/* phase 15: the running story, under the map and at the top of the Chronicle */
.village-page .village-frame .village-story { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 0; color: #e8d8a0; font: 500 0.86rem/1.45 Inter, system-ui, sans-serif; }
.village-page .village-frame .village-story[hidden] { display: none; }
.village-page .village-frame .village-story + .village-next { margin-top: 4px; }
.village-page .village-story-read { min-height: 0; padding: 2px 9px; border: 1px solid rgba(232, 216, 160, 0.35); border-radius: 999px; background: transparent; color: #e8d8a0; font: 600 0.7rem/1.5 "JetBrains Mono", ui-monospace, monospace; cursor: pointer; }
.village-page .village-story-read:hover, .village-page .village-story-read:focus-visible { background: rgba(232, 216, 160, 0.12); }
.village-tale, .village-tales { margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(232, 216, 160, 0.22); border-radius: 12px; background: rgba(28, 24, 12, 0.45); }
.village-tales { margin: 16px 0 0; }
.village-tale[hidden], .village-tales[hidden] { display: none; }
.village-page .village-tale h3, .village-page .village-tales h3 { margin: 0 0 4px; color: #f0d28a; font-size: 1rem; }
.village-page .village-tale-premise { margin: 0 0 10px; color: #c9c4b8; font: italic 400 0.9rem/1.5 Inter, system-ui, sans-serif; }
.village-tale-chapters { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.village-page .village-tale-chapters li { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 0 0 12px; border-left: 2px solid rgba(232, 216, 160, 0.35); }
.village-tale-chapters b { color: #c9a862; font: 600 0.7rem/1.3 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.village-tale-turn { color: #dfe9e2; font: 500 0.92rem/1.45 Inter, system-ui, sans-serif; }
.village-tale-happened { color: #9fb3a7; font: 400 0.84rem/1.45 Inter, system-ui, sans-serif; }
.village-tale-happened.is-open { color: #8ff5c4; }
.village-tale-place { display: flex; align-items: center; gap: 10px; align-self: flex-start; max-width: 100%; margin: 4px 0 0; padding: 4px; border: 1px solid rgba(232, 216, 160, 0.3); border-radius: 6px; background: rgba(7, 12, 9, 0.5); color: #e8d8a0; font: 500 0.78rem/1.35 Inter, system-ui, sans-serif; text-align: left; cursor: pointer; }
.village-tale-place canvas { flex: none; width: 120px; height: 54px; image-rendering: pixelated; border-radius: 3px; }
.village-tale-place:hover { background: #1a2a22; }
.village-tale-place:focus-visible { outline: 2px solid #d4ff7a; outline-offset: 1px; }
.village-tale-voted { align-self: flex-start; color: #e8d8a0; font: 600 0.68rem/1.3 "JetBrains Mono", ui-monospace, monospace; }
.village-page .village-tale-chapters .village-tale-next { border-left-style: dashed; color: #9fb3a7; font: 400 0.84rem/1.45 Inter, system-ui, sans-serif; }
.village-tale-done { padding: 8px 0 0; border-top: 1px solid rgba(232, 216, 160, 0.12); }
.village-tale-done + .village-tale-done { margin-top: 8px; }
.village-tale-done summary { color: #e8d8a0; font: 500 0.88rem/1.45 Inter, system-ui, sans-serif; cursor: pointer; }
.village-tale-done[open] summary { margin-bottom: 8px; }
.village-page .village-vote-waiting { margin: 0; color: #9fb3a7; font-size: 0.86rem; line-height: 1.45; }

/* ---- the audit of November 1: small controls big enough to tap (32 px) ---- */
button.village-watch { display: inline-flex; align-items: center; min-height: 32px; }
.village-frame .village-place { min-height: 32px; }
.village-page .village-story-read { min-height: 32px; }
