/* Study Quest — horse.css (V7.8 lane H, builder v78-horse): the Horse page (js/ui-horse.js).
 * Ember & Iron: composed from .codex-window / .codex-banner / .codex-btn / .ei-socket / .codex-kbd in the markup; this sheet only
 * places, sizes and spaces it (prefix .hz-*). Flat colour and texture, never a gradient; centred at every size, never taller than the
 * screen (the body scrolls). */
.hz-layer { position: fixed; inset: 0; z-index: 126; display: grid; place-items: center; padding: 12px; background: rgba(6, 8, 14, 0.38); }
.hz-layer.hidden { display: none; }
.hz-window { box-sizing: border-box; width: 480px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); display: flex; flex-direction: column;
  animation: cx-rise var(--cx-dur-calm, 480ms) var(--cx-ease, ease-out) both; }
.hz-title { min-width: 220px; text-align: center; }
.hz-tag { margin-left: 6px; font: 700 11px/1 var(--cx-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: #c9a46a; }
.hz-body { display: flex; flex-direction: column; gap: 9px; padding: 14px 20px 10px; overflow-y: auto; }
.hz-where { margin: 0; font: 400 15px/1.45 var(--cx-font-body); color: var(--cx-text, #ebe4d6); text-align: center; }
.hz-where b, .hz-where [data-word] { color: #f6ead6; }
.hz-dim { color: #a99d8b; font-size: 13px; }
p.hz-dim { margin: 0; text-align: center; }
.hz-sec { padding: 7px 10px 8px; border: 1px solid rgba(170, 130, 80, 0.32); border-radius: 4px; }
.hz-k { display: inline-block; margin-right: 6px; font: 700 12px/1.3 var(--cx-font-label); letter-spacing: 0.08em; text-transform: uppercase; color: #e9c27a; }
.hz-dah { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 8px; padding: 0 2px; font: 400 14px/1 var(--cx-font-body); color: #ebe4d6; }
.hz-dah small { color: #a99d8b; }
.hz-bar { position: relative; height: 10px; border: 1px solid #5a4630; border-radius: 3px; background: #1d1813; overflow: hidden; }
.hz-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #8fb36a; }
.hz-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; font: 400 14px/1.4 var(--cx-font-body); color: #ebe4d6; }   /* V7.8 fixer r2 (play critic #8): a 2 x 2 grid, never one stat alone on a line */
.hz-chips, .hz-paces, .hz-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hz-paces { align-items: center; margin-top: 0; }
.hz-acts { justify-content: center; }
.hz-chip, .hz-pace { -webkit-appearance: none; appearance: none; flex: 1 1 0; min-width: 0; min-height: 40px; margin: 0; padding: 5px 6px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; font: 600 14px/1.2 var(--cx-font-body); color: var(--cx-text, #ebe4d6); cursor: pointer; }
.hz-chip small { font: 400 11px/1.2 var(--cx-font-body); color: #a99d8b; }
.hz-chip:hover, .hz-pace:hover { color: var(--cx-gold-leaf, #f0c674); }
.hz-pace.is-on { color: #f6ead6; box-shadow: 0 0 0 1px rgba(233, 194, 122, 0.85) inset; }
.hz-own { display: flex; gap: 6px; margin-top: 7px; }
.hz-input { flex: 1 1 auto; min-width: 0; padding: 6px 8px; border: 1px solid #5a4630; border-radius: 3px; background: #15110d; color: #f6ead6; font: 400 14px/1.2 var(--cx-font-body); }
.hz-input:focus { outline: none; border-color: #c9a46a; }
.hz-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 400 14px/1.4 var(--cx-font-body); color: #ebe4d6; cursor: pointer; }
.hz-toggle small { flex-basis: 100%; color: #a99d8b; font-size: 12.5px; }
.hz-act .hz-ic { width: 15px; height: 15px; vertical-align: -3px; }
.hz-msg { min-height: 1.2em; margin: 0; font: 400 13px/1.3 var(--cx-font-body); color: #e8a080; text-align: center; }
.hz-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hz-hint { color: #a99d8b; font-size: 12.5px; }
/* the page's own sockets: flat colour (the shared .ei-socket carries a soft shading; here it is flat, the user's rule 25 Oct) */
.hz-window .hz-chip, .hz-window .hz-pace { background: #231c15; background-image: none; border: 1px solid #5a4630; border-radius: 3px; box-shadow: none; }
.hz-window .hz-pace.is-on { background: #3a2c1c; border-color: #c9a46a; box-shadow: none; }
