/* One story at a time, with controls floating on the dimmed backdrop. */
#guide-dialog.guide-carousel { position: fixed; inset: 0; height: fit-content; width: min(680px, calc(100vw - 16px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0 60px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #252733; }
#guide-dialog::backdrop { background: rgb(35 27 52 / 62%); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.guide-card { width: 100%; max-height: calc(100dvh - 32px); padding: 24px 32px 24px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 32px; box-shadow: 0 24px 100px #170e2a26; text-align: center; }
.guide-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-brand { color: var(--brand-purple, #7658df); font-size: 13px; font-weight: 700; letter-spacing: -.025em; }
#guide-dialog #close-guide { width: 40px; height: 40px; margin-right: -8px; color: #8b8794; border-radius: 50%; }
#guide-dialog #close-guide:hover { background: #f6f3fa; color: #55456f; }
.guide-page { min-height: 390px; }
.guide-art { display: flex; align-items: center; justify-content: center; height: 236px; margin: 0 -8px 8px; }
.guide-art img { display: block; width: min(360px, 100%); height: auto; max-height: 236px; object-fit: contain; }
#guide-dialog #guide-title { margin: 0 0 14px; color: #252733; font-size: 30px; font-weight: 750; letter-spacing: -.055em; line-height: 1.35; }
.guide-copy { max-width: 370px; min-height: 54px; margin: 0 auto; color: #6b6575; font-size: 16px; letter-spacing: -.025em; line-height: 1.7; text-wrap: pretty; word-break: keep-all; }
.guide-example-line { max-width: 390px; min-height: 38px; margin: 19px auto 0; color: #8f7eb0; font-size: 12px; line-height: 1.6; letter-spacing: -.015em; word-break: keep-all; }
.guide-example-line > span { display: block; margin-bottom: 3px; color: #a39bad; font-size: 10px; font-weight: 600; }
.guide-example-line strong { font-weight: 550; }
.guide-footer { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 16px; min-height: 98px; padding-top: 8px; }
.guide-pagination { display: flex; flex-direction: column; align-items: center; gap: 9px; }
#guide-count { color: #a69eaf; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.guide-dots { display: flex; justify-content: center; align-items: center; gap: 6px; height: 7px; }
.guide-dots span { display: block; width: 5px; height: 5px; border-radius: 50%; background: #e8e1f2; transition: width .16s ease, background-color .16s ease; }
.guide-dots span.active { width: 19px; border-radius: 5px; background: #9477d0; }
#guide-dialog #start-button { display: flex; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 48px; border-radius: 15px; font-size: 15px; }
#guide-dialog #start-button .icon { width: 18px; height: 18px; }
.guide-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 52px; height: 64px; padding: 0; border: 0; border-radius: 18px; background: transparent; color: rgb(255 255 255 / 84%); cursor: pointer; transform: translateY(-50%); -webkit-tap-highlight-color: transparent; }
.guide-arrow--prev { left: 0; }
.guide-arrow--next { right: 0; }
.guide-arrow:hover { background: rgb(255 255 255 / 9%); color: #fff; }
.guide-arrow:focus-visible { outline: 2px solid rgb(255 255 255 / 85%); outline-offset: 3px; }
.guide-chevron { width: 36px; height: 36px; overflow: visible; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity .06s ease, transform .06s ease; }
.guide-shot { position: absolute; top: 50%; left: 50%; display: block; width: 56px; height: 44px; opacity: 0; pointer-events: none; transform: translate(-50%,-50%); }
.guide-arrow--prev .guide-shot { transform: translate(-50%,-50%) scaleX(-1); }
.guide-shot-gun { position: absolute; left: 0; top: 0; width: 56px; height: 44px; overflow: visible; }
.guide-muzzle { position: absolute; top: 10px; left: 49px; width: 15px; height: 15px; background: #ffe6b9; clip-path: polygon(50% 0,63% 30%,100% 24%,77% 52%,100% 82%,65% 73%,50% 100%,36% 72%,0 80%,23% 51%,0 22%,36% 30%); opacity: 0; }
.guide-pellet { position: absolute; top: 15px; left: 54px; width: 13px; height: 7px; border-radius: 999px; background: #f5e6b9; box-shadow: -8px 0 0 -2px #fff5df99; opacity: 0; }
#guide-dialog.is-switching[data-direction="next"] #guide-next .guide-chevron,
#guide-dialog.is-switching[data-direction="prev"] #guide-prev .guide-chevron { opacity: 0; transform: scale(.65); }
#guide-dialog.is-switching[data-direction="next"] #guide-next .guide-shot,
#guide-dialog.is-switching[data-direction="prev"] #guide-prev .guide-shot { opacity: 1; }
#guide-dialog.is-switching[data-direction="next"] #guide-next .guide-shot-gun,
#guide-dialog.is-switching[data-direction="prev"] #guide-prev .guide-shot-gun { animation: guide-recoil .18s ease-out both; }
#guide-dialog.is-switching[data-direction="next"] #guide-next .guide-muzzle,
#guide-dialog.is-switching[data-direction="prev"] #guide-prev .guide-muzzle { animation: guide-muzzle .18s ease-out both; }
#guide-dialog.is-switching[data-direction="next"] #guide-next .guide-pellet,
#guide-dialog.is-switching[data-direction="prev"] #guide-prev .guide-pellet { animation: guide-shot .18s cubic-bezier(.2,.7,.3,1) both; }
#guide-dialog.is-switching .guide-page { opacity: .85; transition: opacity .1s ease-out; }
.guide-page.is-arriving { animation: guide-arrive .16s ease-out both; }
@keyframes guide-arrive { from { opacity: .6; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes guide-recoil { 0%,100% { transform: translateX(0) rotate(0); } 32% { transform: translateX(-7px) rotate(-8deg); } 65% { transform: translateX(1px) rotate(2deg); } }
@keyframes guide-muzzle { 0%,100% { opacity: 0; transform: scale(.3); } 25%,55% { opacity: 1; transform: scale(1); } }
@keyframes guide-shot { 0%,12% { opacity: 0; transform: translateX(0); } 22% { opacity: 1; } 90%,100% { opacity: 0; transform: translateX(72px); } }
@media (max-width: 600px) {
  #guide-dialog.guide-carousel { width: calc(100vw - 12px); padding: 0 42px; max-height: calc(100dvh - 24px); }
  .guide-card { padding: 18px 20px 22px; border-radius: 28px; max-height: calc(100dvh - 24px); }
  .guide-topline { gap: 4px; }.guide-brand { font-size: 11px; }
  #guide-dialog #close-guide { width: 36px; height: 36px; margin-right: -9px; }
  .guide-page { min-height: 345px; }.guide-art { height: 196px; margin: 6px -12px 8px; }.guide-art img { max-height: 196px; }
  #guide-dialog #guide-title { font-size: 25px; margin-bottom: 13px; }
  .guide-copy { min-height: 70px; font-size: 14px; line-height: 1.7; }
  .guide-example-line { min-height: 48px; margin-top: 15px; font-size: 11px; }
  .guide-footer { min-height: 90px; padding-top: 4px; gap: 14px; }
  .guide-arrow { width: 38px; height: 60px; border-radius: 14px; }.guide-chevron { width: 30px; height: 30px; }
  .guide-shot { width: 46px; height: 38px; }.guide-shot-gun { width: 46px; height: 38px; }
  .guide-muzzle { left: 40px; top: 9px; width: 12px; height: 12px; }.guide-pellet { left: 44px; top: 12px; width: 11px; height: 6px; }
}
@media (max-height: 640px) {
  .guide-card { padding-top: 12px; padding-bottom: 16px; }.guide-page { min-height: 0; }.guide-art { height: 140px; margin-top: 0; margin-bottom: 4px; }.guide-art img { max-height: 140px; }
  .guide-copy { min-height: 0; }.guide-example-line { min-height: 0; margin-top: 10px; }.guide-footer { min-height: 70px; gap: 10px; padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #guide-dialog *, #guide-dialog *::before, #guide-dialog *::after { animation: none !important; transition: none !important; }
}
