@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito:wght@700;800;900;1000&display=swap');

:root {
  --ink: #30263a;
  --muted: #74647f;
  --soft: #f8eef5;
  --paper: #ffffff;
  --card: #fffefe;
  --line: rgba(88, 65, 99, 0.12);
  --pink: #ff6ea8;
  --orange: #ff9824;
  --yellow: #ffd76b;
  --mint: #53dfb9;
  --shadow: 0 10px 28px rgba(84, 53, 98, 0.08);
  --font-cute: "Baloo 2", "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
  color: var(--ink);
  font-family: var(--font-cute);
  line-height: 1.68;
  background: linear-gradient(180deg, #fff8fc 0%, #f8fffd 52%, #fff8ec 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  display: none !important;
  content: none !important;
}

a {
  color: #c63c7a;
  text-decoration: none;
  font-weight: 900;
}

a:hover {
  text-decoration: none;
}

.legal-shell {
  width: min(860px, calc(100% - 52px));
  margin: 0 auto;
  padding: max(44px, calc(env(safe-area-inset-top) + 30px)) 0 max(70px, calc(env(safe-area-inset-bottom) + 44px));
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0 0 22px;
  padding: 0;
  background: transparent;
}

.legal-back {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 9px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange) 62%, var(--yellow));
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 8px 18px rgba(255,109,169,.16), inset 0 1px 0 rgba(255,255,255,.42);
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.legal-back-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.22);
  font-size: 22px;
  line-height: 1;
}

.brand-link,
.top-links,
.legal-topbar .brand-link,
.legal-topbar .top-links {
  display: none !important;
}

.legal-card {
  overflow: hidden;
  border: 1px solid rgba(116, 92, 130, 0.1);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-hero {
  padding: clamp(34px, 4.2vw, 54px) clamp(30px, 5vw, 62px) 28px;
  background: linear-gradient(135deg, rgba(255, 110, 168, 0.11), rgba(255, 216, 113, 0.08) 42%, rgba(83, 223, 185, 0.1));
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #8a4f66;
  background: rgba(255, 110, 168, .12);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 740px;
  margin: 15px 0 12px;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: #63546f;
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 750;
}

.legal-content {
  padding: clamp(34px, 4.5vw, 56px) clamp(30px, 5vw, 62px) clamp(42px, 5vw, 68px);
  background: var(--paper);
}

.legal-content section {
  max-width: 760px;
}

.legal-content section + section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  margin: 0 0 14px;
  color: #4f415b;
  font-weight: 650;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 12px 0 0;
  padding-left: 21px;
  color: #4f415b;
  font-weight: 650;
}

li + li {
  margin-top: 9px;
}

.note-box {
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 110, 168, 0.16);
  border-radius: 22px;
  background: #fff8fb;
  color: #5f4f6a;
  box-shadow: none;
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(116, 92, 130, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(84, 53, 98, 0.05);
  transform: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  will-change: auto !important;
}

.legal-footer nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-footer a {
  color: #6a5475;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(116, 92, 130, 0.08);
}

@media (min-width: 1180px) {
  .legal-shell {
    width: min(900px, calc(100% - 220px));
    padding-top: max(84px, calc(env(safe-area-inset-top) + 64px));
    padding-bottom: max(110px, calc(env(safe-area-inset-bottom) + 84px));
  }

  .legal-card {
    border-radius: 38px;
  }
}

@media (min-width: 1600px) {
  .legal-shell {
    width: min(940px, calc(100% - 320px));
  }
}

