/* minirobots.app — built from the TinyRobots design system: toy colours, ink outlines, a darker lip under everything you can press */
@font-face { font-family: Fredoka; src: url(/assets/fredoka.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  --bg: #f7f3eb; --card: #fffcf7; --ink: #253040; --ink-2: #4d5a6d; --sand: #e9dfcd;
  --red: #ff6b63; --red-d: #d9443d; --orange: #ffa24c; --orange-d: #e07a1f; --yellow: #ffd34d; --yellow-d: #e3ae12; --yellow-l: #ffe48a;
  --mint: #57d7a1; --mint-d: #25a872; --mint-l: #8be6bf; --cyan: #55c6f2; --cyan-d: #1e98c8; --cyan-l: #8adaf7;
  --blue: #5b7cfa; --blue-d: #3654d6; --purple: #a68bfa; --purple-d: #7a5be0; --purple-l: #c4b2fc; --pink: #ff86c8; --pink-d: #e2559f;
  --t-normal: #55c6f2; --t-hard: #ff9a3d; --t-superhard: #a68bfa; --t-extreme: #e8434f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: light;
  --font: Fredoka, ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg);
  background-image: radial-gradient(rgba(37,48,64,.09) 1.3px, transparent 1.7px); background-size: 26px 26px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: #155f7e; }
a:hover { color: var(--ink); }
img, video { max-width: 100%; display: block; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 40; }

/* ---------- header ---------- */
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 24px; font-weight: 700; }
.brand .logo { height: 42px; width: auto; display: block; overflow: visible; }
.brand img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 2.5px var(--ink), 0 3px 0 2.5px var(--ink); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: block; border-radius: 9px; transition: transform 120ms var(--ease-out); }
.badge:active { transform: translateY(2px); }
.badge img { height: 44px; width: auto; }
.stores.big .badge img { height: 62px; }

