/* About (about.html, about.js): who we are, the music first, what happens here, how we play it, the games, one way in.
   Brand: night ground, lime for action, violet, DynaPuff titles, 24 px cards, one CTA per block, nothing in capitals. */
.ab-page { display: flex; flex-direction: column; gap: 24px; padding-top: 16px; }
.ab-page h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 46px; color: var(--ivory); }

/* the hero: the words on the left, the metronome on the right ticking on the beat (100 BPM, its rings going out) */
.ab-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 48px; border-radius: 32px;
  background: radial-gradient(60% 80% at 85% 40%, rgba(164, 123, 255, 0.35), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgba(210, 255, 77, 0.14), transparent 70%), var(--bg-1);
  border: 1px solid var(--line-subtle); overflow: hidden; }
.ab-hero-words { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ab-kicker { font-size: 15px; font-weight: 700; color: var(--lime); }
.ab-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 68px; color: var(--ivory); max-width: 12ch; }
.ab-lead { font-size: 20px; line-height: 31px; color: var(--tx-mid); max-width: 44ch; }
.ab-hero .btn-play { margin-top: 8px; }
.ab-hero-art { position: relative; display: grid; place-items: center; min-height: 360px; }
.ab-mascot { position: relative; z-index: 1; width: min(300px, 70%); height: auto; transform-origin: 50% 90%; animation: ab-bob 0.6s ease-in-out infinite alternate; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45)); }
.ab-ring { position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 3px solid var(--lime); opacity: 0; animation: ab-ring 1.2s ease-out infinite; }
.ab-ring.r2 { animation-delay: 0.4s; border-color: var(--violet); }
.ab-ring.r3 { animation-delay: 0.8s; border-color: var(--cyan); }
@keyframes ab-bob { from { transform: scale(1.03, 0.97); } to { transform: scale(0.98, 1.03) translateY(-6px); } }
@keyframes ab-ring { from { transform: scale(0.6); opacity: 0.7; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ab-mascot, .ab-ring { animation: none; } .ab-ring { opacity: 0.25; } .ab-ring.r2, .ab-ring.r3 { display: none; } }

/* the music first: one big statement */
.ab-music { padding: 48px; border-radius: 32px; color: var(--ivory); background: linear-gradient(135deg, #7650E6, #4B2FA8 70%); display: grid; gap: 16px; }
.ab-big { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 40px; max-width: 34ch; }
.ab-music p:not(.ab-big) { font-size: 18px; line-height: 29px; color: rgba(250, 247, 242, 0.85); max-width: 60ch; }

/* what happens here: four cards in the platform's colours */
.ab-here { display: grid; gap: 20px; }
.ab-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ab-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; color: var(--night); min-height: 220px; }
.ab-card.is-lime { background: var(--lime); }
.ab-card.is-pink { background: var(--pink); }
.ab-card.is-cyan { background: var(--cyan); }
.ab-card.is-violet { background: var(--violet); }
.ab-ico { width: 48px; height: 48px; border-radius: 16px; background: rgba(19, 19, 27, 0.12); display: grid; place-items: center; }
.ab-ico svg { width: 26px; height: 26px; fill: currentColor; }
.ab-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 26px; line-height: 30px; margin-top: auto; }
.ab-card p { font-size: 16px; line-height: 24px; font-weight: 500; }

/* how we play it: promises we keep, each tied to something the platform does */
.ab-fair { padding: 40px 48px; border-radius: 32px; border: 1px solid var(--line-subtle); display: grid; gap: 20px; }
.ab-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.ab-list li { position: relative; padding-left: 40px; font-size: 18px; line-height: 28px; color: var(--tx-mid); }
.ab-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--lime)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4Z' fill='%2313131B'/%3E%3C/svg%3E") center / 18px no-repeat; }
.ab-list b { color: var(--ivory); }

/* solo or with friends: the words and three steps, four seats lighting up in turn */
.ab-party { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 40px 48px; border-radius: 32px; border: 1px solid var(--line-subtle); }
.ab-party-words { display: grid; justify-items: start; gap: 16px; }
.ab-steps { list-style: none; display: grid; gap: 10px; }
.ab-steps li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 24px; color: var(--tx-mid); }
.ab-steps b { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--night); font-weight: 800; }
.ab-party-art { display: grid; grid-template-columns: repeat(2, 96px); gap: 14px; justify-content: center; }
.ab-seat { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 28px; color: var(--night); font-family: var(--font-display); font-weight: 600; font-size: 40px; animation: ab-seat 2.4s ease-in-out infinite; }
.ab-seat.is-lime { background: var(--lime); } .ab-seat.is-violet { background: var(--violet); animation-delay: 0.6s; }
.ab-seat.is-cyan { background: var(--cyan); animation-delay: 1.2s; } .ab-seat.is-pink { background: var(--pink); animation-delay: 1.8s; }
@keyframes ab-seat { 0%, 30%, 100% { transform: scale(1); filter: brightness(1); } 12% { transform: scale(1.08) rotate(-3deg); filter: brightness(1.12); } }
@media (prefers-reduced-motion: reduce) { .ab-seat { animation: none; } }

