/* home.css -- the home page (src/pages/index.html). Builds on site.css.
   Laid out like a game's site rather than a blog: a gameplay video under the
   logo, a scrolling ticker, a class select like the game's, play-menu tiles,
   the trailer, a strip of big screenshots, news, the Discord. */

/* ---------------------------------------------------------------- shared bits */

.home-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 18px clamp(32px, 4vw, 80px); margin-bottom: clamp(30px, 3vw, 56px);
}
.home-head h2 { margin: 0; }
.home-head__text { max-width: 600px; }
.home-head__text p { color: var(--ink-soft); margin: 0 0 .7em; font-size: 1.1rem; }
.home-head__text > :last-child { margin-bottom: 0; }
.home-head__text .cluster { margin-top: 14px; }

.home-more {
  display: inline-flex; align-items: center; gap: .45em; text-decoration: none;
  font: 400 1.15rem/1.3 var(--display); color: var(--sky-2);
}
.home-more .icon { transition: transform .2s var(--ease); }
.home-more:hover { color: #B3E7FF; }
.home-more:hover .icon { transform: translateX(4px); }

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- hero: a real match playing under the logo */

.hx { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; text-align: center;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 1100px); padding: clamp(80px, 8vw, 130px) 0 clamp(110px, 9vw, 150px); }
.hx__media { position: absolute; inset: 0; z-index: -2; background: #1B3D16; }
.hx__poster, .hx__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx__video { opacity: 0; transition: opacity 1s ease; }
.hx__video.is-playing { opacity: 1; }
.hx::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 65% at 50% 46%, rgba(10, 12, 10, .45), rgba(10, 12, 10, .86)),
    linear-gradient(0deg, var(--bg) 0, transparent 22%);
}
.hx__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.hx__logo { width: clamp(250px, 24vw, 420px); height: auto; margin: 0 auto clamp(4px, .8vw, 14px); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.hx__title { font-size: clamp(3rem, 6.2vw, 7.6rem); max-width: 17ch; margin: 0 auto .22em; text-shadow: 0 6px 0 rgba(0, 0, 0, .4), 0 14px 40px rgba(0, 0, 0, .6); }
.hx__title .slab { margin-top: .1em; white-space: nowrap; }
.hx__lead { max-width: 640px; margin: 0 auto 1.6em; font-size: clamp(1.1rem, .6vw + .8rem, 1.4rem); color: #EEE8DB; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.hx__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.hx__play .dl-btn__label { font-size: 1.5rem; }
.hx__watch { --btn-bg: rgba(12, 12, 10, .55); padding-block: .78em; font-size: 1.3rem; backdrop-filter: blur(6px); }
.hx__watch-play { position: relative; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--sky); box-shadow: 0 3px 0 var(--sky-deep); flex: none; }
.hx__watch-play::after { content: ""; position: absolute; left: 54%; top: 50%; translate: -40% -50%; border-left: .5em solid var(--sky-ink); border-top: .32em solid transparent; border-bottom: .32em solid transparent; }
.hx__chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hx__chips .chip { background: rgba(12, 12, 10, .6); backdrop-filter: blur(4px); }
.hx__scroll { position: absolute; left: 50%; bottom: clamp(56px, 5vw, 80px); translate: -50% 0; width: 44px; height: 44px; display: block; }
.hx__scroll img { width: 100%; height: auto; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .5)); }
@media (prefers-reduced-motion: no-preference) {
  .hx__logo { animation: bob 3.2s ease-in-out infinite alternate; }
  .hx__scroll { animation: bounce 1.6s cubic-bezier(.5, 0, .5, 1) infinite; }
  .hx__scroll img { animation: spin 1.6s linear infinite; }
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .hx { padding-top: 76px; }
  .hx__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hx__ctas .btn { justify-content: center; }
  .hx__scroll { display: none; }
}

/* ---------------------------------------------------------------- ticker: the facts, rolling past like a broadcast */

