:root {
  --bg: #0a0a0b; --panel: #131316; --panel2: #1a1a1f; --line: #26262c;
  --text: #f5f5f0; --muted: #a1a1aa; --volt: #d8ff3e; --volt-dim: #9dc41f;
  --red: #ff3b30; --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Helvetica Neue", Arial, sans-serif; }
a { color: var(--volt); text-decoration: none; }
h1, h2, .logo, .sec-title, .page-title { font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif; text-transform: uppercase; letter-spacing: .5px; }
.volt { color: var(--volt); }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 12px 24px; background: rgba(10,10,11,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { font-size: 26px; color: var(--text); font-weight: 900; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 32px; height: 32px; border-radius: 9px; display: block; }
.logo-full { height: 32px; width: auto; display: block; }
.logo-full.foot { height: 38px; }
.mainnav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.mainnav a { color: var(--text); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.mainnav a:hover { color: var(--volt); }
.livebadge { background: var(--red); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 12px; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.autharea { display: flex; gap: 8px; align-items: center; }
.autharea .who { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.autharea img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
.adminbadge { background: var(--volt); color: #000; font-size: 11px; font-weight: 900; border-radius: 6px; padding: 2px 6px; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 9px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 13px; display: inline-block; }
.btn:hover { border-color: var(--volt); color: var(--volt); }
.btn.volt { background: var(--volt); color: #000; border-color: var(--volt); }
.btn.volt:hover { background: #eaff70; color: #000; }
.btn.ghost { background: transparent; }
.btn.big { padding: 14px 28px; font-size: 15px; }
.btn.small { padding: 5px 12px; font-size: 12px; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { background: #2e2e34; padding: 72px 24px 56px; overflow: hidden; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.kicker { color: var(--volt); font-weight: 800; letter-spacing: 3px; font-size: 13px; }
.hero h1 { font-size: clamp(56px, 11vw, 128px); line-height: .92; margin: 10px 0 16px; }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 40px; flex-wrap: wrap; }
.stats-row { display: flex; gap: 36px; flex-wrap: wrap; }
.stat .num { font-size: 40px; font-weight: 900; color: var(--volt); font-family: "Arial Black", Arial, sans-serif; }
.stat .lbl { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 2px; }

/* marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--panel); }
.marquee-track { display: inline-block; padding: 10px 0; font-weight: 900; text-transform: uppercase; animation: scroll 30s linear infinite; }
.marquee-track span { margin: 0 22px; color: var(--muted); }
.marquee-track b { color: var(--volt); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sections & cards */
.section { max-width: 1100px; margin: 0 auto; padding: 36px 24px 8px; }
.sec-title { font-size: 28px; margin: 10px 0 18px; }
.page-title { font-size: 44px; margin: 0 0 8px; }
.page-sub { color: var(--muted); }
.view { max-width: 1100px; margin: 0 auto; padding: 28px 24px 48px; }
.view#view-home { max-width: none; padding: 0 0 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .18s ease, border-color .18s; transform-style: preserve-3d; will-change: transform; }
.card:hover { border-color: var(--volt-dim); }
.card h3 { margin: 6px 0 4px; font-size: 19px; }
.card p { color: var(--muted); margin: 4px 0; font-size: 14px; }
.card .banner { height: 92px; border-radius: 10px; background-size: cover; background-position: center; background-color: var(--panel2); margin: -18px -18px 12px; border-bottom: 1px solid var(--line); }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--panel2); border: 2px solid var(--line); }
.avatar.lg { width: 96px; height: 96px; }
.rowflex { display: flex; gap: 12px; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.elopill { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-weight: 800; }
.elopill b { color: var(--volt); }
.gmbadge { background: linear-gradient(90deg, #ffd23e, #d8ff3e); color: #000; font-weight: 900; font-size: 11px; border-radius: 6px; padding: 2px 7px; }
.stars { color: #ffd23e; letter-spacing: 2px; }
.stars button { background: none; border: none; color: #55555e; font-size: 22px; cursor: pointer; padding: 0 2px; }
.stars button.on, .stars button:hover { color: #ffd23e; }
.champion { background: linear-gradient(120deg, rgba(216,255,62,.14), transparent 55%), var(--panel); border: 1px solid var(--volt-dim); }
.live-dot { color: var(--red); animation: pulse 1.4s infinite; font-weight: 900; }
.discord-card { background: #5865F2; color: #fff; border-radius: 10px; padding: 14px; margin-top: 10px; }
.discord-card a { color: #fff; font-weight: 900; text-decoration: underline; }

/* tables */
table.rank { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.rank th, table.rank td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.rank th { color: var(--muted); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
table.rank tr:hover td { background: var(--panel2); }
.ranknum { font-weight: 900; color: var(--volt); width: 44px; }
.toolbar { display: flex; gap: 14px; align-items: end; margin: 14px 0; flex-wrap: wrap; }
.toolbar label { color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 5px; }
input, select, textarea { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--volt-dim); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 18px; }
.chip { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-weight: 700; font-size: 13px; }
.chip.on { background: var(--volt); color: #000; border-color: var(--volt); }
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.catgrid a { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); }
.catgrid a:hover { border-color: var(--volt); }
.catgrid .cname { font-weight: 900; font-size: 17px; text-transform: uppercase; }
.catgrid .cmeta { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* profile */
.profile-banner { height: 210px; border-radius: var(--radius); background-color: var(--panel2); border: 4px solid transparent; background-image: var(--bannerimg, linear-gradient(120deg, #1b1b22, #101014)), linear-gradient(100deg, var(--accent, #d8ff3e), var(--accent2, var(--accent, #d8ff3e))); background-size: cover, cover; background-position: center, center; background-origin: padding-box, border-box; background-clip: padding-box, border-box; box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.profile-head { display: flex; gap: 18px; align-items: end; margin-top: -48px; padding: 0 22px; }
.profile-head .avatar { width: 110px; height: 110px; border: 4px solid var(--bg); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.panel h3 { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.formgrid { display: grid; gap: 12px; max-width: 560px; }
.formgrid label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 13px; }
.demo-code { background: #2a2a12; border: 1px dashed var(--volt-dim); color: var(--volt); border-radius: 10px; padding: 12px; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: #ff6b64; font-weight: 700; }
.ok { color: var(--volt); font-weight: 700; }

/* modal & toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal[hidden] { display: none; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: min(440px, 92vw); position: relative; max-height: 90vh; overflow: auto; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--volt); color: #000; font-weight: 800; padding: 12px 22px; border-radius: 999px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.5); }

/* exam */
.exam-q { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 12px 0; }
.exam-q .topic { color: var(--volt); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.exam-q label { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; cursor: pointer; }
.exam-q label:hover { border-color: var(--volt-dim); }
.exam-q input { margin-right: 8px; }
.timer { position: sticky; top: 70px; background: var(--panel); border: 1px solid var(--volt-dim); border-radius: 999px; padding: 8px 18px; font-weight: 900; display: inline-block; z-index: 5; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 34px 24px; background: var(--panel); }
.foot-cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.foot-cols h4 { margin: 0 0 8px; text-transform: uppercase; }
.foot-cols a { color: var(--muted); }
.foot-cols a:hover { color: var(--volt); }
.foot-fine { max-width: 1100px; margin: 20px auto 0; color: var(--muted); font-size: 13px; }
.legal h2 { margin-top: 28px; }
.legal p { color: #d4d4d8; line-height: 1.65; max-width: 820px; }
.social-card { position: relative; overflow: hidden; isolation: isolate; }
.social-card .social-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: transform .45s ease, opacity .3s ease; }
.social-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,6,9,.9) 25%, rgba(6,6,9,.62) 62%, rgba(6,6,9,.38)); }
.social-card:hover .social-bg { transform: scale(1.06); opacity: .75; }
.social-card .social-big { font-size: 30px; font-weight: 900; text-transform: uppercase; }
.social-card .social-handle { color: var(--volt); font-weight: 800; font-size: 18px; }
.kv { display: flex; gap: 8px; flex-wrap: wrap; }
.scoregrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.scoregrid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* image upload fields */
.imgfield-block { display: flex; flex-direction: column; gap: 6px; }
.imgfield-block .flabel { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.imgfield { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.imgprev { max-width: 100%; max-height: 140px; border-radius: 10px; border: 1px solid var(--line, #2a2a2e); object-fit: cover; }
.imgprev.empty { display: inline-flex; align-items: center; justify-content: center; min-width: 140px; min-height: 64px; color: var(--muted); font-size: 12px; background: rgba(255,255,255,.03); padding: 10px; }
.imgbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.imgpick { cursor: pointer; }

/* profile button in header + messaging */
.profilebtn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.profilebtn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.avatar.sm { width: 34px; height: 34px; }
.msgrow { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 10px; text-decoration: none; color: var(--text); }
.msgrow:hover, .msgrow.active { background: rgba(255,255,255,.06); }
.msgrow .msgmeta { flex: 1; min-width: 0; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding: 8px 2px; margin-bottom: 12px; }
.bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; background: rgba(255,255,255,.07); align-self: flex-start; }
.bubble p { margin: 0 0 2px; white-space: pre-wrap; word-break: break-word; }
.bubble.mine { align-self: flex-end; background: rgba(216,255,62,.16); }

/* judge badge, profile customization, floor, search, pickers */
.judgebadge { background: transparent; color: var(--volt); border: 1px solid var(--volt); font-size: 11px; font-weight: 900; border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.profilewrap { position: relative; isolation: isolate; }
.profile-bg { position: absolute; inset: -8px -8px auto -8px; height: 560px; z-index: -1; background-size: cover; background-position: center 18%; opacity: .30; border-radius: 18px; -webkit-mask-image: linear-gradient(to bottom, black 52%, transparent 99%); mask-image: linear-gradient(to bottom, black 52%, transparent 99%); }
.profile-bg::after { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--accent, #d8ff3e) 16%, transparent); }
.profilewrap .panel { border-color: color-mix(in srgb, var(--accent, #d8ff3e) 32%, var(--line)); }
.profilewrap .profile-head .avatar { border-color: var(--accent, #d8ff3e); }
.profilewrap .elopill { border: 1px solid var(--accent, #d8ff3e); color: var(--accent, #d8ff3e); }
.hoverupload { position: relative; }
.avup { display: inline-block; }
.upoverlay { position: absolute; opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.75); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; z-index: 3; }
.hoverupload:hover .upoverlay { opacity: 1; }
.upoverlay.bannerup { right: 12px; bottom: 12px; }
.upoverlay.avoverlay { left: 50%; transform: translateX(-50%); bottom: 8px; white-space: nowrap; }
.previewbar { background: var(--volt); color: #000; font-weight: 700; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dangerzone { border-color: rgba(255,90,90,.55) !important; }
.posttext { font-size: 17px; white-space: pre-wrap; word-break: break-word; margin: 10px 0; }
.vidgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vidcard video, .vidframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; background: #000; display: block; }
.peoplesearch { position: relative; }
.peoplesearch input { width: 180px; }
.people-results { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; max-height: 340px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,.5); }
.prow { display: flex; gap: 10px; align-items: center; padding: 8px 10px; color: var(--text); text-decoration: none; }
.prow:hover { background: rgba(255,255,255,.06); }
.opp-results { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.opp-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-bottom: 6px; color: var(--text); cursor: pointer; font: inherit; }
.opp-row:hover { background: rgba(255,255,255,.09); }
.opp-name { flex: 1; }
input[type="color"] { width: 64px; height: 36px; padding: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }

/* ===== glass / Apple-style refinement + motion ===== */
:root {
  --panel: rgba(22, 22, 28, .66);
  --panel2: rgba(255, 255, 255, .055);
  --line: rgba(255, 255, 255, .10);
  --radius: 18px;
}
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(216, 255, 62, .07), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(66, 165, 245, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.topbar {
  background: rgba(10, 10, 13, .68);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.panel, .card, .modal {
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card { transition: transform .25s cubic-bezier(.22, .8, .3, 1), box-shadow .25s; }
.card:hover { box-shadow: 0 16px 44px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn { transition: transform .2s cubic-bezier(.22,.8,.3,1), box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease; letter-spacing: .02em; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.btn:not(:disabled):active { transform: translateY(0) scale(.96); }
.btn.volt { position: relative; overflow: hidden; background: linear-gradient(180deg, #eaff7d, var(--volt)); box-shadow: 0 4px 18px rgba(216, 255, 62, .22); }
.btn.volt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%); transform: translateX(-120%); transition: transform .5s ease; pointer-events: none; }
.btn.volt:not(:disabled):hover { box-shadow: 0 8px 26px rgba(216, 255, 62, .4); }
.btn.volt:not(:disabled):hover::after { transform: translateX(120%); }
.btn.ghost:not(:disabled):hover { border-color: rgba(216,255,62,.45); background: rgba(255,255,255,.08); }
input, select, textarea { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .11); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(216, 255, 62, .65); box-shadow: 0 0 0 3px rgba(216, 255, 62, .15); }
.nav a { position: relative; transition: color .15s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--volt); border-radius: 2px; transition: width .22s ease; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
@keyframes viewIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px) scale(.99); } to { opacity: 1; transform: none; } }
.view { animation: viewIn .38s cubic-bezier(.22, .8, .3, 1) both; }
.panel, .card { animation: riseIn .5s cubic-bezier(.22, .8, .3, 1) both; }
.cards > *:nth-child(2), #feedBox > *:nth-child(2), .threadlist > *:nth-child(2) { animation-delay: .05s; }
.cards > *:nth-child(3), #feedBox > *:nth-child(3), .threadlist > *:nth-child(3) { animation-delay: .1s; }
.cards > *:nth-child(4), #feedBox > *:nth-child(4), .threadlist > *:nth-child(4) { animation-delay: .15s; }
.cards > *:nth-child(5), #feedBox > *:nth-child(5) { animation-delay: .2s; }
.cards > *:nth-child(6), #feedBox > *:nth-child(6) { animation-delay: .25s; }
.hero { animation: riseIn .6s cubic-bezier(.22, .8, .3, 1) both; }
@keyframes heroGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.hero .volt { animation: heroGlow 3.2s ease-in-out infinite; }
.avatar { box-shadow: 0 2px 10px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15); }
.tablewrap { backdrop-filter: blur(10px); }

/* live dot (replaces the red-circle emoji) */
.livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; margin-right: 7px; vertical-align: 2px; animation: pulseDot 1.6s ease-out infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, .45); } 70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); } }
.live-dot { display: inline-flex; align-items: center; gap: 2px; }

/* profile: banner covers the whole profile, accent2 drives buttons */
.profile-bg { inset: 0; height: auto; opacity: .22; -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%); mask-image: linear-gradient(to bottom, black 72%, transparent 100%); }
.profilewrap .btn.volt { background: linear-gradient(180deg, color-mix(in srgb, var(--accent2, #d8ff3e) 55%, #ffffff), var(--accent2, #d8ff3e)); box-shadow: 0 4px 18px color-mix(in srgb, var(--accent2, #d8ff3e) 30%, transparent); color: #000; }
.profilewrap .elopill { border-color: var(--accent2, #d8ff3e); color: var(--accent2, #d8ff3e); }
.flabel { display: block; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; transition: transform .15s, border-color .15s; }
.swatch:hover { transform: scale(1.15); }
.swatch.sel { border-color: #fff; transform: scale(1.18); box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.colorblock { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: rgba(255, 255, 255, .03); }
.colorblock label.small { display: flex; align-items: center; gap: 8px; }

/* the floor */
.composer textarea { width: 100%; resize: vertical; font-size: 16px; }
.floortabs { display: flex; gap: 8px; margin: 4px 0 14px; }
.postcard { transition: transform .2s ease, box-shadow .2s ease; }
.postcard:hover { transform: translateY(-2px); }
.repostinner { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 8px; background: rgba(255, 255, 255, .03); }
.threadlist { border-left: 2px solid rgba(255, 255, 255, .08); padding-left: 14px; margin-left: 8px; }
.threadlist .postcard { margin-bottom: 12px; }

/* videos: vertical grid + tiktok-style reel */
.vidgrid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.vidcard { position: relative; cursor: pointer; transition: transform .2s ease; }
.vidcard:hover { transform: translateY(-3px) scale(1.02); }
.vidcard video, .vidcard img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.vidthumb-ph { width: 100%; aspect-ratio: 3/4; border-radius: 14px; background: linear-gradient(160deg, #23232c, #121218); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; }
.vidplay { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.vidcap { position: absolute; left: 8px; right: 8px; bottom: 6px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone { border: 1.5px dashed rgba(255, 255, 255, .28); border-radius: 16px; padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; background: rgba(255, 255, 255, .02); }
.dropzone:hover { border-color: rgba(255, 255, 255, .5); }
.dropzone.drag { border-color: var(--volt); background: rgba(216, 255, 62, .07); }
.vidpreview { margin-top: 12px; display: grid; gap: 8px; }
.vidpreview video { width: 100%; max-height: 320px; border-radius: 14px; background: #000; }
.reel { position: fixed; inset: 0; background: rgba(0, 0, 0, .94); backdrop-filter: blur(12px); z-index: 300; animation: viewIn .25s ease both; }
.reel-track { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; }
.reel-track::-webkit-scrollbar { display: none; }
.reel-item { height: 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; position: relative; }
.reel-item video { height: 100%; max-height: 100%; width: auto; max-width: min(94vw, 500px); aspect-ratio: 9/16; object-fit: contain; background: #000; }
.reel-frame { height: min(92vh, 860px); width: min(94vw, 500px); aspect-ratio: 9/16; border: 0; background: #000; }
.reel-cap { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: min(94vw, 500px); padding: 0 16px; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); pointer-events: none; }
.reel-cap .btn { pointer-events: auto; }
.reel-x { position: fixed; top: 16px; right: 18px; z-index: 301; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 20, 24, .7); color: #fff; font-size: 17px; cursor: pointer; backdrop-filter: blur(6px); }

/* profile slide animations */
@keyframes slideFromLeft { from { opacity: 0; transform: translateX(-38px); } to { opacity: 1; transform: none; } }
@keyframes slideFromRight { from { opacity: 0; transform: translateX(38px); } to { opacity: 1; transform: none; } }
@keyframes slideDownIn { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
.profilewrap .profile-banner { animation: slideDownIn .6s cubic-bezier(.22, .8, .3, 1) both; }
.profilewrap .profile-head { animation: slideDownIn .55s cubic-bezier(.22, .8, .3, 1) both; }
.profilewrap > .panel { animation: slideFromLeft .55s cubic-bezier(.22, .8, .3, 1) both; }
.profilewrap > .panel:nth-child(even) { animation-name: slideFromRight; }
.profilewrap > .panel:nth-child(3) { animation-delay: .05s; }
.profilewrap > .panel:nth-child(4) { animation-delay: .1s; }
.profilewrap > .panel:nth-child(5) { animation-delay: .15s; }
.profilewrap > .panel:nth-child(6) { animation-delay: .2s; }
.profilewrap > .panel:nth-child(7) { animation-delay: .25s; }
.profilewrap > .panel:nth-child(8) { animation-delay: .3s; }
.profilewrap > .panel:nth-child(9) { animation-delay: .35s; }
.profilewrap > .panel:nth-child(10) { animation-delay: .4s; }

/* now-playing card + music studio */
.np { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(216,255,62,.10), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 14px; }
.np { position: relative; isolation: isolate; animation: npFloat 4.6s ease-in-out infinite; padding: 16px; gap: 16px; }
@keyframes npFloat { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } 55% { transform: translateY(-2px); } 75% { transform: translateY(-3px); } }
.np::before { content: ""; position: absolute; inset: -2px; border-radius: 18px; z-index: -1; background: linear-gradient(120deg, var(--mglow1, #d8ff3e), var(--mglow2, #d8ff3e), rgba(255,255,255,.05), var(--mglow1, #d8ff3e)); background-size: 300% 300%; filter: blur(18px); opacity: .30; animation: npGlowFlow 7s ease-in-out infinite; transition: opacity .45s ease; }
.np.playing::before { opacity: .65; }
@keyframes npGlowFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.np-play { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #eaff7d, var(--volt)); color: #000; font-size: 19px; cursor: pointer; box-shadow: 0 6px 20px rgba(216,255,62,.30); transition: transform .15s ease, box-shadow .15s ease; }
.np-play:hover { transform: scale(1.07); box-shadow: 0 8px 26px rgba(216,255,62,.42); }
.np-meta { flex: 1; min-width: 0; }
.np-title { margin: 0; font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { margin: 2px 0 8px; color: var(--muted); font-size: 12px; }
.np-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.np-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--volt), #fff3a6, var(--volt)); background-size: 200% 100%; border-radius: 999px; transition: width .25s linear; }
.np.playing .np-fill, .miniplayer.playing .np-fill { animation: fillFlow 1.4s linear infinite; }
@keyframes fillFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.np.playing .np-play { box-shadow: 0 6px 26px rgba(216,255,62,.55), 0 0 36px rgba(216,255,62,.30); }
.np-time { margin: 5px 0 0; font-size: 11px; color: var(--muted); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: none; }
.eq span { width: 4px; height: 30%; background: linear-gradient(180deg, #fff3a6, var(--volt)); border-radius: 2px; opacity: .45; }
.eq.on span { box-shadow: 0 0 9px rgba(216,255,62,.55); }
.eq.on span { animation: eqBounce .7s ease-in-out infinite; opacity: 1; }
.eq.on span:nth-child(2) { animation-delay: .12s; }
.eq.on span:nth-child(3) { animation-delay: .24s; }
.eq.on span:nth-child(4) { animation-delay: .36s; }
@keyframes eqBounce { 0%, 100% { height: 22%; } 50% { height: 96%; } }
.songwork { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; background: rgba(255,255,255,.03); display: grid; gap: 8px; }
.trimbox input[type="range"] { width: 100%; accent-color: var(--volt); padding: 0; border: 0; background: transparent; box-shadow: none; }

/* image editor (crop / zoom / reposition) */
.imgedit { position: fixed; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); z-index: 320; display: flex; align-items: center; justify-content: center; padding: 16px; animation: viewIn .22s ease both; }
.imgedit-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; width: min(560px, 94vw); box-shadow: 0 24px 60px rgba(0,0,0,.5); max-height: 92vh; overflow-y: auto; }
.cropframe { position: relative; overflow: hidden; border-radius: 16px; background: #0a0a0d; border: 1px solid var(--line); margin: 0 auto; touch-action: none; cursor: grab; }
.cropframe:active { cursor: grabbing; }
.cropframe.avatar { width: min(320px, 80vw); height: min(320px, 80vw); }
.cropframe.banner { width: 100%; aspect-ratio: 3/1; }
.cropframe.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(255,255,255,.35); pointer-events: none; margin: 6px; }
.cropframe img { position: absolute; left: 50%; top: 50%; max-width: none; user-select: none; -webkit-user-drag: none; }
.imgedit input[type="range"] { accent-color: var(--volt); padding: 0; border: 0; background: transparent; box-shadow: none; }

/* mini player: spinning disk, bottom-right */
.miniplayer { isolation: isolate; position: fixed; right: 16px; bottom: 16px; z-index: 250; display: flex; align-items: center; gap: 12px; width: min(340px, calc(100vw - 32px)); background: rgba(16,16,20,.82); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 10px 12px; box-shadow: 0 18px 44px rgba(0,0,0,.5); animation: mpIn .45s cubic-bezier(.22,.8,.3,1) both, mpFloat 4.4s ease-in-out .6s infinite; }
@keyframes mpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mpIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.disk { flex: none; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #2a2a30 0 18%, #131316 19% 100%); border: 2px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.45), inset 0 0 0 5px rgba(255,255,255,.04); }
.disk img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.disk span { font-weight: 900; font-size: 20px; color: var(--volt); }
.disk.spin { animation: diskSpin 5s linear infinite; }
@keyframes diskSpin { to { transform: rotate(360deg); } }
.mp-meta { flex: 1; min-width: 0; }
.mp-title { margin: 0; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-sub { margin: 1px 0 6px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(180deg, #eaff7d, var(--volt)); color: #000; font-size: 14px; cursor: pointer; box-shadow: 0 4px 14px rgba(216,255,62,.3); }
.miniplayer.blocked .mp-btn { animation: pulseDot 1.6s ease-out infinite; }
.mp-x { flex: none; align-self: flex-start; background: none; border: 0; color: var(--muted); font-size: 13px; cursor: pointer; padding: 2px; }
.mp-x:hover { color: var(--text); }

/* now-playing cover art */
.np-cover { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.np-cover-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #26262e, #141419); font-weight: 900; font-size: 20px; color: var(--volt); }

/* bubble pickers (replaced dropdowns) */
.bubblepick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; max-height: 172px; overflow-y: auto; padding: 2px; }
.bubble { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .18s ease; backdrop-filter: blur(6px); }
.bubble:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.bubble.on { background: linear-gradient(180deg, #eaff7d, var(--volt)); color: #0c0d00; border-color: transparent; box-shadow: 0 4px 16px rgba(216,255,62,.35); font-weight: 800; }

/* notifications: header badge, inbox rows, bottom-right popups */
.notifbadge { display: inline-block; min-width: 20px; text-align: center; background: linear-gradient(180deg, #eaff7d, var(--volt)); color: #0c0d00; font-weight: 900; font-size: 11px; border-radius: 999px; padding: 1px 6px; margin-left: 2px; }
.notifrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.notifrow:last-child { border-bottom: 0; }
.notifmeta { flex: 1; min-width: 0; }
#notifPopups { position: fixed; right: 16px; bottom: 16px; z-index: 260; display: flex; flex-direction: column; gap: 10px; width: min(340px, calc(100vw - 32px)); }
#notifPopups.above-mini { bottom: 104px; }
.notifpop { display: flex; align-items: center; gap: 10px; background: rgba(16,16,20,.88); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.13); border-left: 3px solid var(--volt); border-radius: 14px; padding: 10px 12px; box-shadow: 0 16px 40px rgba(0,0,0,.5); cursor: pointer; animation: mpIn .4s cubic-bezier(.22,.8,.3,1) both; transition: opacity .3s ease, transform .3s ease; }
.notifpop.out { opacity: 0; transform: translateX(24px); }
.npop-meta { flex: 1; min-width: 0; }
.npop-title { margin: 0; font-weight: 800; font-size: 13px; }
.npop-sub { margin: 1px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* top debaters separation */
.topbadge { display: inline-block; background: linear-gradient(180deg, #eaff7d, var(--volt)); color: #0c0d00; font-size: 10px; font-weight: 900; letter-spacing: .06em; border-radius: 6px; padding: 2px 7px; vertical-align: 2px; }
.subhead { margin: 22px 0 10px; font-size: 15px; letter-spacing: .08em; }

/* DM refinement + friends tab */
.avatarwrap { position: relative; display: inline-flex; flex: none; }
.ondot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #5a5f6a; border: 2px solid #101319; }
.ondot.on { background: #57e389; }
.msgtime { flex: none; }
.thread { gap: 6px; padding: 12px 4px; }
.thread .bubble { padding: 9px 13px; border-radius: 18px; box-shadow: 0 2px 10px rgba(0,0,0,.25); animation: cardrise .25s ease both; }
.thread .bubble:not(.mine) { border-bottom-left-radius: 6px; background: rgba(255,255,255,.09); }
.thread .bubble.mine { border-bottom-right-radius: 6px; background: linear-gradient(180deg, rgba(216,255,62,.28), rgba(216,255,62,.16)); }
.thread .bubble .btime { display: block; text-align: right; font-size: 10px; color: var(--muted); margin-top: 3px; }
#sendMsgForm { position: sticky; bottom: 0; background: rgba(16,19,25,.6); backdrop-filter: blur(8px); padding: 8px 0 2px; }
#sendMsgForm input { border-radius: 999px; }
.reportcard { border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.04); }

/* defined black scrollbar */
* { scrollbar-width: thin; scrollbar-color: #2c2f36 #060607; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #060607; border-left: 1px solid rgba(255,255,255,.07); }
::-webkit-scrollbar-thumb { background: #26282e; border-radius: 8px; border: 2px solid #060607; }
::-webkit-scrollbar-thumb:hover { background: var(--volt); }
::-webkit-scrollbar-corner { background: #060607; }

/* signup acknowledgment rows */
.checkrow { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.checkrow input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--volt); flex: none; }
.checkrow a { color: var(--volt); }

/* scrollable tables + mobile rankings */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
html, body { overflow-x: clip; }
@media (max-width: 640px) {
  .rank th, .rank td { padding: 7px 6px; font-size: 13px; }
  .rank th:nth-child(3), .rank td:nth-child(3), .rank th:nth-child(6), .rank td:nth-child(6) { display: none; }
  .page-title { font-size: 30px; }
}

/* DM gif + pickers */
.dm-gif { display: block; max-width: 190px; width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 12px; }
.pickerpanel { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); border-radius: 14px; padding: 10px; margin-bottom: 10px; }
.pickergrid { display: grid; gap: 6px; margin-top: 8px; }
.pickergrid.emoji { grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); }
.pickergrid.gifs { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); max-height: 264px; overflow-y: auto; }
.emojibtn { font-size: 21px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 5px 0; cursor: pointer; }
.emojibtn:hover { background: rgba(216,255,62,.2); }
.gifbtn { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 4px; cursor: pointer; }
.gifbtn img { width: 100%; height: 64px; object-fit: contain; display: block; }
.gifbtn:hover { border-color: var(--volt); }

/* profile showcase: one big piece, image with text over it */
.showcase { position: relative; border-radius: 18px; overflow: hidden; min-height: 240px; background: linear-gradient(135deg, rgba(216,255,62,.25), rgba(80,80,120,.35)); background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.showcase-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.72) 100%); }
.showcase-inner { position: relative; padding: 26px; max-width: 640px; }
.showcase-title { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 36px; line-height: 1.12; margin: 0 0 8px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.55); }
.showcase-text { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.92); text-shadow: 0 1px 10px rgba(0,0,0,.6); white-space: pre-wrap; }

/* admin gif library */
.giflibitem { display: flex; flex-direction: column; gap: 5px; align-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 6px; text-align: center; }
.giflibitem img { width: 100%; height: 64px; object-fit: contain; display: block; }

/* clickable cards + profile popup */
.card.clickable { cursor: pointer; }
.profilepop { padding: 0; overflow: hidden; width: min(480px, 94vw); }
.profilepop #profilePopBody { padding: 0 22px 22px; }
.popbanner { height: 110px; background-size: cover; background-position: center; margin: 0 -22px 0; }
.popbanner-empty { background: linear-gradient(120deg, rgba(216,255,62,.35), rgba(90,90,140,.4)); }
.pophead { display: flex; gap: 14px; align-items: center; margin-top: -26px; }
.pophead .avatar.lg { border: 3px solid var(--panel); }

/* big judge scoring screen */
.judgepop { width: min(620px, 95vw); border: 1px solid rgba(216,255,62,.45); box-shadow: 0 0 0 1px rgba(216,255,62,.15), 0 24px 80px rgba(0,0,0,.6); }
.judgepop-kicker { color: var(--volt); font-weight: 800; letter-spacing: 3px; font-size: 12px; margin: 0 0 6px; }
.judgepop-title { font-size: 30px; margin: 0 0 10px; }
.judgepop-row { border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.judgewait { border-color: rgba(216,255,62,.4); }

/* active nav tab */
.mainnav a { position: relative; }
.mainnav a.active { color: var(--volt); }
.mainnav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--volt); box-shadow: 0 0 10px rgba(216,255,62,.8); }

/* homepage motion: aurora hero, gradient title, champion shine, countdown chips */
.hero { position: relative; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; pointer-events: none; }
.aurora.a1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(216,255,62,.5), transparent 65%); top: -140px; left: -80px; animation: auroraFloat 11s ease-in-out infinite alternate; }
.aurora.a2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(90,110,255,.45), transparent 65%); bottom: -160px; right: -60px; animation: auroraFloat 13s ease-in-out infinite alternate-reverse; }
.aurora.a3 { width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,90,200,.3), transparent 65%); top: 30%; left: 55%; animation: auroraFloat 9s ease-in-out infinite alternate; }
@keyframes auroraFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, 34px) scale(1.14); } }
.hero h1, .hero-title { background: linear-gradient(90deg, #fff, var(--volt), #fff, #9db8ff, #fff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: titleSheen 7s linear infinite; }
@keyframes titleSheen { from { background-position: 0% 0; } to { background-position: 250% 0; } }
.card.champion { position: relative; overflow: hidden; animation: champFloat 5.5s ease-in-out infinite alternate; }
.card.champion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.13) 48%, transparent 62%); transform: translateX(-120%); animation: champShine 4.2s ease-in-out infinite; pointer-events: none; }
@keyframes champShine { 0%, 55% { transform: translateX(-120%); } 90%, 100% { transform: translateX(120%); } }
@keyframes champFloat { from { transform: translateY(0); } to { transform: translateY(-5px); } }
.cdchip { display: inline-block; background: rgba(216,255,62,.14); border: 1px solid rgba(216,255,62,.4); color: var(--volt); border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: 13px; }

/* typography: text pops, nothing skinny */
body { font-weight: 500; line-height: 1.55; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.015em; }
.sec-title { font-size: 27px; font-weight: 900; letter-spacing: .4px; }
.card h3, .panel h3 { font-size: 19px; }
p, li, td { font-weight: 500; }
th { font-weight: 800; }
label { font-weight: 600; }
input, textarea, select, button { font-weight: 600; }
.muted { color: #b6b6be; }
.small { font-weight: 500; }
.hero-sub { color: #d7d7dc; font-weight: 500; font-size: 20px; }
.npop-sub, .notifmeta { font-weight: 500; }
.scoregrid label { font-weight: 700; }

/* homepage debaters slideshow — endless loop, pauses on hover */
.slideshow { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.slidetrack { display: flex; width: max-content; animation: slideLoop linear infinite; }
.slideshow:hover .slidetrack, .slideshow:active .slidetrack { animation-play-state: paused; }
.slidetrack .card { flex: 0 0 300px; margin-right: 18px; }
@keyframes slideLoop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .slidetrack { animation: none; } }

/* reports: unseen marker */
.unseenpill { background: #ffb02e; color: #000; font-size: 10px; font-weight: 900; border-radius: 999px; padding: 2px 8px; letter-spacing: 1px; vertical-align: middle; }

/* slideshow: stretches wide across the screen, every card the same size */

/* Floor post media */
.postimg { width: 100%; max-height: 430px; object-fit: cover; border-radius: 14px; margin-top: 10px; display: block; }
.postimg.gifimg { width: auto; max-width: 300px; max-height: 300px; object-fit: contain; }
.attachbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.attachprev img { height: 62px; border-radius: 10px; vertical-align: middle; margin-right: 8px; }

#followModal { z-index: 120; }
.countlink { background: none; border: none; color: var(--text); font: inherit; cursor: pointer; padding: 0; }
.countlink:hover { color: var(--volt); text-decoration: underline; }
.followlist { max-height: 55vh; overflow-y: auto; }
.followlist .prow { border-radius: 10px; }

.likecount { font-weight: 700; padding: 0 2px; align-self: center; }
.mentionbox { border: 1px solid var(--line); border-radius: 12px; background: rgba(18,18,22,.97); margin-top: 6px; overflow: hidden; }
.mentionbox[hidden] { display: none; }
.mentionrow { width: 100%; background: none; border: none; cursor: pointer; color: var(--text); font: inherit; text-align: left; }
.mentionrow:hover { background: rgba(255,255,255,.06); }

.miniplayer::before { content: ""; position: absolute; inset: -1px; border-radius: 19px; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--mglow1, #d8ff3e) 55%, transparent), rgba(255,255,255,.05), color-mix(in srgb, var(--mglow2, #d8ff3e) 55%, transparent)); background-size: 300% 300%; filter: blur(16px); opacity: 0; transition: opacity .45s ease; }
.miniplayer.playing::before { opacity: .85; animation: npGlowFlow 5s ease-in-out infinite; }
.disk.spin { box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 0 20px rgba(216,255,62,.45), inset 0 0 0 5px rgba(255,255,255,.04); }
@media (prefers-reduced-motion: reduce) { .np::before, .miniplayer.playing::before, .np.playing .np-fill, .miniplayer.playing .np-fill { animation: none; } .np, .miniplayer { animation: none; } }

.eyedropbtn { margin: 4px 0 8px; }
.eyedropbar { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; align-items: center; gap: 14px; width: min(620px, calc(100vw - 24px)); background: rgba(14,14,18,.88); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(216,255,62,.18); font-size: 13px; pointer-events: none; animation: viewIn .2s ease both; }
.eyedropbar button { pointer-events: auto; }
.eyedropchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.eyedropchip i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); display: inline-block; }
body.eyedropping, body.eyedropping * { cursor: crosshair !important; }

/* Spotify-style seek slider (profile intro + floating player) */
.np-seekrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.np-t { font-size: 11px; color: var(--muted); min-width: 27px; font-variant-numeric: tabular-nums; }
.np-t-r { text-align: right; }
.np-seek { -webkit-appearance: none; appearance: none; flex: 1; height: 5px; border: 0; border-radius: 999px; padding: 0; background: linear-gradient(90deg, var(--volt) var(--p, 0%), rgba(255,255,255,.14) var(--p, 0%)); box-shadow: none; outline: none; cursor: pointer; }
.np-seek:focus { box-shadow: none; border: 0; }
.np-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 6px rgba(0,0,0,.55); opacity: 0; transition: opacity .15s ease; }
.np-seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 6px rgba(0,0,0,.55); opacity: 0; transition: opacity .15s ease; }
.np-seek:hover::-webkit-slider-thumb, .np-seek:active::-webkit-slider-thumb, .np-seek:focus-visible::-webkit-slider-thumb { opacity: 1; }
.np-seek:hover::-moz-range-thumb, .np-seek:active::-moz-range-thumb, .np-seek:focus-visible::-moz-range-thumb { opacity: 1; }
.np-seek.slim { height: 4px; }
.np-ctrl { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: var(--text); font-size: 16px; cursor: pointer; transition: transform .18s cubic-bezier(.22,.8,.3,1), background .18s ease, border-color .18s ease; }
.np-ctrl:hover { transform: scale(1.08); background: rgba(255,255,255,.1); border-color: rgba(216,255,62,.5); }
.np-ctrl:active { transform: scale(.94); }
.np-play { transition: transform .18s cubic-bezier(.22,.8,.3,1), box-shadow .18s ease; }
.np-play:active { transform: scale(.94); }
.mp-btn { transition: transform .18s cubic-bezier(.22,.8,.3,1), box-shadow .18s ease; }
.mp-btn:hover { transform: scale(1.07); }
.mp-btn:active { transform: scale(.95); }
.np-title { font-size: 17px; }

/* full-page profile background: the banner, blurred + tinted with the owner's palette */
.profile-bg-page { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.profile-bg-page .bgimg { position: absolute; inset: -48px; background-size: cover; background-position: center 18%; filter: blur(var(--bgblur, 9.6px)) saturate(1.15); }
.profile-bg-page::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--bgc1, #d8ff3e) 17%, transparent), transparent 46%, color-mix(in srgb, var(--bgc2, #d8ff3e) 15%, transparent)); }
.profile-bg-page::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,8,.34), rgba(5,5,8,.62) 55%, rgba(5,5,8,.86)); }

.xhair-stage { height: 110px; border-radius: 14px; border: 1px dashed rgba(255,255,255,.18); background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.05), rgba(0,0,0,.25)), repeating-conic-gradient(rgba(255,255,255,.03) 0% 25%, transparent 0% 50%) 0 0/22px 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }

/* long unbroken names wrap inside their frame instead of spilling out */
.card .rowflex > div { min-width: 0; }
.card h3, .card .rowflex p { overflow-wrap: anywhere; }
.profilewrap h1, #profileModal h3, .prow b, .prow span, td b { overflow-wrap: anywhere; }

/* category icons: watermark art behind each topic card */
.catgrid a { position: relative; overflow: hidden; }
.catgrid .cname, .catgrid .cmeta { position: relative; z-index: 1; }
.caticon { position: absolute; right: -12px; bottom: -16px; width: 96px; height: 96px; color: var(--volt); opacity: .13; pointer-events: none; transform: rotate(-6deg); transition: opacity .25s ease, transform .25s ease; }
.caticon svg { width: 100%; height: 100%; display: block; }
.catgrid a:hover .caticon { opacity: .24; transform: rotate(0deg) scale(1.06); }
/* Floor reaction buttons: white thumbs + click pop */
.reactbtn { display: inline-flex; align-items: center; gap: 7px; }
.reactbtn svg { width: 16px; height: 16px; flex: none; }
.reactbtn.volt svg { fill: currentColor; }
@keyframes thumbPop { 0% { transform: scale(1) rotate(0deg); } 35% { transform: scale(1.5) rotate(-12deg); } 60% { transform: scale(.9) rotate(4deg); } 100% { transform: scale(1) rotate(0deg); } }
@keyframes repostPop { 0% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(180deg) scale(1.3); } 100% { transform: rotate(360deg) scale(1); } }
.reactbtn svg.pop { animation: thumbPop .38s cubic-bezier(.22,.8,.3,1); }
.reactbtn[data-repost] svg.pop { animation-name: repostPop; animation-duration: .45s; }
@media (prefers-reduced-motion: reduce) { .reactbtn svg.pop { animation: none; } .caticon { transition: none; } }

/* person chips with avatars (social page: friends + requests) */
.personchip { display: inline-flex; align-items: center; gap: 8px; color: var(--text); vertical-align: middle; }
.personchip-tx { min-width: 0; overflow-wrap: anywhere; }

/* simple Upload buttons instead of native file inputs */
.hidden { display: none !important; }
label.uploadpick { display: inline-flex; align-items: center; }
.formgrid label.uploadpick { display: inline-flex; flex-direction: row; align-items: center; color: var(--text); font-size: 13px; }
.upname { margin-left: 8px; }

/* bubble rows in the followers / following / friends popup */
.followlist { display: flex; flex-direction: column; gap: 8px; }
.followlist .prow { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09); border-radius: 999px; padding: 7px 16px 7px 7px; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.followlist .prow:hover { background: rgba(255,255,255,.08); border-color: rgba(216,255,62,.45); transform: translateY(-1px); }

/* quote posts, featured posts, favorites picker rows */
.quotecard { margin-top: 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quotecard:hover { border-color: rgba(216,255,62,.5); background: rgba(255,255,255,.05); }
.quotecard .qtext, .quotechip .qtext { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.quotecard .qimg { margin-top: 8px; width: 100%; max-height: 140px; object-fit: cover; border-radius: 10px; display: block; }
.quotechip { display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(216,255,62,.4); background: rgba(216,255,62,.06); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.featuredtag { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .08em; color: #000; background: var(--volt); border-radius: 6px; padding: 2px 8px; margin: 0 0 8px; }
.followlist .prow.postrow { border-radius: 18px; }
.postrow .snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 13px; }
/* Messages tab now sits with the right-side cluster, next to Friends */
#msgLink[hidden] { display: none !important; }
#msgLink { text-decoration: none; }
#msgLink.active { border-color: rgba(216,255,62,.6); color: var(--volt); }

/* homepage background slideshow — the great debaters */
#view-home { position: relative; }
#homeBg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #050506; }
#homeBg .homebg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; opacity: 0; transition: opacity 1.8s ease; filter: grayscale(.15) contrast(1.05) brightness(.86); }
#homeBg .homebg-img.on { opacity: .92; }
#homeBg .homebg-shade { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 0%, transparent 32%, rgba(5,5,6,.26) 78%, rgba(5,5,6,.6)); }
#view-home > *:not(#homeBg):not(#homeBgChip):not(#homeBgBlur) { position: relative; z-index: 1; }
#homeBgBlur { position: fixed; left: 0; right: 0; bottom: 0; height: 54vh; z-index: 0; pointer-events: none; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(to top, #000 26%, transparent 96%); mask-image: linear-gradient(to top, #000 26%, transparent 96%); }
#homeBgChip { position: fixed; left: 18px; bottom: 18px; z-index: 30; display: flex; align-items: baseline; gap: 9px; background: rgba(10,10,14,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 15px; pointer-events: none; }
#homeBgChip[hidden] { display: none !important; }
#homeBgChip b { font-size: 12px; letter-spacing: .14em; }
#homeBgChip span { font-size: 10px; letter-spacing: .18em; color: var(--volt); font-weight: 800; }

/* category pages: one themed backdrop per topic */
#view-category { position: relative; }
#catBg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #050506; }
#catBg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; filter: grayscale(.4) contrast(1.05) brightness(.6); opacity: .45; }
#view-category > *:not(#catBg) { position: relative; z-index: 1; }
/* hero headline letter transitions — a different style on every swap */
#heroTitle.letters { background: none; animation: none; -webkit-text-fill-color: initial; }
#heroTitle .hword { display: inline-block; white-space: nowrap; }
#heroTitle .hl { display: inline-block; background: linear-gradient(90deg, #fff, var(--volt), #fff, #9db8ff, #fff); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: titleSheen 7s linear infinite; }
#heroTitle.fx-type .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlType .14s linear both; }
#heroTitle.fx-rise .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlRise .5s cubic-bezier(.22,.9,.3,1) both; }
#heroTitle.fx-blur .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlBlur .55s ease both; }
#heroTitle.fx-drop .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlDrop .55s cubic-bezier(.2,.9,.3,1.35) both; }
#heroTitle.fx-slide .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlSlide .5s cubic-bezier(.22,.9,.3,1) both; }
#heroTitle.fx-pop .hl { opacity: 0; animation: titleSheen 7s linear infinite, hlPop .5s cubic-bezier(.2,.9,.3,1.4) both; }
@keyframes hlType { from { opacity: 0; } to { opacity: 1; } }
@keyframes hlRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes hlBlur { from { opacity: 0; filter: blur(12px); } to { opacity: 1; filter: blur(0); } }
@keyframes hlDrop { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes hlSlide { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes hlPop { from { opacity: 0; transform: scale(.35); } to { opacity: 1; transform: scale(1); } }
/* rankings: philosopher & poet quotes in rows behind the table, sliding in from both sides */
#view-rankings { position: relative; }
#rankFx { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 104px 0 42px; }
#view-rankings > *:not(#rankFx) { position: relative; z-index: 1; }
.quoteband { position: relative; overflow: hidden; opacity: .15; flex: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.quoteband .qtrack { display: flex; width: max-content; animation: qslide linear infinite; }
.quoteband.rev .qtrack { animation-direction: reverse; }
#rankFx .qset { display: flex; }
#rankFx span.q { white-space: nowrap; font-size: 15px; font-weight: 600; letter-spacing: .03em; padding: 0 30px; color: #ececf2; }
#rankFx span.q b { color: var(--volt); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
@keyframes qslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .quoteband .qtrack { animation: none; } }

/* hero background brand lockups, crossfading behind the headline */
.hero-logos { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-logos::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(1320px, 126%); height: 440px; transform: translate(-50%, -57%); background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.38), transparent 70%); }
.hero-logo-bg { position: absolute; left: 50%; top: 50%; width: min(1260px, 126%); transform: translate(-50%, -57%); opacity: 0; transition: opacity 1.6s ease; filter: drop-shadow(0 0 3px rgba(255,255,255,.9)) drop-shadow(0 0 15px rgba(255,255,255,.38)) drop-shadow(0 0 52px rgba(216,255,62,.35)); }
.hero-logo-bg.on { opacity: .68; animation: heroLogoDrift 15s ease-in-out infinite alternate; }
@keyframes heroLogoDrift { from { transform: translate(-50%, -57%) scale(1); } to { transform: translate(-50%, -57%) scale(1.045); } }
.hero-inner { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-logo-bg.on { animation: none; } }

/* hero fully flat grey: no tint blobs, no shade pool (owner request) */
.hero .aurora { display: none; }
.hero-logos::before { background: none; }

/* display name effects: shine / glow / rainbow / wave */
@keyframes nameShine { from { background-position: 180% 0; } to { background-position: -80% 0; } }
@keyframes nameGlow { from { filter: drop-shadow(0 0 3px var(--nglow, #d8ff3e)); } to { filter: drop-shadow(0 0 13px var(--nglow, #d8ff3e)); } }
@keyframes nameHue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }
.nwl { display: inline-block; animation: nameWave 1.5s ease-in-out infinite; }
@keyframes nameWave { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .pname, .nwl { animation: none !important; } }

/* hover-to-customize: edit pills reveal when you hover the profile head / panel */
.editdot-static { opacity: 0; transition: opacity .15s; background: rgba(0,0,0,.78); color: #fff; border: 1px solid rgba(255,255,255,.25); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; margin-top: 6px; font-family: inherit; }
.profile-head:hover .editdot-static, .panel:hover .editdot-static, .editdot-static:focus-visible { opacity: 1; }
@media (hover: none) { .editdot-static { opacity: .92; } }
.upoverlay.lookbtn { left: 12px; bottom: 12px; border: 0; font-family: inherit; }
