/* V1.157 — confirmed home navigation refinement, scoped to the home page. */
.home--visual-master { --home-nav-accent: #bca574; }
.home--visual-master::before { display: none; }
.home--visual-master .home__grid { opacity: .06; }
.home--visual-master .home__edition { top: calc(23% - 64px); gap: 12px; }
.home--visual-master .home__edition strong { font-size: 32px; }
.home--visual-master .home__edition small { color: var(--home-nav-accent); }
.home--visual-master .service-entries { top: 23%; width: 240px; gap: 8px; }
.home--visual-master .service-entry { width: 100%; height: 56px; min-height: 56px; display: grid; align-items: center; grid-template-columns: 32px minmax(0, 1fr) 20px; gap: 12px; padding: 8px 12px; border: 1px solid rgba(238,233,223,.18); border-radius: 6px; background: rgba(8,8,12,.68); text-align: left; }
.home--visual-master .service-entry__icon { width: 32px; height: 32px; color: #c3bdaF; background: transparent; }
.home--visual-master .service-entry__icon svg { width: 24px; height: 24px; stroke-width: 1.25; }
.home--visual-master .service-entry__copy strong { color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.2; letter-spacing: .04em; }
.home--visual-master .service-entry--growth .service-entry__icon { color: #c1aa77; }
.home--visual-master .service-entry--date .service-entry__icon { color: #bf91a1; }
.home--visual-master .service-entry--life .service-entry__icon { color: #88b8b2; }
.home--visual-master .service-entry__arrow { font-size: 20px; color: var(--text); }
.home--visual-master .service-entry:hover, .home--visual-master .service-entry:focus-visible { border-color: rgba(238,233,223,.5); background: rgba(18,18,24,.85); }
.home--visual-master .topbar-actions { gap: 8px; }
.home--visual-master .utility-entry { width: auto; min-width: 80px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; border: 1px solid transparent; background: transparent; backdrop-filter: none; }
.home--visual-master .utility-entry__label { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: var(--text); font-size: 14px; line-height: 1; }
.home--visual-master .utility-entry:hover, .home--visual-master .utility-entry:focus-visible { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.28); }
.home--visual-master .currency-wallet { gap: 8px; }
.home--visual-master .currency-pill { flex-basis: 148px; min-width: 148px; border-color: rgba(255,255,255,.14); box-shadow: none; }
.home--visual-master .currency-pill::before { display: none; }
.home--visual-master .right-feature-stack { top: 25%; gap: 8px; }
.home--visual-master .feature-float { width: 176px; height: 48px; grid-template-columns: 28px minmax(0,1fr) 16px; padding: 8px 12px; background: rgba(8,8,12,.68); border-color: rgba(238,233,223,.18); }
.home--visual-master .feature-float::before { content: none; }
.home--visual-master .feature-float::after { content: '›'; font-size: 20px; color: var(--text); }
.home--visual-master .feature-float__icon { width: 28px; height: 28px; border: 0; }
.home--visual-master .feature-float__copy strong { font-size: 16px; line-height: 1.2; }
.home--visual-master .companion-group { position: absolute; z-index: 5; right: var(--edge-right); bottom: calc(var(--safe-bottom) + 88px); width: min(520px, 36vw); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.home--visual-master .companion-entry { margin-left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; width: max-content; max-width: calc(100% - 16px); height: 48px; padding: 0 16px; border: 1px solid rgba(238,233,223,.22); color: var(--text); font: 500 14px/1 var(--font-serif, 'Noto Serif SC', 'Songti SC', serif); white-space: nowrap; cursor: pointer; }
.home--visual-master .companion-group .companion-line { position: relative; inset: auto; width: 100%; height: auto; min-height: 48px; padding: 8px 12px 8px 16px; }
.home--visual-master .companion-quote { white-space: normal; font-size: 14px; line-height: 1.7; }
.home--visual-master .heart-entry { min-height: 64px; gap: 12px; }
.home--visual-master .entry-label strong { font-size: 18px; font-weight: 600; line-height: 1.2; }
.home--visual-master a:focus-visible, .home--visual-master button:focus-visible, .home-content-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal.navigation-mode { place-items: center; }
.modal.navigation-mode .modal__panel { width: min(480px, 90vw); max-height: calc(100dvh - 32px); border-radius: 6px; background: rgba(15,15,21,.98); overflow: auto; }
.home-navigation-panel { padding: 24px; }
.home-navigation-panel h2 { margin: 0 48px 24px 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.home-navigation-panel nav { display: grid; gap: 8px; }
.home-content-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 16px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 14px; line-height: 1.4; background: rgba(255,255,255,.025); }
.home-content-link:hover { border-color: var(--gold); }
@media (max-width: 1000px), (max-height: 560px) {
  .home--visual-master .home__edition { display: none; }
  .home--visual-master .service-entries { top: calc(var(--safe-top) + 64px); width: 156px; gap: 8px; }
  .home--visual-master .service-entry { height: 44px; min-height: 44px; grid-template-columns: 28px minmax(0,1fr) 16px; gap: 8px; padding: 4px 8px; }
  .home--visual-master .service-entry__icon { width: 28px; height: 28px; }
  .home--visual-master .service-entry__icon svg { width: 20px; height: 20px; }
  .home--visual-master .service-entry__copy strong { font-size: 13px; letter-spacing: 0; }
  .home--visual-master .service-entry__arrow { font-size: 16px; }
  .home--visual-master .currency-pill { flex-basis: 124px; min-width: 124px; height: 44px; min-height: 44px; }
  .home--visual-master .utility-entry { min-width: 44px; height: 44px; min-height: 44px; padding: 0 8px; gap: 4px; }
  .home--visual-master .utility-entry__label { font-size: 12px; }
  .home--visual-master .utility-entry:not([href='bag.html']) .utility-entry__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .home--visual-master .utility-entry[href='bag.html'] { min-width: 72px; }
  .home--visual-master .right-feature-stack { top: calc(var(--safe-top) + 64px); }
  .home--visual-master .feature-float { width: 144px; height: 44px; min-height: 44px; grid-template-columns: 26px minmax(0,1fr); gap: 8px; padding: 4px 8px; }
  .home--visual-master .feature-float::after { display: none; }
  .home--visual-master .feature-float__icon { width: 26px; height: 26px; }
  .home--visual-master .feature-float__copy strong { font-size: 13px; letter-spacing: 0; }
  .home--visual-master .companion-group { bottom: calc(var(--safe-bottom) + 72px); width: min(420px,46vw); gap: 8px; }
  .home--visual-master .companion-entry { height: 44px; font-size: 13px; padding: 0 12px; gap: 16px; }
  .home--visual-master .companion-group .companion-line { min-height: 44px; }
  .home--visual-master .companion-quote { font-size: 13px; line-height: 1.5; }
  .home--visual-master .heart-entry { min-height: 56px; gap: 8px; }
  .home--visual-master .entry-label strong { font-size: 15px; }
  .home-navigation-panel { padding: 16px; }
  .home-navigation-panel h2 { font-size: 16px; margin-bottom: 16px; }
  .home-content-link { min-height: 44px; padding: 8px 12px; font-size: 13px; }
}

/* Character shortcut shares the bottom action row, below the dialogue. */
.home--visual-master .home-primary-actions { display: flex; align-items: stretch; gap: 16px; }
.home--visual-master .home-primary-actions .companion-entry { height: auto; align-self: stretch; margin-left: 0; max-width: none; flex-shrink: 0; }
@media (max-width: 1000px), (max-height: 560px) {
  .home--visual-master .home-primary-actions { gap: 8px; }
}
