/* Vision Engine: red-toned detection scene + supported games. Pure CSS, no assets. */
.engine-section{padding-block:112px 40px}
.engine-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:40px;margin-bottom:42px}
.engine-heading h2{font-size:clamp(36px,4.1vw,58px);letter-spacing:-2.6px;line-height:1.08;font-weight:750;margin-bottom:0}
.engine-heading h2 span{color:#ff7d89}
.engine-intro{max-width:380px;color:#a9a9b2;font-size:13px;line-height:1.9}.engine-intro p{margin:0}

.engine-panel{position:relative;border:1px solid #ff5a6a2e;border-radius:18px;background:#0d0a0b;overflow:hidden;box-shadow:0 0 70px #ff2d4a12,inset 0 1px 0 #ffffff12}
.engine-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;height:54px;padding:0 24px;border-bottom:1px solid #ffffff10;background:#120d0f}
.engine-brand{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:1.8px;color:#f6f5f2}.engine-brand svg{width:20px;height:20px;color:#ff5667}
.engine-tag{font-size:9px;letter-spacing:1.6px;color:#8d7f83;font-weight:600}

.eng-stage{--pink:#ff9ea6;position:relative;aspect-ratio:16/9;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 50% 58%,#4a1a22 0,#2a1015 38%,#150a0d 75%),#150a0d}
.eng-wall{position:absolute;left:22%;right:22%;top:12%;height:52%;background:linear-gradient(180deg,#ffffff0a,#ffffff03);border:1px solid #ff8d9a18;border-bottom:0}
.eng-wall::before,.eng-wall::after{content:"";position:absolute;top:0;bottom:0;width:1px;background:#ff8d9a18}.eng-wall::before{left:33%}.eng-wall::after{right:33%}
.eng-floor{position:absolute;inset:0;width:100%;height:100%;mask-image:linear-gradient(transparent 52%,#000 78%)}
.eng-floor path{stroke:#ff4a60;stroke-width:.14;opacity:.55;fill:none}
.eng-horizon{position:absolute;left:0;right:0;top:63%;height:1px;background:linear-gradient(90deg,transparent,#ff6d7d66,transparent)}
.eng-scan{position:absolute;top:0;bottom:0;width:18%;left:-18%;background:linear-gradient(90deg,transparent,#ff5a6a14 70%,#ff9ea635);border-right:1px solid #ff9ea655;animation:eng-sweep 7s linear infinite}
@keyframes eng-sweep{to{left:100%}}

.eng-hud{position:absolute;z-index:6;font-size:clamp(7px,.78vw,11px);letter-spacing:1.6px;font-weight:600;text-transform:uppercase}
.eng-hud-tl{left:3.4%;top:6%;color:#ffb3b9}.eng-hud-tl small{display:block;margin-top:7px;color:#ff8d9a80;font-size:.9em}
.eng-hud-tl::after{content:"";display:block;width:clamp(22px,3.4vw,48px);height:2px;margin-top:12px;background:#ff8d9a50}
.eng-hud-tr{right:3.4%;top:6%;color:#ff8d9a99}
.eng-hud-bl{left:3.4%;bottom:7%;display:flex;align-items:center;gap:9px;color:#ffc3c8;text-transform:none;letter-spacing:.4px;font-size:clamp(8px,.9vw,12px)}
.eng-hud-bl i{width:5px;height:5px;border-radius:50%;background:#ff4a60;box-shadow:0 0 10px #ff4a60;animation:eng-blink 1.6s ease-in-out infinite}
@keyframes eng-blink{50%{opacity:.25}}
.eng-count{right:3.4%;bottom:7%;color:#ff8d9a99}.eng-count b{color:#ffc3c8}


.eng-box{position:absolute;inset:0;border:1px solid var(--pink);box-shadow:0 0 18px #ff6d7d1f,inset 0 0 22px #ff6d7d0d;animation:eng-lock 3.6s ease-in-out infinite}
.eng-actor-2 .eng-box{animation-delay:-1.2s}.eng-actor-3 .eng-box{animation-delay:-2.2s}
@keyframes eng-lock{0%,100%{opacity:1}46%{opacity:1}50%{opacity:.55}54%{opacity:1}}
.eng-box i{position:absolute;width:12%;min-width:10px;max-width:22px;aspect-ratio:1;border:2px solid #ffd2d5}
.eng-box i:nth-child(1){left:-2px;top:-2px;border-right:0;border-bottom:0}
.eng-box i:nth-child(2){right:-2px;top:-2px;border-left:0;border-bottom:0}
.eng-box i:nth-child(3){left:-2px;bottom:-2px;border-right:0;border-top:0}
.eng-box i:nth-child(4){right:-2px;bottom:-2px;border-left:0;border-top:0}
.eng-label{position:absolute;left:-1px;bottom:100%;margin-bottom:6px;padding:3px 8px;background:var(--pink);color:#2a0d12;font-size:clamp(6px,.72vw,10px);font-weight:700;letter-spacing:1.2px;white-space:nowrap}

.engine-caption{display:flex;justify-content:space-between;gap:20px;padding-top:16px;color:#7c7c85;font-size:11px}.engine-caption p{margin:0}
.engine-caption a{color:#ff8d9a;font-weight:600}

/* Supported games */
.games-section{padding-block:56px 40px}
.games-head{max-width:700px;margin-bottom:34px}
.games-head h2{font-size:clamp(32px,3.6vw,50px);letter-spacing:-2.2px;line-height:1.08;font-weight:750;margin-bottom:14px}
.games-head h2 span{color:#ff7d89}
.games-head p{color:#a9a9b2;font-size:13px;line-height:1.9;margin:0}
.games-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;list-style:none;margin:0;padding:0}
.game-tile{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:18px;min-height:112px;padding:16px 18px;border:1px solid #ffffff12;border-radius:12px;background:linear-gradient(160deg,#1a1215,#0f0c0d);overflow:hidden;transition:border-color .2s,transform .2s,box-shadow .2s}
.game-tile::before,.game-tile::after{content:"";position:absolute;width:10px;height:10px;border:1.5px solid #ff7d8960;transition:border-color .2s}
.game-tile::before{right:10px;top:10px;border-left:0;border-bottom:0}.game-tile::after{left:10px;bottom:10px;border-right:0;border-top:0}
.game-tile:hover{border-color:#ff6d7d66;transform:translateY(-3px);box-shadow:0 10px 30px #ff2d4a18}.game-tile:hover::before,.game-tile:hover::after{border-color:#ffb3b9}
.game-tile span{font-size:9px;font-weight:700;letter-spacing:1.6px;color:#ff7d89}
.game-tile strong{font-size:clamp(15px,1.5vw,19px);font-weight:700;letter-spacing:-.4px;line-height:1.2}
.games-note{margin:18px 0 0;color:#7c7c85;font-size:11px}

@media(max-width:900px){.engine-heading{flex-direction:column;align-items:flex-start;gap:20px}.games-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.engine-section{padding-block:72px 24px}.eng-stage{aspect-ratio:4/3}.eng-hud-tl small,.eng-count{display:none}.engine-caption{flex-direction:column}.engine-toolbar{padding:0 16px}.engine-tag{display:none}}
html[data-motion="paused"] .eng-stage,html[data-motion="paused"] .eng-stage *{animation-play-state:paused!important}
@media(prefers-reduced-motion:reduce){.eng-stage *{animation:none!important}}

/* v2: game objects, pillars, chips, bundle card scene */
.eng-pillar{position:absolute;top:0;bottom:36%;width:9%;background:linear-gradient(90deg,#ffffff06,#ffffff0d 50%,#ffffff04);border-inline:1px solid #ff8d9a10}
.eng-pillar-l{left:6%}.eng-pillar-r{right:6%}
.eng-pillar::after{content:"";position:absolute;left:46%;top:14%;bottom:30%;width:2px;background:linear-gradient(transparent,#ff7d89aa,transparent);box-shadow:0 0 14px #ff4a60}
.eng-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(ellipse at 50% 62%,transparent 30%,#08040680 100%)}
.eng-objects{position:absolute;inset:0;z-index:3}
.eng-actor{position:absolute;aspect-ratio:var(--ar);animation:eng-drift var(--dur,8s) ease-in-out infinite alternate}
.eng-actor::before{content:"";position:absolute;left:-10%;right:-10%;bottom:-7%;height:12%;border-radius:50%;background:radial-gradient(#00000099,transparent 70%)}
.eng-actor.is-air{animation-name:eng-float}
.eng-obj{position:absolute;inset:0;width:100%;height:100%;color:#d9afb3;filter:drop-shadow(0 0 10px #ff4a6044)}
@keyframes eng-drift{from{transform:translateX(-35%)}to{transform:translateX(35%)}}
@keyframes eng-float{from{transform:translate(-30%,-6%)}to{transform:translate(30%,8%)}}
.eng-box{inset:-6%}
.eng-actor{animation:eng-drift var(--dur,8s) ease-in-out infinite alternate,eng-in .5s ease-out forwards}
.eng-actor.is-air{animation:eng-float var(--dur,8s) ease-in-out infinite alternate,eng-in .5s ease-out forwards}
@keyframes eng-in{from{opacity:0}}
.eng-chips{display:flex;flex-wrap:wrap;gap:8px;padding:14px 20px;border-top:1px solid #ffffff10;background:#120d0f}
.eng-chip{min-height:34px;padding:6px 14px;border:1px solid #ffffff1a;border-radius:999px;background:transparent;color:#a9a0a3;font-size:11px;font-weight:600;letter-spacing:.3px;transition:color .2s,border-color .2s,background .2s}
.eng-chip:hover{color:#fff;border-color:#ff7d8970}
.eng-chip[aria-pressed="true"]{color:#2a0d12;background:#ff9ea6;border-color:#ff9ea6}
.eng-chip:focus-visible{outline:2px solid #ffb3b9;outline-offset:3px}

.bundle-visual .bv-scene{position:absolute;z-index:-2;inset:0;background:radial-gradient(ellipse at 70% 60%,#4a1a22 0,#2a1015 40%,#150a0d 80%)}
.bv-scene .eng-floor{mask-image:linear-gradient(transparent 40%,#000 75%)}
.bv-scene .eng-actor{--pink:#ff9ea6}
.bundle-visual:hover .eng-actor{animation-play-state:paused}
@media(max-width:600px){.eng-chips{padding:12px 14px}.eng-chip{font-size:10px;padding:5px 11px}.eng-pillar{display:none}}
.bundle-visual .eng-obj{filter:none}

/* v3: cut-out characters lit by the scene */
.eng-chars{position:absolute;z-index:3;left:4%;right:4%;bottom:12%;top:17%;display:flex;align-items:flex-end;justify-content:center;gap:3.5%}
.eng-char{position:relative;margin:0;height:var(--h);flex:0 0 auto;isolation:isolate;animation:eng-bob 5s ease-in-out infinite alternate}
.eng-char:nth-child(2){animation-delay:-1.2s}.eng-char:nth-child(3){animation-delay:-2.4s}.eng-char:nth-child(4){animation-delay:-3.6s}
@keyframes eng-bob{from{transform:translateY(0)}to{transform:translateY(-2%)}}
.eng-char img{display:block;height:100%;width:auto;max-width:none;filter:saturate(.88) contrast(1.05) drop-shadow(0 0 1.5px #ff9ea6b0) drop-shadow(0 0 12px #ff3a5550) drop-shadow(0 6px 18px #0009);-webkit-mask-image:linear-gradient(#000 88%,transparent);mask-image:linear-gradient(#000 88%,transparent)}
.eng-char-fade img{-webkit-mask-image:linear-gradient(#000 76%,transparent);mask-image:linear-gradient(#000 76%,transparent)}
.eng-char-top img{-webkit-mask-image:linear-gradient(transparent,#000 5%,#000 88%,transparent);mask-image:linear-gradient(transparent,#000 5%,#000 88%,transparent)}
/* Hologram pass: scanlines + red light, clipped to the character's own alpha */
.eng-holo{position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;-webkit-mask:var(--src) center/100% 100% no-repeat;mask:var(--src) center/100% 100% no-repeat;
  background:linear-gradient(180deg,transparent 0 44%,#ffd2d550 50%,transparent 56%) 0 0/100% 300% no-repeat,repeating-linear-gradient(0deg,#ffb3b914 0 1px,transparent 1px 3px),linear-gradient(180deg,#ff6d7d0a,#ff2d4a24 75%,transparent);
  animation:eng-holo 4.5s linear infinite}
.eng-char:nth-child(2) .eng-holo{animation-delay:-.9s}.eng-char:nth-child(3) .eng-holo{animation-delay:-1.8s}.eng-char:nth-child(4) .eng-holo{animation-delay:-2.7s}.eng-char:nth-child(5) .eng-holo{animation-delay:-3.6s}
@keyframes eng-holo{from{background-position:0 100%,0 0,0 0}to{background-position:0 0,0 0,0 0}}
/* Emitter pad under the feet */
.eng-char::before{content:"";position:absolute;z-index:-1;left:50%;bottom:-4%;width:min(130%,190px);min-width:70px;aspect-ratio:5/1;transform:translateX(-50%);border-radius:50%;border:1px solid #ffb3b9aa;background:radial-gradient(closest-side,#ff6d7d88,#ff2d4a22 60%,transparent);box-shadow:0 0 22px #ff3a5577,inset 0 0 12px #ff9ea660}
.eng-char::after{content:"";position:absolute;z-index:-1;left:50%;bottom:-2%;width:min(110%,160px);height:45%;transform:translateX(-50%);background:radial-gradient(ellipse at 50% 100%,#ff4a6033,transparent 70%)}
.eng-char .eng-box{inset:-5% -8% -7%;z-index:2}
.eng-char .eng-label{z-index:3}
.eng-scan{z-index:4;mix-blend-mode:screen}
.eng-fog{position:absolute;z-index:4;left:0;right:0;bottom:0;height:17%;pointer-events:none;background:linear-gradient(180deg,transparent,#1d0b1080 50%,#140a0dd9)}
.eng-char:hover img{filter:saturate(1) contrast(1.05) brightness(1.05) drop-shadow(0 0 1.5px #ffb3b9) drop-shadow(0 0 16px #ff4a6077) drop-shadow(0 6px 18px #0009)}
.bv-char{position:absolute;bottom:34%;height:var(--h);animation-duration:7s}
.bv-char .eng-label{font-size:7px}
@media(max-width:600px){.eng-stage{aspect-ratio:auto;padding:84px 0 56px}.eng-chars{position:static;flex-wrap:wrap;justify-content:center;gap:34px 14px;padding:0 14px}.eng-char{height:150px!important}.eng-hud-bl{bottom:16px}}
