/* =========================================================
   Astra Gaming Network — site styles
   Colors come from the AGN brand kit (silver + electric violet).
   ========================================================= */

:root {
  --bg: #07060C;
  --bg-2: #0C0A14;
  --panel: rgba(20, 17, 32, .72);
  --panel-solid: #14111F;
  --line: rgba(169, 124, 255, .14);
  --line-strong: rgba(169, 124, 255, .38);

  --violet: #6E14FF;
  --violet-2: #8A3BFF;
  --violet-3: #A97CFF;
  --violet-glow: rgba(110, 20, 255, .55);
  --blue: #3D5BFF;

  --text: #F2F2F7;
  --muted: #9C98B0;
  --success: #3BE38A;

  --display: "Chakra Petch", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  --max: 1240px;
  --cut: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.ic { width: 18px; height: 18px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

/* Text treatments that echo the chrome + violet logo */
.chrome {
  background: linear-gradient(180deg, #FFFFFF 0%, #E4E4EE 45%, #9C9CAE 70%, #F4F4FA 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.violet {
  background: linear-gradient(100deg, #8A3BFF 0%, #A97CFF 45%, #6E14FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Global overlays ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 100; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--violet), var(--violet-3), var(--blue));
  box-shadow: 0 0 12px var(--violet-glow);
}
.noise {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: 1; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(110, 20, 255, .13), transparent 65%);
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ---------- HUD bits ---------- */
.hud-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase;
  color: var(--violet-3); margin-bottom: 18px;
}
.hud-bracket { color: var(--violet); font-weight: 700; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(59, 227, 138, .6); animation: ping 2s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59,227,138,.55); } 70%,100% { box-shadow: 0 0 0 8px rgba(59,227,138,0); } }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-3); background: rgba(110, 20, 255, .12); border: 1px solid var(--line-strong);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.chip-hot { color: #fff; background: var(--violet); border-color: var(--violet); }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--cut);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 100%); color: #fff; }
.btn-primary::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px var(--violet-glow); }
.btn-ghost {
  color: var(--text); background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover { background: rgba(110, 20, 255, .14); }
.btn-ghost .ic { transition: transform .25s var(--ease); }
.btn-ghost:hover .ic { transform: translateX(4px); }
.btn-sm { padding: 10px 16px; font-size: 13px; --c: 9px; }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn-xl { padding: 22px 38px; font-size: 18px; --c: 18px; }
.btn-xl .ic { width: 24px; height: 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 80px;
  transition: background .3s, height .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 66px; background: rgba(7, 6, 12, .78);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 34px; width: auto; transition: height .3s; }
.nav.scrolled .nav-logo img { height: 30px; }
.nav-links { display: flex; gap: 30px; font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.nav-links a { position: relative; color: var(--muted); padding: 8px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--violet);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.02);
}
.live-pill b { color: var(--text); font-weight: 600; }
.burger { display: none; width: 42px; height: 42px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 24px; }
body.menu-open .burger span:first-child { top: 20px; transform: rotate(45deg); }
body.menu-open .burger span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 100px 28px 40px; background: rgba(7, 6, 12, .97); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu a:not(.btn) {
  font: 700 30px/1.3 var(--display); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.hero-bg {
  position: absolute; inset: -40px; z-index: 0;
  background: url("../assets/hero-field.jpg") center / cover no-repeat;
  transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(1.05);
  transition: transform .2s linear;
}
.hero-streaks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-grid-floor {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 55%; z-index: 1;
  background-image:
    linear-gradient(rgba(138, 59, 255, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 59, 255, .35) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%, transparent 100%);
  animation: floor 3s linear infinite; opacity: .5;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse at 70% 45%, transparent 0%, rgba(7,6,12,.35) 55%, rgba(7,6,12,.92) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 3; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 40px; width: 100%; }
.hero-title {
  font: 700 clamp(40px, 4.9vw, 84px)/.98 var(--display); text-transform: uppercase; letter-spacing: -.01em;
  margin-bottom: 26px;
}
.hero-title .line, .page-title .line { display: block; overflow: hidden; padding-bottom: .06em; white-space: nowrap; }
.hero-title .line > span, .page-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.hero-title .line:nth-child(2) > span, .page-title .line:nth-child(2) > span { transition-delay: .12s; }
body.loaded .hero-title .line > span, body.loaded .page-title .line > span { transform: none; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); color: #C9C5D9; max-width: 560px; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 54px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); max-width: 620px; }
.stat { flex: 1 1 120px; padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.hero-emblem { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 900px; }
.emblem-img {
  position: relative; z-index: 2; width: 88%; height: auto;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { translate: 0 -8px; } 50% { translate: 0 10px; } }
.emblem-light {
  position: absolute; inset: 12%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,20,255,.55) 0%, rgba(61,91,255,.18) 40%, transparent 70%);
  filter: blur(30px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .75; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.emblem-ring { position: absolute; border-radius: 50%; border: 1px solid var(--line-strong); z-index: 1; }
.emblem-ring.r1 { inset: 4%; border-style: dashed; border-color: rgba(169,124,255,.25); animation: spin 40s linear infinite; }
.emblem-ring.r2 {
  inset: 14%; border: 1px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 70%, var(--violet-3) 85%, transparent 100%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.emblem-hud {
  position: absolute; z-index: 3; inset: auto 0 6% 0; display: flex; justify-content: space-between;
  font: 600 11px/1 var(--display); letter-spacing: .24em; color: var(--muted);
}
.emblem-hud b { color: var(--success); font-weight: 700; }
.scroll-cue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; width: 26px; height: 42px; translate: -50% 0;
  border: 2px solid var(--line-strong); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 2px; translate: -50% 0;
  background: var(--violet-3); animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 4; padding: 20px 0; overflow: hidden; }
.marquee-row {
  overflow: hidden; background: linear-gradient(100deg, var(--violet) 0%, var(--violet-2) 100%);
  transform: rotate(-2deg) scale(1.04); box-shadow: 0 20px 60px -20px var(--violet-glow);
}
.marquee-row.alt {
  background: #0F0C19; border-block: 1px solid var(--line-strong);
  transform: rotate(1.4deg) scale(1.04) translateY(-6px);
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0;
  font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
  animation: marquee 38s linear infinite;
}
.marquee-row.alt .marquee-track { font-size: 16px; color: var(--muted); padding: 13px 0; }
.marquee-track i { font-style: normal; opacity: .7; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 46s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 130px 0; }
.sec-head { max-width: 700px; margin-bottom: 60px; }
.sec-title {
  font: 700 clamp(34px, 4.6vw, 60px)/1.02 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  margin-bottom: 18px;
}
.sec-sub { color: var(--muted); font-size: 18px; max-width: 600px; }

/* Cards: glass panel, cut corners, mouse-follow spotlight, HUD corners */
.card {
  --mx: 50%; --my: 50%;
  position: relative; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color .3s, transform .35s var(--ease), box-shadow .35s;
  transform-style: preserve-3d;
}
.card::before { /* spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(138, 59, 255, .18), transparent 45%);
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 30px 80px -40px var(--violet-glow); }
.card:hover::before { opacity: 1; }
.corner { position: absolute; width: 16px; height: 16px; pointer-events: none; border-color: var(--violet-3); border-style: solid; opacity: .5; transition: opacity .3s, width .3s, height .3s; }
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.card:hover .corner { opacity: 1; width: 26px; height: 26px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { padding: 40px 34px 38px; overflow: hidden; }
.step-num {
  position: absolute; right: 18px; top: 4px; font: 700 110px/1 var(--display); color: transparent;
  -webkit-text-stroke: 1px rgba(169, 124, 255, .22); pointer-events: none; transition: -webkit-text-stroke-color .3s;
}
.step:hover .step-num { -webkit-text-stroke-color: rgba(169, 124, 255, .5); }
.step-icon {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 26px;
  background: linear-gradient(135deg, rgba(110,20,255,.35), rgba(110,20,255,.08));
  border: 1px solid var(--line-strong);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.step-icon svg { width: 26px; height: 26px; fill: var(--violet-3); }
.step h3, .event h3, .value h3, .project h3 { font: 700 24px/1.15 var(--display); text-transform: uppercase; margin-bottom: 10px; letter-spacing: .01em; }
.step p, .event p, .value p, .project p { color: var(--muted); }

/* Lobbies */
.lobbies { background: linear-gradient(180deg, transparent, rgba(110, 20, 255, .05) 50%, transparent); }
.lobbies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.checks { list-style: none; display: grid; gap: 18px; margin-top: 34px; }
.checks li { position: relative; padding-left: 34px; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--violet); clip-path: polygon(0 50%, 38% 100%, 100% 12%, 86% 0, 38% 70%, 14% 36%);
}
.checks b { color: var(--text); font-weight: 600; }

.vc-wrap { position: relative; }
.vc { padding: 22px; font-size: 14px; background: rgba(15, 12, 25, .88); }
.vc-top { display: flex; justify-content: space-between; align-items: center; padding: 2px 6px 18px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.vc-server { font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.vc-badge { font: 700 10px/1 var(--display); letter-spacing: .2em; color: var(--success); padding: 5px 8px; border: 1px solid rgba(59,227,138,.35); border-radius: 4px; }
.vc-cat { font: 600 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 6px 6px 12px; }
.vc-list { display: grid; gap: 2px; min-height: 360px; align-content: start; }
.vc-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 6px; color: var(--muted);
  transition: background .3s, color .3s;
}
.vc-row .ic { width: 18px; height: 18px; }
.vc-row.has-users { color: var(--text); }
.vc-row.hot { background: rgba(110, 20, 255, .14); }
.vc-row .cnt { margin-left: auto; font: 600 12px/1 var(--display); letter-spacing: .1em; color: var(--muted); }
.vc-users { display: grid; gap: 4px; padding: 0 0 6px 40px; }
.vc-user {
  display: flex; align-items: center; gap: 10px; color: #C9C5D9; font-size: 13.5px;
  animation: userIn .45s var(--ease) both;
}
.vc-user.leaving { animation: userOut .35s ease forwards; }
@keyframes userIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes userOut { to { opacity: 0; transform: translateX(10px); height: 0; } }
.av {
  width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 700 11px/1 var(--display); color: #fff; transition: box-shadow .15s;
}
.av.talking { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--success); }
.vc-toast {
  position: absolute; right: -14px; top: -18px; z-index: 2; padding: 10px 14px; font-size: 13px;
  background: var(--panel-solid); border: 1px solid var(--line-strong); color: var(--text);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease);
}
.vc-toast.show { opacity: 1; transform: none; }
.vc-toast b { color: var(--violet-3); }
.vc-note { margin-top: 12px; font-size: 12px; color: #6E6A82; text-align: right; }

/* Events */
.events { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.events > .event { grid-column: span 2; }
.events > .event:nth-child(5), .events > .event:nth-child(6) { grid-column: span 3; }
.event { padding: 30px; }
.event .chip { margin-bottom: 18px; }
.events > .event-feature { grid-column: span 6; display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; overflow: hidden; min-height: 360px; }
.event-media {
  position: relative; background: url("../assets/banner.jpg") center / cover no-repeat;
}
.event-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 40%, rgba(15, 12, 25, .95)), linear-gradient(0deg, rgba(110,20,255,.25), transparent 60%);
}
.event-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.event-feature h3 { font-size: clamp(34px, 3.6vw, 52px); margin-bottom: 14px; }
.event-feature p { font-size: 17px; margin-bottom: 28px; }

/* Worldwide */
.world { overflow: hidden; }
.world-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: center; }
.globe { position: relative; z-index: 1; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe:active { cursor: grabbing; }
.globe-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(110,20,255,.35), transparent 65%); filter: blur(40px); }
.clocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
.clock { padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); }
.clock.you { border-color: var(--violet); background: rgba(110, 20, 255, .14); }
.clock .city { display: block; font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.clock b { font: 700 24px/1 var(--display); font-variant-numeric: tabular-nums; }

/* Culture */
.culture { background: radial-gradient(ellipse 55% 45% at 50% 42%, rgba(110,20,255,.13), transparent 100%); }
.big-quote {
  position: relative; max-width: 1040px; margin: 0 auto 70px; text-align: center;
  font: 700 clamp(28px, 3.8vw, 50px)/1.15 var(--display); text-transform: uppercase;
}
.q-mark { display: block; font-size: 1.8em; line-height: .6; color: var(--violet); margin-bottom: 10px; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 32px; }
.v-num { display: block; font: 700 13px/1 var(--display); letter-spacing: .2em; color: var(--violet-3); margin-bottom: 18px; }

/* Projects */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project { padding: 36px; display: flex; flex-direction: column; }
.project-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.project .gh { width: 26px; height: 26px; color: var(--muted); }
.project h3 { font-size: 32px; }
.project p { flex: 1; margin-bottom: 22px; }
.term {
  font: 500 14px/1 ui-monospace, "JetBrains Mono", Consolas, monospace; padding: 14px 16px; margin-bottom: 22px;
  background: #0A0812; border: 1px solid var(--line); color: var(--text);
}
.term .p { color: var(--violet-3); }
.term .a { color: #7FB4FF; }
.term .c { color: #6E6A82; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-3); }
.link-arrow .ic { transition: transform .25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(5px); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font: 700 19px/1.3 var(--display); text-transform: uppercase; letter-spacing: .02em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--violet-3); }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; transition: transform .3s var(--ease);
  background: linear-gradient(var(--violet-3), var(--violet-3)) center / 100% 2px no-repeat,
              linear-gradient(var(--violet-3), var(--violet-3)) center / 2px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--muted); padding: 0 4px 24px; max-width: 620px; }

