/* regulars: guest recognition with privacy. Entrance camera on the left, the code-name profile on the right. */
.rg-head { display: grid; justify-items: center; gap: 22px; }
.rg-sub { max-width: 640px; }
.rg-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr); margin-top: clamp(48px, 5vw, 72px); border-radius: 10px; overflow: hidden; background: #111; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9); }
.rg-media { position: relative; min-height: 500px; background: #0a0a0a; overflow: hidden; }
.rg-media video, .rg-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-media video { object-fit: cover; object-position: 32% 50%; }
.rg-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(17, 17, 17, 0) 70%, rgba(17, 17, 17, 0.55)), linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.45)); }
.rg-tag { position: absolute; left: 18px; top: 16px; z-index: 2; display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, 0.9); font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.rg-tag i { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); animation: rg-rec 1.6s steps(1) infinite; }
@keyframes rg-rec { 50% { opacity: .25; } }
.rg-replay { position: absolute; right: 16px; bottom: 16px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(20, 20, 20, 0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .45s var(--ease-out), background .2s var(--ease); }
.rg-replay svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-replay:hover { background: rgba(40, 40, 40, 0.75); }
.rg-card.is-done .rg-replay { opacity: 1; transform: none; }

.rg-panel { display: flex; flex-direction: column; gap: 22px; padding: 28px 30px 30px; min-width: 0; }
.rg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rg-state { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); white-space: nowrap; }
.rg-state b { font-weight: 500; }
.rg-state i { width: 6px; height: 6px; border-radius: 50%; background: #666; }
.rg-state[data-s="match"] { color: var(--blue-2); border-color: rgba(110, 147, 247, 0.4); background: rgba(61, 111, 245, 0.1); }
.rg-state[data-s="match"] i { background: var(--blue-2); animation: rg-pulse .9s ease-in-out infinite; }
.rg-state[data-s="known"] { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.rg-state[data-s="known"] i { background: var(--ok); }
@keyframes rg-pulse { 50% { opacity: .3; transform: scale(.7); } }
.rg-id { display: grid; gap: 10px; }
.rg-code { font: 500 clamp(20px, 1.9vw, 27px)/1.1 var(--f-mono); letter-spacing: 0.04em; color: #fff; min-height: 1.1em; }
.rg-code.is-wait { color: rgba(255, 255, 255, 0.22); }
.rg-bar { position: relative; height: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; border-radius: 2px; }
.rg-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: left; transform: scaleX(0); }
.rg-note { color: var(--mist); font-size: 11px; letter-spacing: 0.02em; }
.rg-rows { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rg-row { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.rg-row dt { color: var(--mist); font: 500 10.5px/1.6 var(--f-mono); letter-spacing: 0.09em; text-transform: uppercase; }
.rg-row dd { margin: 0; color: #fff; font-size: 14.5px; line-height: 1.5; }
.rg-row dd b { font-weight: 500; }
.rg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rg-chips em { font: 500 10px/1 var(--f-mono); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-2); padding: 6px 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.rg-meter { display: inline-flex; gap: 3px; margin-left: 10px; vertical-align: 1px; }
.rg-meter i { width: 14px; height: 5px; border-radius: 1px; background: var(--blue-2); }
.rg-suggest { display: grid; gap: 8px; padding: 14px 16px; border-radius: 6px; background: rgba(61, 111, 245, 0.1); border: 1px solid rgba(110, 147, 247, 0.32); }
.rg-suggest .label { color: var(--blue-2); }
.rg-suggest p { color: #fff; font-size: 16px; }
.rg-privacy { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.rg-privacy li { display: flex; align-items: center; gap: 11px; color: var(--fg-2); font-size: 14px; }
.rg-check { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); transition: background .35s var(--ease), border-color .35s var(--ease); }
.rg-check svg { width: 12px; height: 12px; fill: none; stroke: #0c0c0c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .45s var(--ease-out) .1s; }
.rg-privacy li.is-on .rg-check { background: var(--ok); border-color: var(--ok); }
.rg-privacy li.is-on .rg-check svg { stroke-dashoffset: 0; }
.rg-dots { width: 70px; height: 22px; margin-left: auto; }
/* staged reveal: visible at rest, brightens as each step lands */
.js .rg-row, .js .rg-suggest, .js .rg-privacy li { opacity: .32; transform: translateY(4px); transition: opacity .55s var(--ease), transform .7s var(--ease-out); }
.js .rg-row.is-on, .js .rg-suggest.is-on, .js .rg-privacy li.is-on { opacity: 1; transform: none; }
@media (max-width: 960px) {
  .rg-card { grid-template-columns: minmax(0, 1fr); }
  .rg-media { aspect-ratio: 16 / 11; min-height: 0; }
  .rg-media::after { background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 75%, rgba(17, 17, 17, 0.7)); }
}
@media (max-width: 520px) {
  .rg-panel { padding: 22px 18px 24px; gap: 18px; }
  .rg-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .rg-dots { display: none; }
}
@media (prefers-reduced-motion: reduce) { .js .rg-row, .js .rg-suggest, .js .rg-privacy li { opacity: 1; transform: none; } }
