* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

html {
  background: #ffffff;
  color: #32292F;
}

body {
  font-family: "Satoshi", Noto Sans, Arial, sans-serif;
  overflow: hidden;
  background-color: #E6E8E3;
}

.pixel {
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
}

.page {
  display: grid;
  gap: 16px;
  grid-template-rows: 1fr auto;
  height: 100vh;
  justify-content: center;
  padding: 16px;
}

.card {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: #32292F;
  border: 2px solid #32292F;
  border-radius: 16px;
  box-shadow: 0 2px 0 rgba(50,41,47,0.35), 0 6px 18px rgba(50,41,47,0.35);
  display: flex;
  height: auto;
  justify-content: center;
  margin: 0 auto;
  max-height: 100%;
  max-width: min(100%, 1920px);
  overflow: hidden;
  width: auto;
}

.card img {
  border-radius: 10px;
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cta {
  align-content: start;
  display: grid;
  gap: 32px;
  max-width: 768px; /* match the card's cap */
  justify-self: center;         /* center it horizontally */
  width: 100%;                  /* allow shrink on small screens */
}

.cta .desc {
  justify-self: center;
  max-width: 100%;
  padding: 0 8px;
  text-align: center;
}

.links {
  display: grid;
  gap: 16px;
  grid-auto-flow: row dense;                       /* prefer vertical stacking when tight */
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-self: center;
  max-width: 800px;
  width: 100%;
}

.links > * { width: 100%; }

.btn {
  align-items: center;
  background: #32292F;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.25);
  color: #ffffff;
  display: inline-flex;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

.btn:hover {
  background: #EB47CF;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn:active {
  filter: brightness(0.98);
  transform: translateY(0);
}

:root {
  --icon-size: 64px;
}

/* rectangular icon buttons */
.icon-btn {
  align-items: center;
  background: #32292F;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 4px 10px rgba(0,0,0,0.25);
  color: #ffffff;
  font-weight: 700;
  display: flex;
  gap: 16px;
  justify-content: center;;   /* icon left, label right */
  padding: 16px 16px;
  text-decoration: none;
  transition: 0.3s ease-in-out;
  width: 100%;         
}

.icon-btn:hover { 
  background: #EB47CF;
  filter: brightness(1.05); 
  transform: translateY(-1px); 
}

.icon-btn:active { 
  filter: brightness(0.98); 
  transform: translateY(0); 
}

.icon-btn:focus-visible { 
  outline: 2px dashed #EB47CF; 
  outline-offset: 4px; 
}

/* icon block (no circular badge now) */
:root { --icon-size: 28px; }      /* tweak if you want bigger/smaller glyphs */

.icon {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  height: var(--icon-size);
  justify-content: center;
  width: var(--icon-size);
}

p {
  font-size: 16px;
  margin: 0;
}

.icon svg {
  height: 100%;
  width: 100%;
  fill: currentColor;
}

.icon-btn .caption {
  flex: 0 1 auto;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}

a:focus-visible,
button:focus-visible {
  outline: 2px dashed #db0a5b;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .links {
    gap: 24px;
  }
  .page {
    gap: 24px;
    padding: 24px;
  }
}

@media (min-width: 1200px) {
  .links {
    gap: 32px;
  }
  .page {
    gap: 32px;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .links {
    grid-template-columns: 1fr;
  }
  :root { --icon-size: 32px; }
}