/* Final CTA */
.final { position: relative; padding: 150px 0 160px; overflow: hidden; text-align: center; }
.final-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 30%, transparent 70%, var(--bg) 100%),
    url("../assets/hero-field.jpg") center / cover no-repeat;
  opacity: .9;
}
.final-bg::after { /* moving beam across the section */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(138, 59, 255, .18) 50%, transparent 60%);
  background-size: 250% 100%; animation: beam 7s linear infinite;
}
@keyframes beam { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-emblem { width: 220px; aspect-ratio: 512 / 380; background: url("../assets/agn-mark-animated.webp") center / contain no-repeat; margin-bottom: 30px; animation: float 6s ease-in-out infinite; }
.final-title { font: 700 clamp(44px, 7vw, 100px)/.95 var(--display); text-transform: uppercase; margin-bottom: 20px; }
.final .sec-sub { margin: 0 auto 40px; font-size: 20px; }
.final .sec-sub b { color: var(--text); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 22px; background: linear-gradient(180deg, transparent, rgba(110, 20, 255, .04)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr; gap: 32px 48px; padding-bottom: 28px; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-brand p { color: var(--muted); max-width: 360px; margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 { font: 700 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 4px; }
/* The site's pages in two short columns (reading down), so the footer stays short. */
.footer-col[aria-label="Site"] { display: grid; grid-auto-flow: column; grid-template-rows: auto repeat(4, auto); grid-auto-columns: max-content; column-gap: 40px; row-gap: 8px; align-content: start; }
.footer-col[aria-label="Site"] h4 { grid-row: 1; grid-column: 1 / span 2; }
.footer-col a { color: var(--muted); transition: color .2s; width: fit-content; }
.footer-col a:hover, .footer-col a[aria-current="page"] { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); color: #6E6A82; font-size: 14px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-emblem { max-width: 420px; width: 80%; justify-self: center; order: -1; margin-top: -10px; }
  .lobbies-grid, .world-grid { grid-template-columns: 1fr; gap: 48px; }
  .events { grid-template-columns: 1fr 1fr; }
  .events > .event, .events > .event:nth-child(5) { grid-column: span 1; }
  .events > .event-feature, .events > .event:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 90px 0; }
  .live-pill { display: none !important; }
  .nav-right .btn span { display: none; }
  .hero { padding: 100px 0 80px; }
  .hero-emblem { width: 52%; margin: -6px 0 -14px; }
  .hero-title { margin-bottom: 18px; }
  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .hero-ctas { margin-bottom: 36px; }
  .nav-right .btn-sm { padding: 9px 12px; }
  .nav-logo img { height: 28px; }
  .hud-tag { font-size: 11px; letter-spacing: .16em; }
  .emblem-hud { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 16px 0 0; border-left: 0; }
  .steps, .values, .projects, .events { grid-template-columns: 1fr; }
  .events > .event, .events > .event-feature, .events > .event:nth-child(5), .events > .event:nth-child(6) { grid-column: auto; }
  .event-feature { grid-template-columns: 1fr; }
  .hero-title .line { white-space: normal; }
  .event-media { min-height: 200px; }
  .event-media::after { background: linear-gradient(180deg, transparent 40%, rgba(15,12,25,.95)); }
  .event-body { padding: 30px 26px 34px; }
  .clocks { grid-template-columns: 1fr 1fr; }
  .vc-toast { right: 0; }
  .marquee-track { font-size: 17px; }
  .btn-xl { padding: 18px 26px; font-size: 15px; }
}


/* ===================== Sub-page header ===================== */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 90px; border-bottom: 1px solid var(--line); }
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,6,12,.2) 0%, rgba(7,6,12,.55) 60%, var(--bg) 100%),
    url("../assets/hero-field.jpg") center 30% / cover no-repeat;
}
.page-hero .hero-streaks { z-index: 1; }
.page-hero-inner { position: relative; z-index: 2; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--violet-3); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--violet); }
.page-title { font: 700 clamp(44px, 6.4vw, 96px)/.96 var(--display); text-transform: uppercase; margin-bottom: 24px; }
.page-hero .hero-sub { margin-bottom: 0; }
.page-hero .hero-ctas { margin: 34px 0 0; }
/* Only the 404 section (the page body has the class page-404 too, and must stay a normal column). */
.page-hero.page-404 { min-height: 80vh; display: flex; align-items: center; }
.page-hero.page-404 > .wrap { width: 100%; }

