/* Avalis S54 — homepage */

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(560px, calc(100vh - var(--header-h) - var(--realm-h) + 10px), 780px); margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 40px) 0 120px; overflow: hidden; }
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 9, 22, .9) 0%, rgba(5, 12, 28, .62) 34%, rgba(5, 12, 28, .08) 62%, transparent 80%),
    linear-gradient(180deg, rgba(4, 9, 22, .55) 0%, transparent 22%, transparent 62%, var(--night-1) 100%); }
.hero__inner { position: relative; }
.hero__copy { max-width: 620px; }
.hero__status { display: inline-flex; align-items: center; gap: 0; margin: 0 0 22px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(6, 14, 32, .6); border: 1px solid var(--line-2); backdrop-filter: blur(6px); color: var(--mist); font: 700 .86rem/1 var(--font-display); }
.hero__status b { color: #fff; font-size: .95rem; margin-right: .3em; }
.hero__status i { margin-right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--sapphire-2); box-shadow: 0 0 10px var(--sapphire-2); }
.hero__status.is-live i { background: var(--aurora); box-shadow: 0 0 0 3px rgba(69, 227, 207, .18), 0 0 12px var(--aurora); animation: realm-pulse 2.4s ease-in-out infinite; }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
.hero h1 span { display: block; background: linear-gradient(180deg, #f2faff 8%, #a9e0ff 48%, #5b9bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 22px rgba(47, 107, 255, .45)); }
.hero__lede { max-width: 32em; margin: 0 0 30px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: #cfdcf0; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }
.hero__login { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 22px 0 0; color: var(--dim); font-size: .92rem; }
.hero__login a { color: var(--ice-2); font-weight: 700; }
.hero__login span { color: var(--line-3); }

/* Start path -------------------------------------------------------------- */
.start-path { position: relative; z-index: 2; margin-top: -78px; }
.start-path__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; list-style: none; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(14, 30, 60, .88), rgba(8, 18, 38, .94)); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); backdrop-filter: blur(10px); overflow: hidden; }
.start-path__list::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 215, 255, .6), transparent); }
.start-path__list li + li { border-left: 1px solid var(--line); }
.start-path__list a { position: relative; display: flex; gap: 16px; align-items: center; height: 100%; padding: 22px 26px; color: var(--mist); transition: background .2s; }
.start-path__list a:hover { background: rgba(47, 107, 255, .1); color: var(--mist); }
.start-path__list a b { display: block; color: var(--frost); font: 700 1.08rem/1.2 var(--font-display); margin-bottom: 3px; }
.start-path__list a small { display: block; color: var(--dim); font-size: .86rem; line-height: 1.4; }
.start-path__node { flex: none; display: grid; place-items: center; width: 46px; height: 46px; font: 700 1.2rem/1 var(--font-display); color: #fff; position: relative; }
.start-path__node::before { content: ""; position: absolute; inset: 4px; z-index: -1; transform: rotate(45deg); border-radius: 6px; background: linear-gradient(135deg, #7fb4ff, #2f6bff 50%, #15309a); box-shadow: 0 0 0 2px rgba(200, 225, 255, .35), 0 6px 18px rgba(47, 107, 255, .45); transition: transform .3s var(--ease); }
.start-path__list a:hover .start-path__node::before { transform: rotate(135deg); }
.start-path__list li:not(:last-child) a::after { content: ""; position: absolute; right: -9px; top: 50%; z-index: 1; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg); background: #0c1a36; border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2); }

/* Explore ------------------------------------------------------------------ */
.explore__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.explore__shot { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line-2); box-shadow: var(--shadow-2), 0 0 0 6px rgba(10, 22, 44, .8), 0 0 0 7px var(--line); aspect-ratio: 1400 / 680; }
.explore__shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.explore__shot:hover img { transform: scale(1.025); }
.explore__zoom { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-sm); background: rgba(3, 8, 20, .78); border: 1px solid var(--line-2); color: var(--frost); font: 700 .84rem/1 var(--font-display); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease); }
.explore__zoom svg { width: 14px; height: 14px; }
.explore__shot:hover .explore__zoom, .explore__shot:focus-visible .explore__zoom { opacity: 1; transform: none; }
.explore__caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 16px 4px 0; color: var(--dim); font-size: .92rem; }
.explore__tabs { display: grid; gap: 10px; }
.explore__tabs button { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; width: 100%; padding: 10px; text-align: left; border-radius: var(--r-md); background: rgba(10, 22, 42, .55); border: 1px solid var(--line); color: var(--mist); transition: background .2s, border-color .2s; }
.explore__tabs button:hover { background: rgba(20, 42, 80, .6); border-color: var(--line-2); }
.explore__tabs button[aria-selected="true"] { background: linear-gradient(90deg, rgba(47, 107, 255, .22), rgba(20, 42, 80, .45)); border-color: rgba(110, 160, 255, .55); box-shadow: inset 3px 0 0 var(--sapphire-2); }
.explore__thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.explore__thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.8); transition: filter .2s; }
.explore__tabs button[aria-selected="true"] .explore__thumb img, .explore__tabs button:hover .explore__thumb img { filter: none; }
.explore__label small { display: block; font: 700 .78rem/1.2 var(--font-display); color: var(--ice); margin-bottom: 4px; }
.explore__label strong { display: block; font: 700 1.15rem/1.1 var(--font-display); color: var(--frost); }
.explore__label em { display: block; margin-top: 4px; font-style: normal; font-size: .84rem; line-height: 1.35; color: var(--dim); }

