/* NIICHI — N5 গ্রামার রিভিশন (/revision). Standalone page in the white-clay look of the revision videos.
   Colours and fonts only from the tokens in /theme-revision-clay.css. Mobile first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.rv { margin: 0; background: var(--rc-page); color: var(--rc-ink); font: 500 17px/1.6 var(--rc-font-bn); -webkit-font-smoothing: antialiased; }
:where(.rv) [lang='ja'], :where(.rv) .jp { font-family: var(--rc-font-jp); font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
:where(.rv) a { color: inherit; }
:where(.rv) button { font: inherit; color: inherit; }
.rv h1, .rv h2, .rv h3 { margin: 0; line-height: 1.15; font-weight: 700; }
.rv p { margin: 0; }
.rv-red { color: var(--rc-red); }
.rv-g { color: var(--rc-red); font-weight: 700; }
.rv-muted { color: var(--rc-muted); }
.rv-boot { min-height: 70vh; display: grid; place-items: center; }
.rv-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--rc-clay-3); border-top-color: var(--rc-red); animation: rv-spin .8s linear infinite; }
@keyframes rv-spin { to { transform: rotate(360deg); } }
@keyframes rv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rv-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes rv-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ─── Top bar ─────────────────────────────────────────────────── */
.rv-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.rv-top-in { max-width: 720px; margin: 0 auto; height: 56px; padding: 0 16px; display: flex; align-items: center; gap: 12px; }
.rv-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 800 17px/1 var(--rc-font-latin); letter-spacing: .02em; }
.rv-brand img { width: 30px; height: 30px; }
.rv-top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.rv-who { font-size: 13px; color: var(--rc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.rv-link { border: 0; background: none; padding: 8px 4px; font-weight: 600; color: var(--rc-ink); cursor: pointer; text-decoration: none; }
.rv-top.on-red { background: var(--rc-red); color: #fff; backdrop-filter: none; }
.rv-top.on-red .rv-link, .rv-top.on-red .rv-who { color: #fff; }

/* ─── Clay parts ──────────────────────────────────────────────── */
.rv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 26px; border: 0; border-radius: var(--rc-r-pill);
  background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); color: var(--rc-ink); font: 700 18px/1.2 var(--rc-font-bn); text-decoration: none; cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease; -webkit-tap-highlight-color: transparent; }
.rv-btn:active:not(:disabled) { transform: translateY(2px) scale(.99); box-shadow: var(--rc-press); }
.rv-btn:disabled { opacity: .45; cursor: default; }
.rv-btn-red { background: var(--rc-red-face); color: #fff; box-shadow: var(--rc-red-shadow); }
.rv-btn-block { display: flex; width: 100%; }
.rv-btn-sm { min-height: 44px; padding: 8px 18px; font-size: 16px; }
.rv-btn:focus-visible, .rv-tile:focus-visible, .rv-slot:focus-visible { outline: 3px solid var(--rc-red); outline-offset: 3px; }

.rv-card { background: var(--rc-clay-face); border-radius: var(--rc-r-card); box-shadow: var(--rc-clay-shadow-lg); padding: 22px; }
.rv-pill { display: inline-block; padding: 14px 24px; border-radius: 32px; background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); }
.rv-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: var(--rc-r-pill); font-size: 13px; font-weight: 700; background: var(--rc-clay-2); color: var(--rc-clay-ink); }
.rv-chip.free { background: var(--rc-sage); color: var(--rc-sage-ink); }
.rv-chip.lock { background: var(--rc-red-soft); color: var(--rc-red); }
.rv-chip.done { background: #FBF1D3; color: #7A5E12; }

/* Tile = a clay word block, like the video's word tiles */
.rv-tile { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 10px 20px; border: 0; border-radius: var(--rc-r-tile);
  background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); color: var(--rc-clay-ink); font: 700 24px/1.3 var(--rc-font-jp); text-align: left;
  cursor: pointer; transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease; -webkit-tap-highlight-color: transparent; }
.rv-tile:active:not(:disabled) { transform: translateY(2px); box-shadow: var(--rc-press); }
.rv-tile:disabled { cursor: default; }
.rv-tile.right { background: var(--rc-sage); color: var(--rc-sage-ink); box-shadow: 0 0 0 2px var(--rc-sage-edge) inset, var(--rc-clay-shadow); animation: rv-pop 320ms ease; }
.rv-tile.wrong { background: var(--rc-rose); color: var(--rc-rose-ink); box-shadow: 0 0 0 2px var(--rc-rose-edge) inset, var(--rc-clay-shadow); }
.rv-tile.dim { opacity: .45; }
.rv-tile.used { opacity: .25; box-shadow: var(--rc-press); }
.rv-tile .rv-mk { font: 900 20px/1 var(--rc-font-latin); }
.rv-tile .rv-n { font: 700 13px/1 var(--rc-font-latin); color: var(--rc-muted); min-width: 14px; }
.rv-tile.right .rv-n, .rv-tile.wrong .rv-n { color: inherit; }

/* Stamp: brush kanji in red */
.rv-stamp { font-family: var(--rc-font-brush); color: var(--rc-red); line-height: 1; display: inline-block; }

/* Hand-drawn red underline under a heading */
.rv-u { display: block; width: 132px; height: 16px; margin: 10px auto 0; }
.rv-u path { fill: none; stroke: var(--rc-red); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: rv-draw 600ms 120ms ease forwards; }
.rv-u.left { margin-left: 0; }
@keyframes rv-draw { to { stroke-dashoffset: 0; } }

/* ─── Course page ─────────────────────────────────────────────── */
.rv-hero { position: relative; background: var(--rc-red); color: #fff; text-align: center; padding: 34px 20px 0; }
.rv-hero-kicker { display: inline-block; font: 700 14px/1 var(--rc-font-bn); letter-spacing: .04em; padding: 8px 14px; border-radius: var(--rc-r-pill); background: rgba(255, 255, 255, .16); }
.rv-hero h1 { font-size: 46px; line-height: 1.08; margin: 18px 0 10px; letter-spacing: -.01em; }
.rv-hero-sub { font-size: 18px; font-weight: 600; opacity: .95; max-width: 30ch; margin: 0 auto; }
.rv-hero-art { position: relative; max-width: 520px; margin: 18px auto 0; height: 190px; }
.rv-hero-art img { position: absolute; left: 50%; bottom: -150px; width: 112%; max-width: 580px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .02)); }
.rv-hero-after { height: 170px; }
.rv-hero-stamp { position: absolute; right: 6px; top: -16px; font-size: 76px; color: #fff; transform: rotate(-6deg); text-shadow: 0 2px 0 rgba(0, 0, 0, .06); }

.rv-wrap { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.rv-cta { display: grid; gap: 14px; margin: 8px 0 0; }
.rv-cta-note { text-align: center; color: var(--rc-muted); font-size: 15px; }
.rv-ok { text-align: center; color: var(--rc-sage-ink); font-weight: 700; }

.rv-sec { margin-top: 72px; }
.rv-h2 { text-align: center; color: var(--rc-red); font-size: 30px; }
.rv-h2-sub { text-align: center; font-weight: 600; font-size: 18px; margin-top: 10px; }
.rv-sec-body { margin-top: 28px; }

.rv-demo { position: relative; padding: 30px 18px 28px; margin-top: 52px; }
.rv-demo-say { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.rv-demo-say .rv-pill { font: 700 26px/1.35 var(--rc-font-jp); color: var(--rc-ink); }
.rv-demo-say small { font-weight: 600; font-size: 17px; padding-left: 14px; }
.rv-demo-stamp { position: absolute; right: 10px; top: -46px; font-size: 96px; transform: rotate(-6deg); }
.rv-demo-say .rv-pill { max-width: calc(100% - 40px); }
.rv-demo-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px 0 18px; }
.rv-demo-tiles .rv-tile { cursor: default; font-size: 26px; min-height: 64px; padding: 8px 18px; }
.rv-demo-rule { text-align: center; font-weight: 700; font-size: 21px; }

.rv-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; padding: 0; list-style: none; }
.rv-step { padding: 18px 16px; border-radius: var(--rc-r-tile); background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); }
.rv-step b { display: block; color: var(--rc-red); font-size: 19px; }
.rv-step span { display: block; font-size: 15px; line-height: 1.45; color: var(--rc-clay-ink); margin-top: 4px; }
.rv-step i { font: 400 30px/1 var(--rc-font-brush); color: var(--rc-red); font-style: normal; display: block; margin-bottom: 6px; }

