/* HOD DayZ Launcher — website.

   Same palette as the launcher (renderer/styles.css) so the site and the EXE
   read as one product. Two deliberate differences: the page scrolls, and the
   7.7 MB wallpaper the launcher uses is replaced with gradients. That file is
   free on a local disk and unacceptable over a connection. */

:root {
  --bg:          #04070a;
  --bg-raised:   rgba(9, 18, 24, 0.78);
  --bg-row:      rgba(12, 24, 30, 0.55);
  --bg-row-hot:  rgba(20, 44, 52, 0.75);

  --neon:        #2ff0a8;   /* Nissa green */
  --cyan:        #17d4e6;   /* aisle light */
  --lime:        #b9f24a;   /* mark outline */
  --gold:        #d8b45a;   /* sticker outline, used for sponsored */
  --danger:      #ff5f56;
  --warn:        #ffc44d;

  --text:        #dcf3f2;
  --text-dim:    #8fb0b6;
  --text-faint:  #5d7c84;

  --line:        rgba(23, 212, 230, 0.18);
  --line-hot:    rgba(47, 240, 168, 0.55);

  --radius: 10px;
  --font: 'Bahnschrift', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Mono', 'Consolas', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(23, 212, 230, 0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(47, 240, 168, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--neon); text-decoration: underline; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* --- header ---------------------------------------------------------------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 7, 10, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; }
.brand b { font-size: 17px; letter-spacing: 0.5px; }
.brand span { color: var(--text-faint); font-size: 12px; display: block; letter-spacing: 1.5px; }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-row);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: var(--line-hot); background: var(--bg-row-hot); color: var(--text); text-decoration: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, rgba(47, 240, 168, 0.22), rgba(23, 212, 230, 0.14));
  border-color: var(--line-hot);
  color: #eafffb;
  font-weight: 600;
}
.btn-danger { border-color: rgba(255, 95, 86, 0.5); color: #ffd9d6; }
.btn-sm { padding: 5px 10px; font-size: 13px; }
/* The one call to action on the site, so it is allowed to be big. */
.btn-download { padding: 14px 26px; font-size: 16px; }

/* --- hero ------------------------------------------------------------------ */

.hero { padding: 56px 0 32px; }
.hero h1 {
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--neon); }
.hero p.lead { margin: 0 0 22px; color: var(--text-dim); font-size: 18px; max-width: 640px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.stat-strip { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.stat b { display: block; font-size: 26px; color: var(--neon); font-family: var(--mono); }
.stat span { color: var(--text-faint); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; }

/* --- notices --------------------------------------------------------------- */

.notice {
  border: 1px solid rgba(255, 196, 77, 0.4);
  background: rgba(255, 196, 77, 0.08);
  color: #ffe6b0;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 14px;
}
.notice.error { border-color: rgba(255, 95, 86, 0.45); background: rgba(255, 95, 86, 0.08); color: #ffd9d6; }
.notice.ok { border-color: var(--line-hot); background: rgba(47, 240, 168, 0.08); color: #d6fff1; }

/* --- panels ---------------------------------------------------------------- */

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.panel h3 { margin: 18px 0 8px; font-size: 15px; color: var(--text-dim); }

/* --- controls -------------------------------------------------------------- */

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }

.input, select, textarea {
  background: rgba(4, 10, 14, 0.75);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 8px 10px;
}
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--line-hot); }
textarea { width: 100%; min-height: 110px; resize: vertical; font-size: 14px; }
label.field { display: block; margin-bottom: 12px; }
label.field span { display: block; color: var(--text-dim); font-size: 13px; margin-bottom: 4px; }
label.field .input { width: 100%; }

.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 14px; }

/* --- server rows ----------------------------------------------------------- */

.rows { display: flex; flex-direction: column; gap: 6px; }

.row {
  display: grid;
  grid-template-columns: 1fr 130px 90px 110px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-row);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.row:hover { background: var(--bg-row-hot); border-color: var(--line-hot); }
.row.is-featured { border-color: rgba(216, 180, 90, 0.45); background: rgba(30, 26, 12, 0.5); }
.row.is-hod { border-color: var(--line-hot); background: rgba(12, 34, 30, 0.6); }

.row .name { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .sub { color: var(--text-faint); font-size: 12px; font-family: var(--mono); margin-top: 2px; }
.row .num { font-family: var(--mono); text-align: right; }
.row .num small { color: var(--text-faint); }

.pill {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}
.pill-hod { border-color: var(--line-hot); color: var(--neon); }
.pill-sponsored { border-color: rgba(216, 180, 90, 0.6); color: var(--gold); }
.pill-claimed { border-color: rgba(23, 212, 230, 0.5); color: var(--cyan); }

.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 4px; }

.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; color: var(--text-dim); }

/* --- detail ---------------------------------------------------------------- */

.detail-banner {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--text-faint); }
.kv dd { margin: 0; font-family: var(--mono); }
.desc { white-space: pre-wrap; color: var(--text-dim); }

/* --- steps (claim flow) ----------------------------------------------------- */

.token {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--neon);
  background: rgba(4, 10, 14, 0.8);
  border: 1px dashed var(--line-hot);
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-block;
  user-select: all;
}
ol.steps { padding-left: 20px; color: var(--text-dim); }
ol.steps li { margin-bottom: 8px; }
ol.steps code { color: var(--text); font-family: var(--mono); }

/* --- footer ---------------------------------------------------------------- */

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 24px 0 40px;
  color: var(--text-faint);
  font-size: 13px;
}
footer.site a { color: var(--text-dim); }

.muted { color: var(--text-faint); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }
.right { margin-left: auto; }

/* Utility classes rather than style="" attributes.
   The page ships with `style-src 'self'` and no 'unsafe-inline', which blocks
   both inline style attributes in the HTML and `node.style.x = …` from script.
   Nothing here is worth loosening that policy for, so the handful of one-off
   rules live here instead. */
.grow      { flex: 1; min-width: 220px; }
.grow-wide { flex: 1; min-width: 240px; }
.grow-thin { flex: 1; min-width: 160px; }
.w-days    { width: 90px; }
.mt-0      { margin-top: 0; }
.mt-sm     { margin-top: 12px; }
.mt-md     { margin-top: 14px; }
.mb-sm     { margin-bottom: 8px; }
.card-sub  { background: var(--bg-row); }
.row-static   { cursor: default; }
.row-static:hover { background: var(--bg-row); border-color: var(--line); }
.row-disabled { opacity: 0.5; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr 80px; }
  .row .col-map, .row .col-ver { display: none; }
  .hero h1 { font-size: 32px; }
  .kv { grid-template-columns: 1fr; }
}
