/* Newer reels (collage lives in reels-pile.css): .rt- timelapse · .rst- stars · .rca- candles · .rw- wheel · .rl- lock · .rlv- counter
   Every reel keeps clear of the gram overlays via --g-safe-top / --g-safe-bottom / --g-safe-right. */

/* shared pill button look */
.rt-btn, .rst-btn, .rca-btn, .rw-btn, .rl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16); color: #fff; font-weight: 700; font-size: 15px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background 160ms;
}
.rt-btn:active, .rst-btn:active, .rca-btn:active, .rw-btn:active, .rl-btn:active { transform: scale(0.95); }
.rt-btn[disabled], .rca-btn[disabled] { opacity: 0.7; }

/* ======================= timelapse ======================= */
.rt { background: #000; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rt-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform, filter; }
.rt-img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.rt-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 34%, transparent 60%, rgba(0, 0, 0, 0.65));
}
.rt-warp {
  position: absolute; left: 50%; top: 45%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax;
  z-index: 1; pointer-events: none; opacity: 0; transition: opacity 300ms;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.12) 0deg 0.8deg, transparent 0.8deg 7deg);
  -webkit-mask-image: radial-gradient(circle, transparent 12%, #000 40%); mask-image: radial-gradient(circle, transparent 12%, #000 40%);
}
.rt.is-holding .rt-warp, .rt.is-rewinding .rt-warp { opacity: 1; animation: rt-spin 1.2s linear infinite; }
.rt.is-rewinding .rt-warp { animation-direction: reverse; animation-duration: 0.5s; }
@keyframes rt-spin { to { transform: rotate(14deg); } }
.rt-head { position: absolute; z-index: 2; left: 0; right: 0; top: var(--g-safe-top, 64px); text-align: center; pointer-events: none; }
.rt-year {
  font: 800 clamp(52px, 17vw, 96px)/1 var(--font-sans); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.rt-sub { margin-top: 4px; font: italic 17px/1.3 var(--font-serif); color: rgba(255, 255, 255, 0.9); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); min-height: 1.3em; }
