/* Hearthlands: easier to read (the user, 2026-10-31: "the UI and text need some work - it's hard to read a bit").
   Over the panels' own styles (style.css, hearth-folk.css, hearth-feel.js) while a hearth is on (body.hearth-on,
   hearth-ui.js setup): larger type, light text on solid dark panels, nothing under 13px, shorter lines, a little more
   air. The look stays the game's: the ink-and-wood frames, the gold display face, the Grenze body face. */

body.hearth-on {
  --h-text: var(--bone-1);
  --h-soft: var(--sand-2, var(--sand-1));
  --h-panel: color-mix(in srgb, var(--ink-2) 98%, transparent);
}

/* ---------- Panels: solid behind the words ---------- */
body.hearth-on #hearthbar, body.hearth-on #htrack, body.hearth-on #hguide, body.hearth-on #talk, body.hearth-on #hscene,
body.hearth-on #hsong, body.hearth-on #hfest, body.hearth-on #hfish,
body.hearth-on #hpack, body.hearth-on #hgoal, body.hearth-on #hday, body.hearth-on #hwork, body.hearth-on #hfolk,
body.hearth-on #hcal, body.hearth-on #hcook {
  background: var(--h-panel); color: var(--h-text); letter-spacing: 0.2px;
}

/* ---------- The day's bar (top right) ---------- */
body.hearth-on #hearthbar { width: 340px; font-size: 15px; padding: 10px 14px 12px; }
body.hearth-on #hearthbar .hb-head { font-size: 14px; color: var(--h-soft); letter-spacing: 0.5px; }
body.hearth-on #hearthbar .hb-head small { font-size: 13px; }
body.hearth-on #hearthbar .hb-coin { font-size: 17px; }
body.hearth-on #hearthbar .hb-day b { font-size: 22px; }
body.hearth-on #hearthbar .hb-clock { font-size: 19px; }
body.hearth-on #hearthbar .hb-wx { font-size: 14px; }
body.hearth-on #hearthbar .hb-str { font-size: 14px; color: var(--h-text); }
body.hearth-on #hearthbar .hb-str small { font-size: 14px; width: 30px; }
body.hearth-on #hearthbar .hb-news { font-size: 14px; line-height: 1.4; color: var(--h-text); }
body.hearth-on #hearthbar .hw-b kbd { font-size: 13px; }

/* ---------- The goals tracker (top left) ---------- */
body.hearth-on #htrack { width: 300px; font-size: 15px; line-height: 1.35; padding: 8px 12px 10px; }
body.hearth-on #htrack .ht-head { font-size: 20px; }
body.hearth-on #htrack .ht-item { padding: 5px 8px; margin: 3px -8px; }
body.hearth-on #htrack .ht-item b { font-size: 16px; }
body.hearth-on #htrack .ht-item span { color: var(--h-text); }
body.hearth-on #htrack .ht-item small { font-size: 14px; color: var(--sky-7); }
body.hearth-on #htrack .ht-more { font-size: 14px; color: var(--h-soft); }

/* ---------- The guide's hint (top middle) ---------- */
body.hearth-on #hguide { width: 540px; font-size: 17px; padding: 8px 12px; }
body.hearth-on #hguide img.portrait { width: 52px; height: 52px; }
body.hearth-on #hguide .hg-who b { font-size: 18px; }
body.hearth-on #hguide .hg-who small { font-size: 14px; }
body.hearth-on #hguide .hg-hint { color: var(--bone-2, var(--h-text)); line-height: 1.35; }
body.hearth-on #hguide .hg-hint kbd, body.hearth-on #hprompt kbd {
  display: inline-block; min-width: 1.5em; padding: 0 5px; margin: 0 1px; text-align: center; font-family: var(--pixel-font, 'Game UI', Georgia, serif);
  font-size: 0.95em; font-weight: 700; line-height: 1.25; color: var(--gold-4); background: var(--ink-0); border: 2px solid var(--wood-3, var(--wood-2));
  box-shadow: inset 0 -2px 0 var(--ink-1);
}

