/* אמיתי או AI? — game styles (kit tokens come from ../_kit/wall.css) */

:root {
  --roa-ai: #8B5CF6;
  --roa-ai-2: #4F7CF7;
  --roa-clue: #FBBF24;
  --roa-clue-soft: #FDE68A;
  --roa-real: #F4F7FB;
  --roa-team: #38BDF8;
}

html.wall-is-paused .roa-frame,
html.wall-is-paused .roa-frame * { animation-play-state: paused !important; }

/* ---------- question bar ---------- */
.roa-ask {
  position: absolute;
  top: 126px;
  left: 70px;
  width: 1460px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
}
.roa-ask-cat {
  flex: none;
  padding: 7px 18px 8px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.10);
  font-family: var(--wall-font-head);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: #9EDCFB;
}
.roa-ask-name {
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  color: var(--wall-ink);
  white-space: nowrap;
}
.roa-ask-sep {
  width: 2px;
  height: 34px;
  background: rgba(244, 247, 251, 0.18);
  flex: none;
}
.roa-ask-q {
  font-family: var(--wall-font-head);
  font-weight: 600;
  font-size: 32px;
  color: rgba(244, 247, 251, 0.72);
  white-space: nowrap;
}
.roa-ask-q b { color: #C4B5FD; font-weight: 800; }
.roa-dots {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  direction: rtl;
}
.roa-dots i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(244, 247, 251, 0.26);
  box-sizing: border-box;
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}
.roa-dots i.is-now { border-color: var(--roa-team); box-shadow: 0 0 14px rgba(56, 189, 248, 0.8); transform: scale(1.15); }
.roa-dots i.is-good { background: var(--wall-good); border-color: var(--wall-good); box-shadow: 0 0 12px rgba(52, 211, 153, 0.6); }
.roa-dots i.is-bad { background: var(--wall-bad); border-color: var(--wall-bad); box-shadow: 0 0 12px rgba(244, 63, 94, 0.55); }

/* ---------- frames ---------- */
.roa-frame {
  position: absolute;
  top: 206px;
  width: 700px;
  height: 525px;
  opacity: 0;
  --fc: rgba(56, 189, 248, 0.0);
}
.roa-frame.is-right { left: 830px; }
.roa-frame.is-left { left: 70px; }

.roa-pic {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0B1730;
  box-shadow:
    0 0 0 2px rgba(244, 247, 251, 0.14),
    0 28px 70px rgba(0, 0, 0, 0.55);
  transition: box-shadow 260ms ease, filter 400ms ease;
}
.roa-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
}

/* viewfinder corners */
.roa-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 4px solid rgba(56, 189, 248, 0.0);
  pointer-events: none;
  transition: border-color 300ms ease;
}
.roa-corner.c1 { top: -14px; right: -14px; border-left: none; border-bottom: none; border-top-right-radius: 18px; }
.roa-corner.c2 { top: -14px; left: -14px; border-right: none; border-bottom: none; border-top-left-radius: 18px; }
.roa-corner.c3 { bottom: -14px; right: -14px; border-left: none; border-top: none; border-bottom-right-radius: 18px; }
.roa-corner.c4 { bottom: -14px; left: -14px; border-right: none; border-top: none; border-bottom-left-radius: 18px; }
.roa-frame.is-armed .roa-corner {
  border-color: rgba(56, 189, 248, 0.85);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.8));
  animation: roa-corner-pulse 1.6s ease-in-out infinite;
}
@keyframes roa-corner-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.roa-frame.is-chosen .roa-pic {
  box-shadow:
    0 0 0 5px var(--roa-team),
    0 0 46px rgba(56, 189, 248, 0.55),
    0 28px 70px rgba(0, 0, 0, 0.55);
}
.roa-frame.is-ai-revealed .roa-pic {
  box-shadow:
    0 0 0 4px var(--roa-ai),
    0 0 54px rgba(139, 92, 246, 0.55),
    0 28px 70px rgba(0, 0, 0, 0.55);
}
.roa-frame.is-real-revealed .roa-pic {
  box-shadow:
    0 0 0 3px rgba(244, 247, 251, 0.75),
    0 28px 70px rgba(0, 0, 0, 0.55);
}
.roa-frame.is-chosen.is-ai-revealed .roa-pic,
.roa-frame.is-chosen.is-real-revealed .roa-pic {
  box-shadow:
    0 0 0 5px var(--mark-c, var(--roa-team)),
    0 0 54px color-mix(in srgb, var(--mark-c, var(--roa-team)) 55%, transparent),
    0 28px 70px rgba(0, 0, 0, 0.55);
}

/* scan sweep over the AI frame on reveal */
.roa-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.0) 30%, rgba(167, 139, 250, 0.55) 92%, rgba(237, 233, 254, 0.95) 100%);
  border-bottom: 2px solid #EDE9FE;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.7);
  opacity: 0;
  pointer-events: none;
}

/* verdict pill */
.roa-verdict {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px 10px;
  border-radius: 999px;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}
