/* Akka Pakka website: shared styles for the home page and the help pages */

:root {
  --cream: #fdf1c7;
  --peach: #fbddbe;
  --ink: #3b2410;
  --ink-soft: #5c4630;
  --ink-muted: #6b5540;
  --link: #8a4b12;
  --link-hover: #5c300a;
  --pink: #db2777;
  --yellow: #f6b400;
  --yellow-edge: #d99300;
  --tan: #e9c98f;
  --tan-soft: #f3d9a6;
  --footer: #3b2410;
  --footer-text: #fdf1c7;
  --footer-muted: #e8d2b0;
  --focus: #0284c7;
  --font-display: 'Baloo Tamma 2', 'Noto Sans Kannada', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-kannada: 'Noto Sans Kannada', 'Baloo Tamma 2', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

/* ---------- Logo ---------- */

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__icon {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
}

.logo__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.logo__row {
  display: flex;
  gap: 4px;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 36px;
  padding-top: 4px;
  border: 1px solid;
  border-bottom-width: 4px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.tile--blue {
  background: #38bdf8;
  border-color: #0ea5e9;
}

.tile--pink {
  background: #f472b6;
  border-color: #ec4899;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--tan);
  border-bottom-width: 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

.btn-outline:hover {
  color: var(--ink);
  background: #fffaf0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 68px;
  padding: 6px 34px 0;
  border: 2px solid var(--yellow-edge);
  border-bottom-width: 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.1s ease;
}

.btn-primary:hover {
  color: var(--ink);
  background: #ffc21a;
}

.btn-primary:active {
  transform: translateY(3px);
}

.btn-primary svg {
  margin-top: -4px;
}

.btn-primary--small {
  min-height: 60px;
  padding: 5px 30px 0;
  font-size: 24px;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.hero__text {
  display: flex;
  flex: 1 1 480px;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #2f5f2b;
  font-size: 15px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 5.6vw, 80px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.5px;
}

.hero h1 .kn {
  color: var(--pink);
}

.hero h1 .line {
  display: block;
}

.hero__lead {
  max-width: 520px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 21px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.qr-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 3px 0 var(--tan);
  color: var(--ink-soft);
}

.qr-card img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  image-rendering: pixelated;
}

.qr-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
}

.qr-card__title {
  font-size: 14px;
  font-weight: 700;
}

.qr-card__url {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

/* The QR code is for computers: hide it on touch phones and tablets */
@media (hover: none) and (pointer: coarse) {
  .qr-card {
    display: none;
  }
}

.hero__art {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  height: 580px;
}

.hero__shadow {
  position: absolute;
  left: 6%;
  bottom: 18px;
  width: 82%;
  height: 64px;
  border-radius: 50%;
  background: #e8c590;
  opacity: 0.55;
}

.hero__phone {
  position: absolute;
  top: 4px;
  right: 2%;
  width: 236px;
  transform: rotate(7deg);
}

.hero__elephant {
  position: absolute;
  left: 0;
  bottom: 30px;
  width: 74%;
  max-width: 430px;
}

.hero__elephant img {
  width: 100%;
  height: auto;
}

.star {
  position: absolute;
}

.star--big {
  left: 4%;
  top: 40px;
  transform: rotate(-12deg);
}

.star--small {
  left: 40%;
  top: 6px;
  transform: rotate(10deg);
}

.float-letter {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--tan-soft);
  border-bottom-width: 6px;
  border-radius: 20px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 800;
}

.float-letter--a {
  left: 30%;
  top: 120px;
  width: 72px;
  height: 76px;
  color: var(--pink);
  font-size: 42px;
  transform: rotate(-8deg);
}

.float-letter--ka {
  left: 0;
  top: 230px;
  width: 60px;
  height: 64px;
  border-radius: 18px;
  color: #0369a1;
  font-size: 34px;
  transform: rotate(6deg);
}

/* ---------- Phone frame ---------- */

.phone {
  width: 230px;
  aspect-ratio: 390 / 844;
  flex-shrink: 0;
  padding: 8px;
  border-radius: 24px;
  background: #231a12;
  box-shadow: 0 22px 40px rgba(59, 36, 16, 0.22);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
}

/* ---------- Games ---------- */

.wave {
  display: block;
  width: 100%;
  height: 90px;
  margin-bottom: -1px;
}

.games {
  padding: 48px 0 104px;
  background: var(--peach);
}

.games__inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.eyebrow {
  color: var(--link);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.05;
}

.section-head p {
  max-width: 600px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.55;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 540px;
  padding: 30px 24px 0;
  overflow: hidden;
  border: 2px solid;
  border-bottom-width: 7px;
  border-radius: 32px;
  text-align: center;
}

.game h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.game p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
}

.game--green { background: #dff3d2; border-color: #b5dda0; color: #24481f; }
.game--blue { background: #d9f0fb; border-color: #a9d8f0; color: #0b4a6b; }
.game--pink { background: #fce1ec; border-color: #f3b5cd; color: #7a1d47; }
.game--butter { background: #fff0bf; border-color: #f2d27a; color: #5b3a00; }
.game--lilac { background: #ece6fa; border-color: #cdbff0; color: #3f2e73; }
.game--peach { background: #fde3d3; border-color: #f5bfa0; color: #7c2d12; }

.more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more__label {
  color: var(--ink-soft);
}

.more li {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}

.more li.more__label {
  padding-inline: 0 4px;
  background: none;
  font-size: 16px;
  font-weight: 800;
}

.center {
  display: flex;
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 20px;
  background: var(--footer);
  color: var(--footer-text);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.site-footer a {
  color: var(--footer-text);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-nav a[aria-current='page'] {
  color: var(--yellow);
}

.verse {
  margin: 0;
  color: var(--tan-soft);
  font-family: var(--font-kannada);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.copyright {
  margin: 0;
  color: var(--footer-muted);
  font-size: 14px;
  text-align: center;
}

/* ---------- Help pages (FAQ, Privacy, Terms, Credits) ---------- */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 96px;
}

.page h1 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}

.page__updated {
  margin: 0 0 28px;
  color: var(--ink-muted);
  font-size: 15px;
}

.card {
  padding: 8px 40px 40px;
  border: 2px solid var(--tan-soft);
  border-bottom-width: 6px;
  border-radius: 28px;
  background: #fff;
}

.doc h2 {
  margin: 32px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.doc h3 {
  margin: 18px 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.doc p,
.doc li {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
}

.doc ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 22px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  border: 2px solid var(--tan-soft);
  border-bottom-width: 5px;
  border-radius: 22px;
  background: #fff;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 16px 22px;
  border-radius: 20px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--link);
  font-size: 22px;
  font-weight: 800;
}

.faq details[open] summary::after {
  content: '–';
}

.faq summary:focus-visible {
  outline-offset: -3px;
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

.page__note {
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack .card {
  padding: 32px 40px;
}

.stack .card h2 {
  margin-top: 0;
}

.credits-love {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.credits-love h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.credits-love .kn {
  color: #b91c1c;
  font-family: var(--font-kannada);
  font-weight: 600;
}

.people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 0;
}

.people dt {
  font-size: 18px;
  font-weight: 800;
}

.people dd {
  margin: 2px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.lic {
  margin-left: 6px;
  color: #7a5c3d;
  font-size: 13px;
  font-weight: 800;
}

.verse--page {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .wrap {
    padding-inline: 16px;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 12px;
    padding-block: 16px;
  }

  .site-header .btn-outline {
    flex-shrink: 0;
    padding: 0 16px;
    font-size: 15px;
  }

  .logo {
    gap: 10px;
  }

  .qr-card {
    display: none;
  }

  .logo__icon {
    width: 60px;
    height: 60px;
  }

  .tile {
    width: 24px;
    height: 29px;
    padding-top: 3px;
    border-bottom-width: 3px;
    border-radius: 8px;
    font-size: 15px;
  }

  .logo__row {
    gap: 3px;
  }

  .hero {
    gap: 24px;
    padding-top: 8px;
    padding-bottom: 48px;
  }

  .hero__text {
    flex-basis: 100%;
  }

  .hero__lead {
    font-size: 18px;
  }

  .btn-primary {
    width: 100%;
    font-size: 24px;
  }

  .hero__art {
    flex-basis: 100%;
    height: 400px;
  }

  .hero__phone {
    width: 160px;
  }

  .hero__elephant {
    width: 70%;
    bottom: 20px;
  }

  .float-letter--a {
    top: 70px;
    left: 34%;
    width: 56px;
    height: 60px;
    font-size: 32px;
  }

  .float-letter--ka {
    top: 160px;
  }

  .games {
    padding-bottom: 72px;
  }

  .page {
    padding-inline: 16px;
  }

  .card,
  .stack .card {
    padding-inline: 22px;
  }
}
