/* Hosted town page: builds on style.css (same scene, crypt, purses, cards). */
[hidden] { display: none !important; }

.town-nav { font-size: 17px; }
.town-scene { min-height: 0; }
.town-clock span { font-size: 18px; white-space: nowrap; }
.town-clock small { white-space: nowrap; }

/* Enlist: choose what each clone is */
.enlist { display: block; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.slot { display: flex; flex-direction: column; align-items: center; min-width: 0; border: 0; margin: 0; padding: 0; }
.slot .body { position: relative; height: 104px; width: 72px; margin-top: 8px; }
.slot .fig { width: 65px; height: 104px; display: block; margin: 0 auto; transition: opacity .25s, filter .25s; filter: drop-shadow(0 0 7px rgba(170, 190, 220, .22)); }
.slot.empty .fig { opacity: .3; filter: grayscale(1) brightness(.6); }
.slot legend { font-family: var(--goth); font-weight: 700; font-size: 17px; color: var(--bone); text-shadow: 0 1px 2px #000; text-align: center; padding: 0; margin: 0 auto; float: none; }
.picker {
  margin-top: 8px; width: 100%; max-width: 214px; padding: 6px; display: grid; gap: 3px;
  background: linear-gradient(#1c1a21, #0d0c10); border: 1px solid #45404c; border-radius: 2px;
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.55);
}
.picker label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--goth); font-weight: 500; font-size: 17px; color: var(--ash); padding: 3px 8px; border: 1px solid transparent; min-height: 34px; transition: color .15s, background .15s, border-color .15s; }
.picker label:hover { color: var(--bone); }
.picker input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.picker label .dot { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid #000; background: var(--tint, #4d4a52); flex: none; box-shadow: 0 0 0 1px #5a5462; }
.picker label:has(input:checked) { color: var(--bone); background: rgba(255,255,255,.05); border-color: #6a6472; }
.picker label:has(input:checked) .dot { box-shadow: 0 0 0 1px var(--bone), 0 0 10px var(--tint, transparent); }
.picker label:has(input:focus-visible) { outline: 2px solid var(--frost); outline-offset: 1px; }
.picker .why { display: block; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--ash); padding: 3px 6px 0; min-height: 3.6em; line-height: 1.3; }
.send-row { margin: 18px auto 0; max-width: 470px; text-align: center; }
.send-note { font-size: 15px; color: var(--ash); margin: 8px 0 0; text-shadow: 0 1px 2px #000; }

/* Progress and done cards */
.bar { height: 12px; border: 1px solid #45404c; background: #050407; overflow: hidden; margin: 6px 0 12px; box-shadow: 0 0 0 1px #000; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #5c070c, var(--blood-hi)); box-shadow: 0 0 12px rgba(215, 33, 43, .7); transition: width .4s linear; }
.steps { margin: 0; padding-left: 20px; font-size: 15px; }
.steps li { color: var(--dim); margin: 3px 0; }
.steps li.now { color: var(--bone); font-weight: 600; }
.steps li.ok { color: var(--gain); }
.guest-url { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; background: #050407; border: 1px solid #45404c; padding: 6px 8px; }
.txs { margin-top: 12px; font-size: 14px; }
.txs summary { cursor: pointer; color: var(--ash); }
.txs ul { padding-left: 18px; margin: 4px 0 0; }
.txs li { overflow-wrap: anywhere; font-family: var(--mono); font-size: 12px; }

/* Panels below the scene */
.paper { margin: 18px 0 0; background: linear-gradient(#0f0e13, #08070a); color: var(--bone); border: 1px solid #2f2b35; box-shadow: 0 0 0 1px #000; padding: 10px 18px 16px; }
.paper h2 { font-family: var(--frak); font-weight: 400; font-size: 32px; line-height: 1.05; margin: 4px 0 8px; text-shadow: 0 2px 0 #000; }
.paper p { margin: 6px 0; }
.status-error { color: var(--loss); font-weight: 600; }
.status .count { font-family: var(--mono); font-size: 26px; display: block; margin: 4px 0; color: var(--bone); }
.morning .sub { font-size: 15px; color: var(--ash); }
.morning-total { font-size: 15px; color: var(--ash); }
.watch-note { font-size: 14px; color: var(--ash); align-self: center; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.temp-list, .acct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.t-chip { display: inline-block; font-family: var(--goth); font-weight: 500; font-size: 16px; color: #050407; background: var(--tint); padding: 0 8px 1px; margin-right: 6px; }
.acct-list li { overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; }
.acct-list b { font-family: var(--goth); font-size: 16px; color: var(--ash); }
.how ul { padding-left: 18px; margin: 0; }
.how li { margin: 7px 0; }
.how li::marker { color: var(--blood-hi); }
.how code { overflow-wrap: anywhere; }
.again { margin-top: 12px; }

/* Stake and nights per clone */
.slot .picker { flex: 1 1 auto; display: flex; flex-direction: column; }
.picker .knobs { margin-top: auto; }
.knobs { display: grid; gap: 4px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #2f2b35; }
.knobs[hidden] { display: none; }
.seg { display: flex; align-items: center; gap: 3px; flex-wrap: nowrap; }
.seg-label { font-family: var(--goth); font-size: 14px; color: var(--ash); min-width: 44px; }
.seg label { flex: 1 1 0; text-align: center; cursor: pointer; padding: 0; min-height: 0; border: 0; }
.seg label span { display: block; font-family: var(--mono); font-size: 13px; color: var(--ash); border: 1px solid #45404c; padding: 3px 0; background: #0d0c10; transition: color .15s, border-color .15s, background .15s; }
.seg label:hover span { color: var(--bone); }
.seg input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.seg input:checked + span { color: #050407; background: var(--bone); border-color: var(--bone); }
.seg input:focus-visible + span { outline: 2px solid var(--frost); outline-offset: 1px; }

/* The omen */
.omen { position: absolute; top: 14px; right: 14px; z-index: 5; max-width: 270px; text-align: right; padding: 6px 10px 7px; background: rgba(5, 4, 7, .78); border: 1px solid #45404c; box-shadow: 0 0 0 1px #000; }
.omen[hidden] { display: none; }
.omen small { display: block; font-family: var(--goth); font-size: 13px; color: var(--ash); }
.omen b { display: block; font-family: var(--frak); font-weight: 400; font-size: 26px; line-height: 1; color: var(--bone); text-shadow: 0 0 12px rgba(215, 33, 43, .45); }
.omen span { display: block; font-size: 13.5px; color: var(--ash); line-height: 1.25; margin-top: 2px; }

/* Whisper, retrain, bring home */
.clone .acts { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 6px; }
.clone .acts select { font-family: var(--goth); font-size: 14px; color: var(--bone); background: #0d0c10; border: 1px solid #6a6472; padding: 2px 4px; max-width: 100%; }
.clone .acts select:focus-visible { outline: 2px solid var(--frost); }
.clone .acts .btn { font-size: 14px; padding: 2px 8px; }
.clone .whisper-note { font-family: var(--mono); font-size: 11.5px; color: var(--frost); margin-top: 3px; }
.bubble.whispered { border-color: var(--frost); box-shadow: 0 0 0 1px #000, 0 0 16px rgba(159, 182, 207, .45); }

/* Possessed clones */
.picker input.instr { position: static; opacity: 1; width: 100%; height: auto; }
.knobs .instr { box-sizing: border-box; resize: vertical; line-height: 1.3; width: 100%; font-family: var(--serif); font-size: 14px; color: var(--bone); background: #0d0c10; border: 1px solid #6a6472; padding: 4px 6px; margin-top: 2px; }
.knobs .instr[hidden] { display: none; }
.knobs .instr:focus-visible { outline: 2px solid var(--frost); }
.bubble.ai { border-color: #b48ad8; box-shadow: 0 0 0 1px #000, 0 0 16px rgba(180, 138, 216, .45); }

/* The bell waits */
.pause-card { position: relative; z-index: 6; margin: 14px auto 0; max-width: 560px; padding: 10px 16px 14px; background: rgba(5, 4, 7, .92); border: 1px solid #6a6472; box-shadow: 0 0 0 1px #000, 0 0 26px rgba(159, 182, 207, .25); }
.pause-card[hidden] { display: none; }
.pause-card h3 { font-family: var(--frak); font-weight: 400; font-size: 28px; margin: 2px 0 4px; }
.plans { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; font-size: 15px; }
.plans li b { font-family: var(--goth); }
.plans li code { font-family: var(--mono); font-size: 12.5px; color: var(--frost); }
#restockSel { font-family: var(--goth); font-size: 15px; color: var(--bone); background: #0d0c10; border: 1px solid #6a6472; padding: 3px 6px; }

/* The bell */
.bell-row { position: relative; z-index: 4; margin: 16px auto 0; max-width: 520px; text-align: center; }
.bell-row[hidden] { display: none; }
.btn.bell { font-size: 23px; }

/* Merchant stock gauge under each price */
.board-goods .gstock { display: block; height: 3px; margin: 3px auto 0; width: 70%; background: #1a181d; box-shadow: 0 0 0 1px #000; overflow: hidden; }
.board-goods .gstock i { display: block; height: 100%; background: linear-gradient(90deg, #6b6375, var(--bone)); transition: width .5s; }

/* Try to run */
.clone .run { margin-top: 6px; font-size: 14px; padding: 3px 10px; border-color: rgba(215, 33, 43, .55); color: #ffd0cf; }
.clone .run:hover:not(:disabled) { border-color: var(--blood-hi); box-shadow: 0 0 14px rgba(215, 33, 43, .45); }
#refusal { position: fixed; inset: 0; z-index: 50; align-items: center; padding: 16px; background: rgba(3, 2, 5, .55); pointer-events: auto; }
#refusal .seal { pointer-events: auto; max-width: 560px; }
.seal-raw { font-family: var(--mono); font-size: 11.5px; color: var(--ash); margin: 8px 0 0; line-height: 1.4; }
#refusal .seal .btn { margin-top: 12px; }

/* What happened in town */
.crier { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 3px; font-size: 15px; }
.crier[hidden] { display: none; }
.crier li { padding: 3px 8px; border-left: 2px solid #45404c; background: rgba(255, 255, 255, .02); color: var(--bone); }
.crier li.order-row { border-left-color: var(--frost); }
.crier li.refused-row { border-left-color: var(--blood-hi); color: #ffd0cf; background: rgba(215, 33, 43, .08); }
.crier li.muted { color: var(--ash); font-size: 14px; }
.crier li.warn { color: var(--loss); }

/* The town's board */
.board-rows { margin: 8px 0 0; padding-left: 26px; display: grid; gap: 5px; }
.board-rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 3px 0; border-bottom: 1px solid #1f1c24; }
.board-rows li::marker { font-family: var(--mono); color: var(--ash); }
.board-rows li.mine { background: rgba(236, 230, 217, .05); }
.board-rows .b-who { flex: 1 1 220px; }
.board-rows .b-num { font-family: var(--mono); font-weight: 600; min-width: 4.5em; text-align: right; }
.board-rows .b-num.gain { color: var(--gain); }
.board-rows .b-num.loss { color: var(--loss); }
.board-rows .b-det { font-family: var(--mono); font-size: 13px; color: var(--ash); }

.board-sub { font-family: var(--goth); font-size: 19px; font-weight: 700; margin: 14px 0 0; color: var(--bone); }

/* Keys and claiming */
.acct-list .keys { font-family: var(--mono); font-size: 12.5px; color: var(--ash); margin-top: 2px; }
.claimed { margin-top: 10px; }
.claimed[hidden] { display: none; }

@media (max-width: 600px) {
  .top { gap: 10px; }
  .slots { gap: 4px; }
  .slot .body { height: 88px; width: 60px; }
  .slot .fig { width: 55px; height: 88px; }
  .picker { padding: 3px; }
  .picker label { font-size: 14px; padding: 2px 4px; gap: 5px; min-height: 32px; }
  .picker label .dot { width: 9px; height: 9px; }
  .picker .why { font-size: 12.5px; min-height: 6.4em; padding: 3px 3px 0; }
  .paper h2 { font-size: 27px; }
  .seg-label { min-width: 0; font-size: 12px; }
  .seg label span { font-size: 11.5px; padding: 3px 0; }
  .btn.bell { font-size: 19px; }
  .omen { position: static; max-width: none; text-align: left; margin: 8px 8px 0; }
  .clone .acts select { font-size: 12px; }
  .clone .run { font-size: 12.5px; padding: 2px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar span { transition: none; }
}

/* The proof drawer: play first, evidence one click away. */
.proof { margin: 26px 0 0; }
.proof-title { font-family: var(--frak); font-weight: 400; font-size: 30px; margin: 0 0 4px; color: var(--bone); }
.proof-title small { display: block; font-family: var(--serif, inherit); font-size: 14px; color: var(--ash); letter-spacing: 0; }
.drawer { padding: 4px 18px; }
.drawer[open] { padding-bottom: 16px; }
.drawer > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.drawer > summary::-webkit-details-marker { display: none; }
.drawer > summary h2 { margin: 6px 0; font-size: 26px; }
.drawer > summary h2::before { content: "+ "; color: var(--ash); font-family: var(--mono, monospace); font-size: 18px; }
.drawer[open] > summary h2::before { content: "- "; }
.drawer-hint { color: var(--ash); font-size: 14px; }
.drawer ul { padding-left: 20px; }
.again { margin: 18px 0 0; }
@media (max-width: 520px) {
  .drawer > summary h2 { font-size: 22px; }
  .drawer { padding: 4px 12px; }
}

/* ---------- the guide through a first night ---------- */
.coach { position: relative; margin: 0 auto 10px; max-width: 980px; padding: 10px 14px 10px; background: rgba(12, 10, 16, .92); border: 1px solid #6a6472; box-shadow: 0 0 0 1px #000, 0 0 22px rgba(159, 182, 207, .18); }
.coach[hidden] { display: none; }
.coach-steps { list-style: none; margin: 0 0 6px; padding: 0 90px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--goth); font-size: 15px; color: var(--ash); }
.coach-steps li.done { color: #6f6a64; text-decoration: line-through; }
.coach-steps li.now { color: var(--bone); text-shadow: 0 0 10px rgba(159, 182, 207, .5); }
.coach-text { margin: 0; font-size: 16.5px; line-height: 1.35; color: var(--bone); }
.coach-hide { position: absolute; top: 8px; right: 10px; background: none; border: 0; color: var(--ash); font: 13px var(--mono); cursor: pointer; text-decoration: underline; }
.lit { outline: 2px solid var(--frost); outline-offset: 4px; animation: lit 1.6s ease-in-out infinite; }
@keyframes lit { 50% { outline-color: rgba(159, 182, 207, .25); } }

/* ---------- the race for the crown ---------- */
.race { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 3px; font-size: 15px; }
.race li { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 8px; align-items: baseline; padding: 2px 8px; background: rgba(255, 255, 255, .03); }
.race li.mine { background: rgba(159, 182, 207, .12); border-left: 2px solid var(--frost); }
.race li.muted { display: block; color: var(--ash); background: none; font-size: 14px; }
.race .r-rank { font-family: var(--mono); color: var(--ash); }
.race .b-num { font-family: var(--mono); }
.race .b-num.gain { color: var(--gain); } .race .b-num.loss { color: var(--loss); }
.race-box[hidden] { display: none; }

/* ---------- your call at the bell's pauses ---------- */
.plans li { padding: 4px 0 6px; border-bottom: 1px solid #2a2630; }
.plans li.decided { opacity: .8; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.choices select { font: 15px var(--mono); background: #0d0b10; color: var(--bone); border: 1px solid #6a6472; padding: 4px 6px; }
.whisper-left { font-size: 13px; color: var(--ash); }
.pause-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.count-line { font-family: var(--mono); font-size: 14px; color: var(--ash); }

/* ---------- the deed holder's card ---------- */
.deed-card { border-color: #b8903a; box-shadow: 0 0 0 1px #000, 0 0 24px rgba(217, 165, 58, .25); }
.deed-card[hidden] { display: none; }
.fee-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.fee-buttons .btn.picked { border-color: #d9a53a; background: rgba(217, 165, 58, .28); color: #fff3d6; box-shadow: 0 0 14px rgba(217, 165, 58, .45); }
@media (max-width: 600px) {
  .coach-steps { font-size: 13px; padding-right: 70px; }
  .coach-text { font-size: 15px; }
  .race li { font-size: 14px; grid-template-columns: 2.6em 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .lit { animation: none; } }
.season-crown { font-family: var(--goth); font-size: 19px; color: #f3d48a; margin: 10px 0 4px; padding: 6px 10px; border: 1px solid #b8903a; background: rgba(217, 165, 58, .1); }
.crier li.season-row { border-left-color: #d9a53a; color: #f3d48a; font-weight: 600; }
.break-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.break-results { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 15px; }
.break-results li { padding: 4px 8px; border-left: 2px solid #45404c; background: rgba(255, 255, 255, .02); }
.break-results li.refused { border-left-color: var(--blood-hi); background: rgba(215, 33, 43, .08); }
.break-results li.refused b { color: #ffd0cf; font-family: var(--mono); font-size: 13.5px; margin-right: 6px; }
.break-results li.warn { color: var(--loss); }
/* On a phone, one clone per row: the figure on the left, its choices beside it. */
@media (max-width: 600px) {
  .slots { grid-template-columns: 1fr; gap: 8px; }
  .slot { display: grid; grid-template-columns: 64px 1fr; align-items: start; column-gap: 8px; }
  .slot legend { grid-column: 1 / -1; }
  .slot .body { grid-column: 1; }
  .slot .picker { grid-column: 2; }
  .picker .why { min-height: 0; }
}
.calls-note { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 15px; }
.calls-note[hidden] { display: none; }
.calls-note li { padding: 4px 8px; border-left: 2px solid var(--frost); background: rgba(159, 182, 207, .07); }
.google-row { margin: 10px auto 14px; max-width: 560px; text-align: center; }
.google-row[hidden], .google-row [hidden] { display: none; }
.google-out { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 14px 10px; border-top: 1px solid #2a2630; border-bottom: 1px solid #2a2630; }
.google-out #googleBtn { min-height: 40px; display: flex; justify-content: center; }
.google-note { margin: 0; font-size: 14.5px; color: var(--ash); line-height: 1.4; max-width: 440px; }
.google-in { padding: 8px 14px; border: 1px solid #3c3742; background: rgba(159, 182, 207, .06); }
.google-who { margin: 0 0 2px; font-family: var(--goth); font-size: 17px; color: var(--bone); }
.who-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ash); border: 1px solid #45404c; padding: 4px 10px; }
.who-chip[hidden] { display: none; }
.who-out { background: none; border: 0; padding: 0; color: var(--frost); font: inherit; text-decoration: underline; cursor: pointer; }
.town-history { font-family: var(--goth); font-size: 18px; line-height: 1.35; color: #f3d48a; margin: 8px 0 10px; padding: 8px 12px; border: 1px solid #b8903a; background: rgba(217, 165, 58, .1); }
.board-more > summary { cursor: pointer; list-style: none; }
.board-more > summary::before { content: "+ "; color: var(--ash); }
.board-more[open] > summary::before { content: "\2212  "; }
/* The other players' clones at the counter */
.crowd { position: relative; z-index: 2; margin: 2px auto 6px; max-width: 900px; text-align: center; }
.crowd-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; }
.mini { position: relative; width: 58px; display: flex; flex-direction: column; align-items: center; --rim: #4b4656; }
.mini .fig { width: 30px; height: 48px; display: block; }
.mini-who { font-family: var(--goth); font-size: 12px; color: var(--ash); max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-say { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 4px); margin-bottom: -2px; padding: 2px 6px; white-space: nowrap; z-index: 3;
  background: rgba(8, 7, 11, .92); color: var(--bone); border: 1px solid #6a6472; font: italic 12.5px/1.2 var(--serif); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.mini-say.on { opacity: 1; transform: translate(-50%, 0); }
.crowd-label { margin: 2px 0 0; font: italic 13px var(--serif); color: var(--ash); }
@media (max-width: 600px) { .mini { width: 46px; } .mini .fig { width: 24px; height: 38px; } .mini-who { font-size: 11px; max-width: 46px; } }
/* Header and omen, tidied to match the landing page */
.game-hero { padding-top: 14px; padding-bottom: 8px; }
.game-hero .logo-svg { width: 320px; filter: drop-shadow(0 0 22px rgba(215, 33, 43, .4)); }
.game-hero .hero-line { font-size: 24px; }
.game-hero .hero-sub { font-size: 17px; }
.town-scene { padding-top: 78px; }
.omen { top: 12px; right: 12px; max-width: 440px; padding: 6px 12px 7px; border-color: #5a5462; background: rgba(5, 4, 7, .86); box-shadow: 0 0 0 1px #000, 0 6px 18px rgba(0, 0, 0, .6); }
.omen small { font-size: 12.5px; white-space: nowrap; }
.omen b { display: inline; font-size: 24px; margin-right: 8px; }
.omen span { display: inline; font-size: 14px; }
@media (max-width: 600px) { .game-hero .logo-svg { width: 240px; } .game-hero .hero-line { font-size: 19px; } .game-hero .hero-sub { font-size: 15px; } .town-scene { padding-top: 56px; } .omen small { white-space: normal; } }