/* ---------- headings ---------- */
h1.sticker, h2, h3, .brand, .faq summary, .tiers li, .trail .node, .reels span, .badge, button { font-family: Fredoka, ui-rounded, 'SF Pro Rounded', system-ui, sans-serif; }
h1.sticker, h2 { font-weight: 700; margin: 0; letter-spacing: -0.01em; color: var(--ink); }
h1.sticker { font-size: clamp(44px, 5.2vw, 66px); line-height: 1.02; }
h1.sticker em { font-style: normal; color: #d93c34; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
h3 { margin: 0; font-size: 22px; font-weight: 700; }
.lede { font-size: 20px; line-height: 1.55; font-weight: 400; color: var(--ink); max-width: 38ch; }
.sub { font-size: 19px; line-height: 1.55; font-weight: 400; max-width: 46ch; }

/* ---------- 1. the playable level ---------- */
.play { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
.play-copy { display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 2; }
.scatter { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.scatter img { position: absolute; width: var(--s, 54px); filter: drop-shadow(0 4px 0 rgba(37,48,64,.18)); animation: drift 7s var(--ease-in-out) infinite alternate; }
@keyframes drift { to { transform: translateY(-10px) rotate(var(--r, 8deg)); } }

.device { position: relative; z-index: 2; justify-self: center; width: min(100%, 384px); padding: 12px; background: var(--ink); border-radius: 48px; box-shadow: 0 0 0 3px #fff, 0 10px 0 3px var(--ink), 0 30px 60px rgba(37,48,64,.28); }
.device-screen { position: relative; aspect-ratio: 360 / 702; border-radius: 37px; overflow: hidden; background: #cfd6df; }
.device-poster { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.device-game { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #cfd6df; }
.play-btn { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 12px; padding: 16px 28px 16px 22px; min-height: 64px;
  background: var(--yellow); color: var(--ink); text-decoration: none; font-family: Fredoka, ui-rounded, sans-serif; font-weight: 700; font-size: 24px; border-radius: 22px;
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink); transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out); white-space: nowrap; }
.play-btn:hover { color: var(--ink); transform: translate(-50%, calc(-50% - 2px)); }
.play-btn:active { transform: translate(-50%, calc(-50% + 4px)); box-shadow: 0 0 0 3px var(--ink), 0 2px 0 3px var(--ink); }
.play-btn svg { width: 30px; height: 30px; fill: var(--ink); }
.play-note { position: absolute; left: 12px; right: 12px; top: calc(44% + 54px); text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); background: rgba(255,252,247,.92); border-radius: 12px; padding: 6px 10px; }
.device.is-playing .device-screen { background: #cfd6df; }

/* ---------- the robot parade ---------- */
.parade { position: relative; height: 156px; overflow: hidden; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: repeating-linear-gradient(90deg, #6e7a8c 0 22px, #5e6b80 22px 44px); }
.parade::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18px; background: #3a4557; border-top: 3px solid var(--ink); }
.walker { position: absolute; left: 0; bottom: 16px; width: 56px; animation: walk var(--d, 30s) linear infinite; animation-delay: var(--delay, 0s); will-change: transform; }
.walker.back { animation-direction: reverse; }
.walker.back .bot { transform: scaleX(-1); }
.walker .bob { animation: bob 520ms ease-in-out infinite alternate; }
.walker .load { width: 32px; margin: 0 auto -4px; animation: pop 3.6s var(--ease-out) infinite; animation-delay: var(--pop, 0s); }
.walker .bot { width: 56px; }
@keyframes walk { from { transform: translateX(-80px); } to { transform: translateX(calc(100vw + 80px)); } }
@keyframes bob { to { transform: translateY(-4px); } }
@keyframes pop { 0%, 78%, 100% { transform: translateY(0) rotate(0); } 86% { transform: translateY(-26px) rotate(-14deg); } 93% { transform: translateY(2px) scale(1.06, .92); } }

/* ---------- 2. the real thing ---------- */
.real { background: var(--cyan); border-bottom: 3px solid var(--ink); padding: 64px 0 40px; }
.real .wrap { display: flex; flex-direction: column; gap: 14px; }
.real .sub { color: var(--ink); }
.real .reels { list-style: none; margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.reels li { position: relative; background: var(--rc); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 7px 0 var(--ink); padding: 10px 10px 0; }
.reels li:nth-child(odd) { transform: rotate(-1.5deg); } .reels li:nth-child(even) { transform: rotate(1.5deg) translateY(14px); }
.reels video { width: 100%; height: auto; aspect-ratio: 480 / 596; object-fit: cover; border-radius: 20px; border: 2.5px solid var(--ink); background: var(--bg); }
.reels span { display: block; text-align: center; font-weight: 700; font-size: 18px; padding: 10px 0 12px; }
.r-yellow { --rc: var(--yellow); } .r-pink { --rc: var(--pink); } .r-purple { --rc: var(--purple-l); } .r-orange { --rc: var(--orange); }
.caption { margin-top: 22px; font-size: 15px; font-weight: 500; color: var(--ink); }

/* ---------- 3. the map ---------- */
.map-band { background: var(--yellow); border-bottom: 3px solid var(--ink); position: relative; }
.map { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 14px; }
.trail { list-style: none; margin: 32px 0 0; padding: 0; columns: 2 320px; column-gap: 64px; }
.trail li { position: relative; break-inside: avoid; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; align-items: center; padding: 10px 0 18px; }
.trail li::before { content: ''; position: absolute; left: 30px; top: 64px; bottom: -10px; border-left: 5px dotted rgba(37,48,64,.45); transform: translateX(-2px); }
.trail li:last-child::before, .trail li.col-end::before { display: none; }
.trail .node { grid-row: 1 / span 2; }
.trail h3 { align-self: end; }
.trail p { align-self: start; }
.trail .node { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--tc, var(--t-normal)); color: #fff; font-weight: 700; font-size: 21px;
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; box-shadow: inset 0 6px 0 rgba(255,255,255,.35), 0 0 0 3px var(--ink), 0 5px 0 3px var(--ink); font-variant-numeric: tabular-nums; }
.trail .milestone .node { --tc: var(--purple); }
.trail p { font-size: 17px; line-height: 1.5; font-weight: 400; color: var(--ink); }
.tiers { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 6px 0 var(--ink); padding: 24px 26px; }
.tiers p { font-size: 17px; line-height: 1.55; font-weight: 400; }
.tiers ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.tiers li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--bg); border: 2.5px solid var(--ink); }
.tiers .dot { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 2px; background: var(--tc); }
.tiers .dot i { width: 4px; height: 12px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.t-normal { --tc: var(--t-normal); } .t-hard { --tc: var(--t-hard); } .t-superhard { --tc: var(--t-superhard); } .t-extreme { --tc: var(--t-extreme); }

/* ---------- 4. questions for Bolt ---------- */
.ask { background: var(--mint-l); }
.ask-in { padding-top: 72px; padding-bottom: 80px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.bolt { width: 240px; height: auto; position: sticky; top: 24px; filter: drop-shadow(0 8px 0 rgba(37,48,64,.2)); }
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq h2 { margin-bottom: 10px; }
.faq details { background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px; box-shadow: 0 4px 0 var(--ink); }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 700; list-style: none; padding: 18px 56px 18px 22px; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11h10M11 6v10' stroke='%23253040' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center/100%; box-shadow: 0 0 0 2px var(--ink); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 17px; line-height: 1.6; font-weight: 400; color: var(--ink); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--card); }
.foot .wrap { padding-top: 30px; padding-bottom: 30px; display: flex; justify-content: space-between; align-items: center; gap: 16px 28px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot a, .foot button { color: var(--card); font: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot :focus-visible { outline-color: var(--yellow); }

/* ---------- legal pages ---------- */
.legal-band { background: var(--purple-l); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.legal { max-width: 800px; margin: 0 auto; padding: 48px 24px 72px; }
.legal article { background: var(--card); border: 3px solid var(--ink); border-radius: 34px; padding: 44px 48px; box-shadow: 0 7px 0 var(--ink); }
.legal h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); font-weight: 700; line-height: 1.05; }
.legal h2 { font-size: 24px; margin: 34px 0 8px; }
.legal h3 { font-size: 19px; margin: 20px 0 6px; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; font-weight: 400; color: var(--ink); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.updated { color: var(--ink-2); margin-top: 8px; }

/* ---------- cookie banner ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 520px; margin: 0 auto; background: var(--card); border: 2.5px solid var(--ink); border-radius: 22px;
  box-shadow: 0 6px 0 var(--ink); padding: 16px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-weight: 500; font-size: 16px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 240px; }
.consent .row { display: flex; gap: 8px; }
.consent button { font: inherit; font-weight: 700; font-size: 16px; padding: 9px 16px; min-height: 44px; border-radius: 14px; border: 2.5px solid var(--ink); cursor: pointer; }
.consent .yes { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.consent .no { background: var(--card); color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .play { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 8px; }
  .ask-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .real .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .bolt { position: static; width: 140px; height: auto; }
  .legal article { padding: 28px 22px; }
}
@media (max-width: 900px) {
  .scatter { display: none; }
}
@media (max-width: 420px) {
  .stores.big .badge img { height: 48px; }
  .p-wall { grid-template-columns: repeat(4, 46px); grid-auto-rows: 46px; }
  .p-pod { width: 62px; height: 68px; }
  .p-dock { width: 80px; height: 64px; }
  .badge img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .walker, .walker .bob, .walker .load, .scatter img { animation: none; }
  .walker { left: calc(var(--x, 10) * 1%); }
  .p-pod, .badge, .faq summary::after { transition: none; }
}