.ticker { position: relative; z-index: 3; display: flex; overflow: hidden; margin-top: -40px; background: var(--sky); color: var(--sky-ink); transform: rotate(-1.4deg); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8); border-block: 3px solid var(--sky-ink); }
.ticker__track { flex: none; display: flex; list-style: none; margin: 0; padding: 0; }
.ticker__track li { display: flex; align-items: center; gap: 1.1em; padding: .5em 0 .5em 1.1em; white-space: nowrap; font: 400 clamp(1.1rem, 1.35vw, 1.6rem)/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.ticker__track li::after { content: ""; width: .55em; height: .55em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfd8dc 60%, #8a979c); box-shadow: 0 0 0 2px var(--sky-ink); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 40s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- pick your class: the game's class select */

.pick { padding-top: clamp(90px, 8vw, 150px); }
.pick__head { max-width: 900px; margin-bottom: clamp(26px, 3vw, 50px); }
.pick__head h2 { margin-bottom: .3em; }
.pick__head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.12rem; margin: 0; max-width: 680px; }
.pick__stage { position: relative; min-height: clamp(420px, 30vw, 560px); padding: clamp(24px, 3vw, 56px); border-radius: 28px; border: 2px solid var(--sky-line);
  background:
    radial-gradient(50% 70% at 28% 50%, rgba(64, 181, 227, .2), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 90px, transparent 90px 180px),
    linear-gradient(180deg, #1A2230, #10141B);
  box-shadow: 0 0 60px -24px var(--sky), var(--shadow-lg); overflow: hidden; }
.pick__stage::before { /* chalk: the centre circle behind the card */
  content: ""; position: absolute; left: 28%; top: 50%; width: clamp(300px, 30vw, 520px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .08); pointer-events: none; }
.pick__panel { position: relative; display: grid; grid-template-columns: minmax(220px, 420px) 1fr; gap: clamp(28px, 4vw, 90px); align-items: center; }
.pick__panel:not([hidden]) { animation: pick-in .45s var(--ease); }
@keyframes pick-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.pick__card { width: 100%; max-width: 420px; justify-self: center; transform: rotate(-3deg); border: 3px solid var(--sky); box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 0 60px -12px var(--sky), 0 40px 60px -24px #000; }
.pick__card .item-card__stage img { width: 66%; }
@media (prefers-reduced-motion: no-preference) { .pick__card { animation: bob 2.8s ease-in-out infinite alternate; } }
.pick__role { margin: 0 0 .2em; font: 700 .9rem/1.2 var(--label); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-2); }
.pick__name { margin: 0 0 .16em; font: italic 400 clamp(3.6rem, 7vw, 8rem)/.9 var(--sport); text-transform: uppercase; color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .4); }
.pick__ability { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 .5em; }
.pick__ab { font: 400 clamp(1.5rem, 1.8vw, 2.1rem)/1.1 var(--display); color: var(--sky-2); }
.pick__ability .pill { margin: 0; }
.pick__line { font: 400 clamp(1.1rem, 1vw + .5rem, 1.4rem)/1.4 var(--round); color: var(--ink); max-width: 46ch; margin: 0 0 1.1em; }
.pick__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; margin: 0 0 1.2em; max-width: 640px; }
.pick__stats div { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; }
.pick__stats dt { font: 700 .76rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pick__stats dd { margin: 0; height: 14px; border-radius: 4px;
  /* five pips: gaps cut into a bar filled to --v */
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(20% - 4px), #10141B calc(20% - 4px) 20%),
    linear-gradient(90deg, var(--sky) calc(var(--v) * 20%), rgba(255, 255, 255, .08) 0); }
.pick__unlock { display: flex; align-items: center; gap: 8px; margin: 0 0 1em; font: 700 .9rem/1.3 var(--label); letter-spacing: .04em; color: var(--ink-soft); }
.pick__unlock .icon { color: var(--sky-2); }

.pick__roster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1vw, 16px); margin-top: clamp(16px, 1.6vw, 26px); }
.pick__tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--hair); background: linear-gradient(#1F2433, #11141C); color: var(--ink-soft);
  font: italic 400 clamp(1.1rem, 1.2vw, 1.5rem)/1 var(--sport); text-transform: uppercase; letter-spacing: .03em;
  transition: transform .18s var(--ease), border-color .18s, color .18s, box-shadow .18s; }
