/* TheUncFPS — site styles
   Palette: navy ground from the channel art, VALORANT red for live/act, off-white ash text.
   Type: Big Shoulders Display (headlines, times, ranks) + Barlow (everything else). */

:root {
  --night: #07090C;
  --deep: #0B0F14;
  --panel: #12161C;
  --panel-2: #191F27;
  --line: #262D36;
  --ash: #F2EFE8;
  --steel: #A3AEB9;
  --dim: #8591A0;
  --red: #FF4655;
  --red-ink: #E23B49;
  --immortal: #D9628F;
  --live: #FF4655;

  --font-display: "Big Shoulders Display", "Barlow Condensed", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --fs-0: 0.8125rem;
  --fs-1: 0.9375rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.25rem;
  --fs-4: 1.5rem;
  --fs-5: 2rem;
  --fs-6: 2.75rem;
  --fs-7: clamp(3.5rem, 9vw, 7rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --cut: 14px;
  --radius: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--ash);
  font-family: var(--font-body);
  font-size: var(--fs-2);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--red); color: #fff; padding: .6rem 1rem; z-index: 100;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Chamfered panel: the one shape the whole site shares (VALORANT-style cut corners) */
.chamfer {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

/* Type */
.display, .title, .fact-value, .sched-day, .plate-label, .dlg-title, .social-name, .spec-group h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .95;
  font-weight: 800;
}
.display { font-size: var(--fs-7); font-weight: 900; margin: .2em 0 .35em; letter-spacing: 0; }
.title { font-size: var(--fs-6); margin: 0 0 .5rem; }
.title::before {
  content: "";
  display: inline-block;
  width: .55em; height: .16em;
  background: var(--red);
  transform: skewX(-30deg);
  margin-right: .35em;
  vertical-align: .22em;
}
.section-intro { color: var(--steel); max-width: 62ch; margin: 0; }
.section-head { margin-bottom: 2rem; }
.fine { color: var(--dim); font-size: var(--fs-1); margin: 1.25rem 0 0; }
.more { margin: 1.5rem 0 0; font-weight: 600; }
.more a { text-decoration-color: var(--red); text-underline-offset: .2em; display: inline-block; padding: .5rem 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem;
  font: 600 var(--fs-1) var(--font-body);
  text-transform: uppercase; letter-spacing: .06em;
  text-decoration: none; color: var(--ash);
  background: var(--panel-2);
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-red { background: var(--red); color: var(--night); }
.btn-red:hover { background: var(--red-ink); color: var(--night); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--steel); }
.btn-line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); text-transform: none; letter-spacing: 0; }
.btn-line[aria-pressed="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--steel); }
.btn-sm { min-height: 36px; padding: .35rem .9rem; font-size: var(--fs-0); }
.btn:focus-visible { outline: 2px solid var(--ash); outline-offset: -5px; }
.btn-red:focus-visible { outline-color: var(--night); }
.social:focus-visible, .about-art:focus-visible { outline-offset: -4px; }
.player-box iframe:focus-visible { outline-offset: -3px; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--night) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--red); }
.mark { width: 34px; height: 34px; }
.mark .ticks { stroke: var(--ash); }
.wordmark {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: 1.6rem; letter-spacing: .04em; color: var(--ash); line-height: 1;
}
.wordmark em { font-style: normal; color: var(--red); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.site-nav > a:not(.btn) {
  text-decoration: none; font-weight: 600; font-size: var(--fs-1);
  text-transform: uppercase; letter-spacing: .08em; color: var(--steel);
  padding: .5rem 0;
}
.site-nav > a:not(.btn):hover { color: var(--ash); }
.head-cta { margin-left: .5rem; }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(105deg, #0B0F14 0 34%, transparent 34.2%),
    radial-gradient(ellipse at 70% 30%, rgba(255,70,85,.10), transparent 55%),
    linear-gradient(160deg, #141920 0%, #07090C 50%, #05070A 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0; font-weight: 600; font-size: var(--fs-1);
  text-transform: uppercase; letter-spacing: .08em; color: var(--steel);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.live { background: var(--live); box-shadow: 0 0 0 0 rgba(255,70,85,.6); animation: pulse 1.6s ease-out infinite; }
.status.is-live { color: var(--ash); }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255,70,85,0); } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; box-shadow: 0 0 0 4px rgba(255,70,85,.35); } }
.lede { font-size: var(--fs-3); max-width: 40ch; color: var(--ash); margin: 0 0 1rem; }
.next { color: var(--steel); margin: 0 0 1.5rem; font-size: var(--fs-1); }
.next strong { color: var(--ash); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.player-frame { background: var(--deep); display: flex; flex-direction: column; }
.player-box { position: relative; flex: 1 1 auto; aspect-ratio: 16 / 9; background: #000; }
.player-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-offline { position: absolute; inset: 0; }
.player-offline img { width: 100%; height: 100%; object-fit: cover; }
.offline-plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(0deg, rgba(10,18,27,.92), rgba(10,18,27,0));
  display: flex; flex-direction: column; gap: .15rem;
}
.plate-label { font-size: var(--fs-4); color: var(--ash); }
.plate-next { color: var(--steel); font-size: var(--fs-1); }
.chat-box { height: 420px; flex: none; border-top: 1px solid var(--line); background: var(--deep); }
.chat-box iframe { width: 100%; height: 100%; border: 0; }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0 0; }
.player-meta { color: var(--steel); font-size: var(--fs-1); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The one load moment: crosshair locks on, then the status line settles in */
@media (prefers-reduced-motion: no-preference) {
  .hero .status { animation: settle .5s ease-out .45s both; }
  .brand .mark { animation: lock 0.7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  @keyframes lock { from { transform: scale(1.7) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Rank strip */
.rank-strip { border-block: 1px solid var(--line); background: var(--deep); }
.rank-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 1.25rem 1.25rem 1.25rem 0; display: flex; flex-direction: column; gap: .2rem; border-right: 1px solid var(--line); margin-right: 1.25rem; }
.fact:last-child { border-right: 0; margin-right: 0; }
.fact-label { color: var(--steel); font-size: var(--fs-0); font-weight: 600; }
.fact-value { font-size: var(--fs-5); color: var(--ash); }
.fact-immortal { color: var(--immortal); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
/* Alternate bands cut on the diagonal, like the channel art */
.section-alt {
  --edge: clamp(14px, 2.5vw, 40px);
  background: var(--deep);
  padding-top: calc(clamp(3rem, 7vw, 5.5rem) + var(--edge));
  padding-bottom: calc(clamp(3rem, 7vw, 5.5rem) + var(--edge));
  margin-top: calc(var(--edge) * -1);
  clip-path: polygon(0 0, 100% var(--edge), 100% 100%, 0 calc(100% - var(--edge)));
  position: relative;
}
.section-alt:last-of-type { clip-path: polygon(0 0, 100% var(--edge), 100% 100%, 0 100%); padding-bottom: clamp(3rem, 7vw, 5.5rem); }

/* Schedule */
.sched { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sched li { border-bottom: 1px solid var(--line); }
.sched-row {
  display: grid; grid-template-columns: 140px 220px minmax(0, 1fr) auto;
  gap: 1.5rem; align-items: center; padding: 1rem 0;
}
.sched-row.is-now { background: linear-gradient(90deg, rgba(255,70,85,.12), transparent 60%); padding-left: .75rem; margin-left: -.75rem; }
.sched-day { font-size: var(--fs-5); line-height: 1; }
.sched-day small { display: block; font-family: var(--font-body); font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--steel); font-size: var(--fs-1); margin-top: .2rem; }
.sched-time { font-weight: 600; font-size: var(--fs-2); }
.sched-time small { display: block; color: var(--steel); font-weight: 500; font-size: var(--fs-0); }
.sched-title { min-width: 0; }
.sched-title .t { font-weight: 600; }
.sched-title .g { color: var(--steel); font-size: var(--fs-1); display: block; }
.sched-tag { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-0); }
.sched-empty, .tile-empty { color: var(--steel); padding: 1rem 0; }

/* Tiles (clips, VODs) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { background: var(--panel); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.tile button, .tile a {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none;
  font: inherit;
}
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--panel-2); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .len { position: absolute; right: .5rem; bottom: .5rem; background: rgba(10,18,27,.9); color: var(--ash); font-size: var(--fs-0); font-weight: 600; padding: .15rem .45rem; }
.thumb .play {
  position: absolute; left: .5rem; bottom: .5rem; width: 34px; height: 34px;
  background: var(--red); color: #fff; display: grid; place-items: center;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.thumb .play svg { width: 14px; height: 14px; }
.tile-body { padding: .8rem .9rem 1rem; }
.tile-title { font-weight: 600; margin: 0 0 .25rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile-meta { color: var(--steel); font-size: var(--fs-1); margin: 0; }
.tile button:focus-visible, .tile a:focus-visible { outline-offset: -3px; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.spec-group { background: var(--panel); padding: 1.25rem 1.4rem 1.4rem; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.spec-group h3 { font-size: var(--fs-4); margin: 0 0 .75rem; color: var(--ash); }
.spec-list { margin: 0; padding: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 1rem; row-gap: .45rem; }
.spec-list dt { color: var(--steel); font-size: var(--fs-1); }
.spec-list dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.spec-list dd.tbd { color: var(--dim); font-weight: 400; }

/* About */
.about-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.about-art { background: var(--panel); }
.about-art img { width: 100%; height: auto; }
.about-copy p { max-width: 62ch; }
.about-copy p:last-child { margin-bottom: 0; }

/* Socials */
.social-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.social { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.25rem 1.2rem; background: var(--panel); text-decoration: none; }
.social:hover { background: var(--panel-2); }
.social-name { font-size: var(--fs-4); }
.social-handle { color: var(--steel); font-size: var(--fs-1); overflow-wrap: anywhere; }

/* Footer */
.site-foot { background: var(--deep); border-top: 1px solid var(--line); padding: 2.5rem 0 2rem; color: var(--steel); font-size: var(--fs-1); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; }
.foot-brand p { margin: .5rem 0 0; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot-nav a { text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: var(--fs-0); display: inline-block; padding: .6rem 0; }
.foot-legal { grid-column: 1 / -1; margin: 0; color: var(--dim); max-width: 80ch; }

/* Dialog player */
.player-dlg { width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line); background: var(--deep); color: var(--ash); }
.player-dlg::backdrop { background: rgba(5,10,16,.85); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.dlg-title { margin: 0; font-size: var(--fs-4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-box { aspect-ratio: 16 / 9; background: #000; }
.dlg-box iframe { width: 100%; height: 100%; border: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .chat-box { height: 360px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-right: 0; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { display: contents; }
  .hero-copy .status { order: 1; }
  .hero-copy .display { order: 2; }
  .hero-player { order: 3; }
  .hero-copy .lede { order: 4; margin-top: 1.25rem; }
  .hero-copy .next { order: 5; }
  .hero-copy .cta-row { order: 6; }
  .tiles, .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 220px; }
  .social-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sched-row { grid-template-columns: 110px minmax(0, 1fr); gap: .5rem 1.25rem; }
  .sched-tag { grid-column: 2; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .menu-btn {
    display: inline-flex; margin-left: auto; min-height: 44px; padding: .4rem .9rem;
    background: transparent; color: var(--ash); border: 1px solid var(--line);
    font: 600 var(--fs-0) var(--font-body); text-transform: uppercase; letter-spacing: .08em; cursor: pointer;
  }
  .menu-btn[aria-expanded="true"] { background: var(--panel-2); }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .head-cta { margin: 1rem 0 0; }
  .nav-account, .nav-cart { padding: .85rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { border-right: 0; margin-right: 0; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .fact:nth-last-child(-n+1) { border-bottom: 0; }
  .fact-value { font-size: var(--fs-4); }
}
@media (max-width: 520px) {
  .tiles, .tiles-3 { grid-template-columns: 1fr; }
  .social-list { grid-template-columns: 1fr; }
  .sched-row { grid-template-columns: 1fr; }
  .sched-tag { grid-column: 1; }
  .cta-row .btn { flex: 1 1 auto; }
  .player-bar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Effects layer (see assets/js/effects.js). All motion is opt-out via
   prefers-reduced-motion; pointer effects only exist on fine pointers.
   ===================================================================== */

/* Ticker between the hero and the rank strip */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--deep); padding: .65rem 0; position: relative; z-index: 1; }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  display: flex; align-items: center; gap: 1.4rem; padding: 0 .7rem 0 1.4rem; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  font-size: var(--fs-4); color: var(--steel);
}
.ticker-track span::after { content: ""; width: .55em; height: .16em; background: var(--red); transform: skewX(-30deg); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Nav: active link + sliding indicator */
@media (min-width: 1101px) {
  .site-nav { position: relative; align-self: stretch; }
  .nav-ind { position: absolute; left: 0; bottom: -1px; height: 2px; width: 1px; transform-origin: left; background: var(--red); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
  .nav-ind.show { opacity: 1; }
}
.site-nav > a.active:not(.btn) { color: var(--ash); }

/* Hero light beams (diagonal, like the offline art) */
.hero-bg { will-change: transform; }
.beam { position: absolute; top: -20%; height: 140%; width: 18vw; transform: skewX(-24deg); background: linear-gradient(90deg, transparent, rgba(236,232,225,.055), transparent); animation: drift 18s ease-in-out infinite alternate; }
.beam.b1 { left: 28%; }
.beam.b2 { left: 56%; width: 9vw; animation-duration: 23s; animation-delay: -7s; opacity: .8; }
.beam.b3 { left: 80%; width: 26vw; animation-duration: 29s; animation-delay: -13s; opacity: .6; }
@keyframes drift { from { transform: skewX(-24deg) translateX(-7vw); } to { transform: skewX(-24deg) translateX(7vw); } }

/* Player: corner brackets, and a red ring that spins while live */
.player-frame { position: relative; }
.brackets { position: absolute; inset: 0; pointer-events: none; transition: opacity .25s; }
.brackets i { position: absolute; width: 18px; height: 18px; border: 2px solid var(--red); }
.brackets i:nth-child(1) { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.brackets i:nth-child(2) { right: 8px; top: 8px; border-left: 0; border-bottom: 0; }
.brackets i:nth-child(3) { left: 8px; bottom: 8px; border-right: 0; border-top: 0; }
.brackets i:nth-child(4) { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.player-box:hover .brackets { opacity: 0; }
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.player-frame.is-live::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; padding: 2px;
  background: conic-gradient(from var(--ang), transparent 0 55%, var(--red) 80%, #fff 86%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 2.6s linear infinite;
}
@keyframes spin { to { --ang: 360deg; } }

/* Spotlight (pointer-tracked glow) and tilt on tiles */
.spot { position: relative; --mx: 50%; --my: 50%; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(255,70,85,.16), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.tile { transition: transform .18s ease; transform-style: preserve-3d; }
.cta-row .btn, .head-cta { transition: transform .18s ease, background .15s ease; }

/* Target cursor */
.tcur { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .2s; }
.tcur.show { opacity: 1; }
.tcur.hide { opacity: 0; }
.tcur-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); will-change: transform; transition: scale .12s; }
.tcur.down .tcur-dot { scale: 2; }
.tcur-br { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border: 2px solid var(--red); will-change: transform; transition: border-color .2s; }
.tcur-br.tl { border-right: 0; border-bottom: 0; }
.tcur-br.tr { border-left: 0; border-bottom: 0; }
.tcur-br.bl { border-right: 0; border-top: 0; }
.tcur-br.br { border-left: 0; border-top: 0; }
.tcur.on .tcur-br { border-color: var(--ash); }
body.has-tcur, body.has-tcur a, body.has-tcur button, body.has-tcur summary { cursor: none; }
body.has-tcur iframe { cursor: auto; }
body.has-tcur.dialog-open, body.has-tcur.dialog-open a, body.has-tcur.dialog-open button { cursor: auto; }
body.dialog-open .tcur { opacity: 0; }

/* Click spark */
.spark { position: fixed; z-index: 9998; pointer-events: none; width: 0; height: 0; }
.spark i { position: absolute; left: -1px; top: -10px; width: 2px; height: 10px; background: var(--red); transform-origin: 1px 10px; transform: rotate(var(--a)) translateY(-6px); animation: spark .45s ease-out forwards; }
@keyframes spark { to { transform: rotate(var(--a)) translateY(-30px) scaleY(.25); opacity: 0; } }

/* Scroll reveal: section titles and intros only, once */
@media (prefers-reduced-motion: no-preference) {
  .fx .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
  .fx .reveal.in { opacity: 1; transform: none; }
  .fx .reveal .title::before { transform: skewX(-30deg) scaleX(0); transform-origin: left; transition: transform .5s .15s cubic-bezier(.2,.8,.2,1); }
  .fx .reveal.in .title::before { transform: skewX(-30deg) scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .beam { animation: none; }
  .player-frame.is-live::before { animation: none; background: var(--red); }
  .tile, .cta-row .btn, .head-cta, .nav-ind { transition: none; }
}
@media (max-width: 1100px) {
  .nav-ind { display: none; }
  .ticker-track span { font-size: var(--fs-3); }
}

/* =====================================================================
   Aim Trainers blend + Mykd devices
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Arrow-cut primary buttons (Mykd's signature shape) */
.btn-arrow { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 12px 50%); padding-left: 1.7rem; padding-right: 2rem; }
.btn-red.btn-arrow:hover { box-shadow: 0 0 24px rgba(255,70,85,.45); }
@media (prefers-reduced-motion: no-preference) { .btn-red { transition: box-shadow .2s, background .15s, transform .18s ease; } }

/* Huge outlined word behind section titles */
.section-head, .about-copy { position: relative; }
.title[data-bg]::after {
  content: attr(data-bg); position: absolute; left: -.04em; top: -.42em; z-index: -1;
  font-size: clamp(4.5rem, 13vw, 10rem); line-height: 1; letter-spacing: .02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(236,232,225,.10); pointer-events: none; user-select: none;
}
.section-head .title, .about-copy .title { position: relative; z-index: 0; }

/* Target rings: the Aim Trainers mark as an ornament */
.ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,70,85,.16); box-shadow: 0 0 60px rgba(255,70,85,.08), inset 0 0 60px rgba(255,70,85,.05); pointer-events: none; }
.hero-ring { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -12vw; top: -18vw; border-width: 1px; opacity: .55; }
.community { background: #05070A; color: var(--ash); }
.community-bg { position: absolute; inset: 0; overflow: hidden; }
.community-bg .ring { right: -220px; top: 50%; transform: translateY(-50%); }
.community-bg .r1 { width: 520px; height: 520px; }
.community-bg .r2 { width: 760px; height: 760px; border-color: rgba(255,70,85,.10); }
.community-bg .r3 { width: 1000px; height: 1000px; border-color: rgba(255,70,85,.06); box-shadow: none; }
.community-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #05070A 30%, rgba(5,7,10,.2) 70%, rgba(5,7,10,.6)); }
.community .wrap { position: relative; z-index: 1; }

.community-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; margin-bottom: 2.5rem; }
.at-mark { width: 180px; height: 180px; filter: drop-shadow(0 0 28px rgba(255,70,85,.35)); }
.status-online { margin-bottom: .5rem; }
.community-copy .fine { margin-top: .9rem; }

.stat-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); margin-bottom: 2.5rem; }
.stat-item { padding: 1.25rem 1.25rem 1.25rem 0; margin-right: 1.25rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: .15rem; }
.stat-item:last-child { border-right: 0; margin-right: 0; }
.stat-v { font-family: var(--font-display); font-weight: 900; font-size: var(--fs-6); line-height: .95; text-transform: uppercase; }
.stat-l { color: var(--steel); font-size: var(--fs-1); }

.community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.c-card { background: rgba(22,35,47,.75); border: 1px solid var(--line); padding: 1.25rem 1.4rem 1.4rem; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.c-card h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: var(--fs-4); margin: 0 0 .5rem; line-height: .95; letter-spacing: .01em; }
.c-card p { margin: 0; color: var(--steel); font-size: var(--fs-1); }
.c-card.c-bot { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; align-items: start; }
.c-card.c-bot img { border-radius: 50%; box-shadow: 0 0 0 2px var(--red), 0 0 18px rgba(255,70,85,.4); }

.boost { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem; background: linear-gradient(100deg, rgba(255,70,85,.16), rgba(255,70,85,.04) 60%, transparent), var(--panel); border-left: 4px solid var(--red); }
.boost h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: var(--fs-5); margin: 0 0 .5rem; line-height: .95; }
.boost p { margin: 0; color: var(--ash); max-width: 70ch; }
.boost strong { color: var(--red); }

/* Store teaser on the home page */
.drop-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 1.5rem; align-items: center; padding: 1.6rem 1.8rem; background: var(--panel); }
.drop-panel h3 { font-family: var(--font-display); text-transform: uppercase; font-weight: 800; font-size: var(--fs-5); margin: 0 0 .4rem; line-height: .95; }
.drop-panel p { margin: 0; color: var(--steel); }
.notify-form { display: grid; gap: .6rem; }
.notify-form input { width: 100%; min-height: 48px; padding: .55rem .8rem; background: var(--deep); color: var(--ash); border: 1px solid var(--line); font: 500 var(--fs-2) var(--font-body); }
.notify-form input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.notify-form .error { background: rgba(255,70,85,.12); border-left: 3px solid var(--red); padding: .5rem .7rem; font-size: var(--fs-1); margin: 0; }
.notify-form .muted { color: var(--steel); margin: 0; font-size: var(--fs-1); }

/* Social tiles with platform glyphs */
.social { position: relative; padding-left: 4.4rem; }
.social-ic { position: absolute; left: 1.25rem; top: 1.2rem; width: 28px; height: 28px; color: var(--red); }

/* Scroll to top */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 48px; height: 48px; background: var(--red); color: var(--night); border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }
.to-top:focus-visible { outline: 2px solid var(--ash); outline-offset: -5px; }

@media (max-width: 900px) {
  .community-head { grid-template-columns: 1fr; }
  .at-mark { width: 120px; height: 120px; }
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(2) { border-right: 0; }
  .community-grid { grid-template-columns: 1fr; }
  .boost, .drop-panel { grid-template-columns: 1fr; }
  .title[data-bg]::after { display: none; }
}
@media (max-width: 520px) {
  .stat-band { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* =====================================================================
   Theme v3: Mykd energy on black. Gradient borders, neon, shapes, backdrops.
   ===================================================================== */
/* Title accents */
.title em { font-style: normal; background: linear-gradient(90deg, #FF4655 0%, #FF7A6B 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.title[data-bg]::after { -webkit-text-stroke: 1px rgba(255,70,85,.14); }

/* Gradient-bordered, glowing panels */
.tile, .c-card, .product-tile, .spec-group, .social, .panel, .boost, .drop-panel, .player-frame {
  border: 1px solid transparent;
  background-image: linear-gradient(var(--panel), var(--panel)), linear-gradient(135deg, rgba(255,70,85,.55), rgba(255,70,85,.06) 38%, rgba(255,255,255,.06) 70%, rgba(255,70,85,.35));
  background-origin: border-box; background-clip: padding-box, border-box;
  transition: box-shadow .2s ease;
}
.c-card { background-image: linear-gradient(rgba(18,22,28,.9), rgba(18,22,28,.9)), linear-gradient(135deg, rgba(255,70,85,.55), rgba(255,70,85,.06) 38%, rgba(255,255,255,.06) 70%, rgba(255,70,85,.35)); }
.player-frame { background-image: linear-gradient(var(--deep), var(--deep)), linear-gradient(135deg, rgba(255,70,85,.7), rgba(255,70,85,.1) 40%, rgba(255,70,85,.5)); }
.boost { background-image: linear-gradient(100deg, rgba(255,70,85,.18), rgba(18,22,28,1) 55%), linear-gradient(135deg, rgba(255,70,85,.7), rgba(255,70,85,.15)); border-left-width: 4px; }
.tile:hover, .c-card:hover, .product-tile:hover, .social:hover, .spec-group:hover { box-shadow: inset 0 0 0 1px rgba(255,70,85,.5), inset 0 0 40px rgba(255,70,85,.10); }
.social:hover { background-image: linear-gradient(var(--panel-2), var(--panel-2)), linear-gradient(135deg, rgba(255,70,85,.7), rgba(255,70,85,.2)); }

/* Neon */
.stat-v, .fact-value, .plate-label { text-shadow: 0 0 22px rgba(255,70,85,.28); }
.fact-immortal { text-shadow: 0 0 22px rgba(217,98,143,.5); }
.status.is-live #status-text, .status-online span:last-child { text-shadow: 0 0 14px rgba(255,70,85,.5); }
.brackets i { filter: drop-shadow(0 0 6px rgba(255,70,85,.7)); }
.rank-strip { background: linear-gradient(180deg, #0B0F14, #07090C); }
.site-foot { border-top: 0; background: linear-gradient(180deg, #0B0F14, #05070A); position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--red), transparent 60%); }

/* Buttons: shine sweep */
.btn { position: relative; overflow: hidden; }
.btn-red::after { content: ""; position: absolute; top: -20%; left: -70%; width: 45%; height: 140%; background: linear-gradient(115deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .55s ease; pointer-events: none; }
.btn-red:hover::after { left: 130%; }

/* Header: clear over the hero, solid once you scroll */
body.home .site-head { background: linear-gradient(180deg, rgba(7,9,12,.75), rgba(7,9,12,0)); border-bottom-color: transparent; transition: background .25s, border-color .25s; }
body.home .site-head.scrolled { background: rgba(7,9,12,.92); border-bottom-color: var(--line); }

/* Hero mascot + textures */
.hero-mascot { position: absolute; right: -4vw; bottom: -6%; height: 118%; width: auto; max-width: 52vw; object-fit: contain; object-position: right bottom; opacity: .95; filter: drop-shadow(-20px 0 40px rgba(255,70,85,.25)); pointer-events: none; z-index: 0; }
.hero.has-texture .hero-bg { background-image: var(--texture); background-size: cover; background-position: center; }
.hero.has-texture .hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,9,12,.92) 0%, rgba(7,9,12,.55) 55%, rgba(7,9,12,.35)); }
@media (max-width: 1300px) { .hero-mascot { display: none; } }

/* Section backdrops from the channel's own imagery */
.section.has-bd::before { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--bd) center / cover no-repeat; opacity: .14; filter: saturate(.5) blur(3px); pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.section > .wrap { position: relative; z-index: 1; }

/* Floating shapes */
.shape { position: absolute; pointer-events: none; z-index: 0; opacity: .5; }
.shape.hex { width: 72px; height: 72px; background: linear-gradient(135deg, rgba(255,70,85,.35), transparent 70%); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.shape.hex::after { content: ""; position: absolute; inset: 2px; background: var(--night); clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.shape.ringlet { width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(255,70,85,.3); box-shadow: 0 0 30px rgba(255,70,85,.12); }
.shape.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px rgba(255,70,85,.8); }
@media (prefers-reduced-motion: no-preference) {
  .shape { animation: floaty 14s ease-in-out infinite alternate; }
  .shape.ringlet { animation-duration: 22s; }
  @keyframes floaty { from { transform: translateY(-14px) rotate(0deg); } to { transform: translateY(14px) rotate(12deg); } }
}

/* Drop panel art */
.drop-panel { position: relative; }
.drop-art { position: absolute; right: 340px; bottom: 0; height: 130%; width: auto; opacity: .9; pointer-events: none; filter: drop-shadow(0 0 30px rgba(255,70,85,.25)); }
@media (max-width: 1100px) { .drop-art { display: none; } }

/* Clips slide on phones */
@media (max-width: 760px) {
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding-bottom: .5rem; scrollbar-width: thin; }
  .tiles .tile { flex: 0 0 80%; scroll-snap-align: start; }
}
