/* Contain the tilted hero artwork within the page at wide breakpoints. */
main:has(.round-preview){overflow-x:clip}
.round-preview{margin:12px 0 32px;scroll-margin:24px;padding:clamp(20px,4vw,56px);display:grid;grid-template-columns:.78fr 1.22fr;align-items:center;gap:clamp(20px,4vw,64px);border:1px solid #446750;border-radius:24px;background:radial-gradient(ellipse at 87% 0,#314e3999,transparent 62%),#14261d}
.round-preview h2{font:800 clamp(40px,5vw,68px)/.98 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.02em;text-transform:uppercase;margin:0 0 14px;color:#eff5e7}
.case-intro p,.round-steps p{margin:0;color:#bfd0c1;line-height:1.5}
.case-tools,.case-answer{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.case-tools{min-height:30px;margin-top:22px;font-size:14px;color:#e2eadf}.case-tools button{color:#ccf89c;border:0;border-bottom:1px solid currentColor;background:none;font:inherit;font-weight:600;padding:5px 0;cursor:pointer}
.case-board{min-width:0}.case-suspects{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px}
.case-suspects button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 4px;border-radius:14px;border:1px solid #536a58;background:#1c3125;color:#f0f6ec;cursor:pointer;font:inherit;min-width:0}
.case-suspects button:not([aria-disabled]):hover,.case-suspects button:not([aria-disabled]):focus-visible{border-color:#c2f58d;background:#27432e}
.round-preview button:focus-visible{outline:3px solid #e0ffaa;outline-offset:3px}
.case-suspects strong{font-size:clamp(15px,2vw,20px)}.case-suspects small{font-size:clamp(12px,1.25vw,15px);color:#c4d1c4;line-height:1.35}
.case-avatar::before,.case-avatar::after {display:block;background-position:left bottom;background-repeat:no-repeat;background-size:400% 100%}
.case-avatar {aspect-ratio:384/407}
.case-avatar {position:relative;width:min(100%,84px);margin:4px 0}
.case-avatar::before,.case-avatar::after {content:'';position:absolute;inset:0}
[data-suspect=noor] .case-avatar::before {background-image:url('/art/4.webp')}
[data-suspect=sam] .case-avatar::before {background-image:url('/art/10.webp')}
[data-suspect=alex] .case-avatar::before {background-image:url('/art/8.webp')}
[data-suspect=sam] .case-avatar::after {background:center bottom/contain no-repeat url('/art/alien-role.webp');opacity:0}
.case-suspects button {position:relative;transition:background-color .18s,border-color .18s,box-shadow .18s}
.case-suspects [aria-disabled=true] {cursor:default}
.solved [data-suspect=sam] {border-color:#bcf285;background:#354e2a;box-shadow:inset 0 0 0 1px #bcf285}
.solved [data-suspect=sam] .case-avatar::before {opacity:0}
.solved [data-suspect=sam] .case-avatar::after {opacity:1}
.solved .picked:not([data-suspect=sam]) {border-color:#e6bd8e}
.solved [data-suspect=sam]::after,.solved .picked:not([data-suspect=sam])::after {
  position:absolute;top:6px;right:6px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;
  font:800 14px/1 system-ui,sans-serif;content:'✓' / '';background:#bcf285;color:#203424
}
.solved .picked:not([data-suspect=sam])::after {content:'×' / '';background:#ebc69a;color:#392416}
.case-answer {min-height:44px;font-size:14px;color:#d8f7b9;margin-top:6px}
.case-replay {
  margin-left:auto; display:grid; place-items:center; width:44px; height:44px;
  border:1px solid #526b54; border-radius:50%; background:#213829; color:#ccf89c; cursor:pointer
}
.case-replay[hidden] {display:none}
.case-replay:hover,.case-replay:focus-visible {border-color:#bcf285;background:#304b35}
@media (prefers-reduced-motion:no-preference) {
  .case-replay svg {transition:transform .2s ease-out}
  .case-replay:is(:hover,:focus-visible) svg {transform:rotate(-24deg)}
}
.case-cursor {display:none}
@media (prefers-reduced-motion:no-preference) {
  .case-suspects button:not([aria-disabled]):active {transform:scale(.97)}
  .case-cursor {
    pointer-events:none;position:absolute;z-index:2;left:58%;top:57%;width:24px;height:29px;
    transform-origin:top left;filter:drop-shadow(0 2px 3px #08140cc9)
  }
  .case-cursor::before,.case-cursor::after {
    content:'';position:absolute;inset:0;background:#14271a;
    clip-path:polygon(0 0,99% 53%,61% 62%,80% 90%,63% 100%,43% 69%,20% 91%)
  }
  .case-cursor::after {inset:3px 4px 4px 3px;background:#f6ffe7}
  .demonstrating .case-cursor {display:block;animation:case-aim var(--case-travel) both}
  .pressing .case-cursor {animation:case-press var(--case-click) both}
  .pressing [data-suspect=sam] {border-color:#c3ed99;animation:case-card-press var(--case-click) both}
  .pressing [data-suspect=sam]::before {
    content:'';position:absolute;z-index:1;left:58%;top:57%;width:26px;height:26px;
    border:2px solid #d9ffb4;border-radius:50%;pointer-events:none;animation:case-click-ring var(--case-click) both
  }
  .demo-result .case-cursor {display:block;animation:case-cursor-away .25s both}
  .solved [data-suspect=sam] .case-avatar::before {animation:case-disguise-out .18s ease-in both}
  .solved [data-suspect=sam] .case-avatar::after {animation:case-alien-in .32s .14s cubic-bezier(.2,.7,.2,1) both}
  .solved [data-suspect=sam]::after {animation:case-mark-in .2s .24s both}
  .solved .case-answer strong {animation:case-answer-in .25s .16s both}
}
@keyframes case-aim {
  0% {opacity:0;transform:translate(clamp(42px,9vw,112px),38px) rotate(10deg)}
  18% {opacity:1}
  58% {transform:translate(17px,0) rotate(-5deg)}
  84% {transform:translate(-2px,-2px) rotate(-1deg)}
  100% {opacity:1;transform:none}
}
@keyframes case-press {0%,100%{transform:none} 38%,58%{transform:scale(.83) translateY(2px)}}
@keyframes case-card-press {0%,100%{transform:none} 38%,58%{transform:translateY(2px) scale(.975)}}
@keyframes case-click-ring {0%,25%{opacity:0;transform:translate(-50%,-50%) scale(.2)} 40%{opacity:.9} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.22)}}
@keyframes case-cursor-away {from{opacity:1;transform:none} to{opacity:0;transform:translate(8px,5px)}}
@keyframes case-disguise-out {from{opacity:1;transform:scaleX(1)} to{opacity:0;transform:scaleX(.08)}}
@keyframes case-alien-in {from{opacity:0;transform:scale(.12,.93)} to{opacity:1;transform:none}}
@keyframes case-mark-in {from{opacity:0;transform:scale(.8)} to{opacity:1;transform:none}}
@keyframes case-answer-in {from{opacity:0;transform:translateY(3px)} to{opacity:1;transform:none}}
/* Three chat messages paired with captures from the host's board. */
.connect[href^="/auth/login"] {background:#772ce8;color:white;box-shadow:0 6px 30px #772ce820}
.connect[href^="/auth/login"]:hover {background:#9147ff}
.twitch-glitch {object-fit:contain}
.connect[href="/host"] .twitch-glitch {display:none}
.round-steps {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.5vw,34px);padding:8px 0 48px
}
.round-visual {overflow:hidden;border:1px solid #405648;border-radius:16px;background:#17271d}
.round-visual > img,.round-field,.round-visual video {width:100%;height:auto;aspect-ratio:16/9;display:block;object-fit:cover;background:#e4edcf}
/* Keep the shared field visible behind the private role on the phone. */
.round-join-scene {position:relative;overflow:hidden;isolation:isolate;container-type:inline-size}
.round-field {filter:blur(1.1px);transform:scale(1.025)}
.role-phone {
  position:absolute;right:9%;top:6%;width:30%;height:89%;box-sizing:border-box;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3%;
  transform:rotate(8deg);transform-origin:center;
  border:4px solid #263c31;border-radius:15% / 10%;background:#f5f7ed;color:#283e30;
  box-shadow:2px 4px 0 #17281e,5px 9px 14px #16261940,inset 0 0 0 2px #c2ceae
}
.phone-speaker {position:absolute;top:4%;width:22%;height:2%;border-radius:9px;background:#32483a}
.phone-role-label {font:700 clamp(9px,3cqw,15px)/1.15 system-ui,sans-serif;text-align:center}
.role-phone .phone-alien {display:block;width:56%;height:43%;object-fit:contain}
.role-phone strong {font:800 clamp(16px,5.6cqw,28px)/1 system-ui,sans-serif}
.role-phone::after {content:'';position:absolute;bottom:4%;width:28%;height:2%;background:#94a589;border-radius:9px}
.round-chat {
  display:flex;align-items:baseline;gap:10px;padding:10px 14px;
  background:#192a20;color:#edf4e8;font:500 14px/1.4 system-ui,sans-serif
}
.round-chat b {color:#d8afff}
.round-chat code {font:600 1em/1.4 ui-monospace,monospace}
.round-steps h2 {font-size:clamp(20px,2vw,25px);line-height:1.15;margin:14px 0 6px}
.round-steps p {font-size:15px;max-width:38ch}
@media(max-width:760px) {
  .round-preview {grid-template-columns:1fr;gap:17px}
  .case-tools {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:2.8em;margin-top:8px}
  .case-watch[hidden] {display:inline-block;visibility:hidden}
  .case-answer {display:grid;grid-template-columns:1fr auto;gap:8px;min-height:3.75em;line-height:1.45}
  .round-steps {grid-template-columns:1fr;gap:26px;max-width:520px;margin:auto}
  .round-steps h2 {margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.round-preview *, .round-preview *::before, .round-preview *::after {animation:none!important;transition:none!important}.case-cursor{display:none!important}}
