/* Lobby Cup website, Haveli look (same family as the Haveli Client site): near-black purple, Haveli pink,
   gold + cyan accents, one self-hosted face (Archivo, OFL; width axis gives the condensed titles), cut corners,
   HUD labels, hazard stripes, grain. No scripts, no outside requests (CSP in _headers). */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #0a0910; --bg2: #07060b; --surface: #13111b; --surface2: #1e1a29; --line: rgba(255, 255, 255, .09);
  --ink: #f3efe9; --soft: #aaa2b4; --dim: #6b6476;
  --accent: #ff4fa3; --accent2: #ff86c3; --cyan: #2bd9ff; --gold: #ffd27a; --orange: #ff9a3c; --onacc: #14060e;
  --green: #248046; --blurple: #5865f2; --red: #da373c;
  --w: 1120px; --cut: 12px; --cutl: 20px; --ease: cubic-bezier(.2, .75, .15, 1);
  --hazard: repeating-linear-gradient(-45deg, var(--accent) 0 10px, transparent 10px 22px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.55 "Archivo", "Segoe UI", system-ui, sans-serif; font-stretch: 100%;
}
/* film grain over everything, very faint */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background: url("/img/grain.png") 0 0 / 220px 220px;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--accent); color: var(--onacc); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { margin: 0 0 .35em; color: var(--ink); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  letter-spacing: .005em; line-height: .9; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.2vw, 56px); }
h3 { font-size: 24px; font-weight: 800; font-stretch: 75%; line-height: 1; letter-spacing: .01em; }
p { margin: 0 0 .8em; }
b, strong { color: var(--ink); font-weight: 700; }
code, kbd { font: 14px/1.4 ui-monospace, Consolas, monospace; background: var(--surface2); border: 1px solid var(--line);
  padding: 1px 6px; color: var(--ink); text-transform: none; letter-spacing: 0; }