/* News mosaic ------------------------------------------------------------- */
.news-block { padding-top: 0; }
.news-mosaic { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 20px; }
.news-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #081328; border: 1px solid var(--line); min-height: 220px; transition: border-color .2s, box-shadow .25s; }
.news-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); }
.news-tile__media { position: absolute; inset: 0; z-index: 0; }
.news-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-tile:hover .news-tile__media img { transform: scale(1.04); }
.news-tile::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(4, 9, 22, 0) 25%, rgba(4, 9, 22, .78) 62%, rgba(4, 9, 22, .96) 100%); }
.news-tile__body { position: relative; z-index: 1; margin-top: auto; padding: 22px 24px 22px; }
.news-tile__meta { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; color: var(--mist); font-size: .82rem; }
.news-tile h3 { margin: 0; font: 700 clamp(1.2rem, 1.8vw, 1.45rem)/1.12 var(--font-display); }
.news-tile h3 a { color: var(--frost); }
.news-tile h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.news-tile h3 a:hover { color: #fff; }
.news-tile--lead { grid-row: span 2; min-height: 460px; }
.news-tile--lead h3 { font-size: clamp(1.46rem, 2.58vw, 2.15rem); max-width: 18ch; }
.news-tile--lead p:not(.news-tile__meta) { margin: 12px 0 16px; max-width: 52ch; color: #c9d7ec; }
.news-tile--lead .text-link { position: relative; z-index: 3; }

/* Return band ---------------------------------------------------------------- */
.return-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(52px, 7vw, 96px) 0; border-block: 1px solid var(--line); }
.return-band__art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 40%; opacity: .5; }
.return-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(6, 13, 29, .55), rgba(6, 13, 29, .92) 75%), linear-gradient(180deg, var(--night-1), transparent 20%, transparent 80%, var(--night-1)); }
.return-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 36px 0 0; padding: 0; list-style: none; }
.return-list li + li { border-left: 1px solid transparent; border-image: linear-gradient(180deg, transparent, var(--line-3), transparent) 1; }
.return-list a { display: flex; flex-direction: column; align-items: center; gap: 10px; height: 100%; padding: 12px 26px; text-align: center; color: var(--mist); }
.return-list a b { color: var(--frost); font: 700 1.15rem/1.2 var(--font-display); }
.return-list a small { color: var(--mist); font-size: .9rem; line-height: 1.5; flex: 1; }
.return-list a:hover .medallion { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(200, 230, 255, .6), 0 12px 28px rgba(47, 107, 255, .55); }
.medallion { position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 6px; color: #fff; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #4c86ff, #1a3fb7 60%, #0d2a7a); box-shadow: 0 0 0 1px rgba(170, 210, 255, .45), 0 0 0 5px rgba(10, 22, 44, .8), 0 0 0 6px var(--line-2), 0 10px 24px rgba(0,0,0,.4); transition: transform .25s var(--ease), box-shadow .25s; }
.medallion svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.return-list .link-arrow { margin-top: 4px; }

/* Community split ----------------------------------------------------------- */
.community-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.leader-list, .topic-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.leader-list a { display: grid; grid-template-columns: 34px 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 16px 10px 12px; border-radius: var(--r-md); background: rgba(10, 22, 42, .55); border: 1px solid var(--line); color: var(--mist); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.leader-list a:hover { background: rgba(20, 42, 80, .6); border-color: var(--line-2); transform: translateX(3px); }
.leader-list li:first-child a { background: linear-gradient(90deg, rgba(255, 203, 102, .1), rgba(10, 22, 42, .55) 60%); border-color: rgba(255, 203, 102, .3); }
.leader-list__name { display: grid; min-width: 0; }
.leader-list__name .player-name { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-list__name small, .leader-list__score small { color: var(--dim); font-size: .76rem; }
.leader-list__score { text-align: right; display: grid; }
.leader-list__score b { font-size: 1.35rem; color: var(--frost); }
.topic-feed a { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: var(--r-md); background: rgba(10, 22, 42, .55); border: 1px solid var(--line); color: var(--mist); transition: background .2s, border-color .2s; }
.topic-feed a:hover { background: rgba(20, 42, 80, .6); border-color: var(--line-2); }
.topic-feed strong { display: block; color: var(--frost); font-size: .98rem; line-height: 1.3; }
.topic-feed small { color: var(--dim); font-size: .8rem; }
.topic-feed__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--ice); background: rgba(47, 107, 255, .14); border: 1px solid var(--line); }
.topic-feed__icon svg { width: 20px; height: 20px; }
.discord-card { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); color: var(--mist); background: linear-gradient(90deg, rgba(88, 101, 242, .22), rgba(10, 22, 42, .6)); border: 1px solid rgba(140, 150, 255, .35); }
.discord-card:hover { color: var(--mist); border-color: rgba(170, 180, 255, .6); }
.discord-card .medallion { width: 48px; height: 48px; margin: 0; background: radial-gradient(circle at 50% 30%, #7f8cff, #4652d8 60%, #2c349c); }
.discord-card .medallion svg { width: 24px; height: 24px; }
.discord-card b { display: block; color: var(--frost); font: 700 1.05rem var(--font-display); }
.discord-card small { color: var(--dim); }
.discord-card__go { width: 20px; height: 20px; margin-left: auto; color: var(--ice); }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .explore__grid { grid-template-columns: 1fr; }
  .explore__tabs { grid-template-columns: repeat(3, 1fr); order: -1; }
  .explore__tabs button { grid-template-columns: 1fr; }
  .explore__label em { display: none; }
  .return-list { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .return-list li:nth-child(3) { border-left: 0; }
}
@media (max-width: 860px) {
  .start-path__list { grid-template-columns: 1fr; }
  .start-path__list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .start-path__list li:not(:last-child) a::after { display: none; }
  .start-path__list a { padding: 16px 18px; }
  .news-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .news-tile--lead { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .community-split__grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { align-items: flex-end; min-height: 0; padding: calc(var(--header-h) + 250px) 0 110px; }
  .hero__art { bottom: auto; height: calc(var(--header-h) + 470px); }
  .hero__art img { object-position: 71% 42%; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 9, 22, .35) 0%, rgba(4, 9, 22, 0) 18%, rgba(5, 12, 28, .15) 38%, rgba(6, 13, 29, .9) 60%, var(--night-1) 72%); }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .gem-btn { width: 100%; }
  .explore__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .explore__tabs button { padding: 6px; gap: 8px; }
  .explore__label small { display: none; }
  .explore__label strong { font-size: .86rem; }
  .news-mosaic { grid-template-columns: 1fr; }
  .news-tile, .news-tile--lead { min-height: 0; }
  .news-tile__media { position: relative; aspect-ratio: 16 / 9; }
  .news-tile::after { display: none; }
  .news-tile__body { margin-top: 0; padding: 16px 18px 18px; }
  .news-tile--lead h3 { font-size: 1.6rem; }
  .return-list { grid-template-columns: 1fr; row-gap: 0; }
  .return-list li + li { border-left: 0; border-top: 1px solid var(--line); border-image: none; }
  .return-list a { display: grid; grid-template-columns: 56px 1fr; grid-template-areas: "icon title" "icon text" "icon link"; justify-items: start; text-align: left; gap: 4px 16px; padding: 18px 0; }
  .return-list .medallion { grid-area: icon; width: 52px; height: 52px; margin: 0; }
  .return-list .medallion svg { width: 24px; height: 24px; }
  .return-list a b { grid-area: title; }
  .return-list a small { grid-area: text; }
  .return-list .link-arrow { grid-area: link; }
  .leader-list a { grid-template-columns: 30px 38px 1fr auto; gap: 10px; padding: 9px 12px 9px 8px; }
  .leader-list .avatar { --avatar: 38px; }
}
