/* Shared: How is a popup; movement pads only on phones; hide key ledgers. */
.dock .hint,
.key-ledger { display: none !important; }
@media (min-width: 821px) {
  .dock.touch-only { display: none !important; }
}
@media (max-width: 820px) {
  .dock.touch-only {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
}
/* HUD must not host a tall Fame list. */
.hud > aside.hof,
header.hud .hof { display: none !important; }
.hof {
  min-width: 11rem;
  max-height: 9rem;
  overflow: auto;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  padding: 6px 10px;
  background: #1a1612cc;
}
.hof h3 {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a574;
}
.hof ol { margin: 0; padding-left: 1.15rem; font-size: 0.78rem; color: #efe6d8; }
.hof li { margin: 1px 0; }
.hof .empty { color: #9a9184; font-size: 0.75rem; }
.hof-win,
label.hof-win { display: block; margin-top: 8px; font-size: 0.8rem; color: #9a9184; }
.hof-win input,
label.hof-win input {
  display: block;
  margin-top: 4px;
  width: min(16rem, 100%);
  font: inherit;
  color: #efe6d8;
  background: #2a2218;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  padding: 6px 10px;
}
a.hall-exit,
.hud a.hall-exit,
.panel a.hall-exit {
  display: inline-flex;
  align-items: center;
  background: #c4a574;
  color: #1c1612 !important;
  padding: 6px 14px;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}
a.hall-exit:hover { filter: brightness(1.08); }
a.wing-return {
  display: inline-flex;
  align-items: center;
  background: #3a2c20;
  color: #efe6d8 !important;
  padding: 6px 14px;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  margin-left: 4px;
}
/* How is a real chip-button, not a text link. */
a.how-btn,
.hud a[href*="how.html"] {
  display: inline-flex;
  align-items: center;
  background: #2a2218;
  color: #efe6d8 !important;
  padding: 6px 14px;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}
a.how-btn:hover,
.hud a[href*="how.html"]:hover {
  border-color: #c4a574;
  color: #c4a574 !important;
}
.hof-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: grid;
  place-items: center;
  background: #0c0a08e8;
  padding: 24px;
}
.hof-modal[hidden] { display: none !important; }
.hof-panel {
  background: #2a2218;
  border: 1px solid #c4a574;
  border-radius: 12px;
  padding: 22px 24px;
  max-width: 22rem;
  width: min(22rem, 92vw);
  color: #efe6d8;
  box-shadow: 0 20px 60px #000a;
}
.hof-panel h2 {
  font-family: Cinzel, Palatino, serif;
  color: #c4a574;
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.hof-panel ol {
  margin: 0 0 14px;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}
.hof-panel li { margin: 3px 0; }
.hof-panel .empty { color: #9a9184; }
.hof-panel select {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  font: inherit;
  color: #efe6d8;
  background: #2a2218;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  padding: 6px 10px;
}
.hof-panel button {
  font: inherit;
  background: #3a2c20;
  color: #efe6d8;
  border: 1px solid #8a6a3e;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.win-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
footer.dock:empty { display: none !important; }
