:root {
  --purple: #6a25b8;
  --purple-deep: #2e0d5a;
  --purple-soft: #f3edff;
  --pink: #ff2e93;
  --pink-soft: #ffe5f1;
  --yellow: #ffdc1f;
  --lime: #b6ee2a;
  --lime-deep: #6db300;
  --ink: #14082a;
  --ink-soft: #4a3d63;
  --paper: #fbf9fd;
  --cream: #fff1f9;
  --line: rgba(20, 8, 42, 0.08);
  --shadow: 0 14px 0 rgba(20, 8, 42, 0.12);
  --radius: 22px;

  --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 800px 500px at 15% 5%, rgba(255, 46, 147, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 15%, rgba(106, 37, 184, 0.08), transparent 60%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
  color: var(--purple-deep);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(251, 249, 253, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--purple-deep);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  box-shadow: 0 4px 12px rgba(106, 37, 184, 0.25);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
  color: white;
}

.brand-text {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--purple-deep);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 56px) clamp(72px, 11vw, 140px);
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 32px;
  animation: float 6s ease-in-out infinite;
}

.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(ellipse at center, rgba(255, 220, 31, 0.35) 0%, rgba(255, 46, 147, 0.18) 35%, transparent 65%);
  filter: blur(18px);
  z-index: 0;
  border-radius: 50%;
}

.hero-logo {
  height: clamp(200px, 34vh, 280px);
  width: auto;
  max-width: 90vw;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 32px rgba(106, 37, 184, 0.28));
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--pink);
  font-weight: 600;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(44px, 7.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 24px;
  color: var(--purple-deep);
}

.hero h1 br {
  display: block;
}

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  max-width: 540px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid var(--ink);
}

.btn-primary {
  background: var(--ink);
  color: var(--yellow);
  box-shadow: 0 4px 0 rgba(20, 8, 42, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 8, 42, 0.25);
  background: var(--purple-deep);
  border-color: var(--purple-deep);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 rgba(20, 8, 42, 0.2);
}

.btn-ghost {
  background: white;
  color: var(--ink);
  box-shadow: 0 4px 0 rgba(20, 8, 42, 0.08);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  background: var(--purple-soft);
  box-shadow: 0 6px 14px rgba(20, 8, 42, 0.1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 19px;
}

/* Hero confetti bursts */
.hero-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.burst {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(0.5px);
}

.burst-1 {
  background: var(--pink);
  width: 8px;
  height: 8px;
  top: 22%;
  left: 14%;
  animation: drift 8s ease-in-out infinite;
}

.burst-2 {
  background: var(--lime);
  top: 32%;
  right: 18%;
  width: 6px;
  height: 6px;
  animation: drift 11s ease-in-out infinite reverse;
}

.burst-3 {
  background: var(--yellow);
  bottom: 28%;
  left: 22%;
  width: 10px;
  height: 10px;
  animation: drift 9s ease-in-out infinite;
}

.burst-4 {
  background: var(--purple);
  bottom: 22%;
  right: 16%;
  width: 7px;
  height: 7px;
  animation: drift 10s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
}

/* ---------- Section head ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 7vw, 72px);
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Games ---------- */
.games {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 56px);
  max-width: 1180px;
  margin: 0 auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card-playable {
  cursor: pointer;
}

.card-playable:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 0 var(--ink);
}

.card-playable:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.play-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid var(--yellow);
  z-index: 3;
  transition: transform 0.15s ease;
}

.card-playable:hover .play-badge {
  transform: scale(1.08) rotate(4deg);
}

.card-status-live {
  color: var(--pink) !important;
}

.dot-live {
  background: var(--pink) !important;
  box-shadow: 0 0 0 4px rgba(255, 46, 147, 0.22) !important;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--ink);
}

.card-art {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.card-tick .card-art {
  background: linear-gradient(135deg, #ffdc1f 0%, #ff9a1f 100%);
}

.card-stickly .card-art {
  background: linear-gradient(135deg, #b6ee2a 0%, #5fb12a 100%);
}

.card-onetap .card-art {
  background: linear-gradient(135deg, #ff2e93 0%, #6a25b8 100%);
}

/* Tick art */
.card-tick .tick {
  font-size: 80px;
  display: block;
  animation: jiggle 1.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.15));
}
.card-tick .tick.small {
  position: absolute;
  font-size: 36px;
  top: 28px;
  left: 30px;
  animation-delay: 0.3s;
}
.card-tick .tick.tiny {
  position: absolute;
  font-size: 28px;
  bottom: 24px;
  right: 32px;
  animation-delay: 0.6s;
}

@keyframes jiggle {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }
  50% {
    transform: rotate(8deg) translateY(-6px);
  }
}

/* Stickly art */
.stickman {
  width: 110px;
  height: 130px;
  fill: white;
  stroke: white;
  stroke-width: 8;
  stroke-linecap: round;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.18));
  animation: wave 2.4s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

/* One Tap art */
.tap-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  animation: pulse 1.6s ease-out infinite;
}

.ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.85);
  animation: ripple 1.6s ease-out infinite;
}

.ripple.r2 {
  animation-delay: 0.5s;
}

.ripple.r3 {
  animation-delay: 1s;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.card-tag {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--pink);
  font-weight: 600;
  margin: 0;
}

.game-card h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}

.card-desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.card-status {
  margin: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime-deep);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(126, 196, 15, 0.2);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------- About ---------- */
.about {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 56px);
  background: var(--purple-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255, 46, 147, 0.18), transparent 35%),
    radial-gradient(circle at 88% 80%, rgba(255, 220, 31, 0.10), transparent 40%);
  pointer-events: none;
}

.about > * {
  position: relative;
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about .eyebrow {
  color: var(--yellow);
}

.about h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: white;
}

.about-copy p {
  font-size: 17px;
  color: rgba(255, 241, 249, 0.82);
  margin: 0 0 18px;
  line-height: 1.65;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 56px);
  text-align: center;
  background: var(--lime);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
}

.contact-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.contact h2 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--purple-deep);
  margin-bottom: 14px;
}

.contact-sub {
  max-width: 480px;
  margin: 0 auto 36px;
  color: rgba(26, 11, 48, 0.8);
  font-size: 17px;
}

/* Contact form */
.contact-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--purple-deep);
  letter-spacing: 0.02em;
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  width: 100%;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__btn {
  align-self: center;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact-form__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--ink);
}

.contact-form__btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}

.contact-form__btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.contact-form__status {
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin: 4px 0 0;
  min-height: 1.4em;
}

.contact-form__status--success {
  color: var(--lime-deep);
}

.contact-form__status--error {
  color: #c41a4a;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- Responsive nudges ---------- */
@media (max-width: 560px) {
  .brand-text {
    display: none;
  }
  .hero h1 {
    line-height: 1;
  }
}
