.home-page{
  --paper: #eeeae1;
  --ink: #191d20;
  --paper-line: #cdc7bc;
  --accent-ink: #a33b17;
  --amber: #ff8649;
  background: #12161a;
}

.home-page .content-width{
  width: min(1460px, calc(100% - clamp(48px, 11vw, 220px)));
}

.home-page .button{
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--amber);
  color: #1d130d;
  box-shadow: none;
  transition: background-color .2s, color .2s, transform .2s var(--ease);
}

.home-page .button:hover{
  background: #ffa36b;
  filter: none;
}

.home-page .button-secondary{
  border-color: #505960;
  background: #262a2e;
  color: var(--white);
}

.home-page .button-secondary:hover{
  background: #363b40;
}

.hero-visual{
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(470px, 60svh, 690px);
  background: #161c22;
}

.hero-scene,
.hero-visual::after{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-scene-frame{
  position: absolute;
  inset: -7% 0;
  z-index: -2;
  overflow: hidden;
  transform: translate3d(0, var(--hero-shift, 0px), 0);
}

.hero-scene{
  object-fit: cover;
  object-position: 60% 26%;
}

.hero-visual::after{
  z-index: -1;
  background:
    linear-gradient(88deg, #10151be8 0%, #10151bbf 28%, #10151b3b 58%, transparent 90%),
    linear-gradient(0deg, #0b101676, transparent 46%);
  content: "";
}

.hero-effects{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-background-rain{
  position: absolute;
  inset: 0;
  opacity: .45;
  mask-image: linear-gradient(90deg, transparent 11%, #0005 28%, #000 49% 57%, #0005 64%, transparent 73%);
}

.hero-background-rain::before{
  --rain-tile-height: 230px;
  position: absolute;
  inset: calc(-1 * var(--rain-tile-height)) -12%;
  background-image:
    radial-gradient(ellipse .75px 13px at 9% 14%, #bfd8e68f, transparent),
    radial-gradient(ellipse .65px 11px at 34% 58%, #b6d1e282, transparent),
    radial-gradient(ellipse .8px 15px at 51% 31%, #d0e5f599, transparent),
    radial-gradient(ellipse .7px 12px at 69% 78%, #b6d1e293, transparent),
    radial-gradient(ellipse .65px 10px at 91% 43%, #c2dbec91, transparent);
  background-size: 310px var(--rain-tile-height);
  transform: skewX(-9deg);
  content: "";
}

.hero-flare{
  position: absolute;
  top: 12%;
  left: 97%;
  width: clamp(330px, 53vw, 920px);
  aspect-ratio: 3 / 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, #fff2cbd9 0%, #ffc8818c 2%, #ff975247 7%, transparent 20%),
    radial-gradient(ellipse at center, #ff9a583d, #ff794521 23%, transparent 57%);
  opacity: .68;
}

.hero-flare::after{
  position: absolute;
  inset: calc(50% - 1px) 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent 1%, #ed75472b 30%, #ffcd9480 49%, #ff975540 65%, transparent 94%);
  content: "";
}

.hero-reflections,
.hero-particles{
  position: absolute;
  inset: 0;
}

.hero-reflections{
  background:
    radial-gradient(circle at 76% 38%, #f69e5533 0%, #f69e5517 1.1%, transparent 2.2%),
    radial-gradient(circle at 66% 45%, #ffc78630 0%, transparent 1.45%),
    radial-gradient(circle at 53% 55%, #fda16726 0%, #fda16710 1.35%, transparent 3%),
    radial-gradient(circle at 38% 69%, #5cb9dd20 0%, transparent 3.2%);
  opacity: .78;
}

.hero-particles{
  background:
    radial-gradient(circle at 47% 78%, #ffad618f 0 1px, transparent 2.5px),
    radial-gradient(circle at 53% 87%, #ffc286a1 0 1px, transparent 2.6px),
    radial-gradient(circle at 59% 73%, #fda16a84 0 1.2px, transparent 3.3px),
    radial-gradient(circle at 67% 89%, #fcb5818f 0 1.4px, transparent 3.4px),
    radial-gradient(circle at 69% 67%, #ffa45875 0 1px, transparent 2.7px),
    radial-gradient(circle at 79% 79%, #ffc172b8 0 1px, transparent 3px),
    radial-gradient(circle at 85% 66%, #ff9b668e 0 1.2px, transparent 3.8px),
    radial-gradient(circle at 91% 77%, #e991587d 0 1px, transparent 2.5px);
  opacity: .72;
}

.hero-motion-toggle{
  position: absolute;
  z-index: 2;
  inset: auto clamp(16px, 3vw, 42px) 16px auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #ffffff60;
  background: #10171ad9;
  color: #fff4e9;
}

.hero-motion-toggle:hover{
  background: #292d30;
}

.hero-motion-toggle span{
  width: 10px;
  height: 13px;
  border-inline: 2px solid currentColor;
}

.hero-motion-toggle[aria-pressed="false"] span{
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-right: 0;
  border-left: 9px solid currentColor;
}

.hero-content{
  position: relative;
  z-index: 1;
  padding-block: 52px 58px;
}

.hero-kicker{
  color: #f6eee5;
  font-size: clamp(12px, 1.05vw, 16px);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-title{
  position: relative;
  width: min(100%, 41rem);
  margin-block: 2px 13px;
}

.hero-wordmark{
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 20px #070a10b0);
}

.hero-wordmark-sheen{
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mask: url("../../_assets_vanguard/brand/wordmark.png") center / 100% 100% no-repeat;
}

.hero-wordmark-sheen::after{
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  background: linear-gradient(108deg, transparent 30%, #ffde9436 46%, #fff8df63 53%, transparent 70%);
  transform: translateX(-108%);
  content: "";
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 25px;
}

.button-play{
  min-height: 56px;
  padding-inline: clamp(16px, 2vw, 29px);
}

.button-play span{
  font-size: 20px;
  line-height: 1;
}

.hero-register{
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  color: #fffaf4;
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 5px;
}

.hero-register:hover{
  text-decoration: underline;
}

.hero-register span{
  margin-inline-start: 5px;
  color: var(--amber);
}

.hero-bottom{
  border-block: 1px solid #fff2;
  background: #171c21;
}

.live-strip,
.live-readings,
.service-pill,
.presence-value{
  display: flex;
  align-items: center;
}

.live-strip{
  justify-content: space-between;
  gap: 16px;
  min-height: 65px;
  padding-block: 8px;
}

.live-readings{
  gap: clamp(12px, 3vw, 42px);
}

.live-reading{
  min-width: 0;
}

.live-reading + .live-reading{
  padding-inline-start: clamp(12px, 3vw, 42px);
  border-inline-start: 1px solid #fff2;
}

.live-label{
  display: block;
  color: #adb8c2;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.service-pill,
.presence-value{
  gap: 6px;
  min-height: 24px;
  color: #f4f2ed;
  font-size: 12px;
  line-height: 1.25;
}

.presence-value strong{
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.presence-value span{
  color: #c2c9d0;
  font-size: 11px;
}

.status-light{
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83919d;
}

.status-light.online{
  background: #7ac998;
}

.status-light.offline{
  background: #f29081;
}

.live-refresh{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 40px;
  min-height: 40px;
  padding: 2px 10px;
  border: 1px solid #ffffff2a;
  background: transparent;
  text-align: start;
}

.live-refresh:hover{
  background: #ffffff10;
}

.live-refresh > span:first-child{
  color: var(--amber);
  font-size: 19px;
}

.live-refresh-text{
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.live-refresh time{
  color: #aebac5;
  font-size: 10px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.live-refresh[aria-disabled="true"]{
  cursor: wait;
}

.news-section{
  color-scheme: light;
  padding-block: clamp(46px, 5vw, 82px) clamp(54px, 6vw, 96px);
  background: var(--paper);
  color: var(--ink);
}

.home-page h2{
  font-size: clamp(36px, 4.25vw, 66px);
  line-height: .97;
  letter-spacing: -.015em;
}

.section-head{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  margin-block-end: clamp(22px, 2.8vw, 36px);
  padding-block-end: 14px;
  border-block-end: 1px solid var(--paper-line);
}

.section-head h2,
.ranking-intro h2,
.enlist-section h2{
  text-transform: uppercase;
}

#all-news{
  min-height: 42px;
  color: var(--ink);
  font-size: 13px;
  text-underline-offset: 4px;
}

#all-news::after{
  margin-inline-start: 8px;
  color: var(--accent-ink);
  font-size: 16px;
  content: "+";
}

#all-news[aria-expanded="true"]::after{
  content: "−";
}

#all-news:hover{
  text-decoration: underline;
}

.news-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(18px, 2.25vw, 34px);
  row-gap: 38px;
}

.news-card{
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: start;
}

.news-cover{
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #343937;
}

.news-image{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .42s var(--ease);
}

.news-arrow{
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  transition: background-color .2s;
}

.news-meta{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-block-start: 17px;
  color: #515457;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.news-category{
  color: var(--accent-ink);
  text-transform: uppercase;
}

.news-meta time{
  padding-inline-start: 10px;
  border-inline-start: 1px solid #b5aca2;
}

.news-title{
  display: block;
  margin-block-start: 7px;
  font-size: clamp(17px, 1.42vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.news-summary{
  display: -webkit-box;
  overflow: hidden;
  max-width: 56ch;
  margin-block-start: 7px;
  color: #3e4449;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card:focus-visible,
#all-news:focus-visible{
  outline-color: var(--ink);
}

@media (hover: hover){
  .news-card:hover .news-image{
    transform: scale(1.045);
  }

  .news-card:hover .news-arrow{
    background: var(--amber);
  }
}

.loading-message,
.empty-message{
  grid-column: 1 / -1;
  padding: 25px;
  border: 1px solid var(--line);
  color: #b7c0c7;
  font-size: 13px;
}

.news-section :is(.loading-message, .empty-message){
  border-color: var(--paper-line);
  color: #4d5356;
}

.rankings-section{
  padding-block: clamp(48px, 6vw, 92px);
}

.ranking-intro{
  margin-block-end: clamp(20px, 3vw, 34px);
}

.ranking-intro p{
  margin-block-start: 10px;
  color: #b6bfc6;
  line-height: 1.55;
}

.ranking-console{
  min-width: 0;
  border: 1px solid #3c454d;
  background: #1c2227;
}

.ranking-toolbar{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 12px;
  border-bottom: 1px solid #3c454d;
}

.ranking-tools,
.ranking-sort,
.ranking-pagination,
.ranking-pages{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ranking-sort{
  margin: 0;
  color: #c4cdd3;
  font-weight: 600;
}

.ranking-sort select{
  min-height: 40px;
  padding: 6px 7px;
  border: 1px solid #59646e;
  border-radius: 0;
  background: #141a1f;
  color: var(--white);
  font: inherit;
}

.ranking-sort select:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

#refresh-rankings{
  min-height: 40px;
  padding-inline: 8px;
}

#refresh-rankings span{
  margin-inline-start: 4px;
}

.home-page .segmented > button.selected{
  background: #322820;
  box-shadow: none;
}

.table-scroll{
  overflow: auto;
}

.ranking-table{
  font-variant-numeric: tabular-nums;
}

.ranking-table :is(th, td){
  padding: 14px clamp(10px, 1.45vw, 24px);
}

.ranking-table thead th{
  color: #abb9c4;
  font-size: 10px;
  font-weight: 600;
}

.ranking-table tbody tr{
  background: #1a2127;
}

.ranking-table tbody tr:nth-child(even){
  background: #181e24;
}

.ranking-table .rank-place{
  width: 1%;
  border-inline-start: 3px solid transparent;
  color: #a8b4bf;
  font-size: 25px;
  line-height: 1;
}

.ranking-table tr[data-place="1"]{ --position-color: #ffbd6d; }
.ranking-table tr[data-place="2"]{ --position-color: #c2d3e1; }
.ranking-table tr[data-place="3"]{ --position-color: #dfa582; }
.ranking-table tr[data-place] .rank-place{
  border-inline-start-color: var(--position-color);
  color: var(--position-color);
}

.ranking-table .ranking-name{
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 1.3;
  text-transform: none;
}

.ranking-affiliation{
  display: block;
  margin-block-start: 4px;
  color: #a6b4c0;
  font-size: 11px;
  font-weight: 400;
  white-space: normal;
}

.ranking-grade{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e1e8ef;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}

.ranking-badge{
  position: relative;
  flex: 0 0 22px;
  overflow: hidden;
  height: 22px;
}

.ranking-badge .rank-icon{
  position: absolute;
  inset: 0 auto auto 0;
  width: 32px;
  height: 32px;
  margin: 0;
}

.ranking-metric-label{
  display: none;
}

.ranking-metric-value{
  color: #e2e9ee;
  font-weight: 600;
}

.ranking-pagination{
  justify-content: space-between;
  padding: 12px;
  border-top: 1px solid #3c454d;
  color: #c3cbd1;
  font-size: 12px;
}

.ranking-pages button{
  min-height: 38px;
  padding-inline: 12px;
  border: 1px solid #59646e;
  background: #141a1f;
}

.ranking-pages button:disabled{
  cursor: default;
}

.enlist-section{
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1d201f;
  border-block: 1px solid #ffffff26;
}

.enlist-section > img,
.enlist-section::after{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.enlist-section > img{
  z-index: -2;
  object-fit: cover;
  object-position: 52% 34%;
}

.enlist-section::after{
  z-index: -1;
  background: linear-gradient(90deg, #10151add 0%, #10151a85 60%, #10151a46);
  content: "";
}

.enlist-content{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 35px;
  min-height: clamp(240px, 26vw, 360px);
  padding-block: 42px;
}

.enlist-content h2{
  max-width: 15ch;
}

.home-page footer{
  padding-block: 36px 22px;
  background: #171716;
}

.footer-main,
.footer-main > div,
.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-main{
  padding-block-end: 20px;
  border-block-end: 1px solid #ffffff25;
}

.footer-main button{
  min-height: 36px;
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.footer-bottom{
  padding-block-start: 18px;
  color: #aaadab;
  font-size: 11px;
}

.home-page dialog h2{
  font-size: clamp(32px, 5vw, 44px);
}

.hero-kicker, .hero-title, .hero-actions{
  animation: enter-interface .42s var(--ease) both;
}

.hero-title{ animation-delay: .055s; }
.hero-actions{ animation-delay: .11s; }

.motion-ready .hero-background-rain::before{
  animation: hero-background-rainfall 2.1s linear infinite;
}

.motion-ready .hero-flare{
  animation: hero-lamp 6.6s ease-in-out infinite;
}

.motion-ready .hero-reflections{
  animation: hero-reflect 7s ease-in-out infinite alternate;
}

.motion-ready .hero-particles{
  animation: hero-drift 8s ease-in-out infinite alternate;
}

.motion-ready .hero-wordmark-sheen::after{
  animation: hero-wordmark-sweep 6.4s linear .45s infinite;
}

.motion-paused :is(.hero-flare, .hero-reflections, .hero-particles, .hero-scene),
.motion-paused .hero-background-rain::before,
.motion-paused .hero-wordmark-sheen::after{
  animation-play-state: paused;
}

.motion-ready .hero-scene{
  animation: hero-kenburns 22s cubic-bezier(.2, .6, .2, 1) both;
}

@keyframes hero-kenburns {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

.live-refresh[aria-disabled="true"] > span:first-child{
  animation: refresh-turn .8s linear infinite;
}

@keyframes hero-lamp {
  0%, 100% { transform: translate(-50%, -50%) scale(.94); opacity: .48; }
  31% { transform: translate(-50%, -50%) scale(1.08); opacity: .82; }
  67% { transform: translate(-50%, -50%) scale(1.01); opacity: .65; }
}

@keyframes hero-reflect {
  from { transform: translate(21px, -15px); opacity: .45; }
  to { transform: translate(-26px, 12px); opacity: .99; }
}

@keyframes hero-drift {
  from { transform: translate(16px, 12px); opacity: .43; }
  to { transform: translate(-31px, -28px); opacity: .99; }
}

@keyframes hero-background-rainfall {
  from { transform: skewX(-9deg) translateY(0); }
  to { transform: skewX(-9deg) translateY(var(--rain-tile-height)); }
}

@keyframes hero-wordmark-sweep {
  0%, 8% { transform: translateX(-108%); opacity: 0; }
  13% { opacity: .8; }
  25% { opacity: 1; }
  39%, 100% { transform: translateX(235%); opacity: 0; }
}

@keyframes refresh-turn {
  to { transform: rotate(360deg); }
}

@media (max-width: 880px){
  .hero-title{
    max-width: 34rem;
  }

  .hero-flare{
    top: 16%;
    left: 102%;
  }

  .news-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px){
  .ranking-table, .ranking-table tbody{
    display: block;
  }

  .ranking-table thead{
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .ranking-table tbody tr{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 9px 4px;
    padding: 12px 10px 13px;
    border-inline-start: 3px solid var(--position-color, transparent);
    white-space: normal;
  }

  .ranking-table tbody :is(td, th){
    width: auto;
    padding: 0;
    border: 0;
  }

  .ranking-table tbody .rank-place{
    grid-column: span 2;
    border: 0;
  }

  .ranking-name{
    grid-column: span 5;
    overflow-wrap: anywhere;
  }

  .ranking-table-clans .ranking-name{
    grid-column: span 10;
  }

  .ranking-rank{
    grid-column: span 5;
    justify-self: end;
  }

  .ranking-grade{
    gap: 5px;
    overflow-wrap: anywhere;
  }

  .ranking-metric{
    grid-column: span 3;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .ranking-metric-label{
    display: block;
    color: #a6b4c0;
    font-size: 10px;
  }
}

@media (max-width: 560px){
  .hero-background-rain{
    mask-image: linear-gradient(90deg, transparent, #000 29%, #0008 49%, transparent 64%);
  }

  .home-page .content-width{
    width: calc(100% - 36px);
  }

  .hero-visual{
    align-items: end;
    min-height: clamp(405px, 60svh, 530px);
  }

  .hero-scene{
    object-position: 72% 18%;
  }

  .hero-visual::after{
    background: linear-gradient(0deg, #0c1117 1%, #10151bd9 32%, #10151b2c 72%, transparent);
  }

  .hero-flare{
    top: 17%;
    left: 106%;
    opacity: .54;
  }

  .hero-content{
    padding-block: 124px 32px;
  }

  .hero-kicker{
    letter-spacing: .09em;
  }

  .hero-title{
    width: min(100%, 390px);
  }

  .hero-actions{
    gap: 6px 14px;
  }

  .button-play{
    min-height: 50px;
  }

  .live-strip{
    gap: 6px;
  }

  .live-readings{
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    align-items: start;
    gap: 5px;
  }

  .live-reading + .live-reading{
    padding-inline-start: 6px;
  }

  .live-label{
    letter-spacing: .025em;
  }

  .service-pill, .presence-value{
    gap: 4px;
    font-size: 11px;
  }

  .presence-value strong{
    font-size: 14px;
  }

  .presence-value span{
    font-size: 10px;
  }

  .live-refresh{
    padding: 0;
  }

  .live-refresh-text{
    display: none;
  }

  .news-grid{
    grid-template-columns: minmax(0, 1fr);
    row-gap: 27px;
  }

  .news-meta{
    margin-block-start: 12px;
  }

  .rankings-section h2,
  .enlist-content h2{
    text-wrap: balance;
  }

  .enlist-content{
    align-content: center;
    justify-content: start;
  }
}

@media (max-width: 420px){
  .ranking-metric{
    grid-column: span 6;
  }
}

/* ---------- Accessibility helpers ---------- */

.home-page .sr-only,
.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-page .skip-link:focus-visible{
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */

.reveal:not(.is-visible){
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.reveal{
  transition:
    opacity .75s var(--ease) var(--reveal-delay, 0ms),
    transform .75s var(--ease) var(--reveal-delay, 0ms);
}

.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* ---------- Skeleton loaders ---------- */

.skeleton-block,
.skeleton-line,
.skeleton-row{
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--skel-base, #262d33);
  border-radius: 1px;
}

.skeleton-block::after,
.skeleton-line::after,
.skeleton-row::after{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skel-shine, #ffffff12), transparent);
  transform: translate3d(-100%, 0, 0);
  animation: skeleton-sweep 1.5s var(--ease) infinite;
  content: "";
}

@keyframes skeleton-sweep {
  to { transform: translate3d(100%, 0, 0); }
}

.news-section{
  --skel-base: #d8d2c6;
  --skel-shine: #ffffff8c;
}

.news-skeleton{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.skeleton-cover{
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-block-end: 7px;
}

.skeleton-line{
  height: 11px;
  width: 100%;
}

.skeleton-line-short{
  width: 38%;
}

.skeleton-line-title{
  height: 19px;
  width: 86%;
  margin-block: 4px 2px;
}

.news-skeleton .skeleton-line:last-child{
  width: 70%;
}

.ranking-skeleton{
  display: grid;
  gap: 8px;
  min-height: 360px;
  padding: 12px;
  --skel-base: #242b31;
  --skel-shine: #ffffff12;
}

.ranking-skeleton .skeleton-row{
  height: 44px;
}

.download-skeleton{
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.download-skeleton .skeleton-row{
  height: 62px;
  border: 1px solid #3c454d;
}

.support-skeleton,
.account-skeleton{
  display: grid;
  gap: 12px;
  margin-block: 16px;
}

.support-skeleton .skeleton-line,
.account-skeleton .skeleton-row{
  height: 14px;
}

.account-skeleton .skeleton-row{
  height: 34px;
}

.state-block{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px 24px;
  border: 1px solid #3c454d;
  background: #1a2026;
  color: #c1cad1;
  font-size: 13px;
  line-height: 1.6;
}

.state-block p{
  margin: 0;
}

.news-section .state-block{
  border-color: var(--paper-line);
  background: #e6e1d7;
  color: #3f4447;
}

.state-block .button-small{
  min-height: 38px;
}

.table-scroll{
  min-height: 360px;
}

.table-scroll:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- Motion details for interactive surfaces ---------- */

.news-card:hover .news-title{
  text-decoration: underline;
  text-decoration-color: var(--accent-ink);
  text-underline-offset: 4px;
}

.news-card:active .news-image{
  transform: scale(1.02);
}

.news-section .news-cover{
  box-shadow: 0 1px 0 #0000;
  transition: box-shadow .35s var(--ease);
}

.news-card:hover .news-cover{
  box-shadow: 0 16px 30px -18px #0009;
}

.news-arrow{
  transition: background-color .2s, transform .3s var(--ease);
}

.news-card:hover .news-arrow{
  transform: translate3d(3px, -3px, 0);
}

.ranking-table tbody tr{
  transition: background-color .2s;
}

.ranking-table tbody tr:hover{
  background: #232b32;
}

.ranking-pages button,
.segmented > button,
.ranking-sort select,
.footer-main button,
.hero-register,
.text-link{
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.ranking-pages button:not(:disabled):hover{
  border-color: var(--amber);
  color: var(--amber);
}

.ranking-pages button:not(:disabled):active{
  transform: translateY(1px);
}

.live-refresh:active:not([aria-disabled="true"]){
  transform: scale(.97);
}

.live-refresh{
  transition: background-color .2s, transform .2s var(--ease);
}

.toast{
  animation: enter-interface .3s var(--ease) both;
}

/* ---------- Dialogs: smooth open and close ---------- */

.home-page dialog{
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.985);
  transition:
    opacity .28s var(--ease),
    transform .32s var(--ease),
    overlay .28s allow-discrete,
    display .28s allow-discrete;
}

.home-page dialog[open]{
  opacity: 1;
  transform: none;
  animation: none;
}

@starting-style {
  .home-page dialog[open] {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(.985);
  }
}

.home-page dialog::backdrop{
  opacity: 0;
  transition:
    opacity .28s var(--ease),
    overlay .28s allow-discrete,
    display .28s allow-discrete;
}

.home-page dialog[open]::backdrop{
  opacity: 1;
}

@starting-style {
  .home-page dialog[open]::backdrop {
    opacity: 0;
  }
}

.home-page .dialog-close{
  transition: background-color .2s, transform .2s var(--ease);
}

.home-page .dialog-close:hover{
  background: #36404a;
}

.home-page .dialog-close:active{
  transform: scale(.94);
}

/* ---------- Visual polish on the hero ---------- */

.hero-register{
  transition: color .2s;
}

@media (hover: hover) and (pointer: fine){
  .home-page .button:hover{
    box-shadow: 0 10px 26px -14px #ff8a1f;
  }

  .home-page .button:active{
    transform: translateY(1px) scale(.995);
  }

  .home-page .button-secondary:hover{
    border-color: #6d7a85;
  }
}

/* ---------- Narrow screens: keep forms and states inside the viewport ---------- */

@media (max-width: 420px){
  .auth-body {
    padding: 34px 20px 24px;
  }

  .auth-body h2 {
    font-size: 34px;
  }

  .strength-label {
    min-width: 0;
  }

  .state-block {
    padding: 18px;
  }

  .ranking-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

.dialog-close .icon{
  font-size: 14px;
}

.footer-discord{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #b9c3ca;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s;
}

.footer-discord .icon{
  font-size: 18px;
}

.footer-discord:hover,
.footer-discord:focus-visible{
  color: #fff;
}

.community-cta{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  margin-block: clamp(56px, 8vw, 104px);
  padding: clamp(28px, 4vw, 52px);
  background: #171c21;
  border: 1px solid #3a444d;
  border-inline-start: 4px solid #5865f2;
  box-shadow: 0 24px 60px -34px #000d;
}

.community-copy h2{
  margin-bottom: 14px;
  font-size: clamp(38px, 4.4vw, 56px);
}

.community-copy p:not(.eyebrow){
  max-width: 52ch;
  color: #a6b1b8;
  font-size: 13px;
  line-height: 1.8;
}

.community-cta .discord-button{
  min-height: 58px;
  padding-inline: 30px;
  font-size: 13px;
}

@media (max-width: 760px){
  .community-cta{
    grid-template-columns: 1fr;
  }

  .community-cta .discord-button{
    width: 100%;
  }
}

.community-cta .discord-button-arrow{
  font-size: 16px;
}

/* Teaser link to the full ranking page (views/home.php). */
.ranking-full-link { margin-left: auto; }
