/* EMP Tweaks landing: sci-fi game carousel (#games).
   Cards: chamfered HUD frame (full border, also on the cut corners), scanlines, holo sweep,
   coverflow depth, reticle around the active card. Colours follow the site (blue/violet) plus a
   per-game accent (--gc). */
@property --gc-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

.landing .ln-games { padding: clamp(56px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); overflow: hidden; position: relative; }
.landing .gc-stage { position: relative; height: 340px; margin-top: 26px; }

/* light beam + floor grid behind the active card, tinted with the game colour */
.landing .gc-stage::before {
  content: ""; position: absolute; left: 50%; top: -6%; width: min(620px, 96vw); height: 112%;
  transform: translateX(-50%); pointer-events: none; transition: background .6s;
  background:
    radial-gradient(42% 46% at 50% 48%, color-mix(in srgb, var(--gc, #e11d48) 45%, transparent), transparent 72%),
    repeating-linear-gradient(90deg, rgba(150, 165, 185, .12) 0 1px, transparent 1px 10px);
  -webkit-mask: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 76%);
          mask: radial-gradient(50% 50% at 50% 50%, #000 30%, transparent 76%);
}
.landing .gc-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(900px, 100vw); height: 120px;
  transform: translateX(-50%) perspective(400px) rotateX(62deg); transform-origin: bottom; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(150, 165, 185, .28) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(150, 165, 185, .28) 0 1px, transparent 1px 22px);
  -webkit-mask: radial-gradient(50% 100% at 50% 100%, #000 20%, transparent 75%);
          mask: radial-gradient(50% 100% at 50% 100%, #000 20%, transparent 75%);
  opacity: .55;
}

.landing .gc-track { position: absolute; inset: 0; outline: none; perspective: 1100px; transform-style: preserve-3d; z-index: 1; }

/* reticle around the centre card */
.landing .gc-reticle {
  position: absolute; left: 50%; top: 50%; width: 416px; height: 254px; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 2;
}
.landing .gc-reticle i { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gc, #3be08c); filter: drop-shadow(0 0 6px var(--gc, #3be08c)); transition: border-color .5s; }
.landing .gc-reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.landing .gc-reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.landing .gc-reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.landing .gc-reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.landing .gc-stage.is-switch .gc-reticle { animation: gcLock .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes gcLock { 0% { transform: translate(-50%, -50%) scale(1.14); opacity: 0; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }

/* ---------- card ---------- */
.landing .gc-card {
  --cut: 16px;
  position: absolute; left: 50%; top: 50%; width: 336px; height: 189px; margin-top: -94.5px;
  display: block; text-decoration: none; color: #fff;
  transform: var(--pos) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s;
  filter: saturate(.7) brightness(.72);
  /* the frame: this background shows as a 1.5px border all the way round, cut corners included */
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(160deg, rgba(150, 165, 185, .55), rgba(150, 165, 185, .18) 40%, rgba(225, 29, 72, .45));
}
.landing .gc-inner {
  --c2: calc(var(--cut) - 0.6px);
  position: absolute; inset: 1.5px; overflow: hidden;
  clip-path: polygon(var(--c2) 0, calc(100% - var(--c2)) 0, 100% var(--c2), 100% calc(100% - var(--c2)), calc(100% - var(--c2)) 100%, var(--c2) 100%, 0 calc(100% - var(--c2)), 0 var(--c2));
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--gc) 40%, transparent), transparent 60%),
    radial-gradient(110% 70% at 0% 100%, rgba(150, 165, 185, .35), transparent 65%),
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 22px 100%,
    #090b14;
}
.landing .gc-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.landing .gc-mono {
  position: absolute; left: 0; right: 0; top: 44%; transform: translateY(-50%); text-align: center;
  font: 700 64px/1 var(--ln-display); letter-spacing: -.02em; color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--gc) 75%, #fff);
  text-shadow: 0 0 30px color-mix(in srgb, var(--gc) 50%, transparent);
  opacity: .9;
}
.landing .gc-card:not(.no-photo) .gc-mono { display: none; }
/* real banners carry their own logo: no second name on top, lighter shade */
.landing .gc-card:not(.no-photo) .gc-name { display: none; }
.landing .gc-card:not(.no-photo) .gc-shade { background: linear-gradient(180deg, rgba(6, 7, 14, .35) 0%, rgba(6, 7, 14, 0) 26%, rgba(6, 7, 14, 0) 70%, rgba(6, 7, 14, .55) 100%); }
.landing .gc-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; opacity: .55; }
.landing .gc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 7, 14, .25) 0%, rgba(6, 7, 14, 0) 30%, rgba(6, 7, 14, .1) 55%, rgba(6, 7, 14, .94) 100%); }
.landing .gc-holo { /* moving light sweep, follows the mouse on the active card */
  position: absolute; inset: -20%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 48%, color-mix(in srgb, var(--gc) 35%, transparent) 52%, transparent 62%);
  background-size: 250% 100%; background-position: var(--mx, 0%) 0;
}
.landing .gc-hud {
  position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between;
  font: 600 9.5px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; color: rgba(230, 237, 245, .75);
}
.landing .gc-hud i { font-style: normal; }
.landing .gc-hud i:last-child { color: var(--gc); }
.landing .gc-name {
  position: absolute; left: 12px; right: 12px; bottom: 26px; text-align: center;
  font-family: var(--ln-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: 17px; line-height: 1.05; text-shadow: 0 2px 12px rgba(0, 0, 0, .9);
}
.landing .gc-ticks { /* little HUD scale at the bottom */
  position: absolute; left: 50%; bottom: 11px; width: 64px; height: 5px; transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--gc) 80%, #fff) 0 2px, transparent 2px 6px);
  opacity: .7;
}

