.rrg-guide, .rrg-guide * { box-sizing: border-box; }
.rrg-guide [hidden] { display: none !important; }
.rrg-guide {
  --rrg-ink: #221b1d;
  --rrg-gold: #f4bf28;
  --rrg-paper: #fff9e9;
  --rrg-bronze: #aa7025;
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 18px;
  max-width: calc(100vw - 32px);
  color: var(--rrg-ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  pointer-events: none;
}
.rrg-guide button { font: inherit; cursor: pointer; }
.rrg-guide button:focus-visible { outline: 3px solid #714108; outline-offset: 3px; }
.rrg-guide__launcher {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 58px;
  padding: 3px 17px 3px 5px;
  border: 2px solid var(--rrg-ink);
  border-radius: 999px;
  background: var(--rrg-paper);
  color: var(--rrg-ink);
  box-shadow: 0 7px 0 rgba(34,27,29,.18);
  font-size: .85rem;
  font-weight: 700;
}
.rrg-guide__launcher:hover { background: #fff0c5; }
.rrg-guide__launcher strong { font-weight: 850; }
.rrg-guide__avatar { width: 48px; height: 53px; object-fit: contain; }
.rrg-guide__stage { pointer-events: auto; display: flex; align-items: end; gap: 4px; }
.rrg-guide__bubble {
  width: min(352px, calc(100vw - 196px));
  max-height: min(560px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  margin-bottom: 46px;
  padding: 20px 20px 17px;
  background: var(--rrg-paper);
  border: 2px solid var(--rrg-ink);
  border-radius: 16px 16px 5px 16px;
  box-shadow: 0 12px 35px rgba(18,14,18,.25);
}
.rrg-guide__bubble::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 34px;
  width: 18px;
  height: 18px;
  background: var(--rrg-paper);
  border-right: 2px solid var(--rrg-ink);
  border-bottom: 2px solid var(--rrg-ink);
  transform: rotate(-45deg);
}
.rrg-guide__topline { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.rrg-guide__eyebrow { color: #82591e; font-size: .66rem; line-height: 1.4; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.rrg-guide__close { border: 0; background: none; color: var(--rrg-ink); font-size: 1.55rem !important; line-height: .7; padding: 2px 4px; }
.rrg-guide__title { margin: 14px 0 9px; font-size: clamp(1.2rem, 1.7vw, 1.55rem); line-height: 1.19; letter-spacing: -.025em; font-weight: 850; }
.rrg-guide__title:focus { outline: none; }
.rrg-guide__body { margin: 0 0 17px; color: #514946; line-height: 1.52; font-size: .9rem; }
.rrg-guide__topics { display: grid; gap: 7px; }
.rrg-guide__topic { text-align: left; background: #fff; border: 1px solid #d3c5a5; border-radius: 7px; padding: 10px 11px; color: var(--rrg-ink); font-size: .81rem !important; font-weight: 750 !important; }
.rrg-guide__topic:hover { background: #fff1c4; }
.rrg-guide__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.rrg-guide__actions:empty { display: none; }
.rrg-guide__primary, .rrg-guide__secondary { min-height: 39px; border-radius: 999px; padding: 8px 13px; font-size: .79rem !important; font-weight: 800 !important; }
.rrg-guide__primary { border: 1px solid var(--rrg-ink); background: var(--rrg-gold); color: var(--rrg-ink); }
.rrg-guide__primary:hover { background: #ffda59; }
.rrg-guide__secondary { border: 1px solid #a18e76; background: transparent; color: var(--rrg-ink); }
.rrg-guide__secondary:hover { background: #f7eaca; }
.rrg-guide__help-link { border: 0; background: none; color: #5c4b2f; text-decoration: underline; text-underline-offset: 3px; font-size: .72rem !important; font-weight: 750 !important; padding: 6px 0 0; }
.rrg-guide__figure { width: 150px; height: 225px; flex: none; transform-origin: 50% 85%; }
.rrg-guide__art { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.rrg-guide[data-state="idle"] .rrg-guide__figure { animation: rrg-breathe 5.6s ease-in-out infinite; }
.rrg-guide[data-state="point"] .rrg-guide__figure { animation: rrg-point .55s ease-out both, rrg-breathe 5.6s ease-in-out .55s infinite; }
.rrg-guide[data-state="celebrate"] .rrg-guide__figure { animation: rrg-celebrate .9s cubic-bezier(.18,.75,.22,1) both; }
.rrg-guide--paused .rrg-guide__figure { animation-play-state: paused !important; }
.rrg-guide-target { outline: 3px solid #e6a810 !important; outline-offset: 5px; transition: outline-color .2s; }
@keyframes rrg-breathe { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes rrg-point { 0% { transform: translateY(12px) scale(.94); opacity: .6; } 65% { transform: translateY(-8px) scale(1.03); opacity: 1; } 100% { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes rrg-celebrate { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-18px) rotate(-7deg); } 65% { transform: translateY(-8px) rotate(6deg); } 100% { transform: translateY(0) rotate(0); } }
@media (max-width: 700px) {
  .rrg-guide { right: 12px; bottom: 12px; }
  .rrg-guide__stage { display: block; width: min(360px, calc(100vw - 24px)); }
  .rrg-guide__bubble { width: 100%; max-height: min(52vh, 420px); margin: 0 0 8px; border-radius: 14px; padding: 16px; }
  .rrg-guide__bubble::after { display: none; }
  .rrg-guide__figure { margin-left: auto; width: 72px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .rrg-guide__figure { animation: none !important; transform: none !important; }
  .rrg-guide-target { transition: none; }
}