.pick__tab img { width: clamp(52px, 4.6vw, 80px); height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); transition: transform .25s var(--ease); }
.pick__tab:hover { color: #fff; transform: translateY(-4px); border-color: rgba(255, 244, 220, .3); }
.pick__tab:hover img { transform: rotate(-12deg) scale(1.06); }
.pick__tab[aria-selected="true"] { color: var(--sky-ink); background: var(--sky); border-color: var(--sky); transform: translateY(-6px); box-shadow: 0 6px 0 var(--sky-deep), 0 0 34px -8px var(--sky); }
.pick__tab:focus-visible { outline-offset: 4px; }

@media (max-width: 900px) {
  .pick__panel { grid-template-columns: 1fr; text-align: center; }
  .pick__card { max-width: 260px; }
  .pick__stage::before { left: 50%; top: 28%; }
  .pick__ability, .pick__unlock { justify-content: center; }
  .pick__line, .pick__stats { margin-inline: auto; }
  .pick__stats { text-align: left; }
  .pick__roster { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 2px 10px; }
  .pick__tab { flex: 0 0 96px; scroll-snap-align: start; }
}
@media (max-width: 520px) {
  .pick__stats { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- game modes: the play menu's tiles */

.modes__grid { display: grid; gap: clamp(12px, 1.2vw, 22px); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 17vw, 360px); }
.mode { position: relative; display: block; overflow: hidden; border-radius: 22px; border: 2px solid var(--hair); text-decoration: none; color: #fff; isolation: isolate; box-shadow: var(--shadow);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.mode--big { grid-column: span 2; grid-row: span 2; }
.mode img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 12, 16, .92) 0%, rgba(10, 12, 16, .35) 48%, rgba(10, 12, 16, .05) 75%); }
.mode:hover { color: #fff; transform: translateY(-5px) rotate(-.6deg); border-color: var(--sky); box-shadow: 0 0 46px -14px var(--sky), var(--shadow-lg); }
.mode:hover img { transform: scale(1.06); }
.mode__chip { position: absolute; top: 16px; left: 16px; padding: .4em .8em; border-radius: 8px; background: var(--sky); color: var(--sky-ink); font: 700 .78rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-2deg); }
.mode__body { position: absolute; left: clamp(18px, 1.6vw, 30px); right: 80px; bottom: clamp(16px, 1.4vw, 26px); display: flex; flex-direction: column; gap: 6px; }
.mode__title { font: italic 400 clamp(2.4rem, 3.4vw, 4.4rem)/.9 var(--sport); text-transform: uppercase; text-shadow: 0 5px 0 rgba(0, 0, 0, .45); }
.mode--big .mode__title { font-size: clamp(3.4rem, 6vw, 7.4rem); }
.mode__line { font-size: 1rem; color: #E8E2D4; max-width: 44ch; }
.mode__go { position: absolute; right: clamp(14px, 1.4vw, 24px); bottom: clamp(14px, 1.4vw, 24px); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 2px solid rgba(255, 255, 255, .3); transition: background .2s, transform .2s var(--ease); }
.mode__go .icon { width: 24px; height: 24px; }
.mode:hover .mode__go { background: var(--sky); color: var(--sky-ink); border-color: var(--sky); transform: translateX(4px); }
@media (max-width: 1100px) {
  .modes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 34vw, 340px); }
}
@media (max-width: 600px) {
  .modes__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mode--big { grid-column: auto; grid-row: span 1; }
  .mode__line { display: none; }
}

