.games-section{position:relative;isolation:isolate;overflow:hidden;margin-top:128px;padding:94px 0 72px;scroll-margin-top:120px;border-block:1px solid #42354f;background:#eeeaf5;color:#21182b}
.games-ambient{position:absolute;inset:-10%;z-index:-1;pointer-events:none;opacity:0;filter:blur(34px) saturate(.9);transition:opacity 850ms ease}
.games-ambient.is-visible{opacity:1}
.games-shell{position:relative;z-index:1;width:100%;margin-inline:auto}
.games-heading,.games-gallery-head{width:min(1120px,calc(100% - 88px));margin-inline:auto}
.games-heading{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:end;gap:22px 65px}
.games-eyebrow{grid-column:1/-1;color:#554575;font-size:10px;font-weight:800;letter-spacing:.21em;text-transform:uppercase}
.games-heading h2{font-family:var(--display);font-size:clamp(64px,7vw,98px);font-weight:600;letter-spacing:-.05em;line-height:.9;max-width:780px;text-wrap:balance}
.games-heading-side p{color:#4e4558;font-size:14px;line-height:1.75}
.games-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:38px;padding-top:16px;border-top:1px solid #554b6660}
.games-counter{direction:ltr;unicode-bidi:isolate;font-size:12px;font-weight:800;letter-spacing:.18em;color:#2b2235;font-variant-numeric:tabular-nums}
.games-gallery-actions{display:flex;gap:8px}
.games-gallery-actions button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #726580;border-radius:50%;background:#ffffff70;color:#2b2035;font-size:22px;line-height:1;transition:background .2s,transform .2s}
.games-gallery-actions button:hover:not(:disabled){background:#fff;transform:translateY(-2px)}
.games-gallery-actions button:disabled{opacity:.4;cursor:default}
.games-track{position:relative;width:100%;height:640px;overflow:hidden;perspective:1800px;transform-style:preserve-3d;touch-action:pan-y;cursor:grab;outline:none}
.games-track:active{cursor:grabbing}
.games-track:focus-visible{outline:2px solid #43335c;outline-offset:-7px}
.game-card{position:absolute;top:50%;left:50%;width:320px;height:520px;overflow:hidden;border:1px solid #ffffffc4;border-radius:20px;background:#130d23;box-shadow:0 28px 50px #20123149,0 2px 5px #140b2229;backface-visibility:hidden;transform-origin:center center;transition:transform 680ms cubic-bezier(.2,.75,.16,1),opacity 680ms ease,box-shadow 350ms ease;cursor:pointer;contain:layout paint}
.game-card.is-current{box-shadow:0 35px 70px #24133168,0 0 0 2px #ffffff96}
.game-card-visual{position:absolute;inset:0;background:#18112f}
.game-card-visual::after{content:"";position:absolute;inset:50% 0 0;pointer-events:none;background:linear-gradient(transparent,#07071186 48%,#090812ef)}
.game-card-image{width:100%;height:100%;object-fit:cover;object-position:center}
.game-card-monogram{display:grid;place-items:center;height:100%;font-family:var(--display);font-size:100px;color:#a9b9ff}
.game-card-index{position:absolute;z-index:1;top:17px;left:17px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffffba;border-radius:50%;background:#0a08259c;color:white;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.game-card-body{position:absolute;z-index:2;inset:auto 0 0;display:flex;flex-direction:column;gap:8px;padding:34px 22px 21px;color:white;opacity:0;transform:translateY(12px);transition:opacity 350ms ease,transform 350ms ease;pointer-events:none}
.game-card.is-current .game-card-body{opacity:1;transform:none;pointer-events:auto}
.game-card-genre{font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#d7d2f2}
.game-card h3{font-family:var(--display);font-size:32px;font-weight:600;letter-spacing:-.02em;line-height:1.02;text-wrap:balance}
.game-card-tagline{font-size:11px;line-height:1.4;color:#e6e0ee}
.game-card-play{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin-top:7px;padding:10px 14px;border-radius:9px;background:#fff;color:#21172c;font-size:12px;font-weight:800;transition:background .2s,transform .2s}
.game-card-play:hover{background:#e8ddff;transform:translateY(-2px)}
.games-hint{margin-top:-10px;color:#5c5267;font-size:11px;text-align:center}
[dir=rtl] .games-eyebrow{letter-spacing:0;font-size:14px}
[dir=rtl] .games-heading h2{font-family:Thmanyah,serif;font-size:clamp(45px,6vw,80px);letter-spacing:0;line-height:1.17}
[dir=rtl] .games-heading-side p{font-size:17px;line-height:1.6}
[dir=rtl] .game-card h3{font-family:Thmanyah,serif;font-size:31px;letter-spacing:0}
[dir=rtl] .game-card-genre{font-size:13px;letter-spacing:0}
[dir=rtl] .game-card-tagline{font-size:14px}
[dir=rtl] .game-card-play{font-size:14px}
[dir=rtl] .game-card-index{left:auto;right:17px}
.game-dialog{width:min(1040px,calc(100% - 32px));height:min(93dvh,890px);max-width:none;max-height:none;padding:0;border:1px solid #645a82;border-radius:21px;background:#0a0912;color:#fff;box-shadow:0 25px 100px #000d;overflow:hidden}
.game-dialog::backdrop{background:#020205e8;backdrop-filter:blur(13px)}
.game-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr)}
.game-dialog:fullscreen{width:100vw;height:100dvh;border:0;border-radius:0}
.game-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px;padding:15px 22px;border-bottom:1px solid #39334e;background:#11101b}
.game-dialog-label{color:#a8a0c9;font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
.game-dialog-header h2{margin-top:4px;font-family:var(--display);font-size:28px;font-weight:600;line-height:1.1}
.game-dialog-actions{display:flex;align-items:center;gap:10px;flex:none}
.game-dialog-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid #7a718c;border-radius:10px;font-size:12px;font-weight:700;white-space:nowrap;transition:background .2s,border-color .2s}
.game-dialog-actions button:hover{background:#352b50;border-color:#b8a5ee}
.game-dialog-actions button span:last-child{font-size:18px;line-height:1}
.game-dialog-stage{display:grid;place-items:center;min-height:0;padding:14px;background:radial-gradient(ellipse 70% 70% at 50% 50%,#4232804d,transparent 78%),#050509}
.game-frame,.game-local-preview{display:block;width:min(100%,430px);height:100%;max-height:760px;aspect-ratio:9/16;border:1px solid #8077ab;border-radius:14px;background:#14112d;box-shadow:0 15px 60px #000c}
.game-frame[hidden],.game-local-preview[hidden]{display:none}
.game-local-preview{position:relative;display:grid;place-items:center;overflow:hidden}
.game-local-preview img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.43) blur(2px)}
.game-local-preview p{position:relative;z-index:1;max-width:280px;padding:24px;color:#fff;font-size:16px;line-height:1.55;text-align:center}
.game-frame-fallback{align-self:end;margin-top:10px;color:#a7a3b5;font-size:11px;text-align:center}
[dir=rtl] .game-dialog-label{letter-spacing:0;font-size:13px}
[dir=rtl] .game-dialog-header h2{font-family:Thmanyah,serif}
[dir=rtl] .game-dialog-actions button{font-size:14px}
@media(max-width:750px){.games-section{margin-top:70px;padding:90px 0 72px;scroll-margin-top:110px}.games-heading,.games-gallery-head{width:calc(100% - 32px)}.games-heading{grid-template-columns:1fr;gap:12px}.games-eyebrow{grid-column:auto}.games-heading h2{font-size:clamp(55px,13vw,74px)}.games-heading-side p{max-width:580px;font-size:13px}.games-gallery-head{margin-top:30px}.games-track{height:560px}.game-card{width:270px;height:450px}.games-hint{margin-top:-8px;padding:0 16px}.game-dialog{width:100%;height:100dvh;border:0;border-radius:0}.game-dialog-header{min-height:70px;padding:10px 14px}.game-dialog-header h2{font-size:23px}.game-dialog-actions button{padding:9px 11px;font-size:11px}.game-dialog-stage{padding:5px}.game-frame,.game-local-preview{width:min(100%,calc((100dvh - 85px)*.5625));height:100%;max-height:none;border-radius:6px}.game-frame-fallback{display:none}}
@media(max-width:450px){.games-section{padding-top:95px}.games-heading h2{font-size:clamp(48px,12.7vw,58px)}.games-track{height:510px}.game-card{width:244px;height:408px}.game-card-body{padding:25px 17px 16px}.game-card h3{font-size:27px}.game-card-play{min-height:42px}.game-dialog-header{gap:6px}.game-dialog-actions{gap:5px}.game-dialog-actions button{font-size:10px;padding:8px}.game-dialog-actions button span:first-child{display:none}[dir=rtl] .games-heading h2{font-size:44px}}
@media(prefers-reduced-motion:reduce){.games-ambient,.game-card,.game-card-body,.game-card-play,.games-gallery-actions button{transition:none}}

/* Dark gallery with the reference's continuous 3D geometry. */
.games-section{background:#020205;color:#f4f0fa;border:0;padding-bottom:110px}
.games-ambient{inset:0;filter:blur(45px) saturate(.8);mask-image:radial-gradient(ellipse 65% 50% at 50% 55%,#000,transparent 100%)}
.games-ambient.is-visible{opacity:.16}
.games-eyebrow{color:#aea0d6}
.games-heading-side p{color:#bdb5c9}
.games-gallery-head{border-color:#443650}
.games-counter{color:#d5c9e9}
.games-hint{position:relative;color:#aaa0ba;margin-top:25px}
.games-track{overflow:visible;height:650px;perspective:1800px;user-select:none}
.game-card{width:288px;height:512px;overflow:visible;contain:layout;transform-origin:90% center;transition:none;border-color:#a68dcc40;box-shadow:0 28px 42px #000b,0 45px 85px #0007}
.game-card.is-current{box-shadow:0 28px 48px #000b,0 45px 85px #61408526,0 0 0 1px #c3a0f66b}
.game-card-visual{overflow:hidden;border-radius:inherit}
.game-card-image{display:block;object-fit:cover;object-position:50% 50%;pointer-events:none;-webkit-user-drag:none}
.game-card-visual::after{inset:48% 0 0;background:linear-gradient(transparent,#08050eaa 43%,#08050efa)}
.game-card:not(.is-current) .game-card-visual::after{opacity:.2}
.game-card-body{padding:24px 20px 20px}
.game-card h3{font-size:29px}
.game-card-play{border:1px solid #a891d2;border-radius:99px;background:linear-gradient(110deg,#3454b4,#6240a0);color:#fff;box-shadow:inset 0 1px 0 #ffffff35}
.game-card-play:hover{background:#6240a0}
.games-gallery-actions{gap:10px;direction:ltr}
.games-gallery-actions button{width:54px;height:54px;border:1px solid #7b689a;background:linear-gradient(145deg,#2b203f,#0d0a15);color:#fff;box-shadow:inset 0 1px 0 #ffffff30,0 6px 18px #0008}
.games-gallery-actions button:hover:not(:disabled){background:#493363;border-color:#ba9ee4;box-shadow:0 6px 24px #7851c638}
.games-gallery-actions button span{position:relative;width:22px;height:20px;font-size:0}
.games-gallery-actions button span::before{content:'';position:absolute;width:20px;height:2px;left:1px;top:9px;background:currentColor;border-radius:2px}
.games-gallery-actions button span::after{content:'';position:absolute;width:10px;height:10px;left:1px;top:5px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;rotate:45deg}
#games-next span{rotate:180deg}
[dir=rtl] #games-prev span{rotate:180deg}
[dir=rtl] #games-next span{rotate:0deg}
@media(max-width:750px){.games-track{height:570px}.game-card{width:252px;height:448px}.games-section{padding-bottom:90px}.games-gallery-actions button{width:48px;height:48px}}
@media(max-width:450px){.games-track{height:515px}.game-card{width:234px;height:416px}.game-card-body{padding:20px 17px 16px}.game-card h3{font-size:26px}.games-hint{margin-top:16px}}

