/* Blacklist TS2 Online — site styles */
:root {
  --bg: #0a0608; --panel: #140c10; --panel2: #1b1015; --line: #3a1a20;
  --red: #c8141c; --red2: #e0312f; --redhi: #ff6b5e;
  --ivory: #f3eadb; --muted: #cbbfb3; --dim: #a99b90; --ok: #3ccf6e;
  --display: 'Marcellus', Georgia, serif; --label: 'Marcellus', Georgia, serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans Thai', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ivory); font: 16.5px/1.7 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--ivory); text-decoration: none; }
a:hover { color: var(--redhi); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 14px; }
.container { max-width: 1240px; margin: 0 auto; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-sm { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.display { font-family: var(--display); }
.label { font-family: var(--label); font-weight: 400; letter-spacing: 1.2px; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 4%; background: rgba(10,6,8,.95); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; }
img { max-width: 100%; }
.cs-logo { height: auto; }
footer picture img, .site-footer picture img { height: auto; }
.brand span { font-family: var(--display); font-size: 23px; }
.brand b { color: var(--red2); font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 20px; }
.nav a { font-family: var(--label); font-weight: 400; font-size: 15px; letter-spacing: 1.2px; text-transform: uppercase; padding: 10px 4px; }
.nav a.on { color: var(--redhi); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); }
.dot.on { background: var(--ok); }
.inline { display: inline; margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 24px;
  font: 400 14px var(--label); letter-spacing: 1.5px; text-transform: uppercase; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, var(--red2), #8e0a12); color: var(--ivory); border: 1px solid #ff5a4e; }
.btn:hover { color: #fff; filter: brightness(1.12); }
.btn.ghost { background: rgba(10,6,8,.6); border-color: var(--ivory); }
.btn.big { min-height: 54px; padding: 14px 34px; font-size: 17px; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 12px; letter-spacing: 1.5px; }
.btn.danger { background: #2a0c10; border-color: var(--red2); }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { min-height: 780px; display: flex; align-items: center; justify-content: center; padding: 60px 4% 90px; text-align: center;
  background: linear-gradient(180deg, rgba(10,6,8,.35) 0%, rgba(10,6,8,.12) 45%, rgba(10,6,8,.92) 88%, var(--bg) 100%), url(/img/hero-bg.jpg) center top / cover;
  background: linear-gradient(180deg, rgba(10,6,8,.35) 0%, rgba(10,6,8,.12) 45%, rgba(10,6,8,.92) 88%, var(--bg) 100%), image-set(url(/img/hero-bg.webp?v=1796bf73d9) type('image/webp'), url(/img/hero-bg.jpg?v=63ae39c45c) type('image/jpeg')) center top / cover; }
.hero .inner { display: flex; flex-direction: column; align-items: center; gap: 22px; max-width: 900px; }
.hero .kicker { font: 400 15px var(--label); letter-spacing: 3px; }
.hero img { width: min(600px, 92%); height: auto; }
.hero p { font-size: 20px; max-width: 640px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); background: rgba(10,6,8,.72); font-size: 14px; color: var(--muted); }

/* bands, sections */
.band { padding: 70px 4% 60px; border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(10,6,8,.95), rgba(10,6,8,.72)), url(/img/hero-bg.jpg) center 70% / cover;
  background: linear-gradient(90deg, rgba(10,6,8,.95), rgba(10,6,8,.72)), image-set(url(/img/hero-bg.webp?v=1796bf73d9) type('image/webp'), url(/img/hero-bg.jpg?v=63ae39c45c) type('image/jpeg')) center 70% / cover; }
.band .kicker { font: 400 14px var(--label); letter-spacing: 2.5px; color: var(--red2); }
.band h1 { font-family: var(--display); font-size: clamp(38px, 6vw, 56px); line-height: 1.1; margin: 10px 0; }
.band p { color: var(--muted); font-size: 18px; max-width: 680px; }
.section { padding: 80px 4%; }
.section.alt { background: #0d080a; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section .container { display: flex; flex-direction: column; gap: 44px; }
.heading { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.heading.left { align-items: flex-start; text-align: left; }
.heading .kicker { display: inline-flex; align-items: center; gap: 12px; font: 400 14px var(--label); letter-spacing: 2.5px; color: var(--red2); text-transform: uppercase; }
.heading .kicker::before, .heading .kicker::after { content: ''; width: 40px; height: 1px; background: var(--red2); }
.heading h2 { font-family: var(--display); font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; }

/* cards */
.card { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-top: 2px solid var(--red);
  border-radius: 6px; padding: 28px; }
.card h3 { font: 400 20px var(--label); letter-spacing: .5px; }
.card .num { font-family: var(--display); font-size: 44px; color: var(--red2); line-height: 1; }
.badge { display: inline-flex; width: 58px; height: 58px; flex: none; align-items: center; justify-content: center; transform: rotate(45deg);
  border: 1px solid var(--red2); background: #2a0c10; }
.badge svg { transform: rotate(-45deg); }
.feature { display: flex; gap: 22px; align-items: flex-start; }
.tag { font: 400 12px var(--label); letter-spacing: 1.5px; color: var(--red2); text-transform: uppercase; }
.rates { display: flex; flex-wrap: wrap; margin-top: -60px; position: relative; }
.rate { flex: 1 1 150px; text-align: center; padding: 20px 12px; border: 1px solid var(--line); background: rgba(20,12,16,.9); }
.rate .k { font: 400 13px var(--label); letter-spacing: 1.5px; color: var(--muted); text-transform: uppercase; }
.rate .v { font-family: var(--body); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; font-size: 28px; line-height: 1.25; margin-top: 4px; }
.rate .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.list-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.stat { flex: 1 1 180px; padding: 18px; border: 1px solid var(--line); background: var(--panel); }
.stat .k { font: 400 12px var(--label); letter-spacing: 1.2px; color: var(--muted); }
.stat .v { font-family: var(--body); font-weight: 650; font-variant-numeric: tabular-nums; font-size: 28px; }

/* forms */
label.f { display: flex; flex-direction: column; gap: 6px; font: 400 14px var(--label); letter-spacing: .5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; background: #0a0608; border: 1px solid var(--line); border-radius: 4px;
  color: var(--ivory); font: 16px var(--body); }
textarea { min-height: 140px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red2); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red2); }
.hint { font: 400 13px var(--body); color: var(--dim); letter-spacing: 0; }
.alert { padding: 14px 18px; border-radius: 4px; border: 1px solid; }
.alert.ok { border-color: #2f7a4b; background: #0f2418; }
.alert.error { border-color: var(--red2); background: #2a0c10; }
.alert ul { margin: 0; padding-left: 18px; }
.flashes { max-width: 1240px; margin: 20px auto 0; padding: 0 4%; display: flex; flex-direction: column; gap: 10px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th { background: var(--panel2); text-align: left; font: 400 14px var(--label); letter-spacing: 1px; padding: 12px 16px; }
td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top; }
td.rank { font: 700 16px var(--body); font-variant-numeric: tabular-nums; color: var(--red2); width: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; font: 400 14px var(--label); letter-spacing: 1.2px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 4px; }
.tabs a.on { background: var(--red); border-color: #ff5a4e; }

/* recharge */
.packs { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 12px; border: 1px solid var(--line);
  background: var(--panel); border-radius: 6px; text-align: center; }
.pack .c { font-family: var(--display); font-size: 30px; }
.pack .b { font-size: 14px; color: #ff8a7e; min-height: 20px; }
.pack .p { font: 400 20px var(--label); }
.paybox { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.amount { font: 400 40px var(--label); color: var(--ivory); }
.code-list { font-family: ui-monospace, Consolas, monospace; font-size: 15px; white-space: pre; background: #070405; border: 1px solid var(--line);
  padding: 16px; max-height: 420px; overflow: auto; border-radius: 4px; user-select: all; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font: 400 17px var(--label); }
details p { margin-top: 10px; color: var(--muted); }
ul.plain { margin: 0; padding-left: 20px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }

/* admin */
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4%; background: #120a0d; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 8px 14px; font: 400 13px var(--label); letter-spacing: 1px; border: 1px solid var(--line); border-radius: 4px; }
.admin-nav a.on { background: var(--red); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line); }
.pill.done, .pill.approved { border-color: #2f7a4b; color: #8fe3ad; }
.pill.failed, .pill.rejected { border-color: var(--red2); color: #ff8a7e; }
.pill.submitted, .pill.pending { border-color: #a07a2b; color: #f0c36a; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070405; padding: 54px 4% 30px; }
.site-footer .cols { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer h4 { margin: 0 0 6px; font: 400 14px var(--label); letter-spacing: 1.2px; color: var(--red2); }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
.site-footer .col a { color: var(--muted); font-size: 15px; }
.site-footer .legal { max-width: 1240px; margin: 36px auto 0; color: var(--dim); font-size: 13px; }

@media (max-width: 720px) {
  .hero { min-height: 640px; }
  .card { padding: 22px; }
  .section { padding: 56px 5%; }
  .nav { gap: 10px; }
}

/* referrals (account page) */
.ref { border-top-color: var(--red2); }
.ref-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; }
.ref-total { display: flex; flex-direction: column; align-items: flex-end; }
.ref-total .k { font: 400 12px var(--label); letter-spacing: 1.2px; color: var(--muted); }
.ref-total .v { font-family: var(--body); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; font-size: 34px; line-height: 1.1; color: var(--ivory); }
.ref-link { display: flex; gap: 10px; flex-wrap: wrap; }
.ref-link input { flex: 1 1 280px; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.ref-code { font: 700 15px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: var(--ivory); }
.ref-board { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.ref-board li { display: grid; grid-template-columns: 44px 1fr 60px 110px; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel2); }
.ref-board li:nth-child(-n+3) { border-color: rgba(201,162,83,.55); }
.ref-board li.mine { border-color: var(--red2); box-shadow: inset 3px 0 0 var(--red2); }
.ref-board .pl { font: 700 15px var(--body); font-variant-numeric: tabular-nums; color: #f0c766; }
.ref-board .nm { font: 700 15px ui-monospace, Consolas, monospace; color: var(--ivory); }
.ref-board .ct { font: 650 15px var(--body); font-variant-numeric: tabular-nums; color: var(--ivory); text-align: right; }
.ref-board .gp { font: 600 13px var(--body); font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.ref-total .muted { margin-top: 2px; }
.ref-joined b, .ref b { color: var(--ivory); }
@media (max-width: 480px) { .ref-board li { grid-template-columns: 38px 1fr 44px; } .ref-board .gp { grid-column: 2 / -1; text-align: left; } }
.ref-sub { margin: 10px 0 2px; font: 400 14px var(--label); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.ref-joined { border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 560px) { .ref-total { align-items: flex-start; } }

/* the guild banner editor (/account/guild-banner) */
.banner-big, .banner-zoomed { width: 120px; height: 120px; image-rendering: pixelated; border: 1px solid #a07a2b; background: #0e0a0b; }
.banner-empty { width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--line); color: var(--dim); font-size: 13px; }
.banner-stage { width: 320px; max-width: 100%; height: auto; aspect-ratio: 1; background: #0e0a0b; border: 1px solid var(--line); cursor: move; touch-action: none; }
.banner-real { width: 20px; height: 20px; border: 1px solid #a07a2b; background: #0e0a0b; }

/* email confirmation page and reminder bar */
.verify-card { max-width: 520px; width: 100%; margin: 0 auto; text-align: center; align-items: center; padding: 38px 34px; }
.verify-card .kicker { font: 400 12px var(--label); letter-spacing: 1.5px; color: var(--muted); margin: 0; }
.verify-card .kicker b { color: var(--ivory); }
.verify-mail { font-family: var(--display); font-size: 26px; color: var(--ivory); margin: 4px 0; word-break: break-all; }
.verify-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center; padding: 10px 20px; background: linear-gradient(90deg, rgba(160,122,43,.16), rgba(160,122,43,.28), rgba(160,122,43,.16)); border-bottom: 1px solid rgba(160,122,43,.45); color: var(--ivory); font-size: 14px; }
.verify-bar a { font: 400 12px var(--label); letter-spacing: 1.2px; text-transform: uppercase; color: #f0c766; text-decoration: none; border-bottom: 1px solid rgba(240,199,102,.5); }

/* redeem page */
.redeem-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 860px) { .redeem-grid { grid-template-columns: 1fr; } }
.redeem-input { font: 700 22px ui-monospace, Consolas, monospace; letter-spacing: 1.5px; text-transform: uppercase; padding: 16px 18px; }
.redeem-steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.redeem-steps b { color: var(--ivory); }
.redeem-done { display: flex; align-items: center; gap: 22px; border-top-color: #3fae6a; background: linear-gradient(180deg, rgba(63,174,106,.12), var(--panel)); }
.redeem-done .kicker { font: 400 12px var(--label); letter-spacing: 1.5px; color: #7fd49d; margin: 0; }
.redeem-gp { font-family: var(--body); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.5px; font-size: 44px; line-height: 1.1; color: var(--ivory); margin: 2px 0 4px; }
.redeem-check { flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #0a0608; background: #3fae6a; box-shadow: 0 0 24px rgba(63,174,106,.45); }

/* Closed Beta Test banner (home page) */
.cbt-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 12px 20px;
  border: 1px solid rgba(224,49,47,.6); background: linear-gradient(90deg, rgba(42,12,16,.92), rgba(10,6,8,.85) 60%, rgba(42,12,16,.92));
  box-shadow: 0 0 28px rgba(224,49,47,.28), inset 0 0 0 1px rgba(255,107,94,.08); color: var(--ivory); text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s; }
.cbt-banner:hover { color: var(--ivory); border-color: #ff6b5e; box-shadow: 0 0 36px rgba(224,49,47,.45); transform: translateY(-1px); }
.cbt-live { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px; background: linear-gradient(180deg, var(--red2), #8e0a12);
  border: 1px solid #ff5a4e; font: 400 13px var(--label); letter-spacing: 2px; }
.cbt-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: cbt-pulse 1.6s ease-out infinite; }
@keyframes cbt-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }
.cbt-text { font-size: 16px; }
.cbt-text b { color: #ffd9a0; font-weight: 600; }
.cbt-go { font: 400 13px var(--label); letter-spacing: 1.5px; text-transform: uppercase; color: var(--redhi); }
@media (max-width: 560px) { .cbt-banner { gap: 10px; padding: 12px 14px; } .cbt-text { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .cbt-dot { animation: none; } .cbt-banner { transition: none; } }

/* Rankings */
.faction-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 40%), 1fr)); gap: 14px; margin-bottom: 30px; }
.faction-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 20px; }
.faction-card .display { font-size: 26px; }
.rank-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rank-table td.name { font-weight: 600; color: var(--ivory); }
.rank-table tr.top1 td.rank { color: #f2c66d; }
.rank-table tr.top2 td.rank { color: #d9dde3; }
.rank-table tr.top3 td.rank { color: #d69a6a; }
.lv { display: inline-block; min-width: 54px; padding: 2px 10px; border-radius: 999px; font: 600 13.5px/1.6 var(--body); text-align: center;
  background: rgba(243,234,219,.06); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lv.adept { color: #ffd9a0; border-color: rgba(255,190,110,.35); background: rgba(255,170,80,.08); }
.lv.god { color: #ffe9b8; border-color: rgba(242,198,109,.6); background: rgba(242,198,109,.14); }
.list-row .lv { min-width: 46px; font-size: 12.5px; padding: 1px 8px; }
@media (max-width: 640px) { .rate .v { font-size: 23px; } .rank-table td, .rank-table th { padding-left: 10px; padding-right: 10px; } }
@media (max-width: 640px) { .faction-card { padding: 14px 8px; } .faction-card .display { font-size: 21px; } }
.rank-types { margin-bottom: 16px; }
.small-tabs a { min-height: 38px; padding: 0 14px; font-size: 13px; }
.rank-table th.num, .rank-table td.num { text-align: right; }
.rank-table td.bp { font-weight: 650; font-variant-numeric: tabular-nums; color: #ffd9a0; }
.lv.rebirth { color: #ffe0f0; border-color: rgba(255,120,170,.55); background: rgba(255,90,150,.14); }

/* Guides (coming soon) */
.guide-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-bottom: 30px; }
.guide-soon a { color: var(--redhi); }
.soon-badge { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border: 1px solid rgba(255,190,110,.45);
  background: rgba(255,170,80,.1); color: #ffd9a0; font: 400 14px var(--label); letter-spacing: 1.2px; text-transform: uppercase; border-radius: 4px; }
.guide-grid { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.guide-card { display: flex; flex-direction: column; gap: 8px; opacity: .92; }
.guide-card h3 { font-size: 20px; }
.guide-card .tag { white-space: nowrap; }
.bp-mini { color: #ffd9a0; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; }