/* active card: full colour, animated holo border, floating */
.landing .gc-card.is-on {
  filter: none;
  background: conic-gradient(from var(--gc-a), #3be08c, var(--gc), #b8123a, #3be08c, #3be08c);
  animation: gcSpin 5s linear infinite;
}
.landing .gc-card.is-on .gc-holo { opacity: 1; animation: gcSweep 3.6s ease-in-out infinite; }
.landing .gc-card.is-on .gc-inner img { transform: scale(1.06); }
.landing .gc-card.is-on .gc-ticks { animation: gcTicks 1.2s steps(4) infinite; }
.landing .gc-card:hover:not(.is-on) { filter: saturate(.9) brightness(.9); }
@keyframes gcSpin { to { --gc-a: 360deg; } }
@keyframes gcSweep { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes gcTicks { 50% { opacity: .35; } }
.landing .gc-card:focus-visible { outline: none; }
.landing .gc-card:focus-visible .gc-inner { box-shadow: inset 0 0 0 2px #fff; }

/* ---------- controls ---------- */
.landing .gc-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
.landing .gc-arrow {
  width: 46px; height: 46px; flex: 0 0 auto; cursor: pointer; display: grid; place-items: center;
  border: 1px solid rgba(150, 165, 185, .45); background: rgba(9, 11, 20, .85); border-radius: 12px;
  transition: background .2s, border-color .2s;
}
.landing .gc-arrow::before { content: ""; width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); margin-left: -3px; }
.landing .gc-arrow.is-prev::before { transform: rotate(135deg); margin: 0 -3px 0 0; }
.landing .gc-arrow:hover { background: linear-gradient(160deg, #e11d48, #b8123a); }
.landing .gc-arrow:focus-visible { outline: 2px solid #3be08c; outline-offset: 2px; }
.landing .gc-label { min-width: 260px; text-align: center; }
.landing .gc-count { display: block; font: 600 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; color: var(--ln-mute); margin-bottom: 6px; }
.landing .gc-label strong { display: block; font-family: var(--ln-display); font-size: 22px; color: var(--ln-ink); line-height: 1.2; }
.landing .gc-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; color: #e6edf5; background: rgba(150, 165, 185, .14); border: 1px solid rgba(150, 165, 185, .3);
}
.landing .gc-tag.is-safe { color: #86efac; background: rgba(74, 222, 128, .1); border-color: rgba(74, 222, 128, .35); }
.landing .gc-tag[hidden] { display: none; }
.landing .gc-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 28px; font-size: 15px; color: var(--ln-mute); text-align: center; }
.landing .gc-more a { color: var(--ln-ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid #3be08c; }
.landing .gc-more a:hover { color: #5cebA2; }

@media (max-width: 640px) {
  .landing .gc-stage { height: 240px; }
  .landing .gc-card { width: 256px; height: 144px; margin-top: -72px; --cut: 12px; }
  .landing .gc-mono { font-size: 48px; }
  .landing .gc-reticle { width: 318px; height: 196px; }
  .landing .gc-mono { font-size: 56px; }
  .landing .gc-name { font-size: 14px; bottom: 22px; }
  .landing .gc-label { min-width: 0; flex: 1; }
  .landing .gc-label strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .gc-card, .landing .gc-inner img { transition: none; }
  .landing .gc-card.is-on, .landing .gc-card.is-on .gc-holo, .landing .gc-card.is-on .gc-ticks, .landing .gc-stage.is-switch .gc-reticle { animation: none; }
}

/* =====================================================================
   v2 (Nov 2026): calm, professional game cards.
   Flat row (js/games-carousel.js), square cards with a thin edge and a soft shadow.
   No reticle, HUD labels, ticks, scanlines, light sweep, beam or floor grid.
   ===================================================================== */
.landing .gc-stage { height: 300px; }
.landing .gc-stage::before, .landing .gc-stage::after, .landing .gc-reticle { display: none !important; }
.landing .gc-track { perspective: none; transform-style: flat; }
.landing .gc-card {
  clip-path: none !important;
  background: none !important;
  border-radius: 4px;
  overflow: hidden;
  filter: saturate(0.85) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transform: var(--pos);
  transition-property: transform, opacity, box-shadow;
  transition-duration: 0.5s, 0.3s, 0.3s;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1), ease-out, ease-out;
  animation: none !important;
}
.landing .gc-inner { inset: 0; clip-path: none !important; border-radius: 4px; background: #0e1219; }
.landing .gc-inner::after { /* thin edge drawn over the picture */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.landing .gc-hud, .landing .gc-ticks, .landing .gc-scan, .landing .gc-holo { display: none !important; }
.landing .gc-shade { background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 14, 0.55) 100%) !important; }
.landing .gc-card.is-on {
  filter: none !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.landing .gc-inner img, .landing .gc-card.is-on .gc-inner img { transform: scale(1.08); }   /* some banners have thin bars at the top and bottom */
@media (hover: hover) {
  .landing .gc-card:not(.is-on):hover { opacity: 0.9 !important; }
}
.landing .gc-card:focus-visible .gc-inner { box-shadow: inset 0 0 0 2px #3be08c; }
/* arrows: plain square buttons like the app */
.landing .gc-arrow { border-radius: 2px; border-color: rgba(255, 255, 255, 0.14); background: rgba(17, 21, 29, 0.9); transition-property: background-color, border-color; transition-duration: 0.15s; }
@media (hover: hover) { .landing .gc-arrow:hover { background: #e11d48 !important; border-color: #e11d48; } }
.landing .gc-count { letter-spacing: 0.14em; }
@media (max-width: 640px) { .landing .gc-stage { height: 200px; } }
/* the row fades out to the left and right instead of being cut off by the screen edge */
.landing .gc-stage {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
@media (max-width: 640px) {
  .landing .gc-stage {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
}
