/* ==========================================================================
   review.css: the steps in which a child tells the JJW team what they thought of a film (review.html).
   Phone (390) is the drawn layout. Tablet keeps it as a centred 560px column. Desktop (1100+) is the
   Watch-R-desktop board: the film paused at the left, one card at the right.
   Breakpoints: desktop 1100+, tablet 761-1099, phone 760 and narrower.
   ========================================================================== */

.rv {
  --red: #ec1c24;
  --blue: #0284ca;
  --blue-deep: #01639a;
  --err: #b3121a;
  --green: #2e9e5b;
  --green-soft: #e4f6ea;
  --focus: var(--blue-deep);
  position: relative;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100svh;
  background: var(--cream);
  color: var(--ink);
  font: 700 var(--body-max)/1.6 var(--font-body);
  overflow-x: clip;
}
.rv [hidden] { display: none !important; }
.rv .ico { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rv .rv-fill { fill: currentColor; stroke: none; }
.rv img.stk { max-width: none; }
.rv-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
body.review-page { background: var(--cream); }
.rv.sheet, #page > .rv.sheet:last-child { padding-bottom: 0; }

/* A focused task: on phone and tablet the site bar and dock step aside (the flow has its own header and a close button). */
.review-page .dock { display: none; }
@media (max-width: 1099px) { .review-page .bar { display: none; } }

.rv .btn { font-size: 16px; --btn-shadow: 5px; }
.rv .rv-small { height: 48px; padding: 0 8px; gap: 6px; font-size: 15px; border-width: 2px; --btn-shadow: 3px; }
.rv-linkbtn { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--ink); font: 700 16px/1 var(--font-display); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }

/* ---------- Header: logo, close, the three steps ---------- */
.rv-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo close" "steps steps";
  align-items: center; padding: 12px 16px 0;
}
.rv-logo { grid-area: logo; display: flex; align-items: center; width: 71px; height: 64px; line-height: 0; }
.rv-logo img { width: 71px; height: 40px; object-fit: contain; }
.rv-close {
  grid-area: close; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); color: var(--ink);
  text-decoration: none; transition: translate .15s ease;
}
.rv-close:hover { translate: 0 -2px; }
.rv-steps { grid-area: steps; list-style: none; margin: 10px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv-steps__item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rv-steps__item + .rv-steps__item::before { content: ""; position: absolute; left: -50%; width: 100%; top: 18px; height: 0; border-top: 3px dashed rgba(16, 36, 74, .3); }
.rv-steps__item:nth-child(2).is-reached::before { top: 17px; border-top: 4px solid var(--red); border-radius: 2px; }
.rv-steps__item:nth-child(3).is-reached::before { top: 17px; border-top: 4px solid var(--blue); border-radius: 2px; }
.rv-steps__dot {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid rgba(16, 36, 74, .35); color: var(--muted); font: 800 20px/1 var(--font-display);
}
.rv-steps__dot b { font-weight: 800; }
.rv-steps__dot .ico { display: none; stroke-width: 3.4; }
.rv-steps__label { display: block; margin-top: 8px; max-width: 96px; text-wrap: balance; font: 800 13px/1.15 var(--font-label); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rv-steps__item[data-step="2"] .rv-steps__label { max-width: 118px; }
.rv-steps__item.is-current .rv-steps__label { color: var(--ink); }
.rv-steps__item.is-current .rv-steps__dot { border-color: var(--ink); color: #fff; }
.rv-steps__item[data-step="1"].is-current .rv-steps__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(236, 28, 36, .28); }
.rv-steps__item[data-step="2"].is-current .rv-steps__dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(2, 132, 202, .28); }
.rv-steps__item[data-step="3"].is-current .rv-steps__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(246, 163, 19, .35); color: var(--ink); }
.rv-steps__item.is-done .rv-steps__dot { border-color: var(--ink); color: #fff; }
.rv-steps__item.is-done .rv-steps__dot b { display: none; }
.rv-steps__item.is-done .rv-steps__dot .ico { display: block; }
.rv-steps__item[data-step="1"].is-done .rv-steps__dot { background: var(--red); }
.rv-steps__item[data-step="2"].is-done .rv-steps__dot { background: var(--blue); }
.rv[data-step="thanks"] .rv-steps { margin-bottom: 0; }

/* ---------- Stage, card, panes ---------- */
.rv-stage { flex: 1; display: flex; flex-direction: column; }
.rv-card { flex: 1; display: flex; flex-direction: column; }
.rv-film { display: none; }
.rv-panes { flex: 1; display: flex; flex-direction: column; }
.rv-pane { display: flex; flex-direction: column; }
.rv-strip, .rv-faces, .rv-pane--face, .rv-pane--write, .rv-pane--grown { width: min(100% - 32px, 560px); margin-inline: auto; }
.rv-pane--face, .rv-pane--write, .rv-pane--grown { padding-bottom: 28px; }
.rv-pane--say, .rv-pane--thanks { flex: 1; }
.rv-title { margin: 0; font: 800 40px/.95 var(--font-display); letter-spacing: -.02em; }
.rv-title:focus { outline: none; }
.rv-title span { display: block; white-space: nowrap; }
.rv-lead { margin: 8px 0 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--muted); }
.rv-err { margin: 8px 0 0; font: 800 var(--body-max)/1.4 var(--font-body); color: var(--err); }
.rv-err:empty { display: none; }
.rv-note-s { margin: 8px 0 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--muted); }

