/* Command workspace: navigation rail and a central action grid. */
#view-home.active { min-height: max(640px, calc(100vh - 24px)); }
#view-home .town { background: radial-gradient(ellipse at 60% 40%, #1b3943, #101923 68%); }
#view-home .town > * { display: none; }
.home-command { position: absolute; left: 190px; top: 125px; margin: 0; font-size: 28px; letter-spacing: .04em; }
#view-home .home-side { left: 190px; right: auto; top: 195px; transform: none; display: grid; grid-template-columns: repeat(2, 190px); gap: 14px; }
#view-home .round-btn { width: 190px; height: 90px; border-radius: 10px; border: 1px solid #547880; background: #17303be6; font-size: 17px; flex-direction: row; gap: 14px; }
#view-home .home-bottom { left: 18px; right: auto; top: 165px; bottom: auto; width: 136px; display: flex; flex-direction: column; gap: 12px; }
#view-home .bar-btn { min-height: 44px; justify-content: flex-start; padding-left: 15px; }
#view-home .home-chat { top: 420px; left: 190px; transform: none; width: 394px; }
#view-home .home-stamina { top: 94px; bottom: auto; left: 18px; }
#view-home .occupy-banner { top: 58px; left: auto; right: 16px; }
#view-home .home-sheet { z-index: 10; }
.resonance-guide { margin: 6px 10px; color: var(--text-dim); font-size: 12px; line-height: 1.5; }
#shop-focus { min-height: 36px; margin: 4px 0 14px 8px; padding: 4px 12px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 650px) {
  #view-home.active { min-height: 790px; }
  .home-command { left: 20px; top: 145px; font-size: 24px; }
  #view-home .home-side { left: 20px; right: 20px; top: 195px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #view-home .round-btn { width: 100%; height: 76px; font-size: 15px; }
  #view-home .home-bottom { left: 20px; right: 20px; top: 390px; width: auto; display: grid; grid-template-columns: repeat(2, 1fr); }
  #view-home .home-chat { top: 520px; left: 20px; width: calc(100% - 40px); }
  #view-home .home-stamina { top: 94px; }
}

/* Sanctuary of All Gods: a shared place for many mythological traditions. */
#view-home .town { background: linear-gradient(90deg, #08111dcc, #08111d40), url('../art/mythic-sanctuary.png') center/cover; }
.myth-origin-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.myth-origin-bar select { min-width: 160px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.myth-book { max-width: 860px; width: calc(100% - 48px); max-height: 86vh; padding: 22px; color: var(--text); background: #101e2a; border: 1px solid #a38e57; border-radius: 12px; overflow: auto; }
.myth-book::backdrop { background: #02060ddb; }
.myth-book header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.myth-book h2, .myth-book h3, .myth-book h4 { color: var(--gold); }
.myth-book h4 { margin: 0 0 8px; }
.myth-book article { padding: 16px; background: #192c3b; border: 1px solid #526576; border-radius: 8px; margin-bottom: 12px; }
.myth-book p, .myth-chapter-story { line-height: 1.75; word-break: keep-all; overflow-wrap: anywhere; }
.myth-story { white-space: pre-line; }
.myth-traditions { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.myth-traditions article { display: flex; flex-direction: column; }
.myth-traditions article p { flex: 1; }
.myth-unacquired .card-art { filter: grayscale(1); }
.codex-entry { min-height: 200px; isolation: isolate; background: #0b1724; }
.codex-entry > .card-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; }
.codex-entry::after { content: ''; position: absolute; inset: 0; background: linear-gradient(#07111ee6, transparent 70%); z-index: -1; pointer-events: none; }
