/* SteamCraft download page — dark Modrinth-inspired theme, zero dependencies. */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #1c1c21;
  --bg-deep: #16161a;
  --surface: #242429;
  --surface-2: #2c2c32;
  --surface-3: #38383f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f3f5;
  --text-2: #b9b9c1;
  --text-3: #8d8d97;
  --accent: #00af54;
  --accent-2: #1bd96a;
  --accent-grad: linear-gradient(90deg, #00af54, #1bd96a);
  --on-accent: #05130a;
  --radius: 12px;
  --radius-lg: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

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

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.name {
  font-weight: 700;
  font-size: 16px;
}

.links {
  display: flex;
  gap: 18px;
}

.links a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}

.links a:hover {
  color: var(--text);
}

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

main {
  flex: 1;
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  text-align: center;
  margin-bottom: 44px;
}

.app-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  image-rendering: pixelated;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 34px;
  font-weight: 800;
}

.app-name {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.version {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-2);
}

.meta {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 13px;
}

/* download cards ----------------------------------------------------------- */

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 760px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card.primary {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.card.missing {
  opacity: 0.45;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card h2 {
  font-size: 17px;
  font-weight: 700;
}

.tag {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.card-desc {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
  flex: 1;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 11px 18px;
  border-radius: var(--radius);
  background: var(--accent-grad);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s, transform 0.05s;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn.ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.ghost:hover {
  background: var(--surface-3);
}

.card.missing .btn {
  pointer-events: none;
  opacity: 0.5;
}

.size {
  color: var(--text-3);
  font-size: 12.5px;
}

/* misc --------------------------------------------------------------------- */

.fallback {
  text-align: center;
  background: rgba(255, 180, 84, 0.12);
  border: 1px solid rgba(255, 180, 84, 0.35);
  color: #ffb454;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 24px 0;
}

.fallback a {
  color: inherit;
}

.reqs {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.reqs h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.reqs p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
}

footer {
  text-align: center;
  padding: 20px;
  color: var(--text-3);
  font-size: 12.5px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

footer a {
  color: var(--text-2);
}
