:root {
  --bg: #12060d;
  --orange: #ff7a1a;
  --deep-orange: #ff4d00;
  --pink: #ff2e93;
  --hot-pink: #ff6ec7;
  --text: #fff1ea;
  --glass: rgba(24, 8, 16, 0.62);
}

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

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

body {
  font-family: "Comic Sans MS", "Comic Sans", "Comic Neue", "Chalkboard SE", cursive;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(18, 6, 13, 0.72), rgba(18, 6, 13, 0.82)),
    url("bg.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* floating glow blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
.b1 { width: 340px; height: 340px; background: var(--deep-orange); top: -80px; left: -80px; }
.b2 { width: 400px; height: 400px; background: var(--pink); bottom: -120px; right: -100px; animation-duration: 18s; }
.b3 { width: 220px; height: 220px; background: var(--orange); top: 45%; left: 55%; animation-duration: 22s; opacity: 0.3; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.2); }
}

/* ticker */
.ticker {
  position: relative;
  z-index: 2;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--deep-orange), var(--pink));
  color: #fff;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transform: rotate(-1deg) scale(1.03);
  box-shadow: 0 6px 24px rgba(255, 46, 147, 0.4);
}
.ticker-track { display: inline-block; padding-left: 100%; animation: scroll 40s linear infinite; }
@keyframes scroll { to { transform: translateX(-100%); } }

/* layout */
main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}

.tag { color: var(--hot-pink); font-size: 1rem; margin-bottom: 0.5rem; }

/* title: the one big moment */
h1 {
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
h1 span {
  display: inline-block;
  background: linear-gradient(180deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 77, 0, 0.45));
  opacity: 0;
  animation:
    pop 0.7s cubic-bezier(.3, 1.6, .5, 1) forwards,
    wobble 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s), calc(0.9s + var(--i) * 0.12s);
}
h1 span:nth-child(1)  { --i: 1; }
h1 span:nth-child(2)  { --i: 2; }
h1 span:nth-child(3)  { --i: 3; }
h1 span:nth-child(4)  { --i: 4; }
h1 span:nth-child(5)  { --i: 5; }
h1 span:nth-child(6)  { --i: 6; }
h1 span:nth-child(7)  { --i: 7; }
h1 span:nth-child(8)  { --i: 8; }
h1 span:nth-child(9)  { --i: 9; }
h1 span:nth-child(10) { --i: 10; }
h1 span:nth-child(11) { --i: 11; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-60px) rotate(-25deg) scale(0.3); }
  to   { opacity: 1; transform: none; }
}
@keyframes wobble {
  0%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-8px) rotate(-3deg); }
  75% { transform: translateY(5px) rotate(3deg); }
}

.sub { margin-top: 0.8rem; font-size: 1.2rem; opacity: 0.85; }

/* buttons */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.8rem 1rem 1.6rem;
  color: var(--text);
  text-decoration: none;
  background: var(--glass);
  border: 2px solid transparent;
  border-radius: 28px 10px 28px 10px;
  background-clip: padding-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s cubic-bezier(.3, 1.8, .5, 1), box-shadow 0.25s;
  transform: rotate(var(--tilt));
}
/* gradient border */
.card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), var(--pink));
}
.c1 { --tilt: -2deg; }
.c2 { --tilt: 1.5deg; border-radius: 10px 28px 10px 28px; }
.c3 { --tilt: 2deg;  border-radius: 10px 28px 10px 28px; }
.c4 { --tilt: -1.5deg; }

.card:hover, .card:focus-visible {
  transform: rotate(0deg) scale(1.08) translateY(-6px);
  box-shadow: 0 14px 40px rgba(255, 46, 147, 0.5), 0 0 30px rgba(255, 122, 26, 0.4);
  outline: none;
}
.card:focus-visible { outline: 3px dashed var(--hot-pink); outline-offset: 6px; }
.card:active { transform: rotate(0deg) scale(0.96); }

.icon { font-size: 3rem; transition: transform 0.4s; }
.card:hover .icon { animation: spin 0.6s ease; }
@keyframes spin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(200deg) scale(1.4); }
  100% { transform: rotate(360deg) scale(1); }
}

.name { font-size: 1.4rem; font-weight: bold; color: var(--hot-pink); }
.desc { font-size: 0.9rem; opacity: 0.75; }

footer { margin-top: 3.5rem; font-size: 0.95rem; opacity: 0.7; }
footer { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { opacity: 1; letter-spacing: 0.04em; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  h1 span { opacity: 1; }
}
