/* The resting guide belongs to the answer card. The moving panel is disposable. */
.rr-reaction {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  margin-block: 8px 0;
  isolation: isolate;
}
.rr-guide {
  object-fit: contain;
  height: 65px;
  width: 78px;
  flex: none;
}
.rr-speech {
  position: relative;
  display: inline-block;
  margin-left: 3px;
  padding: 6px 14px 7px;
  background: #fff7dc;
  color: #171717;
  font: 850 15px/1.25 system-ui, sans-serif;
  transform: rotate(-2deg);
  clip-path: polygon(6% 6%,100% 0,96% 91%,17% 100%,0 91%,6% 68%);
}
.rr-reaction--quiet:has(.rr-guide:only-child) {
  min-height: 44px;
}
.rr-reaction--quiet .rr-guide {
  height: 49px;
  width: 59px;
}
.rr-reaction--bold {
  min-height: 68px;
  padding-inline: 8px;
}
.rr-reaction--bold::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 22% 1% 8% 0;
  background: repeating-linear-gradient(-24deg, #df283b 0 3px, #a21831 4px 7px);
  clip-path: polygon(0 36%,39% 17%,36% 28%,93% 0,88% 23%,100% 18%,87% 65%,94% 56%,64% 84%,69% 69%,0 100%,4% 74%);
}
.rr-reaction--bold .rr-guide {
  height: 76px;
  width: 90px;
}
.rr-reaction--bold .rr-speech {
  background: #ffde45;
  font-size: 19px;
}
.rr-cutin {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  --rift-ink: #f82b3e;
  --duration: 720ms;
  animation: rr-clear var(--duration) linear both;
}
.rr-cutin--summit { --rift-ink: #26f2ef; --duration: 960ms; }
.rr-cutin-rift {
  position: absolute;
  inset: 29% -8% 27%;
  background: var(--rift-ink);
  clip-path: polygon(0 58%,41% 28%,37% 36%,100% 0,98% 23%,100% 39%,62% 75%,67% 63%,0 100%,3% 81%);
  transform-origin: center;
  animation: rr-open var(--duration) cubic-bezier(.16,.88,.23,1) both;
}
.rr-cutin-rift::before {
  content: "";
  position: absolute;
  inset: 4% 0;
  background:
    repeating-linear-gradient(-18deg, transparent 0 13px, #f4444f 14px 15px, transparent 16px 32px),
    linear-gradient(-12deg,#0c1015 34%,#8a1223 34% 55%,#230c17 55%);
  clip-path: inherit;
}
.rr-cutin-action {
  position: absolute;
  inset: 33% max(4vw, calc(50vw - 400px)) 31%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.rr-cutin-guide {
  width: min(45vw, 270px);
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(4px 0 #fff5e1) drop-shadow(-2px -2px #171313);
  animation: rr-guide-entry var(--duration) cubic-bezier(.12,.89,.23,1) both;
}
.rr-cutin-quote {
  white-space: nowrap;
  padding: 7px 8px;
  font: 1000 clamp(16px,5vw,52px)/1.08 system-ui,sans-serif;
  color: #191619;
  background: #ffdf42;
  transform: rotate(-7deg);
  box-shadow: -5px 6px #141218;
  animation: rr-quote-entry var(--duration) both;
}
.rr-flying-shades {
  position: absolute;
  top: 26%;
  left: 15%;
  width: clamp(95px,22vw,150px);
  height: clamp(32px,6vw,55px);
  background: #ffec80;
  clip-path: polygon(0 10%,44% 0,48% 16%,54% 12%,58% 0,100% 5%,93% 84%,68% 100%,56% 69%,49% 41%,44% 66%,29% 100%,8% 86%);
  animation: rr-fly var(--duration) cubic-bezier(.17,.74,.51,1) both;
}
.rr-flying-shades span {
  position: absolute;
  inset: 8% 5% 12%;
  padding: 1px 6%;
  background: #171717;
  clip-path: inherit;
  color: #75fff5;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transform: skewX(-7deg);
  font: 900 clamp(12px,2vw,18px)/1.6 system-ui,sans-serif;
}
@keyframes rr-clear { 0%,84% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rr-open {
  0% { transform: skewY(-7deg) scaleY(.015); }
  20%,77% { transform: skewY(-3deg) scaleY(1); }
  100% { transform: skewY(-6deg) scaleY(.02); }
}
@keyframes rr-guide-entry {
  0% { transform: translate(-62%,-2%) rotate(-11deg); opacity: 0; }
  22%,79% { transform: translate(0) rotate(-4deg); opacity: 1; }
  100% { transform: translate(12%,-10%) rotate(-6deg); opacity: 0; }
}
@keyframes rr-quote-entry {
  0%,15% { opacity: 0; transform: translateX(18%) rotate(-9deg) scale(.9); }
  30%,100% { opacity: 1; transform: translateX(0) rotate(-7deg) scale(1); }
}
@keyframes rr-fly {
  0%,14% { opacity: 0; transform: translate(-8%,25%) rotate(-9deg); }
  26%,44% { opacity: 1; transform: translate(0,0) rotate(-9deg); }
  80%,100% { opacity: 0; transform: translate(85%,-190%) rotate(27deg); }
}
@media (prefers-reduced-motion: reduce) {
  .rr-cutin { display: none; animation: none; }
  .rr-cutin * { animation: none; }
}

body:has(.rr-cutin) .rr-reaction { visibility: hidden; }

.guide-intro {
  border-left: 4px solid var(--red);
  margin: 18px 0 22px;
  padding: 3px 0 3px 12px;
}
.guide-intro b, .guide-brief b {
  background:var(--accent); color:var(--ink); padding:1px 5px; font-weight:850; font-size:13px;
}
.guide-intro p { font-size:16px; line-height:1.55; margin:3px 0 0; }
.guide-brief {
  display:flex; gap:9px; align-items:center; margin:13px 0 14px;
}
.guide-brief img {
  width:56px; height:56px; flex:0 0 56px; object-fit:contain;
  filter:drop-shadow(1px 1px #faebc9);
}
.guide-brief .question-rule {margin:2px 0 0; line-height:1.45; font-size:14px;}
.guide-hint { margin:4px 0 0; font-size:13px; }
.guide-hint summary { cursor:pointer; color:#a5112c; padding:4px 0; width:max-content; }
.guide-hint p { margin:3px 0; color:var(--ink); line-height:1.5; }
