/* Flash Read (recall) */
.g-recall { max-width: 560px; margin: 0 auto; padding: 4px 0 24px; }
.g-recall-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 6px;
}
.g-recall-dock {
  position: sticky; bottom: 0; z-index: 2; margin: 0 -4px; padding: 14px 4px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 22%);
}
.g-recall-timer { margin: 8px 0 0; }
.g-recall-timer .timer { margin: 6px 0 10px; }

/* ---- The case file (paper in a folder) ---- */
.g-recall-stage { position: relative; margin-bottom: 4px; padding-top: 14px; }
.g-recall-file {
  position: relative; margin: 0; padding: 22px 18px 20px;
  background-color: var(--card);
  background-image: linear-gradient(90deg, transparent 10px, var(--accent-soft) 10px 12px, transparent 12px);
  border: 1.5px solid var(--card-border); border-radius: 4px var(--radius) var(--radius) var(--radius);
  box-shadow: var(--shadow), 6px 6px 0 -1px var(--gold-soft), 6px 6px 0 0 var(--card-border);
  animation: g-recall-slide .35s cubic-bezier(.2, .8, .2, 1);
}
.g-recall-file::before {
  /* paper clip */
  content: ""; position: absolute; top: -10px; right: 26px; width: 14px; height: 34px;
  border: 2.5px solid var(--ink-3); border-radius: 8px; background: transparent;
}
.g-recall-tab {
  position: absolute; top: -13px; left: 14px; padding: 2px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  background: var(--accent); color: var(--accent-ink); transform: rotate(-2deg);
}
.g-recall-title {
  margin: 4px 0 10px; font-family: var(--font-display); font-size: 21px; line-height: 1.25; color: var(--ink);
}
.g-recall-text {
  margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink);
  font-family: var(--font-body);
}
.g-recall-hint { margin: 6px 0 0; font-size: 13.5px; text-align: center; }

@keyframes g-recall-slide { from { opacity: 0; transform: translateY(12px) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* ---- Shredder ---- */
.g-recall-shredder { position: absolute; inset: 0; pointer-events: none; }
.g-recall-strip {
  position: absolute; top: 14px; left: 0; right: 0; margin: 0; animation: g-recall-fall 1.1s cubic-bezier(.5, 0, .8, .4) var(--d, 0ms) forwards;
}
.g-recall-strip::before { display: none; }
@keyframes g-recall-fall {
  0% { transform: none; opacity: 1; }
  18% { transform: translateY(6px); opacity: 1; }
  100% { transform: translate(var(--x, 0), 140%) rotate(var(--r, 4deg)); opacity: 0; }
}
.g-recall-shred-label {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-6deg);
  padding: 8px 16px; border: 3px solid var(--accent); border-radius: 10px;
  font-family: var(--font-mono); font-weight: 800; font-size: 22px; letter-spacing: .12em; color: var(--accent);
  background: var(--surface); opacity: 0; animation: g-recall-stamp .35s ease .55s forwards;
}
@keyframes g-recall-stamp {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-6deg) scale(1.8); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-6deg) scale(1); }
}

/* ---- Questions ---- */
.g-recall-q { animation: g-recall-slide .3s cubic-bezier(.2, .8, .2, 1); }
.g-recall-banner {
  margin: 4px 0 10px; padding: 10px 14px; border-radius: var(--radius);
  background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 15px; line-height: 1.4;
  border: 1.5px dashed var(--blue);
}
.g-recall-question {
  margin: 6px 0 14px; font-family: var(--font-display); font-size: 22px; line-height: 1.3; color: var(--ink);
}
.g-recall-opts { display: grid; gap: 10px; }
.g-recall-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  text-align: left; font-size: 17px; line-height: 1.35; font-weight: 600; cursor: pointer;
  background: var(--card); color: var(--ink); border: 2px solid var(--card-border); border-radius: var(--radius);
  box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, border-color .15s ease, background-color .15s ease, opacity .2s ease;
}
.g-recall-opt:hover:not(:disabled) { border-color: var(--accent); }
.g-recall-opt:active:not(:disabled) { transform: scale(.98); }
.g-recall-opt:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.g-recall-opt:disabled { cursor: default; }
.g-recall-key {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700; background: var(--accent-soft); color: var(--accent);
}
.g-recall-opt.is-picked { border-color: var(--ink-2); }
.g-recall-opts:has(.is-right) .g-recall-opt:not(.is-right):not(.is-wrong) { opacity: .55; }
.g-recall-opt.is-right {
  border-color: var(--ok); background: var(--ok-soft);
  box-shadow: 0 0 0 4px var(--ok-soft), 0 0 18px var(--ok-soft);
}
.g-recall-opt.is-right .g-recall-key { background: var(--ok); color: var(--card); }
.g-recall-opt.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.g-recall-opt.is-wrong .g-recall-key { background: var(--bad); color: var(--card); }

.g-recall-after { margin-top: 14px; animation: g-recall-slide .3s ease; }
.g-recall-react { margin: 0 0 8px; font-weight: 800; font-size: 18px; }
.g-recall-react.is-good { color: var(--ok); }
.g-recall-react.is-bad { color: var(--bad); }
.g-recall-evidence {
  margin: 0 0 14px; padding: 10px 14px; border-left: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 12px 12px 0; font-size: 16px; line-height: 1.5; color: var(--ink);
}
.g-recall-evidence .label { display: block; margin-bottom: 2px; color: var(--ink-2); }
.g-recall-evidence q { font-style: italic; }

@media (min-width: 600px) {
  .g-recall-file { padding: 26px 26px 24px; }
  .g-recall-title { font-size: 24px; }
}
