/* The page keeps its own layout. Only the companion participates in document transitions. */
@view-transition { navigation: auto; }
:root:has([data-pp-guide]) { view-transition-name: none; scroll-padding-bottom: 5.5rem; }
[data-pp-guide] { position: fixed; z-index: 20; right: max(1.15rem,env(safe-area-inset-right)); bottom: max(1rem,env(safe-area-inset-bottom)); font: 400 1rem/1.48 Inter,"Segoe UI",Arial,sans-serif; color: #f4f8f9; }
[data-pp-guide], [data-pp-guide] * { box-sizing: border-box; }
[data-pp-guide][hidden], [data-pp-guide] [hidden], .cp-login-is-open [data-pp-guide], body:has(dialog[open]) [data-pp-guide] { display: none !important; }
[data-pp-guide] button { appearance: none; margin: 0; font: inherit; cursor: pointer; }
[data-pp-guide] :is(a,button):focus-visible { outline: 3px solid #f6d79d; outline-offset: 3px; }
[data-guide-trigger] { position: relative; display: flex; align-items: end; justify-content: flex-end; gap: .2rem; min-height: 4.3rem; min-width: 5rem; padding: 0; border: 0; color: #f4faf9; background: transparent; }
.pp-guide-word { display: grid; place-items: center; min-height: 2.2rem; padding: .27rem .75rem .27rem 1.5rem; border: 1px solid #55756e; border-radius: 2rem; background: #101d22; box-shadow: 0 .26rem .8rem #02080b94; font-size: .81rem; font-weight: 650; letter-spacing: .01em; }
.pp-guide-portrait { position: absolute; bottom: .15rem; left: -.32rem; width: 3.6rem; height: 4.1rem; pointer-events: none; filter: drop-shadow(0 .13rem .13rem #030813) drop-shadow(0 0 .28rem #72d7d326); }
.pp-guide-portrait img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
[data-guide-trigger]:hover .pp-guide-word, [data-guide-trigger][aria-expanded="true"] .pp-guide-word { border-color: #a1dace; color: #c0f6ec; }
[data-pp-guide]:not([data-guide-compact]):not([data-guide-hero]) [data-guide-trigger] { min-width: 7.15rem; }
[data-pp-guide][data-guide-compact] [data-guide-trigger], [data-pp-guide][data-guide-hero] [data-guide-trigger] { min-height: 2.75rem; min-width: 0; }
[data-pp-guide]:is([data-guide-compact],[data-guide-hero]) .pp-guide-portrait { display: none; }
[data-pp-guide]:is([data-guide-compact],[data-guide-hero]) .pp-guide-word { min-height: 2.75rem; padding-inline: .9rem; }
#pp-guide-panel { position: absolute; right: 0; bottom: calc(100% + .65rem); width: min(20rem,calc(100vw - 2.3rem)); max-height: calc(100vh - 7rem); max-height: calc(100dvh - 7rem); overflow: auto; overscroll-behavior: contain; padding: 1rem 1.18rem .65rem; border: 1px solid #52645e; border-top-color: #bea67f; border-radius: 1.15rem; color: #f1f4f1; background: linear-gradient(150deg,#19282e,#0c151c 67%); box-shadow: 0 1rem 2.9rem #0009, inset 0 1px 0 #fbedd512; text-align: left; }
.pp-guide-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
#pp-guide-panel .pp-guide-heading p { margin: 0; color: #aad9d3; font-size: .77rem; line-height: 1.4; font-weight: 650; letter-spacing: .04em; }
[data-guide-close] { display: grid; place-items: center; min-height: 2.75rem; min-width: 2.75rem; margin: -.45rem -.5rem -.3rem 0 !important; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d3dedb; }
[data-guide-close] span { font-size: 1.52rem; line-height: 1; }
[data-guide-close]:hover { background: #ffffff15; }
#pp-guide-panel h2 { margin: .6rem 0 .4rem; color: #f4f7f2; font: 600 1.38rem/1.18 Inter,"Segoe UI",Arial,sans-serif; letter-spacing: -.03em; }
#pp-guide-panel .pp-guide-copy { margin: 0 0 .85rem; color: #c9d5d5; font: 400 .94rem/1.48 Inter,"Segoe UI",Arial,sans-serif; }
#pp-guide-panel nav { position: static; display: grid; width: auto; gap: .15rem; margin: 0; padding: 0; }
#pp-guide-panel nav a { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 2.75rem; padding: .48rem .1rem; border-block-start: 1px solid #374b4d; color: #aff0e6; background: none; font: 600 .92rem/1.35 Inter,"Segoe UI",Arial,sans-serif; text-decoration: none; }
#pp-guide-panel nav a:hover { text-decoration: underline; text-underline-offset: .21em; }
#pp-guide-panel nav a span { color: #dac398; }
[data-guide-minimize] { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .45rem .1rem; border: 0; color: #c3cfcb; background: none; text-decoration: underline; text-underline-offset: .2em; font-size: .8rem !important; }
body:has(>[data-pp-guide])>footer { padding-bottom: 5rem; }
@keyframes pp-guide-hover { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
@keyframes pp-guide-arrive { from { opacity: .6; transform: translateX(-.85rem); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-pp-motion="reduced"]) [data-guide-trigger] { view-transition-name: pp-personal-companion; }
  :root:not([data-pp-motion="reduced"]) [data-pp-guide]:not([data-guide-still]) .pp-guide-portrait img { animation: pp-guide-hover 5.8s ease-in-out infinite; }
  :root:not([data-pp-motion="reduced"]) [data-pp-guide][data-guide-arriving]:not([data-guide-still]) { animation: pp-guide-arrive .35s ease-out both; }
  ::view-transition-group(pp-personal-companion) { animation-duration: .32s; animation-timing-function: ease-out; }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0s !important; } }
:root[data-pp-motion="reduced"]::view-transition-group(*), :root[data-pp-motion="reduced"]::view-transition-old(*), :root[data-pp-motion="reduced"]::view-transition-new(*) { animation-duration: 0s !important; }
@media (max-width: 48rem) {
  [data-pp-guide] { right: max(.75rem,env(safe-area-inset-right)); bottom: max(.7rem,env(safe-area-inset-bottom)); }
  [data-pp-guide]:not([data-guide-hero]):not([data-guide-compact]) [data-guide-trigger] { min-width: 5.75rem; min-height: 3.25rem; }
  .pp-guide-portrait { left: -.1rem; width: 2.65rem; height: 3.1rem; }
  .pp-guide-word { min-height: 2.5rem; padding-inline: .95rem .6rem; }
  #pp-guide-panel { width: min(20rem,calc(100vw - 1.7rem)); }
  [data-pp-guide][data-guide-editing] { display: none; }
}
@media (max-height: 27rem) { #pp-guide-panel { max-height: calc(100dvh - 5rem); } }
@media print { [data-pp-guide] { display: none !important; } body:has(>[data-pp-guide])>footer { padding-bottom: 0; } }
