/* Kineticat v2: the cat's own colours. Night navy, cape waves, the gold paw coin, cream fur. */
@font-face { font-family: "Fredoka"; src: url(/assets/fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
:root {
  --nv: #0a1a33; --nv2: #10264a; --nv3: #163160; --wave: #3f8fa3; --wave2: #2a6f86;
  --gold: #e0ad45; --gold-d: #a97a1f; --cream: #f6ead3; --ink: #fdf7ea; --mut: #b9c6d8; --dim: #8394ad;
  --ln: rgba(253, 247, 234, .14);
  --f: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gl: max(18px, env(safe-area-inset-left, 0px)); --gr: max(18px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--nv); color: var(--ink); font: 400 17px/1.55 var(--f); overflow-x: clip; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(60% 50% at 70% 10%, rgba(63, 143, 163, .22), transparent 70%); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(var(--gl), 3vw); padding-right: max(var(--gr), 3vw); }
.wrap.slim { max-width: 820px; }

/* the cape's wave pattern (seigaiha), fading in at the bottom of the screen */
.waves { position: fixed; left: 0; right: 0; bottom: 0; height: 46vh; pointer-events: none; z-index: 0; opacity: .2;
  --c: #3f8fa3;
  background:
    radial-gradient(circle at 50% 100%, transparent 18px, var(--c) 19px 21px, transparent 22px 28px, var(--c) 29px 31px, transparent 32px 38px, var(--c) 39px 41px, transparent 42px) 0 0 / 84px 42px,
    radial-gradient(circle at 50% 100%, transparent 18px, var(--c) 19px 21px, transparent 22px 28px, var(--c) 29px 31px, transparent 32px 38px, var(--c) 39px 41px, transparent 42px) 42px 21px / 84px 42px;
  -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); }
main, .nav, .foot { position: relative; z-index: 1; }

/* buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #2b1c00; border-radius: 999px; padding: 9px 18px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 0 var(--gold-d); transition: transform .1s, box-shadow .1s, filter .15s; white-space: nowrap; }
.pill:hover { filter: brightness(1.06); }
.pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--gold-d); }
.pill.big { padding: 14px 26px; font-size: 16.5px; }
.pill.ghost { background: transparent; color: var(--ink); border: 2px solid rgba(253, 247, 234, .35); box-shadow: none; }
.pill.ghost:hover { border-color: var(--gold); color: var(--gold); }
.pill.off { background: var(--nv3); color: var(--dim); box-shadow: none; cursor: default; filter: none; }
.badge { display: inline-flex; gap: 8px; align-items: center; background: rgba(224, 173, 69, .14); color: var(--gold); border: 1.5px solid rgba(224, 173, 69, .45); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 14px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(10, 26, 51, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 23px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); }
.brand.sm { font-size: 18px; } .brand.sm img { width: 28px; height: 28px; }
.links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; font-size: 15.5px; color: var(--mut); }
.links a:hover { color: var(--gold); }
@media (max-width: 760px) { .links { display: none; } .nav-in { height: 62px; } .nav .pill { margin-left: auto; } .brand { font-size: 20px; } .brand img { width: 34px; height: 34px; } }

/* hero */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 20px; min-height: calc(100vh - 72px); padding-bottom: 20px; }
h1 { font-size: clamp(54px, 7.4vw, 100px); line-height: .95; font-weight: 700; letter-spacing: -.02em; margin: 20px 0 18px; }
h1 span, h2 span { color: var(--gold); }
.lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.5; color: var(--mut); max-width: 520px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.facts { display: flex; gap: 32px; margin-top: 34px; }
.facts dt { font-size: 30px; font-weight: 700; color: var(--cream); line-height: 1.1; }
.facts dd { font-size: 13.5px; color: var(--mut); }
.cat-wrap { position: relative; height: min(740px, 82vh); }
.halo { position: absolute; left: 50%; top: 46%; width: 80%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(63, 143, 163, .55), rgba(10, 26, 51, 0) 70%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.cat { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 96%; width: auto; max-width: none; -webkit-mask-image: radial-gradient(closest-side at 50% 54%, #000 58%, transparent 100%); mask-image: radial-gradient(closest-side at 50% 54%, #000 58%, transparent 100%); }
.coin { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe29a, #e0ad45 55%, #a97a1f); display: grid; place-items: center; color: #5a3d00; font-weight: 700; font-size: 26px; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); animation: bob 4s ease-in-out infinite; }
.c1 { left: 4%; top: 16%; } .c2 { right: 4%; top: 40%; width: 54px; height: 54px; font-size: 20px; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(8deg); } }
.bubble { position: absolute; left: 2%; top: 44%; background: var(--cream); color: #1a2a44; border-radius: 22px 22px 22px 4px; padding: 12px 18px; font-weight: 600; font-size: 17px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .3s; }
@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: center; gap: 0; padding-top: 6px; }
  .cat-wrap { order: -1; height: 340px; }
  .cat { height: 100%; }
  .halo { width: 300px; }
  .coin { width: 54px; height: 54px; font-size: 20px; } .c2 { width: 42px; height: 42px; font-size: 16px; }
  .bubble { font-size: 13.5px; padding: 9px 13px; left: 0; top: 36%; }
  .lead { margin: 0 auto; }
  .btns { justify-content: center; }
  .facts { justify-content: center; gap: 22px; }
  .facts dt { font-size: 24px; }
}
@media (max-width: 520px) { .hero .btns { flex-direction: column; } .hero .btns .pill { width: 100%; } }

/* section heads */
section.studio, section.lore, section.buy, section.token, section.faq { padding: 76px 0 0; }
.head { max-width: 680px; margin-bottom: 28px; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.02; font-weight: 700; letter-spacing: -.015em; margin: 14px 0 10px; }
.head p { color: var(--mut); font-size: 17px; }

/* meme studio */
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.canvas-box { position: sticky; top: 90px; }
#cv { width: 100%; height: auto; aspect-ratio: 1; border-radius: 26px; border: 3px solid var(--gold); background: var(--nv2); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); touch-action: none; cursor: grab; }
.drag { text-align: center; font-size: 13.5px; color: var(--dim); margin-top: 10px; }
.tools { display: flex; flex-direction: column; gap: 14px; }
fieldset { border: 0; min-width: 0; }
legend { font-weight: 600; font-size: 14px; color: var(--mut); margin-bottom: 8px; }
.tpls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tpls legend { grid-column: 1 / -1; }
.tpls label { cursor: pointer; }
.tpls input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.tpls span { display: block; text-align: center; border-radius: 14px; padding: 11px 0; font-weight: 600; font-size: 14.5px; background: var(--nv2); border: 2px solid var(--ln); transition: border-color .15s, color .15s; }
.tpls input:checked + span { border-color: var(--gold); color: var(--gold); }
.tpls input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.field span { display: block; font-weight: 600; font-size: 14px; color: var(--mut); margin-bottom: 6px; }
.field input { width: 100%; background: var(--nv2); border: 2px solid var(--ln); border-radius: 14px; padding: 12px 14px; font-size: 16px; outline: 0; transition: border-color .15s; }
.field input:focus { border-color: var(--gold); }
.field input::placeholder { color: var(--dim); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.presets button { border: 1.5px solid var(--ln); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; color: var(--mut); }
.presets button:hover { border-color: var(--gold); color: var(--gold); }
.stk { display: flex; flex-wrap: wrap; gap: 8px; }
.stk legend { width: 100%; }
.stk button { width: 48px; height: 48px; border-radius: 14px; background: var(--nv2); border: 2px solid var(--ln); font-size: 24px; display: grid; place-items: center; transition: transform .1s, border-color .15s; }
.stk button:hover { border-color: var(--gold); }
.stk button:active { transform: scale(.92); }
.stk .clr { width: auto; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--mut); }
.out { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 900px) {
  .st-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .canvas-box { position: static; }
  #cv { border-radius: 22px; }
  .out .pill { flex: 1 1 140px; }
}

/* lore */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards article { background: var(--nv2); border: 2px solid var(--ln); border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; }
.cards img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.cards .emoji { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 72px; background: radial-gradient(circle, rgba(63, 143, 163, .35), transparent 70%), var(--nv3); }
.cards article > div:last-child { padding: 18px 20px 22px; }
.cards h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.cards p { color: var(--mut); font-size: 15.5px; }
@media (max-width: 900px) { .cards { grid-template-columns: minmax(0, 1fr); } .cards img, .cards .emoji { aspect-ratio: 16 / 8; } }

/* steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { border: 2px dashed rgba(224, 173, 69, .35); border-radius: 26px; padding: 22px; }
.steps li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #2b1c00; font-weight: 700; font-size: 20px; margin-bottom: 12px; box-shadow: 0 3px 0 var(--gold-d); }
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--mut); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

/* token */
.tok { display: flex; gap: 30px; align-items: center; background: linear-gradient(135deg, rgba(224, 173, 69, .16), rgba(63, 143, 163, .12)); border: 2px solid rgba(224, 173, 69, .4); border-radius: 32px; padding: 32px; }
.tok > img { width: 120px; height: 120px; border-radius: 50%; border: 3px solid var(--gold); flex: none; }
.tok-c { min-width: 0; flex: 1; }
.tok h2 { margin: 0 0 4px; }
.tok p { color: var(--mut); }
.ca { display: flex; align-items: center; gap: 10px; margin-top: 16px; background: var(--nv); border: 2px solid var(--ln); border-radius: 16px; padding: 8px 8px 8px 14px; min-width: 0; }
.ca code { flex: 1; min-width: 0; font: 500 13.5px ui-monospace, Menlo, monospace; color: var(--mut); overflow-wrap: anywhere; }
.ca.on code { color: var(--ink); }
.ca button { border: 2px solid var(--ln); border-radius: 12px; padding: 7px 14px; font-weight: 600; font-size: 14px; flex: none; }
.ca button:disabled { opacity: .35; cursor: default; }
.tok .btns { margin-top: 16px; }
@media (max-width: 700px) { .tok { flex-direction: column; text-align: center; padding: 24px 18px; gap: 16px; } .tok .btns { justify-content: center; } .tok .btns .pill { flex: 1 1 160px; } }

/* faq */
.faq details { border-top: 2px solid var(--ln); }
.faq details:last-of-type { border-bottom: 2px solid var(--ln); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; font-size: 18.5px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "🐾"; position: absolute; right: 4px; top: 16px; font-size: 18px; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(-30deg) scale(1.15); }
.faq p { color: var(--mut); padding: 0 0 20px; }

/* footer */
.foot { margin-top: 80px; border-top: 2px solid var(--ln); padding: 24px 0 calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--mut); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 22px; }
.foot a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* phones: keep the page short */
@media (max-width: 900px) {
  section.studio, section.lore, section.buy, section.token, section.faq { padding-top: 52px; }
  .head { margin-bottom: 18px; }
  .head p { font-size: 15.5px; }
  .cards article { flex-direction: row; align-items: center; border-radius: 20px; }
  .cards img, .cards .emoji { width: 104px; height: 104px; aspect-ratio: 1; flex: none; font-size: 44px; }
  .cards article > div:last-child { padding: 12px 14px; }
  .cards h3 { font-size: 18px; margin-bottom: 2px; }
  .cards p { font-size: 14px; line-height: 1.45; }
  .steps li { padding: 16px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; border-radius: 20px; }
  .steps li > span { width: 36px; height: 36px; font-size: 17px; margin: 0; grid-row: 1 / 3; }
  .steps h3 { font-size: 17px; margin: 0; }
  .steps p { font-size: 14px; }
  .foot { margin-top: 56px; }
}
