:root {
  --text: #e9eefc;
  --stroke: #ffffff30;
   --card-w: clamp(300px, 15%, 600px); /* adjust for slimmer/wider */
}

/* FULL vibrant background */
html, body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 12% 10%, #273b7aff 0%, #12162400 60%),
    radial-gradient(900px 900px at 88% 22%, #1f8bd1ff 0%, #12162400 62%),
    radial-gradient(800px 700px at 50% 90%, #7839f4aa 0%, #12162400 60%),
    linear-gradient(180deg, #0a0c12, #121826 60%, #0e1220);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* subtle grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'>\
  <filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/>\
  <feColorMatrix type='saturate' values='0'/>\
  <feComponentTransfer><feFuncA type='table' tableValues='0 0 0 .12'/></feComponentTransfer></filter>\
  <rect width='100%' height='100%' filter='url(#f)'/></svg>");
  mix-blend-mode: overlay;
}

.wrap{
  min-height: 100dvh;      /* was 100vh */
  box-sizing: border-box;  /* include padding in the height */
  display: grid;
  place-items: center;
  padding: 28px 16px;
}


.stack {
  width: 100%;
  max-width: var(--card-w);
}

h1 {
  text-align: center;
  margin: 0 0 16px;
  font-weight: 700;
  text-shadow: 0 1px 0 #0006;
}

.grid {
  display: grid;
  gap: 10px;
}

/* Glass button */
.app {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff24, #ffffff10);
  border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 #ffffff3a, 0 10px 24px rgba(0,0,0,.45);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  overflow: hidden;
  isolation: isolate;
  transform: translateY(10px);
  opacity: 0;
  animation: rise .55s cubic-bezier(.2,.65,.2,1) forwards;
}

.app:nth-child(1){animation-delay:.05s}
.app:nth-child(2){animation-delay:.12s}
.app:nth-child(3){animation-delay:.19s}
.app:nth-child(4){animation-delay:.26s}
.app:nth-child(5){animation-delay:.33s}
.app:nth-child(6){animation-delay:.40s}
.app:nth-child(7){animation-delay:.47s}

@keyframes rise {
  from { transform: translateY(16px) scale(.98); opacity: 0 }
  to   { transform: none; opacity: 1 }
}

.ico {
  width: 30px;
  height: 30px;
  min-width: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff22, #ffffff0f);
  border: 1px solid #ffffff2e;
  box-shadow: inset 0 1px 0 #ffffff33;
}

.app i {
  font-size: 15px;
}

.label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Cursor-follow highlight */
.app::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #7ec4ff90 0%, #7ec4ff25 40%, transparent 70%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  z-index: -1;
}

.app:hover {
  border-color: #ffffff55;
  box-shadow: inset 0 1px 0 #ffffff55, 0 16px 34px rgba(0,0,0,.5);
}
.app:hover::before {
  opacity: .38;
}

@media (prefers-reduced-motion: reduce) {
  .app { animation: none; transform: none; opacity: 1 }
  .app::before { transition: none }
}
