/* Gameplay: the five mock apps, the decision panel and the feedback page.
   The mocks deliberately use a neutral system look so they feel like real
   software (a mail client, a phone, a call, a chat) and not like this product. */

.stage { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 22px; align-items: start; }
.stage-side { position: sticky; top: 20px; }
.stage-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.brief { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }

.mock { --m-bg: #fdfcfa; --m-bg2: #f3f0ea; --m-line: #e0dad0; --m-text: #1d1b19; --m-muted: #6a655d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--m-text); }
.mock a { color: inherit; }

/* ------------------------------------------------------------- email client */
.mail { background: var(--m-bg); border-radius: var(--radius-m); border: 1px solid var(--m-line); overflow: hidden; position: relative; }
.mail-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--m-bg2); border-bottom: 1px solid var(--m-line); font-size: 0.8rem; color: var(--m-muted); }
.mail-bar .dots { display: flex; gap: 5px; }
.mail-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d3cdc2; }
.mail-subject { padding: 16px 20px 6px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.mail-from { display: flex; gap: 12px; padding: 8px 20px 14px; align-items: center; border-bottom: 1px solid var(--m-line); }
.mail-from .av { width: 40px; height: 40px; border-radius: 50%; background: #c9c2b6; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.mail-from .meta { min-width: 0; flex: 1; font-size: 0.9rem; line-height: 1.35; }
.mail-from .meta b { font-weight: 600; }
.mail-from .meta span { color: var(--m-muted); overflow-wrap: anywhere; }
.mail-toggle { background: none; border: 1px solid var(--m-line); color: var(--m-muted); border-radius: 5px; padding: 4px 9px; font: 600 0.76rem system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.mail-toggle:hover { background: var(--m-bg2); }
.mail-headers { margin: 0; padding: 12px 20px; background: #2a2825; color: #e8e3da; font: 0.78rem/1.7 var(--font-mono); border-bottom: 1px solid var(--m-line); overflow-x: auto; }
.mail-headers div { white-space: nowrap; }
.mail-headers .k { color: #a39d92; display: inline-block; min-width: 112px; }
.mail-headers .fail { color: #ff8a80; }
.mail-headers .pass { color: #7ed3a4; }
.mail-headers .none { color: #f0c36c; }
.mail-body { padding: 20px; font-size: 0.97rem; line-height: 1.65; }
.mail-body p { margin: 0 0 12px; }
.mail-link { display: inline-block; background: #2b6fd6; color: #fff !important; padding: 9px 18px; border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; font-size: 0.93rem; font-family: inherit; }
.attach { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--m-line); background: var(--m-bg2); padding: 8px 12px; border-radius: 8px; font-size: 0.86rem; margin-top: 14px; }
.attach .i { color: var(--m-muted); }
.attach small { color: var(--m-muted); }
.statusbar { position: absolute; left: 0; bottom: 0; max-width: 100%; background: #efece6; color: #2a2825; font: 0.78rem/1 var(--font-mono); padding: 6px 10px; border-top: 1px solid var(--m-line); border-right: 1px solid var(--m-line); border-radius: 0 6px 0 0; opacity: 0; transform: translateY(100%); transition: 0.15s; pointer-events: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statusbar.on { opacity: 1; transform: none; }

/* ------------------------------------------------------------- phone + call */
.phone { width: min(340px, 100%); margin: 0 auto; background: #121316; border-radius: 34px; padding: 12px; border: 1px solid #000; box-shadow: 0 0 0 2px #2d3036 inset; }
.phone-screen { background: #1b1e24; border-radius: 24px; min-height: 540px; padding: 28px 22px 24px; color: #f1eee8; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.phone-time { text-align: center; font-size: 0.78rem; color: #8d8f96; margin-bottom: 26px; }
.caller { text-align: center; }
.caller .big-av { width: 84px; height: 84px; border-radius: 50%; background: #343841; margin: 0 auto 14px; display: grid; place-items: center; font-size: 1.8rem; font-weight: 600; }
.caller .label { font-size: 0.82rem; color: #8d8f96; }
.caller .name { font-size: 1.4rem; font-weight: 600; margin: 4px 0; }
.caller .num { font-family: var(--font-mono); color: #b5b7be; font-size: 0.95rem; }
.caller .reason { margin-top: 14px; font-size: 0.86rem; color: #9ea1a9; }
.call-actions { margin-top: auto; display: flex; justify-content: space-around; padding-top: 28px; }
.call-actions button { width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; }
.call-actions .answer { background: #34a56d; }
.call-actions .decline { background: #d24b43; opacity: 0.5; cursor: not-allowed; }
.call-log { display: none; flex-direction: column; gap: 9px; margin-top: 14px; max-height: 330px; overflow-y: auto; }
.phone-screen.answered .call-log { display: flex; }
.phone-screen.answered .caller .reason, .phone-screen.answered .call-actions { display: none; }
.phone-screen.answered .caller .big-av { width: 52px; height: 52px; font-size: 1.1rem; margin-bottom: 8px; }
.phone-screen.answered .caller .name { font-size: 1.05rem; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.bubble small { display: block; font-size: 0.7rem; opacity: 0.65; margin-bottom: 2px; }
.bubble.them { background: #2c3038; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.you { background: #2b6fd6; align-self: flex-end; border-bottom-right-radius: 4px; }

/* ------------------------------------------------------------- video call */
.vc { background: #15171b; color: #eee9e1; border-radius: var(--radius-m); overflow: hidden; border: 1px solid #000; }
.vc-top { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: #1e2127; font-size: 0.8rem; color: #a3a6ad; }
.vc-stage { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(circle at 50% 38%, #3a3f48, #1c1f25 70%); display: grid; place-items: center; }
.vc-person { text-align: center; }
.vc-person .face { width: 96px; height: 96px; border-radius: 50%; background: #4a505b; margin: 0 auto 10px; display: grid; place-items: center; font-size: 2.2rem; font-weight: 600; filter: blur(0.6px); }
.vc-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(0, 0, 0, 0.55); padding: 4px 10px; border-radius: 6px; font-size: 0.82rem; }
.vc-bad { position: absolute; right: 12px; top: 12px; background: rgba(0, 0, 0, 0.55); padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; color: #f0c36c; display: flex; gap: 6px; align-items: center; }
.vc-self { position: absolute; right: 12px; bottom: 12px; width: 92px; aspect-ratio: 4 / 3; background: #2e323a; border-radius: 8px; border: 1px solid #454a54; display: grid; place-items: center; font-size: 0.74rem; color: #a3a6ad; }
.vc-context { padding: 10px 16px; background: #20242a; font-size: 0.84rem; color: #b6b9c0; border-top: 1px solid #2c3037; }
.vc-captions { padding: 14px 16px 16px; display: grid; gap: 10px; max-height: 300px; overflow-y: auto; }
.vc-captions .cap { font-size: 0.9rem; line-height: 1.45; }
.vc-captions .cap b { color: #ff9a5c; font-weight: 600; margin-right: 6px; }
.vc-captions .cap.you b { color: #8fb7ee; }

/* ------------------------------------------------------------- QR scene */
.scene { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: var(--radius-m); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.scene .story { font-size: 1rem; line-height: 1.6; }
.scene .where { font-size: 0.84rem; color: var(--m-muted); margin-top: 8px; }
.scene .qr-card { background: #fff; padding: 12px; border: 1px solid var(--m-line); border-radius: 8px; text-align: center; }
.scene .qr-card img { display: block; width: 150px; height: 150px; image-rendering: pixelated; }
.scene .qr-card small { color: var(--m-muted); display: block; margin-top: 6px; font-size: 0.74rem; }
.scan-wrap { margin-top: 18px; display: flex; justify-content: center; }
.addr-card { margin-top: 12px; background: #262a31; border-radius: 12px; padding: 12px 14px; color: #f1eee8; }
.addr-card .small { color: #9ea1a9; font-size: 0.74rem; }
.addr-card .url { font-family: var(--font-mono); font-size: 0.8rem; word-break: break-all; margin-top: 3px; }
.addr-card .host { color: #ff9a5c; font-weight: 600; }
.viewfinder { border: 2px dashed #5b606b; border-radius: 14px; aspect-ratio: 1; display: grid; place-items: center; color: #8d8f96; font-size: 0.86rem; margin: 6px 0 12px; }

/* ------------------------------------------------------------- DM thread */
.dm { background: var(--m-bg); border: 1px solid var(--m-line); border-radius: var(--radius-m); overflow: hidden; }
.dm-head { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--m-line); background: var(--m-bg2); }
.dm-head .av { width: 52px; height: 52px; border-radius: 50%; background: #c9c2b6; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 1.2rem; flex: none; }
.dm-head .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dm-head .handle { color: var(--m-muted); font-size: 0.88rem; }
.dm-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--m-muted); margin-top: 4px; }
.verified { color: #2b6fd6; }
.dm-thread { padding: 18px; display: grid; gap: 10px; background: var(--m-bg); }
.dm-note { text-align: center; font-size: 0.76rem; color: var(--m-muted); }
.dm-msg { background: #e9e5dc; border-radius: 16px 16px 16px 4px; padding: 11px 14px; max-width: 88%; line-height: 1.55; }
.dm-link { display: block; margin-top: 10px; border: 1px solid var(--m-line); border-radius: 10px; padding: 10px 12px; background: #fff; max-width: 88%; font-size: 0.86rem; }
.dm-link .t { font-weight: 600; }
.dm-link .h { color: var(--m-muted); font-family: var(--font-mono); font-size: 0.78rem; }

/* ------------------------------------------------------------- decision panel */
.decision { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 18px 20px; }
.decision-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.decision-head h2 { margin: 0; }
.timer { font-family: var(--font-mono); font-size: 0.95rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.decision .lead { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.verdicts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.verdict-opt { position: relative; }
.verdict-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.verdict-opt span { display: flex; flex-direction: column; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--bg); transition: border-color 0.15s, background 0.15s; }
.verdict-opt b { font-family: var(--font-head); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.verdict-opt small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.verdict-opt input:checked + span { border-color: var(--ember); background: var(--ember-soft); }
.verdict-opt input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.step-title { font-weight: 600; font-size: 0.92rem; margin: 18px 0 8px; display: flex; justify-content: space-between; }
.step-title small { color: var(--muted); font-weight: 400; }
.flag-item { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg); margin-bottom: 8px; }
.flag-item label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; font-size: 0.9rem; font-weight: 500; line-height: 1.4; }
.flag-item.on { border-color: var(--ember); background: var(--ember-soft); }
.flag-item .why { display: none; padding: 0 12px 12px 39px; }
.flag-item.on .why { display: block; }
.flag-item .why textarea { min-height: 54px; font-size: 0.86rem; }
.conf { display: flex; gap: 8px; flex-wrap: wrap; }
.conf label { cursor: pointer; }
.conf input { position: absolute; opacity: 0; }
.conf span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 0.86rem; font-weight: 600; color: var(--muted); background: var(--bg); }
.conf input:checked + span { border-color: var(--ember); color: var(--ember); background: var(--ember-soft); }
.conf input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.decision .submit-row { margin-top: 20px; }

/* ------------------------------------------------------------- feedback */
.result-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.score-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--ring, var(--ember)) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-family: var(--font-mono); font-size: 2rem; font-weight: 500; }
.score-ring.good { --ring: var(--good); }
.score-ring.bad { --ring: var(--bad); }
.verdict-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-m); margin-bottom: 16px; }
.verdict-banner.good { background: var(--good-soft); }
.verdict-banner.bad { background: var(--bad-soft); }
.verdict-banner h2 { margin: 0 0 2px; font-size: 1.1rem; }
.verdict-banner p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.verdict-banner.good .i { color: var(--good); }
.verdict-banner.bad .i { color: var(--bad); }
.parts { display: grid; gap: 10px; margin-top: 14px; }
.part { display: grid; grid-template-columns: 110px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 0.86rem; }
.part .num { font-family: var(--font-mono); text-align: right; color: var(--muted); }
.part .bar { margin: 0; }

.evidence { display: grid; gap: 10px; }
.evi { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.evi .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.evi.caught .mark { background: var(--good-soft); color: var(--good); }
.evi.missed .mark { background: var(--bad-soft); color: var(--bad); }
.evi.false .mark { background: var(--warn-soft); color: var(--warn); }
.evi h3 { margin: 0 0 3px; font-size: 0.97rem; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.evi p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.evi code { display: inline-block; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 3px 8px; font-size: 0.8rem; word-break: break-all; color: var(--text); }
.evi .where { font-size: 0.78rem; color: var(--faint); display: block; margin-bottom: 4px; }

.analyst { margin-top: 4px; }
.analyst-log { display: grid; gap: 10px; margin-bottom: 12px; }
.analyst-log .q { justify-self: end; background: var(--ember-soft); padding: 8px 12px; border-radius: 12px 12px 4px 12px; max-width: 90%; font-size: 0.9rem; }
.analyst-log .a { background: var(--surface-2); padding: 10px 14px; border-radius: 12px 12px 12px 4px; max-width: 94%; font-size: 0.92rem; }
.analyst-form { display: flex; gap: 8px; }
.analyst-form input { flex: 1; }

@media (max-width: 1080px) {
  .stage { grid-template-columns: 1fr; }
  .stage-side { position: static; }
}
@media (max-width: 520px) {
  .verdicts { grid-template-columns: 1fr; }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .part { grid-template-columns: 90px minmax(0, 1fr) 46px; }
  .scene { grid-template-columns: 1fr; justify-items: center; }
}
