/* Catoomi's site: the game's colours, fonts and chunky, rounded look. */
@font-face { font-family: 'Rubik'; src: url('fonts/Rubik-Bold.ttf') format('truetype'); font-weight: 700 900; font-display: swap; }
@font-face { font-family: 'Rubik'; src: url('fonts/Rubik-Medium.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('fonts/Manrope-ExtraBold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --ground: #EEF3F0;
  --card: #FFFFFF;
  --ink: #1E2A2B;
  --muted: #546466;
  --line: #D6E1DC;
  --teal: #3D7C74;
  --teal-light: #6FB8AC;
  --teal-deep: #2A5A54;
  --teal-soft: #E7F0EC;
  --orange: #E0703F;
  --orange-light: #F29A62;
  --orange-deep: #A2441B;
  --orange-soft: #FFF1E6;
  --gold: #E0A21E;
  --pink: #F7BFC4;
  --red: #B3261E;
  --radius: 26px;
  --shadow: 0 2px 8px rgba(0, 0, 0, .10);
  --shadow-lg: 0 18px 50px rgba(30, 42, 43, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 500 17px/1.6 'Manrope', -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); font-weight: 700; }
h1, h2, h3 { font-family: 'Rubik', 'Manrope', sans-serif; font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 7vw, 64px); }
h2 { font-size: clamp(28px, 5vw, 44px); }
h3 { font-size: 21px; }
p, li { margin: 0 0 .8em; }
ul { padding-left: 1.2em; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- loading screen, as in the game ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ground);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s;
}
#loader.gone { opacity: 0; visibility: hidden; }
#loader .icon { width: 120px; height: 120px; border-radius: 27px; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both, breathe 2.4s ease-in-out 1s infinite; }
#loader .name { height: 44px; width: auto; margin-top: 22px; opacity: 0; animation: fadeUp .6s ease .45s forwards; }
#loader .paws { position: absolute; bottom: calc(56px + env(safe-area-inset-bottom)); display: flex; gap: 14px; opacity: 0; animation: fade .5s ease .7s forwards; }
#loader .paws span { width: 22px; height: 22px; background: url('paw-teal.svg') center/contain no-repeat; animation: hop 1.4s ease-in-out infinite; }
#loader .paws span:nth-child(2) { animation-delay: .22s; }
#loader .paws span:nth-child(3) { animation-delay: .44s; }
@keyframes rise { from { transform: translateY(40px); } to { transform: translateY(0); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 25% { transform: translateY(-10px); opacity: 1; } }

/* ---------- the chunky buttons of the game ---------- */
.btn {
  --c: var(--orange); --e: var(--orange-deep);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 800 17px 'Manrope', sans-serif; color: #fff;
  background: var(--c); border-radius: 20px; padding: 15px 26px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 5px 0 var(--e), 0 10px 22px rgba(0, 0, 0, .14);
  transition: transform .09s, box-shadow .09s, filter .15s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55), 0 1px 0 var(--e), 0 4px 10px rgba(0, 0, 0, .12); }