/* ===================== Home: explore tiles ===================== */
.explore { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(250px, auto); gap: 22px; }
.tile { display: flex; flex-direction: column; overflow: hidden; }
.tile-big { grid-row: span 2; }
.tile-media {
  position: relative; flex: 1; min-height: 220px; display: grid; place-items: center; overflow: hidden;
  background: url("../assets/hero-field.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.tile-mark { display: block; width: 46%; max-width: 260px; aspect-ratio: 640 / 475; background: url("../assets/agn-mark-glow-640.png") center / contain no-repeat; transition: transform .6s var(--ease); }
.tile:hover .tile-mark { transform: scale(1.06) rotate(-2deg); }
.tile-body { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; justify-content: flex-end; }
.tile-big .tile-body { flex: 0; }
.tile h3 { font: 700 24px/1.15 var(--display); text-transform: uppercase; }
.tile-big h3 { font-size: clamp(26px, 2.6vw, 36px); }
.tile p { color: var(--muted); }
.tile .link-arrow { margin-top: 6px; }
.tile:hover .link-arrow .ic { transform: translateX(5px); }
.explore > .tile:nth-child(4) { grid-column: 2 / 4; }

/* ===================== CTA band (bottom of sub-pages) ===================== */
.cta-band { position: relative; padding: 90px 0; border-top: 1px solid var(--line); overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(110,20,255,.22), transparent 70%);
}
.cta-band-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band-title { font: 700 clamp(30px, 3.6vw, 48px)/1.05 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.cta-band p { color: var(--muted); font-size: 17px; }

/* ===================== Split layout + timeline ===================== */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.split .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.timeline { list-style: none; counter-reset: step; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--violet), rgba(110,20,255,.1)); }
.timeline li { counter-increment: step; position: relative; padding: 0 0 34px 72px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: -4px; width: 44px; height: 44px; display: grid; place-items: center;
  font: 700 16px/1 var(--display); color: #fff; background: var(--panel-solid); border: 1px solid var(--violet);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.timeline b { display: block; font: 700 20px/1.2 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.timeline span { color: var(--muted); }

/* ===================== Partners ===================== */
.partners-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 10px 18px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: color .2s, background .2s, border-color .2s;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.filter:hover { color: var(--text); border-color: var(--line-strong); }
.filter.is-on { color: #fff; background: var(--violet); border-color: var(--violet); }
.filter:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--violet-3); outline-offset: 3px; }
.partners-count { font: 600 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.partner { padding: 28px; display: flex; flex-direction: column; gap: 16px; animation: userIn .5s var(--ease) both; }
.partner-head { display: flex; align-items: center; gap: 16px; }
.partner-logo {
  width: 60px; height: 60px; flex: none; display: grid; place-items: center; overflow: hidden;
  font: 700 24px/1 var(--display); color: #fff; background: linear-gradient(135deg, var(--violet), var(--blue));
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.partner-logo img { width: 100%; height: 100%; object-fit: cover; }
.partner-name { font: 700 22px/1.15 var(--display); text-transform: uppercase; }
.partner-cat { font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet-3); margin-top: 6px; display: block; }
.partner p { color: var(--muted); flex: 1; }
.partner-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 9px; border: 1px solid var(--line); color: #C9C5D9; border-radius: 4px; }
.tag-price { border-color: rgba(59,227,138,.35); color: var(--success); }
.tag-price.paid { border-color: rgba(255,179,71,.4); color: #FFB347; }
.tag-example { border-style: dashed; color: var(--muted); }
.partner .btn { align-self: flex-start; }
.partners-empty { color: var(--muted); padding: 30px 0; }
.notice {
  display: flex; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px 26px;
  border: 1px solid rgba(255, 179, 71, .3); background: rgba(255, 179, 71, .05);
}
.notice .ic { width: 22px; height: 22px; color: #FFB347; margin-top: 2px; }
.notice b { font: 700 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.notice p { color: var(--muted); margin-top: 6px; }

.deal { background: linear-gradient(180deg, transparent, rgba(110, 20, 255, .05) 50%, transparent); }
.deal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.deal-col { padding: 34px; }
.deal-col h3 { font: 700 24px/1.15 var(--display); text-transform: uppercase; margin-bottom: 22px; }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  background: var(--violet); clip-path: polygon(0 50%, 38% 100%, 100% 12%, 86% 0, 38% 70%, 14% 36%);
}
.ticks b { color: var(--text); font-weight: 600; }
.rules { margin-top: 56px; }
.rules-title { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 20px; }
.rules-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rule { padding: 20px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.rule .ic { width: 20px; height: 20px; color: #F05252; }
.rule b { font: 700 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.rule span { color: var(--muted); font-size: 14px; }

/* ===================== Projects extras ===================== */
.feature-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.feature-list li { font-size: 13px; padding: 5px 10px; border: 1px solid var(--line-strong); color: #C9C5D9; background: rgba(110,20,255,.08); }

/* ===================== FAQ page ===================== */
.faq-wrap { display: grid; gap: 64px; }
.faq-wrap > * { max-width: 900px; }
.faq-head { font: 700 14px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 8px; }
.faq-a a { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split .sec-head { position: static; }
  .explore { grid-template-columns: 1fr 1fr; }
  .tile-big { grid-column: 1 / -1; grid-row: auto; }
  .explore > .tile:nth-child(4) { grid-column: auto; }
  .rules-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .page-hero { padding: 120px 0 60px; }
  .page-title .line { white-space: normal; }
  .explore { grid-template-columns: 1fr; }
  .explore > .tile:nth-child(4) { grid-column: auto; }
  .tile-media { min-height: 180px; }
  .deal-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .partners { grid-template-columns: 1fr; }
  .timeline li { padding-left: 62px; }
  .cta-band { padding: 64px 0; }
  .cta-band-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-col[aria-label="Site"] { column-gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span, .page-title .line > span { transform: none; }
}

.nowrap { white-space: nowrap; }

@media (max-width: 720px) {
  .rules-grid > .rule:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =========================================================
   Accounts: nav, auth pages, settings, public profiles
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav-signin { font: 600 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 8px 4px; }
.nav-signin:hover { color: var(--text); }
.nav-me { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 14px; max-width: 200px; }
.nav-me:hover { border-color: var(--line-strong); }
.nav-me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-av, .avatar {
  flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue)); color: #fff; font: 700 14px/1 var(--display);
}
.nav-av { width: 30px; height: 30px; }
.avatar img, .nav-av img { width: 100%; height: 100%; object-fit: cover; }
.avatar-md { width: 48px; height: 48px; font-size: 20px; }
.avatar-lg { width: 76px; height: 76px; font-size: 32px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--violet); }
.avatar-xl { width: 96px; height: 96px; font-size: 40px; }
.avatar-xxl { width: 148px; height: 148px; font-size: 60px; box-shadow: 0 0 0 5px var(--panel-solid), 0 0 0 7px var(--violet); }

/* Buttons used by forms */
.btn-block { width: 100%; }
.btn-discord { background: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; box-shadow: 0 10px 40px -10px rgba(88,101,242,.7); }
.btn-danger { background: #B4232F; color: #fff; }
.btn-danger:hover { background: #D12C3A; }
.btn-text { color: var(--violet-3); font-weight: 600; font-size: 14px; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.btn-text:hover { color: var(--text); }
.btn-text:disabled { color: var(--muted); text-decoration: none; cursor: not-allowed; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-busy span::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* Forms */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .label-row label { font: 600 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: #C9C5D9; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field input, .field textarea, .tags-input {
  width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--body); color: var(--text);
  background: rgba(10, 8, 18, .8); border: 1px solid var(--line-strong); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .tags-input:focus-within { outline: none; border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(110, 20, 255, .25); }
.field input[aria-invalid="true"] { border-color: #F05252; }
.field input::placeholder, .field textarea::placeholder { color: #6E6A82; }
.field-hint { font-size: 13px; color: var(--muted); }
.field-error { font-size: 13px; color: #FF7A7A; min-height: 0; }
.field-error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.small-link { font-size: 13px; color: var(--violet-3); }
.small-link:hover { color: var(--text); }
.prefixed { display: flex; align-items: stretch; border: 1px solid var(--line-strong); background: rgba(10, 8, 18, .8); transition: border-color .2s, box-shadow .2s; }
.prefixed:focus-within { border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(110, 20, 255, .25); }
.prefixed span { display: flex; align-items: center; padding: 0 0 0 14px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.prefixed input { border: 0 !important; box-shadow: none !important; background: transparent; padding-left: 2px; min-width: 0; }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; translate: 0 -50%; padding: 6px 8px; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-3); }
.meter { height: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: #F05252; transition: width .3s, background .3s; }
.meter[data-level="1"] span { width: 20%; }
.meter[data-level="2"] span { width: 50%; background: #FFB347; }
.meter[data-level="3"] span { width: 75%; background: var(--violet-3); }
.meter[data-level="4"] span { width: 100%; background: var(--success); }
.form-alert { padding: 14px 16px; font-size: 15px; border: 1px solid; margin-bottom: 20px; }
.form-alert.is-error { border-color: rgba(240, 82, 82, .45); background: rgba(240, 82, 82, .08); color: #FFB4B4; }
.form-alert.is-ok { border-color: rgba(59, 227, 138, .4); background: rgba(59, 227, 138, .07); color: #A6F5C9; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.muted { color: var(--muted); }

/* Auth pages */
.auth { position: relative; min-height: 100vh; padding: 130px 0 80px; display: flex; align-items: center; overflow: hidden; }
.auth-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 75% 50%, rgba(110,20,255,.25), transparent 70%), url("../assets/hero-field.jpg") center / cover no-repeat;
  opacity: .9;
}
.auth .wrap { position: relative; width: 100%; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: 80px; align-items: center; }
.auth-card { padding: 40px; background: rgba(15, 12, 25, .9); }
.auth-narrow .auth-card { max-width: 480px; margin: 0 auto; }
.auth-title { font: 700 clamp(30px, 3.4vw, 40px)/1.05 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.auth-sub { color: var(--muted); margin-bottom: 26px; }
.auth-sub a, .auth-foot a { color: var(--violet-3); font-weight: 600; }
.auth-sub a:hover { color: var(--text); }
.auth-foot { margin: 22px 0 0; text-align: center; font-size: 14px; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; font: 600 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-side { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.auth-emblem { width: min(380px, 80%); aspect-ratio: 512 / 380; background: url("../assets/agn-mark-animated.webp") center / contain no-repeat; animation: float 6s ease-in-out infinite; }
.auth-perks { list-style: none; display: grid; gap: 14px; }
.auth-perks li { position: relative; padding-left: 30px; color: #C9C5D9; font-size: 17px; }
.auth-perks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; background: var(--violet); clip-path: polygon(0 50%, 38% 100%, 100% 12%, 86% 0, 38% 70%, 14% 36%); }
.auth-perks b { color: var(--text); }
.auth-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.status-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-strong); }
.status-icon .ic { width: 30px; height: 30px; }
.status-icon.is-ok { color: var(--success); border-color: rgba(59,227,138,.5); }
.status-icon.is-bad { color: #F05252; border-color: rgba(240,82,82,.5); }
.spinner { width: 26px; height: 26px; border: 3px solid var(--violet-3); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* Account settings */
.acct-hero { position: relative; padding: 140px 0 46px; border-bottom: 1px solid var(--line); overflow: hidden; }
.acct-hero-inner { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.acct-id { display: flex; align-items: center; gap: 24px; min-width: 0; }
.acct-id .hud-tag { margin-bottom: 10px; }
.acct-name { font: 700 clamp(30px, 4vw, 48px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.acct-handle { color: var(--muted); margin-top: 6px; }
.acct { padding-top: 60px; }
.acct-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.acct-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.acct-nav a { padding: 10px 14px; border-left: 2px solid var(--line); color: var(--muted); font: 600 14px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; transition: color .2s, border-color .2s; }
.acct-nav a:hover, .acct-nav a.is-on { color: var(--text); border-left-color: var(--violet); }
.acct-main { display: grid; gap: 26px; min-width: 0; }
.panel { padding: 34px; display: grid; gap: 22px; scroll-margin-top: 100px; }
.panel-title { font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.panel-sub { color: var(--muted); margin-top: -12px; }
.panel-actions { display: flex; justify-content: flex-end; }
.avatar-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.avatar-actions { display: grid; gap: 8px; justify-items: start; flex: 1; min-width: 200px; }
.tags-input { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; cursor: text; }
.tags-input input { flex: 1; min-width: 160px; border: 0 !important; box-shadow: none !important; padding: 4px; background: transparent; }
.tags-list { display: contents; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 14px; color: #fff;
  background: rgba(110, 20, 255, .35); border: 1px solid var(--line-strong);
}
.tag-chip::after { content: "×"; color: var(--violet-3); font-size: 16px; line-height: 1; }
.tag-chip:hover { background: rgba(240, 82, 82, .3); }
.switch { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { flex: none; width: 46px; height: 26px; margin-top: 2px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + .switch-ui { background: var(--violet); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--violet-3); outline-offset: 3px; }
.switch b { display: block; }
.switch small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.connect { display: grid; gap: 18px; justify-items: start; }
.connect-row { display: flex; align-items: center; gap: 16px; width: 100%; }
.connect-info { display: grid; flex: 1; min-width: 0; }
.connect-info b { overflow-wrap: anywhere; }
.connect-info span { color: var(--muted); font-size: 14px; }
.agn-status { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.agn-status a { color: var(--violet-3); font-weight: 600; }
.rank-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; font: 700 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: linear-gradient(100deg, var(--violet), var(--violet-2));
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.rank-badge::before { content: ""; width: 7px; height: 7px; background: #fff; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.email-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.email-status > div { display: grid; }
.email-status .muted { font-size: 13px; }
.pill { font: 700 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border: 1px solid; }
.pill-ok { color: var(--success); border-color: rgba(59,227,138,.4); }
.pill-warn { color: #FFB347; border-color: rgba(255,179,71,.45); }
.sub-form { gap: 16px; justify-items: start; }
.sub-form .field-row { width: 100%; }
.sub-form + .sub-form { padding-top: 22px; border-top: 1px solid var(--line); }
.sub-title { font: 700 16px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.panel-danger { border-color: rgba(240, 82, 82, .25); }
.danger-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.danger-row + .danger-row { padding-top: 22px; border-top: 1px solid var(--line); }
.danger-row > div { display: grid; gap: 4px; flex: 1; min-width: 220px; }
.danger-row .field { margin-top: 12px; max-width: 320px; }

/* Public profile */
.prof { position: relative; padding: 0 0 100px; }
.prof-banner { height: 300px; background: linear-gradient(180deg, transparent 40%, var(--bg)), url("../assets/hero-field.jpg") center 35% / cover no-repeat; border-bottom: 1px solid var(--line); }
.prof-card { margin-top: -110px; padding: 0 40px 40px; background: rgba(15, 12, 25, .94); }
.prof-head { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.prof-head .avatar { margin-top: -60px; }
.prof-id { flex: 1; min-width: 220px; padding-top: 24px; }
.prof-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; min-height: 0; }
.prof-name { font: 700 clamp(32px, 4.4vw, 56px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.prof-handle { color: var(--muted); font-size: 17px; margin-top: 6px; }
.prof-edit { align-self: center; }
.prof-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 32px 0; border-block: 1px solid var(--line); }
.prof-stats > div { padding: 18px 28px 18px 0; margin-right: 28px; border-right: 1px solid var(--line); }
.prof-stats > div:last-child { border-right: 0; }
.prof-stats dt { font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prof-stats dd { font: 700 20px/1.1 var(--display); overflow-wrap: anywhere; }
.prof-body { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.prof-label { font: 700 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 14px; }
.prof-bio { white-space: pre-line; font-size: 17px; color: #D6D3E4; overflow-wrap: anywhere; }
.prof-games { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tag { padding: 8px 12px; font-weight: 600; font-size: 14px; border: 1px solid var(--line-strong); background: rgba(110, 20, 255, .1); }
.prof-missing { margin-top: -60px; padding: 48px; text-align: center; display: grid; justify-items: center; gap: 4px; }

@media (max-width: 1080px) {
  .auth-grid { grid-template-columns: 1fr; justify-items: center; }
  .auth-side { display: none; }
  .auth-card { width: 100%; max-width: 520px; }
  .acct-grid { grid-template-columns: 1fr; }
  .acct-nav { position: static; display: flex; overflow-x: auto; gap: 0; border-bottom: 1px solid var(--line); }
  .acct-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .acct-nav a:hover, .acct-nav a.is-on { border-bottom-color: var(--violet); }
}
@media (max-width: 720px) {
  .nav-signin { display: none; }
  .nav-me { padding: 3px; }
  .nav-me span:last-child { display: none; }
  .auth { padding: 100px 0 50px; }
  .auth-card { padding: 28px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .acct-hero { padding: 110px 0 32px; }
  .avatar-lg { width: 60px; height: 60px; }
  .prof-banner { height: 200px; }
  .prof-card { padding: 0 22px 28px; margin-top: -80px; }
  .avatar-xxl { width: 112px; height: 112px; }
  .prof-body { grid-template-columns: 1fr; }
  .prof-stats > div { padding-right: 18px; margin-right: 18px; }
}

/* Brand label inside the home h1 (reads as part of the heading for search engines) */
.hero-title .hero-brand { display: flex; width: fit-content; margin-bottom: 18px; line-height: 1; }

/* =========================================================
   Meet the team (/staff)
   ========================================================= */
.team { display: grid; gap: 64px; }
.team-sec { padding-top: 70px; }
.team-rank {
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font: 600 14px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--violet-3);
}
.team-rank::after { content: ""; flex: 1; height: 1px; background: var(--line); margin-left: 8px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member:first-child { border-color: var(--line-strong); }
@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.member { padding: 32px 24px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.member-av { width: 112px; height: 112px; font-size: 44px; margin-bottom: 8px; box-shadow: 0 0 0 4px var(--panel-solid), 0 0 0 6px var(--violet); }
.member:hover .member-av { box-shadow: 0 0 0 4px var(--panel-solid), 0 0 0 6px var(--violet-3); }
.member-name { font: 700 22px/1.15 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.member-since { color: var(--muted); font-size: 14px; }
.team-note { margin-top: 48px; color: #6E6A82; font-size: 14px; }
.team-error { color: var(--muted); }
.team-error a { color: var(--violet-3); }
.team-switch { padding-top: 18px; border-top: 1px solid var(--line); width: 100%; }
.team-switch a { color: var(--violet-3); }

/* Loading placeholders */
.member.is-skeleton { min-height: 260px; }
.member.is-skeleton .member-av { background: var(--line); box-shadow: none; }
.sk { display: block; background: var(--line); border-radius: 4px; animation: skel 1.4s ease-in-out infinite; }
.sk-name { width: 60%; height: 20px; }
.sk-badge { width: 40%; height: 22px; }
@keyframes skel { 50% { opacity: .45; } }

@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .member { padding: 24px 12px 20px; }
  .member-av { width: 84px; height: 84px; font-size: 34px; }
  .member-name { font-size: 17px; }
  .member .rank-badge { font-size: 10px; letter-spacing: .06em; padding: 5px 8px; text-align: center; }
}

/* =========================================================
   Partnership application (/partners#apply)
   ========================================================= */
.apply-sec { background: linear-gradient(180deg, transparent, rgba(110, 20, 255, .05) 50%, transparent); }
.apply-sec .split { align-items: start; }
.timeline-compact { margin-top: 32px; }
.timeline-compact li { padding-bottom: 24px; }
.timeline-compact b { font-size: 17px; }
.apply-fine { margin-top: 24px; color: var(--muted); font-size: 14px; max-width: 520px; }
.apply-card { padding: 34px; background: rgba(15, 12, 25, .9); display: grid; gap: 18px; }
.apply-card > [data-apply-state] { display: grid; gap: 16px; justify-items: start; }
.apply-card > [data-apply-state][hidden] { display: none; }
.apply-card .btn-block { justify-self: stretch; }
.apply-title { font: 700 24px/1.1 var(--display); text-transform: uppercase; }
.apply-alt { font-size: 14px; color: var(--muted); }
.apply-alt a { color: var(--violet-3); font-weight: 600; }
.apply-reqs { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); background: rgba(110, 20, 255, .08); }
.apply-reqs b { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet-3); }
.apply-reqs p { margin-top: 8px; color: #C9C5D9; font-size: 15px; white-space: pre-line; }
.apply-card .form { width: 100%; justify-items: stretch; }
.optional { font: 400 12px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.counter { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.apply-status { display: flex; align-items: center; gap: 14px; }
.apply-status > div { display: grid; }
.pill-bad { color: #FF7A7A; border-color: rgba(240, 82, 82, .45); }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .apply-card { padding: 24px 18px; }
  .cta-buttons .btn { width: 100%; }
}

/* =========================================================
   Partnership application page (/partners/apply)
   ========================================================= */
.pf-hero { position: relative; padding: 140px 0 50px; border-bottom: 1px solid var(--line); overflow: hidden; }
.pf-hero-inner { position: relative; }
.pf-head { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.pf-mark { width: 96px; height: auto; flex: none; }
.pf-title { font: 700 clamp(34px, 4.6vw, 56px)/1 var(--display); text-transform: uppercase; }
.pf-org { color: var(--violet-3); font: 600 15px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; margin-top: 10px; }
.pf-desc { color: var(--muted); font-size: 17px; max-width: 640px; margin-top: 22px; }
.pf-desc:empty { display: none; }
.pf-sec { padding-top: 56px; }
.pf-grid { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; align-items: start; justify-content: center; }
.pf-steps { position: sticky; top: 100px; display: grid; gap: 10px; }
.pf-steps-title { font: 600 12px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pf-progress { height: 6px; background: var(--line); overflow: hidden; }
.pf-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--violet-3)); transition: width .4s var(--ease); }
.pf-progress-text { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-steps ol { list-style: none; display: grid; gap: 2px; margin-top: 8px; }
.pf-steps button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; text-align: left;
  color: var(--muted); font-size: 14px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s, background .2s;
}
.pf-steps button:hover { color: var(--text); background: rgba(110, 20, 255, .08); }
.pf-step-num { flex: none; width: 22px; height: 22px; display: grid; place-items: center; font: 700 12px/1 var(--display); border: 1px solid var(--line-strong); }
.pf-steps button.is-done { color: var(--text); border-left-color: var(--success); }
.pf-steps button.is-done .pf-step-num { background: var(--success); border-color: var(--success); color: var(--bg); font-size: 0; }
.pf-steps button.is-done .pf-step-num::before { content: "✓"; font-size: 13px; }
.pf-saved { font-size: 12px; color: #6E6A82; margin-top: 6px; }
.pf-main { display: grid; gap: 22px; min-width: 0; }
.pf-gate { padding: 34px; display: grid; gap: 16px; justify-items: start; background: rgba(15, 12, 25, .9); }
.pf-gate-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-status-text { white-space: pre-line; }
.pf-form { display: grid; gap: 22px; }
.pf-reqs { padding: 22px 26px; border-color: var(--line-strong); background: rgba(110, 20, 255, .08); }
.pf-reqs b { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--violet-3); }
.pf-reqs p { margin-top: 10px; color: #C9C5D9; white-space: pre-line; }
.pf-section { padding: 0; background: rgba(15, 12, 25, .9); scroll-margin-top: 90px; }
.pf-section-head { display: flex; align-items: flex-start; gap: 16px; padding: 24px 30px; border-bottom: 1px solid var(--line); }
.pf-num { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font: 700 15px/1 var(--display); color: #fff; background: var(--violet);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.pf-section-head h2 { font: 700 22px/1.2 var(--display); text-transform: uppercase; padding-top: 4px; }
.pf-section-head p { margin-top: 6px; }
.pf-fields { padding: 26px 30px 30px; display: grid; gap: 24px; }
.pf-item[hidden] { display: none; }
.pf-label { font: 600 14px/1.35 var(--body); color: var(--text); letter-spacing: 0; text-transform: none; }
.pf-fields .field label.pf-label { font: 600 14px/1.35 var(--body); letter-spacing: 0; text-transform: none; color: var(--text); }
.req { color: #FF7A7A; }
.pf-fields select, .pf-duration select {
  width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--body); color: var(--text);
  background: rgba(10, 8, 18, .8); border: 1px solid var(--line-strong); border-radius: 0;
}
.pf-fields select:focus { outline: none; border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(110, 20, 255, .25); }
.pf-duration { display: grid; grid-template-columns: 1fr 160px; gap: 10px; }
.pf-paragraph { padding: 16px 18px; border-left: 2px solid var(--violet); background: rgba(255, 255, 255, .02); color: #C9C5D9; display: grid; gap: 10px; justify-items: start; }
.pf-heading { font: 700 18px/1.2 var(--display); text-transform: uppercase; }
.pf-divider { border: 0; border-top: 1px solid var(--line); }
.pf-choices { display: grid; gap: 8px; }
.pf-choice { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); cursor: pointer; color: #D6D3E4; transition: border-color .2s, background .2s; }
.pf-choice:hover { border-color: var(--line-strong); }
.pf-choice { position: relative; }
.pf-choice input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-box { flex: none; width: 18px; height: 18px; margin-top: 2px; border: 1px solid var(--line-strong); background: rgba(10, 8, 18, .8); display: grid; place-items: center; }
.pf-choice input[type="radio"] + .pf-box { border-radius: 50%; }
.pf-choice input:checked + .pf-box { background: var(--violet); border-color: var(--violet); }
.pf-choice input:checked + .pf-box::after { content: ""; width: 8px; height: 8px; background: #fff; }
.pf-choice input[type="checkbox"]:checked + .pf-box::after { width: 10px; height: 10px; background: #fff; clip-path: polygon(0 50%, 38% 100%, 100% 12%, 86% 0, 38% 70%, 14% 36%); }
.pf-choice input:checked ~ span:last-child { color: var(--text); }
.pf-choice:has(input:checked) { border-color: var(--violet); background: rgba(110, 20, 255, .08); }
.pf-choice input:focus-visible + .pf-box { outline: 2px solid var(--violet-3); outline-offset: 2px; }
.pf-toggle { align-items: center; }
.pf-toggle b { font-weight: 600; }
.pf-image { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-image-preview { width: 96px; height: 96px; display: grid; place-items: center; border: 1px dashed var(--line-strong); overflow: hidden; font-size: 12px; text-align: center; padding: 4px; }
.pf-image-preview img { width: 100%; height: 100%; object-fit: contain; }
.pf-image-actions { display: grid; gap: 8px; justify-items: start; }
.pf-submit { padding: 26px 30px; display: grid; gap: 14px; justify-items: start; background: rgba(15, 12, 25, .9); }
@media (max-width: 1080px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-steps { position: static; }
  .pf-steps ol { display: none; }
}
@media (max-width: 720px) {
  .pf-hero { padding: 110px 0 36px; }
  .pf-mark { width: 64px; }
  .pf-section-head, .pf-fields, .pf-submit, .pf-gate { padding-left: 18px; padding-right: 18px; }
  .pf-duration { grid-template-columns: 1fr 120px; }
}
/* Choice and switch labels are sentences: plain body text, not the small all-caps label style. */
.pf-fields .field label.pf-choice, .pf-fields .field label.pf-toggle { font: 400 15px/1.45 var(--body); letter-spacing: 0; text-transform: none; color: #D6D3E4; }
.pf-fields .field label.pf-toggle b { font-weight: 600; color: var(--text); }

.pf-preview { padding: 16px 20px; border-color: rgba(255, 179, 71, .45); background: rgba(255, 179, 71, .08); color: #FFD9A0; }
.pf-preview b { font: 700 13px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #FFB347; }

/* Partnership application: more field types */
.pf-spacer-sm { height: 8px; } .pf-spacer-md { height: 24px; } .pf-spacer-lg { height: 48px; }
.pf-rating { display: flex; gap: 6px; }
.pf-rating button { font-size: 28px; line-height: 1; color: var(--line-strong); padding: 2px; transition: color .15s, transform .15s; }
.pf-rating button:hover { transform: scale(1.12); }
.pf-rating button.is-on { color: #FFC24A; }
.pf-rating button:focus-visible { outline: 2px solid var(--violet-3); outline-offset: 2px; }
.pf-slider { display: flex; align-items: center; gap: 12px; }
.pf-slider input { flex: 1; accent-color: var(--violet); }
.pf-slider-value { font: 700 16px/1 var(--display); color: var(--violet-3); font-variant-numeric: tabular-nums; }
.pf-fields input[type="date"], .pf-fields input[type="time"], .pf-fields input[type="datetime-local"] { color-scheme: dark; }
.pf-file { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-file .muted { overflow-wrap: anywhere; }
.pf-sign-pad { width: 100%; max-width: 600px; height: auto; aspect-ratio: 600 / 180; background: rgba(10, 8, 18, .8); border: 1px dashed var(--line-strong); touch-action: none; cursor: crosshair; display: block; }
.pf-sign-actions { display: flex; justify-content: space-between; align-items: center; max-width: 600px; font-size: 13px; }
.pf-unknown { padding: 14px 16px; border: 1px dashed rgba(255, 179, 71, .5); }

/* Partnership Agreement (agreement field on /partners/apply) */
.ag { display: grid; gap: 14px; }
.ag-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ag-head .pf-label { margin: 0; }
.ag-version { font-family: var(--display); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-3); }
.ag-doc { max-height: 440px; overflow-y: auto; padding: 22px 24px; background: rgba(10, 8, 18, .8); border: 1px solid var(--line-strong); overscroll-behavior: contain; }
.ag-doc:focus-within { border-color: var(--violet-2); }
.ag-title { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: .02em; color: var(--text); margin: 0 0 14px; }
.ag-cover { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(110, 20, 255, .06); font-size: 14px; }
.ag-cover dt { color: var(--muted); }
.ag-cover dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.ag-cover dd.ag-blank { color: var(--muted); font-style: italic; opacity: .7; }
.ag-body { color: #D6D3E4; font-size: 14.5px; line-height: 1.65; outline: none; }
.ag-body > * { margin: 0 0 12px; }
.ag-body .ag-h { font-family: var(--display); color: var(--text); margin: 22px 0 8px; line-height: 1.3; text-wrap: balance; }
.ag-body h4.ag-h { font-size: 18px; }
.ag-body h5.ag-h { font-size: 16px; }
.ag-body h6.ag-h { font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-3); }
.ag-body ul, .ag-body ol { padding-left: 22px; }
.ag-body li { margin: 4px 0; }
.ag-body strong { color: var(--text); }
.ag-body a { color: var(--violet-3); }
.ag-body hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.ag-callout { padding: 12px 14px; border-left: 3px solid var(--violet); background: rgba(110, 20, 255, .08); }
.ag-callout b { display: block; font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 4px; }
.ag-callout p { margin: 0; }
.ag-table { overflow-x: auto; }
.ag-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ag-table th, .ag-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ag-table th { color: var(--text); background: rgba(110, 20, 255, .08); }
.ag-confirm { margin: 0; padding: 12px 14px; border: 1px dashed var(--line-strong); color: #D6D3E4; font-size: 14px; }
.ag-confirm strong { color: var(--text); overflow-wrap: anywhere; }
.ag .field { margin: 0; }
.ag-agree span:last-child { font-weight: 500; }
@media (max-width: 560px) {
  .ag-doc { padding: 16px; max-height: 380px; }
  .ag-cover { grid-template-columns: 1fr; gap: 2px; }
  .ag-cover dd { margin-bottom: 6px; }
}

/* ---------- Account → Partner card editor ---------- */
.partner-edit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.partner-edit-fields { display: grid; gap: 20px; min-width: 0; }
.partner-edit-preview { position: sticky; top: 96px; display: grid; gap: 10px; min-width: 0; }
.partner-edit-preview .partner { animation: none; }
.partner-logo-lg { width: 72px; height: 72px; font-size: 30px; }
.partner-edit select, .field select { width: 100%; padding: 13px 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line-strong); color: var(--text); font: inherit; }
@media (max-width: 900px) {
  .partner-edit { grid-template-columns: minmax(0, 1fr); }
  .partner-edit-preview { position: static; }
}

/* Email preferences */
.email-pref { padding-bottom: 22px; border-bottom: 1px solid var(--line); width: 100%; }

/* Partner card editor: the fields sit in a fieldset (disabled when staff lock the card) */
fieldset.partner-edit { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.partner-edit:disabled { opacity: .7; }

/* Partner pages: /partners/<slug>. Partners restyle anything inside .pp-scope with their own CSS.
   contain: paint keeps everything they draw inside their page area. */
.pp { position: relative; padding: 0 0 100px; contain: paint; isolation: isolate; --pp-accent: var(--violet); --pp-banner: none; }
.pp-banner { height: 320px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 35%, var(--bg)), var(--pp-banner), radial-gradient(120% 140% at 20% 0%, rgba(110, 20, 255, .45), transparent 60%), url("../assets/hero-field.jpg") center 35% / cover no-repeat;
  background-size: auto, cover, auto, cover; background-position: center, center, center, center 35%; background-repeat: no-repeat; }
.pp.has-banner .pp-banner { background: linear-gradient(180deg, transparent 45%, var(--bg)), var(--pp-banner) center / cover no-repeat; }
.pp-wrap { position: relative; }
.pp-banner > .wrap { padding-top: 100px; }
.pp-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(7, 6, 12, .6); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); }
.pp-back .ic { transform: rotate(180deg); width: 14px; height: 14px; }
.pp-back:hover { border-color: var(--violet-3); }
.pp-notice { margin: -90px 0 16px; position: relative; }
.pp-loading { display: grid; place-items: center; min-height: 200px; margin-top: -110px; }
.pp-card { margin-top: -110px; padding: 0 40px 36px; background: rgba(15, 12, 25, .94); display: grid; gap: 22px; }
.pp-notice:not([hidden]) + .pp-loading, .pp-notice:not([hidden]) ~ .pp-card { margin-top: 0; }
.pp-hero { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; }
.pp-logo.partner-logo { width: 128px; height: 128px; margin-top: -48px; font-size: 52px; border: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.pp-id { flex: 1; min-width: 220px; padding-top: 22px; }
.pp-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--violet-3); padding: 6px 10px; border: 1px solid var(--line-strong); background: rgba(110, 20, 255, .1); margin-bottom: 12px; }
.pp-badge .ic { width: 12px; height: 12px; }
.pp-name { font: 700 clamp(32px, 4.6vw, 58px)/1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.pp-cat.partner-cat { margin-top: 10px; }
.pp-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; align-self: center; }
.pp-desc { font-size: 19px; line-height: 1.6; color: #D6D3E4; max-width: 70ch; }
.pp-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.pp-label { font: 700 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--violet-3); margin-bottom: 14px; }
.pp-about-text { display: grid; gap: 14px; color: #D6D3E4; font-size: 16.5px; line-height: 1.7; overflow-wrap: anywhere; max-width: 68ch; }
.pp-links { display: grid; gap: 10px; }
.pp-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.pp-link:hover { border-color: var(--pp-accent); background: rgba(110, 20, 255, .1); transform: translateX(3px); }
.pp-link-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: rgba(110, 20, 255, .16); color: var(--violet-3); }
.pp-link-icon .ic { width: 20px; height: 20px; }
.pp-link-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pp-link-text b { font-weight: 600; overflow-wrap: anywhere; }
.pp-link-text small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-link > .ic { width: 16px; height: 16px; color: var(--muted); flex: none; }
.pp-foot { color: var(--muted); font-size: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-missing { margin-top: -60px; padding: 48px; text-align: center; display: grid; justify-items: center; gap: 10px; }
@media (max-width: 820px) {

  .pp-banner { height: 260px; }
  .pp-banner > .wrap { padding-top: 92px; }
  .pp-card { padding: 0 20px 26px; }
  .pp-logo.partner-logo { width: 96px; height: 96px; font-size: 40px; margin-top: -36px; }
  .pp-card, .pp-loading { margin-top: -70px; }
  .pp-hero { gap: 16px; }
  .pp-id { padding-top: 0; }
  .pp-body { grid-template-columns: 1fr; gap: 28px; }
  .pp-actions { width: 100%; }
  .pp-desc { font-size: 17px; }
}

/* Partner cards open their page (the whole card is the link) */
.partner { position: relative; }
.partner-open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.partner .partner-join { position: relative; z-index: 2; }
.partner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.partner-open { color: inherit; }
.partner-open:hover { color: var(--violet-3); }
.partner-actions { align-items: center; }

/* Partner tab: editing their page */
.partner-page-edit { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.pp-edit-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pp-edit-head > div { min-width: 0; flex: 1; }
.pp-edit-head a[data-partner-page-link] { overflow-wrap: anywhere; }
.pp-edit-banner { aspect-ratio: 16 / 5; max-width: 100%; border: 1px solid var(--line-strong); background: rgba(10, 8, 18, .8) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.pp-edit-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.pp-edit-banner-actions .field-hint { flex-basis: 100%; }
.pp-edit-links { display: grid; gap: 8px; margin-bottom: 10px; }
.pp-edit-links:empty { display: none; }
.pp-edit-link { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) 40px 40px; gap: 8px; }
.pp-edit-link input { min-width: 0; }
.pp-edit-link button { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 18px; cursor: pointer; }
.pp-edit-link button:hover:not(:disabled) { border-color: var(--violet-3); }
.pp-edit-link button:disabled { opacity: .35; cursor: default; }
.pp-edit-link .pp-edit-remove:hover { border-color: #ff6b6b; color: #ff8a8a; }
.pp-edit-css { border: 1px solid var(--line); padding: 0 16px; }
.pp-edit-css[open] { padding-bottom: 16px; }
.pp-edit-css summary { cursor: pointer; padding: 14px 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pp-edit-css textarea { width: 100%; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; white-space: pre; overflow-x: auto; }
.pp-edit-css-help { display: grid; gap: 8px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.pp-edit-css-help code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--violet-3); background: rgba(110, 20, 255, .1); padding: 1px 5px; }
.pp-edit-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-edit-css-help .btn-text { justify-self: start; }
@media (max-width: 560px) {
  .pp-edit-link { grid-template-columns: minmax(0, 1fr) 40px 40px; }
  .pp-edit-link input[type="url"] { grid-column: 1 / -1; grid-row: 2; }
}

/* Now streaming (/live) and the home page "Live now" strip */
.live-sec { padding-top: 70px; }
.live-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.live-count { display: inline-flex; align-items: center; gap: 12px; font: 700 clamp(20px, 2.4vw, 26px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.live-updated { color: var(--muted); font-size: 13px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF3B5C; flex: none; display: inline-block; animation: livePing 1.6s ease-out infinite; }
.live-dot.is-off, .live-count.is-off .live-dot { background: var(--muted); animation: none; }
@keyframes livePing { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .6); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 59, 92, 0); } }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.stream { display: flex; flex-direction: column; color: var(--text); overflow: hidden; transition: border-color .2s, transform .25s var(--ease); }
.stream:hover { border-color: rgba(255, 59, 92, .55); }
.stream-thumb { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 120% at 30% 0%, rgba(110, 20, 255, .45), transparent 60%), var(--bg-2); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.stream-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.stream:hover .stream-thumb img { transform: scale(1.04); }
.stream-thumb .stream-thumb-av { width: 84px; height: 84px; font-size: 34px; }
.stream-live { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; background: #E0213F; color: #fff; font: 700 11px/1 var(--display); letter-spacing: .16em; }
.stream-live .live-dot { width: 7px; height: 7px; background: #fff; animation: none; }
.stream-time { position: absolute; top: 12px; right: 12px; padding: 5px 8px; background: rgba(7, 6, 12, .78); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; }
.stream { position: relative; }
.stream-open { position: absolute; inset: 0; z-index: 1; }
.stream-open:focus-visible { outline: 2px solid var(--violet-3); outline-offset: -2px; }
.stream-platforms { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.stream-platform { padding: 6px 9px; font: 600 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: rgba(7, 6, 12, .82); color: #fff; border-left: 3px solid var(--violet); transition: background .2s; }
.stream-platform:hover, .stream-platform:focus-visible { background: rgba(7, 6, 12, .98); color: #fff; }
.stream-platform.is-tiktok { border-left-color: #25F4EE; }
.stream-platform.is-twitch { border-left-color: #9146FF; }
.stream-platform.is-youtube { border-left-color: #FF0033; }
.stream-platform.is-kick { border-left-color: #53FC18; }
.stream-body { display: flex; gap: 14px; padding: 16px 18px 20px; align-items: flex-start; min-width: 0; }
.stream-av { width: 44px; height: 44px; flex: none; font-size: 18px; box-shadow: 0 0 0 2px #E0213F; }
.stream-text { display: grid; gap: 3px; min-width: 0; }
.stream-name { font: 700 17px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; overflow-wrap: anywhere; }
.stream-title { color: #D6D3E4; font-size: 14.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.stream-game { color: var(--violet-3); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream.is-skeleton .stream-thumb { background: var(--line); }
.stream.is-skeleton .stream-body { flex-direction: column; }
.live-empty { display: flex; gap: 20px; align-items: center; padding: 28px 30px; }
.live-empty h3 { font: 700 20px/1.2 var(--display); text-transform: uppercase; margin-bottom: 4px; }
.live-empty-icon { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--line-strong); flex: none; }
.live-roster { margin-top: 60px; }
.live-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.live-person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); min-width: 0; }
.live-person span:not(.avatar) { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-person small { color: var(--muted); font-size: 12px; }
.live-person-av { width: 36px; height: 36px; flex: none; font-size: 15px; filter: grayscale(.6); opacity: .85; }
.live-join { margin-top: 60px; }
.join-team-sec { padding-top: 0; }
.join-team { padding: 26px 28px; border-color: var(--line-strong); background: rgba(110, 20, 255, .07); }
.join-team > div { min-width: 0; }
.join-team .ic { color: var(--violet-3); }
.join-team .btn { margin-top: 16px; max-width: 100%; }
@media (max-width: 560px) { .join-team { padding: 22px 20px; gap: 14px; } .join-team .btn { width: 100%; justify-content: center; padding-left: 16px; padding-right: 16px; letter-spacing: .1em; } }
.join-team .btn .ic { color: currentColor; margin-top: 0; width: 16px; height: 16px; }
.live-join .ic { color: var(--violet-3); }
.live-strip { padding: 56px 0 10px; }
.live-strip-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.live-strip-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (max-width: 560px) {
  .live-grid, .live-strip-row { grid-template-columns: 1fr; }
  .live-empty { flex-direction: column; align-items: flex-start; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* =========================================================
   Events: upcoming Discord events (/events) and "Next up" on the home page
   ========================================================= */
.ev-sec { padding-top: 70px; padding-bottom: 20px; }
.ev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 34px; }
.ev-head .sec-head { margin-bottom: 0; }
.ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.ev { position: relative; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.ev.is-live { border-color: rgba(255, 59, 92, .55); }
.ev-media { position: relative; aspect-ratio: 5 / 2; background: radial-gradient(120% 140% at 85% 0%, rgba(110, 20, 255, .55), transparent 60%), linear-gradient(135deg, var(--bg-2), #140c26); border-bottom: 1px solid var(--line); overflow: hidden; }
.ev-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-date { position: absolute; left: 16px; bottom: 16px; display: grid; justify-items: center; min-width: 58px; padding: 8px 10px 7px; background: rgba(7, 6, 12, .86); border: 1px solid var(--line-strong, rgba(169, 124, 255, .3)); color: #fff; }
.ev-date b { font: 700 26px/1 var(--display); }
.ev-date span { font: 600 11px/1.2 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--violet-3); }
.ev-live { left: auto; right: 12px; }
.ev-body { display: flex; flex-direction: column; align-items: stretch; gap: 12px; flex: 1; padding: 20px 22px 24px; min-width: 0; }
.ev-name { font: 700 22px/1.15 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; text-wrap: balance; }
.ev-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.ev-meta b { color: var(--violet-3); font-weight: 600; }
.ev.is-live .ev-meta b { color: #FF6B83; }
.ev-desc { color: #D6D3E4; font-size: 15px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.ev-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ev-more { align-self: flex-start; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 4px; }
.ev-strip { padding-top: 40px; }
.ev-strip .live-count .ic { width: 22px; height: 22px; color: var(--violet-3); }
.ev-strip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.ev.is-compact { flex-direction: row; }
.ev.is-compact .ev-media { aspect-ratio: auto; width: 140px; flex: none; border-bottom: 0; border-right: 1px solid var(--line); }
.ev.is-compact .ev-date { left: 50%; bottom: auto; top: 50%; transform: translate(-50%, -50%); }
.ev.is-compact .ev-live { top: 8px; right: 8px; padding: 4px 6px; font-size: 9px; }
.ev.is-compact .ev-body { padding: 16px 18px 18px; gap: 8px; }
.ev.is-compact .ev-name { font-size: 18px; }
.ev.is-compact .ev-meta { font-size: 13px; }
@media (max-width: 560px) {
  .ev.is-compact { flex-direction: column; }
  .ev.is-compact .ev-media { width: auto; aspect-ratio: 5 / 2; border-right: 0; border-bottom: 1px solid var(--line); }
  .ev.is-compact .ev-date { left: 16px; top: auto; bottom: 16px; transform: none; }
}

/* =========================================================
   Streamer pages (/streamers/<slug>) and "Recently live" on /live
   ========================================================= */
.sp .pp-banner { background: radial-gradient(90% 140% at 80% 0%, rgba(110, 20, 255, .42), transparent 62%), radial-gradient(60% 120% at 10% 10%, rgba(224, 33, 63, .16), transparent 60%), var(--bg-2); }
.sp.has-banner .pp-banner { background: linear-gradient(180deg, rgba(7, 6, 12, .82) 0%, rgba(7, 6, 12, .45) 45%, var(--bg)), var(--pp-banner) center / cover no-repeat; }
.sp-avatar { width: 128px; height: 128px; margin-top: -48px; font-size: 52px; flex: none; box-shadow: 0 0 0 5px var(--panel-solid, #0f0c19), 0 0 0 7px var(--violet), 0 18px 50px rgba(0, 0, 0, .5); }
.sp-avatar.is-live { box-shadow: 0 0 0 5px var(--panel-solid, #0f0c19), 0 0 0 7px #E0213F, 0 0 40px rgba(224, 33, 63, .45); }
.sp-status { margin-top: 10px; color: var(--muted); font-size: 15px; }
.sp.is-live .sp-status { color: #FF8397; font-weight: 600; }
.sp-watch { background: #E0213F; border-color: #E0213F; }
.sp-watch:hover { background: #F03252; }
.sp-watch .live-dot { width: 8px; height: 8px; background: #fff; animation: none; }
.sp-now { display: grid; }
.sp-now-row { display: grid; grid-template-columns: minmax(0, 560px); }
.sp-main { display: grid; gap: 34px; min-width: 0; align-content: start; }
.sp-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sp-label-row .pp-label { margin-bottom: 14px; }
.sp-slots, .sp-history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sp-slot { display: grid; grid-template-columns: 120px auto minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 12px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.sp-slot.is-next { border-color: var(--violet-3); background: rgba(110, 20, 255, .1); }
.sp-slot.is-on { border-color: rgba(255, 59, 92, .6); }
.sp-slot-day { font: 700 14px/1.2 var(--display); text-transform: uppercase; letter-spacing: .08em; }
.sp-slot-time { font-variant-numeric: tabular-nums; color: #D6D3E4; white-space: nowrap; }
.sp-slot-note { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sp-slot-flag { font: 600 11px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-3); grid-column: 4; }
.sp-slot.is-on .sp-slot-flag { color: #FF8397; }
.sp-past { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sp-past:last-child { border-bottom: 0; }
.sp-past-date { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.sp-past-text { display: grid; gap: 3px; min-width: 0; }
.sp-past-text b { font-weight: 600; overflow-wrap: anywhere; }
.sp-past-text small { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .sp-avatar { width: 96px; height: 96px; font-size: 40px; margin-top: -36px; }
  .sp-slot { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-slot-note { grid-column: 1 / -1; grid-row: 2; }
  .sp-slot-flag { grid-column: 2; grid-row: 1; }
  .sp-slot-time { grid-column: 1; grid-row: auto; }
  .sp-past { grid-template-columns: 1fr; gap: 4px; }
}

/* Live cards link the streamer's name to their page. */
.stream-profile { position: relative; z-index: 2; color: var(--text); justify-self: start; }
.stream-profile:hover, .stream-profile:focus-visible { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }
a.live-person { color: var(--text); transition: border-color .2s, background .2s; }
a.live-person:hover { border-color: var(--violet-3); background: rgba(110, 20, 255, .08); }
.live-recent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; margin-top: 18px; }
.live-recent { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); color: var(--text); min-width: 0; transition: border-color .2s, background .2s; }
a.live-recent:hover { border-color: var(--violet-3); background: rgba(110, 20, 255, .08); }
.live-recent .live-person-av { filter: none; opacity: 1; }
.live-recent-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.live-recent-text b { font-weight: 600; }
.live-recent-title { color: #D6D3E4; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-recent-text small, .live-recent-when { color: var(--muted); font-size: 12.5px; }
.live-recent-when { flex: none; text-align: right; max-width: 110px; }
@media (max-width: 480px) { .live-recent { flex-wrap: wrap; } .live-recent-when { width: 100%; max-width: none; text-align: left; padding-left: 50px; } }

/* Account: streamer schedule rows */
.sp-edit-slots { display: grid; gap: 8px; margin-bottom: 10px; }
.sp-edit-slots:empty { display: none; }
.sp-edit-slot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px) 84px minmax(0, 1.4fr) 40px; gap: 8px; }
.field .sp-edit-slot select, .field .sp-edit-slot input { padding-left: 12px; padding-right: 10px; }
.field select:focus { outline: none; border-color: var(--violet-3); box-shadow: 0 0 0 3px rgba(110, 20, 255, .25); }
.field select option { background: var(--panel-solid); color: var(--text); }
.sp-edit-open { margin-top: -6px; }
.sp-edit-slot > * { min-width: 0; }
.sp-edit-hours { display: flex; align-items: center; gap: 6px; }
.sp-edit-hours input { min-width: 0; width: 100%; }
.sp-edit-hours span { color: var(--muted); font-size: 13px; }
.sp-edit-slot button { border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .03); color: var(--text); font-size: 18px; cursor: pointer; }
.sp-edit-slot button:hover { border-color: #ff6b6b; color: #ff8a8a; }
@media (max-width: 720px) {
  .sp-edit-slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .field .sp-edit-slot input[type=time] { padding-right: 4px; }
  .sp-edit-slot select { grid-column: 1; }
  .sp-edit-slot input[type=time] { grid-column: 2; }
  .sp-edit-slot button { grid-column: 3; grid-row: 1; }
  .sp-edit-hours { grid-column: 1; }
  .sp-edit-slot input[type=text] { grid-column: 2 / 4; }
}
