/* roLERbot · joc.html: pagina jocului cu scenă 3D legată de derulare.
   Tema rămâne a site-ului (blocuri de culoare, Anton, umbre dure, zimți); în zona 3D, secțiunile sunt transparente și robotul real din CAD trece prin spatele textului. */

.game-page { background: #0b0b0d; }
.mono-cap { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.gp-n { font-family: var(--f-display); font-size: clamp(34px, 3.4vw, 50px); line-height: 1; letter-spacing: .01em; color: var(--pink); }

/* ───────── canvas + încărcare ───────── */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100svh; z-index: 1; pointer-events: none; }
.no-gl #gl { display: none; }
.g3-load { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: #0b0b0d; transition: opacity .6s ease, visibility .6s; }
.g3-load.gone { opacity: 0; visibility: hidden; }
.g3-load-in { display: grid; gap: 14px; justify-items: center; color: var(--ink-dim); }
.g3-load-bar { width: min(260px, 60vw); height: 6px; background: rgba(244, 241, 234, .14); }
.g3-load-bar i { display: block; height: 100%; background: var(--pink); transform-origin: 0 50%; transform: scaleX(.08); transition: transform .4s ease; }

main > .gp-zone { position: static; z-index: auto; }
.gp-zone { position: relative; }
.g3-ui { position: relative; z-index: 3; }

/* ───────── erou ───────── */
.g3-hero { position: relative; height: 100svh; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 20px) var(--gutter) clamp(26px, 3.4vw, 52px); background: radial-gradient(55% 55% at 50% 46%, rgba(249, 5, 108, .22), transparent 72%); }
.g3-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 96px 96px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 45%, #000 20%, transparent 85%); }
.g3-title { position: absolute; left: 0; right: 0; top: 33%; translate: 0 -56%; z-index: 0; margin: 0; text-align: center; white-space: nowrap; pointer-events: none;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(88px, 27.5vw, 600px); line-height: .8; letter-spacing: -.005em; text-transform: uppercase; color: var(--cream); }
.g3-title .b { color: var(--pink); }
.g3-title span { display: inline-block; animation: g3-rise 1.1s cubic-bezier(.2, .7, .1, 1) both; } .g3-title .b { animation-delay: .12s; }
@keyframes g3-rise { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }
.g3-hero-ui { width: min(100%, 1320px); margin-inline: auto; display: grid; gap: 14px; }
.g3-fsim { justify-self: center; margin: 0; padding: 7px 18px; background: var(--pink); color: #fff; font: 800 clamp(13px, 1.7vw, 24px)/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; box-shadow: 4px 4px 0 #0b0b0d; animation: g3-fade .8s .5s both; }
.g3-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; animation: g3-fade .8s .8s both; }
.g3-lead { margin: 0; max-width: 24ch; font-family: var(--f-head); font-weight: 800; font-size: clamp(22px, 2.5vw, 38px); line-height: 1.02; letter-spacing: -.025em; text-shadow: 0 2px 0 #0b0b0d; }
.gp-bar-c { display: flex; gap: 14px; flex-wrap: wrap; }
.g3-meta { display: flex; justify-content: space-between; margin: 4px 0 0; color: var(--ink-dim); animation: g3-fade .8s 1s both; }
.gp-cue { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; color: var(--ink-dim); animation: gp-bounce 1.7s ease-in-out infinite; z-index: 3; }
@keyframes g3-fade { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes gp-bounce { 50% { translate: -50% 8px; } }

/* ───────── albina 2D (în blocurile pline) ───────── */
.gp-bee { position: absolute; z-index: 8; width: clamp(54px, 6vw, 92px); aspect-ratio: 46 / 38; pointer-events: none; animation: gp-hover 1.6s ease-in-out infinite alternate; }
.gp-bee svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.gp-bee .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: gp-flap .09s ease-in-out infinite alternate; }
.gp-bee .wing.b { animation-delay: -.045s; }
.gp-bee--cta { right: var(--gutter); top: clamp(30px, 6vw, 80px); }
@keyframes gp-hover { from { transform: translate(0, 0) rotate(-4deg); } to { transform: translate(-14px, -16px) rotate(4deg); } }
@keyframes gp-flap { from { transform: rotate(-24deg) scaleY(1); } to { transform: rotate(10deg) scaleY(.7); } }

/* ───────── 01: introducere + ceasul meciului ───────── */
.g3-intro { padding: clamp(80px, 12vw, 180px) 0 clamp(40px, 6vw, 90px); }
.g3-intro .sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.g3-intro .h-lg, .g3-build .h-lg, .gp-scene-txt .h-lg { text-shadow: 4px 4px 0 #0b0b0d; }
.g3-intro .sub, .g3-build .sub { color: var(--ink-dim); text-shadow: 0 1px 0 #0b0b0d; }
.gp-clock { max-width: 760px; }
.gp-clock-bar { display: flex; border: 3px solid var(--cream); min-height: 64px; background: rgba(11, 11, 13, .6); }
.gp-ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px clamp(10px, 1.4vw, 18px); border-right: 3px solid var(--cream); font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; overflow: hidden; }
.gp-ph:last-child { border-right: 0; }
.gp-ph b { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: .01em; }
.gp-ph.auto { background: var(--cream); color: #0b0b0d; }
.gp-ph.gap { background: repeating-linear-gradient(135deg, var(--cream) 0 6px, transparent 6px 12px); padding-inline: 0; }
.gp-ph.tele { padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.gp-ph.tele .l { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px clamp(10px, 1.4vw, 18px); }
.gp-ph.tele .fl { display: flex; align-items: center; justify-content: flex-end; padding: 10px clamp(10px, 1.4vw, 18px); background: var(--pink); color: #fff; }
.gp-clock-note { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

/* ───────── povestea: panoul roz în stânga, robotul 3D în dreapta ───────── */
.gp-story { position: relative; height: 440vh; }
.gp-story-in { position: sticky; z-index: 3; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
.gp-story-l { width: min(500px, 44vw); background: var(--pink); color: #0b0b0d; border: 3px solid #0b0b0d; box-shadow: 10px 10px 0 #0b0b0d; padding: clamp(12px, 1.6vw, 22px); }
.gp-story .gp-n { color: #0b0b0d; }
.gp-slist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.gp-slist li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 9px 0 9px 14px; border-left: 6px solid transparent; opacity: .45; cursor: pointer; transition: opacity .35s, border-color .35s; }
.gp-slist li.on { opacity: 1; border-color: #0b0b0d; }
.gp-slist h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 1.8vw, 26px); letter-spacing: -.02em; line-height: 1.05; }
.gp-slist p { max-height: 0; overflow: hidden; opacity: 0; font-size: clamp(14px, 1.1vw, 16.5px); line-height: 1.42; color: #0b0b0d; transition: max-height .5s ease, opacity .4s, margin .4s; }
.gp-slist li.on p { max-height: 8em; opacity: 1; margin-top: 6px; }
.gp-hud { margin-top: 10px; border: 3px solid #0b0b0d; background: rgba(255, 255, 255, .14); display: grid; grid-template-columns: repeat(4, 1fr); }
.gp-hud-t { grid-column: 1 / -1; padding: 6px 12px; background: #0b0b0d; color: #f4f1ea; margin: 0; }
.gp-hud .r { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; padding: 7px 9px 5px; border-left: 2px solid rgba(11, 11, 13, .25); font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; }
.gp-hud .r:nth-child(2) { border-left: 0; }
.gp-hud .r b { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.gp-hud .r.tot { background: #0b0b0d; color: #f4f1ea; border-left: 0; }
.gp-hud .r.tot b { color: #ff4d94; font-size: 32px; }
.gp-stage-bar { height: 6px; margin-top: 10px; background: rgba(11, 11, 13, .25); }
.gp-stage-bar i { display: block; height: 100%; width: 100%; background: #0b0b0d; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

/* ───────── 02: terenul viu, camera ocolește ───────── */
.gp-scene { position: relative; height: 270vh; }
.gp-scene-in { position: sticky; z-index: 3; top: 0; height: 100svh; display: flex; align-items: flex-end; }
.gp-scene-in::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80%; pointer-events: none; background: linear-gradient(0deg, rgba(11, 11, 13, .96) 30%, rgba(11, 11, 13, 0)); }
.gp-scene-txt { padding-bottom: clamp(36px, 6vw, 90px); display: grid; gap: 20px; }
.gp-scene-txt .h-lg { max-width: 14ch; }
.gp-pts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: 4px; }
.gp-pt { border-top: 3px solid var(--pink); padding-top: 14px; opacity: 0; translate: 0 34px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .7, .1, 1); }
.gp-pt.on { opacity: 1; translate: 0 0; }
.gp-pt .gp-n { display: block; margin-bottom: 8px; font-size: 30px; }
.gp-pt h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.02em; margin-bottom: 8px; }
.gp-pt p { color: var(--ink-dim); line-height: 1.5; }

/* ───────── 03: constructorul (robotul 3D se vede prin fereastra din stânga) ───────── */
.g3-build { padding: clamp(70px, 10vw, 150px) 0 clamp(60px, 8vw, 120px); }
.gp-build { display: grid; grid-template-columns: minmax(300px, .9fr) 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gp-trow { display: grid; grid-template-columns: minmax(100px, 150px) 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.gp-trow:first-child { border-top: 1px solid var(--line-strong); }
.gp-trow h3 { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--pink-hi); }
.gp-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-tier { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; border: 1px solid var(--line-strong); background: rgba(11, 11, 13, .55); color: var(--ink-dim); font: 600 clamp(13px, 1vw, 15px) var(--f-head); cursor: pointer; transition: transform .2s cubic-bezier(.34, 1.56, .5, 1), background .2s, color .2s, border-color .2s, box-shadow .2s; }
.gp-tier i { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.gp-tier:hover { border-color: var(--cream); color: var(--cream); transform: translateY(-2px); }
.gp-tier.own { background: rgba(249, 5, 108, .3); border-color: rgba(249, 5, 108, .75); color: var(--cream); }
.gp-tier.cur { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 4px 4px 0 var(--cream); }
.gp-tier.cur i { color: rgba(255, 255, 255, .85); }
.gp-panel { position: sticky; top: calc(var(--nav-h) + 22px); display: grid; gap: 14px; }
.gp-robot { position: relative; height: clamp(230px, 38vh, 420px); border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--pink); }
.gp-power { position: absolute; right: -3px; top: -3px; padding: 6px 12px; background: var(--pink); color: #fff; font-size: 13px; }
.gp-bars { display: grid; gap: 8px; padding: 12px; background: rgba(11, 11, 13, .6); border: 1px solid var(--line-strong); }
.gp-brow { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 52px; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.gp-brow .tr { height: 9px; background: rgba(244, 241, 234, .14); position: relative; overflow: hidden; }
.gp-brow .tr i { position: absolute; inset: 0; background: var(--pink); transform-origin: 0 50%; transform: scaleX(var(--v, 0)); transition: transform .5s cubic-bezier(.2, .7, .1, 1); }
.gp-brow b { text-align: right; color: var(--cream); font-weight: 500; }
.gp-perks { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-perk { padding: 6px 11px; border: 1px dashed var(--line-strong); background: rgba(11, 11, 13, .55); font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); transition: all .3s; }
.gp-perk.on { border: 1px solid var(--pink); background: var(--pink); color: #fff; box-shadow: 3px 3px 0 var(--cream); }
.gp-bctl { display: flex; gap: 12px; flex-wrap: wrap; }

.marquee { margin-top: -26px; }

/* ───────── butonul care te urmărește ───────── */
.gp-float { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 60; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--pink); color: #fff;
  font: 800 15px var(--f-head); box-shadow: 4px 4px 0 var(--cream); opacity: 0; translate: 0 150%; pointer-events: none; transition: translate .45s cubic-bezier(.34, 1.4, .5, 1), opacity .3s, box-shadow .2s; }
.gp-float.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.gp-float:hover { box-shadow: 6px 6px 0 var(--cream); }
@media (min-width: 1100px) { .gp-float { top: 22px; bottom: auto; right: clamp(16px, 2.4vw, 40px); translate: 0 -170%; } .gp-float.on { translate: 0 0; } }

/* ───────── 04: rail de moduri ───────── */
#moduri { padding-inline: 0; overflow: hidden; }
.gp-rail-wrap .rail-head { align-items: flex-end; }
.gp-drag { color: #0b0b0d; margin-right: 8px; }
.gp-rail { gap: clamp(14px, 1.6vw, 24px); padding-bottom: 28px; }
.gp-card { position: relative; width: clamp(270px, 27vw, 400px); aspect-ratio: 3 / 4.1; overflow: hidden; border: 3px solid #0b0b0d; box-shadow: 8px 8px 0 #0b0b0d; background: #0b0b0d; color: #f4f1ea; outline-offset: 4px; transition: transform .25s cubic-bezier(.34, 1.56, .5, 1), box-shadow .25s; }
.gp-card:hover, .gp-card:focus-visible { transform: translate(-4px, -4px); box-shadow: 12px 12px 0 var(--pink); }
.gp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2, .7, .1, 1); pointer-events: none; }
.gp-card:nth-child(odd) img { object-position: 30% 50%; } .gp-card:nth-child(even) img { object-position: 70% 50%; }
.gp-card:hover img, .gp-card:focus-visible img { scale: 1.1; }
.gp-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, .1) 20%, rgba(11, 11, 13, .96) 100%); transition: background .3s; pointer-events: none; }
.gp-card:hover::after, .gp-card:focus-visible::after { background: linear-gradient(180deg, rgba(249, 5, 108, .22) 0%, rgba(11, 11, 13, .98) 78%); }
.gp-card .gp-n { position: absolute; z-index: 2; left: 16px; top: 14px; padding: 4px 10px; background: var(--pink); color: #fff; font-size: 26px; box-shadow: 3px 3px 0 #0b0b0d; }
.gp-card-b { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 20px 20px; }
.gp-card h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(32px, 3.2vw, 48px); line-height: .92; text-transform: uppercase; letter-spacing: .005em; }
.gp-card p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; font-size: 15px; line-height: 1.45; color: rgba(244, 241, 234, .9); transition: max-height .5s ease, opacity .35s, margin .35s; }
.gp-card:hover p, .gp-card:focus-visible p, .gp-card:focus-within p { max-height: 11em; opacity: 1; margin-top: 12px; }
@media (hover: none) { .gp-card p { max-height: 11em; opacity: 1; margin-top: 10px; } .gp-card { aspect-ratio: 3 / 4.6; } }

/* ───────── 05: comenzi ───────── */
.gp-controls { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.gp-keys { display: grid; grid-template-columns: repeat(2, 1fr); border: 3px solid #0b0b0d; }
.gp-key { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 3px solid #0b0b0d; font-weight: 600; font-size: clamp(14.5px, 1.1vw, 17px); }
.gp-key:nth-child(odd) { border-right: 3px solid #0b0b0d; }
.gp-key:nth-last-child(-n+2) { border-bottom: 0; }
.gp-key .k { display: inline-flex; gap: 4px; min-width: 112px; }
.gp-key kbd { font-family: var(--f-mono); font-size: 13px; font-weight: 500; min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; background: #0b0b0d; color: var(--cream); box-shadow: 0 3px 0 rgba(11, 11, 13, .35); transition: transform .08s, background .08s, color .08s, box-shadow .08s; }
.gp-key kbd.on { background: var(--cream); color: #0b0b0d; transform: translateY(3px); box-shadow: 0 0 0 transparent; outline: 3px solid #0b0b0d; }
.gp-pad h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -.02em; margin-bottom: 8px; }
.gp-pad p { line-height: 1.5; margin-bottom: 22px; color: #0b0b0d; }
.blk-hot .gp-n { color: #0b0b0d; }
.blk-hot .sec-head .sub { color: #0b0b0d; }

/* final */
.gp-final { padding-block: clamp(110px, 15vw, 220px) clamp(90px, 12vw, 170px); position: relative; }
.gp-final .h-xl { font-size: clamp(64px, 14vw, 230px); line-height: .86; margin-bottom: 22px; }
.gp-final .sub { max-width: 46ch; font-size: clamp(17px, 1.5vw, 22px); color: #3b3740; margin-bottom: 34px; }
.gp-fine { margin-top: 34px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(11, 11, 13, .6); max-width: 70ch; line-height: 1.6; }

/* ───────── fără WebGL: pagina rămâne frumoasă, cu o captură în loc de scenă ───────── */
.no-gl .g3-hero { background: linear-gradient(180deg, rgba(11, 11, 13, .55), rgba(11, 11, 13, .9)), url(../assets/img/game/robot-close.jpg) center / cover; }
.no-gl .gp-story, .no-gl .gp-scene { height: auto; }
.no-gl .gp-story-in, .no-gl .gp-scene-in { position: relative; height: auto; padding-block: 60px; }
.no-gl .gp-pt { opacity: 1; translate: none; }

/* ───────── ecrane mici ───────── */
@media (max-width: 1000px) {
  .gp-story-l { width: min(520px, 92vw); }
  .gp-story-in { align-items: flex-end; padding-bottom: 14px; }
  .gp-pts { grid-template-columns: 1fr; gap: 14px; }
  .gp-pt p { font-size: 14px; }
  .gp-build { grid-template-columns: 1fr; }
  .gp-panel { position: static; }
  .gp-controls { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .g3-hero { min-height: 600px; }
  .g3-title { top: 38%; font-size: clamp(76px, 31vw, 200px); }
  .g3-row { flex-direction: column; align-items: flex-start; }
  .gp-bar-c { width: 100%; } .gp-bar-c .btn { flex: 1; justify-content: space-between; }
  .g3-meta { flex-direction: column; gap: 4px; }
  .gp-story { height: 400vh; }
  .gp-brow { grid-template-columns: 1fr 1fr 44px; }
  .gp-trow { grid-template-columns: 1fr; gap: 10px; }
  .gp-keys { grid-template-columns: 1fr; }
  .gp-key:nth-child(odd) { border-right: 0; }
  .gp-key:nth-last-child(2) { border-bottom: 3px solid #0b0b0d; }
  .gp-ph { font-size: 10px; letter-spacing: .08em; padding-inline: 8px; }
  .gp-float { padding: 12px 16px; font-size: 14px; }
  .gp-bee--cta { top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-bee, .gp-bee .wing, .g3-title span, .g3-fsim, .g3-row, .g3-meta, .gp-cue { animation: none; }
  .gp-card img { transition: none; }
  .gp-pt { opacity: 1; translate: none; }
}


/* ═════════ VERSIUNEA UȘOARĂ: 3D doar în erou și în constructor; povestea e un demo 2D animat ═════════ */
.gp-story { height: 380vh; }
.gp-story-grid { display: grid; grid-template-columns: minmax(330px, 470px) 1fr; gap: clamp(20px, 3.4vw, 56px); align-items: center; }
.gp-story-grid .gp-story-l { width: auto; }
.gp-demo { position: relative; border: 3px solid var(--cream); box-shadow: 10px 10px 0 var(--pink); background: #17171b; aspect-ratio: 16 / 10; overflow: hidden; }
.gp-demo svg { display: block; width: 100%; height: 100%; }
.gp-demo-bees { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

/* ce se vede la fiecare pas */
.gp-demo .d-floor, .gp-demo .d-fly, .gp-demo .d-pour, .gp-demo .d-tag text, .gp-demo .cb, .gp-demo .d-full { opacity: 0; transition: opacity .4s; }
.gp-demo .d-hive, .gp-demo .d-flower { transition: opacity .5s; opacity: .32; }
.gp-demo[data-step="0"] .d-floor, .gp-demo[data-step="1"] .d-fly, .gp-demo[data-step="3"] .d-fly, .gp-demo[data-step="2"] .d-pour { opacity: 1; }
.gp-demo[data-step="1"] .d-hive, .gp-demo[data-step="2"] .d-hive { opacity: 1; }
.gp-demo[data-step="3"] .d-flower { opacity: 1; } .gp-demo[data-step="3"] .d-hive { opacity: .55; }
.gp-demo[data-step="3"] .fx.x3 { display: none; }
.gp-demo[data-step="1"] .cb { opacity: 1; }
.gp-demo[data-step="2"] .d-full { opacity: 1; }
.d-tag text { font-family: var(--f-display); font-size: 34px; fill: #ffc933; stroke: #0b0b0d; stroke-width: 6px; paint-order: stroke; }

.d-robot { translate: 0 0; transition: translate .9s cubic-bezier(.3, .7, .2, 1); }
.gp-demo[data-step="3"] .d-robot { translate: 120px 0; }
.d-bob { animation: d-bob .5s ease-in-out infinite alternate; transform-box: view-box; }
.d-whl { transform-box: view-box; }
.gp-demo[data-step="0"] .d-whl, .gp-demo[data-step="0"] .d-bob { animation-play-state: running; }
.gp-demo[data-step="0"] .d-whl { animation: d-spin .7s linear infinite; }
@keyframes d-bob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes d-spin { to { transform: rotate(360deg); } }

/* 0: robotul merge și înghite mingile una câte una */
.gp-demo[data-step="0"] .d-drive { animation: d-drive 5.2s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes d-drive { 0% { transform: translateX(0); } 66% { transform: translateX(196px); } 82% { transform: translateX(196px); } 100% { transform: translateX(0); } }
.fb { animation: none; }
.gp-demo[data-step="0"] .fb.f0 { animation: fb0 5.2s infinite; } .gp-demo[data-step="0"] .fb.f1 { animation: fb1 5.2s infinite; }
.gp-demo[data-step="0"] .fb.f2 { animation: fb2 5.2s infinite; } .gp-demo[data-step="0"] .fb.f3 { animation: fb3 5.2s infinite; }
@keyframes fb0 { 0%, 20% { opacity: 1; scale: 1; } 23% { opacity: 0; scale: .2; } 99% { opacity: 0; } 100% { opacity: 1; scale: 1; } }
@keyframes fb1 { 0%, 31% { opacity: 1; scale: 1; } 34% { opacity: 0; scale: .2; } 99% { opacity: 0; } 100% { opacity: 1; scale: 1; } }
@keyframes fb2 { 0%, 42% { opacity: 1; scale: 1; } 45% { opacity: 0; scale: .2; } 99% { opacity: 0; } 100% { opacity: 1; scale: 1; } }
@keyframes fb3 { 0%, 53% { opacity: 1; scale: 1; } 56% { opacity: 0; scale: .2; } 99% { opacity: 0; } 100% { opacity: 1; scale: 1; } }
.fb { transform-box: fill-box; transform-origin: center; }
.gp-demo[data-step="0"] .t0 { animation: t0 5.2s infinite; transform-box: fill-box; }
@keyframes t0 { 0%, 20% { opacity: 0; translate: 0 8px; } 23% { opacity: 1; translate: 0 0; } 30% { opacity: 0; translate: 0 -14px; } 31% { opacity: 0; } 34% { opacity: 1; translate: 0 0; } 41% { opacity: 0; translate: 0 -14px; } 42% { opacity: 0; } 45% { opacity: 1; translate: 0 0; } 52% { opacity: 0; translate: 0 -14px; } 53% { opacity: 0; } 56% { opacity: 1; translate: 0 0; } 63%, 100% { opacity: 0; translate: 0 -14px; } }

/* 1 și 3: mingile zboară în arc spre stup / floare */
.d-fly .fx { --mx: 222px; --dx: 248px; --dy: -31px; translate: var(--mx) 231px; opacity: 0; }
.gp-demo[data-step="3"] .d-fly .fx { --mx: 342px; --dx: 254px; --dy: -33px; }
.gp-demo[data-step="1"] .fx, .gp-demo[data-step="3"] .fx { animation: fx 4.4s linear infinite backwards; }
.gp-demo[data-step="1"] .fy, .gp-demo[data-step="3"] .fy { animation: fy 4.4s linear infinite backwards; }
.fx.x1, .fx.x1 .fy { animation-delay: .8s !important; } .fx.x2, .fx.x2 .fy { animation-delay: 1.6s !important; } .fx.x3, .fx.x3 .fy { animation-delay: 2.4s !important; }
.fx.x0, .fx.x0 .fy { animation-delay: 0s; }
.fy { transform-box: view-box; }
@keyframes fx { 0% { opacity: 0; transform: translateX(0); } .2% { opacity: 1; } 19% { opacity: 1; transform: translateX(var(--dx)); } 19.6%, 100% { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes fy { 0% { transform: translateY(0); animation-timing-function: cubic-bezier(.25, .65, .45, 1); } 8.4% { transform: translateY(-96px); animation-timing-function: cubic-bezier(.55, 0, .85, .55); } 19% { transform: translateY(var(--dy)); } 100% { transform: translateY(var(--dy)); } }
.cb { transform-box: fill-box; transform-origin: center; }
.gp-demo[data-step="1"] .cb.c0 { animation: cb0 4.4s infinite; } .gp-demo[data-step="1"] .cb.c1 { animation: cb1 4.4s infinite; }
.gp-demo[data-step="1"] .cb.c2 { animation: cb2 4.4s infinite; } .gp-demo[data-step="1"] .cb.c3 { animation: cb3 4.4s infinite; }
@keyframes cb0 { 0%, 19% { opacity: 0; scale: .3; } 22% { opacity: 1; scale: 1.2; } 25%, 92% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes cb1 { 0%, 37% { opacity: 0; scale: .3; } 40% { opacity: 1; scale: 1.2; } 43%, 92% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes cb2 { 0%, 55% { opacity: 0; scale: .3; } 58% { opacity: 1; scale: 1.2; } 61%, 92% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes cb3 { 0%, 73% { opacity: 0; scale: .3; } 76% { opacity: 1; scale: 1.2; } 79%, 92% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
.gp-demo[data-step="1"] .t1 { animation: t1 4.4s infinite; }
@keyframes t1 { 0%, 19% { opacity: 0; translate: 0 8px; } 21% { opacity: 1; translate: 0 0; } 30% { opacity: 0; translate: 0 -14px; } 37% { opacity: 0; } 39% { opacity: 1; translate: 0 0; } 48% { opacity: 0; translate: 0 -14px; } 55% { opacity: 0; } 57% { opacity: 1; translate: 0 0; } 66% { opacity: 0; translate: 0 -14px; } 73% { opacity: 0; } 75% { opacity: 1; translate: 0 0; } 84%, 100% { opacity: 0; translate: 0 -14px; } }

/* 2: stupul se înclină și varsă mingile */
.d-tray { transform-box: view-box; transform-origin: 470px 217px; }
.gp-demo[data-step="2"] .d-tray { animation: d-tip 5.4s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes d-tip { 0%, 12% { transform: rotate(0); } 34% { transform: rotate(-26deg); } 74% { transform: rotate(-26deg); } 92%, 100% { transform: rotate(0); } }
.gp-demo[data-step="2"] .d-full { animation: d-full 5.4s infinite; }
@keyframes d-full { 0%, 20% { opacity: 1; } 24%, 90% { opacity: 0; } 100% { opacity: 1; } }
.pb { transform-box: fill-box; transform-origin: center; opacity: 0; }
.gp-demo[data-step="2"] .pb { animation: pb 5.4s infinite; }
.pb.p1 { animation-delay: .12s !important; } .pb.p2 { animation-delay: .24s !important; } .pb.p3 { animation-delay: .06s !important; }
@keyframes pb { 0%, 21% { opacity: 0; transform: translate(0, 0); } 22% { opacity: 1; transform: translate(0, 0); animation-timing-function: cubic-bezier(.4, 0, .7, .6); } 40% { transform: translate(-70px, 36px); animation-timing-function: cubic-bezier(.4, 0, 1, 1); } 54% { transform: translate(-128px, 88px); animation-timing-function: cubic-bezier(.3, .8, .5, 1); } 60% { transform: translate(-146px, 80px); animation-timing-function: ease-in; } 66%, 90% { opacity: 1; transform: translate(-158px, 88px); } 98%, 100% { opacity: 0; transform: translate(-158px, 88px); } }
.gp-demo[data-step="2"] .t2 { animation: t2 5.4s infinite; }
@keyframes t2 { 0%, 38% { opacity: 0; translate: 0 10px; } 44% { opacity: 1; translate: 0 0; } 70% { opacity: 1; } 82%, 100% { opacity: 0; translate: 0 -16px; } }

/* 3: floarea primește nectar */
.d-petals { transform-box: view-box; }
.gp-demo[data-step="3"] .d-petals { animation: d-petal 4.4s infinite; transform-origin: 596px 198px; }
@keyframes d-petal { 0%, 18% { scale: 1; } 21% { scale: 1.22; } 26%, 36% { scale: 1; } 39% { scale: 1.22; } 44%, 54% { scale: 1; } 57% { scale: 1.22; } 62%, 100% { scale: 1; } }
.gp-demo[data-step="3"] .t3 { animation: t3 4.4s infinite; }
@keyframes t3 { 0%, 19% { opacity: 0; translate: 0 8px; } 21% { opacity: 1; translate: 0 0; } 30% { opacity: 0; translate: 0 -14px; } 37% { opacity: 0; } 39% { opacity: 1; translate: 0 0; } 48% { opacity: 0; translate: 0 -14px; } 55% { opacity: 0; } 57% { opacity: 1; translate: 0 0; } 66%, 100% { opacity: 0; translate: 0 -14px; } }

/* ───────── albine SVG (zboară în DOM, nu în 3D) ───────── */
.gp-bee-s { position: absolute; width: 54px; aspect-ratio: 46 / 38; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .4)); }
.gp-bee-s svg { width: 100%; height: 100%; overflow: visible; }
.gp-bee-s .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: gp-flap .08s ease-in-out infinite alternate; }
.gp-bee-s .wing.b { animation-delay: -.04s; }
.gp-hero-bees { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.gp-hero-bees .gp-bee-s { left: 0; top: 0; animation: bee-hero var(--dur, 16s) linear infinite; animation-delay: var(--del, 0s); width: var(--sz, 56px); }
@keyframes bee-hero { 0% { transform: translate(-10vw, var(--y0, 60vh)) rotate(6deg); } 25% { transform: translate(24vw, calc(var(--y0, 60vh) - 12vh)) rotate(-8deg); } 50% { transform: translate(52vw, calc(var(--y0, 60vh) + 6vh)) rotate(8deg); } 75% { transform: translate(80vw, calc(var(--y0, 60vh) - 10vh)) rotate(-6deg); } 100% { transform: translate(112vw, var(--y0, 60vh)) rotate(4deg); } }
.gp-demo-bees .gp-bee-s { left: 0; top: 0; width: 42px; animation: bee-demo var(--dur, 9s) ease-in-out infinite alternate; animation-delay: var(--del, 0s); }
@keyframes bee-demo { 0% { transform: translate(var(--x0, 8%), var(--y0, 12%)) rotate(4deg); } 50% { transform: translate(calc(var(--x0, 8%) + 90px), calc(var(--y0, 12%) + 26px)) rotate(-6deg); } 100% { transform: translate(calc(var(--x0, 8%) + 30px), calc(var(--y0, 12%) - 14px)) rotate(6deg); } }
.gp-robot { overflow: hidden; }
.gp-swarm { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.gp-swarm .gp-bee-s { left: 50%; top: 50%; width: 30px; animation: bee-orb var(--dur, 6s) linear infinite; animation-delay: var(--del, 0s); }
.gp-swarm .gp-bee-s.new { scale: 0; animation: bee-orb var(--dur, 6s) linear infinite, bee-pop .5s cubic-bezier(.34, 1.56, .5, 1) forwards; }
@keyframes bee-pop { to { scale: 1; } }
@keyframes bee-orb { 0% { transform: translate(calc(var(--rx, 120px) * -1), var(--ry, 20px)) rotate(0); } 25% { transform: translate(0, calc(var(--ry, 20px) * -1.4)) rotate(-8deg); } 50% { transform: translate(var(--rx, 120px), calc(var(--ry, 20px) * .4)) rotate(4deg); } 75% { transform: translate(0, calc(var(--ry, 20px) * 1.2)) rotate(8deg); } 100% { transform: translate(calc(var(--rx, 120px) * -1), var(--ry, 20px)) rotate(0); } }

/* ───────── 02: trei carduri cu capturi ───────── */
.g3-field { padding: clamp(70px, 9vw, 130px) 0; }
.g3-field .h-lg { text-shadow: 4px 4px 0 #0b0b0d; max-width: 14ch; }
.gp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); margin-top: clamp(24px, 3vw, 44px); }
.gp-feat { position: relative; padding-bottom: 6px; }
.gp-feat .im { aspect-ratio: 16 / 10; overflow: hidden; border: 3px solid var(--cream); box-shadow: 8px 8px 0 var(--pink); margin-bottom: 18px; background: #17171b; }
.gp-feat img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s cubic-bezier(.2, .7, .1, 1); }
.gp-feat:hover img { scale: 1.07; }
.gp-feat .gp-n { display: block; font-size: 30px; margin-bottom: 6px; }
.gp-feat h3 { font-family: var(--f-head); font-weight: 800; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: -.02em; margin-bottom: 8px; }
.gp-feat p { color: var(--ink-dim); line-height: 1.5; }

@media (max-width: 1000px) {
  .gp-story-grid { grid-template-columns: 1fr; gap: 14px; align-items: end; }
  .gp-demo { order: -1; aspect-ratio: 16 / 9; max-height: 36svh; box-shadow: 6px 6px 0 var(--pink); }
  .gp-story-in { align-items: center; padding-bottom: 0; }
  .gp-story-grid .gp-story-l { width: 100%; }
  .gp-slist li p { font-size: 13px; }
  .gp-feats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .gp-demo *, .gp-bee-s, .gp-bee-s * { animation: none !important; }
  .gp-demo .fx { opacity: 0; }
}


/* ═════════ POVESTEA, ecran întreg (stil Rockstar VI): capturi din joc care se dezvăluie la derulare ═════════ */
.gp-story { height: 420vh; }
.gp-story-in { position: sticky; top: 0; height: 100svh; display: block; padding: 0; overflow: hidden; z-index: 3; background: #0b0b0d; }
.gp-slides { position: absolute; inset: 0; }
.gp-slide { position: absolute; inset: 0; margin: 0; clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.76, 0, .2, 1); }
.gp-slide:nth-child(1) { clip-path: inset(0); }
.gp-slide.on { clip-path: inset(0); }
.gp-slide img { width: 100%; height: 100%; object-fit: cover; scale: 1.14; transition: scale 3.2s cubic-bezier(.2, .7, .1, 1); }
.gp-slide.cur img { scale: 1; }
.gp-slide figcaption { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(110px, 16vh, 190px); display: grid; gap: 10px; max-width: 640px; }
.gp-slide[data-side="r"] figcaption { left: auto; margin-left: auto; text-align: right; justify-items: end; }
.gp-slide .big { font-family: var(--f-display); font-size: clamp(110px, 20vw, 300px); line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--pink); opacity: .9; }
.gp-slide h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 7.4vw, 118px); line-height: .9; text-transform: uppercase; color: #f4f1ea; text-shadow: 5px 5px 0 #0b0b0d; }
.gp-slide p { font-size: clamp(15px, 1.4vw, 20px); line-height: 1.45; max-width: 38ch; color: rgba(244, 241, 234, .92); text-shadow: 0 2px 0 #0b0b0d; }
.gp-slide figcaption > * { opacity: 0; translate: 0 40px; transition: opacity .7s ease, translate .8s cubic-bezier(.2, .7, .1, 1); }
.gp-slide.cur figcaption > * { opacity: 1; translate: 0 0; }
.gp-slide.cur figcaption > :nth-child(1) { transition-delay: .35s; } .gp-slide.cur figcaption > :nth-child(2) { transition-delay: .5s; } .gp-slide.cur figcaption > :nth-child(3) { transition-delay: .65s; }
.gp-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 11, 13, .6), transparent 22%, transparent 45%, rgba(11, 11, 13, .88)); }
.gp-chap { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 20px); padding-inline: var(--gutter); }
.gp-chap .gp-slist { display: flex; gap: clamp(8px, 1.6vw, 24px); flex-wrap: wrap; }
.gp-chap .gp-slist li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border: 2px solid rgba(244, 241, 234, .35); background: rgba(11, 11, 13, .55); border-left: 2px solid rgba(244, 241, 234, .35); opacity: 1; transition: background .3s, border-color .3s, color .3s; backdrop-filter: blur(6px); }
.gp-chap .gp-slist li .gp-n { font-size: 24px; color: var(--pink-hi, #ff4d94); }
.gp-chap .gp-slist li .t { font: 700 clamp(13px, 1.1vw, 16px) var(--f-head); color: var(--cream); }
.gp-chap .gp-slist li.on { background: var(--pink); border-color: var(--pink); box-shadow: 4px 4px 0 #0b0b0d; }
.gp-chap .gp-slist li.on .gp-n, .gp-chap .gp-slist li.on .t { color: #fff; }
.gp-story .gp-hud { position: absolute; right: var(--gutter); bottom: clamp(18px, 3vh, 36px); width: min(440px, calc(100vw - 2 * var(--gutter))); margin: 0; background: var(--pink); border: 3px solid #0b0b0d; box-shadow: 6px 6px 0 #0b0b0d; }
.gp-story .gp-stage-bar { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 6px; background: rgba(244, 241, 234, .15); }
.gp-story .gp-stage-bar i { background: var(--pink); }
@media (max-width: 1000px) {
  .gp-slide figcaption, .gp-slide[data-side="r"] figcaption { left: var(--gutter); right: var(--gutter); margin: 0; text-align: left; justify-items: start; bottom: 160px; }
  .gp-slide .big { font-size: clamp(80px, 24vw, 160px); }
  .gp-chap .gp-slist li .t { display: none; } .gp-chap .gp-slist li.on .t { display: inline; }
  .gp-story .gp-hud { left: var(--gutter); width: auto; grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .gp-slide, .gp-slide img, .gp-slide figcaption > * { transition: none; } }


/* ═════════ RETUȘURI UI: ritm de culoare ca pe restul site-ului + titluri care respectă diacriticele ═════════ */
/* Anton MAJUSCULE cu Ă Â Î Ș Ț: la .92 accentele se calcă pe rândul de sus; pagina asta are mult text românesc */
.game-page .h-lg { line-height: 1.2; padding-top: .06em; }
.gp-final .h-xl { line-height: 1; }
.gp-slide h3 { line-height: 1; }
.gp-card h3 { line-height: 1; }

/* 02: bloc crem cu margine zimțată (între povestea foto și constructorul întunecat) */
.g3-field.section { z-index: 2; padding-block: clamp(90px, 11vw, 160px); }
.g3-field .h-lg { text-shadow: none; max-width: 16ch; color: #0b0b0d; }
.g3-field .gp-feat .im { border-color: #0b0b0d; box-shadow: 8px 8px 0 var(--pink); }
.g3-field .gp-feat h3 { color: #0b0b0d; }
.g3-field .gp-feat p { color: rgba(11, 11, 13, .72); }
.g3-build { position: relative; }

/* 05: etichetele tastelor pe aceeași coloană */
.gp-key .k { min-width: 164px; }
@media (max-width: 700px) { .gp-key .k { min-width: 128px; } }

/* 02: scena cinematică 3D (în loc de poze) */
.gp-stage { position: relative; aspect-ratio: 21 / 9; margin-top: clamp(24px, 3vw, 44px); background: #0b0b0d; border: 3px solid #0b0b0d; box-shadow: 10px 10px 0 var(--pink); overflow: hidden; }
.gp-stage-poster { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, .15), rgba(11, 11, 13, .55)), url(../assets/img/game/shot-chase.jpg) center / cover; transition: opacity .7s ease; }
/* terenul live: game-3d.js mută aici canvasul principal (#gl.in-stage); fără WebGL rămâne captura */
.gp-stage { cursor: grab; touch-action: pan-y; user-select: none; }
.gp-stage.dragging { cursor: grabbing; }
.gp-stage.live .gp-stage-poster { opacity: 0; pointer-events: none; }
#gl.in-stage { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; visibility: visible; clip-path: none; pointer-events: none; }
.gp-stage-hud { position: absolute; z-index: 2; left: 14px; right: 14px; top: 12px; bottom: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; pointer-events: none; color: #f4f1ea; }
.gp-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; background: rgba(11, 11, 13, .72); border: 1px solid rgba(244, 241, 234, .25); }
.gp-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); animation: gp-rec 1.6s ease-out infinite; }
@keyframes gp-rec { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 92, 0); } }
.gp-cams { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }
.gp-cams button { padding: 10px 16px; border: 2px solid #f4f1ea; background: rgba(11, 11, 13, .7); color: #f4f1ea; font: 700 14px var(--f-head); cursor: pointer; transition: background .2s, color .2s, transform .2s cubic-bezier(.34, 1.56, .5, 1), box-shadow .2s; backdrop-filter: blur(6px); }
.gp-cams button:hover { transform: translateY(-2px); }
.gp-cams button.on { background: var(--pink); border-color: var(--pink); color: #fff; box-shadow: 4px 4px 0 #0b0b0d; }
.gp-cams button:focus-visible { outline: 3px solid #f4f1ea; outline-offset: 2px; }
.gp-feats { margin-top: clamp(30px, 4vw, 56px); }
.gp-feat { border-top: 3px solid #0b0b0d; padding-top: 14px; }
@media (max-width: 700px) { .gp-stage { aspect-ratio: 4 / 3; box-shadow: 6px 6px 0 var(--pink); } .gp-live { font-size: 10px; } .gp-cams button { padding: 8px 11px; font-size: 12.5px; } }

/* ═════════ STIL CINEMATIC (referință: rockstargames.com/VI) ═════════ */
/* derulare lină Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* grain de peliculă + vignetă peste toată pagina */
.game-page::before { content: ''; position: fixed; inset: 0; z-index: 79; pointer-events: none; background: radial-gradient(120% 95% at 50% 46%, transparent 58%, rgba(0, 0, 0, .38) 100%); }
.game-page::after { content: ''; position: fixed; inset: -30%; z-index: 80; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); animation: gp-grain .9s steps(6) infinite; }
@keyframes gp-grain { 0% { transform: translate(0, 0); } 17% { transform: translate(-4%, 3%); } 33% { transform: translate(3%, -5%); } 50% { transform: translate(-6%, -2%); } 67% { transform: translate(5%, 4%); } 83% { transform: translate(-2%, 6%); } 100% { transform: translate(0, 0); } }

/* erou: titlul se retrage și se mărește la derulare */
.g3-title { transform: translate3d(0, calc(var(--hp, 0) * -16vh), 0) scale(calc(1 + var(--hp, 0) * .12)); opacity: calc(1 - var(--hp, 0) * 1.1); transform-origin: 50% 40%; }
.g3-hero-ui { transform: translate3d(0, calc(var(--hp, 0) * 7vh), 0); opacity: calc(1 - var(--hp, 0) * 1.5); }

/* titluri de secțiune: se dezvăluie ca printr-o mască (cu loc pentru diacritice sus) */
/* masca e o animație pornită de .in: un clip-path pus dinainte face titlul „invizibil” și pentru IntersectionObserver, care nu l-ar mai declanșa */
.game-page .h-lg[data-reveal].in { animation: gp-mask 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes gp-mask { from { clip-path: inset(-.25em 0 100% 0); transform: translateY(.45em); } to { clip-path: inset(-.25em 0 -.25em 0); transform: none; } }
@media (prefers-reduced-motion: reduce) { .game-page .h-lg[data-reveal].in { animation: none; } }

/* povestea cu scenă 3D live: fundalul e transparent, doar unul din cadre e vizibil, ca la un trailer */
.gl-story .gp-story { height: 600vh; }
.gl-story .gp-story-in { background: transparent; }
.gl-story .gp-slide { clip-path: none !important; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.gl-story .gp-slide.cur { opacity: 1; }
.gl-story .gp-slide img { display: none; }
.gl-story .gp-shade { background: linear-gradient(180deg, rgba(11, 11, 13, .55), transparent 24%, transparent 52%, rgba(11, 11, 13, .8)); }
.gl-story .gp-slide .big { -webkit-text-stroke: 2px var(--pink); }
.gl-story .is-fly .gp-slide, .gl-story .gp-story.is-fly .gp-slide { opacity: 0; }
.gl-story .gp-story.is-fly .gp-hud { opacity: 0; translate: 0 20px; }
.gp-story .gp-hud { transition: opacity .5s, translate .5s; }
.gp-flycap { display: none; }
.gl-story .gp-flycap { display: grid; gap: 10px; position: absolute; left: var(--gutter); bottom: clamp(60px, 14vh, 150px); max-width: 640px; opacity: 0; translate: 0 36px; transition: opacity .8s ease .15s, translate .9s cubic-bezier(.2, .7, .1, 1) .15s; pointer-events: none; }
.gl-story .gp-story.is-fly .gp-flycap { opacity: 1; translate: 0 0; }
.gp-flycap .mono-cap { color: var(--pink-hi, #ff4d94); }
.gp-flycap h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 8vw, 128px); line-height: 1.14; text-transform: uppercase; color: #f4f1ea; text-shadow: 5px 5px 0 #0b0b0d; }
.gp-flycap p { font-size: clamp(15px, 1.4vw, 20px); line-height: 1.45; max-width: 40ch; color: rgba(244, 241, 234, .92); text-shadow: 0 2px 0 #0b0b0d; }
@media (prefers-reduced-motion: reduce) { .game-page::after { animation: none; } }

/* ═════════ 01 / JOCUL: titlu în stânga, text în dreapta; dedesubt cele trei faze ale meciului, ca panouri mari cu capturi ═════════ */
.gp-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.gp-intro-h { display: grid; gap: 18px; }
.g3-intro .h-lg { font-size: clamp(46px, 6vw, 100px); }
.gp-lede { margin: 0; max-width: 40ch; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.55; color: rgba(244, 241, 234, .82); border-left: 3px solid var(--pink); padding-left: 18px; }
/* „scrub” (site-fx.js) pornește textul neaprins în gri închis, gândit pentru crem; pe negru partea neaprinsă dispare */
.g3-build .scrub { color: rgba(244, 241, 234, .88); text-shadow: none; background-image: linear-gradient(180deg, currentColor calc(var(--sp, 0) * 140% - 40%), rgba(244, 241, 234, .22) calc(var(--sp, 0) * 140%)); }
.gp-phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.gp-phase { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #17171b; border: 1px solid rgba(244, 241, 234, .18); transition: transform .35s cubic-bezier(.34, 1.56, .5, 1), box-shadow .35s, border-color .35s; }
.gp-phase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.04; transition: scale 1.2s cubic-bezier(.2, .7, .1, 1), filter .6s; filter: saturate(.9) brightness(.85); }
.gp-phase::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 13, .1) 30%, rgba(11, 11, 13, .92) 100%); pointer-events: none; }
/* banda de sus = tot meciul (2:30); partea roz = cât ține faza */
.gp-phase::before { content: ''; position: absolute; z-index: 2; left: 16px; right: 16px; top: 16px; height: 4px; background: linear-gradient(90deg, transparent var(--x, 0%), var(--pink) var(--x, 0%), var(--pink) calc(var(--x, 0%) + var(--w, 100%)), transparent calc(var(--x, 0%) + var(--w, 100%))), rgba(244, 241, 234, .22); }
.gp-phase-b { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 clamp(16px, 1.6vw, 24px) clamp(18px, 1.8vw, 26px); display: grid; gap: 6px; }
.gp-phase-b b { font-family: var(--f-display); font-weight: 400; font-size: clamp(64px, 7vw, 120px); line-height: .9; color: #f4f1ea; font-variant-numeric: tabular-nums; text-shadow: 4px 4px 0 #0b0b0d; }
.gp-phase-b h3 { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-hi, #ff4d94); }
.gp-phase-b p { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.45; color: rgba(244, 241, 234, .86); max-width: 30ch; }
.gp-phase:hover { transform: translateY(-6px); border-color: var(--pink); box-shadow: 10px 10px 0 var(--pink); }
.gp-phase:hover img { scale: 1.12; filter: saturate(1.1) brightness(1); }
@media (max-width: 1000px) { .gp-intro { grid-template-columns: 1fr; align-items: start; } .gp-phases { grid-template-columns: 1fr; } .gp-phase { aspect-ratio: 16 / 10; } }
