/* The app pages and list pages (#2117), built by website/apps/kit.mjs. Builds on sticker-base.css.
   --accent is the app's own colour, set from its data; everything else comes from the design tokens. */
.crumbs { font-family: var(--mono); font-size: 13px; color: var(--muted); margin: var(--s3) 0 0; }
.crumbs a { text-decoration: underline; }
.k-foot { margin-top: var(--s6); font-family: var(--mono); font-size: 13px; color: var(--muted); }
.k-foot a { text-decoration: underline; }
.wrap h1, .wrap h2, .wrap h3 { margin: 0; }

/* hero parts */
.k-hero { padding: var(--s5) 0 var(--s4); }
.k-name { display: flex; align-items: center; gap: var(--s2); }
.k-name img { width: 64px; height: 64px; border-radius: 16px; border: var(--bw-card) solid var(--line); box-shadow: 3px 3px 0 var(--line); }
.k-hero h1 { font-weight: 800; font-size: clamp(38px, 6.5vw, 72px); line-height: .95; letter-spacing: -.035em; }
.k-lede { color: var(--muted); font-size: 19px; max-width: 46ch; margin: var(--s3) 0 0; }
.k-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.k-chips span { font-family: var(--mono); font-size: 13px; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 3px 12px; box-shadow: var(--shadow-small); }
.k-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
/* The buttons and the app cards live in app-cards.css (#2125) */

/* games: phone stage */
.stage { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: center; }
.k-phones { position: relative; height: 470px; }
.k-phones img { position: absolute; width: 210px; height: auto; border: var(--bw-card) solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: var(--screen); }
.k-phones img:nth-child(1) { left: 0; top: 30px; transform: rotate(-6deg); }
.k-phones img:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); }
/* mobile apps: store page */
.store { display: grid; grid-template-columns: 128px 1fr; gap: var(--s4); align-items: start; }
.k-bigicon { width: 128px; height: 128px; border-radius: 28px; border: var(--bw-card) solid var(--line); box-shadow: var(--shadow); }
/* #2178: a one-line promise above the lede, and a numbered timeline */
.k-slogan { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin: var(--s3) auto 0; max-width: 20ch; }
.k-slogan em { font-style: normal; color: var(--accent); }
.k-day { list-style: none; padding: 0; margin: 0; position: relative; }
.k-day::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 3px; background: var(--line); }
.k-day li { position: relative; padding: 0 0 var(--s4) 60px; }
.k-day li::before { content: attr(data-n); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center; background: var(--accent); color: var(--on-screen); border: var(--bw-card) solid var(--line); font: 800 16px var(--display); }
.k-day span { font: 12px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.k-day b { font-size: 24px; font-weight: 800; display: block; }
.k-day p { color: var(--muted); margin: 4px 0 0; max-width: 56ch; }
/* desktop apps: window */
.window { text-align: center; }
.window .k-name, .window .k-chips, .window .k-links { justify-content: center; }
.window .k-lede { margin-left: auto; margin-right: auto; }
.k-win { margin-top: var(--s5); border: var(--bw-card) solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: var(--screen); }
.k-win-bar { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: var(--card); border-bottom: var(--bw-card) solid var(--line); font-family: var(--mono); font-size: 12px; }
.k-win-bar i { width: 11px; height: 11px; border-radius: 50%; border: var(--bw-card) solid var(--line); background: var(--accent); }
.k-win-bar span { margin-left: 8px; }
.k-win img { display: block; width: 100%; height: auto; }

/* sections */
.k-sec { padding: var(--s5) 0 0; }
.k-sec h2 { font-size: clamp(30px, 4.5vw, 48px); margin-bottom: var(--s3); }
.k-intro { color: var(--muted); font-size: 18px; max-width: 52ch; margin: calc(-1 * var(--s2)) 0 var(--s4); }
/* #2182: the numbers as one line of figures between rules, not cards */
.k-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: var(--bw-card) solid var(--line); border-bottom: var(--bw-card) solid var(--line); padding: var(--s3) 0; }
.k-facts div { padding: 0 var(--s3); border-left: var(--bw-card) solid var(--line); }
.k-facts div:first-child { border-left: 0; padding-left: 0; }
.k-facts b { display: block; font-size: 44px; font-weight: 800; color: var(--accent); line-height: 1.05; }
.k-facts span { color: var(--muted); }
.k-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s3); }
.k-steps li { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s3); }
.k-steps.pics li { padding: var(--s2); }
.k-steps img { width: 100%; height: auto; aspect-ratio: 390 / 600; object-fit: cover; object-position: top; border-radius: var(--r-sm); border: var(--bw-card) solid var(--line); margin-bottom: var(--s2); display: block; background: var(--screen); }
.k-steps.wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.k-steps.wide img { aspect-ratio: 16 / 9; object-position: center; }
.k-n { font-family: var(--mono); font-size: 12px; background: var(--accent); color: var(--on-screen); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 0 8px; margin-right: 6px; }
.k-steps b { font-weight: 800; }
.k-steps small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.k-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.k-card { background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.k-card > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: var(--bw-card) solid var(--line); display: block; background: var(--screen); }
.k-card h3 { font-size: 20px; font-weight: 800; }
.k-card p { color: var(--muted); }
/* #2179: four homes on top, three under them, centred */
.k-ladder { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); }
.k-ladder figure { margin: 0; flex: 0 0 calc((100% - 3 * var(--s3)) / 4); }
.k-ladder img { width: 100%; height: auto; border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: 3px 3px 0 var(--line); display: block; background: var(--screen); image-rendering: pixelated; }
.k-ladder figcaption { font-weight: 700; margin-top: var(--s2); font-size: 14px; }
.k-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s2); scroll-snap-type: x mandatory; }
.k-rail figure { margin: 0; scroll-snap-align: start; }
.k-rail img { width: 100%; height: auto; border: var(--bw-card) solid var(--line); border-radius: var(--r-card); box-shadow: 3px 3px 0 var(--line); display: block; }
.k-rail figcaption { margin-top: var(--s2); }
.k-rail b { display: block; }
.k-rail small { color: var(--muted); }
.k-note { color: var(--muted); font-size: 15px; margin-top: var(--s3); }
.k-note a { text-decoration: underline; }
.k-cta { text-align: center; }
.k-cta .k-links { justify-content: center; }
.k-fine { list-style: none; padding: 0; margin: var(--s3) auto 0; color: var(--muted); font-size: 14px; max-width: 60ch; }