.btn.teal { --c: var(--teal); --e: var(--teal-deep); }
.btn.white { --c: #fff; --e: #C3CCC7; color: var(--ink); box-shadow: 0 5px 0 var(--e), 0 10px 22px rgba(0, 0, 0, .10); }
.btn.danger { --c: var(--orange-deep); --e: #6E2C10; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- header: a floating bar, like the game's ---------- */
/* as wide as the page's blocks (.wrap: 1160 with 16 px each side) */
header.top { position: sticky; top: 10px; z-index: 20; padding: 0 16px; }
header.top .bar {
  position: relative; max-width: 1128px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 24px; box-shadow: var(--shadow); padding: 8px 10px 8px 12px; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img.icon { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow); }
.brand img.name { height: 25px; width: auto; }
nav.pages { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
nav.pages::-webkit-scrollbar { display: none; }
nav.pages a { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 14.5px; padding: 9px 13px; border-radius: 999px; white-space: nowrap; }
nav.pages a.on, nav.pages a:hover { background: var(--teal-soft); color: var(--teal); }

/* the language: a chunky pill with a menu */
/* the burger: only on a phone */
.burger { display: none; flex-shrink: 0; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ground); box-shadow: 0 3px 0 #C3CCC7; cursor: pointer; padding: 0; position: relative; }
.burger:active { transform: translateY(2px); box-shadow: 0 1px 0 #C3CCC7; }
.burger span { position: absolute; left: 12px; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .2s, top .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.lang { position: relative; flex-shrink: 0; }
.lang > button {
  display: flex; align-items: center; gap: 6px; cursor: pointer; border: 0;
  font: 800 14px 'Manrope', sans-serif; color: var(--ink);
  background: var(--ground); border-radius: 14px; padding: 9px 12px;
  box-shadow: 0 3px 0 #C3CCC7;
}
.lang > button:active { transform: translateY(2px); box-shadow: 0 1px 0 #C3CCC7; }
.lang .flag { font-size: 18px; line-height: 1; }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.lang.open ul { opacity: 1; visibility: visible; transform: none; }
.lang li button {
  width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer;
  font: 700 15px 'Manrope', sans-serif; color: var(--ink); padding: 10px 12px; border-radius: 12px; text-align: left;
}
.lang li button:hover { background: var(--ground); }
.lang li button.on { background: var(--teal-soft); color: var(--teal); }
.lang li button.on::after { content: '✓'; margin-left: auto; font-weight: 900; }

/* ---------- the paw prints running in the background ---------- */
.paw-trail { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.paw-trail i {
  position: absolute; width: 22px; height: 22px; opacity: 0;
  background: var(--paw) center/contain no-repeat;
  animation: step 9s linear infinite;
}
@keyframes step { 0% { opacity: 0; } 8% { opacity: .5; } 40% { opacity: .5; } 60%, 100% { opacity: 0; } }

/* ---------- hero ---------- */
/* the home page's hero runs up under the floating header, so it sits on the same colours */
.hero { position: relative; padding: 40px 0 70px; overflow: hidden; }
body[data-page='home'] .hero { margin-top: -60px; padding-top: 100px; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto -20%; height: 140%; z-index: -1;
  background: radial-gradient(60% 50% at 75% 40%, rgba(111, 184, 172, .45), transparent 70%),
              radial-gradient(40% 40% at 10% 20%, rgba(242, 154, 98, .22), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 800 14px 'Manrope', sans-serif; color: var(--teal);
  background: #fff; border-radius: 999px; padding: 7px 14px 7px 8px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.eyebrow img { width: 26px; height: 26px; border-radius: 7px; }
.hero h1 .hl { color: var(--orange); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .22em; z-index: -1;
  background: var(--pink); border-radius: 999px; opacity: .8;
}
.hero .lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); font-weight: 600; max-width: 540px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 26px; }
.chip { background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow); }

/* store badges, the stores' own look */
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff;
  background: #000; border-radius: 13px; padding: 9px 18px 9px 14px; min-width: 176px; height: 58px;
  border: 1.5px solid #A6A6A6; box-shadow: 0 8px 18px rgba(0, 0, 0, .18); transition: transform .15s;
}
.badge:hover { transform: translateY(-2px); }
.badge svg { flex-shrink: 0; }
.badge small { display: block; font: 600 11px/1.1 -apple-system, 'Segoe UI', sans-serif; letter-spacing: .02em; }
.badge b { display: block; font: 600 22px/1.1 -apple-system, 'Segoe UI', sans-serif; letter-spacing: -.01em; }
.soon-note { color: var(--muted); font-weight: 700; font-size: 14px; margin-top: 12px; }

/* the phone with the game in it */
.stage { position: relative; display: flex; justify-content: center; min-height: 730px; }
.phone {
  position: relative; width: 300px; border-radius: 50px; padding: 10px;
  background: linear-gradient(145deg, #2B3436, #12191A); box-shadow: var(--shadow-lg), inset 0 0 0 2px #3A4547;
}
/* the screenshots come from the iPhone 18 Pro Max simulator (440×956 pt), notch and status bar included */
.phone .screen { position: relative; width: 100%; aspect-ratio: 440 / 956; border-radius: 12.6% / 5.8%; overflow: hidden; background: var(--ground); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s ease; }
.phone .screen img.on { opacity: 1; }
.phone .screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ground); }
/* the Dynamic Island, where the iPhone has it (126×37 pt, 11 pt from the top) */
.phone .screen::after { content: ''; position: absolute; z-index: 2; left: 35.7%; width: 28.6%; top: 1.15%; height: 3.9%; border-radius: 999px; background: #000; }
.phone.sm { width: 250px; border-radius: 42px; padding: 8px; }
/* the first screen's iPhone: a drawn titanium iPhone (svg), the screenshot under its glass */
.phone.real { aspect-ratio: 472 / 982; align-self: center; padding: 0; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 34px 44px rgba(22, 48, 46, .3)); }
.phone.real .screen { position: absolute; left: 3.39%; top: 1.324%; width: 93.22%; height: 97.35%; aspect-ratio: auto; border-radius: 12.5% / 5.75%; }
.phone.real .screen::after { display: none; }
.phone.real .frame { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 3; pointer-events: none; }
.stage .phone.real { width: 330px; }
.phone.sm.real { width: 260px; filter: drop-shadow(0 24px 30px rgba(22, 48, 46, .26)); }
.dots { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; background: #C3CCC7; cursor: pointer; padding: 0; transition: .3s; }
.dots button.on { width: 26px; background: var(--teal); }

/* floating bits round the phone */
.float { position: absolute; z-index: 3; animation: bob 5s ease-in-out infinite; }
.float.b2 { animation-delay: -2.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.bubble {
  position: relative; background: #fff; border-radius: 18px; padding: 10px 16px; font: 800 15px 'Manrope', sans-serif;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.bubble::after { content: ''; position: absolute; left: 22px; bottom: -8px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.reward { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 14px 8px 8px; box-shadow: var(--shadow-lg); font: 900 17px 'Rubik', sans-serif; color: #2E9B5B; }
.reward .coin { width: 28px; height: 28px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #FFE08A, #D9962B 70%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.needs { display: flex; gap: 6px; background: #fff; border-radius: 20px; padding: 10px 12px; box-shadow: var(--shadow-lg); }
.needs span { width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; font-size: 14px; background: conic-gradient(var(--c, #3FA66B) calc(var(--v, 80) * 1%), #E4E9E6 0); position: relative; }
.needs span::before { content: ''; position: absolute; inset: 4px; border-radius: 999px; background: #fff; }
.needs span em { position: relative; font-style: normal; }
.cat-deco { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .14)); }

/* ---------- the stats strip ---------- */
.strip { background: var(--teal); color: #fff; padding: 18px 0; overflow: hidden; position: relative; }
.strip .row { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.strip span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 9px 18px; font: 800 16px 'Manrope', sans-serif; white-space: nowrap; }
.strip span b { font: 900 20px 'Rubik', sans-serif; color: #FFE08A; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.sec { position: relative; padding: 90px 0; }
section.sec > .wrap { position: relative; z-index: 1; } /* the paws run under the words */
section.sec.alt { background: #fff; }
section.sec.warm { background: var(--orange-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 46px; }
.kicker { display: inline-block; font: 900 13px 'Manrope', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 19px; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .media { order: 2; }
.split .media { position: relative; display: flex; justify-content: center; }
.split .text h2 { margin-top: 0; }
.split .text > p { color: var(--muted); font-size: 18px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-weight: 600; }
.ticks li::before {
  content: ''; flex-shrink: 0; width: 26px; height: 26px; margin-top: 1px; border-radius: 9px;
  background: var(--teal-soft) url('paw-teal.svg') center/16px no-repeat;
}
.ticks b { font-weight: 800; }

/* fanned cards (the care windows) */
.fan { position: relative; width: 100%; max-width: 520px; height: 680px; }
.fan > .phone {
  position: absolute; width: 48%; filter: drop-shadow(0 22px 26px rgba(22, 48, 46, .26));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.fan > .phone:nth-child(1) { left: 2%; top: 50px; transform: rotate(-8deg); }
.fan > .phone:nth-child(2) { left: 26%; top: 0; transform: rotate(1deg); z-index: 2; }
.fan > .phone:nth-child(3) { right: 2%; top: 80px; transform: rotate(8deg); }
.fan > .phone:hover { transform: rotate(0) scale(1.04); z-index: 5; }
.duo { display: flex; gap: 18px; align-items: flex-start; justify-content: center; }
.duo .phone { align-self: flex-start; }
.duo .phone:last-child { margin-top: 60px; }

/* games */
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
/* the whole game screen, as a little phone */
.game .shot { padding: 20px 20px 4px; background: linear-gradient(180deg, var(--teal-soft), #fff); }
.game .shot .phone { width: 100%; filter: drop-shadow(0 14px 18px rgba(22, 48, 46, .22)); }
.game .body { padding: 16px 18px 20px; }
.game h3 { margin: 0 0 6px; }
.game p { color: var(--muted); font-size: 15px; margin: 0; }
.game .tag { display: inline-block; margin-top: 10px; font: 800 12.5px 'Manrope', sans-serif; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 4px 10px; }

/* how it goes: three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 22px 22px; position: relative; text-align: center; }
.step img { width: 140px; height: 140px; margin: -10px auto 6px; }
.step .n { position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 12px; background: var(--orange); color: #fff; font: 900 17px 'Rubik', sans-serif; display: grid; place-items: center; box-shadow: 0 3px 0 var(--orange-deep); }
.step p { color: var(--muted); margin: 0; }

/* the last call */
.cta { position: relative; background: linear-gradient(135deg, var(--teal-light), var(--teal) 55%, var(--teal-deep)); color: #fff; border-radius: 40px; padding: 60px 30px 170px; text-align: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.cta > :not(.paw-trail) { position: relative; z-index: 1; }
.cta > .cats { position: absolute; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); font-size: 19px; font-weight: 600; max-width: 560px; margin: 0 auto 26px; }
.cta .stores { justify-content: center; }
.cta .cats { position: absolute; left: 0; right: 0; bottom: -8px; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.cta .cats img { width: 160px; margin: 0 -16px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); }

/* ---------- text pages ---------- */
.doc { padding-block: 34px 10px; }
.doc .meta { color: var(--muted); font-weight: 700; font-size: 14px; }
.doc article, .doc > div[data-lang] { background: #fff; border-radius: 30px; box-shadow: var(--shadow); padding: 34px clamp(20px, 4vw, 48px); margin-bottom: 20px; }
.doc article > *, .doc > div[data-lang] > * { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 6vw, 48px); }
.doc h2 { font-size: clamp(22px, 4vw, 28px); margin-top: 1.4em; }
.doc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.doc-head img { width: 140px; margin-bottom: -16px; }

/* forms */
.card { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); padding: 28px; margin: 20px 0; }
label { display: block; font-weight: 800; font-size: 14px; margin: 14px 0 6px; }
input, select.field, textarea {
  width: 100%; font: 600 16px 'Manrope', sans-serif; color: var(--ink);
  background: var(--ground); border: 2px solid transparent; border-radius: 16px; padding: 13px 15px; transition: border-color .15s, background .15s;
}
input:focus, textarea:focus, select.field:focus { outline: none; border-color: var(--teal); background: #fff; }
textarea { min-height: 150px; resize: vertical; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.msg { border-radius: 16px; padding: 13px 15px; margin: 14px 0 0; font-weight: 700; }
.msg.ok { background: var(--teal-soft); color: var(--teal); }
.msg.err { background: #FDECEA; color: var(--red); }
.hidden { display: none !important; }
.warn { background: var(--orange-soft); border-radius: 18px; padding: 15px 18px; font-weight: 600; }
/* ---------- fair play: the money ---------- */
.econ { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: stretch; }
.econ-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; overflow: hidden; }
.econ-card h3 { margin: 14px 0 8px; font-size: 21px; }
.econ-card p { color: var(--muted); margin: 0 0 10px; }
.econ-card .sum { color: var(--ink); font-weight: 600; }
.econ-card .spent { font-size: 15px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.econ-card .ticks { margin-top: 12px; gap: 8px; }
.econ-card.gem { background: linear-gradient(160deg, #F4EEFF, #fff 60%); padding-bottom: 120px; }
.econ-card.calm { background: linear-gradient(160deg, var(--teal-soft), #fff 60%); }
.econ-cat { position: absolute; width: 130px; right: 6px; bottom: -14px; }
.ico { width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .12); }
.ico.coin { background: radial-gradient(circle at 35% 30%, #FFE08A, #D9962B 70%); }
.ico.coin::after { content: '$'; font: 900 26px 'Rubik', sans-serif; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.ico.gem { background: linear-gradient(145deg, #A98BEA, #6A48C2); }
.ico.gem::after { content: ''; width: 24px; height: 20px; background: #fff; clip-path: polygon(20% 0, 80% 0, 100% 35%, 50% 100%, 0 35%); opacity: .95; }
.ico.calm { background: linear-gradient(145deg, var(--teal-light), var(--teal)); }
.ico.calm::after { content: ''; width: 26px; height: 26px; background: url('paw-teal.svg') center/contain no-repeat; filter: brightness(0) invert(1); }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-weight: 700; }
.checks li::before { content: '✓'; flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--teal); color: #fff; font: 900 14px/24px 'Rubik', sans-serif; text-align: center; }

/* ---------- the calculator ---------- */
.calc { position: relative; max-width: 940px; margin: 0 auto; background: #fff; border-radius: 32px; box-shadow: var(--shadow-lg); padding: 30px clamp(18px, 4vw, 40px) 26px; }
.calc-top { text-align: center; }
.calc-min { display: inline-block; font: 900 30px 'Rubik', sans-serif; color: var(--orange); margin-bottom: 14px; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; padding: 0; border: 0; margin: 0; border-radius: 999px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--orange-light), var(--orange)) 0 / calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--f, .18)) 100% no-repeat, #E4E9E6;
  --thumb: 38px; /* the fill ends right under the thumb's centre */ box-shadow: inset 0 2px 3px rgba(0, 0, 0, .1); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; box-sizing: border-box; width: var(--thumb); height: var(--thumb); border-radius: 999px; background: #fff url('paw-teal.svg') center/20px no-repeat; border: 3px solid var(--orange); box-shadow: 0 4px 0 var(--orange-deep), 0 6px 14px rgba(0, 0, 0, .2); }
.calc input[type=range]::-moz-range-thumb { box-sizing: border-box; width: var(--thumb); height: var(--thumb); border-radius: 999px; background: #fff url('paw-teal.svg') center/20px no-repeat; border: 3px solid var(--orange); box-shadow: 0 4px 0 var(--orange-deep); }
.calc-scale { display: flex; justify-content: space-between; color: var(--muted); font: 700 13px 'Manrope', sans-serif; margin: 8px 4px 0; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.calc-col { background: var(--ground); border-radius: 24px; padding: 18px 20px; }
.calc-col h3 { margin: 0 0 10px; font-size: 18px; color: var(--teal); }
.calc-stats .big { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.calc-stats .big span { font-weight: 800; color: var(--muted); }
.calc-stats .big b { font: 900 46px/1 'Rubik', sans-serif; color: var(--ink); }
.calc-stats .row { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: var(--muted); }
.calc-stats .row b { color: var(--ink); font-weight: 900; font-size: 18px; }
.calc-stats i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 999px; }
.calc-stats i.coin { background: radial-gradient(circle at 35% 30%, #FFE08A, #D9962B 70%); }
.calc-stats i.hanger { background: #E9DFFB url('paw-teal.svg') center/13px no-repeat; }
.calc-opens { margin-top: 18px; }
.chips-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips-out .chip { background: var(--teal-soft); color: var(--teal); box-shadow: none; animation: fadeUp .3s ease both; }
.calc-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* ---------- questions on the home page ---------- */
.home-faq { position: relative; }
.home-faq h3 { font-size: 24px; margin: 0 0 12px; }

/* ---------- contact: the provider's facts ---------- */
.facts { display: grid; grid-template-columns: 220px 1fr; gap: 12px 20px; margin: 16px 0 6px; }
.facts dt { font-weight: 800; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts .muted { color: var(--muted); font-weight: 500; font-size: 15px; }

/* ---------- how to play ---------- */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 10px; max-width: none !important; }
.help-card { background: var(--ground); border-radius: 22px; padding: 18px 20px; }
.help-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--teal); }
.help-card p { margin: 0 0 8px; font-size: 15.5px; }
.help-card p:last-child { margin-bottom: 0; }
.doc details.faq ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.doc details.faq li { margin: 6px 0; }

/* ---------- kittens ---------- */
.doc > article.plain { background: none; box-shadow: none; padding: 0; }
.doc > article.plain > * { max-width: none; }
.doc > article.plain > h2 { margin-top: 34px; }
.breeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.breed { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px 18px; transition: transform .2s; }
.breed:hover { transform: translateY(-4px); }
.breed img { width: 170px; height: 170px; margin: -6px auto 0; }
.breed h3 { margin: 4px 0 2px; font-size: 19px; }
.breed .fur { display: inline-block; font: 800 12px 'Manrope', sans-serif; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 2px 9px; }
.breed p { color: var(--muted); font-size: 15px; margin: 8px 0 10px; }
.coat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.coat-chips span { font: 700 12.5px 'Manrope', sans-serif; background: var(--ground); border-radius: 999px; padding: 3px 10px; }
.coats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px; }
.coats figure { margin: 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 8px 8px 12px; text-align: center; }
.coats img { width: 100%; max-width: 130px; margin: 0 auto; }
.coats figcaption { font: 800 13.5px 'Manrope', sans-serif; }
.coats figcaption small { display: block; font-weight: 600; color: var(--muted); }
.coats.rare figure { background: linear-gradient(170deg, #FFF6E2, #fff 60%); box-shadow: 0 0 0 2px #F3D28A, var(--shadow); }
.traits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.trait { background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 16px 18px; }
.trait h3 { margin: 0 0 6px; font-size: 17px; color: var(--orange); }
.trait p { margin: 0; color: var(--muted); font-size: 15px; }
.dna { display: flex; align-items: center; gap: 24px; margin-top: 34px; background: linear-gradient(135deg, var(--teal-light), var(--teal) 60%, var(--teal-deep)); color: #fff; border-radius: 32px; padding: 26px 32px; box-shadow: var(--shadow-lg); }
.dna img { width: 170px; flex-shrink: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .2)); }
.dna h2 { color: #fff; margin: 0 0 8px; }
.dna p { margin: 0; color: rgba(255, 255, 255, .92); font-weight: 600; }

/* the licenses page */
.doc .lead-in { font-size: 18px; color: var(--muted); }
.lic-table { overflow-x: auto; margin: 14px 0; border-radius: 18px; background: var(--ground); max-width: none !important; }
.lic-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lic-table th { text-align: left; font: 800 13px 'Manrope', sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; }
.lic-table td { padding: 10px 16px; border-top: 1px solid #DDE5E1; vertical-align: top; }
.lic-table a.lic { display: inline-block; font: 800 12.5px 'Manrope', sans-serif; color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: 3px 10px; text-decoration: none; white-space: nowrap; }
.doc .thanks { font: 800 18px 'Rubik', sans-serif; color: var(--teal); margin-top: 28px; }
details.faq { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 16px 20px; margin: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font: 900 22px 'Rubik', sans-serif; color: var(--teal); line-height: 1; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* ---------- footer ---------- */
footer { margin-top: 70px; background: var(--ink); color: rgba(255, 255, 255, .75); padding: 50px 0 40px; font-size: 15px; }
footer .cols { display: flex; gap: 30px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
footer .brand img.name { height: 28px; }
footer a { color: #fff; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .small { margin-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* appearing as you scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* only the chosen language's blocks show (English without JavaScript) */
[data-lang] { display: none; }
[data-lang].on, html:not(.js) [data-lang="en"] { display: block; }
html:not(.js) .reveal { opacity: 1; transform: none; }
html:not(.js) #loader { display: none; }


/* ---------- the head of the plain pages ---------- */
.page-head { padding: 22px 0 0; }
.page-head .box {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; gap: 20px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal) 55%, var(--teal-deep));
  border-radius: 36px; box-shadow: var(--shadow-lg); padding: 44px clamp(22px, 5vw, 56px) 0; color: #fff;
}
.page-head .words { position: relative; z-index: 1; flex: 1; padding-bottom: 44px; }
.page-head h1 { color: #fff; margin: 0 0 10px; overflow-wrap: anywhere; hyphens: auto; font-size: clamp(32px, 6vw, 54px); }
.page-head p { margin: 0; max-width: 560px; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .9); }
.page-head .cat { position: relative; z-index: 1; width: 210px; margin-bottom: -14px; flex-shrink: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .2)); animation: bob 5s ease-in-out infinite; }
.has-head .doc > h1, .has-head .doc > p[data-t='sup.lead'], .has-head .doc > [data-lang] > h1:first-child { display: none; }
.has-head .doc { padding-block-start: 26px; }
.doc > h2 { margin-top: 30px; }
body[data-page='support'] .doc > div[data-lang] { background: none; box-shadow: none; padding: 0; }
body[data-page='support'] .doc > div[data-lang] > * { max-width: none; }
.doc > div[data-lang] details.faq:first-child { margin-top: 0; }

@media (max-width: 980px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 36px; }
  .split.flip .media { order: 0; }
  .hero { text-align: center; }
  .hero .lead { margin: 0 auto; }
  .chips, .stores { justify-content: center; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .econ { grid-template-columns: 1fr; }
  .breeds { grid-template-columns: repeat(2, 1fr); }
  .coats { grid-template-columns: repeat(4, 1fr); }
  .traits { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .burger { display: block; }
  .brand { margin-right: auto; }
  .brand img.name { height: 22px; }
  nav.pages {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); margin: 0; flex-direction: column; gap: 4px; padding: 10px;
    background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
  }
  .menu-open nav.pages { opacity: 1; visibility: visible; transform: none; }
  nav.pages a { font-size: 17px; padding: 14px 16px; border-radius: 14px; }
  .stage { min-height: 600px; }
  .phone { width: 260px; }
  .stage .phone.real { width: 280px; }
  .hide-sm { display: none !important; }
  .games { gap: 12px; }
  .game .body { padding: 12px; }
  .game h3 { font-size: 17px; }
  .game p { font-size: 13.5px; }
  .fan { height: 540px; }
  .game .shot { padding: 12px 12px 2px; }
  section.sec { padding: 64px 0; }
  .cta { padding: 44px 18px 130px; border-radius: 30px; }
  .cta .cats img { width: 104px; margin: 0 -10px; }
  .duo .phone { width: min(260px, 72vw); }
  .duo .phone:last-child { margin-top: 0; }
  .doc-head img { width: 96px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .help-grid { grid-template-columns: 1fr; }
  .breeds { grid-template-columns: 1fr; }
  .coats { grid-template-columns: repeat(3, 1fr); }
  .traits { grid-template-columns: 1fr; }
  .dna { flex-direction: column; text-align: center; padding: 24px 20px; }
  .dna img { width: 130px; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-stats .big b { font-size: 38px; }
  .calc .cat-deco { display: none; }
  /* the licenses: each package a little card, its licence on the right, the authors under it */
  .lic-table thead { display: none; }
  .lic-table table, .lic-table tbody { display: block; }
  .lic-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; padding: 11px 14px; border-top: 1px solid #DDE5E1; }
  .lic-table tbody tr:first-child { border-top: 0; }
  .lic-table td { padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  .lic-table td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
  .page-head .box { padding-top: 28px; border-radius: 28px; }
  .page-head .words { padding: 0 64px 28px 0; }
  .page-head h1 { font-size: 30px; }
  .page-head p { font-size: 15.5px; }
  .page-head .cat { position: absolute; right: -10px; bottom: -14px; width: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- a cat's page: the card its player shared ---------- */
.cat-share { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; padding-block: 40px 70px; }
.cat-share .cat-card { margin: 0; border-radius: 28px; overflow: hidden; background: #fff; border: 8px solid #fff; box-shadow: 0 18px 40px rgba(31, 61, 56, .18); }
.cat-share .cat-card img { display: block; width: 100%; height: auto; }
.cat-share h1 { font-size: clamp(36px, 6vw, 56px); margin: 0 0 6px; }
.cat-share .line { color: var(--teal); font-weight: 800; margin-bottom: 14px; }
.cat-share .code { background: #fff; border-radius: 20px; padding: 16px 18px; margin: 18px 0; box-shadow: 0 6px 18px rgba(31, 61, 56, .08); }
.cat-share .code small { display: block; color: var(--muted, #6B7C77); font-weight: 700; }
.cat-share .code b { display: block; font-family: Rubik, sans-serif; font-size: 30px; letter-spacing: 3px; margin: 2px 0 6px; }
.cat-share .code p { margin: 0; font-size: 14px; }
.cat-share .stores { margin-top: 8px; }
.cat-share .more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--teal); }
@media (max-width: 760px) {
  .cat-share { grid-template-columns: 1fr; gap: 22px; padding-block: 20px 50px; }
}
