@font-face { font-family: Shalaka; src: url('/guidance/noto-serif-devanagari.ttf') format('truetype'); font-display: swap; }
.guidance-page [hidden] { display: none !important; }
.guidance-page :lang(hi), .shalaka-chart button { font-family: Shalaka, serif; }
.guidance-page section[lang="en"] { font-family: "DM Sans", system-ui, sans-serif; }
.guidance-page button, .guidance-page select { font: inherit; }
.guidance-page button { cursor: pointer; }
.guidance-page button:focus-visible, .guidance-page a:focus-visible { outline: 3px solid #641a91; outline-offset: 3px; }
.guidance-page .guidance-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 18px 0; }
.guidance-page .guidance-actions > * { max-width: 100%; }
.guidance-page .guidance-actions label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.guidance-page select { min-height: 44px; max-width: 100%; border: 1px solid #cfb9dc; border-radius: 8px; padding: 8px; background: #fff; }
.guidance-page .secondary-button { min-height: 44px; padding: 9px 16px; border: 1px solid #cfb9dc; background: #fff; border-radius: 9px; color: #641a91; }
.guidance-page .tool-panel { margin-bottom: 24px; }
.guidance-page .tool-status { margin: 12px 0; }
.deck-scroll { max-height: 520px; overflow-y: auto; border: 1px solid #ddcba8; border-radius: 12px; padding: 12px; background: #faf5e9; overscroll-behavior: contain; }
.tarot-deck { display: grid; grid-template-columns: repeat(auto-fit,minmax(64px,1fr)); gap: 10px; }
.deck-card { position: relative; min-width: 0; aspect-ratio: 0.59; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #eae1c7; overflow: hidden; }
.deck-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.deck-card .card-position { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); color: #fff; background: #462b52; padding: 1px 6px; border-radius: 12px; font: 600 11px system-ui; }
.deck-card.is-chosen { border-color: #641a91; }
.deck-card.is-revealing img { animation: reveal-card .5s ease-out; }
.deck-card:disabled { opacity: .42; cursor: default; }
@keyframes reveal-card { from { transform: perspective(500px) rotateY(90deg); } to { transform: perspective(500px) rotateY(0); } }
.reading-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 20px; }
.reading-card { padding: 18px; border: 1px solid #e5d7eb; border-radius: 14px; background: #fffcf5; }
.reading-card img { width: 100%; height: 280px; object-fit: contain; display: block; margin: 10px auto; }
.reading-card h3 { margin: 8px 0; }
.reading-card button { width: 100%; }
.card-dialog { width: min(680px,calc(100% - 24px)); max-height: 90dvh; overflow-y: auto; border: 1px solid #d8bd75; border-radius: 18px; padding: clamp(16px,4vw,30px); color: var(--ink); background: #fffdf7; }
.card-dialog::backdrop { background: rgba(26,12,36,.72); }
.card-dialog img { display: block; width: 100%; height: min(50dvh,470px); object-fit: contain; margin: 16px auto; }
.card-dialog h2 { font-size: 1.55rem; }
.card-dialog .guidance-actions { justify-content: space-between; }
.shalaka-scroll { overflow-x: auto; padding: 5px; border: 1px solid #d8bd75; background: #fff9ed; border-radius: 12px; }
.shalaka-chart { display: grid; grid-template-columns: repeat(15,minmax(0,1fr)); gap: 2px; }
.shalaka-chart button { min-width: 0; min-height: 36px; padding: 5px 0 1px; border: 1px solid #d8bd75; background: #fffefa; color: #60351b; font-size: clamp(.7rem,1.8vw,1.35rem); }
.shalaka-scroll.is-large .shalaka-chart { min-width: 750px; }
.shalaka-scroll.is-large button { font-size: 1.5rem; min-height: 48px; }
.shalaka-chart .is-path { background: #f5dda2; border-color: #b38c2f; }
.shalaka-chart .is-selected { background: #641a91; color: #fff; border-color: #641a91; }
.shalaka-result { background: #fffaf0; border: 1px solid #e6cf8d; padding: clamp(15px,3vw,26px); border-radius: 14px; margin-top: 24px; scroll-margin-top: 20px; }
.shalaka-result blockquote { margin: 18px 0; color: #60351b; font-size: 1.4rem; line-height: 1.9; }
.shalaka-result h3 { color: #641a91; margin: 20px 0 8px; }
.shalaka-sequence { padding: 12px; border: 1px dashed #d8bd75; border-radius: 8px; overflow-wrap: anywhere; line-height: 2; }
.guidance-error { padding: 18px; border: 1px solid #a12829; border-radius: 10px; color: #a12829; }
@media (max-width: 480px) {
 .tarot-deck { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
 .deck-scroll { padding: 7px; max-height: 410px; }
 .guidance-page .tool-panel { padding: 16px 12px; }
 .shalaka-chart { gap: 1px; }
 .shalaka-chart button { min-height: 32px; font-size: .7rem; }
 .shalaka-scroll { padding: 2px; }
}
@media (prefers-reduced-motion: reduce) { .deck-card.is-revealing img { animation: none; } }
