:root {
  color-scheme: dark;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 20% 0%, #1a1f2b 0%, transparent 60%),
    radial-gradient(1000px 700px at 100% 100%, #161a24 0%, transparent 55%),
    #0d0f13;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 48px);
}

.grid {
  width: 100%;
  max-width: 1400px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 1.8vw, 26px);
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 18px);
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  isolation: isolate;
}

/* subtle sheen overlay */
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), transparent 45%);
  z-index: 0;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  filter: saturate(1.08) brightness(1.05);
  outline: none;
}

.tile:active {
  transform: translateY(-2px) scale(1.0);
}

.logo {
  position: relative;
  z-index: 1;
  width: clamp(56px, 9vw, 96px);
  height: clamp(56px, 9vw, 96px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
}

.name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: .01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* Phones: 2 columns feel, taller-friendly tiles */
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .tile {
    aspect-ratio: 5 / 2;
    flex-direction: row;
    gap: 18px;
    border-radius: 16px;
  }
  .logo {
    width: 52px;
    height: 52px;
  }
  .name {
    font-size: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}