.roa-verdict svg { width: 28px; height: 28px; flex: none; }
.roa-verdict.is-ai {
  color: #fff;
  background: linear-gradient(90deg, var(--roa-ai), var(--roa-ai-2));
  box-shadow: 0 0 0 4px rgba(6, 15, 31, 0.45), 0 0 34px rgba(139, 92, 246, 0.7);
}
.roa-verdict.is-real {
  color: #060F1F;
  background: rgba(244, 247, 251, 0.96);
  box-shadow: 0 0 0 4px rgba(6, 15, 31, 0.45), 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* caption strip */
.roa-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 46px 26px 16px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, transparent, rgba(4, 10, 22, 0.82) 42%, rgba(4, 10, 22, 0.94));
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  color: rgba(244, 247, 251, 0.86);
  text-align: right;
  opacity: 0;
}
.roa-strip b {
  display: block;
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 23px;
  color: #fff;
  margin-bottom: 2px;
}
.roa-strip bdi { white-space: nowrap; }
.roa-strip.is-source {
  box-shadow: inset 0 0 0 3px rgba(56, 189, 248, 0.9);
  background: linear-gradient(180deg, rgba(4, 10, 22, 0.2), rgba(8, 40, 70, 0.92) 42%, rgba(6, 30, 56, 0.97));
}
.roa-strip.is-source b { color: #9EDCFB; }

/* correct / wrong mark on the chosen frame */
.roa-mark {
  position: absolute;
  top: -30px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 3;
}
.roa-frame.is-right .roa-mark { right: -30px; }
.roa-frame.is-left .roa-mark { left: -30px; }
.roa-mark.is-good { background: var(--wall-good); box-shadow: 0 0 0 6px rgba(6, 15, 31, 0.7), 0 0 36px rgba(52, 211, 153, 0.85); }
.roa-mark.is-bad { background: var(--wall-bad); box-shadow: 0 0 0 6px rgba(6, 15, 31, 0.7), 0 0 36px rgba(244, 63, 94, 0.85); }
.roa-mark svg { width: 54px; height: 54px; }

/* twist stamp */
.roa-stamp {
  position: absolute;
  left: 50%;
  top: 46%;
  padding: 14px 34px 18px;
  border-radius: 20px;
  border: 5px solid var(--roa-clue);
  background: rgba(6, 15, 31, 0.78);
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.05;
  color: var(--roa-clue-soft);
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(251, 191, 36, 0.6);
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.35);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

/* clue: ring on the detail + magnifier */
.roa-lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.roa-lens svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.roa-lens line {
  stroke: var(--roa-clue);
  stroke-width: 3;
  stroke-dasharray: 9 7;
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.8));
}
.roa-ring {
  position: absolute;
  width: 112px;
  height: 112px;
  margin: -56px 0 0 -56px;
  border-radius: 50%;
  border: 4px solid var(--roa-clue);
  box-shadow: 0 0 0 3px rgba(6, 15, 31, 0.55), 0 0 26px rgba(251, 191, 36, 0.75), inset 0 0 18px rgba(251, 191, 36, 0.35);
  opacity: 0;
}
.roa-loupe {
  position: absolute;
  width: 236px;
  height: 236px;
  margin: -118px 0 0 -118px;
  box-sizing: border-box;
  border-radius: 50%;
  background-color: #0B1730;
  background-repeat: no-repeat;
  border: 5px solid var(--roa-clue);
  box-shadow: 0 0 0 4px rgba(6, 15, 31, 0.72), 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 36px rgba(251, 191, 36, 0.45);
  opacity: 0;
}
.roa-loupe-tag {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  padding: 3px 12px 4px;
  border-radius: 999px;
  background: var(--roa-clue);
  color: #1a1203;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 18px;
  direction: ltr;
  white-space: nowrap;
}

/* ---------- hint line (during play) ---------- */
.roa-hint {
  position: absolute;
  left: 70px;
  top: 770px;
  width: 1460px;
  text-align: center;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 28px;
  color: rgba(244, 247, 251, 0.6);
  opacity: 0;
}
.roa-hint b { color: rgba(244, 247, 251, 0.92); font-weight: 700; }

/* ---------- clue panel ---------- */
.roa-clue {
  position: absolute;
  left: 70px;
  top: 752px;
  width: 1460px;
  height: 172px;
  box-sizing: border-box;
  padding: 0 40px 0 44px;
  border-radius: 26px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  column-gap: 30px;
  background: linear-gradient(90deg, rgba(14, 28, 58, 0.95), rgba(9, 18, 40, 0.95));
  border: 1px solid color-mix(in srgb, var(--k, #FBBF24) 45%, transparent);
  box-shadow: 0 0 60px color-mix(in srgb, var(--k, #FBBF24) 14%, transparent), 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  --k: var(--roa-clue);
}
.roa-clue.is-twist { --k: #C4B5FD; }
.roa-clue.is-source { --k: #38BDF8; }
.roa-clue-icon {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--k) 14%, transparent);
  border: 2px solid color-mix(in srgb, var(--k) 60%, transparent);
  box-shadow: 0 0 28px color-mix(in srgb, var(--k) 30%, transparent);
  color: var(--k);
}
.roa-clue-icon svg { width: 58px; height: 58px; }
.roa-clue-body { min-width: 0; }
.roa-clue-k {
  font-family: var(--wall-font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.08em;
  color: var(--k);
}
.roa-clue-t {
  margin-top: 2px;
  font-family: var(--wall-font-head);
  font-weight: 800;
  font-size: 38px;
  line-height: 1.12;
  color: var(--wall-ink);
}
.roa-clue-x {
  margin-top: 6px;
  font-family: var(--wall-font-body);
  font-weight: 500;
  font-size: 25px;
  line-height: 1.36;
  color: rgba(244, 247, 251, 0.84);
  text-wrap: pretty;
}