.rv-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.rv-nums b { display: block; font: 900 44px/1 var(--rc-font-latin); color: var(--rc-red); }
.rv-nums span { display: block; font-weight: 600; font-size: 15px; margin-top: 6px; }

.rv-cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; margin-top: 26px; }
.rv-cast img { width: 64px; height: auto; display: block; margin: 0 auto 8px; animation: rv-bob 3.2s ease-in-out infinite; }
.rv-cast > div:nth-child(2) img { animation-delay: -.8s; }
.rv-cast > div:nth-child(3) img { animation-delay: -1.6s; }
.rv-cast > div:nth-child(4) img { animation-delay: -2.4s; }
.rv-cast b { display: block; font-size: 16px; }
.rv-cast span { display: block; font-size: 13px; color: var(--rc-muted); line-height: 1.35; }

.rv-lessons { display: grid; gap: 16px; margin-top: 28px; }
.rv-lrow { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--rc-r-tile);
  background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); text-decoration: none; transition: transform 160ms ease; }
a.rv-lrow:active { transform: translateY(2px); box-shadow: var(--rc-press); }
.rv-lrow.soon { background: var(--rc-page); box-shadow: 0 0 0 1.5px var(--rc-line) inset; }
.rv-lrow.soon .rv-stamp { color: var(--rc-clay-3); }
.rv-lrow .rv-stamp { font-size: 46px; text-align: center; }
.rv-lmeta { min-width: 0; }
.rv-lno { font-size: 13px; font-weight: 700; color: var(--rc-muted); letter-spacing: .04em; }
.rv-ltitle { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; }
.rv-lpts { display: block; font-size: 14px; color: var(--rc-clay-ink); line-height: 1.5; margin: 2px 0 6px; overflow-wrap: anywhere; }
.rv-lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-small { font-size: 14px; color: var(--rc-muted); text-align: center; margin-top: 16px; }

