@font-face {
  font-family: "Minecraft";
  src: url("/assets/minecraft_font.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #10120f;
  --bg-2: #181a15;
  --surface: #20241d;
  --surface-2: #292d23;
  --border: #4a4e3f;
  --border-strong: #716943;
  --text: #f4efe1;
  --muted: #c8c1ad;
  --soft: #968f7f;
  --gold: #d8b74b;
  --gold-strong: #f0ce5d;
  --moss: #72a055;
  --moss-dark: #2f4a2f;
  --danger: #be6047;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(180deg, #1f211b 0, var(--bg) 46%, #0b0c0a 100%);
  color: var(--text);
  font-family: "Minecraft", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  min-width: 320px;
}

.launcher {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  min-height: 240px;
  padding: 28px 0 30px;
}

.hero-copy {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.logo {
  width: clamp(76px, 11vw, 116px);
  height: clamp(76px, 11vw, 116px);
  flex: 0 0 auto;
  border: 2px solid #0b0c0a;
  border-radius: 8px;
  image-rendering: pixelated;
  box-shadow: 0 18px 46px var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.summary {
  max-width: 680px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.card-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(216, 183, 75, 0.34);
  border-radius: 8px;
  color: var(--gold-strong);
  background: rgba(216, 183, 75, 0.1);
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.runtime-card {
  display: flex;
  min-width: 0;
  min-height: 360px;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px;
  background: rgba(32, 36, 29, 0.94);
  box-shadow: 0 18px 44px var(--shadow);
}

.runtime-card.recommended {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, rgba(47, 74, 47, 0.86), rgba(32, 36, 29, 0.96));
}

.card-head {
  display: grid;
  gap: 4px;
}

.card-title-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.runtime-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.button {
  display: grid;
  min-width: 0;
  min-height: 88px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(16, 18, 15, 0.48);
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.button:hover,
.button:focus-visible {
  border-color: var(--gold-strong);
  background: rgba(216, 183, 75, 0.14);
  transform: translateY(-1px);
  outline: none;
}

.button-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  stroke-width: 2.3;
}

.button:focus-visible {
  box-shadow: 0 0 0 3px rgba(240, 206, 93, 0.28);
}

.button.primary {
  color: #13140f;
  border-color: var(--gold-strong);
  background: var(--gold);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--gold-strong);
}

.button span {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
}

.button small {
  display: block;
  color: currentColor;
  font-size: 12px;
  line-height: 1.25;
  opacity: 0.74;
}

.button.is-disabled {
  pointer-events: none;
  color: #d7c9b9;
  border-color: rgba(190, 96, 71, 0.5);
  background: rgba(94, 51, 41, 0.42);
}

@media (max-width: 880px) {
  .launcher {
    width: min(100% - 24px, 680px);
    padding-top: 24px;
  }

  .hero,
  .launch-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    align-items: stretch;
    padding-top: 14px;
  }

}

@media (max-width: 620px) {
  .hero-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary {
    font-size: 15px;
  }

  .runtime-card {
    min-height: 0;
    padding: 18px;
  }

  .button-grid {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 68px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
