/* ETL Arena - public site. Dark arena with the gold of the Arena logo; one look on purpose (no light theme). */
:root {
  --bg: #0f1013; --bg-2: #15171c; --card: #1a1c22; --line: #2a2d35; --ink: #ece7dc; --muted: #9c968a;
  --gold: #e3a832; --gold-2: #f2c76a; --gold-ink: #17130b; --ok: #4fbf72; --off: #6d6a63;
  --display: 'Secular One', 'Assistant', 'Arial Hebrew', sans-serif;
  --body: 'Assistant', 'Segoe UI', 'Arial Hebrew', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--gold-2); }
img { max-width: 100%; }
.in { max-width: 1120px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
code, kbd { font-family: var(--mono); font-size: .86em; background: #23262d; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(15,16,19,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav .in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 20px; }
.brand img { border-radius: 6px; }
.nav nav { display: flex; gap: 20px; margin-inline-start: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav nav a:hover { color: var(--ink); }
.discord { background: #5865f2; color: #fff; text-decoration: none; font-weight: 800; font-size: 14.5px; padding: 7px 14px; border-radius: 8px; }
@media (max-width: 820px) { .nav nav { display: none; } .discord { margin-inline-start: auto; } }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 420px at 85% 10%, rgba(227,168,50,.16), transparent 70%),
              repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 9px), var(--bg); }
.hero .in { padding-block: 72px 64px; display: grid; gap: 18px; }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--gold); direction: ltr; text-align: right; }
.hero h1 { font-size: clamp(40px, 7.4vw, 82px); }
.hero h1 em { font-style: normal; color: var(--gold); }
.sub { margin: 0; max-width: 60ch; font-size: 19px; color: #c9c3b6; }
.live-sum { display: inline-flex; align-items: center; gap: 10px; width: fit-content; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79,191,114,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(79,191,114,0); } 100% { box-shadow: 0 0 0 0 rgba(79,191,114,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

/* blocks */
.block .in { padding-block: 64px; display: grid; gap: 26px; }
.block.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.head h2 { font-size: clamp(30px, 4.4vw, 42px); }
.head p { margin: 0; color: var(--muted); }
.note { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 75ch; }
.empty { color: var(--muted); text-align: center; padding: 18px; }

/* servers */
.servers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .servers { grid-template-columns: 1fr; } }
.srv { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.srv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.srv h3 { font-size: 27px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ok); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.off { color: var(--off); }
.about { margin: 0; color: var(--muted); font-size: 15px; }
.map { font-family: var(--mono); font-size: 22px; color: var(--ink); direction: ltr; text-align: right; overflow-wrap: anywhere; }
.count { display: flex; justify-content: space-between; font-weight: 700; font-variant-numeric: tabular-nums; }
.count span:last-child { color: var(--muted); font-weight: 600; }
.meter { height: 7px; border-radius: 4px; background: #2a2d35; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 4px; transition: width .6s; }
.actions { display: flex; gap: 8px; }
.btn { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; border-radius: 10px; font: 800 15.5px var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn.go { background: var(--gold); color: var(--gold-ink); }
.btn.go:hover { background: var(--gold-2); }
.btn.copy { background: transparent; color: var(--ink); border: 1px solid #3a3d46; padding-inline: 10px; }
.addr { font-family: var(--mono); font-size: 13px; color: var(--muted); direction: ltr; text-align: left; overflow-wrap: anywhere; background: #15171c; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.btn.copy:hover { border-color: var(--gold); }
.btn.copy.done { border-color: var(--ok); color: var(--ok); }
.skeleton { opacity: .55; }

/* join */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold); }
.steps b { font-size: 19px; }
.steps span { color: #c9c3b6; font-size: 15.5px; }
.fav { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed #4a4436; border-radius: 14px; padding: 18px 20px; }
.fav div { display: grid; gap: 2px; }
.fav span { color: var(--muted); font-size: 15.5px; }
.soon { flex: none; font-size: 13px; font-weight: 800; color: var(--gold); border: 1px solid var(--gold); border-radius: 99px; padding: 3px 12px; }

/* top 15 */
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--line); }
th { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
td.rank { width: 48px; color: var(--muted); font-weight: 800; }
tr.p1 td.rank { color: var(--gold); }
td.name { font-weight: 800; }
td.rating { font-family: var(--mono); color: var(--gold-2); }

/* updates */
.updates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .updates { grid-template-columns: 1fr; } }
.upd { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.upd time { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.upd h3 { font-size: 21px; }
.upd .body { color: #c9c3b6; font-size: 15.5px; white-space: pre-line; overflow-wrap: anywhere; max-height: 15.5em; overflow: hidden; }

/* rules */
.rules { margin: 0; padding-inline-start: 26px; display: grid; gap: 10px; max-width: 80ch; }
.rules li::marker { color: var(--gold); font-weight: 800; }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot .in { padding-block: 34px calc(34px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 12px; text-align: center; }
.foot img { border-radius: 8px; }
.foot .links { display: flex; gap: 20px; font-weight: 700; }
.foot p { margin: 0; color: var(--muted); font-size: 14px; }

.fav .fine { font-size: 14px; color: #8f897d; }
.fav .fine a { color: var(--gold-2); }
.btn.dl { flex: none; padding-inline: 26px; }
@media (max-width: 640px) { .fav { flex-direction: column; align-items: stretch; } }

/* account page */
.acct .in { max-width: 980px; }
.panes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .panes { grid-template-columns: 1fr; } }
.pane { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.pane h3 { font-size: 22px; }
.pane form { display: grid; gap: 10px; }
.hint { margin: 0; color: var(--muted); font-size: 15px; }
label { font-size: 14px; font-weight: 700; color: #c9c3b6; }
input { width: 100%; min-height: 46px; background: #121318; color: var(--ink); border: 1px solid #3a3d46; border-radius: 10px; padding: 0 14px; font: 600 16px var(--body); }
input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227,168,50,.18); }
input[inputmode=numeric] { font-family: var(--mono); letter-spacing: .3em; text-align: center; }
.inline { display: flex !important; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.inline .btn { flex: none; padding-inline: 18px; }
.pane hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; width: 100%; }
.discord-btn { background: #5865f2; color: #fff; }
.discord-btn:hover { background: #6d78f5; }
.btn:disabled { opacity: .6; cursor: wait; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alert { margin: 0; padding: 12px 16px; border-radius: 10px; background: rgba(224,103,93,.12); border: 1px solid rgba(224,103,93,.45); color: #f1b2ab; font-weight: 700; }
.alert.ok { background: rgba(79,191,114,.1); border-color: rgba(79,191,114,.45); color: #9fe0b4; }
.lead-in { margin: 0; font-size: 18px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font: 600 15px var(--body); cursor: pointer; justify-self: start; padding: 0; margin-top: 4px; }
.me-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.me-head h3 { font-size: clamp(28px, 5vw, 40px); }
.me-head .btn { flex: none; padding-inline: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-block: 6px 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 2px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stat small { font-size: 13px; color: var(--muted); }
.acct section { display: grid; gap: 16px; }
.nav nav a[aria-current] { color: var(--gold-2); }
.me-link { display: none; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 14.5px; border: 1px solid #3a3d46; border-radius: 8px; padding: 6px 12px; }
@media (max-width: 820px) { .me-link { display: inline-block; margin-inline-start: auto; } .me-link + .discord { margin-inline-start: 0; } }
.me-link, .discord, .brand span { white-space: nowrap; }
@media (max-width: 420px) { .nav .in { gap: 10px; } .brand span { font-size: 17px; } .brand img { width: 46px; height: auto; } .me-link, .discord { padding: 6px 10px; font-size: 13.5px; } }