.rv-buy { position: relative; margin-top: 72px; padding: 30px 22px 26px; border-radius: 32px; background: var(--rc-red); color: #fff; box-shadow: var(--rc-red-shadow); scroll-margin-top: 72px; overflow: hidden; }
.rv-buy-stamp { position: absolute; right: -6px; top: -14px; font-size: 128px; color: rgba(255, 255, 255, .12); transform: rotate(-8deg); }
.rv-buy-k { font-weight: 700; font-size: 15px; opacity: .9; }
.rv-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 4px; }
.rv-price b { font: 900 60px/1 var(--rc-font-latin); }
.rv-price span { font-size: 18px; font-weight: 700; }
.rv-buy-what { font-size: 16px; opacity: .95; }
.rv-buy ol { margin: 20px 0 22px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.rv-buy li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; }
.rv-buy li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--rc-red); font: 800 14px/1 var(--rc-font-latin); }
.rv-bkash { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 2px; padding: 10px 12px 10px 16px; border-radius: 18px; background: rgba(255, 255, 255, .14); }
.rv-bkash b { font: 800 20px/1.2 var(--rc-font-latin); letter-spacing: .02em; }
.rv-bkash small { display: block; font-size: 12px; opacity: .85; }
.rv-buy .rv-btn { background: var(--rc-clay-face); color: var(--rc-red); }
.rv-buy .rv-btn-ghost { background: transparent; color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6) inset; }
.rv-buy-btns { display: grid; gap: 12px; }
.rv-code { display: grid; gap: 10px; margin-top: 16px; }
.rv-code label { font-size: 14px; font-weight: 600; }
.rv-input { width: 100%; min-height: 54px; padding: 12px 18px; border: 0; border-radius: 18px; background: #fff; color: var(--rc-ink); font: 700 17px/1.2 var(--rc-font-latin); letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--rc-press); }
.rv-input:focus { outline: 3px solid rgba(255, 255, 255, .7); }
.rv-msg { margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; font-weight: 600; font-size: 15px; animation: rv-in 220ms ease; }
.rv-msg.ok { background: var(--rc-sage); color: var(--rc-sage-ink); }
.rv-msg.err { background: var(--rc-rose); color: var(--rc-rose-ink); }

.rv-faq { margin-top: 26px; }
.rv-faq details { padding: 16px 4px; border-bottom: 1.5px solid var(--rc-line); }
.rv-faq summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary::after { content: '+'; color: var(--rc-red); font: 700 22px/1 var(--rc-font-latin); }
.rv-faq details[open] summary::after { content: '−'; }
.rv-faq p { margin-top: 8px; color: var(--rc-clay-ink); font-size: 16px; }
.rv-foot-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 64px 0 40px; color: var(--rc-muted); font-size: 13px; text-align: center; }
.rv-foot-brand img { width: 40px; height: 40px; }

