/* Homepage hero: live server radar, season podium, community numbers, latest videos.
   Markup in index.html (#view-home), behaviour in js/home-hero.js. Uses the theme variables
   from style.css; the radar itself stays a dark "screen" in every theme. */

.ash-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding: 28px 0 8px; }
.ash-eyebrow { font: 600 12px/1 'JetBrains Mono', monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--hud); display: flex; align-items: center; gap: 10px; margin: 0; }
.ash-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--hud); }
.ash-title { font: 700 clamp(44px, 5.6vw, 80px)/.92 'Rajdhani', sans-serif; letter-spacing: -.01em; text-transform: uppercase; margin: 18px 0; color: var(--ink-0); }
.ash-title .gold { color: var(--hud); text-shadow: 0 0 34px var(--hud-glow); }
.ash-title .outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink-0); }
.ash-lede { color: var(--ink-2); font-size: 17px; line-height: 1.55; max-width: 520px; margin: 0 0 28px; }
.ash-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.ash-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 26px; min-height: 58px;
  background: linear-gradient(180deg, var(--hud-hover), var(--hud)); color: var(--hud-contrast); border-radius: 10px;
  font: 700 20px/1 'Rajdhani', sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 12px 34px var(--hud-soft), 0 10px 30px rgba(0,0,0,.25);
  transition: transform .15s, box-shadow .15s;
}
.ash-play:hover { transform: translateY(-2px); color: var(--hud-contrast); }
.ash-play svg { width: 22px; height: 22px; }
.ash-ip {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 18px; min-height: 58px; border-radius: 10px;
  background: var(--panel-a); border: 1px solid var(--hud-line); cursor: pointer; color: var(--ink-0); text-align: left;
}
.ash-ip .lbl { font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; display: block; margin-bottom: 5px; }
.ash-ip .ip { font: 500 15px/1 'JetBrains Mono', monospace; white-space: nowrap; }
.ash-ip .copy { font: 700 11px/1 'JetBrains Mono', monospace; color: var(--hud); border-left: 1px solid var(--line); padding-left: 14px; letter-spacing: .1em; }
.ash-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font: 500 12px/1 'JetBrains Mono', monospace; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.ash-perks span::before { content: "\25C6"; color: var(--hud); margin-right: 7px; font-size: 9px; }
.ash-help { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.ash-help a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ash-help a:hover { color: var(--hud); }

/* live server card */
.ash-radar-card { position: relative; border-radius: 20px; padding: 24px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--hud-line); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.ash-radar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ash-status { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ash-radar-top #srv-hostname { font: 600 13px/1.3 'Rajdhani', sans-serif; color: var(--ink-2); text-align: right; letter-spacing: .03em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.ash-radar { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; overflow: hidden; isolation: isolate; background: #07100a; border: 2px solid rgba(111,207,95,.45); box-shadow: 0 0 0 6px rgba(111,207,95,.06), 0 0 50px rgba(111,207,95,.12) inset; }
.ash-radar .map { position: absolute; inset: 0; background-position: center; background-size: cover; filter: grayscale(.5) sepia(.5) hue-rotate(50deg) saturate(1.4) brightness(.42) contrast(1.15); transform: scale(1.15); }
.ash-radar .grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle, transparent 0 24.5%, rgba(111,207,95,.28) 25% 25.4%, transparent 26% 49.5%, rgba(111,207,95,.28) 50% 50.4%, transparent 51% 74.5%, rgba(111,207,95,.28) 75% 75.4%, transparent 76%),
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(111,207,95,.28) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(50% - .5px), rgba(111,207,95,.28) 50%, transparent calc(50% + .5px));
}
.ash-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(111,207,95,.55), rgba(111,207,95,.12) 40deg, transparent 75deg); animation: ash-sweep 4s linear infinite; mix-blend-mode: screen; }
@keyframes ash-sweep { to { transform: rotate(360deg); } }
.ash-radar .blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #6fcf5f; box-shadow: 0 0 12px #6fcf5f; animation: ash-blip 4s linear infinite; opacity: 0; }
.ash-radar .blip.ct { background: #5b9bd5; box-shadow: 0 0 12px #5b9bd5; }
@keyframes ash-blip { 0%, 6% { opacity: 1; } 55% { opacity: .15; } 100% { opacity: 0; } }
.ash-radar .count { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #eef1ea; }
.ash-radar .count strong { font: 700 84px/.9 'Rajdhani', sans-serif; letter-spacing: -.02em; text-shadow: 0 4px 30px rgba(0,0,0,.8); }
.ash-radar .count strong .max { font-size: 34px; color: #aab3a6; font-weight: 600; }
.ash-radar .count .lbl { font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: .24em; color: #aab3a6; text-transform: uppercase; margin-top: 8px; }
.ash-radar .count #srv-map { font: 700 18px/1 'Rajdhani', sans-serif; color: #d3af37; margin-top: 10px; letter-spacing: .06em; max-width: 80%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ash-capacity { margin: 20px 0 6px; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.ash-capacity #srv-bar { height: 100%; background: linear-gradient(90deg, var(--hud-dim), var(--hud)); transition: width .7s; }
.ash-capacity-cap { display: flex; justify-content: space-between; gap: 10px; font: 500 11px/1.3 'JetBrains Mono', monospace; color: var(--ink-3); letter-spacing: .04em; }
.ash-board { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 6px; }
.ash-board .ttl { font: 600 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px 6px; }
.ash-board #srv-scoreboard { max-height: 156px; overflow-y: auto; }

/* section heads */
.ash-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.ash-head h2 { font: 700 28px/1 'Rajdhani', sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 8px 0 0; color: var(--ink-0); }
.ash-head a { font: 600 12px/1 'JetBrains Mono', monospace; color: var(--hud); letter-spacing: .08em; white-space: nowrap; }

/* podium */
.ash-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; gap: 16px; align-items: end; }
.ash-pcard { position: relative; display: block; border-radius: var(--radius); padding: 22px 20px 20px; text-align: center; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); border: 1px solid var(--line); overflow: hidden; text-decoration: none; color: var(--ink-0); transition: transform .15s, border-color .15s; }
.ash-pcard:hover { transform: translateY(-3px); border-color: var(--hud-line); }
.ash-pcard::after { content: attr(data-rank); position: absolute; right: 10px; top: -14px; font: 700 110px/1 'Rajdhani', sans-serif; color: var(--ink-0); opacity: .04; }
.ash-pcard.first { padding-top: 30px; border-color: var(--hud-line); box-shadow: 0 20px 60px var(--hud-soft); }
.ash-pcard.first::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--hud), transparent); }
.ash-medal { font: 700 11px/1 'JetBrains Mono', monospace; letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.first .ash-medal { color: var(--hud); } .second .ash-medal { color: #9aa6b2; } .third .ash-medal { color: #cd8a4f; }
.ash-av { position: relative; width: 84px; height: 84px; margin: 14px auto 12px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--hud-soft), var(--surf) 70%); display: flex; align-items: center; justify-content: center; font: 700 30px/1 'Rajdhani', sans-serif; color: var(--hud); }
.first .ash-av { width: 104px; height: 104px; }
.ash-av img.face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #9aa6b2; }
.first .ash-av img.face { border-color: var(--hud); box-shadow: 0 0 30px var(--hud-glow); }
.third .ash-av img.face { border-color: #cd8a4f; }
.ash-av img.flag { position: absolute; right: -2px; bottom: 2px; width: 26px; height: auto; border-radius: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.6); }
.ash-name { font: 700 21px/1.1 'Rajdhani', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.ash-pstats { display: flex; justify-content: center; gap: 18px; margin-top: 12px; }
.ash-pstats b { display: block; font: 700 20px/1 'Rajdhani', sans-serif; }
.ash-pstats span { font: 500 10px/1 'JetBrains Mono', monospace; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.first .ash-pstats b { color: var(--hud); }

/* community numbers */
.ash-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-b); overflow: hidden; }
.ash-strip > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.ash-strip > div:last-child { border-right: 0; }
.ash-strip b { display: block; font: 700 34px/1 'Rajdhani', sans-serif; color: var(--ink-0); }
.ash-strip span { font: 500 11px/1.4 'JetBrains Mono', monospace; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; }
.ash-strip .discord b { color: #8b95ff; }

/* latest videos */
.ash-clips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ash-clip { position: relative; display: block; aspect-ratio: 9 / 14; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0b0e0c center / cover no-repeat; text-decoration: none; }
.ash-clip::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,13,11,0) 38%, rgba(10,13,11,.94)); }
.ash-clip .play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(211,175,55,.92); display: grid; place-items: center; box-shadow: 0 8px 30px rgba(0,0,0,.5); transition: transform .15s; }
.ash-clip:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.ash-clip .play::after { content: ""; border-left: 16px solid #111; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.ash-clip .meta { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.ash-clip .tag { font: 700 10px/1 'JetBrains Mono', monospace; letter-spacing: .14em; color: #d3af37; text-transform: uppercase; margin: 0; }
.ash-clip .ttl { font: 700 17px/1.15 'Rajdhani', sans-serif; margin: 6px 0 0; color: #eef1ea; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* loading placeholders */
.ash-skel { background: linear-gradient(90deg, var(--line), var(--panel-a), var(--line)); background-size: 200% 100%; animation: ash-skel 1.4s linear infinite; border-radius: var(--radius); }
@keyframes ash-skel { to { background-position: -200% 0; } }

/* page-load reveal */
.ash-reveal { opacity: 0; transform: translateY(14px); animation: ash-in .7s cubic-bezier(.2,.7,.2,1) forwards; }
.ash-d1 { animation-delay: .05s } .ash-d2 { animation-delay: .15s } .ash-d3 { animation-delay: .25s } .ash-d4 { animation-delay: .35s } .ash-d5 { animation-delay: .5s }
@keyframes ash-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ash-reveal { animation: none; opacity: 1; transform: none; }
  .ash-radar .sweep, .ash-radar .blip, .ash-skel { animation: none; }
  .ash-radar .blip { opacity: .8; }
}

@media (max-width: 1023px) {
  .ash-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 8px; }
  .ash-clips { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ash-clip { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .ash-title { font-size: 46px; }
  .ash-lede { font-size: 15.5px; }
  .ash-cta { flex-direction: column; }
  .ash-ip { justify-content: space-between; }
  .ash-ip .ip { font-size: 13px; }
  .ash-radar-card { padding: 18px 14px; }
  .ash-radar .count strong { font-size: 68px; }
  .ash-podium { grid-template-columns: 1fr; }
  .ash-pcard.first { order: -1; }
  .ash-pcard { display: grid; grid-template-columns: 72px 1fr; gap: 0 14px; text-align: left; align-items: center; padding: 16px; }
  .ash-pcard.first { padding-top: 18px; }
  .ash-pcard .ash-medal, .ash-pcard .ash-name, .ash-pcard .ash-pstats { grid-column: 2; }
  .ash-av, .first .ash-av { grid-row: 1 / span 3; width: 68px; height: 68px; margin: 0; }
  .ash-pstats { justify-content: flex-start; margin-top: 6px; }
  .ash-strip { grid-template-columns: 1fr 1fr; }
  .ash-strip > div:nth-child(2) { border-right: 0; }
  .ash-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ash-strip b { font-size: 28px; }
  .ash-clips { grid-template-columns: repeat(4, 74%); }
}

/* sections hide themselves when their data is missing */
#ash-podium-wrap[hidden], .ash-strip[hidden], #ash-clips-wrap[hidden] { display: none !important; }
