/* GUIDE — Aarav, the guide (static/guide.js). One fixed layer over the app; only his body, the card and its
   buttons take taps. It sits over the app's panels (share and version history reach
   2147483000) and under Razorpay's checkout. Ink #1F1B16 / bronze #8B7355 / gold #C6A67D / cream #F3EBDD, like the rest of ResumeInk. */
.rg { position: fixed; inset: 0; z-index: 2147483100; pointer-events: none; font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.rg:not(.on) { display: none; }
.rg-ring { position: fixed; z-index: 1; border-radius: 14px; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 3px #C6A67D, 0 0 0 7px rgba(198,166,125,.28), 0 0 0 200vmax rgba(31,27,22,.16);
  transition: opacity .25s, left .35s cubic-bezier(.2,.8,.2,1), top .35s cubic-bezier(.2,.8,.2,1), width .35s, height .35s; }
.rg.spot .rg-ring { opacity: 1; animation: rg-pulse 1.8s ease-in-out infinite; }
@keyframes rg-pulse { 50% { box-shadow: 0 0 0 3px #C6A67D, 0 0 0 12px rgba(198,166,125,.12), 0 0 0 200vmax rgba(31,27,22,.16); } }
.rg-line { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .2s; }
.rg.spot .rg-line { opacity: 1; }
.rg-line path { fill: none; stroke: #C6A67D; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 1px 1px rgba(31,27,22,.35)); }
.rg-line circle { fill: #C6A67D; }

.rg-stage { position: fixed; z-index: 3; pointer-events: none; clip-path: inset(-400px -400px 0 -400px); }   /* clipped only at its bottom edge */
.rg-fig { position: absolute; left: 0; right: 0; bottom: 0; transform-origin: 50% 100%; will-change: transform; }
.rg-pose, .rg-lid { position: absolute; bottom: 0; max-width: none; height: auto; user-select: none; -webkit-user-drag: none; visibility: hidden; }
.rg-pose.on { visibility: visible; }
.rg-lid { bottom: auto; }
.rg-lid.on { visibility: visible; }
.rg-hit { position: absolute; left: 18%; right: 18%; top: 4%; height: 66%; padding: 0; border: 0; background: none; cursor: pointer;
  pointer-events: auto; -webkit-tap-highlight-color: transparent; border-radius: 40% 40% 0 0; }
.rg-hit:focus-visible { outline: 3px solid #C6A67D; outline-offset: 2px; }

.rg-fx { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.rg-bit { position: fixed; width: 8px; height: 8px; border-radius: 50% 50% 50% 0; background: #2A2520; }
.rg-bit.b { background: #8B7355; }
.rg-bit.confetti { width: 7px; height: 11px; border-radius: 2px; background: #C6A67D; }
.rg-bit.confetti.b { background: #2D6A4F; }
.rg-bit.confetti:nth-child(4n) { background: #8B7355; }
.rg-bit.confetti:nth-child(5n) { background: #1F1B16; }
.rg-note { position: fixed; font: 700 22px/1 Georgia, serif; color: #8B7355; text-shadow: 0 1px 0 #FAF6EF; }
.rg-ball { position: fixed; left: 0; top: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #7A6A58, #1F1B16 70%); box-shadow: 0 2px 3px rgba(31,27,22,.3); }
.rg-ball.b { background: radial-gradient(circle at 35% 32%, #EAD3AE, #8B7355 70%); }

.rg-card { position: fixed; z-index: 5; pointer-events: auto; box-sizing: border-box; padding: 14px 16px 12px; border-radius: 16px;
  background: #1F1B16; color: #F3EBDD; box-shadow: 0 20px 44px rgba(31,27,22,.32); opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.rg-card.on { opacity: 1; visibility: visible; transition: opacity .2s; }
.rg-card::after { content: ''; position: absolute; right: -7px; bottom: 26px; width: 14px; height: 14px; background: #1F1B16; transform: rotate(45deg); border-radius: 2px; }
.rg-card.tail-left::after { right: auto; left: -7px; }
.rg-text { margin: 0; font: 500 15px/1.5 'Inter', system-ui, sans-serif; letter-spacing: .005em; }
.rg-text span { opacity: 0; }
.rg-text span.in { opacity: 1; transition: opacity .1s; }
.rg-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.rg-foot:empty, .rg-foot:has(.rg-dots:empty):has(.rg-btns:empty) { display: none; }
.rg-dots { display: inline-flex; gap: 4px; }
.rg-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(243,235,221,.28); transition: width .25s, background .25s; }
.rg-dots i.on { width: 16px; background: #C6A67D; }
.rg-btns { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.rg-btn { font: 600 13px/1 'Inter', system-ui, sans-serif; padding: 9px 13px; border-radius: 999px; border: 1px solid rgba(243,235,221,.28);
  background: transparent; color: #F3EBDD; cursor: pointer; }
.rg-btn:hover { border-color: rgba(243,235,221,.6); }
.rg-btn.primary { background: #F3EBDD; color: #1F1B16; border-color: transparent; }
.rg-btn.primary:hover { background: #fff; }
.rg-btn:focus-visible { outline: 2px solid #C6A67D; outline-offset: 2px; }

.rg-mini { position: fixed; z-index: 5; right: 12px; bottom: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; overflow: hidden;
  border: 1px solid #E7DECE; background: #FAF6EF; box-shadow: 0 8px 20px rgba(31,27,22,.18); cursor: pointer; pointer-events: auto; }
.rg-mini img { position: absolute; max-width: none; pointer-events: none; }
.rg-mini:focus-visible { outline: 3px solid #C6A67D; outline-offset: 2px; }
.rg.quiet .rg-stage, .rg.quiet .rg-card, .rg.quiet .rg-ring, .rg.quiet .rg-line { display: none; }

@media (max-width: 699px) {
  .rg-card { padding: 12px 14px 10px; border-radius: 14px; }
  .rg-text { font-size: 14px; }
  .rg-btn { padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .rg-ring, .rg-card, .rg-line { transition: none; }
  .rg.spot .rg-ring { animation: none; }
}
@media print { .rg { display: none !important; } }
/* while he talks on the landing page (the sample gallery, reading an upload), the landing's own Aarav steps aside */
body.rg-active .hm-peek, body.rg-active .hm-peek-say, body.rg-active #aarav { opacity: 0 !important; pointer-events: none !important; }   /* opacity: the desk Aarav sets his own visibility */
