@font-face {
  font-family: 'FFComma';
  src: url('assets/data/FFCommaTrial-Regular.ttf') format('truetype');
}
@font-face {
  font-family: "Vatsal-logo";
  src: url("assets/data/vatsal-logo-font.ttf") format("truetype");
  font-display: swap;
}
* { box-sizing: border-box; margin:0; padding:0; }

body {
  font-family: system-ui;
  background: radial-gradient(circle at top, #0a0a0a, #000);
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
.header {
  padding: 30px;
  text-align: center;
  font-family: 'Vatsal-logo', system-ui, sans-serif;}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-direction: column;   /* 👈 forces tagline below */
}

.logo-wrap img {
  width: 60px;
  border-radius: 10px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 10px 20px 20px;
}

.hero h2 {
  font-size: 2rem;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-content: center;
  padding: 34px 30px;
  width: 100%;
  max-width: 1650px;
  margin: 0 auto;
}

/* CARD */
.card {
  appearance: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.25s;
  border: 1px solid #222;
  background: #111;
  color: inherit;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  text-align: left;
  padding: 0;
}

.card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* HOVER */
.card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}
/* DISABLED */
.card.disabled {
  opacity: 0.3;
  cursor: default;
}

.card.disabled:hover {
  transform: none;
  box-shadow: none;
}

/* BRAND LINE */
.brand {
  font-family: 'Vatsal-logo', sans-serif;
  font-size: 48px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 1px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-link:hover,
.brand-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 14px rgba(0, 170, 255, 0.45));
}

.brand-link:focus-visible {
  outline: 2px solid rgba(125, 211, 252, 0.85);
  outline-offset: 8px;
  border-radius: 14px;
}

/* 🔥 LOGO SIZE FIX */
.inline-logo {
  width: 60px;
  height: 60px;            /* 🔥 make it square for full fill */
  object-fit: cover;       /* 🔥 fills entire box */
  object-position: center; /* keeps face centered */
  border-radius: 50%;      /* optional: clean circular look */
  cursor: pointer;
}

/* TAGLINE */
.tagline {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  max-width: 1000px;
  }
.random-game {
  appearance: none;
  margin-top: 2px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(125, 211, 252, 0.48);
  border-radius: 12px;
  background: rgba(125, 211, 252, 0.1);
  color: #fff;
  font-family: 'FFComma', system-ui, sans-serif;
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.random-game.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.random-game:hover,
.random-game:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.86);
  background: rgba(125, 211, 252, 0.18);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36);
  outline: none;
}
@keyframes tornadoSpin {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(180deg) scale(1.2); }
  50%  { transform: rotate(360deg) scale(0.9); }
  75%  { transform: rotate(720deg) scale(1.1); }
  100% { transform: rotate(1080deg) scale(1); }
}

.spin {
  animation: tornadoSpin 0.8s ease-in-out;
}
.card {
  position: relative;
}

.card::after {
  content: attr(data-title);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: 0.3s;
}

.card:hover::after {
  opacity: 1;
}
@keyframes idleBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes runAcross {
  0%   { transform: translateX(0); }
  100% { transform: translateX(120vw); }
}

@keyframes trailFade {
  0%   { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(120vw); }
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1080px;
  }

  .card {
    min-height: 210px;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 24px 16px 12px;
  }

  .brand {
    font-size: 38px;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    max-width: 520px;
    gap: 18px;
  }

  .card {
    min-height: 190px;
  }
}

/* FOOTER */
.vatsal-v2-footer {
  display: block;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 28px max(20px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-bottom));
  background: #000;
  text-align: center;
  font-family: "FFComma", system-ui, sans-serif;
}

.vatsal-v2-footer > div {
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
  margin: 0 auto;
}

.vatsal-v2-footer-intro {
  color: rgba(248, 250, 252, 0.84);
  font-family: inherit;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 400;
}

.vatsal-v2-footer h2 {
  margin: 18px 0 14px;
  color: #fff;
  font-family: "FFComma", system-ui, sans-serif;
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 0.95;
  font-weight: 400;
}

.vatsal-v2-footer p {
  margin: 0;
  color: rgba(248, 250, 252, 0.82);
  font-family: inherit;
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  line-height: 1.25;
}

.vatsal-v2-link-label {
  margin: 0 0 12px;
  color: rgba(248, 250, 252, 0.82);
  font-family: inherit;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.1;
}

.vatsal-v2-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.vatsal-v2-links a,
.vatsal-v2-links button,
.vatsal-v2-coffee-card a,
.vatsal-v2-coffee-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: #f8fafc;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.vatsal-v2-links a:hover,
.vatsal-v2-links a:focus-visible,
.vatsal-v2-links button:hover,
.vatsal-v2-links button:focus-visible,
.vatsal-v2-coffee-card a:hover,
.vatsal-v2-coffee-card a:focus-visible,
.vatsal-v2-coffee-close:hover,
.vatsal-v2-coffee-close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.72);
  background: rgba(125, 211, 252, 0.14);
  outline: none;
}

.vatsal-v2-links img,
.vatsal-v2-coffee-card a img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.vatsal-v2-coffee-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
}

.vatsal-v2-coffee-popup.is-open {
  display: grid;
}

.vatsal-v2-coffee-card {
  position: relative;
  width: min(360px, 100%);
  padding: 28px 22px 24px;
  text-align: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: #060606;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.vatsal-v2-coffee-card h3 {
  margin: 0 0 10px;
  font-family: "FFComma", system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 400;
}

.vatsal-v2-coffee-card p {
  margin: 0 auto 18px;
  color: rgba(248, 250, 252, 0.78);
  line-height: 1.45;
}

.vatsal-v2-coffee-card a {
  margin: 0 auto;
}

.vatsal-v2-coffee-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  font-size: 1.5rem;
}

@media (max-width: 680px) {
  .vatsal-v2-footer {
    padding: 20px 16px;
  }
}

.footer-profile-link{
    color:var(--primary);
    text-decoration:none;
    font-weight:700;
}

.footer-profile-link:hover{
    opacity:.8;
}