h1 code, h2 code, h3 code { font-size: .55em; vertical-align: .18em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(10, 9, 16, .9); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-stretch: 62%;
  font-size: 28px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.brand:hover { color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { color: var(--soft); padding: 8px 12px; font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- buttons: cut corners, Haveli pink ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 26px;
  background: var(--accent); color: var(--onacc); font: 800 17px/1 "Archivo", sans-serif; font-stretch: 80%;
  text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; border: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease); }
.btn:hover { background: var(--accent2); color: var(--onacc); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn.ghost { background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.btn.ghost:hover { background: #2a2338; color: var(--ink); }
.top .btn.add { --cut: 9px; min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn .ic { width: 18px; height: 18px; }

/* ---------- layout ---------- */
main { padding: 40px 0 72px; }
section { margin: 0 0 88px; position: relative; }
.lead { font-size: 20px; color: var(--soft); max-width: 640px; }
.sub { color: var(--soft); max-width: 62ch; }
.note { color: var(--dim); font-size: 14px; margin-top: 10px; }
/* HUD label: pink, spaced caps, a short dash in front */
.label { display: inline-block; margin: 0 0 14px; padding-left: 40px; color: var(--accent); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .2em; line-height: 1.2;
  background: linear-gradient(var(--accent), var(--accent)) 0 50% / 28px 2px no-repeat; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 52px; margin-bottom: 72px; }
.hero h1 { font-size: clamp(60px, 10vw, 136px); line-height: .84; margin-bottom: 22px; }
.hero h1 span { display: block; }
.hero h1 .pink { color: var(--accent); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--hazard); opacity: .85; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 26px 0 0; padding: 0; }
.facts li { display: flex; align-items: center; gap: 8px; color: var(--soft); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; }
.facts svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

/* line icons (inline SVG, stroke = currentColor) */
.ic { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* framed panel: square, thin line, lock-on corner brackets */
.frame { position: relative; padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.frame::before, .frame::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.frame::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

/* ---------- Discord-like example messages (kept Discord grey on purpose) ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.duo .frame { padding: 12px; background: var(--bg2); }
.dc { display: flex; gap: 12px; background: #313338; padding: 16px; font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
  border-radius: 6px; }
.dc-av { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff;
  display: grid; place-items: center; font-weight: 800; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 6px; font-size: 15px; flex-wrap: wrap; }
.dc-head b { color: var(--c2, #fff); }
.tag { background: var(--blurple); color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.time { color: #949ba4; font-size: 12px; }
.embed { margin-top: 6px; background: #2b2d31; border-left: 4px solid var(--c); border-radius: 4px; padding: 10px 12px 12px;
  font-size: 14px; color: #dbdee1; }
.e-title { color: #fff; font-weight: 700; margin-bottom: 4px; }
.e-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.e-fields .fn { display: block; color: #fff; font-weight: 650; font-size: 13px; }
.e-table { margin: 6px 0 0; padding: 0; list-style: none; }
.e-table li { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.e-table li b { color: #fff; }
.e-foot { margin-top: 8px; color: #949ba4; font-size: 12px; }
.mention { color: #c9cdfb; background: rgba(88, 101, 242, .3); border-radius: 3px; padding: 0 2px; }
.dc-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.b { font: 600 13px/1.4 "Segoe UI", system-ui, sans-serif; padding: 5px 12px; border-radius: 4px; background: #4e5058; color: #fff; }
.b.g { background: var(--green); } .b.p { background: var(--blurple); } .b.r { background: var(--red); }
.clan-fang { --c: #e5484d; --c2: #ff8a8d; }
.clan-owl { --c: #3e9bff; --c2: #8cc4ff; }

/* ---------- cup type tiles ---------- */
.group { display: block; color: var(--soft); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  margin: 26px 0 10px; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; list-style: none; margin: 0;
  padding: 0; background: var(--line); border: 1px solid var(--line); }
.types li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; background: var(--bg);
  padding: 16px 18px; transition: background-color .2s var(--ease); }
.types li:hover { background: var(--surface); }
.types .ic { grid-row: span 2; color: var(--accent); width: 32px; height: 32px; }
.types.lobby .ic { color: var(--cyan); }
.types b { font-weight: 800; font-stretch: 80%; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; line-height: 1.1; }
.types span { color: var(--soft); font-size: 14px; }

/* ---------- numbered steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; padding: 0;
  margin: 0; counter-reset: s; }
.steps > li { position: relative; padding: 20px 20px 22px; background: var(--surface); border-top: 3px solid var(--accent);
  counter-increment: s; }
.steps > li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--accent); font-weight: 900;
  font-stretch: 62%; font-size: 44px; line-height: 1; margin-bottom: 10px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--soft); font-size: 15px; margin: 0; }

/* ---------- why free: three columns ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.why > div { display: flex; flex-direction: column; }
.why .ic { width: 34px; height: 34px; margin-bottom: 12px; }
.why .gets .ic { color: var(--gold); }
.why .haveli-gets .ic { color: var(--accent); }
.why .never-do .ic { color: var(--cyan); }
.why h3 { font-size: 26px; }
.why ul { list-style: none; margin: 4px 0 0; padding: 0; }
.why li { position: relative; padding: 7px 0 7px 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.why li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 2px; background: currentColor; }
.why .gets li::before { background: var(--gold); }
.why .haveli-gets li::before { background: var(--accent); }
.why .never-do li::before { width: 10px; height: 10px; top: 13px; left: 1px; background: none;
  background-image: linear-gradient(45deg, transparent 43%, var(--cyan) 43% 57%, transparent 57%),
                    linear-gradient(-45deg, transparent 43%, var(--cyan) 43% 57%, transparent 57%); }
.why li b { font-weight: 700; }
.why .soon { display: inline-block; margin-left: 4px; padding: 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--onacc); background: var(--gold); vertical-align: 2px; }
.plain { margin-top: 22px; padding: 16px 18px 16px 22px; border-left: 3px solid var(--accent); background: var(--surface);
  color: var(--soft); max-width: 820px; }
.plain p:last-child { margin: 0; }

/* ---------- setup guide ---------- */
.guide { list-style: none; padding: 0; margin: 0; counter-reset: g; display: grid; gap: 22px; }
.guide > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center;
  counter-increment: g; }
.guide h3::before { content: counter(g, decimal-leading-zero); color: var(--accent); margin-right: 12px; }
.guide ul { margin: 6px 0 0; padding-left: 18px; color: var(--soft); font-size: 16px; }
.guide ul li::marker { color: var(--accent); }
.pic { background: #313338; border-radius: 6px; padding: 14px; font: 14px/1.5 "Segoe UI", system-ui, sans-serif; min-width: 0;
  color: #dbdee1; }
.pic .bar { background: #383a40; border-radius: 8px; padding: 9px 12px; color: #fff; font-family: ui-monospace, Consolas, monospace; }
.pic .bar em { color: #949ba4; font-style: normal; }
.pic .priv { color: #949ba4; font-size: 12px; margin-top: 8px; }
.pic .msg { margin-top: 8px; }
.pic b { color: #fff; }
.auth { background: #2b2d31; border-radius: 8px; padding: 12px; }
.auth .sel { background: #1e1f22; border-radius: 6px; padding: 7px 10px; margin: 6px 0 10px; color: #fff; }
.auth ul { list-style: none; padding: 0; margin: 0; color: #dbdee1; font-size: 13px; }
.auth li::before { content: "\2713  "; color: #3ba55d; font-weight: 700; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches span { width: 22px; height: 22px; border-radius: 50%; }
.sw1 { background: #e5484d; } .sw2 { background: #3e9bff; } .sw3 { background: #3ba55d; } .sw4 { background: #f0b232; } .sw5 { background: #a970ff; }

/* ---------- tables ---------- */
.scroll { overflow-x: auto; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; background: var(--bg2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td { color: var(--soft); }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.never { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.never li { border: 1px solid rgba(43, 217, 255, .35); color: var(--cyan); padding: 5px 12px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; }
.never li::before { content: "\2715  "; }

/* ---------- commands ---------- */
.cmd { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.cmd h2 { font-size: 22px; margin: 0 0 6px; font-stretch: 100%; text-transform: none; }
.cmd h2 code { font-size: 20px; background: none; border: 0; padding: 0; color: var(--ink); vertical-align: 0; }
.who { display: inline-block; font: 800 11px/1 "Archivo", sans-serif; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 8px; margin-left: 10px; vertical-align: 3px; }
.who.admin { background: var(--gold); color: var(--onacc); } .who.host { background: var(--cyan); color: var(--onacc); }
.cmd .tbl { margin-top: 0; }
.choices { color: var(--dim); font-size: 13px; }

/* ---------- help ---------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 4px; color: var(--ink); font-weight: 700; list-style: none; display: flex; gap: 14px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; flex: none; width: 16px; color: var(--accent); font-weight: 900; }
details[open] summary::before { content: "\2212"; }
summary:hover { color: var(--accent2); }
details > div { padding: 0 4px 16px 34px; color: var(--soft); }
.support { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px; }
.support h2 { font-size: 40px; }

/* ---------- legal ---------- */
.legal { max-width: 760px; color: var(--soft); }
.legal h1 { margin-bottom: 10px; }
.legal h2 { font-size: 28px; margin-top: 34px; }
.legal li { margin-bottom: 4px; }
.updated { color: var(--dim); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }

/* ---------- footer ---------- */
footer { position: relative; padding: 34px 0 44px; color: var(--dim); font-size: 14px; background: var(--bg2); }
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--hazard); opacity: .7; }
footer .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; }
footer nav a { color: var(--soft); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
footer nav a:hover { color: var(--ink); }
.haveli { margin-left: auto; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.haveli:hover { color: var(--accent2); }
.fine { flex-basis: 100%; margin: 0; font-size: 12px; }

.center { text-align: center; padding: 70px 0; }
.center h1 { font-size: clamp(90px, 16vw, 200px); color: var(--accent); }
.center .mid { margin: 0 auto 24px; }

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .top .wrap { height: auto; flex-wrap: wrap; gap: 6px 10px; padding-top: 10px; padding-bottom: 8px; }
  .top nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .top nav a { padding: 6px 4px; font-size: 13px; letter-spacing: .1em; }
  .top .btn.add { margin-left: auto; }
  main { padding-top: 24px; }
  section { margin-bottom: 64px; }
  .hero { padding-top: 16px; }
  .guide > li { grid-template-columns: 1fr; gap: 14px; }
  .types { grid-template-columns: 1fr 1fr; }
  .types li { grid-template-columns: 1fr; padding: 14px; align-items: start; }
  .types .ic { grid-row: auto; margin-bottom: 8px; width: 28px; height: 28px; }
  .types b { font-size: 16px; }
  .haveli { margin-left: 0; }
  .tbl th, .tbl td { padding: 9px 10px; }
  .duo { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