/* ─── Player ──────────────────────────────────────────────────── */
.rv-play-top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); }
.rv-play-top-in { max-width: 640px; margin: 0 auto; height: 58px; padding: 0 12px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.rv-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font: 400 26px/1 var(--rc-font-latin); color: var(--rc-clay-ink); }
.rv-prog { height: 12px; border-radius: var(--rc-r-pill); background: var(--rc-clay-2); box-shadow: inset 0 2px 3px rgba(90, 74, 60, .14); overflow: hidden; }
.rv-prog span { display: block; height: 100%; border-radius: var(--rc-r-pill); background: var(--rc-red-face); transition: width 300ms ease; }
.rv-pos { font-size: 14px; font-weight: 700; color: var(--rc-muted); }
.rv-stage { max-width: 640px; margin: 0 auto; padding: 14px 20px 140px; animation: rv-in 260ms ease; }
.rv-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 26%); }
.rv-bar-in { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; }
.rv-bar-in > .rv-btn:last-child { flex: 1 1 auto; }
.rv-back { flex: 0 0 56px; width: 56px; padding: 0; font: 400 22px/1 var(--rc-font-latin); }

.rv-head { text-align: center; margin: 6px 0 22px; }
.rv-head-k { font-size: 14px; font-weight: 700; color: var(--rc-muted); letter-spacing: .03em; }
.rv-head h2 { color: var(--rc-red); font-size: 30px; margin-top: 4px; }

.rv-intro { text-align: center; padding-top: 18px; }
.rv-intro .rv-stamp { font-size: 132px; transform: rotate(-4deg); margin-bottom: 4px; }
.rv-intro-k { font-weight: 700; font-size: 16px; color: var(--rc-muted); }
.rv-intro h1 { color: var(--rc-red); font-size: 38px; margin-top: 6px; }
.rv-intro-lead { font-size: 18px; font-weight: 600; margin: 18px auto 0; max-width: 32ch; }
.rv-today { margin-top: 28px; text-align: left; }
.rv-today h3 { font-size: 18px; margin-bottom: 12px; }
.rv-today ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: t; }
.rv-today li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; align-items: center; font-size: 20px; font-weight: 700; color: var(--rc-ink); }
.rv-today li::before { content: counter(t); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--rc-red-soft); color: var(--rc-red); font: 800 14px/1 var(--rc-font-latin); }
.rv-today p { margin-top: 14px; font-size: 15px; color: var(--rc-muted); }