/* games: the level picker and the decorated room (#2107, design C) */
.px { image-rendering: pixelated; }
.k-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.k-stage { border-radius: 14px; padding: var(--s2); text-align: center; background: var(--screen); }
.k-stage img { width: 100%; max-width: 440px; height: auto; display: block; margin: 0 auto; }
.k-stage b { display: block; color: var(--on-screen); font-size: 22px; font-weight: 800; }
.k-stage span { font-family: var(--mono); font-size: 12px; color: var(--on-screen-muted); }
.k-lvls { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.k-lvls button { font: 700 14px var(--mono); border: var(--bw-card) solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); padding: 6px 0; cursor: pointer; min-height: 40px; }
.k-lvls button[aria-pressed="true"] { background: var(--pop); color: var(--on-pop); box-shadow: var(--shadow-small); }
.k-room { position: relative; border-radius: 14px; overflow: hidden; background: var(--screen); }
.k-room > img { display: block; width: 100%; height: auto; }
.k-stick { position: absolute; width: 22%; background: var(--card); border: var(--bw-card) solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-small); padding: 6px; }
.k-stick img { width: 100%; height: auto; display: block; }
.k-stick.s1 { left: 4%; top: 4%; transform: rotate(-5deg); }
.k-stick.s2 { right: 4%; top: 6%; transform: rotate(4deg); }
.k-stick.s3 { right: 6%; top: 42%; transform: rotate(-3deg); }
.k-toast { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; background: var(--screen); color: var(--go); border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 4px 14px; font-weight: 700; font-size: 14px; }

/* list pages: filter chips, each its own page, and the card shelf */
.k-filter { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.k-filter a, .k-filter span { font-family: var(--mono); font-size: 13px; border: var(--bw-card) solid var(--line); border-radius: var(--r-pill); padding: 4px 12px; background: var(--card); box-shadow: var(--shadow-small); }
.k-filter span { background: var(--pop); color: var(--on-pop); font-weight: 700; }
.k-filter a:hover { transform: translate(-1px, -1px); }

@media (max-width: 760px) {
  .stage, .k-duo { grid-template-columns: 1fr; gap: var(--s3); }
  .k-phones { height: 360px; } .k-phones img { width: 150px; }
  .store { grid-template-columns: 1fr; } .k-bigicon { width: 96px; height: 96px; }
  .k-facts { grid-template-columns: 1fr 1fr; row-gap: var(--s3); } .k-facts div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .k-rail { grid-auto-columns: 62%; }
  .k-ladder { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; justify-content: start; gap: var(--s2); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 4px var(--s2) 0; }
  .k-ladder figure { scroll-snap-align: start; }
  .k-lvls { grid-template-columns: repeat(5, 1fr); }
  .k-toast { font-size: 12px; }
}
