/* mykikitoys.cloud: a warm, sunny playroom in the app's amber and moss greens.
   No scripts and no outside files (see _headers), so everything moving is CSS. */
@font-face { font-family: "Nunito"; src: url("/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
:root {
  --bg: #FFF8EC; --ink: #3E2B1A; --muted: #7A5D44; --card: #FFFFFF; --line: #F1E1C8;
  --cocoa: #6A4A2B; --amber: #F2B84B; --moss: #7E9F5C; --moss-ink: #4F6B35;
  --tile-amber: #FCE6B8; --tile-moss: #E3EFD5; --tile-sky: #DDEFF5; --tile-rose: #FBE1DC;
  --ink-amber: #8A5A12; --ink-moss: #46622C; --ink-sky: #2D6577; --ink-rose: #9A4436;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E1812; --ink: #F6EBDD; --muted: #CDB89F; --card: #2B2219; --line: #3D3024;
    --tile-amber: #3A2B14; --tile-moss: #243118; --tile-sky: #18303A; --tile-rose: #3A1F1A;
    --ink-amber: #F4C97A; --ink-moss: #B9D99A; --ink-sky: #9FD3E4; --ink-rose: #F2AFA2;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
a { color: var(--moss-ink); }
h1, h2 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

/* The playroom: the whole first screen */
.room { position: relative; overflow: hidden; background: #FCE6B8; color: #3E2B1A; }
.room .bar, .room .wall-words { position: relative; z-index: 1; }
.bar { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #6A4A2B; font-weight: 900; font-size: 20px; }
.brand img { border-radius: 10px; }
.brand em { font-style: normal; font-weight: 700; opacity: 0.65; }
.bar-link { font-weight: 800; text-decoration: none; color: #6A4A2B; }
.wall-words { max-width: 1120px; margin: 0 auto; padding: 24px 20px 0; }
.wall-words > .lead, .wall-words > .actions { max-width: 560px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: #6A4A2B; font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.room h1 { font-size: clamp(40px, 5.8vw, 70px); font-weight: 900; color: #6A4A2B; letter-spacing: -0.03em; }
.room .lead { font-size: clamp(17px, 1.6vw, 20px); color: #86603C; margin-top: 18px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease; }
.button:hover { transform: translateY(-1px); }
.button-quiet { background: rgba(255, 255, 255, 0.75); color: #6A4A2B; }
.button-soon { background: #6A4A2B; color: #FFFFFF; opacity: 0.92; cursor: default; }
.button-soon:hover { transform: none; }
.button small { font-weight: 600; opacity: 0.85; font-size: 12px; }

@media (min-width: 761px) {
  .room { min-height: max(100svh, 680px); }
  .room-art { position: absolute; inset: 0; width: 100%; height: 100%; }
  .wall-words { padding-top: clamp(24px, 9vh, 110px); }
}
/* Phones: words first, then the room, cropped so Moss stays in the middle. */
@media (max-width: 760px) {
  br.wide { display: none; }
  .room { display: flex; flex-direction: column; }
  .room .bar { order: 1; } .room .wall-words { order: 2; }
  .room-art { order: 3; display: block; position: relative; height: 500px; width: 800px; max-width: none; left: calc(50% - 561px); margin-top: -40px; }
}

/* Room colors */
.wall { fill: #FCE6B8; }
.sunbeam { fill: #FFF2D2; opacity: 0.6; }
.window-frame { fill: #FFF6E3; }
.window-sky { fill: #CFE8F2; }
.window-hill { fill: #A9D493; }
.sun { fill: #F9D27A; }
.window-cloud { fill: #FFFFFF; }
.rays { stroke: #F9D27A; stroke-width: 6; stroke-linecap: round; }
.glint { fill: #FFFFFF; }
.sill { fill: #E8B866; }
.sparkles { fill: #FFFFFF; }
.floor { fill: #EBBE6E; }
.planks { stroke: #DDAA58; stroke-width: 4; }
.skirting { fill: #D9A653; }
.rug { fill: #F6D48E; }
.rug-ring { fill: none; stroke: #F9E2AE; stroke-width: 9; }
.block-teal { fill: #6FB7A8; } .block-coral { fill: #E98B6D; } .block-lilac { fill: #A99BE0; }
.letter { font: 900 56px "Nunito", system-ui, sans-serif; fill: #FFFFFF; }
.stacker-base { fill: #B8763F; }
.arc { fill: none; stroke-linecap: round; stroke-width: 24; }
.arc-coral { stroke: #E98B6D; } .arc-butter { stroke: #F2C94C; } .arc-teal { stroke: #6FB7A8; stroke-width: 20; }
.balloon-string { fill: none; stroke: #B88A6A; stroke-width: 3; }
.balloon-body { fill: #E98B6D; } .balloon-knot { fill: #D97A5D; } .balloon-shine { fill: #FFFFFF; opacity: 0.4; }
.moss-shadow { fill: #B98A3E; }

/* Moss bounces like a ball: squash on landing, stretch on the way up (he's drawn at 2.4x, so heights are
   in his own units). */
.hop { transform-box: fill-box; transform-origin: 50% 100%; animation: hop 1.2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes hop {
  0% { transform: translateY(0) scale(1.18, 0.8); }
  10% { transform: translateY(-10px) scale(0.88, 1.14); }
  50% { transform: translateY(-64px) scale(0.98, 1.03) rotate(-4deg); }
  90% { transform: translateY(-10px) scale(0.9, 1.12); }
  100% { transform: translateY(0) scale(1.18, 0.8); }
}
.moss-shadow { transform-box: fill-box; transform-origin: center; animation: moss-shadow 1.2s ease-in-out infinite; }
@keyframes moss-shadow { 0%, 100% { transform: scale(1.2); opacity: 0.38; } 50% { transform: scale(0.5); opacity: 0.14; } }
.sprout { transform-box: fill-box; transform-origin: 30% 100%; animation: sprout 1.2s ease-in-out infinite; }
@keyframes sprout { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-12deg); } }
.balloon { transform-box: view-box; transform-origin: 1280px 552px; animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(3deg); } }
/* Clouds drift past the window at their own pace; the sun's rays turn slowly and shimmer, with a glint. */
.window-cloud { animation: pass linear infinite; }
.wc1 { animation-duration: 18s; animation-delay: -6s; }
.wc2 { animation-duration: 13s; animation-delay: -2s; opacity: 0.9; }
.wc3 { animation-duration: 24s; animation-delay: -17s; opacity: 0.95; }
@keyframes pass { from { transform: translateX(-160px); } to { transform: translateX(360px); } }
.rays { transform-box: view-box; transform-origin: 1270px 228px; animation: spin 18s linear infinite; }
.sun-rays { transform-box: view-box; transform-origin: 1270px 228px; animation: shimmer 2.4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(45deg); } }
@keyframes shimmer { 0%, 100% { transform: scale(0.92); opacity: 0.7; } 50% { transform: scale(1.12); opacity: 1; } }
.glint { transform-box: fill-box; transform-origin: center; animation: glint 2.4s ease-in-out infinite; }
.g2 { animation-delay: -1.2s; }
@keyframes glint { 0%, 100% { transform: scale(0.2) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }
.twinkle { animation: twinkle 2.4s ease-in-out infinite; opacity: 0.2; }
.t2 { animation-delay: -0.8s; } .t3 { animation-delay: -1.6s; } .t4 { animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.9; } }
/* Reduce Motion: Moss and the balloon stay still, but clouds still drift past the window (slower) and the
   sun still shimmers, so the room isn't frozen. */
@media (prefers-reduced-motion: reduce) {
  .hop, .moss-shadow, .sprout, .balloon, .rays { animation: none; }
  .wc1 { animation-duration: 40s; } .wc2 { animation-duration: 30s; } .wc3 { animation-duration: 52s; }
  html { scroll-behavior: auto; }
}
}

main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; padding: 56px 0 64px; }
.tile { border-radius: 26px; padding: 22px; }
.tile h2 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.tile p { font-size: 15.5px; }
.tile-amber { background: var(--tile-amber); } .tile-amber h2 { color: var(--ink-amber); }
.tile-moss { background: var(--tile-moss); } .tile-moss h2 { color: var(--ink-moss); }
.tile-sky { background: var(--tile-sky); } .tile-sky h2 { color: var(--ink-sky); }
.tile-rose { background: var(--tile-rose); } .tile-rose h2 { color: var(--ink-rose); }

.about { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 0 56px; border-top: 1.5px solid var(--line); }
@media (min-width: 880px) { .about { grid-template-columns: 0.9fr 1.4fr; gap: 48px; } }
.about h2, .support h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; margin-bottom: 12px; }
.about-text p, .support p { color: var(--muted); }
.apps { display: grid; gap: 12px; }
.app { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 22px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: transform 0.15s ease, border-color 0.15s ease; }
.app:hover { transform: translateY(-2px); border-color: var(--moss); color: var(--ink); }
.app img { border-radius: 16px; flex: none; }
.app > span { display: flex; flex-direction: column; }
.app strong { font-size: 18px; }
.app span span { color: var(--muted); font-size: 15px; }
.support { text-align: center; padding: 40px 24px; margin-bottom: 48px; border-radius: 32px; background: var(--tile-amber); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.support p { max-width: 32em; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 0 20px 40px; }
