/* Kimbo: Jungle Swing. Everything hangs from a vine; everything swings a little. */
@font-face { font-family: Lilita; src: url(fonts/LilitaOne-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; src: url(fonts/Poppins-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 700; src: url(fonts/Poppins-Bold.woff2) format("woff2"); font-display: swap; }

:root {
  --night: #06191d; --deep: #0b2a30; --moss: #14403f; --mist: #bcd3cf; --cream: #fff3d9;
  --banana: #ffc53a; --bark: #3a2208; --leaf: #62d466; --line: #2f5a55;
  --gut: clamp(1.15rem, 5vw, 5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 1.06rem/1.65 Poppins, "Trebuchet MS", sans-serif; overflow-x: hidden; }
h1, h2, .brand, .btn, .big, .beats strong { font-family: Lilita, "Arial Black", sans-serif; font-weight: 400; line-height: 1.02; }
h3 { font-family: Lilita, "Arial Black", sans-serif; font-weight: 400; line-height: 1.15; margin: 0; }
a { color: var(--banana); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 6px; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol, dl { margin: 0; padding: 0; }
.fine, .updated { font-size: .88rem; color: var(--mist); }
.lead { font-size: clamp(1.12rem, 2.2vw, 1.4rem); line-height: 1.5; max-width: 34em; }
.skip { position: absolute; left: -999px; top: 0; background: var(--banana); color: var(--bark); padding: .6rem 1rem; z-index: 9; }
.skip:focus { left: 0; }

.btn { display: inline-block; background: var(--banana); color: var(--bark); text-decoration: none; font-size: 1.35rem; padding: .85em 1.3em .8em; border-radius: .8em; box-shadow: 0 .28em 0 #c27d14, 0 1em 2em #0008; transform-origin: 50% -3em; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); }
.btn:active { transform: translateY(.2em); box-shadow: 0 .08em 0 #c27d14; }
.btn.small { font-size: 1rem; padding: .6em .9em; border-radius: .7em; white-space: nowrap; }

.top { position: absolute; inset: 0 0 auto; z-index: 3; display: flex; align-items: center; gap: 1.2rem; padding: 1rem var(--gut); }
.inner .top { position: static; border-bottom: 2px solid var(--deep); }
.brand { display: inline-flex; line-height: 0; text-decoration: none; }
.brand img { height: 3.4rem; width: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
a.by { display: inline-flex; align-items: center; gap: .5em; color: var(--mist); text-decoration: none; font-size: .92rem; padding: .4em 0; white-space: nowrap; }
a.by:hover { color: var(--cream); }
.by img { width: 11.8em; height: auto; }
.top nav { margin-left: auto; }
.top ul { display: flex; gap: 1.3rem; list-style: none; }
.top nav a { color: var(--cream); text-decoration: none; padding: .5em 0; display: inline-block; }
.top nav a:hover, .top nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--banana); text-decoration-thickness: 3px; }

/* What hangs: a vine above, and a pendulum around its top. */
.hang { --w: 17rem; --rope: 12rem; --above: 14rem; position: relative; width: var(--w); margin: 0; padding-top: var(--rope); transform-origin: 50% 0; animation: swing 7s ease-in-out infinite alternate; will-change: transform; }
.hang::before { content: ""; position: absolute; left: calc(50% - 4px); top: calc(-1 * var(--above)); height: calc(var(--rope) + var(--above) + 4px); width: 8px; background: repeating-linear-gradient(155deg, #2d4a1c 0 7px, #54762c 7px 11px, #20360f 11px 17px); border-radius: 5px; }
.hang::after { content: ""; position: absolute; left: calc(50% - 11px); top: calc(var(--rope) - 16px); width: 22px; height: 30px; background: radial-gradient(circle at 40% 30%, #6f9138, #2a4416 75%); border-radius: 45% 55% 50% 50%; }
.phone { position: relative; border-radius: 2.1rem; overflow: hidden; border: 7px solid #020b0d; box-shadow: 0 0 0 2px #35605a, 0 2.4rem 4rem #000a; background: #020b0d; }
.phone img { width: 100%; }
@keyframes swing { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }

.hero { position: relative; min-height: min(100vh, 60rem); display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem; padding: 6rem var(--gut) 3rem; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -2rem; z-index: -1; background: linear-gradient(to bottom, #06191d55, #06191d44 55%, var(--night) 96%), linear-gradient(100deg, #06191ddd 5%, #06191d22 60%), url(media/bg-jungle.webp) center/cover; }
.hero h1 { margin: 0 0 1.4rem; font-size: clamp(3.9rem, 11.5vw, 9.6rem); line-height: .82; transform: rotate(-3deg); transform-origin: 0 50%; text-shadow: 0 .05em 0 #02100f, 0 .1em .25em #000a; }
.hero h1 span { display: block; }
.hero h1 .kimbo { font-size: .27em; color: #0d3414; background: var(--leaf); display: table; padding: .28em .8em .22em; border-radius: 2em; text-shadow: none; margin-bottom: .65em; letter-spacing: .06em; }
.hero h1 .w2 { color: var(--banana); margin-left: .28em; }
.btn.soon, .btn.soon:hover, .btn.soon:active { background: none; color: var(--banana); box-shadow: inset 0 0 0 3px var(--banana); transform: none; }
.facts { font-weight: 700; color: var(--mist); font-size: .98rem; }
.app-icon { width: 4.5rem; height: 4.5rem; border-radius: 22%; margin-top: 1.4rem; box-shadow: 0 6px 18px rgba(0,0,0,.4), 0 0 0 2px rgba(255,255,255,.18); display: block; }
.cta { margin: 1.8rem 0 1.3rem; }
.hang-hero { --w: min(21rem, 78vw); --rope: 5rem; --above: 0rem; justify-self: center; align-self: start; margin-top: -1.6rem; }
.hang-hero::before { -webkit-mask: linear-gradient(transparent, #000 60%); mask: linear-gradient(transparent, #000 60%); }

.beats { padding: 4.5rem var(--gut) 3.5rem; }
.beats ol { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 1.5rem; }
.beats li:nth-child(2) { transform: translateY(-1.6rem) rotate(-2deg); }
.beats strong { display: block; font-size: clamp(2.6rem, 8vw, 6.4rem); color: var(--banana); }
.beats li:nth-child(2) strong { color: var(--leaf); }
.beats span { font-size: clamp(1rem, 2.4vw, 1.5rem); color: var(--mist); }
.beats > p { max-width: 44em; margin: 2.2rem 0 0; }

.trailer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem clamp(2rem, 8vw, 7rem); padding: 2rem var(--gut) 5rem; }
.trailer video { width: min(100%, 20rem); height: auto; aspect-ratio: 9 / 16; border-radius: 1.6rem; background: #020b0d; box-shadow: 0 0 0 2px #35605a, 0 2.4rem 4rem #000a; }
.trailer h2 { margin-bottom: .6rem; }
.trailer p { margin: 0; color: var(--mist); }
.gallery { display: flex; justify-content: center; gap: clamp(1.2rem, 5vw, 5rem); padding: 0 var(--gut) 5rem; background: linear-gradient(var(--night), var(--deep)); overflow: hidden; border-top: 0; }
.gallery .hang { --w: min(15.5rem, 19vw); }
.gallery .h4 { --rope: 6rem; animation-duration: 7.6s; animation-delay: -2s; }
.gallery .h1 { --rope: 4rem; animation-duration: 6.2s; }
.gallery .h2 { --rope: 9rem; animation-duration: 8.1s; animation-delay: -3s; }
.gallery .h3 { --rope: 2rem; animation-duration: 7s; animation-delay: -5s; }

.modes { padding: 5rem var(--gut); background: var(--deep); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 1.6rem; text-wrap: balance; }
.rows article { display: grid; grid-template-columns: minmax(11rem, 18rem) 1fr; gap: .4rem 2.5rem; padding: 1.6rem 0; border-top: 2px dashed var(--line); align-items: baseline; }
.rows h3 { font-size: 1.75rem; color: var(--leaf); }
.rows p { margin: 0; max-width: 40em; }

.temple { padding: 6rem var(--gut); background: linear-gradient(90deg, #160f04f2 20%, #160f0499), url(media/bg-temple.webp) center/cover; }
.temple > div { max-width: 46rem; }
table { width: 100%; border-collapse: collapse; margin: 2rem 0 .8rem; }
caption { text-align: left; font-weight: 700; padding-bottom: .5rem; }
th, td { text-align: left; padding: .8rem 0; border-top: 1px solid #ffc53a55; vertical-align: top; font-weight: 400; }
td { font-weight: 700; color: var(--banana); padding-left: 1.2rem; white-space: nowrap; text-align: right; }

.text { max-width: 50rem; margin: 0 auto; padding: 4rem var(--gut); }
.text h1 { overflow-wrap: anywhere; hyphens: auto; font-size: clamp(2.3rem, 11vw, 5rem); margin: 0 0 1.2rem; }
.text h2 { font-size: 1.6rem; margin: 2.4rem 0 .6rem; color: var(--leaf); }
.home .text h2 { font-size: clamp(2rem, 5vw, 3.6rem); color: inherit; }
.text ul { padding-left: 1.2rem; }
.text li { margin-bottom: .5rem; }
.text li::marker { color: var(--banana); }
.qa details { border-top: 2px dashed var(--line); padding: .9rem 0; }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .3rem 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 1.7rem/1 Lilita, sans-serif; color: var(--banana); }
.qa details[open] summary::after { content: "\2212"; }
.qa summary h2, .qa summary h3 { font-size: 1.35rem; margin: 0; color: var(--cream); }
.qa p { margin: .5rem 0 .4rem; color: #dfe9e2; }
.steps { list-style: none; counter-reset: s; margin: 2.5rem 0; border-left: 8px solid #3d5c22; padding-left: 2.2rem; border-radius: 6px; }
.steps li { counter-increment: s; position: relative; margin-bottom: 2rem; }
.steps li::before { content: counter(s); position: absolute; left: -3.85rem; top: -.25rem; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: 50%; background: var(--banana); color: var(--bark); font: 1.4rem Lilita, sans-serif; }
.steps h2 { margin-top: 0; }
.steps p { margin: 0; }

.facts-list div { display: grid; grid-template-columns: 13rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.facts-list dt { color: var(--mist); }
.facts-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.text .shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; padding: 0; list-style: none; }
.shots img { border-radius: 1rem; margin-bottom: .4rem; }
.logo { width: min(100%, 30rem); }

.challenge { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem clamp(2rem, 8vw, 7rem); padding: 3rem var(--gut); min-height: 78vh; overflow: hidden; background: linear-gradient(#06191d99, var(--night)), url(media/bg-temple.webp) center/cover; }
.challenge .card { max-width: 32rem; }
.challenge h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: .4rem 0 1.6rem; }
.challenge .hang { --w: 15rem; --rope: 2rem; --above: 0rem; }
.challenge .phone img { aspect-ratio: 720 / 920; object-fit: cover; object-position: bottom; }
.codebox { border: 2px solid #ffffff26; border-radius: 1.2rem; background: #0006; padding: 1rem 1.2rem 1.1rem; margin: 0 0 1.6rem; }
.codebox .fine { margin: 0 0 .7rem; }
.codeline { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin: 0; }
.code { font-family: Lilita, "Arial Black", sans-serif; font-size: 2.1rem; letter-spacing: .06em; color: var(--banana); user-select: all; }
button.btn { border: 0; cursor: pointer; font-family: Lilita, "Arial Black", sans-serif; }
[hidden] { display: none !important; }
.kicker { font-weight: 700; color: #0d3414; background: var(--leaf); display: inline-block; padding: .25em 1em; border-radius: 2em; margin: 0 0 1rem; }
.big { font-size: clamp(4rem, 15vw, 8rem); color: var(--banana); margin: 0; text-shadow: 0 .05em 0 #02100f; overflow-wrap: anywhere; }
.sub { font-size: 1.4rem; font-weight: 700; margin: .3rem 0 1.2rem; }

/* All games: a shelf of cards, key art on top and the icon riding its lower edge. */
.games { padding: 4.5rem var(--gut) 5rem; background: linear-gradient(var(--deep), var(--moss)); border-top: 2px dashed var(--line); }
.games-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 2rem; margin-bottom: 2.2rem; }
.games .geyebrow { margin: 0 0 .5rem; font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); }
.games h2 { margin: 0; font-size: clamp(2.3rem, 5vw, 3.4rem); }
.games .gintro { margin: .7rem 0 0; max-width: 32em; color: var(--mist); }
.games ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.4rem; }
.games li { display: flex; }
.games .gcard { display: flex; flex-direction: column; width: 100%; overflow: hidden; border-radius: 1.5rem; background: #06191dd9; box-shadow: inset 0 0 0 2px var(--line); color: var(--cream); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.games a.gcard:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: inset 0 0 0 2px var(--banana), 0 1.2rem 2.4rem #0007; }
.games li.current .gcard { box-shadow: inset 0 0 0 3px var(--banana); }
.games .gart { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.games .gart img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.games a.gcard:hover .gart img { transform: scale(1.05); }
.games .gart::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #06191dd9, transparent 55%); }
.games .ghere { position: absolute; z-index: 1; top: .7rem; right: .7rem; padding: .25em .8em; border-radius: 99px; background: var(--banana); color: var(--bark); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.games .gbody { display: flex; flex: 1; flex-direction: column; gap: .7rem; padding: 0 1.4rem 1.4rem; }
.games .gicon { width: 4rem; height: 4rem; margin-top: -2rem; border-radius: 22%; box-shadow: 0 .5rem 1.2rem #0009, 0 0 0 2px #fff4; position: relative; z-index: 1; }
.games .gwhat { display: block; min-width: 0; line-height: 1.35; }
.games strong { display: block; font: 1.6rem/1.1 Lilita, "Arial Black", sans-serif; }
.games .gtag, .games .gline, .games .gstate { display: block; font-size: .92rem; }
.games .gtag { color: var(--mist); }
.games .gline { margin-top: .5rem; color: var(--cream); opacity: .85; }
.games .gstate { margin-top: .6rem; font-weight: 700; color: var(--leaf); font-size: .85rem; }
.games .gstate.soon { color: var(--mist); }
.few { padding: 2.5rem var(--gut); }
.few h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.few ul { gap: .7rem; }
.few li { flex-basis: min(100%, 13.5rem); }
.few li a { padding: .7rem; gap: .8rem; }
.few img { width: 3.4rem; height: 3.4rem; }
.few strong { font-size: 1.2rem; }
.few p { margin-top: 1rem; }

.end { text-align: center; padding: 3rem var(--gut) 6rem; }
footer { padding: 2.5rem var(--gut) 3rem; background: #031013; color: var(--mist); font-size: .95rem; }
footer ul { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; list-style: none; }
footer ul a { display: inline-block; padding: .4rem 0; }

@media (max-width: 980px) {
  .top { flex-wrap: wrap; gap: .35rem 1rem; }
  .top nav { order: 3; margin: 0; width: 100%; }
  .top .btn { margin-left: auto; }
  .hero { padding-top: 11rem; }
}
@media (max-width: 760px) {
  .top ul { gap: .2rem 1.1rem; flex-wrap: wrap; font-size: .95rem; }
  .hero { grid-template-columns: 1fr; padding-top: 10.5rem; }
  .hero::before { background: linear-gradient(to bottom, #06191daa, #06191d77 60%, var(--night) 96%), url(media/bg-jungle.webp) center/cover; }
  .hang-hero { --w: min(17rem, 72vw); margin-top: -1rem; --rope: 4rem; }
  .beats ol { grid-template-columns: 1fr; }
  .beats li:nth-child(2) { transform: none; margin-left: 18%; }
  .beats li:nth-child(3) { margin-left: 36%; }
  .gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 4rem; }
  .gallery .hang { --w: 13rem; flex: none; scroll-snap-align: center; }
  .rows article { grid-template-columns: 1fr; }
  .facts-list div { grid-template-columns: 1fr; gap: 0; }
  .steps { padding-left: 1.6rem; margin-left: 1.2rem; }
  .steps li::before { left: -3.2rem; width: 2.5rem; height: 2.5rem; }
  .challenge { min-height: 0; }
}
@media (max-width: 360px) {
  .top ul { font-size: .8rem; gap: .2rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hang { animation: none; transform: rotate(-1.2deg); }
  .btn, .games .gcard, .games .gart img { transition: none; }
}
