* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100vw;
  /* 100dvh adapts to mobile browser chrome (address bar);
     100vh fallback for older browsers */
  height: 100vh;
  height: 100dvh;
  background: black;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Fixed so it stays behind content even when mobile browser chrome shifts */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.text-box {
  /* Fluid type: scales from ~1.5rem on small phones to 3.75rem (60px) on desktop */
  font-size: clamp(1.5rem, 7vw, 3.75rem);
  font-family: 'Raleway', sans-serif;
  letter-spacing: clamp(2px, 1vw, 7px);
  word-spacing: clamp(4px, 1.5vw, 12px);
  text-transform: uppercase;
  color: rgb(238, 238, 238);
  text-align: center;
  padding: 0 1.5rem;
  max-width: 100%;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap replaces per-button margins — cleaner on all screen sizes */
  gap: clamp(12px, 3.5vw, 28px);
  padding: clamp(16px, 4vw, 24px) 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Fluid size: min 48px (touch target), max 58px */
  width: clamp(48px, 13vw, 58px);
  height: clamp(48px, 13vw, 58px);
  border: 1px solid rgba(255, 255, 255, .45);
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  /* Removes 300ms tap delay on iOS/Android */
  touch-action: manipulation;
  transition: background .22s, border-color .22s, color .22s, transform .2s;
}

.social-btn svg {
  width: clamp(22px, 5.5vw, 26px);
  height: clamp(22px, 5.5vw, 26px);
  /* Prevent SVG from shrinking in flex context */
  flex-shrink: 0;
}

.social-btn:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .9);
  color: #fff;
  transform: translateY(-3px);
}

/* Visible tap feedback on touch screens */
.social-btn:active {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .9);
  color: #fff;
  transform: translateY(-1px);
}
