/* ==========================================================
   ACE Team — 2026 site
   ========================================================== */
:root {
  /* palette taken from the original aceteam.cl stylesheet */
  --bg: #282828;
  --bg-2: #1c1d1d;
  --bg-3: #343434;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eaeaea;
  --muted: #acacac;
  --dim: #888888;
  --accent: #fe8300;
  --display: "Open Sans", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--body);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #000; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

em { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; }

.eyebrow {
  margin: 0 0 16px;
  font: 600 14px/1 var(--body);
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--dim);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  background: var(--text); color: var(--bg-2);
  font: 700 16px/1 var(--body);
  letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--text);
  transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,.3); }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 18px var(--gutter);
  transition: background .3s, padding .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(28, 29, 29, .96);
  border-color: var(--line);
  padding-block: 12px;
}
.nav__logo img { width: 62px; height: auto; transition: width .3s; }
.nav.is-scrolled .nav__logo img { width: 52px; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative;
  font: 700 16px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    margin-left: auto; width: 46px; height: 46px;
    background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 50%;
    position: relative; z-index: 2;
  }
  .nav__toggle span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .3s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 var(--gutter);
    background: rgba(28,29,29,.98);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  .nav__links a { font: 700 clamp(36px, 10vw, 56px)/1.2 var(--display); color: var(--text); letter-spacing: .04em; }
  .nav__links a::after { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px var(--gutter) 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  /* charcoal panels with an angled split, echoing the old site's header */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 55% at 50% 18%, rgba(255,255,255,.07), rgba(255,255,255,0) 70%),
    linear-gradient(118deg, rgba(0,0,0,0) 0 34%, rgba(0,0,0,.22) 34.05% 100%),
    linear-gradient(62deg, rgba(255,255,255,.025) 0 22%, rgba(255,255,255,0) 22.05% 100%),
    linear-gradient(180deg, #2a2b2b 0%, #1f2020 60%, #1c1d1d 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(28,29,29,.6), transparent 35%, transparent 70%, var(--bg));
}
.hero__inner { width: 100%; max-width: var(--max); margin: 0 auto; text-align: center; }
.hero__logo { margin: 0 auto; width: clamp(180px, 24vw, 340px); }
.hero__logo img { width: 100%; height: auto; }
.hero__tag {
  margin: 22px 0 clamp(36px, 5vw, 56px);
  font: 600 clamp(14px, 1.4vw, 17px)/1.4 var(--body);
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.feature { text-align: left; }

/* featured carousel */
.feature__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1920 / 620;
  background: var(--bg-2);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px var(--line);
}
/* each slide = key art + game logo. Only transform/opacity animate, so it stays on the GPU. */
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide__art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(var(--s, 1));
  will-change: transform;
}
.slide.is-on .slide__art { animation: kenburns 9s cubic-bezier(.25,.1,.25,1) both; }
@keyframes kenburns {
  from { transform: scale(calc(var(--s, 1) * 1.1)) translate3d(1.5%, 0, 0); }
  to   { transform: scale(var(--s, 1)) translate3d(0, 0, 0); }
}
/* soft shade on the logo side so every logo stays legible */
.slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20,20,20,.55), rgba(20,20,20,0) 55%);
}
.slide--right::after { background: linear-gradient(270deg, rgba(20,20,20,.55), rgba(20,20,20,0) 55%); }
.slide--center::after { background: radial-gradient(ellipse at center, rgba(20,20,20,.5), rgba(20,20,20,0) 60%); }
.slide__logo {
  position: absolute; z-index: 1; top: 50%;
  left: 6%; width: 30%; max-height: 70%; object-fit: contain; object-position: left center;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.55));
  opacity: 0; transform: translate3d(-16px, -50%, 0);
  transition: opacity .7s ease .35s, transform .9s cubic-bezier(.2,.7,.2,1) .35s;
  will-change: transform, opacity;
}
.slide--right .slide__logo { left: auto; right: 6%; object-position: right center; transform: translate3d(16px, -50%, 0); }
.slide--center .slide__logo { left: 50%; object-position: center; transform: translate3d(-50%, -42%, 0); }
.slide.is-on .slide__logo { opacity: 1; transform: translate3d(0, -50%, 0); }
.slide--center.is-on .slide__logo { transform: translate3d(-50%, -50%, 0); }
.feature__frame.is-paused .slide__art { animation-play-state: paused; }
@media (max-width: 600px) { .slide__logo { width: 40%; } }
.feature__arrow {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(28,29,29,.75);
  font-size: 28px; line-height: 1;
  opacity: 0; transition: opacity .3s, background .2s;
}
.feature__frame:hover .feature__arrow, .feature__arrow:focus-visible { opacity: 1; }
.feature__arrow:hover { background: var(--accent); border-color: var(--accent); }
.feature__arrow--prev { left: 16px; }
.feature__arrow--next { right: 16px; }