/* ---------- Toasts: above the talking heads, never more than three, solid ---------- */
body.hearth-on #messages { bottom: auto; top: 58px; }
body.hearth-on:has(#hguide:not(.hidden)) #messages { top: 140px; }
body.hearth-on #messages div {
  font-size: 17px; padding: 6px 16px; max-width: min(620px, calc(100vw - 720px)); min-width: 260px; text-align: center; line-height: 1.3;
  background: color-mix(in srgb, var(--ink-1) 97%, transparent); color: var(--h-text);
}
body.hearth-on #messages div:nth-last-child(n+4) { display: none; }
/* the morning's card says the morning itself: no toasts and no talking head under it */
body.hearth-on:has(#hday:not(.hidden)) #messages, body.hearth-on:has(#hday:not(.hidden)) #talk { visibility: hidden; }
@media (max-width: 1100px) { body.hearth-on #messages { top: 260px; } body.hearth-on #messages div { max-width: calc(100vw - 32px); } }

/* ---------- Talking heads and heart events ---------- */
body.hearth-on #talk .talk-who b, body.hearth-on #hscene .talk-who b { font-size: 22px; }
body.hearth-on #talk .talk-who small, body.hearth-on #hscene .talk-who small { font-size: 15px; color: var(--h-soft); }
body.hearth-on #talk .talk-text, body.hearth-on #hscene .talk-text { font-size: 18px; line-height: 1.4; color: var(--h-text); }
body.hearth-on #talk .talk-more, body.hearth-on #hscene .hsc-more { font-size: 14px; color: var(--h-soft); }
body.hearth-on #hscene .hsc-title { font-size: 14px; }
body.hearth-on #hscene .hsc-q, body.hearth-on #hscene .hsc-a .pbtn { font-size: 16px; }

/* ---------- The left panels: the pack and dealing, the journal and boards, the work's, the folk, the kitchen ---------- */
body.hearth-on #hpack, body.hearth-on #hgoal, body.hearth-on #hwork, body.hearth-on #hfolk, body.hearth-on #hcook { font-size: 16px; line-height: 1.4; }
body.hearth-on #hpack .pack-head h3, body.hearth-on #hgoal .hg-head h3, body.hearth-on #hwork .pack-head h3 { font-size: 24px; }
body.hearth-on #hgoal .hg-head h3 small { font-size: 15px; }
body.hearth-on #hpack h4, body.hearth-on #hgoal h4, body.hearth-on #hwork h4, body.hearth-on #hfolk h4, body.hearth-on #hcal h4 { font-size: 15px; margin-top: 14px; }
body.hearth-on #hpack h4 small, body.hearth-on #hwork h4 small, body.hearth-on #hfolk h4 small { font-size: 14px; color: var(--h-soft); }
body.hearth-on #hpack .note, body.hearth-on #hgoal .note, body.hearth-on #hwork .note, body.hearth-on #hfolk .note, body.hearth-on #hcal .note { font-size: 15px; color: var(--h-text); line-height: 1.4; }
body.hearth-on #hpack .item-cell .cnt, body.hearth-on #hwork .item-cell .cnt, body.hearth-on #hfolk .item-cell .cnt { font-size: 14px; }
body.hearth-on #hpack .item-cell .price, body.hearth-on #hfolk .item-cell .price { font-size: 13px; }
/* the journal */
body.hearth-on #hgoal { width: min(540px, calc(100vw - 24px)); }
body.hearth-on #hgoal .hg-task { padding: 8px 10px; margin: 10px 0; }
body.hearth-on #hgoal .hg-task-head b { font-size: 17px; }
body.hearth-on #hgoal .hg-task li { color: var(--h-soft); }
body.hearth-on #hgoal .hg-task li.now { color: var(--bone-2, var(--h-text)); font-weight: 600; }
body.hearth-on #hgoal .hg-task small, body.hearth-on #hgoal .hg-task small.note { font-size: 14px; }
body.hearth-on #hgoal .hg-done { font-size: 15px; }
/* the boards' projects */
body.hearth-on #hgoal .hg-proj-head b { font-size: 19px; }
body.hearth-on #hgoal .hg-proj-head small { font-size: 14px; }
body.hearth-on #hgoal .hg-proj p { font-size: 15px; color: var(--h-text); }
body.hearth-on #hgoal .hg-proj .unlock { font-size: 14px; }
body.hearth-on #hgoal .hg-bundle-name { font-size: 15px; width: 150px; }
body.hearth-on #hgoal .hg-good, body.hearth-on #hgoal .hg-any, body.hearth-on #hday .hg-good { font-size: 14px; }
/* skills and tools */
body.hearth-on #hgoal .hg-skill small, body.hearth-on #hgoal .hg-tool small { font-size: 14px; color: var(--h-soft); }
body.hearth-on #hwork .hw-row > div { font-size: 15px; }
body.hearth-on #hwork .hw-desc, body.hearth-on #hwork .hw-row small { font-size: 14px; color: var(--h-soft); }
body.hearth-on #hwork .hw-cost { font-size: 14px; }
/* the folk */
body.hearth-on #hfolk .hf-row .hf-nm b { font-size: 15px; }
body.hearth-on #hfolk .hf-row .hf-nm small { font-size: 13px; color: var(--h-soft); }
body.hearth-on #hfolk .hf-row .hf-h { font-size: 14px; }
body.hearth-on #hfolk .hf-role { font-size: 15px; }
body.hearth-on #hfolk .hf-line { font-size: 16px; }
body.hearth-on #hfolk .hf-facts { font-size: 14px; }
body.hearth-on #hfolk .hf-good small { font-size: 12px; }
/* the calendar */
body.hearth-on #hcal .hc-grid td { font-size: 13px; }
body.hearth-on #hcal .hc-grid th { font-size: 14px; }
body.hearth-on #hcal .hc-grid td b { font-size: 15px; }
/* the songs and the rod */
body.hearth-on #hsong .hs-title, body.hearth-on #hfest .hs-title, body.hearth-on #hfish .hf-title { font-size: 21px; }
body.hearth-on #hsong .hs-hint, body.hearth-on #hfest .hs-hint, body.hearth-on #hfish .hf-bob { font-size: 15px; color: var(--h-text); }

/* ---------- The end of the day: a card, its lists capped ---------- */
body.hearth-on #hday { font-size: 16px; line-height: 1.4; width: min(660px, calc(100vw - 24px)); padding: 18px 26px 16px; }
body.hearth-on #hday h2 { font-size: 34px; }
body.hearth-on #hday .hd-sub { font-size: 15px; }
body.hearth-on #hday .hd-grid { gap: 10px 26px; }
body.hearth-on #hday .hd-sec h4 { font-size: 14px; margin: 10px 0 6px; }
body.hearth-on #hday .hd-sec ul { padding-left: 18px; }
body.hearth-on #hday .hd-sec li { margin: 2px 0; }
body.hearth-on #hday .hd-wide { grid-column: 1 / -1; }
body.hearth-on #hday details summary { cursor: pointer; color: var(--gold-3); font-size: 15px; margin: 2px 0 0 18px; list-style: none; }
body.hearth-on #hday details summary::-webkit-details-marker { display: none; }
body.hearth-on #hday details summary::before { content: '▸ '; }
body.hearth-on #hday details[open] summary::before { content: '▾ '; }
body.hearth-on #hday .hd-skill { font-size: 15px; }
body.hearth-on #hday .hd-go button { font-size: 18px; padding: 8px 26px; }

/* ---------- The info panel (bottom): your hero in a life, not a battle ---------- */
body.hearth-on #info .hh-line { font-size: 15px; color: var(--h-text); margin: 2px 0; }
body.hearth-on #info .hh-line b { color: var(--gold-3); }
body.hearth-on #info .hh-tip { font-size: 14px; color: var(--h-soft); font-style: italic; }
body.hearth-on #info .hh-str { height: 8px; margin: 4px 0 6px; background: var(--ink-1); border: 2px solid var(--ink-0); box-shadow: inset 0 0 0 1px var(--stone-2); }
body.hearth-on #info .hh-str div { height: 100%; background: linear-gradient(var(--leaf-6), var(--leaf-3)); }
body.hearth-on #info .stats { font-size: 15px; line-height: 1.45; }

/* ---------- The battle's top bar: no match clock, no battle sky (the day's bar has the hour and the weather) ---------- */
#topbar.hearth .res[title="Game time"], #topbar.hearth #sky-box, #topbar.hearth #wave, #topbar.hearth #endgame-box { display: none; }

/* ---------- The key-hint where you stand (hearth-prompt.js) ---------- */
#hprompt {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 3px; align-items: stretch;
  padding: 5px 10px 6px; font-family: 'Game UI', Georgia, serif; font-size: 16px; line-height: 1.25; color: var(--bone-1); white-space: nowrap;
  background: color-mix(in srgb, var(--ink-1) 92%, transparent); border: 2px solid var(--ink-0); box-shadow: inset 0 0 0 1px var(--wood-2), 0 3px 10px color-mix(in srgb, var(--ink-0) 60%, transparent);
  text-shadow: 0 1px 0 var(--ink-0);
}
#hprompt.hidden { display: none; }
#hprompt .hp-row { display: flex; align-items: center; gap: 8px; }
#hprompt kbd {
  display: inline-block; min-width: 1.6em; padding: 0 5px; text-align: center; font-family: 'Game UI', Georgia, serif; font-size: 15px; font-weight: 700;
  line-height: 1.3; color: var(--gold-4); background: var(--ink-0); border: 2px solid var(--wood-3, var(--wood-2)); box-shadow: inset 0 -2px 0 var(--ink-1);
}
#hprompt .hp-walk { min-width: 1.6em; text-align: center; color: var(--gold-3); font-weight: 700; }
/* The mouse first, its key after in a lighter hand ("or E"); a dim word for what would do nothing now (hearth-controls.js) */
#hprompt .hmouse, #hhover .hmouse, #hguide .hmouse { flex: none; color: var(--bone-1); vertical-align: -3px; filter: drop-shadow(0 1px 0 var(--ink-0)); }
#hprompt .hp-or { margin-left: 2px; font-size: 13px; color: var(--sand-1, #c9b58f); opacity: 0.85; }
#hprompt .hp-or kbd { min-width: 1.3em; padding: 0 3px; font-size: 12px; color: var(--sand-1, #c9b58f); border-width: 1px; box-shadow: none; }
#hprompt .hp-dim { color: var(--sand-1, #c9b58f); opacity: 0.8; font-size: 14px; }
#hprompt .hp-dim .hp-walk { color: var(--sand-1, #c9b58f); }
#hhover {
  position: fixed; left: 0; top: 0; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 6px; padding: 3px 8px;
  font-family: 'Game UI', Georgia, serif; font-size: 14px; line-height: 1.25; white-space: nowrap; color: var(--bone-1); text-shadow: 0 1px 0 var(--ink-0);
  background: color-mix(in srgb, var(--ink-1) 92%, transparent); border: 1px solid var(--ink-0); box-shadow: inset 0 0 0 1px var(--wood-2);
}
#hhover.hidden { display: none; }
#hhover.dim { color: var(--sand-1, #c9b58f); }
#hhover.go { box-shadow: inset 0 0 0 1px var(--gold-3); }

/* ---------- F1 in a hearth: a calmer table ---------- */
body.hearth-on #help-hearth table { font-size: 16px; line-height: 1.4; border-collapse: separate; border-spacing: 0 4px; }
body.hearth-on #help-hearth td { padding: 3px 8px; vertical-align: top; }
body.hearth-on #help-hearth table { width: 100%; }
body.hearth-on #help-hearth td:first-child { width: 112px; white-space: nowrap; color: var(--gold-3); font-family: 'Game UI', Georgia, serif; font-weight: 700; font-size: 16px; }
body.hearth-on #help-hearth td:last-child { color: var(--bone-1); font-family: 'Game UI', Georgia, serif; }
body.hearth-on #help-hearth h4 { margin: 14px 0 4px; color: var(--gold-3); font-family: 'Game UI', Georgia, serif; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; }
body.hearth-on #help-hearth p { font-family: 'Game UI', Georgia, serif; font-size: 16px; color: var(--sand-1); max-width: 560px; margin: 10px auto 0; }