/* ---------------------------------------------------------------- trailer */

.trailer .container { display: grid; gap: clamp(26px, 3.4vw, 72px); align-items: center; grid-template-columns: 1.7fr 1fr; }
.trailer__frame { position: relative; border-radius: 24px; overflow: hidden; border: 3px solid var(--sky); background: #000; box-shadow: 0 0 70px -20px var(--sky), var(--shadow-lg); transform: rotate(-1deg); }
.trailer__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.trailer__text h2 { margin-bottom: .3em; }
.trailer__text p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }
.trailer__credit { font-size: .85rem !important; color: var(--muted) !important; }
@media (max-width: 1000px) { .trailer .container { grid-template-columns: 1fr; } .trailer__frame { transform: none; } }

/* ---------------------------------------------------------------- screenshot strip: big frames, side by side, off the edge */

.shots__strip { --edge: max(var(--gutter), calc((100vw - var(--wide)) / 2 + var(--gutter)));
  list-style: none; margin: 0; padding: 6px var(--edge) 24px; display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: thin; scrollbar-color: var(--sky-deep) transparent; }
.shots__strip li { flex: 0 0 min(62vw, 1180px); aspect-ratio: 16 / 9; scroll-snap-align: start; transition: transform .25s var(--ease); }
.shots__strip li:nth-child(odd) { transform: rotate(-.8deg); }
.shots__strip li:nth-child(even) { transform: rotate(.8deg); }
.shots__strip li:hover { transform: rotate(0) translateY(-4px); }
.shots__strip .gallery__item a { height: 100%; }
.shots__strip .gallery__item img { height: 100%; aspect-ratio: auto; }
.shots__cap { position: absolute; left: 14px; bottom: 14px; padding: .3em .7em; border-radius: 9px; background: rgba(14, 16, 22, .86); border: 1px solid rgba(255, 244, 220, .15); font: italic 400 1.5rem/1 var(--sport); text-transform: uppercase; letter-spacing: .03em; pointer-events: none; }
.shots__btn { --btn-bg: var(--sky); --btn-ink: var(--sky-ink); --btn-line: var(--sky); --btn-drop: var(--sky-deep); }
@media (max-width: 760px) { .shots__strip li { flex-basis: 86vw; } .shots__btn { display: none; } }

/* ---------------------------------------------------------------- news: image cards, short */

.news__list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.news .update-card__summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news .update-card { transform: rotate(var(--tilt, 0deg)); }
.news .update-card:nth-child(1) { --tilt: -.6deg; }
.news .update-card:nth-child(3) { --tilt: .6deg; }
.news .update-card:hover { transform: translateY(-5px) rotate(0deg); }

/* ---------------------------------------------------------------- the squad: the Discord */

.squad__banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: clamp(26px, 4vw, 90px); align-items: center; padding: clamp(28px, 3.4vw, 64px) clamp(24px, 4vw, 80px); border-color: var(--sky-line);
  background: radial-gradient(40% 90% at 12% 50%, rgba(64, 181, 227, .22), transparent 70%), var(--panel); }
.squad__banner::after { content: ""; position: absolute; right: -120px; top: 50%; width: 420px; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .06); pointer-events: none; }
.squad__tokens { display: flex; }
.squad__tokens img { width: clamp(90px, 8vw, 140px); height: auto; margin-left: -18px; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .55)); }
.squad__tokens img:first-child { margin-left: 0; }
@media (prefers-reduced-motion: no-preference) {
  .squad__tokens img { animation: bob 2.4s ease-in-out infinite alternate; }
  .squad__tokens img:nth-child(2) { animation-delay: -.8s; }
  .squad__tokens img:nth-child(3) { animation-delay: -1.6s; }
}
.squad__text h2 { margin-bottom: .3em; }
.squad__text p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.12rem; max-width: 60ch; }
@media (max-width: 800px) { .squad__banner { grid-template-columns: 1fr; text-align: left; } }