.feature__bar { display: flex; align-items: center; gap: 24px; margin-top: 20px; flex-wrap: wrap; }
.feature__caption { display: flex; align-items: baseline; gap: 14px; flex: 1 1 260px; min-width: 0; }
.feature__year { font: 600 14px/1 var(--body); color: var(--dim); letter-spacing: .12em; }
.feature__name { font: 700 clamp(22px, 2.4vw, 30px)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.feature__dots { display: flex; gap: 8px; }
.feature__dots button {
  position: relative; width: 44px; height: 4px; padding: 0; border: 0;
  background: rgba(255,255,255,.18); border-radius: 4px; overflow: hidden;
}
.feature__dots button::before { content: ""; position: absolute; inset: -12px 0; }
.feature__dots button span { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.feature__dots button.is-done span { background: var(--muted); }
.feature__dots button.is-on span { animation: fill var(--dur, 6s) linear forwards; }
.feature__dots button.is-done span { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

.hero__scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--text); border-radius: 2px; animation: scrolly 1.8s var(--ease) infinite; }
@keyframes scrolly { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 760px), (max-width: 600px) { .hero__scroll { display: none; } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 150px) var(--gutter) 0; }
.section__head { margin-bottom: clamp(36px, 5vw, 64px); }
.section__title {
  margin: 0;
  font: 700 clamp(40px, 5.5vw, 72px)/1 var(--display);
  text-transform: uppercase; letter-spacing: .03em;
}

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.game {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color .35s, background .35s;
}
.game:hover { border-color: rgba(255,255,255,.22); background: #222323; }
.game__media { position: relative; display: block; aspect-ratio: 12 / 5; overflow: hidden; background: var(--bg-3); }
.game__art {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(var(--s, 1));
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.game:hover .game__art { transform: scale(calc(var(--s, 1) * 1.07)); }
.game__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(20,20,20,.7), rgba(20,20,20,0) 60%);
}
.game__logo {
  position: absolute; z-index: 1; bottom: 7%; left: 5%;
  width: 34%; max-height: 62%; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.6));
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.game__media--right .game__logo { left: auto; right: 5%; object-position: right bottom; }
.game__media--center .game__logo { left: 0; right: 0; margin: 0 auto; object-position: center bottom; }
.game:hover .game__logo { transform: translate3d(0, -6px, 0); }
.game--featured .game__logo { width: 38%; }
/* logos settle in as the card scrolls into view */
.js .game.reveal .game__logo { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s ease .25s, transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
.js .game.reveal.in .game__logo { opacity: 1; transform: none; }
.js .game.reveal.in:hover .game__logo { transform: translate3d(0, -6px, 0); transition-delay: 0s; }
.game__body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.game__meta { margin: 0 0 10px; display: flex; gap: 14px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.game__meta span:first-child { color: var(--text); }
.game__title { margin: 0 0 12px; font: 700 clamp(24px, 2.4vw, 32px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.game__desc { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.game__link {
  margin-top: auto; align-self: flex-start;
  font: 700 15px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 2px solid var(--bg-3);
  transition: color .2s, border-color .2s;
}
.game:hover .game__link { border-color: var(--accent); }
.game__link:hover { color: var(--accent); }
.game__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

.game--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; }
.game--featured .game__media { aspect-ratio: auto; min-height: 340px; }

.game--featured .game__body { padding: clamp(28px, 3.5vw, 48px); justify-content: center; }
.game--featured .game__title { font-size: clamp(32px, 3.8vw, 52px); }
.game--featured::before {
  content: "Latest release"; position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 7px 12px; border-radius: var(--radius);
  background: rgba(28,29,29,.85); color: var(--text); border-left: 3px solid var(--accent);
  font: 700 11px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
}

@media (max-width: 900px) {
  .games { grid-template-columns: 1fr; }
  .game--featured { grid-template-columns: 1fr; }
  .game--featured .game__media { min-height: 0; aspect-ratio: 12 / 5; }
}
@media (max-width: 520px) { .game__body { padding: 22px 20px 24px; } }

/* ---------- studio ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.studio__copy p { margin: 0 0 18px; color: var(--muted); }
.studio__copy .studio__lead { font: 300 clamp(21px, 2.1vw, 27px)/1.4 var(--body); color: var(--text); }
.stats {
  margin: clamp(56px, 8vw, 100px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat dt { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.stat dd { margin: 0; font: 700 clamp(48px, 5.5vw, 76px)/.95 var(--display); }
.stat dd.stat__small { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; padding-top: 8px; }
@media (max-width: 860px) {
  .studio__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; margin-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
}

/* ---------- awards ---------- */
.awards { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.awards__gallery {
  position: sticky; top: 110px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.awards__gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  filter: grayscale(.7) contrast(1.05); opacity: .8;
  transition: filter .3s, opacity .3s;
}
.awards__gallery img:hover { filter: none; opacity: 1; }
.awards__gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; object-position: center 70%; }
.awards__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.award {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .25s var(--ease);
}
.award:hover { background: var(--bg-2); padding-inline: 18px; }
.award__year { font: 700 22px/1 var(--display); color: var(--dim); }
.award:hover .award__year { color: var(--accent); }
.award strong { display: block; font: 600 17px/1.3 var(--body); }
.award div span { font-size: 14px; color: var(--dim); }
.award__game {
  font: 600 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); white-space: nowrap;
}
@media (max-width: 960px) {
  .awards { grid-template-columns: 1fr; }
  .awards__gallery { position: static; grid-template-columns: repeat(4, 1fr); }
  .awards__gallery img:first-child { grid-column: auto; aspect-ratio: 1; }
}
@media (max-width: 600px) {
  .award { grid-template-columns: 52px 1fr; }
  .award__game { grid-column: 2; justify-self: start; }
  .awards__gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 32px); }
.mail {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s;
}
.mail:hover { border-color: rgba(255,255,255,.25); }
.mail__label { margin: 0 0 14px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.mail__addr { font: 700 clamp(26px, 3.2vw, 42px)/1.1 var(--display); word-break: break-word; transition: color .2s; }
.mail__addr:hover { color: var(--accent); }
.mail__copy {
  position: absolute; top: 22px; right: 22px;
  padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: transparent;
  font-size: 13px; color: var(--muted); transition: background .2s, color .2s;
}
.mail__copy:hover { background: var(--text); color: var(--bg-2); }
.community { margin-top: clamp(40px, 6vw, 72px); }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); font-weight: 600; font-size: 15px; transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { max-width: var(--max); margin: clamp(90px, 12vw, 160px) auto 0; padding: 40px var(--gutter) 36px; border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); font-size: 15px; }
.footer__links a:hover { color: var(--text); }
.footer__partners { margin-left: auto; display: flex; gap: 10px; }
.footer__partners img { height: 46px; width: auto; border-radius: 6px; }
.footer__legal { margin: 32px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 700px) { .footer__partners { margin-left: 0; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: var(--radius); background: var(--text); color: var(--bg-2); font-weight: 600; font-size: 14px;
  transition: opacity .3s, translate .3s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* condensed display type, like the original site's Open Sans Condensed.
   Kept last so the `font:` shorthands above don't reset it. */
.section__title, .feature__name, .game__title, .stat dd, .award__year, .mail__addr,
.nav__links a, .hero__tag, .btn, .game__link, .eyebrow, .game--featured::before {
  font-stretch: 75%;
}

/* the Zeno Clash banners have a painted frame baked in; trim it */
img.frame-crop { --s: 1.1; }

/* the debut (last card) spans the full row, so the grid never ends on an orphan */
.games > .game:last-child:nth-child(even) { grid-column: 1 / -1; display: grid; grid-template-columns: 1.55fr 1fr; }
.games > .game:last-child:nth-child(even) .game__media { aspect-ratio: auto; min-height: 300px; }
.games > .game:last-child:nth-child(even) .game__body { padding: clamp(28px, 3.5vw, 48px); justify-content: center; }
@media (max-width: 900px) {
  .games > .game:last-child:nth-child(even) { grid-template-columns: 1fr; }
  .games > .game:last-child:nth-child(even) .game__media { min-height: 0; aspect-ratio: 12 / 5; }
}

@media (max-width: 600px) {
  .feature__dots { gap: 6px; flex: 1 1 100%; }
  .feature__dots button { flex: 1 1 0; width: auto; }
}

/* art where the logo is dark on a light area (The Mound): no shade, logo in the middle */
.slide--noshade::after, .game__media--noshade::after { background: none; }
.game__media--mid .game__logo { top: 0; bottom: 0; margin: auto; height: 58%; max-height: none; object-position: center; }
.slide--noshade .slide__logo, .game__media--noshade .game__logo { filter: drop-shadow(0 2px 10px rgba(255,255,255,.25)); }

/* card logos: vertically centered on every card; shade follows the logo's side */
.game__logo { top: 0; bottom: 0; margin-block: auto; height: 58%; max-height: none; object-position: left center; }
.game__media--right .game__logo { object-position: right center; }
.game__media--center .game__logo { margin: auto; object-position: center; }
.game__media::after { background: linear-gradient(90deg, rgba(20,20,20,.6), rgba(20,20,20,0) 60%); }
.game__media--right::after { background: linear-gradient(270deg, rgba(20,20,20,.6), rgba(20,20,20,0) 60%); }
.game__media--center::after { background: radial-gradient(ellipse at center, rgba(20,20,20,.5), rgba(20,20,20,0) 65%); }
.game__media--noshade::after { background: none; }

/* three contact cards: 3 across on wide screens, stacking as space runs out */
.contact__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact__grid .mail { padding: clamp(24px, 3vw, 40px); }
.contact__grid .mail__addr { font-size: clamp(22px, 2.2vw, 32px); }
@media (max-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .contact__grid { grid-template-columns: 1fr; } }

/* larger game logos (The Mound keeps its original size) */
.slide .slide__logo { width: 42%; max-height: 82%; }
.game__media .game__logo { width: 48%; height: 74%; }
.game--featured .game__media .game__logo { width: 50%; }
@media (max-width: 600px) { .slide .slide__logo { width: 54%; } }

.slide.slide--noshade .slide__logo { width: 30%; max-height: 70%; }
.game__media.game__media--noshade .game__logo { width: 38%; height: 58%; }
@media (max-width: 600px) { .slide.slide--noshade .slide__logo { width: 40%; } }

/* awards gallery: four photos in an even 2x2 grid */
.awards__gallery img:first-child { grid-column: auto; aspect-ratio: 1; object-position: center; }

/* contact: ACE Team playing card beside the addresses */
.contact__layout { display: grid; grid-template-columns: minmax(140px, 210px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ace-card { margin: 0; }
.ace-card img {
  width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotate(-3deg);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.ace-card:hover img { transform: rotate(0deg) translate3d(0,-6px,0); }
.contact__main .contact__grid { grid-template-columns: 1fr; gap: 14px; }
.contact__main .mail { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 22px 28px; padding-right: 100px; }
.contact__main .mail__label { margin: 0; flex: 0 0 150px; }
.contact__main .mail__copy { top: 50%; translate: 0 -50%; right: 20px; }
.contact__main .community { margin-top: 40px; }
@media (max-width: 860px) {
  .contact__layout { grid-template-columns: 1fr; }
  .ace-card { position: static; width: min(154px, 42%); margin: 0 auto 8px; }
}
@media (max-width: 520px) {
  .contact__main .mail { padding: 20px; padding-right: 84px; }
  .contact__main .mail__label { flex-basis: 100%; }
}

/* banners: hide each slide's art until decoded, then fade it in (no top-to-bottom painting) */
.feature__frame { background: linear-gradient(120deg, #1c1d1d, #2a2a2a 50%, #1c1d1d); }
.slide .slide__art, .slide .slide__logo { visibility: hidden; }
.slide.is-loaded .slide__art, .slide.is-loaded .slide__logo { visibility: visible; }
.slide:not(.is-loaded).is-on { opacity: 0; }

/* every other image: invisible until loaded, then a short fade (set up by main.js) */
img.img-fade { transition: opacity .5s ease; }
img.img-fade:not(.is-loaded) { opacity: 0 !important; }
.game__art.img-fade { transition: transform 1.6s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.awards__gallery img.img-fade { transition: filter .3s, opacity .5s ease; }
.game__media, .awards__gallery figure, .ace-card { background-color: var(--bg-2); }

/* carousel arrows: always above the banners (the visible slide used to cover them,
   so clicks hit the image), and hidden until the first banner has loaded */
.feature__arrow { z-index: 3; }
.feature__frame:not(.is-ready) .feature__arrow { opacity: 0; pointer-events: none; }
