:root {
  --paper: #faf8f3;
  --paper-ink: #1a1a1a;
  --wood-deep: #6c4827;
  --wood-green: #103018;
  --x-red: #e53935;
  --shadow: 0 18px 50px rgba(40, 24, 10, 0.35);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 1.5rem;
  font-family: "Patrick Hand", system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--paper-ink);
  background: var(--wood-deep);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--wood-deep);
  background-image: url("assets/wood_backdrop.webp");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.card {
  width: min(440px, 100%);
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  background: color-mix(in srgb, var(--paper) 92%, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(108, 72, 39, 0.12);
  backdrop-filter: blur(2px);
}

.icon {
  display: block;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.1rem;
  border-radius: 28px;
  box-shadow:
    0 8px 24px rgba(40, 24, 10, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

h1 {
  margin: 0;
  font-family: "Permanent Marker", cursive;
  font-size: clamp(2.4rem, 8vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--paper-ink);
}

.blurb {
  margin: 1rem 0 0;
  color: #333;
  font-size: 1.15rem;
}

.blurb .wiki {
  color: var(--wood-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blurb .wiki:hover {
  color: var(--x-red);
}

.stores {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.play-online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 0.7rem 1.6rem;
  font-family: "Permanent Marker", cursive;
  font-size: 1.35rem;
  color: #fffef9;
  text-decoration: none;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #2a5a38 0%, var(--wood-green) 100%);
  border-radius: 12px;
  border: 2px solid #0a1f10;
  box-shadow: 0 4px 0 #0a1f10, 0 8px 16px rgba(16, 48, 24, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.play-online:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #0a1f10, 0 12px 20px rgba(16, 48, 24, 0.4);
}

.play-online:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #0a1f10, 0 4px 8px rgba(16, 48, 24, 0.3);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}

.badge-link {
  display: block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.badge-link:active {
  transform: translateY(1px);
  opacity: 1;
}

.badge {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  user-select: none;
}

footer {
  margin-top: 1.5rem;
  font-size: 1rem;
  color: rgba(250, 248, 243, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

footer a {
  color: #d0e8ff;
  text-decoration: none;
}

/* Mobile tweaks */
@media (max-width: 420px) {
  body {
    padding: 1.25rem 0.85rem 1rem;
    justify-content: flex-start;
  }

  .card {
    padding: 1.75rem 1.15rem 1.35rem;
  }

  .icon {
    width: 112px;
    height: 112px;
    border-radius: 22px;
  }

  .badge {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-online,
  .badge-link {
    transition: none;
  }
}