/* VSMP "Pixel Navy" theme. Loaded after style.css, so it restyles every page: deep navy, bright blue and purple,
   pixel-style labels, square blocky cards with chunky borders and hard shadows. */
:root {
  --bg: #050A1E; --panel: #0A1236; --panel2: #0E1A4D; --line: #233A9A; --line2: #3A5CE0;
  --text: #FFF6E6; --muted: #A9B6E0; --white: #fff; --pink: #FF8DA1;
  --blue: #4DB5FF; --blue2: #2F6FED; --purple: #A64CFF; --purple2: #7A22D6; --gold: #F5B83D; --green: #4ADE80; --orange: #F2A65A;
  --heading: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pixel: "Nunito", system-ui, sans-serif; /* small labels: bold and clear. The pixel font (--display) is kept for the logo, hero and big numbers. */
  --display: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
  --tri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M0 0h26L0 26z' fill='%23ffffff' fill-opacity=%27.022%27/%3E%3C/svg%3E");
}
body { background: var(--bg); font-family: var(--body); font-weight: 600; line-height: 1.7; }

/* ---- type ---- */
h2, .head h2 { font-family: var(--heading); font-weight: 400; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; font-size: clamp(2.2rem, 5.4vw, 4rem); color: var(--text); }
h2 .t1, h2 .t2 { display: block; } h2 .t2 { color: var(--blue); }
h3 { font-family: var(--body); font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.kicker, .label, .tag-top, .note { font-family: var(--pixel); text-transform: uppercase; letter-spacing: .14em; }
.kicker { font-size: 11px; color: #D5DDF7; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 11px; height: 11px; background: var(--blue); box-shadow: 3px 3px 0 #1d3fb0; flex: none; }
.note { color: var(--purple); text-shadow: none; font-size: 12px; }
.sub, .lead { font-weight: 600; color: #B9C5EA; }
.sub strong, .lead strong { color: var(--text); font-weight: 900; }
.side-label { display: none; }
.head { display: block; margin-bottom: 52px; } .head > div { max-width: 64rem; }
.section { max-width: 75rem; margin: 0 auto; padding: 100px 24px; }
@media (max-width: 700px) { .section { padding: 64px 20px; } }
.muted, .faint { color: var(--muted); }

/* ---- top bar ---- */
.nav { background: rgba(5,10,30,.94); border-bottom: 2px solid #14246B; backdrop-filter: blur(10px); }
.nav-inner { max-width: 75rem; height: 68px; }
.logo { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .05em; text-shadow: 3px 3px 0 rgba(0,0,0,.5); }
.logo span { color: var(--blue); }
.nav-links { align-items: center; gap: 2px; }
.nav-links a { font-family: var(--pixel); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text); padding: 8px 11px; }
.nav-links a:hover { color: var(--blue); background: transparent; }
.nav-links a.nav-join, .nav-links .cart-btn { margin-left: 8px; }
.nav-links a.nav-join { background: var(--blue2); color: #fff; padding: 12px 16px; box-shadow: 4px 4px 0 #14246B; transition: transform .3s ease-out, box-shadow .3s ease-out, background-color .3s ease-out; }
.nav-links a.nav-join:hover { background: #4A86FF; color: #fff; transform: translate(-1px, -1px); box-shadow: 5px 5px 0 #14246B; }
.cart-btn { background: #08103A; border: 2px solid var(--line); color: var(--text); font-family: var(--pixel); font-size: 11px; letter-spacing: .12em; padding: 10px 12px; display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; }
.cart-btn:hover { border-color: var(--blue); }
.cart-btn #cart-count { position: static; min-width: 22px; height: 22px; background: var(--blue); color: #050A1E; font: 700 12px var(--pixel); display: inline-flex; align-items: center; justify-content: center; }
.dc-nav { font-size: 10px; } .admin-pill { background: var(--blue); color: #050A1E; font-family: var(--pixel); box-shadow: 3px 3px 0 #1d3fb0; }
.announce { background: #08103A; border-bottom: 2px solid #14246B; box-shadow: none; } .announce-tag { border-color: var(--purple); color: var(--purple); background: rgba(166,76,255,.12); } .announce-link { color: var(--blue); }

/* ---- buttons ---- */
.btn-primary { background: var(--blue2); color: #fff; font-family: var(--pixel); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; padding: 18px 28px; border: 0; box-shadow: 5px 5px 0 #14246B; transition: transform .3s ease-out, box-shadow .3s ease-out, background-color .3s ease-out; }
.btn-primary:hover { background: #4A86FF; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #14246B; }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #14246B; }
.btn-primary.inline { font-size: 13px; }
.btn-ghost { display: inline-flex; align-items: center; gap: 10px; background: #08103A; color: var(--text); border: 2px solid #233A9A; font-family: var(--pixel); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 18px 26px; box-shadow: 5px 5px 0 rgba(0,0,0,.4); transition: border-color .3s ease-out, transform .3s ease-out; }
.btn-ghost:hover { border-color: var(--blue); transform: translate(-1px, -1px); }
.ghost, .mini { border-width: 2px; } .mini { font-family: var(--pixel); }
.mini.on, .mini:hover { border-color: var(--blue); color: var(--blue); }
.pill { background: #08103A; border: 2px solid #233A9A; font-family: var(--pixel); font-size: 11px; letter-spacing: .1em; box-shadow: 4px 4px 0 rgba(0,0,0,.4); }
.dot.on, .chat-dot.on { background: var(--green); box-shadow: 0 0 10px rgba(74,222,128,.8); }
.particle { background: var(--blue); }

/* ---- hero ---- */
.hero { display: block; min-height: auto; max-width: 75rem; margin: 0 auto; padding: 150px 24px 90px; text-align: left; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 40rem); align-items: center; min-height: 430px; }
.hero { position: relative; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none; }
.hero::before { background: #0A1245 url(hero-bg.jpg) center top / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, rgba(8,12,48,.92) 0%, rgba(8,12,48,.78) 30%, rgba(8,12,48,.12) 58%, rgba(8,12,48,0) 74%), linear-gradient(180deg, rgba(8,12,48,.55) 0%, rgba(8,12,48,0) 22%, rgba(8,12,48,0) 78%, rgba(8,12,48,.95) 100%); }
html, body { overflow-x: clip; }
@media (max-width: 900px) { .hero { padding-top: 120px; } .hero::before { background-position: 85% center; } .hero::after { background: linear-gradient(180deg, rgba(8,12,48,.6), rgba(8,12,48,.82)); } }
.js .hero > * { opacity: 1; animation: none; }
.js .hero-copy > *, .js .hero-art { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .2s; } .js .hero-copy > :nth-child(2) { animation-delay: .35s; } .js .hero-copy > :nth-child(3) { animation-delay: .6s; }
.js .hero-copy > :nth-child(4) { animation-delay: .8s; } .js .hero-copy > :nth-child(5) { animation-delay: .95s; } .js .hero-copy > :nth-child(6) { animation-delay: 1.05s; } .js .hero-art { animation-delay: .5s; }
.season { font-family: var(--pixel); font-size: 12px; letter-spacing: .16em; color: #D5DDF7; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; text-transform: uppercase; }
.season .sq { width: 12px; height: 12px; background: var(--blue); box-shadow: 3px 3px 0 #1d3fb0; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: .02em; filter: none; text-shadow: 5px 5px 0 rgba(0,0,0,.55); }
.hero h1 .t1, .hero h1 .t2 { display: block; } .hero h1 .t1 { color: #FFF6E6; } .hero h1 .t2 { color: var(--blue); }
.hero .lead { margin: 26px 0 0; max-width: 34rem; font-size: 1.12rem; }
.hero-actions { margin-top: 34px; flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: 18px; }
.btn-primary.cip { text-align: left; padding: 15px 24px; }
.cip-top { display: block; font-size: 10px; letter-spacing: .22em; } .cip-ip { display: block; margin-top: 9px; font-size: 15px; letter-spacing: .16em; word-break: break-all; }
.hero .pill { margin-top: 22px; display: inline-flex; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-family: var(--pixel); font-size: 10px; letter-spacing: .16em; color: #C4D0F2; }
.hero-badges li { display: flex; align-items: center; gap: 9px; } .hero-badges li::before { content: ""; width: 10px; height: 10px; background: var(--c, var(--blue)); } .hero-badges li:nth-child(2)::before { --c: var(--green); } .hero-badges li:nth-child(3)::before { --c: var(--gold); }
.hero-art { position: relative; }
.art-frame { position: relative; border: 3px solid var(--line2); box-shadow: 10px 10px 0 rgba(0,0,0,.5), 0 0 60px rgba(47,111,237,.25); background: #08103A; animation: bob 7s ease-in-out infinite; }
.art-frame::after { content: ""; position: absolute; top: -3px; right: -3px; width: 70px; height: 14px; background: linear-gradient(var(--blue), var(--blue)) right 0 top 0 / 40px 14px no-repeat, linear-gradient(#27428F, #27428F) right 40px top 0 / 30px 14px no-repeat; }
.art-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---- cards: square, chunky border, hard shadow, faint triangle texture, coloured corner tab ---- */
.card { background-color: var(--panel); background-image: var(--tri); border: 2px solid var(--line); box-shadow: 6px 6px 0 rgba(0,0,0,.42); backdrop-filter: none; position: relative; }
.card.grad { background-image: linear-gradient(135deg, rgba(166,76,255,.18), transparent), var(--tri); }
.card p { color: #B9C5EA; font-weight: 600; }
.stats .card::after, .about-grid .grid .card::after, .store-sec .card::after, #allies-grid .card::after, .grid.gallery .card::after, .grid.three > .card:not(.rank)::after {
  content: ""; position: absolute; top: -2px; right: -2px; width: 34px; height: 16px; pointer-events: none;
  background: linear-gradient(var(--c, var(--blue)), var(--c, var(--blue))) right 0 top 0 / 20px 9px no-repeat, linear-gradient(rgba(255,255,255,.14), rgba(255,255,255,.14)) right 14px top 9px / 20px 7px no-repeat;
}
.stats .card:nth-child(2), .about-grid .grid .card:nth-child(2), .store-sec .card:nth-child(4n+2) { --c: var(--purple); }
.stats .card:nth-child(3), .about-grid .grid .card:nth-child(3), .store-sec .card:nth-child(4n+3) { --c: var(--green); }
.about-grid .grid .card:nth-child(4), .store-sec .card:nth-child(4n+4) { --c: var(--orange); }
.card:hover { border-color: var(--line2); }
.rank:hover, .shot:hover, .ally:hover .card, .about-grid .card:hover { box-shadow: 8px 8px 0 rgba(0,0,0,.45); transform: translate(-2px, -2px); }

/* ---- status cards ---- */
.stats { gap: 22px; margin-bottom: 0; }
.stats .card { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; align-items: center; padding: 22px; --c: var(--blue); }
.stats .card::before { content: ""; grid-row: 1 / 3; width: 56px; height: 56px; border: 3px solid var(--c); background: linear-gradient(var(--c), var(--c)) center / 22px 22px no-repeat, rgba(0,0,0,.18); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.stats .label { font-size: 11px; color: var(--muted); margin: 0; grid-column: 2; grid-row: 2; }
.stats .val { grid-column: 2; grid-row: 1; font-family: var(--heading); font-weight: 400; font-size: clamp(1.6rem, 3.6vw, 2.4rem); color: var(--c); margin-top: 0; line-height: 1.1; }

/* ---- store ---- */
.rank { --c: var(--blue); border-top: 4px solid var(--c); padding: 22px; }
.rank:nth-child(2) { --c: var(--gold); } .rank.featured { --c: var(--purple); background-image: linear-gradient(180deg, rgba(166,76,255,.2), transparent 55%), var(--tri); border-color: var(--purple2); box-shadow: 6px 6px 0 rgba(0,0,0,.42), 0 0 40px rgba(166,76,255,.18); }
.rank-top { margin-bottom: 18px; }
.rank-ico { border-radius: 0; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.25); box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.rank h3 { font-family: var(--heading); font-weight: 400; font-size: 28px; letter-spacing: 0; }
.tag-top { background: var(--purple); color: #fff; border: 0; padding: 6px 10px; font-size: 9px; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.rank .price { background: rgba(0,0,0,.28); border: 2px solid #1b2c78; padding: 14px 16px; font-family: var(--heading); font-size: 30px; color: var(--text); margin-bottom: 14px; }
.rank ul { display: grid; gap: 8px; }
.rank li { background: #08103A; border: 2px solid #1b2c78; padding: 10px 14px; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text); display: flex; align-items: center; gap: 12px; }
.rank li::before { content: ""; width: 9px; height: 9px; background: var(--c); flex: none; }
.rank a { background: var(--c); color: #050A1E; border: 0; font-family: var(--pixel); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 16px; box-shadow: 4px 4px 0 rgba(0,0,0,.5); transition: transform .3s ease-out, box-shadow .3s ease-out, filter .3s ease-out; }
.rank a:hover { background: var(--c); color: #050A1E; filter: brightness(1.12); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,.5); }
.rank.featured a { color: #fff; }
.store-sec { margin-top: 64px; }
.store-sec-head h3 { font-family: var(--heading); font-weight: 400; font-size: 30px; letter-spacing: 0; }
.store-sec-head p { font-family: var(--pixel); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.item-name { font-family: var(--body); font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; color: var(--text); padding-top: 14px; }
.item-foot { margin-top: 18px; }
.item-foot .white { font-family: var(--heading); font-size: 20px; color: var(--text); }
.item-foot .mini { background: var(--purple2); border-color: var(--purple2); color: #fff; padding: 11px 16px; box-shadow: 3px 3px 0 rgba(0,0,0,.45); }
.item-foot .mini:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---- other sections ---- */
.img-card { border-width: 3px; border-color: var(--line2); }
.ico { width: 46px; height: 46px; border: 2px solid var(--line2); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 20px; background: rgba(0,0,0,.2); }
.ally .tag, .store-sec-head p { color: var(--purple); } .ally .tag { font-family: var(--pixel); }
.shot { border-color: var(--line); } .vote { border-width: 2px; font-family: var(--pixel); font-size: 11px; }
.vote.on, .vote:hover { border-color: var(--blue); color: var(--blue); box-shadow: none; }
.footer { background: #030820; border-top: 2px solid #14246B; padding: 70px 24px 80px; } .footer-inner, .footer > p { max-width: 75rem; margin-left: auto; margin-right: auto; }
.footer-nav a { font-family: var(--pixel); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; } .footer-nav a:hover { color: var(--blue); }
.status-badge { background: #08103A; border: 2px solid var(--line); font-family: var(--pixel); font-size: 10px; letter-spacing: .1em; box-shadow: 4px 4px 0 rgba(0,0,0,.45); }

/* ---- forms ---- */
input, textarea, select { background: #050A1E; border: 2px solid #1b2c78; font-family: var(--body); font-weight: 600; color: var(--text); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); }
.upload { border: 2px dashed var(--line2); background: #050A1E; } .upload-btn { background: var(--blue2); color: #fff; font-family: var(--pixel); }
.check, .field span { font-weight: 700; }
.bar span { background: var(--blue); box-shadow: 0 0 10px rgba(77,181,255,.6); }

/* ---- chat, cart, admin, login ---- */
.chat-fab { background: var(--blue2); color: #fff; font-family: var(--pixel); font-size: 12px; letter-spacing: .14em; box-shadow: 5px 5px 0 #14246B; } .chat-fab:hover { box-shadow: 6px 6px 0 #14246B; }
.chat { background: rgba(7,14,50,.97); border: 2px solid var(--line2); box-shadow: 8px 8px 0 rgba(0,0,0,.5); backdrop-filter: none; }
.chat-title, .chat-gate-copy { font-family: var(--heading); font-weight: 400; letter-spacing: .01em; }
.chat-tab, .chat-glabel, .chat-ch { font-family: var(--pixel); } .chat-tab { font-size: 10px; } .chat-tab.on { color: var(--blue); border-bottom-color: var(--blue); }
.chat-ch { font-size: 10px; letter-spacing: .06em; } .chat-ch.on, .chat-ch:hover { color: var(--blue); border-color: var(--line2); }
.chat-send { background: var(--blue2); color: #fff; font-family: var(--pixel); font-size: 11px; }
.react.mine { border-color: var(--blue); background: rgba(77,181,255,.16); } .react.mine .mono { color: var(--blue); }
.cart { background: #070e32; border-left: 2px solid var(--line2); } .cart-head h3 { font-family: var(--heading); font-weight: 400; }
.auth-card { box-shadow: 8px 8px 0 rgba(0,0,0,.5); } .linkbtn:hover { color: var(--blue); }
.term { background: #030820; border: 2px solid var(--line); } .term-prompt { color: var(--green); }
.toast { background: #08103A; border: 2px solid var(--blue); box-shadow: 5px 5px 0 rgba(0,0,0,.5); }
.skin-btns button { font-family: var(--pixel); font-size: 10px; border-width: 2px; } .skin-btns button.on, .skin-btns button:hover { border-color: var(--blue); color: var(--blue); }
.admin-row, .stack { color: var(--text); }
:focus-visible { outline: 2px solid var(--blue); box-shadow: 0 0 0 4px rgba(77,181,255,.18); }
::selection { background: var(--blue2); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-track { background: #030820; } ::-webkit-scrollbar-thumb { background: #1b2c78; border: 2px solid #030820; } ::-webkit-scrollbar-thumb:hover { background: var(--line2); }

@media (prefers-reduced-motion: reduce) { .art-frame { animation: none; } .js .hero-copy > *, .js .hero-art { opacity: 1; animation: none; } }

/* ---- fixes found by looking at screenshots ---- */
.nav-links { flex-wrap: nowrap; }
.nav-links a, .cart-btn, .nav-links button { white-space: nowrap; }
.nav-links a { font-size: 10px; letter-spacing: .1em; padding: 8px 8px; }
.nav-links a.nav-join { padding: 11px 14px; margin-left: 6px; }
.cart-btn { padding: 9px 10px; font-size: 10px; letter-spacing: .1em; }
.cart-btn span { position: static; min-width: 0; height: auto; background: none; color: inherit; display: inline; font: inherit; } /* the old badge style was hitting the Discord name chip */
.cart-btn #cart-count { min-width: 22px; height: 22px; background: var(--blue); color: #050A1E; display: inline-flex; font: 700 12px var(--pixel); }
.cart-btn.dc-nav { max-width: 11rem; overflow: hidden; text-overflow: ellipsis; } .dc-av { width: 18px; height: 18px; }
@media (max-width: 1100px) { .nav-links a { display: none; } .nav-links a.nav-join { display: inline-block; } }
.rank ul { flex: 1; align-content: start; grid-auto-rows: min-content; }
.rank a { margin-top: 18px; text-align: center; }

/* ---- legibility: the small labels use a clearer pixel font (the old one made C look like O) ---- */
.nav-links a, .kicker, .label, .tag-top, .note, .btn-primary, .btn-ghost, .cart-btn, .pill, .season, .hero-badges, .store-sec-head p, .rank a, .mini, .ghost, .chat-tab, .chat-glabel, .chat-ch, .chat-send, .chat-fab, .skin-btns button, .status-badge, .footer-nav a, .upload-btn, .vote, .admin-pill, .announce, .announce-tag, .ally .tag, .cip-top, .cip-ip { font-weight: 600; }
.nav-links a { font-size: 12px; letter-spacing: .08em; padding: 8px 9px; } .cart-btn, .nav-links a.nav-join { font-size: 12px; letter-spacing: .08em; }
.kicker, .season { font-size: 13px; letter-spacing: .1em; } .label, .stats .label { font-size: 12px; letter-spacing: .1em; }
.btn-primary, .btn-ghost { font-size: 15px; letter-spacing: .1em; } .cip-top { font-size: 12px; letter-spacing: .14em; } .cip-ip { font-size: 17px; letter-spacing: .1em; }
.hero-badges, .pill, .store-sec-head p, .note, .announce { font-size: 12px; letter-spacing: .08em; }
.chat-tab, .chat-ch, .chat-send, .chat-fab, .mini, .skin-btns button, .status-badge, .footer-nav a, .vote { font-size: 12px; letter-spacing: .06em; }
.chat { background: #070e32; }
.rank a { font-size: 15px; letter-spacing: .1em; }

/* ---- leaderboard button in the top bar ---- */
.nav-links a.nav-lb { border: 2px solid var(--line2); background: #08103A; color: var(--blue); padding: 9px 12px; margin-left: 8px; box-shadow: 3px 3px 0 rgba(0,0,0,.4); transition: border-color .3s ease-out, transform .3s ease-out, color .3s ease-out; }
.nav-links a.nav-lb:hover, .nav-links a.nav-lb.on { border-color: var(--blue); color: #fff; transform: translate(-1px, -1px); }
.nav-links a.nav-lb::before { content: ""; display: inline-block; width: 9px; height: 9px; background: var(--gold); margin-right: 8px; box-shadow: 2px 2px 0 rgba(0,0,0,.4); }
@media (max-width: 1100px) { .nav-links a.nav-lb { display: inline-block; } }

/* ---- leaderboard page ---- */
.lb-main { position: relative; z-index: 1; max-width: 75rem; margin: 0 auto; padding: 120px 24px 90px; }
.lb-title { font-family: var(--heading); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.02; margin: 10px 0 18px; } .lb-title span { color: var(--blue); }
.lb-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.lb-chip { display: inline-flex; align-items: center; gap: 8px; background: #08103A; border: 2px solid #1b2c78; padding: 8px 14px; font-family: var(--pixel); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); box-shadow: 3px 3px 0 rgba(0,0,0,.4); } .lb-chip b { color: var(--text); }
.lb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .lb-grid { grid-template-columns: 1fr; } }
.lb-table { padding: 0; }
.lb-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 2px solid #14246B; }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 6px; } .lb-tabs button, .lb-metric button { background: transparent; border: 2px solid #1b2c78; color: var(--muted); font-family: var(--pixel); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; cursor: pointer; transition: border-color .3s ease-out, color .3s ease-out; }
.lb-tabs button:hover, .lb-metric button:hover { color: var(--text); } .lb-tabs button.on, .lb-metric button.on { border-color: var(--blue); color: var(--blue); }
#lb-search { width: min(15rem, 100%); padding: 10px 12px; font-size: 14px; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1.6fr) 1fr 0.8fr 0.7fr 0.9fr; gap: 10px; align-items: center; padding: 11px 16px; width: 100%; text-align: left; }
.lb-head-row { font-family: var(--pixel); font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid #14246B; padding-top: 14px; padding-bottom: 12px; }
.lb-data { background: transparent; border: 0; border-bottom: 1px solid rgba(80,120,255,.14); border-left: 4px solid transparent; color: var(--text); font: 700 14px var(--body); cursor: pointer; transition: background-color .3s ease-out, border-color .3s ease-out; }
.lb-data:hover { background: rgba(47,111,237,.1); } .lb-data.sel { background: rgba(47,111,237,.18); border-left-color: var(--blue); }
.lb-data.top1 .rk { color: var(--gold); } .lb-data.top2 .rk { color: #D5DDF7; } .lb-data.top3 .rk { color: #E0955B; }
.lb-row .r { text-align: right; font-variant-numeric: tabular-nums; } .lb-row .rk { font-family: var(--heading); color: var(--muted); }
.lb-row .pl { display: flex; align-items: center; gap: 12px; min-width: 0; } .lb-row .av { width: 32px; height: 32px;  background: #0A1236; border: 2px solid #1b2c78; flex: none; }
.lb-row .nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; } .lb-row .nm b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lb-row .nm small { font: 600 11px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-row .bal { font-weight: 900; } .lb-row .up, .lb-big .up, .lb-big .up { color: var(--green); } .lb-row .down, .lb-big .down { color: #FF6B7D; }
.lb-more { margin: 16px; width: calc(100% - 32px); text-align: center; }
@media (max-width: 640px) { .hide-sm { display: none; } .lb-row { grid-template-columns: 36px minmax(0, 1.6fr) 1fr 0.7fr; } }
.lb-side { display: grid; gap: 24px; }
.lb-who { display: flex; align-items: center; gap: 14px; } .lb-who h2 { font-family: var(--heading); font-weight: 400; font-size: 24px; text-transform: none; letter-spacing: 0; }
.lb-av {  border: 3px solid var(--line2); background: #0A1236; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.lb-rank { margin-left: auto; font-family: var(--heading); font-size: 22px; color: var(--gold); }
.lb-big { display: flex; align-items: baseline; gap: 14px; margin: 18px 0 14px; font-family: var(--heading); font-size: clamp(1.8rem, 4vw, 2.6rem); } .lb-big em { font: 800 14px var(--body); font-style: normal; }
.lb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; } .lb-stats div { background: #08103A; border: 2px solid #1b2c78; padding: 8px 10px; } .lb-stats span { display: block; font: 600 11px var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .lb-stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.lb-metric { display: flex; gap: 6px; margin-bottom: 8px; } .lb-chart { position: relative; } .lb-chart canvas { width: 100%; display: block; } .lb-chart p { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 20px; pointer-events: none; }
.pulse, .clan { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(80,120,255,.14); } .pulse:last-child, .clan:last-child { border-bottom: 0; }
.pulse span { color: var(--muted); font-weight: 700; } .pulse b { margin-left: auto; font-family: var(--heading); font-weight: 400; font-size: 18px; }
.clan .ci { width: 26px; height: 26px; border: 2px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--pixel); color: var(--blue); } .clan small { color: var(--muted); } .clan em { margin-left: auto; font-style: normal; font-weight: 800; color: var(--blue); }

/* ---- small labels: bold Nunito, so every letter (especially C) is clear ---- */
.nav-links a, .kicker, .label, .tag-top, .note, .btn-primary, .btn-ghost, .cart-btn, .pill, .season, .hero-badges, .store-sec-head p, .rank a, .mini, .ghost, .chat-tab, .chat-glabel, .chat-ch, .chat-send, .chat-fab, .skin-btns button, .status-badge, .footer-nav a, .upload-btn, .vote, .admin-pill, .announce, .announce-tag, .ally .tag, .cip-top, .cip-ip, .lb-chip, .lb-tabs button, .lb-metric button, .lb-head-row, .lb-stats span, .lb-row .nm small { font-weight: 900; }
.nav-links a { font-size: 12px; letter-spacing: .12em; } .cart-btn, .nav-links a.nav-join { letter-spacing: .12em; }
.kicker, .season { letter-spacing: .16em; } .hero-badges, .pill, .store-sec-head p, .note, .announce { letter-spacing: .12em; }
.btn-primary, .btn-ghost, .rank a { letter-spacing: .14em; } .cip-top { letter-spacing: .2em; } .cip-ip { font-size: 16px; letter-spacing: .12em; }
.chat-tab, .chat-ch, .chat-send, .chat-fab, .mini, .skin-btns button, .status-badge, .footer-nav a, .vote { letter-spacing: .1em; }

/* ---- phones: the top bar wraps onto two rows instead of pushing the page sideways ---- */
@media (max-width: 700px) {
  .nav-inner { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
  .nav-links { flex-wrap: wrap; gap: 6px; justify-content: flex-start; width: 100%; }
  .nav-links a.nav-lb, .nav-links a.nav-join, .cart-btn { margin-left: 0; padding: 8px 10px; font-size: 11px; letter-spacing: .08em; }
  .logo { font-size: 20px; }
  .hero { padding-top: 170px; } .lb-main { padding-top: 160px; }
  .lb-title { font-size: clamp(1.7rem, 9vw, 3rem); }
  .lb-stats { grid-template-columns: 1fr 1fr; }
  .lb-row { padding: 10px 12px; gap: 8px; }
  .lb-bar { padding: 12px; } #lb-search { width: 100%; }
  .chat-fab { left: 12px; bottom: 12px; }
}
.lb-main, .lb-grid > * { min-width: 0; }

/* ---- the emblem ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-img { width: 34px; height: 34px;  flex: none; filter:drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
.logo.big { flex-direction: column; gap: 14px; } .logo.big .logo-img { width: 88px; height: 88px; }

.logo .wm { color: inherit; white-space: nowrap; } .logo .wm span { color: var(--blue); }

/* ---- top bar: wider, and the page-anchor links drop out on mid-size screens so nothing is pushed off the edge ---- */
.nav-inner { max-width: 90rem; }
@media (max-width: 1500px) { .nav-links a[href="#allies"], .nav-links a[href="#about"], .nav-links a[href="#players"] { display: none; } }

/* ---- crystal PvP reel behind the live-status section ----
   Full-bleed like the hero, cropped to cover the section, and dimmed hard on the left so
   the headings keep their contrast. The still navy wash shows until a clip actually plays. */
#players { position: relative; isolation: isolate; }
/* the footage behind them is live, so the headings carry their own shadow */
#players .head h2, #players .head .kicker, #players .head .note, #players .head .sub { text-shadow: 2px 2px 0 rgba(0,0,0,.6); }
.pvp-bg {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: #070C28;
  container-type: size;
}
.pvp-frame {
  position: absolute; top: 50%; left: 50%;
  /* scaled past the edges so the in-game HUD and scoreboard crop out of frame */
  transform: translate(-50%, -50%) scale(1.32);
  width: 100cqw; height: 56.25cqw; min-width: 177.7778cqh; min-height: 100cqh;
  opacity: 0; transition: opacity 1.2s var(--ease, ease);
}
.pvp-bg.ready .pvp-frame { opacity: 1; }
.pvp-frame > div, .pvp-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.pvp-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,10,30,.9) 0%, rgba(5,10,30,.68) 34%, rgba(5,10,30,.3) 64%, rgba(5,10,30,.22) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(5,10,30,.1) 13%, rgba(5,10,30,.1) 87%, var(--bg) 100%);
}
@supports not (width: 1cqw) {
  .pvp-frame { width: 100vw; height: 56.25vw; min-width: 177.7778vh; min-height: 100%; }
}
@media (max-width: 900px) {
  .pvp-bg.ready .pvp-frame { opacity: .9; }
  .pvp-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(5,10,30,.62) 16%, rgba(5,10,30,.62) 82%, var(--bg) 100%); }
}
