@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #080a07;
  --panel: #11140f;
  --panel2: #171b13;
  --text: #f2f1e8;
  --muted: #979d8e;
  --gold: #f3c63f;
  --lime: #83e72f;
  --line: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body {
  height: 100svh;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(243,198,63,.08), transparent 38%),
    var(--bg);
  font-family: "Manrope", system-ui, sans-serif;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 42px; height: 42px; image-rendering: pixelated; }
.brand b { color: var(--gold); }
main {
  width: min(1180px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(20px, 4vh, 38px) 0 clamp(14px, 2.8vh, 26px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(18px, 3vh, 30px);
}

.intro { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 40px; }
.eyebrow { margin: 0 0 6px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
h1 { margin: 0; font-size: clamp(32px, 4.2vw, 52px); line-height: 1; letter-spacing: -.05em; }
h1 span { color: var(--gold); }
.intro > p { max-width: 650px; margin: 0 0 2px; color: #c3c7ba; font-size: clamp(12px, 1.2vw, 15px); line-height: 1.6; }
.intro code { padding: 3px 7px; color: var(--gold); background: rgba(243,198,63,.1); border-radius: 5px; font: 800 .95em inherit; }
.intro strong { color: var(--text); }

.vote-grid { min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vote-card { min-width: 0; min-height: 0; padding: clamp(18px, 2.2vw, 26px); display: grid; grid-template-rows: auto 1fr auto auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.vote-card.active { border-color: rgba(243,198,63,.42); background: linear-gradient(145deg, rgba(243,198,63,.07), transparent 52%), var(--panel); }
.vote-card.pending { opacity: .64; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.site-number { color: #666d5f; font: 800 10px monospace; letter-spacing: .12em; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: filter .18s ease; }
.status:hover { filter: brightness(1.3); }
.status.online { color: var(--lime); background: rgba(131,231,47,.08); }
.status.offline { color: #ef6b62; background: rgba(239,107,98,.09); }
.status.checking { color: #9ba18f; background: rgba(255,255,255,.04); }
.status i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.soon { color: #7f8575; background: rgba(255,255,255,.04); }
.site-icon { place-self: center start; display: grid; place-items: center; width: clamp(76px, 11vh, 96px); height: clamp(76px, 11vh, 96px); border: 1px solid rgba(243,198,63,.35); border-radius: 14px; color: #171407; background: var(--gold); font-size: clamp(20px, 3vh, 28px); font-weight: 800; box-shadow: 0 12px 32px rgba(0,0,0,.22); }
.site-icon.ghost { color: #69705f; border-color: var(--line); background: var(--panel2); box-shadow: none; }
.site-icon.site-logo { overflow: hidden; border-color: rgba(243,198,63,.35); background: #fff; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.site-icon.site-logo img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.site-icon.site-logo:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 14px 34px rgba(243,198,63,.16); }
.card-copy { align-self: end; }
.card-copy h2 { margin: 0 0 5px; font-size: clamp(15px, 1.5vw, 20px); letter-spacing: -.025em; overflow-wrap: anywhere; }
.card-copy h2 a { color: inherit; text-decoration: none; transition: color .18s ease; }
.card-copy h2 a:hover { color: var(--gold); }
.card-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.reward { margin: clamp(12px, 2vh, 20px) 0 12px; color: #bfc3b6; font-size: 10px; }
.reward strong { color: var(--gold); font-size: 15px; }
.reward.muted, .reward.muted strong { color: #666d5f; }
.vote-button { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; color: #171407; background: var(--gold); border-radius: 7px; font-size: 10px; font-weight: 800; text-decoration: none; transition: transform .18s ease, filter .18s ease; }
.vote-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.vote-button.disabled { justify-content: center; color: #747a6c; background: rgba(255,255,255,.045); cursor: not-allowed; }

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: #777d6f;
  font-size: 9px;
}

@media (max-height: 650px) {
  body { grid-template-rows: 58px minmax(0, 1fr) auto; }
  .topbar { height: 58px; }
  .brand img { width: 34px; height: 34px; }
  main { padding-block: 13px 10px; gap: 12px; }
  .site-icon { width: 62px; height: 62px; font-size: 22px; }
  .reward { margin-top: 8px; }
  footer { padding-block: 8px 9px; }
}

@media (max-width: 700px) {
  body { height: 100svh; grid-template-rows: 58px minmax(0, 1fr) auto; }
  .topbar, main, footer { width: calc(100% - 24px); }
  .topbar { height: 58px; }
  .brand img { width: 36px; height: 36px; }
  main { padding: 13px 0 9px; gap: 10px; }
  .intro { grid-template-columns: 1fr; gap: 5px; align-items: start; }
  .eyebrow { margin-bottom: 3px; font-size: 7px; }
  h1 { font-size: 28px; }
  .intro > p { font-size: 10px; line-height: 1.45; }
  .vote-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .vote-card { padding: 10px 12px; grid-template-columns: auto 1fr auto; grid-template-rows: auto 1fr auto; column-gap: 10px; }
  .card-topline { grid-column: 1 / -1; }
  .status { padding: 3px 6px; font-size: 6px; }
  .site-icon { grid-column: 1; grid-row: 2 / 4; place-self: center; width: 56px; height: 56px; border-radius: 10px; font-size: 20px; }
  .card-copy { grid-column: 2; grid-row: 2; align-self: end; }
  .card-copy h2 { margin-bottom: 2px; font-size: 12px; }
  .card-copy p { font-size: 8px; }
  .reward { grid-column: 2; grid-row: 3; align-self: start; margin: 2px 0 0; font-size: 7px; }
  .reward strong { font-size: 10px; }
  .vote-button { grid-column: 3; grid-row: 2 / 4; align-self: center; padding: 9px 10px; font-size: 8px; gap: 8px; white-space: nowrap; }
  .vote-button.disabled { max-width: 92px; white-space: normal; text-align: center; }
  footer { padding: 7px 0 8px; font-size: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