.rv-scene { position: relative; margin: 0 -8px 6px; }
.rv-scene img { display: block; width: 100%; height: auto; }
.rv-say img, .rv-cast img { height: auto; }
.rv-scene-txt { text-align: center; font-weight: 600; font-size: 17px; color: var(--rc-clay-ink); margin: 2px 0 18px; }
.rv-says { display: grid; gap: 16px; }
.rv-say { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: end; animation: rv-in 320ms ease both; }
.rv-say:nth-child(2) { animation-delay: 160ms; }
.rv-say.me { grid-template-columns: minmax(0, 1fr) 40px; }
.rv-say.me img { order: 2; }
.rv-say img { width: 40px; height: auto; }
.rv-say-body { min-width: 0; }
.rv-say.me .rv-say-body { text-align: right; }
.rv-say .rv-pill { position: relative; text-align: left; font: 700 22px/1.45 var(--rc-font-jp); color: var(--rc-ink); padding: 14px 52px 14px 22px; max-width: 100%; }
.rv-say-who { display: block; font-size: 13px; font-weight: 700; color: var(--rc-muted); margin: 0 8px 4px; }
.rv-say-bn { display: block; font-weight: 600; font-size: 17px; margin: 8px 12px 0; }
.rv-tts { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--rc-clay-2); cursor: pointer; font-size: 15px; }

.rv-ctx { display: grid; gap: 10px; justify-items: start; margin-bottom: 28px; }
.rv-ctx .rv-pill { font: 700 20px/1.4 var(--rc-font-jp); padding: 10px 18px; }
.rv-ask { text-align: center; font-weight: 700; font-size: 23px; line-height: 1.5; }
.rv-ask-mark { display: block; font: 400 84px/1 var(--rc-font-brush); color: var(--rc-red); margin-bottom: 4px; }
.rv-reveal-btn { margin-top: 26px; }
.rv-answer { margin-top: 24px; padding: 20px 20px; border-radius: var(--rc-r-tile); background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); font-size: 19px; font-weight: 600; line-height: 1.6; animation: rv-in 260ms ease; text-align: center; }

.rv-rows { display: grid; gap: 22px; }
.rv-row { text-align: center; }
.rv-row-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rv-row-tiles .rv-tile { cursor: default; font-size: 28px; min-height: 66px; }
.rv-row-bn { margin-top: 10px; font-weight: 600; font-size: 17px; }
.rv-note { text-align: center; margin-top: 26px; font-weight: 700; font-size: 18px; }

.rv-q-ask { text-align: center; font-weight: 700; font-size: 20px; margin-bottom: 18px; }
.rv-q-ctx { text-align: center; font: 700 20px/1.5 var(--rc-font-jp); color: var(--rc-clay-ink); margin-bottom: 10px; }
.rv-opts { display: grid; gap: 14px; }
.rv-opts.two { grid-template-columns: 1fr 1fr; }
.rv-opts .rv-tile { width: 100%; justify-content: flex-start; font-size: 22px; padding: 14px 18px; }
.rv-opts.wide .rv-tile { font-size: 21px; line-height: 1.5; min-height: 68px; }
.rv-fb { margin-top: 22px; padding: 18px 20px; border-radius: var(--rc-r-tile); animation: rv-in 240ms ease; }
.rv-fb.ok { background: var(--rc-sage); color: var(--rc-sage-ink); }
.rv-fb.bad { background: var(--rc-rose); color: var(--rc-rose-ink); }
.rv-fb > b { display: block; font-size: 19px; }
.rv-fb p { margin-top: 6px; color: var(--rc-ink); font-weight: 600; }
.rv-fb .rv-fb-jp { font: 700 21px/1.5 var(--rc-font-jp); }