@media (max-width: 720px) {
  .legal-shell {
    width: min(100% - 34px, 560px);
    padding-top: max(26px, calc(env(safe-area-inset-top) + 16px));
    padding-bottom: max(54px, calc(env(safe-area-inset-bottom) + 34px));
  }

  .legal-topbar {
    margin-bottom: 16px;
  }

  .legal-card {
    border-radius: 30px;
  }

  .legal-hero {
    padding: 30px 24px 24px;
  }

  .legal-content {
    padding: 30px 24px 38px;
  }

  .legal-content section + section {
    margin-top: 28px;
    padding-top: 25px;
  }

  .legal-footer {
    justify-content: center;
    text-align: center;
    margin-top: 18px;
  }

  .legal-footer nav {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .legal-shell {
    width: min(100% - 30px, 520px);
  }

  .legal-back {
    min-height: 44px;
    padding: 7px 12px 7px 8px;
  }

  .legal-back-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  h1 {
    font-size: clamp(31px, 10vw, 38px);
  }

  .legal-hero {
    padding: 28px 22px 22px;
  }

  .legal-content {
    padding: 28px 22px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* V80: legal pages use the same cute site font */
body, button, input, textarea { font-family: var(--font-cute) !important; letter-spacing: .004em; }


/* V111: launch-ready game guide, navigation, FAQ and content components. */
.content-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px clamp(22px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: #fffdfd;
}

.content-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(116, 92, 130, .10);
  background: #fff;
  color: #6e5878;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  box-shadow: 0 6px 15px rgba(84,53,98,.04);
}

.quick-steps,
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.info-tile {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(116, 92, 130, .10);
  border-radius: 22px;
  background: #fffafd;
}

.info-tile > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,110,168,.17), rgba(255,216,113,.23));
  color: #92536e;
  font-weight: 1000;
}

.info-tile strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.1;
}

.info-tile p { margin: 0; font-size: 14px; line-height: 1.48; }

.fruit-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.fruit-chain-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 9px 12px;
  border-radius: 22px;
  border: 1px solid rgba(116, 92, 130, .10);
  background: linear-gradient(180deg, #fff, #fff9fc);
  text-align: center;
}

.fruit-chain-item img {
  width: 74px;
  height: 74px;
  display: block;
  object-fit: contain;
}

.fruit-chain-item strong {
  min-height: 35px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1.08;
}

.fruit-chain-item span {
  color: #8a758f;
  font-size: 11px;
  font-weight: 900;
}

.fruit-chain-arrow { display: none; }

.score-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
  border: 1px solid rgba(116, 92, 130, .10);
  border-radius: 22px;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.score-table th,
.score-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: #4f415b;
  font-weight: 750;
}

.score-table th {
  background: #fff8fb;
  color: #6c5677;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.score-table th:last-child,
.score-table td:last-child { text-align: right; }
.score-table tbody tr:last-child td { border-bottom: 0; }

.number-list {
  margin: 15px 0;
  padding-left: 24px;
  color: #4f415b;
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.page-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border: 1px solid rgba(255,255,255,.76);
  box-shadow: 0 10px 22px rgba(255,109,169,.14);
  font-size: 13px;
  font-weight: 1000;
}

.page-cta.secondary {
  color: #6b5575;
  background: #fff;
  border-color: rgba(116,92,130,.12);
  box-shadow: none;
}

.faq-list { display: grid; gap: 10px; margin-top: 16px; }

.faq-list details {
  border: 1px solid rgba(116,92,130,.10);
  border-radius: 20px;
  background: #fffafd;
  overflow: hidden;
}

.faq-list summary {
  position: relative;
  padding: 16px 48px 16px 17px;
  cursor: pointer;
  color: #47374f;
  font-weight: 1000;
  line-height: 1.3;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 10px;
  background: rgba(255,110,168,.10);
  color: #a75278;
  font-size: 20px;
  line-height: 1;
}

.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { padding: 0 17px 17px; margin: 0; }

.not-found-section { text-align: center; }
.not-found-fruit { font-size: 58px; margin-bottom: 12px; }
.not-found-section .cta-row { justify-content: center; }

@media (max-width: 720px) {
  .content-nav { gap: 6px; padding: 13px 18px; }
  .content-nav a { min-height: 34px; padding: 7px 10px; font-size: 11px; }
  .quick-steps, .control-grid { grid-template-columns: 1fr; }
  .fruit-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fruit-chain-item img { width: 70px; height: 70px; }
  .cta-row { display: grid; grid-template-columns: 1fr; }
  .page-cta { width: 100%; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .fruit-chain { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