/* The small strip: which film this is about */
.rv-strip { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 16px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.rv-strip__img { flex: none; width: 64px; height: 36px; border-radius: 8px; border: 2px solid var(--ink); object-fit: cover; display: block; }
.rv-strip__words { min-width: 0; }
.rv-strip__kind { font: 800 13px/1 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.rv-strip__title { margin-top: 3px; font: 800 16px/1.05 var(--font-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.rv-strip--big { padding: 8px 14px 8px 8px; border-radius: 18px; }
.rv-strip--big .rv-strip__img { width: 96px; height: 54px; border-radius: 10px; }
.rv-strip--big .rv-strip__kind { font-size: 14px; }
.rv-strip--big .rv-strip__title { font-size: 19px; }

/* ---------- Step 1: the face ---------- */
.rv-faces { margin-top: 22px; }
.rv-title--face { font-size: 38px; }
.rv-title--face { white-space: normal; }
.rv-q { margin: 20px 0 0; font: 800 20px/1.1 var(--font-display); }
.rv-facerow { display: flex; gap: 10px; margin-top: 16px; }
.rv-face {
  position: relative; flex: 1 1 0; min-width: 0; height: 148px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  border-radius: 22px; border: 2.5px solid var(--ink); background: var(--paper); box-shadow: 0 5px 0 var(--ink); color: var(--ink); cursor: pointer;
  transition: translate .2s ease; -webkit-tap-highlight-color: transparent;
}
.rv-face:hover { translate: 0 -4px; }
.rv-face img { width: 92px; height: 92px; display: block; }
.rv-face__word { font: 800 18px/1 var(--font-display); white-space: nowrap; }
.rv-face__tick { display: none; position: absolute; right: -6px; top: -8px; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--gold); border: 2px solid var(--cream); }
.rv-face__tick .ico { stroke-width: 3.8; }
.rv-face[aria-checked="true"] { background: var(--gold); }
.rv-face[aria-checked="true"] .rv-face__tick { display: flex; }

.rv-way { position: relative; display: block; height: 96px; margin-top: 46px; border-radius: 26px; border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); color: #fff; text-decoration: none; transition: translate .2s ease; }
.rv-way:hover { translate: 0 -4px; }
.rv-way--write { background: var(--red); }
.rv-way--say { background: var(--blue); }
.rv-way__name { position: absolute; left: 18px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; font: 800 31px/.95 var(--font-display); letter-spacing: -.02em; }
.rv-way__name span { display: block; white-space: nowrap; }
.rv-way__spark { position: absolute; fill: #fff; stroke: none; }
.rv-way__spark--a { left: 188px; top: 14px; opacity: .7; }
.rv-way__spark--b { left: 214px; top: 56px; opacity: .5; }
.rv-way__friend { position: absolute; right: 10px; top: -42px; width: 140px; height: 140px; pointer-events: none; }
.rv-justface { display: flex; justify-content: center; margin-top: 20px; }

/* ---------- Step 1: write a thought ---------- */
.rv-head { position: relative; height: 92px; margin-top: 10px; }
.rv-head .rv-title { padding-top: 22px; }
.rv-head__friend { position: absolute; z-index: 2; right: 10px; top: -34px; width: 136px; height: 136px; pointer-events: none; }
.rv-starters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.rv .rv-starter { height: 44px; padding: 0 16px; font-size: 15px; border-width: 2px; --btn-shadow: 3px; }
.rv-note {
  position: relative; z-index: 1; margin-top: 18px; border-radius: 20px; border: 2.5px solid var(--ink); background: var(--paper); box-shadow: 0 6px 0 var(--ink); overflow: hidden;
  --ml: 40px; --pl: 56px; --lh: 28px; --hole-x: 13px; --hole-y: 70px; --hole-gap: 80px; --hole: 11px;
}
.rv-note::before { content: ""; position: absolute; left: var(--ml); top: 0; bottom: 0; width: 1.5px; background: rgba(236, 28, 36, .4); }
.rv-note::after {
  content: ""; position: absolute; left: var(--hole-x); top: var(--hole-y); width: calc(var(--hole) + 2px); height: calc(var(--hole-gap) * 3); pointer-events: none;
  background: radial-gradient(circle at 50% calc(var(--hole) / 2 + 1px), var(--cream) calc(var(--hole) / 2 - .5px), rgba(16, 36, 74, .35) calc(var(--hole) / 2), rgba(16, 36, 74, .35) calc(var(--hole) / 2 + 1px), transparent calc(var(--hole) / 2 + 1.5px)) 0 0 / 100% var(--hole-gap) repeat-y;
}
.rv-note__page {
  position: relative; margin-top: 6px; padding: 0 16px 14px var(--pl);
  background-image: repeating-linear-gradient(to bottom, rgba(255, 253, 247, 0) 0, rgba(255, 253, 247, 0) calc(var(--lh) - 1px), rgba(2, 132, 202, .26) calc(var(--lh) - 1px), rgba(2, 132, 202, .26) var(--lh));
}
.rv-note__text {
  display: block; width: 100%; height: 196px; margin: 0; padding: 0; border: 0; border-radius: 0; resize: none; overflow-y: auto;
  background: transparent; color: var(--ink); font: 700 17px/var(--lh) var(--font-body); caret-color: var(--red);
}
.rv-note__text:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rv-note__text::placeholder { color: rgba(59, 77, 117, .55); }
.rv-sendrow { margin-top: 18px; }
.rv-privacy { display: flex; align-items: flex-start; gap: 10px; margin: 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--muted); }
.rv-privacy .ico { margin-top: 1px; stroke: var(--blue); stroke-width: 2.6; }
.rv .rv-next { display: flex; width: 100%; height: 56px; margin-top: 22px; }
.rv-also { display: flex; justify-content: center; margin-top: 8px; }
.rv-also[data-ready="no"] { visibility: hidden; }
.rv-also__link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font: 700 19px/1 var(--font-display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.rv-pane--write .rv-err { text-align: center; }
.rv-pane--face .rv-err { text-align: center; }

/* Desktop tabs (hidden below 1100) */
.rv-tabs { display: none; }

/* ---------- Step 1: leave a voice note ---------- */
.rv-say { position: relative; flex: 1; width: 100%; border-radius: 40px 40px 0 0; border: 3px solid var(--ink); border-bottom: 0; background: var(--blue); color: #fff; padding: 22px 16px 40px; --focus: #fff; }
.rv-say__head { position: relative; height: 110px; }
.rv-say__head .rv-title { padding-top: 8px; font-size: 38px; color: #fff; }
.rv-say__friend { position: absolute; right: -2px; top: -24px; width: 150px; height: 150px; pointer-events: none; }
.rv-say__spark { position: absolute; stroke: none; }
.rv-say__spark--a { left: 190px; top: 2px; opacity: .7; fill: var(--cream); }
.rv-say__spark--b { left: 214px; top: 44px; fill: var(--gold); }
/* The privacy note on the blue voice-note panel is a second paper pill, so it reads clearly. */
.rv-say__tip--privacy { display: block; width: fit-content; max-width: 100%; margin-top: 10px; }
.rv-say__tip { display: inline-block; margin: 14px 0 0; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); font: 700 var(--body-max)/1.4 var(--font-body); color: var(--ink); }
.rv-say__rec { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 18px 0; }
.rv-say__stage { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 170px; }
.rv-say__ring { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 3px solid rgba(255, 247, 232, .4); }
.rv-say__big {
  position: relative; display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 7.5px var(--ink), 0 8px 0 7.5px var(--ink-deep); -webkit-tap-highlight-color: transparent;
}
.rv-say__big:focus-visible { outline: 3px solid #fff; outline-offset: 14px; }
.rv-say__big:disabled { opacity: .7; cursor: default; }
.rv-say__big-ico { display: flex; align-items: center; justify-content: center; }
.rv-say__big-ico .ico { stroke-width: 2.2; }
.rv-say__big-ico .sq { display: block; width: 36px; height: 36px; border-radius: 9px; background: #fff; }
.rv-say__label { margin: 8px 0 0; font: 800 20px/1.05 var(--font-display); }
.rv-say__time { margin: 8px 0 0; font: 800 30px/1 var(--font-display); }
.rv-say__rec:not([data-mode="rec"]) .rv-say__time, .rv-say__rec:not([data-mode="rec"]) .rv-say__bars { visibility: hidden; }
.rv-say__bars { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; margin-top: 8px; }
.rv-say__bars i { display: block; flex: 0 0 5px; width: 5px; height: 6px; border-radius: 3px; background: var(--cream); opacity: .4; }
.rv-say__msg { margin: 10px 0 0; max-width: 300px; font: 700 var(--body-max)/1.5 var(--font-body); color: #fff; }
.rv-say__msg:empty { display: none; }
.rv-say__ready { margin: 18px 0; }
.rv-player { padding: 14px; border-radius: 22px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink-deep); color: var(--ink); }
.rv-player__bar { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink); }
.rv-player__play { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0 0 0 3px; border-radius: 50%; background: var(--blue); color: #fff; border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); cursor: pointer; }
.rv-player__play:focus-visible { outline-color: var(--blue-deep); }
.rv-player__time { flex: none; font: 800 19px/1 var(--font-display); }
.rv-player__msg { margin: 14px 2px 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--ink); }
.rv-player__btns { display: flex; gap: 10px; margin-top: 14px; }
.rv-player__btns .btn { flex: 1 1 0; min-width: 0; }
.rv-wave { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; height: 44px; }
.rv-wave i { display: block; flex: 0 0 5px; width: 5px; border-radius: 3px; background: rgba(16, 36, 74, .28); }
.rv-wave i.is-on { background: var(--blue); }
.rv-wave--small { height: 26px; margin-right: 6px; }
.rv-wave--small i { flex-basis: 4px; width: 4px; }
.rv .rv-next--say { margin-top: 0; border-color: var(--gold); --btn-shadow-color: var(--gold-deep); }
.rv-also--say { margin-top: 10px; }
.rv-also--say .rv-also__link { color: #fff; text-decoration-color: #fff; }
.rv-say__err { margin: 10px 0 0; color: #fff; font: 800 var(--body-max)/1.4 var(--font-body); text-align: center; }
.rv-say__err:empty { display: none; }

/* ---------- Step 2: a grown-up sends it ---------- */
.rv-pane--grown { position: relative; padding-top: 4px; }
.rv-navy { position: relative; height: 178px; border-radius: 32px; background: var(--ink); color: var(--cream); padding: 28px 18px 0; }
.rv-title--grown { font-size: 34px; line-height: .98; color: var(--cream); }
.rv-title--grown .gold { color: var(--gold); }
.rv-navy__spark { position: absolute; stroke: none; }
.rv-navy__spark--a { left: 228px; top: 24px; fill: var(--gold); }
.rv-navy__spark--b { left: 326px; top: 30px; fill: var(--cream); opacity: .5; }
.rv-grown__friend { position: absolute; right: -6px; top: -10px; z-index: 3; width: 176px; height: 176px; pointer-events: none; }
.rv-send { position: relative; z-index: 2; margin-top: -34px; border-radius: 26px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 6px 0 var(--ink); padding: 20px 16px; }
.rv-send__title { margin: 0 0 14px; font: 800 22px/1 var(--font-display); letter-spacing: -.01em; }
.rv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rv-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px; border-radius: 16px; background: var(--cream); border: 2px solid rgba(16, 36, 74, .18); }
.rv-row__ico { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); color: #fff; }
.rv-row__ico .ico { stroke-width: 2.6; }
.rv-row__ico--gold { background: var(--gold); }
.rv-row__ico--red { background: var(--red); }
.rv-row__ico--blue { background: var(--blue); }
.rv-row__ico img { width: 48px; height: 48px; display: block; }
.rv-row__face { font: 800 19px/1.1 var(--font-display); }
.rv-row__text { min-width: 0; flex: 1; font: 700 var(--body-max)/1.5 var(--font-body); color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-row__voice { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: 1; min-width: 0; }
.rv-row__dur { flex: none; font: 800 19px/1 var(--font-display); }
.rv-sum { margin: 14px 0 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--muted); }
.rv-signed { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-top: 20px; padding: 8px 14px 8px 12px; border-radius: 14px; background: var(--green-soft); border: 2px solid var(--green); }
.rv-signed__tick { display: flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; }
.rv-signed__tick .ico { stroke-width: 3.6; }
.rv-signed__title { display: block; font: 700 17px/1.1 var(--font-display); }
.rv-signed__who { display: block; margin-top: 4px; font: 800 var(--body-max)/1.4 var(--font-body); color: var(--muted); overflow-wrap: anywhere; }
.rv-verify { margin-top: 20px; padding: 14px 14px 16px; border-radius: 18px; border: 2px dashed rgba(16, 36, 74, .4); background: var(--paper); }
.rv-verify .rv-note-s { margin-top: 0; }
.rv-lbl { display: block; margin-top: 12px; font: 800 var(--body-max)/1.2 var(--font-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.rv-fld { display: block; width: 100%; height: 52px; margin-top: 8px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); font: 800 16px/1 var(--font-body); outline: none; -webkit-appearance: none; appearance: none; }
.rv-fld::placeholder { color: rgba(59, 77, 117, .7); font-weight: 700; }
.rv-fld:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rv-fld[aria-invalid="true"], .rv-tick__box[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 18, 26, .16); }
.rv-verify__btn { width: 100%; margin-top: 12px; }
.rv-verify__msg { min-height: 0; }
.rv-verify__msg:empty { display: none; }
.rv-tick { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 14px 14px 12px; border-radius: 18px; background: var(--cream); }
.rv-tick__box { -webkit-appearance: none; appearance: none; flex: 0 0 30px; width: 30px; height: 30px; margin: 0; padding: 0; border-radius: 9px; border: 2.5px solid var(--ink); background: var(--paper); cursor: pointer; }
.rv-tick__box:checked { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23f6a313' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat; }
.rv-tick__box:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rv-tick__text { margin: 0; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--muted); cursor: pointer; }
.rv .rv-submit { display: flex; width: 100%; height: 56px; margin-top: 20px; }
.rv-err--form { text-align: center; }

/* ---------- Step 3: thank you ---------- */
.rv-thanks { position: relative; flex: 1; margin-top: 24px; border-radius: 40px 40px 0 0; background: var(--gold); padding: 30px 16px 36px; text-align: center; }
.rv-thanks__in { position: relative; width: min(100%, 560px); margin-inline: auto; }
.rv-thanks__friend { position: relative; display: block; width: 250px; height: 250px; margin: 0 auto; }
.rv-thanks__title { position: relative; margin: 14px 0 0; font: 800 38px/.98 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.rv-thanks__title:focus { outline: none; }
.rv-thanks__title span { display: block; white-space: nowrap; }
.rv-thanks__text { position: relative; margin: 12px auto 0; max-width: 280px; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--ink); }
.rv-thanks__btns { position: relative; display: grid; gap: 12px; margin-top: 22px; }
.rv .rv-big { display: flex; width: 100%; height: 56px; }
.rv .rv-big--wrap { height: auto; min-height: 60px; padding: 10px 20px; white-space: normal; text-align: center; line-height: 1.1; }
.rv-thanks__note { position: relative; display: flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 12px 14px; border-radius: 18px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink); text-align: left; font: 700 var(--body-max)/1.6 var(--font-body); color: var(--ink); }
.rv-thanks__note .ico { stroke: var(--blue); stroke-width: 2.6; }
.rv-conf { position: absolute; width: 10px; height: 10px; border-radius: 3px; }
.rv-conf--1 { left: 58%; top: 18px; width: 12px; height: 12px; background: var(--red); transform: rotate(24deg); }
.rv-conf--2 { left: 85%; top: 34px; background: var(--blue); transform: rotate(-18deg); }
.rv-conf--3 { left: 92%; top: 92px; width: 9px; height: 9px; border-radius: 50%; background: var(--cream); }
.rv-conf--4 { left: 10%; top: 80px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.rv-conf--5 { left: 38%; top: 14px; background: var(--cream); transform: rotate(40deg); }
.rv-conf--6 { left: 5%; top: 150px; background: var(--red); transform: rotate(30deg); }
.rv-spk { position: absolute; stroke: none; }
.rv-spk--1 { left: 73%; top: 16px; fill: var(--cream); }
.rv-spk--2 { left: 5%; top: 14px; fill: var(--red); }
.rv-spk--3 { left: 95%; top: 168px; fill: var(--cream); }

/* ---------- Tablet: the phone layout as a centred 560 column ---------- */
@media (min-width: 761px) {
  .rv-top { grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); grid-template-areas: "logo steps close"; column-gap: 40px; padding: 20px 48px 0; }
  .rv-logo { width: 82px; height: 46px; }
  .rv-logo img { width: 82px; height: 46px; }
  .rv-close { width: 52px; height: 52px; justify-self: end; }
  .rv-steps { margin: 0 0 20px; }
  .rv-steps__item[data-step="2"] .rv-steps__label { max-width: 200px; }
  .rv .btn { font-size: 18px; }
  .rv .rv-small { font-size: 15px; }
  .rv .rv-starter { font-size: 15px; }
  .rv-say { margin-top: 28px; width: min(100% - 32px, 560px); margin-inline: auto; border-bottom: 3px solid var(--ink); border-radius: 40px; margin-bottom: 40px; flex: none; }
  .rv-pane--say { flex: none; }
  .rv-thanks__in { padding-bottom: 8px; }
}

/* ---------- Desktop: the film at the left, one card at the right ---------- */
@media (min-width: 1100px) {
  .rv { padding: calc(var(--nav-top) + var(--nav-h) + 28px) var(--gutter) 48px; }
  .rv-stage {
    position: relative; flex: none; width: 100%; max-width: var(--wrap); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 56px; align-items: center;
    padding: 40px 52px 44px 48px; border-radius: 56px; background: var(--ink);
  }
  .rv-stage::before, .rv-stage::after { content: ""; position: absolute; width: 20px; height: 20px; background: var(--gold); opacity: .8; clip-path: path("M10 0C11 7 14 9 20 10C14 11 11 14 10 20C9 14 6 11 0 10C6 9 9 6 10 0Z"); }
  .rv-stage::before { left: 40px; top: 28px; }
  .rv-stage::after { left: 110px; bottom: 50px; background: var(--cream); opacity: .5; }

  .rv-film { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; border-radius: 30px; overflow: hidden; border: 3px solid rgba(255, 247, 232, .4); background: var(--ink-deep); }
  .rv-film__img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .rv-film__dim { position: absolute; inset: 0; background: rgba(7, 22, 49, .66); }
  .rv-film__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; background: linear-gradient(to top, rgba(7, 22, 49, .95), rgba(7, 22, 49, 0)); }
  .rv-film__pill {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px 0 12px;
    border-radius: 999px; background: var(--paper); border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink-deep); color: var(--ink); font: 700 19px/1 var(--font-display); white-space: nowrap;
  }
  .rv-film__pause { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
  .rv-film__pause svg { fill: var(--ink); }
  .rv-film__cap { position: absolute; left: 30px; right: 30px; bottom: 26px; }
  .rv-film__kind { display: block; font: 800 17px/1 var(--font-label); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .rv-film__title { display: block; margin-top: 8px; font: 800 42px/1 var(--font-display); letter-spacing: -.02em; color: var(--cream); overflow-wrap: anywhere; }

  .rv-card { position: relative; flex: none; padding: 30px 32px 32px; border-radius: 32px; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 8px 0 var(--ink-deep); }
  .rv-top { display: block; padding: 0; }
  .rv-logo { display: none; }
  .rv-close { position: absolute; right: -14px; top: -14px; z-index: 5; width: 48px; height: 48px; }
  .rv-steps { margin: 0; }
  .rv-steps__label { max-width: none; font-size: 14px; }
  .rv-steps__item[data-step="2"] .rv-steps__label { max-width: none; }
  .rv-strip { display: none; }
  .rv-faces, .rv-pane--face, .rv-pane--write, .rv-pane--grown { width: 100%; }
  .rv-pane--face, .rv-pane--write, .rv-pane--grown { padding-bottom: 0; }
  .rv-faces { margin-top: 24px; }
  .rv-title--face { font-size: 42px; }
  .rv-lead { font-size: var(--body-max); }
  .rv-q { margin-top: 16px; }
  .rv-facerow { gap: 12px; margin-top: 12px; }
  .rv-face { height: 124px; padding: 6px 4px 8px; }
  .rv-face img { width: 76px; height: 76px; }
  .rv-way { height: 84px; margin-top: 40px; }
  .rv-way__name { font-size: 28px; }
  .rv-way__friend { top: -38px; width: 126px; height: 126px; }
  .rv-justface { margin-top: 14px; }

  .rv-tabs { display: flex; margin-top: 20px; border-bottom: 2px solid rgba(16, 36, 74, .15); }
  .rv-tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin: 0 0 -2px; padding: 0; background: transparent; border: 0; border-bottom: 4px solid rgba(2, 132, 202, .3); color: var(--muted); font: 700 19px/1 var(--font-display); cursor: pointer; }
  .rv-tab .ico { stroke-width: 2.6; }
  .rv-tab[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--red); }
  .rv-tab--say[aria-selected="true"] { border-bottom-color: var(--blue); }
  .rv-tab:focus-visible { outline-offset: -3px; }

  .rv-head, .rv-also { display: none; }
  .rv-starters { margin-top: 14px; gap: 8px; }
  .rv .rv-starter { height: 40px; min-height: 40px; padding: 0 12px; font-size: 14px; }
  .rv-note { margin-top: 12px; box-shadow: 0 5px 0 var(--ink); --ml: 42px; --pl: 60px; --hole-x: 14px; --hole-y: 36px; --hole-gap: 56px; }
  .rv-note__text { height: 112px; font-size: 18px; }
  .rv-sendrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
  .rv-privacy { max-width: 270px; font-size: var(--body-max); }
  .rv .rv-next { width: auto; flex: none; margin-top: 0; height: 56px; padding: 0 28px; }
  .rv-pane--write .rv-err, .rv-pane--face .rv-err { text-align: right; }

  .rv-pane--say { flex: none; margin-top: 16px; }
  .rv-say { margin: 0; width: 100%; border: 3px solid var(--ink); border-radius: 28px; padding: 18px 20px 22px; flex: none; }
  .rv-say__head { height: 0; }
  .rv-say__head > * { display: none; }
  .rv-say__tip { margin-top: 0; }
  .rv-say__rec { min-height: 270px; margin: 8px 0 16px; }
  .rv-say__ready { margin: 8px 0 16px; }
  .rv-say__stage { height: 150px; }
  .rv .rv-next--say { margin-top: 0; width: 100%; }
  .rv-also--say { display: none; }

  .rv-pane--grown { padding-top: 22px; }
  .rv-navy { height: 130px; border-radius: 26px; padding-top: 30px; }
  .rv-send { margin-top: 24px; border: 0; box-shadow: none; padding: 0 4px; background: transparent; }
  .rv-grown__friend { right: 30px; top: 6px; width: 170px; height: 170px; }
  .rv-navy__spark--a { left: 270px; }
  .rv-navy__spark--b { left: 340px; }

  .rv-pane--thanks { margin-top: 16px; }
  .rv-thanks { margin-top: 0; border-radius: 28px; padding: 24px 20px 28px; }
  .rv-thanks__friend { width: 200px; height: 200px; }
  .rv-thanks__title { font-size: 34px; }
  .rv-thanks__text { max-width: 330px; }
}

@media (max-width: 400px) {
  .rv-face__word { font-size: 17px; }
}
@media (max-width: 340px) {
  .rv-title { font-size: 34px; }
  .rv-title--face { font-size: 30px; }
  .rv-way__name { font-size: 26px; }
  .rv-way__friend { width: 110px; height: 110px; }
  .rv-thanks__title { font-size: 30px; }
  .rv-thanks__friend { width: 190px; height: 190px; }
  .rv-title--grown { font-size: 28px; }
  .rv-grown__friend { width: 130px; height: 130px; }
  .rv-say__friend { width: 120px; height: 120px; }
  .rv-face img { width: 72px; height: 72px; }
}

/* ---------- Motion (only when the site's motion switch is on) ---------- */
@keyframes rv-ring { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.04); opacity: .4; } }
@keyframes rv-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes rv-hop { 0% { translate: 0 0; } 40% { translate: 0 -8px; } 100% { translate: 0 0; } }
@keyframes rv-drop { from { opacity: 0; translate: 0 -16px; } to { opacity: 1; translate: 0 0; } }
@keyframes rv-pop { from { opacity: 0; scale: .9; translate: 0 18px; } to { opacity: 1; scale: 1; translate: 0 0; } }
html.motion .rv-say[data-rec="on"] .rv-say__ring { animation: rv-ring 1.6s ease-in-out infinite alternate; }
html.motion .rv-pane:not([hidden]) .rv-way__friend { animation: rv-bob 3.4s ease-in-out infinite; }
html.motion .rv-face.is-hop img { animation: rv-hop .4s ease-out; }
html.motion .rv-pane--thanks:not([hidden]) .rv-thanks__friend { animation: rv-pop .6s var(--ease-pop) both; }
html.motion .rv-pane--thanks:not([hidden]) .rv-conf { animation: rv-drop .8s ease-out both; }
html.calm .rv *, html.calm .rv *::before { animation: none !important; }