.rv-sent { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 10px 0 40px; font: 700 28px/1.5 var(--rc-font-jp); text-align: center; }
.rv-blank { display: inline-grid; place-items: center; min-width: 92px; min-height: 58px; padding: 4px 14px; border-radius: 18px; background: var(--rc-clay-2); box-shadow: inset 0 3px 6px rgba(90, 74, 60, .16); color: var(--rc-red); }
.rv-blank.ok { background: var(--rc-sage); color: var(--rc-sage-ink); box-shadow: none; animation: rv-pop 320ms ease; }
.rv-slot { display: inline-grid; place-items: center; min-width: 76px; min-height: 58px; padding: 4px 12px; border: 0; border-radius: 18px; background: var(--rc-clay-2); box-shadow: inset 0 3px 6px rgba(90, 74, 60, .16);
  font: 700 22px/1.2 var(--rc-font-jp); color: var(--rc-muted); cursor: pointer; }
.rv-slot.filled { background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow); color: var(--rc-clay-ink); animation: rv-pop 260ms ease; }
.rv-slot.star { color: var(--rc-red); font-size: 26px; }
.rv-slot.star.filled { box-shadow: 0 0 0 2px var(--rc-red) inset, var(--rc-clay-shadow); }
.rv-slot.ok { background: var(--rc-sage); color: var(--rc-sage-ink); box-shadow: none; }
.rv-slot.bad { background: var(--rc-rose); color: var(--rc-rose-ink); box-shadow: none; }
.rv-slot:disabled { cursor: default; }
.rv-hint { text-align: center; font-size: 15px; color: var(--rc-muted); margin: -16px 0 20px; }

