:root {
  --page: #241f2a;
  --page-deep: #15131a;
  --card: #302b35;
  --card-dark: #211e27;
  --line: #61586a;
  --line-bright: #dfbd70;
  --text: #faf2de;
  --muted: #d2c8d8;
  --yellow: #e2bf72;
  --red: #b86f4f;
  --green: #77a76a;
  --blue: #8f65d8;
  --marble: #efe0bd;
  --bronze: #a86b3f;
  --purple: #8f65d8;
  --purple-deep: #4b3673;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(226, 191, 114, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 8%, rgba(143, 101, 216, 0.22), transparent 22rem),
    radial-gradient(circle at 8% 18%, rgba(168, 107, 63, 0.13), transparent 18rem),
    linear-gradient(180deg, var(--page) 0%, var(--page-deep) 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.top-menu {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1120px;
  padding: 20px 20px 16px;
}

.top-menu nav {
  align-items: center;
  display: flex;
}

.top-menu nav {
  background: rgba(24, 21, 30, 0.78);
  border: 1px solid rgba(226, 191, 114, 0.24);
  border-radius: 8px;
  gap: 6px;
  padding: 4px;
}

.top-menu nav a {
  border-radius: 6px;
  color: #dddddd;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.top-menu nav a:hover {
  background: #3b3347;
  color: #ffffff;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 20px 40px;
}

.intro {
  margin: 0 auto;
  max-width: 760px;
  padding: 22px 0 38px;
  text-align: center;
}

.landing-banner {
  display: block;
  height: auto;
  margin: 0 auto 20px;
  max-height: 210px;
  max-width: min(100%, 760px);
  object-fit: contain;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.eyebrow {
  color: var(--marble);
  display: block;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.intro h1 {
  color: var(--marble);
  font-size: clamp(42px, 7vw, 64px);
  line-height: 1;
  margin: 0;
  text-shadow: 0 4px 0 #5b407b, 0 12px 28px rgba(226, 191, 114, 0.2);
}

.intro p {
  color: #eeeeee;
  font-size: 18px;
  line-height: 1.5;
  margin: 20px auto 0;
  max-width: 690px;
}

.cards {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-card {
  background:
    linear-gradient(180deg, rgba(226, 191, 114, 0.045), transparent 42%),
    var(--card);
  border: 2px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.tool-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-2px);
}

.card-image {
  align-items: center;
  background:
    linear-gradient(rgba(40, 40, 40, 0.1), rgba(40, 40, 40, 0.25)),
    url("assets/hayday-tools-hero.png") center / cover no-repeat;
  border-bottom: 2px solid rgba(199, 155, 53, 0.48);
  display: flex;
  justify-content: center;
  min-height: 220px;
  padding: 22px;
}

.derby-image {
  background:
    linear-gradient(rgba(24, 21, 30, 0.42), rgba(24, 21, 30, 0.58)),
    url("assets/stacker-banner.png") center / cover no-repeat,
    #2a2a2a;
}

.bingo-image {
  background:
    linear-gradient(rgba(24, 21, 30, 0.42), rgba(24, 21, 30, 0.58)),
    url("assets/bingo-banner.png") center / cover no-repeat,
    #2a2a2a;
}

.card-body {
  display: grid;
  min-height: 236px;
  padding: 22px;
}

.title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.title-row h2 {
  color: var(--yellow);
  font-size: 26px;
  line-height: 1.05;
  margin: 0;
  text-shadow: 2px 2px 0 #171717, 0 0 18px rgba(143, 101, 216, 0.18);
}

.card-body p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  margin: 0;
}

.card-button {
  align-self: end;
  background: var(--purple-deep);
  border: 1px solid rgba(226, 191, 114, 0.36);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  margin-top: 20px;
  min-width: 190px;
  padding: 12px 18px;
}

.card-button:hover {
  background: #5c4388;
  border-color: rgba(226, 191, 114, 0.58);
}

.card-button.disabled {
  background: rgba(250, 242, 222, 0.08);
  border-color: rgba(250, 242, 222, 0.16);
  color: var(--gold);
  cursor: default;
}

.card-button.disabled:hover {
  background: rgba(250, 242, 222, 0.08);
  border-color: rgba(250, 242, 222, 0.16);
}

.top-menu nav a.discord-button {
  background: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.top-menu nav a.discord-button:hover {
  background: #4752c4;
  color: #ffffff;
}

footer {
  color: #a9a9a9;
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 20px 30px;
}

@media (max-width: 760px) {
  .top-menu {
    justify-content: flex-start;
  }

  .top-menu nav {
    flex-wrap: wrap;
  }

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

  .intro {
    text-align: left;
  }

  .landing-banner {
    margin-left: 0;
    max-height: 150px;
  }

  .card-image {
    min-height: 190px;
    padding: 16px;
  }
}
