/* First run (onboarding.js): welcome → favourites → vibes → quick checks → reveal, then
   coach marks on the first stack. Mobile first; the app stays underneath, untouched. */

html.first-run-open,
html.first-run-open body { overflow: hidden; }

.first-run { position: fixed; inset: 0; z-index: 45; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; color: var(--paper); background: var(--night); }
.first-run::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(rgba(255, 255, 255, .25) .55px, transparent .7px); background-size: 5px 5px; }
.fr-backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fr-ghost { position: absolute; right: -10vw; bottom: -6vh; color: rgba(239, 75, 63, .09); font: 400 min(96vw, 640px)/1 "Yu Mincho", "MS Mincho", serif; user-select: none; }

/* Header: the taste map ring, the percentage and the way out. */
.fr-head { position: relative; z-index: 2; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: max(12px, env(safe-area-inset-top)) max(16px, calc((100% - 1120px) / 2)) 12px; border-bottom: 1px solid var(--line); background: rgba(23, 23, 25, .92); }
.fr-ring { position: relative; flex: none; width: 52px; height: 52px; display: grid; place-items: center; }
.fr-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.fr-ring circle { fill: none; stroke-width: 3; }
.fr-ring-track { stroke: rgba(242, 238, 223, .16); }
.fr-ring-fill { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; transition: stroke-dashoffset .6s ease; }
.motion-on .fr-ring-fill { transition: none; }
.fr-ring b { position: relative; color: var(--paper); font: 400 21px/1 "Yu Mincho", "MS Mincho", serif; }
.fr-meter { min-width: 0; display: grid; gap: 4px; margin: 0; }
.fr-meter span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fr-meter b { color: var(--paper); font: 400 24px/1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.fr-meter i { font-style: normal; font-variant-numeric: tabular-nums; }
.fr-skip { min-height: 44px; padding: 0 2px; border: 0; color: #c9c5b9; background: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-decoration-color: rgba(242, 238, 223, .35); text-underline-offset: 6px; cursor: pointer; }
.fr-skip:hover { color: var(--paper); text-decoration-color: var(--red); }

/* Body: one step at a time, scrolls on its own. */
.fr-body { position: relative; z-index: 1; grid-row: 2; grid-column: 1; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 26px 16px 30px; }
.fr-step { position: relative; width: 100%; max-width: 1088px; margin: 0 auto; }
.fr-step[hidden] { display: none; }
.fr-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.fr-kicker span { font: 400 17px/1 "Yu Mincho", "MS Mincho", serif; letter-spacing: 0; }
.fr-kicker b { margin-left: auto; color: #a29e93; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.fr-title { max-width: 820px; font: 400 clamp(34px, 9.6vw, 58px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; overflow-wrap: anywhere; outline: none; }
.fr-title em { color: var(--red); }
.fr-lead { max-width: 580px; margin: 14px 0 0; color: #b8b4a9; font: italic 16px/1.55 Georgia, serif; }
.fr-loading { display: flex; align-items: center; gap: 14px; margin: 28px 0; color: #b8b4a9; font: italic 15px/1.4 Georgia, serif; }
.fr-loading span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); font: 400 24px/1 "Yu Mincho", serif; animation: fr-breathe 1.3s ease-in-out infinite alternate; }
@keyframes fr-breathe { to { transform: scale(.88); opacity: .45; } }
.fr-empty { margin: 26px 0; padding: 20px; border: 1px dashed rgba(242, 238, 223, .3); }
.fr-empty p { margin: 0; color: #c9c5b9; font: italic 15px/1.5 Georgia, serif; }
.fr-empty .fr-more { margin: 16px 0 0; }

/* Welcome */
.fr-welcome { padding-top: 4vh; }
.fr-welcome .fr-title { font-size: clamp(52px, 15.5vw, 118px); line-height: .9; letter-spacing: -.065em; }
.fr-plan { max-width: 780px; display: grid; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.fr-plan li { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 18px/1.3 Georgia, serif; }
.fr-plan b { color: var(--red); font: 800 11px/1 Arial, sans-serif; letter-spacing: .14em; }
.fr-time { margin: 18px 0 0; color: #8f8c83; font: italic 14px/1.5 Georgia, serif; }

/* Favourites */
.fr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; margin-top: 24px; }
.fr-tile { position: relative; min-width: 0; display: grid; align-content: start; gap: 8px; padding: 0; border: 0; color: var(--paper); background: none; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fr-tile-cover { position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden; background: var(--cover, #2b2a2c); box-shadow: 5px 5px 0 #080808; transition: box-shadow .2s; }
.fr-tile-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: filter .25s ease; user-select: none; }
.fr-tile-title { display: -webkit-box; overflow: hidden; color: #d5d1c5; font: 13px/1.3 Georgia, serif; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fr-tile:hover .fr-tile-cover img { filter: brightness(1.08); }
.fr-tile[aria-pressed="true"] .fr-tile-cover { box-shadow: 5px 5px 0 var(--red); }
.fr-tile[aria-pressed="true"] .fr-tile-cover img { filter: saturate(.7) brightness(.6); }
.fr-tile[aria-pressed="true"] .fr-tile-title { color: var(--paper); }
.fr-tile[aria-disabled="true"] { cursor: default; }
.fr-tile:focus-visible { outline: none; }
.fr-tile:focus-visible .fr-tile-cover { outline: 3px solid var(--paper); outline-offset: 3px; }
.fr-tile-stamp { --stamp: 66px; position: absolute; top: 50%; left: 50%; width: var(--stamp); height: var(--stamp); margin: calc(var(--stamp) / -2) 0 0 calc(var(--stamp) / -2); display: grid; place-items: center; align-content: center; gap: 2px; border: 3px solid var(--red); border-radius: 50%; color: var(--red); background: rgba(242, 238, 223, .93); box-shadow: 3px 3px 0 rgba(8, 8, 8, .45); opacity: 0; transform: rotate(-12deg) scale(1.3); transition: opacity .18s, transform .22s; pointer-events: none; }
.fr-tile-stamp b { font: 400 26px/1 "Yu Mincho", "MS Mincho", serif; }
.fr-tile-stamp small { font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.fr-tile[aria-pressed="true"] .fr-tile-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.motion-on .fr-tile-stamp { transition: opacity .18s; }
.fr-more { display: block; min-height: 44px; margin: 24px auto 0; padding: 0 20px; border: 1px solid rgba(242, 238, 223, .4); color: var(--paper); background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.fr-more:hover { border-color: var(--paper); }

/* What you watch for */
.fr-vibes { max-width: 880px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.fr-vibes button { position: relative; min-height: 124px; display: grid; justify-items: start; align-content: start; gap: 6px; padding: 14px; border: 1px solid rgba(242, 238, 223, .28); color: var(--paper); background: rgba(242, 238, 223, .03); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.fr-vibes i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border: 1px solid rgba(242, 238, 223, .35); border-radius: 50%; color: var(--paper); font: 400 22px/1 "Yu Mincho", "MS Mincho", serif; transition: background-color .2s, border-color .2s; }
.fr-vibes b { font: 400 19px/1.1 Georgia, serif; }
.fr-vibes small { color: #9d998e; font: italic 13px/1.35 Georgia, serif; }
.fr-vibes button:hover { border-color: rgba(242, 238, 223, .6); }
.fr-vibes button[aria-pressed="true"] { border-color: var(--paper); color: var(--ink); background: var(--paper); }
.fr-vibes button[aria-pressed="true"] i { border-color: var(--red); color: var(--paper); background: var(--red); }
.fr-vibes button[aria-pressed="true"] small { color: #6a665d; }

/* Quick checks */
.fr-check-layout { display: grid; gap: 18px; margin-top: 18px; }
.fr-card-slot { position: relative; min-height: 210px; }
.fr-card { position: relative; display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; padding: 14px; overflow: hidden; box-shadow: 8px 8px 0 #080808; }
.fr-card-cover { aspect-ratio: 2 / 3; overflow: hidden; background: var(--cover, #d4cdbb); }
.fr-card-cover img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; }
.fr-card-copy { min-width: 0; display: flex; flex-direction: column; padding: 2px 0; }
.fr-card-probe { margin: 0; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fr-card h3 { margin-top: 9px; font: 400 clamp(23px, 6.6vw, 42px)/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; overflow-wrap: anywhere; }
.fr-card-alt { margin: 6px 0 0; color: #6f6b62; font: italic 13px/1.35 Georgia, serif; overflow-wrap: anywhere; }
.fr-card-meta { margin: auto 0 0; padding-top: 12px; color: #6f6b62; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fr-card-tags { margin: 5px 0 0; color: #57534b; font: italic 13px/1.4 Georgia, serif; }
.fr-card-stamp { position: absolute; z-index: 2; top: 16px; right: 16px; display: grid; justify-items: center; gap: 2px; padding: 8px 12px 6px; border: 3px solid currentColor; border-radius: 8px; background: rgba(242, 238, 223, .92); box-shadow: 3px 3px 0 rgba(18, 18, 18, .18); opacity: 0; pointer-events: none; }
.fr-card-stamp b { font: 400 30px/1 "Yu Mincho", "MS Mincho", serif; }
.fr-card-stamp small { font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.fr-card-stamp.loved { color: var(--red); }
.fr-card-stamp.pass { color: var(--ink); }
.fr-card-stamp.unseen { color: #7d776b; }
.fr-card-stamp.shown { opacity: 1; transform: rotate(-8deg); }
.fr-map { padding-top: 16px; border-top: 1px solid var(--line); }
.fr-map-label { margin: 0; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.fr-note { min-height: 2.8em; margin: 8px 0 0; color: var(--paper); font: italic 18px/1.4 Georgia, serif; }
.fr-map-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-top: 8px; }
.fr-map-words span { --size: .5; display: inline-block; color: #d9d5c9; font: italic calc(13px + var(--size) * 14px)/1.25 Georgia, serif; }
.fr-map-words span:first-child { color: var(--red); }
.fr-map-words em { color: #8f8c83; font: italic 14px Georgia, serif; }
.fr-map-less { margin: 12px 0 0; color: #8f8c83; font-size: 12px; letter-spacing: .02em; }

/* Reveal */
.fr-reveal { display: grid; align-content: start; }
.fr-seal { width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; color: var(--paper); background: var(--red); box-shadow: 8px 8px 0 #080808; font: 400 60px/1 "Yu Mincho", "MS Mincho", serif; transform: rotate(-6deg); }
.fr-seal.long { font-size: 40px; letter-spacing: -.04em; }
.fr-themes { max-width: 540px; display: grid; gap: 12px; margin-top: 22px; }
.fr-theme { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr) 2.4em; align-items: center; gap: 12px; }
.fr-theme b { font: 400 17px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.fr-theme-bar { height: 6px; overflow: hidden; background: rgba(242, 238, 223, .14); }
.fr-theme-bar i { display: block; height: 100%; background: var(--red); transform: scaleX(var(--score, 0)); transform-origin: 0 50%; }
.fr-theme small { color: #8f8c83; font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.fr-stats { margin: 22px 0 0; color: #b8b4a9; font: italic 16px/1.5 Georgia, serif; }
.fr-stats b { color: var(--paper); font: 400 24px Georgia, serif; font-variant-numeric: tabular-nums; }

/* Footer: the step's action, then who is signed in and the way out. */
.fr-foot { position: relative; z-index: 2; grid-row: 3; padding: 12px 16px max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(23, 23, 25, .97); }
.fr-actions { width: 100%; max-width: 620px; margin: 0 auto; }
.fr-cta { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid var(--red); color: var(--paper); background: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.fr-cta:hover { border-color: #d93d32; background: #d93d32; }
.fr-cta.quiet { border-color: rgba(242, 238, 223, .45); background: transparent; }
.fr-cta.quiet:hover { border-color: var(--paper); background: rgba(242, 238, 223, .06); }
.fr-cta:disabled { cursor: progress; opacity: .7; }
.fr-hint, .fr-ready { margin: 0 0 9px; color: #b8b4a9; font: italic 14px/1.4 Georgia, serif; text-align: center; }
.fr-hint b { color: var(--paper); font-style: normal; }
.fr-ready { color: var(--paper); font-size: 17px; }
/* The answers are the shared reaction bar (decision.css): Not for me 否 · Not seen 未 · Loved it 好. */
.fr-answer:disabled { cursor: default; }
.fr-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; column-gap: 6px; margin: 4px 0 0; color: #8f8c83; font-size: 12px; text-align: center; }
.fr-account b { max-width: 16ch; overflow: hidden; color: #c9c5b9; text-overflow: ellipsis; white-space: nowrap; }
.fr-account button { min-width: 44px; min-height: 44px; padding: 0 6px; border: 0; color: var(--paper); background: none; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.first-run button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.first-run .fr-cta:focus-visible { outline-color: var(--paper); }
.fr-title:focus-visible { outline: none; }

/* "One step closer": sits over the body only, so skip and sign out stay in reach. */
.fr-milestone { position: relative; z-index: 3; grid-row: 2; grid-column: 1; display: grid; place-content: center; justify-items: center; gap: 4px; padding: 24px; text-align: center; background: rgba(23, 23, 25, .95); cursor: pointer; }
.fr-milestone[hidden] { display: none; }
.fr-milestone-kanji { width: 128px; height: 128px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 50%; color: var(--paper); background: var(--red); box-shadow: 8px 8px 0 #080808; font: 400 70px/1 "Yu Mincho", "MS Mincho", serif; transform: rotate(-6deg); }
.fr-milestone strong { font: 400 60px/1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.fr-milestone strong i { font-style: normal; font-variant-numeric: tabular-nums; }
.fr-milestone p { max-width: 320px; margin: 8px 0 0; color: #c9c5b9; font: italic 18px/1.45 Georgia, serif; }

/* Picked covers fly into the ring. */
.fr-flyer { position: fixed; top: 0; left: 0; z-index: 6; object-fit: cover; pointer-events: none; box-shadow: 4px 4px 0 #080808; }

@media (min-width: 560px) {
    .fr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fr-vibes button { min-height: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 3px; align-items: center; padding: 16px; }
    .fr-vibes i { grid-row: 1 / 3; margin: 0; }
    .fr-vibes b { align-self: end; }
    .fr-vibes small { align-self: start; }
}

@media (min-width: 761px) {
    .fr-body { padding: 40px 32px 40px; }
    .fr-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fr-plan li { padding: 18px 16px 18px 0; }
    .fr-plan li + li { padding-left: 16px; border-left: 1px solid var(--line); }
    .fr-vibes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
    .fr-card { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px; }
    .fr-reveal { grid-template-columns: auto minmax(0, 1fr); column-gap: 44px; }
    .fr-reveal > :not(.fr-seal) { grid-column: 2; }
    .fr-seal { grid-row: 1 / span 6; width: 200px; height: 200px; margin: 6px 0 0; font-size: 108px; }
    .fr-seal.long { font-size: 72px; }
    .fr-foot { padding-top: 16px; }
    /* Short pages sit in the middle of a wide screen instead of hanging from the top. */
    .first-run[data-step="welcome"] .fr-body, .first-run[data-step="reveal"] .fr-body { display: grid; align-content: center; }
    .fr-welcome { padding-top: 0; }
}

@media (min-width: 960px) {
    .fr-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 18px; }
    .fr-tile-stamp { --stamp: 84px; }
    .fr-tile-stamp b { font-size: 32px; }
    .fr-check-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; gap: 36px; }
    .fr-map { padding: 6px 0 0 26px; border-top: 0; border-left: 1px solid var(--line); }
}

/* Wide screens: the copy stands to the left of the covers, so both rows fit without scrolling. */
@media (min-width: 1100px) {
    .fr-picks { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); grid-template-rows: repeat(4, auto) 1fr; column-gap: 52px; align-items: start; }
    .fr-picks > :not(.fr-grid) { grid-column: 1; }
    .fr-picks .fr-title { font-size: 46px; }
    .fr-picks .fr-grid { grid-column: 2; grid-row: 1 / span 5; max-width: 820px; margin-top: 0; }
    .fr-picks .fr-more { justify-self: start; margin: 26px 0 0; }
}

@media (max-height: 700px) and (min-width: 761px) {
    .fr-body { padding-top: 24px; }
    .fr-welcome { padding-top: 0; }
}

/* ---------- The "Finish calibration" prompt (Tonight and the notebook) ---------- */

.fr-resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; margin: 0 0 18px; border: 1px solid rgba(239, 75, 63, .6); background: rgba(239, 75, 63, .08); }
.fr-resume-go { min-width: 0; min-height: 64px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 0; color: var(--paper); background: transparent; text-align: left; cursor: pointer; }
.fr-resume-go:hover { background: rgba(239, 75, 63, .12); }
.fr-resume .fr-ring { width: 42px; height: 42px; }
.fr-resume .fr-ring b { font-size: 17px; }
.fr-resume-copy { min-width: 0; }
.fr-resume-copy b, .fr-resume-copy small { display: block; }
.fr-resume-copy b { font: 400 17px/1.2 Georgia, serif; }
.fr-resume-copy small { margin-top: 3px; color: #b8b4a9; font-size: 12px; line-height: 1.35; }
.fr-resume-arrow { color: var(--red); font: 400 22px/1 Georgia, serif; }
.fr-resume-close { width: 48px; border: 0; border-left: 1px solid rgba(239, 75, 63, .35); color: #b8b4a9; background: none; font-size: 22px; cursor: pointer; }
.fr-resume-close:hover { color: var(--paper); }
.fr-resume button:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
.fr-resume-notebook { width: 100%; min-height: 44px; margin-top: 14px; padding: 0 14px; border: 0; color: var(--paper); background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.fr-resume-notebook:hover { background: var(--red); }
.fr-resume-notebook:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- Coach marks on the first stack ---------- */

.fr-coach { position: absolute; z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 16px 16px 10px; color: var(--ink); background: var(--paper); box-shadow: 7px 7px 0 #080808; }
.fr-coach::before { content: ''; position: absolute; left: var(--arrow, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--paper); transform: rotate(45deg); }
.fr-coach.below::before { top: -7px; }
.fr-coach.above::before { bottom: -7px; }
.fr-coach.inside::before { display: none; }
.fr-coach-step { margin: 0; color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.fr-coach h3 { margin-top: 6px; font: 400 22px/1.1 Georgia, serif; letter-spacing: -.02em; }
.fr-coach p:not(.fr-coach-step) { margin: 6px 0 0; color: #57534b; font: 14px/1.5 Georgia, serif; }
.fr-coach-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.fr-coach-actions button { min-height: 44px; padding: 0 14px; border: 0; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.fr-coach-next { color: var(--paper); background: var(--ink); }
.fr-coach-next:hover { background: var(--red); }
.fr-coach-skip { padding-left: 0 !important; color: #6f6b62; background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.fr-coach button:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.fr-coach-target { outline: 2px solid var(--red); outline-offset: 6px; }

/* The swipe hint: a dashed ghost of a card and a fingertip, over the real stack. */
.fr-has-ghost { position: relative; }
.fr-coach-ghost { position: absolute; z-index: 12; top: 0; right: 0; left: 0; display: grid; place-items: center; overflow: hidden; pointer-events: none; }
.fr-ghost-card { position: relative; width: min(56%, 250px); aspect-ratio: 3 / 4; border: 2px dashed rgba(18, 18, 18, .45); background: rgba(242, 238, 223, .42); box-shadow: 8px 8px 0 rgba(8, 8, 8, .3); visibility: hidden; opacity: 0; }
.fr-ghost-finger { position: absolute; top: calc(50% - 22px); left: calc(50% - 22px); width: 44px; height: 44px; border: 3px solid var(--red); border-radius: 50%; background: rgba(242, 238, 223, .75); box-shadow: 0 0 0 8px rgba(239, 75, 63, .18); visibility: hidden; opacity: 0; }
.fr-ghost-stamp { position: absolute; top: 14px; left: 50%; display: grid; justify-items: center; gap: 2px; padding: 6px 12px 5px; margin-left: -40px; min-width: 80px; border: 3px solid currentColor; border-radius: 8px; background: rgba(242, 238, 223, .9); color: var(--red); visibility: hidden; opacity: 0; }
.fr-ghost-stamp.left { color: var(--ink); }
.fr-ghost-stamp.up { color: #7a6a48; }
.fr-ghost-stamp b { font: 400 24px/1 "Yu Mincho", "MS Mincho", serif; }
.fr-ghost-stamp small { font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.fr-ghost-arrow { position: absolute; padding: 6px 10px; color: var(--paper); background: rgba(18, 18, 18, .82); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fr-ghost-arrow.left { top: 46%; left: 10px; }
.fr-ghost-arrow.right { top: 46%; right: 10px; }
.fr-ghost-arrow.up { top: 12px; left: 50%; transform: translateX(-50%); }

/* Without motion the hint is a still diagram: card, fingertip and the three directions. */
.fr-coach-ghost.still .fr-ghost-card, .fr-coach-ghost.still .fr-ghost-finger { visibility: visible; opacity: 1; }
.fr-coach-ghost.still .fr-ghost-card { border-color: rgba(242, 238, 223, .7); background: rgba(242, 238, 223, .1); box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
    .fr-ring-fill, .fr-tile-stamp, .fr-tile-cover, .fr-tile-cover img, .fr-vibes button, .fr-vibes i { transition: none; }
    .fr-loading span { animation: none; }
}