/* the games: one button to their page */
.ab-games { display: grid; gap: 20px; justify-items: start; padding: 40px 48px; border-radius: 32px; border: 1px solid var(--line-subtle); }
.ab-games-go { min-height: 52px; padding: 0 26px; font-size: 17px; }
.ab-games-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; }
.ab-games-head p { color: var(--tx-mid); font-size: 17px; }
.ab-games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ab-game { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--bg-1); border: 1px solid var(--line-subtle); color: var(--ivory); text-decoration: none; transition: transform 0.18s var(--ease), border-color 0.18s; }
.ab-game:hover { transform: translateY(-3px); border-color: var(--lime); }
.ab-game:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.ab-game-pic { display: block; aspect-ratio: 16 / 10; background: #0B0B11; overflow: hidden; }
.ab-game-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-game-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 20px 20px; }
.ab-game-head { display: flex; align-items: center; gap: 10px; }
.ab-game-head img { width: 36px; height: 36px; border-radius: 10px; }
.ab-game-head b { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 26px; }
.ab-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; background: var(--c); color: var(--night); font-size: 12px; font-weight: 700; }
.ab-game-line { color: var(--tx-mid); font-size: 15px; line-height: 22px; }
@media (prefers-reduced-motion: reduce) { .ab-game { transition: none; } .ab-game:hover { transform: none; } }

/* the way in: one lime block, one button */
.ab-close { display: grid; justify-items: start; gap: 14px; padding: 48px; border-radius: 32px; background: var(--lime); color: var(--night); }
.ab-close h2 { color: var(--night); }
.ab-close p { font-size: 20px; line-height: 30px; max-width: 46ch; font-weight: 500; }
.ab-close .pill-link { background: var(--night); color: var(--lime); min-height: 56px; padding: 0 30px; font-size: 18px; }

@media (max-width: 1100px) {
  .ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-hero h1 { font-size: 52px; line-height: 56px; }
}
@media (max-width: 860px) {
  .ab-hero { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .ab-hero-art { min-height: 260px; order: -1; }
  .ab-mascot { width: 200px; }
  .ab-ring { width: 200px; height: 200px; }
  .ab-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-list { grid-template-columns: minmax(0, 1fr); }
  .ab-party { grid-template-columns: minmax(0, 1fr); }
  .ab-party-art { order: -1; grid-template-columns: repeat(4, 64px); }
  .ab-seat { width: 64px; height: 64px; border-radius: 20px; font-size: 28px; }
}
@media (max-width: 600px) {
  .ab-page h2 { font-size: 30px; line-height: 36px; }
  .ab-hero { padding: 24px 20px; border-radius: 28px; gap: 16px; }
  .ab-hero-art { min-height: 170px; }   /* (the metronome smaller: the words and Find your game on the first screen) */
  .ab-mascot { width: 128px; }
  .ab-ring { width: 130px; height: 130px; }
  .ab-hero h1 { font-size: 36px; line-height: 40px; }
  .ab-lead { font-size: 17px; line-height: 27px; }
  .ab-hero .btn-play { width: 100%; justify-content: center; }
  .ab-music, .ab-fair, .ab-close, .ab-party, .ab-games { padding: 28px 20px; border-radius: 28px; }
  .ab-party .btn-play { width: 100%; justify-content: center; min-height: 64px; font-size: 19px; padding: 0 6px 0 22px; }
  .ab-party .btn-play .btn-play-ico { width: 52px; height: 52px; }
  .ab-party-art { grid-template-columns: repeat(4, 56px); gap: 10px; }
  .ab-seat { width: 56px; height: 56px; border-radius: 18px; font-size: 24px; }
  .ab-big { font-size: 24px; line-height: 32px; }
  .ab-cards, .ab-games-grid { grid-template-columns: minmax(0, 1fr); }
  .ab-card { min-height: 0; }
}