.rt-line {
  position: absolute; z-index: 2; left: 22px; right: calc(var(--g-safe-right, 64px) + 6px); bottom: calc(var(--g-safe-bottom, 92px) + 20px);
  display: flex; justify-content: space-between; pointer-events: none;
}
.rt-track { position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: rgba(255, 255, 255, 0.3); }
.rt-fill { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 10px #fff; }
.rt-tick { position: relative; display: flex; flex-direction: column; align-items: center; width: 12px; }
.rt-tick i { width: 12px; height: 12px; border-radius: 50%; background: #333; border: 2px solid rgba(255, 255, 255, 0.6); transition: background 200ms, transform 300ms var(--ease-spring); }
.rt-tick.is-past i { background: #fff; transform: scale(1.15); }
.rt-tick b { position: absolute; top: 18px; font-size: 11px; font-weight: 700; white-space: nowrap; color: rgba(255, 255, 255, 0.85); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.rt-surface { position: absolute; inset: 0; z-index: 3; cursor: pointer; }
.rt-surface:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.rt-hint {
  position: absolute; z-index: 4; left: 50%; top: 56%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 18px 10px 12px;
  border-radius: var(--radius-pill); background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 15px; font-weight: 700; white-space: nowrap; pointer-events: none;
  transition: opacity 300ms, transform 300ms;
}
.rt-hint.is-gone { opacity: 0; transform: translate(-50%, 10px); }
.rt-ring { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; }
.rt-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; animation: rt-press 1.6s ease-in-out infinite; }
@keyframes rt-press { 0%, 100% { transform: scale(0.5); opacity: 0.6; } 40%, 70% { transform: scale(1); opacity: 1; } }
.rt-flash { position: absolute; inset: 0; z-index: 5; background: #fff; opacity: 0; pointer-events: none; }
.rt-end {
  position: absolute; z-index: 6; left: 50%; top: 50%; translate: -50% -50%;
  width: min(86%, 360px); text-align: center; animation: fade-up 600ms var(--ease-out) both;
}
.rt-shade { transition: background-color 600ms; }
.rt.is-done .rt-shade { background-color: rgba(0, 0, 0, 0.45); }
.rt-end-msg { margin: 0 0 14px; font: italic 600 24px/1.3 var(--font-serif); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7); }
.rt-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--g-muted); }

/* ======================= stars ======================= */
.rst {
  background: radial-gradient(90% 60% at 50% 30%, #1d1b4a, #0b0a24 60%, #05040f);
}
.rst-sky { position: absolute; inset: 0; pointer-events: none; }
.rst-sky i {
  position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o);
  animation: rst-twinkle var(--d) ease-in-out infinite alternate;
}
@keyframes rst-twinkle { to { opacity: 0.1; } }
.rst-top { position: absolute; z-index: 2; left: 0; right: 0; top: var(--g-safe-top, 64px); text-align: center; padding: 0 16px; }
.rst-hint { margin: 0; font-size: 15px; font-weight: 700; text-shadow: 0 0 12px rgba(160, 140, 255, 0.8); }
.rst-progress { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.6); }
.rst-wrap {
  position: absolute; left: 0; right: 0; top: calc(var(--g-safe-top, 64px) + 50px); bottom: calc(var(--g-safe-bottom, 92px) + 10px);
  display: grid; place-items: center; padding: 0 18px;
}
.rst-board { width: min(100%, 420px); max-height: 100%; aspect-ratio: 1; overflow: visible; transition: transform 1s var(--ease-out); }
.rst.is-solved .rst-board { transform: translateY(-16%) scale(0.78); }
.rst-fill { fill: rgba(255, 143, 199, 0); transition: fill 1200ms; }
.rst.is-solved .rst-fill { fill: rgba(255, 143, 199, 0.18); }
.rst-photo { opacity: 0; transition: opacity 1600ms 500ms; }
.rst.is-solved .rst-photo { opacity: 0.95; }
.rst-line {
  stroke: #ffe9a8; stroke-width: 0.7; stroke-linecap: round;
  filter: drop-shadow(0 0 1.2px #ffd36b);
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: rst-draw 380ms var(--ease-out) forwards;
}
@keyframes rst-draw { to { stroke-dashoffset: 0; } }
.rst.is-solved .rst-line { stroke: #ffc4e1; filter: drop-shadow(0 0 2px #ff8fc7); }
.rst-star { cursor: pointer; }
.rst-hit { fill: transparent; }
.rst-glow { fill: rgba(255, 255, 255, 0.12); transition: fill 300ms; }
.rst-core { fill: #fff; transform-box: fill-box; transform-origin: center; transition: transform 300ms var(--ease-spring); }
.rst-num { font: 700 3.6px/1 var(--font-sans); fill: rgba(255, 255, 255, 0.7); text-anchor: middle; pointer-events: none; transition: opacity 300ms; }
.rst-star.is-next .rst-glow { fill: rgba(255, 230, 150, 0.45); animation: rst-pulse 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.rst-star.is-next .rst-core { transform: scale(1.35); fill: #fff3c4; }
.rst-star.is-done .rst-core { fill: #ffe9a8; }
.rst-star.is-done .rst-num { opacity: 0.35; }
.rst-star.is-wrong .rst-glow { animation: rst-wrong 320ms ease-out; transform-box: fill-box; transform-origin: center; }
.rst.is-solved .rst-num { opacity: 0; }
@keyframes rst-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.7); } }
@keyframes rst-wrong { 0% { fill: rgba(255, 80, 100, 0.8); transform: scale(1.6); } 100% { fill: rgba(255, 255, 255, 0.12); transform: scale(1); } }
.rst-msg {
  position: absolute; z-index: 3; left: 16px; right: var(--g-safe-right, 64px); bottom: calc(var(--g-safe-bottom, 92px) + 6px);
  text-align: center; animation: fade-up 700ms var(--ease-out) both;
}
.rst-msg-big { margin: 0; font: italic 700 clamp(24px, 7vw, 32px)/1.2 var(--font-serif); text-shadow: 0 0 20px rgba(255, 143, 199, 0.8); }
.rst-msg-sub { margin: 6px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.rst-msg .rst-btn { margin-top: 12px; }

/* ======================= candles ======================= */
.rca {
  --lit: 1; --blow: 0;
  background: #0c0710;
  -webkit-user-select: none; user-select: none;
}
.rca-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 45% at 50% 52%, rgba(255, 170, 80, calc(0.12 + var(--lit) * 0.38)), transparent 70%),
    radial-gradient(120% 70% at 50% 120%, rgba(255, 90, 140, 0.25), transparent 70%);
  transition: opacity 400ms;
}
.rca-top { position: absolute; z-index: 2; left: 0; right: 0; top: var(--g-safe-top, 64px); text-align: center; padding: 0 16px; }
.rca-hint { margin: 0; font: italic 600 20px/1.3 var(--font-serif); text-shadow: 0 0 14px rgba(255, 190, 120, 0.6); }
.rca-scene {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  width: min(82%, 330px); display: flex; flex-direction: column; align-items: center;
}
.rca-row { display: flex; justify-content: center; gap: 4px; width: 78%; margin-bottom: -6px; position: relative; z-index: 2; }
.rca-candle {
  position: relative; flex: 0 1 30px; height: calc(var(--h) + 60px); padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; cursor: pointer;
}
.rca-stick {
  width: 12px; height: var(--h); border-radius: 3px 3px 1px 1px;
  background: repeating-linear-gradient(-45deg, var(--c) 0 6px, #fff 6px 10px);
  box-shadow: inset -2px 0 0 rgba(0, 0, 0, 0.12);
}
.rca-wick { width: 2px; height: 7px; background: #3a2a20; border-radius: 1px; }
.rca-flame {
  position: absolute; left: 50%; bottom: calc(var(--h) + 5px);
  width: 16px; height: 30px; margin-left: -8px;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--blow) * -38deg)) scaleY(calc(1 - var(--blow) * 0.35));
  transition: opacity 260ms, transform 120ms;
}
.rca-flame i {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(circle at 50% 78%, #fff 0 18%, #ffe27a 34%, #ff9b2f 62%, rgba(255, 80, 30, 0.2) 80%, transparent 82%);
  box-shadow: 0 0 22px 6px rgba(255, 170, 60, 0.55);
  animation: rca-flicker calc(0.7s + var(--k) * 0.07s) ease-in-out infinite alternate;
}
@keyframes rca-flicker {
  0% { transform: scale(1, 1) rotate(-2deg); }
  50% { transform: scale(0.92, 1.08) rotate(2deg); }
  100% { transform: scale(1.04, 0.95) rotate(-1deg); }
}
.rca-candle.is-out .rca-flame { opacity: 0; transform: scale(0.2) translateY(6px); }
.rca-smoke {
  position: absolute; left: 50%; bottom: calc(var(--h) + 8px); width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: rgba(200, 200, 210, 0.6); filter: blur(3px); opacity: 0; pointer-events: none;
}
.rca-candle.is-out .rca-smoke { animation: rca-smoke 1.6s ease-out forwards; }
@keyframes rca-smoke {
  0% { opacity: 0.8; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(-14px, -70px) scale(3.5); }
}
.rca-cake { width: 100%; display: flex; flex-direction: column; align-items: center; }
.rca-tier { position: relative; border-radius: 14px 14px 8px 8px; }
.rca-tier--top { width: 78%; height: 66px; background: linear-gradient(#ffd6e5, #ffb3cc); z-index: 1; }
.rca-tier--bottom { width: 100%; height: 92px; margin-top: -4px; background: linear-gradient(#ff9ec0, #f26b9a); display: grid; place-items: center; }
.rca-drip {
  position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 10% 100%, #fff7fb 9px, transparent 10px),
    radial-gradient(circle at 32% 100%, #fff7fb 7px, transparent 8px),
    radial-gradient(circle at 56% 100%, #fff7fb 10px, transparent 11px),
    radial-gradient(circle at 80% 100%, #fff7fb 8px, transparent 9px),
    linear-gradient(#fff7fb 0 16px, transparent 16px);
}
.rca-sprinkles {
  position: absolute; inset: 30px 10px 8px;
  background:
    radial-gradient(circle, #5bc0eb 2px, transparent 2.5px) 0 0 / 22px 18px,
    radial-gradient(circle, #ffe066 2px, transparent 2.5px) 11px 9px / 22px 18px;
  opacity: 0.85;
}
.rca-name { position: relative; z-index: 1; margin-top: 14px; font: 700 26px/1 var(--font-hand); color: #fff; text-shadow: 0 2px 0 rgba(160, 30, 80, 0.4); }
.rca-plate { width: 116%; height: 14px; margin-top: -2px; border-radius: 50%; background: linear-gradient(#f2f2f7, #b9b9c6); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.rca-actions {
  position: absolute; z-index: 3; left: 16px; right: var(--g-safe-right, 64px); bottom: calc(var(--g-safe-bottom, 92px) + 6px);
  display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity 300ms;
}
.rca-actions.is-gone { opacity: 0; pointer-events: none; }
.rca-mic { background: linear-gradient(135deg, #ff8a3d, #ff4d6d); }
.rca-sub { margin: 0; font-size: 12px; color: var(--g-muted); }
.rca-meter { display: none; width: 160px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.rca-meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffe27a, #ff4d6d); transform-origin: 0 50%; transform: scaleX(var(--level, 0)); transition: transform 80ms; }
.rca.is-listening .rca-meter { display: block; }
.rca-dark { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; pointer-events: none; transition: opacity 600ms; }
.rca.is-dark .rca-dark { opacity: 0.85; }
.rca-scene { transition: opacity 600ms, filter 600ms; }
.rca.is-done .rca-scene { opacity: 0.18; filter: blur(5px); }
.rca-wish {
  position: absolute; z-index: 5; left: 16px; right: var(--g-safe-right, 64px); top: var(--g-safe-top, 64px); bottom: var(--g-safe-bottom, 92px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(60% 40% at 50% 45%, rgba(12, 7, 16, 0.75), transparent 80%);
  animation: fade-up 700ms var(--ease-out) both;
}
.rca-polaroid { width: min(58%, 220px); padding: 8px 8px 26px; background: #fff; transform: rotate(-3deg); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.rca-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.rca-wish-big { margin: 0; font: italic 700 clamp(20px, 6vw, 26px)/1.3 var(--font-serif); text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }

/* ======================= wheel ======================= */
.rw {
  background:
    radial-gradient(60% 38% at 50% 52%, rgba(255, 77, 109, 0.26), transparent 70%),
    radial-gradient(70% 45% at 85% 95%, rgba(123, 44, 191, 0.38), transparent 70%),
    radial-gradient(60% 40% at 10% 8%, rgba(157, 78, 221, 0.22), transparent 70%),
    linear-gradient(170deg, #3a0b2a, #22061a 45%, #12030d);
}
.rw-top { position: absolute; z-index: 2; left: 0; right: 0; top: var(--g-safe-top, 64px); text-align: center; padding: 0 16px; }
.rw-hint { margin: 0; font-size: 16px; font-weight: 700; text-shadow: 0 0 18px rgba(255, 77, 109, 0.55); }
.rw-tally { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 214, 229, 0.6); }
.rw-center {
  position: absolute; inset: calc(var(--g-safe-top, 64px) + 46px) 0 var(--g-safe-bottom, 92px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.rw-wheel { position: relative; width: min(84vw, 360px, 50dvh); aspect-ratio: 1; }
.rw-rot { width: 100%; height: 100%; }
.rw-disc {
  width: 100%; height: 100%; overflow: visible; cursor: pointer;
  filter: drop-shadow(0 0 22px rgba(255, 77, 109, 0.35)) drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6));
}
.rw-rim { fill: #2a0820; stroke: #ff8fab; stroke-width: 0.6; }
.rw-wedge { stroke: rgba(255, 236, 243, 0.75); stroke-width: 0.45; transition: filter 400ms; }
.rw-emoji { font-size: 8.6px; text-anchor: middle; dominant-baseline: central; filter: drop-shadow(0 0.5px 0.8px rgba(40, 0, 20, 0.5)); }
.rw-slice.is-won .rw-wedge { filter: saturate(0.45) brightness(0.45); } /* dimmed, but pink vs violet still reads */
.rw-slice.is-won .rw-emoji { opacity: 0.35; }
.rw-bulb { fill: #ffe5ec; }
.rw.is-spinning .rw-bulb { animation: rw-bulb 300ms steps(2) infinite; }
.rw.is-spinning .rw-bulb:nth-of-type(odd) { animation-delay: 150ms; }
@keyframes rw-bulb { 50% { fill: #c77dff; } }
.rw-pointer {
  position: absolute; left: 50%; top: -14px; width: 30px; height: 38px; margin-left: -15px; z-index: 2;
  background: #fff0f5; clip-path: polygon(50% 100%, 0 0, 100% 0); border-radius: 4px;
  filter: drop-shadow(0 0 6px rgba(255, 77, 109, 0.9)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}
.rw-legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0 16px; list-style: none;
}
.rw-key {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rw-key::before { content: ""; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.rw-key--me::before { background: linear-gradient(135deg, #ff4d6d 50%, #ff8fab 50%); box-shadow: 0 0 8px rgba(255, 77, 109, 0.8); }
.rw-key--you::before { background: linear-gradient(135deg, #7b2cbf 50%, #9d4edd 50%); box-shadow: 0 0 8px rgba(157, 78, 221, 0.9); }
.rw.is-spinning .rw-pointer { animation: rw-tick 120ms ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes rw-tick { to { transform: rotate(-12deg); } }
.rw-hub {
  position: absolute; left: 50%; top: 50%; width: 27%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border: 4px solid #fff; border-radius: 50%; padding: 0;
  background: radial-gradient(circle at 35% 28%, #ff8fab, #c9184a 55%, #6a1b9a); color: #fff;
  font-weight: 900; font-size: clamp(14px, 4.4vw, 18px); letter-spacing: 0.08em;
  box-shadow: 0 0 0 3px rgba(42, 8, 32, 0.6), 0 0 22px rgba(255, 77, 109, 0.55), 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 160ms var(--ease-out);
}
.rw-hub:active { transform: translate(-50%, -50%) scale(0.92); }
.rw-hub[disabled] { opacity: 0.6; }
.rw.is-spinning .rw-hub { pointer-events: none; }
.rw-card {
  position: absolute; z-index: 5; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: var(--g-safe-top, 64px) var(--g-safe-right, 64px) var(--g-safe-bottom, 92px) 16px;
  background: radial-gradient(70% 50% at 50% 48%, rgba(201, 24, 74, 0.28), transparent 75%), rgba(16, 3, 11, 0.78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.rw-card--you { background: radial-gradient(70% 50% at 50% 48%, rgba(123, 44, 191, 0.4), transparent 75%), rgba(12, 3, 18, 0.8); }
.rw-ticket {
  position: relative; width: min(100%, 320px); padding: 22px 22px 18px; text-align: center;
  background: #fff6f8; color: #5a0f2c; border-radius: 14px;
  /* no box-shadow: the notch mask can't clip it inside the rounded corners (shows as square corners) */
  -webkit-mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 12px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  animation: rw-in 600ms var(--ease-spring) both;
}
.rw-ticket::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(201, 24, 74, 0.35); border-radius: 10px; pointer-events: none; }
@keyframes rw-in { from { transform: scale(0.5) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rw-c-kicker { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: 0.3em; color: #c9184a; }
.rw-c-who { margin: 10px 0 0; font: italic 700 20px/1.2 var(--font-serif); color: #c9184a; }
.rw-c-stamp {
  position: absolute; top: 14px; right: 16px; font-size: 26px; line-height: 1;
  transform: rotate(14deg); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}
.rw-c-emoji { display: block; margin: 6px 0 2px; font-size: 46px; }
.rw-c-title { margin: 0; font: 700 22px/1.25 var(--font-serif); }
.rw-c-detail { margin: 6px 0 0; font-size: 14px; color: #8a3a58; }
.rw-c-fine { margin: 14px 0 0; font-size: 10px; letter-spacing: 0.04em; color: #a0627a; }
.rw-btn { background: linear-gradient(135deg, #ff4d6d, #c9184a); box-shadow: 0 0 18px rgba(255, 77, 109, 0.4); }
/* "you owe me" ticket: sultry violet, cheeky */
.rw-card--you .rw-ticket {
  background: linear-gradient(160deg, #3c096c, #5a189a 55%, #7b2cbf); color: #f3e8ff;
}
.rw-card--you .rw-ticket::before { border-color: rgba(224, 170, 255, 0.45); }
.rw-card--you .rw-c-kicker { color: #e0aaff; }
.rw-card--you .rw-c-who { color: #ff8fab; text-shadow: 0 0 14px rgba(255, 77, 109, 0.5); }
.rw-card--you .rw-c-stamp { transform: rotate(-12deg); }
.rw-card--you .rw-c-detail { color: #d8b4fe; }
.rw-card--you .rw-c-fine { color: rgba(224, 170, 255, 0.75); }
.rw-card--you .rw-btn { background: linear-gradient(135deg, #9d4edd, #5a189a); box-shadow: 0 0 18px rgba(157, 78, 221, 0.5); }

/* ======================= lock ======================= */
.rl { background: radial-gradient(80% 55% at 50% 48%, #3a1030, #170614 70%, #080208); }
.rl-top { position: absolute; z-index: 2; left: 0; right: 0; top: var(--g-safe-top, 64px); text-align: center; padding: 0 16px; }
.rl-hint { margin: 0; font: italic 700 20px/1.3 var(--font-serif); }
.rl-sub { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.rl-center { position: absolute; inset: calc(var(--g-safe-top, 64px) + 50px) 0 var(--g-safe-bottom, 92px); display: grid; place-items: center; }
.rl-lock { position: relative; width: min(84vw, 340px, 50dvh); }
.rl-art { display: block; width: 100%; overflow: visible; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.55)); }
.rl-shackle {
  fill: none; stroke: #d9d9e3; stroke-width: 9; stroke-linecap: round;
  transition: transform 700ms var(--ease-spring); transform-origin: 72px 22px;
}
.rl.is-open .rl-shackle { transform: translateY(-16px) rotate(28deg); }
.rl-body { fill: #ff4d6d; stroke: #c9184a; stroke-width: 2; }
.rl.is-open .rl-body { fill: #ff6f8a; }
.rl-shine { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 4; stroke-linecap: round; }
.rl.is-open .rl-lock { animation: rl-swing 1.2s var(--ease-out); }
@keyframes rl-swing { 15% { transform: rotate(-6deg); } 35% { transform: rotate(5deg); } 55% { transform: rotate(-3deg); } 75% { transform: rotate(1deg); } }
.rl-dials {
  position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%);
  display: flex; gap: 5px; padding: 6px; border-radius: 12px; background: rgba(60, 0, 20, 0.35);
}
.rl-dial {
  display: flex; flex-direction: column; align-items: center; width: clamp(36px, 11vw, 46px);
  touch-action: none; border-radius: 10px;
}
.rl-arrow {
  width: 100%; height: 28px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, 0.85);
  font-size: 13px; line-height: 1;
}
.rl-arrow:active { color: #ffd60a; }
.rl-window {
  width: 100%; height: clamp(44px, 13vw, 54px); overflow: hidden; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(#e8e8ee, #fff 45%, #fff 55%, #d6d6de);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.3);
}
.rl-val { display: block; font: 800 clamp(24px, 7.5vw, 30px)/1 var(--font-mono); color: #3a0d1e; cursor: ns-resize; }
.rl.is-open .rl-window { background: linear-gradient(#ffe5ec, #fff 45%, #fff 55%, #ffd1dc); }
.rl-prize {
  position: absolute; z-index: 5; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  padding: var(--g-safe-top, 64px) var(--g-safe-right, 64px) var(--g-safe-bottom, 92px) 16px;
  background: rgba(16, 4, 12, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-up 600ms var(--ease-out) both;
}
.rl-polaroid { width: min(64%, 240px); padding: 9px 9px 0; background: #fff; transform: rotate(2.5deg); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); display: flex; flex-direction: column; }
.rl-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ddd; }
.rl-cap { padding: 8px 0 10px; font: 700 17px/1.1 var(--font-hand); color: #3a2a2a; }
.rl-polaroid:not(:has(.rl-cap)) { padding-bottom: 26px; }
.rl-msg { margin: 0; font: italic 700 clamp(20px, 6vw, 26px)/1.3 var(--font-serif); }
.rl-btn { background: rgba(255, 255, 255, 0.14); }

@media (prefers-reduced-motion: reduce) {
  .rca-flame i { animation: none; }
}

/* ======================= love counter (.rlv-) ======================= */
.rlv { background: radial-gradient(90% 60% at 50% 40%, #4a0f2e, #1a0612 70%, #0a0208); color: #fff; }
.rlv-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: blur(3px) saturate(1.1); transform: scale(1.06); transition: opacity 900ms; }
.rlv.has-bg .rlv-bg { opacity: 1; }
.rlv-shade { position: absolute; inset: 0; background: radial-gradient(70% 50% at 50% 46%, rgba(40, 6, 24, 0.55), rgba(20, 3, 12, 0.88)); }
.rlv-floaters { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rlv-float {
  position: absolute; left: var(--x); bottom: -40px; font-size: calc(var(--s) * 22px); color: #ff6f91; opacity: 0;
  animation: rlv-rise var(--dur) linear var(--d) infinite;
}
@keyframes rlv-rise {
  0% { transform: translateY(0) rotate(-10deg); opacity: 0; }
  10% { opacity: 0.55; }
  50% { transform: translateY(-55dvh) translateX(18px) rotate(10deg); }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110dvh) rotate(-8deg); opacity: 0; }
}
.rlv-surface { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rlv-surface:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.6); outline-offset: -6px; }
.rlv-body {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: var(--g-safe-top, 64px); bottom: var(--g-safe-bottom, 92px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 0 calc(var(--g-safe-right, 64px) - 8px); text-align: center; pointer-events: none;
}
.rlv-title { margin: 0; font: italic 600 clamp(22px, 6.6vw, 30px)/1.2 var(--font-serif); text-shadow: 0 2px 18px rgba(255, 80, 130, 0.5); }
.rlv-heart { font-size: 34px; color: #ff4d6d; filter: drop-shadow(0 0 14px rgba(255, 77, 109, 0.8)); animation: rlv-beat 1.6s ease-in-out infinite; }
.rlv.is-active .rlv-heart { animation-duration: calc(60s / 75); }
@keyframes rlv-beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.22); } 28% { transform: scale(0.96); } 42% { transform: scale(1.12); } }
.rlv-counter { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 140px; justify-content: center; }
.rlv-big { display: flex; gap: clamp(14px, 5vw, 26px); justify-content: center; }
.rlv-cell { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.rlv-cell[hidden] { display: none; }
.rlv-n, .rlv-total, .rlv-hms b { display: inline-block; font-variant-numeric: tabular-nums; }
.rlv-n { font: 800 clamp(48px, 15vw, 72px)/1 var(--font-sans, system-ui); letter-spacing: -0.02em; background: linear-gradient(#fff, #ffc2d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rlv-l { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.rlv-hms { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; padding: 6px 16px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.1); font: 700 clamp(22px, 7vw, 30px)/1.1 var(--font-mono); }
.rlv-hms i { font-style: normal; opacity: 0.5; animation: rlv-blink 1s steps(2) infinite; }
@keyframes rlv-blink { 50% { opacity: 0.15; } }
.rlv-total { font: 800 clamp(40px, 12vw, 64px)/1.05 var(--font-sans, system-ui); letter-spacing: -0.02em; background: linear-gradient(#fff, #ffc2d1); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.rlv-unit { margin: 0; font: italic 600 17px/1.3 var(--font-serif); color: rgba(255, 255, 255, 0.85); }
.rlv-unit:empty { display: none; }
.rlv-since { margin: 8px 0 0; font: 700 22px/1.2 var(--font-hand); color: #ffd1dc; }
.rlv-milestone { margin: 0; padding: 6px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.rlv-milestone:empty { display: none; }
.rlv-msg { margin: 6px 0 0; max-width: 28ch; font: italic 600 17px/1.4 var(--font-serif); color: #fff; }
.rlv-hint {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--g-safe-bottom, 92px) - 6px); margin: 0; text-align: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55);
  pointer-events: none; transition: opacity 400ms; animation: rlv-pulse 2.2s ease-in-out infinite;
}
.rlv-hint.is-gone { opacity: 0; animation: none; }
.rlv-pop { position: absolute; z-index: 3; font-size: 30px; pointer-events: none; }
@keyframes rlv-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