.rv-end { text-align: center; padding-top: 10px; }
.rv-end .rv-stamp { font-size: 120px; transform: rotate(-4deg); }
.rv-score { display: block; font: 900 72px/1 var(--rc-font-latin); color: var(--rc-red); margin-top: 6px; }
.rv-end-msg { font-size: 19px; font-weight: 700; margin-top: 10px; }
.rv-recap { margin-top: 30px; text-align: left; }
.rv-recap h3 { text-align: center; color: var(--rc-red); font-size: 22px; margin-bottom: 16px; }
.rv-recap ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: r; }
.rv-recap li { counter-increment: r; display: grid; grid-template-columns: 32px 1fr; gap: 6px; align-items: start; font: 700 18px/1.5 var(--rc-font-jp); }
.rv-recap li::before { content: counter(r); display: grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; background: var(--rc-red); color: #fff; font: 800 13px/1 var(--rc-font-latin); }
.rv-next { margin-top: 26px; padding: 22px; border-radius: var(--rc-r-card); background: var(--rc-red-soft); text-align: center; }
.rv-next small { display: block; font-weight: 700; color: var(--rc-red); font-size: 14px; }
.rv-next p { font-size: 20px; font-weight: 700; margin-top: 6px; }

.rv-locked { text-align: center; padding-top: 24px; }
.rv-locked .rv-stamp { font-size: 110px; color: var(--rc-clay-3); }
.rv-locked h1 { color: var(--rc-red); font-size: 34px; margin-top: 8px; }
.rv-locked p { margin-top: 10px; }

@media (min-width: 600px) {
  .rv-hero { padding-top: 48px; }
  .rv-hero h1 { font-size: 64px; }
  .rv-hero-art { height: 230px; }
  .rv-hero-art img { bottom: -170px; width: 100%; }
  .rv-hero-after { height: 200px; }
  .rv-cta { grid-template-columns: 1fr 1fr; }
  .rv-cta-note { grid-column: 1 / -1; }
  .rv-buy { padding: 40px 36px 34px; }
  .rv-buy-btns { grid-template-columns: 1fr 1fr; }
  .rv-cast img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv *, .rv *::before, .rv *::after { animation: none !important; transition: none !important; }
  .rv-u path { stroke-dashoffset: 0; }
}
.rv-top.on-red .rv-brand img { filter: brightness(0) invert(1); }

/* ─── Interactive video ───────────────────────────────────────── */
.rv-vprog { position: relative; overflow: visible; }
.rv-vprog i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--rc-clay-3); }
.rv-vprog i.q { background: var(--rc-red); box-shadow: 0 0 0 2px #fff; }
.rv-vscore { font: 800 15px/1 var(--rc-font-latin); color: var(--rc-red); padding: 8px 12px; border-radius: var(--rc-r-pill); background: var(--rc-red-soft); white-space: nowrap; }
.rv-vscore.pop { animation: rv-pop 420ms ease; }
.rv-vstage { max-width: 640px; margin: 0 auto; padding: 8px 12px 40px; }
.rv-vbox { position: relative; width: min(100%, calc((100svh - 150px) * 9 / 16)); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--rc-clay-shadow-lg); }
.rv-vbox video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.rv-vlayer { position: absolute; inset: 0; pointer-events: none; }
.rv-vlayer.on { pointer-events: auto; }
.rv-vt { position: absolute; border: 0; padding: 0; border-radius: 22px; background: transparent; cursor: pointer; box-shadow: 0 0 0 3px var(--rc-red); animation: rv-pulse 1.3s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.rv-vt:disabled { animation: none; box-shadow: none; cursor: default; }
.rv-vt.right { box-shadow: 0 0 0 4px var(--rc-sage-ink); background: rgba(62, 122, 79, .14); }
.rv-vt.wrong { box-shadow: 0 0 0 4px var(--rc-rose-ink); background: rgba(162, 73, 63, .14); }
@keyframes rv-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(200, 48, 42, .9); } 50% { box-shadow: 0 0 0 6px rgba(200, 48, 42, .35); } }
.rv-vstart { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: rgba(255, 255, 255, .78); backdrop-filter: blur(2px); }
.rv-vstart[hidden] { display: none; }
.rv-vstart .rv-stamp { font-size: 84px; transform: rotate(-4deg); }
.rv-vstart b { font-size: 20px; }
.rv-vstart span:last-child { font-size: 15px; font-weight: 600; color: var(--rc-clay-ink); }
.rv-vplay { width: 92px; height: 92px; border: 0; border-radius: 50%; background: var(--rc-red-face); box-shadow: var(--rc-red-shadow); color: #fff; font-size: 36px; padding-left: 8px; cursor: pointer; animation: rv-pop 500ms ease; }
.rv-vcard { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; border-radius: 22px; background: var(--rc-clay-face); box-shadow: var(--rc-clay-shadow-lg); text-align: center; animation: rv-in 240ms ease; }
.rv-vcard[hidden] { display: none; }
.rv-vcard.top { top: 12px; bottom: auto; padding: 10px 14px; }
.rv-vcard .rv-ask-mark { font-size: 46px; margin: 0; }
.rv-vcard b { display: block; font-size: 18px; color: var(--rc-red); }
.rv-vcard p { font-weight: 600; font-size: 16px; margin: 4px 0 12px; }
.rv-vcard.top p { margin: 2px 0 0; font-size: 14px; color: var(--rc-clay-ink); }
.rv-vcard.ok { background: var(--rc-sage); }
.rv-vcard.ok b { color: var(--rc-sage-ink); }
.rv-vcard.bad { background: var(--rc-rose); }
.rv-vcard.bad b { color: var(--rc-rose-ink); }
.rv-vctl { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.rv-vtime { font: 700 14px/1 var(--rc-font-latin); color: var(--rc-muted); min-width: 84px; text-align: center; }
.rv-vsteps { text-align: center; margin-top: 10px; }
.rv-vsteps .rv-link { color: var(--rc-clay-ink); font-size: 15px; }
