  /* App-store layout: a featured hero, sticky category chips, sideways shelves per
     category, grids for one category or a search, and a detail sheet per app. */

  /* hero */
  .hero { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; margin: 26px 0 8px; }
  .hero .side { display: grid; gap: 16px; }
  .feat { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; text-align: left;
    border: 0; border-radius: 28px; padding: 22px 24px; cursor: pointer; color: var(--w); font: inherit; overflow: hidden;
    box-shadow: var(--shadow); transition: transform 0.4s var(--spring), box-shadow 0.3s var(--ease); }
  .feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .feat:hover .puck { transform: rotate(-6deg) scale(1.03); }
  .feat .puck { transition: transform 0.6s var(--spring); }
  .feat.big { padding: 36px 34px 36px 40px; min-height: 360px; gap: 12px; }
  /* demi: one wide banner, a category's own hero. Half the big hero's height. */
  .hero.solo { grid-template-columns: 1fr; }
  .feat.demi { min-height: 156px; padding: 26px 32px; }
  .feat.demi h2 { font-size: 31px; margin: 8px 0 10px; max-width: 13ch; }
  .feat.demi p { font-size: 15px; line-height: 22px; max-width: 42ch; }
  .feat.demi .go { margin-top: 16px; }
  /* spotlight band: a tinted feat card pinned beside a category's tile strip. Only a
     few rows get one, and the side alternates down the page. */
  .band { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: stretch; }
  .band.right { grid-template-columns: 1fr 300px; }
  .band.right .feat.lead { order: 2; }
  .feat.lead { border-radius: 22px; padding: 24px 26px; align-self: stretch; }
  .feat.lead h2 { font-size: 23px; margin: 0 0 9px; max-width: 11ch; }
  .feat.lead p { font-size: 13.5px; line-height: 19px; max-width: 24ch; }
  .band .shelf { margin: 0; padding: 6px 2px 28px; }
  .feat.dawn { background: linear-gradient(155deg, #FFF4E8 0%, #FFDDC6 55%, #FFC1A3 100%); }
  .feat.ember { background: linear-gradient(155deg, #FFF6E2, #FFDFB4); }
  .feat.sky { background: linear-gradient(155deg, #F4F7FF 0%, #DDE7FB 60%, #CBD9F6 100%); }
  .feat.rose { background: linear-gradient(155deg, #FFF2EF, #FAD4CD); }
  .feat.mint { background: linear-gradient(155deg, #F0FBF4, #D7F0E0 60%, #C3E7D1 100%); }
  .feat.lilac { background: linear-gradient(155deg, #F7F4FF, #E4DCFB 60%, #D4C9F4 100%); }
  .eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
  .feat h2 { font-family: var(--display); font-weight: 900; letter-spacing: -0.025em; margin: 6px 0 8px; font-size: 25px; line-height: 1.08; text-wrap: balance; }
  .feat.big h2 { font-size: 44px; margin: 10px 0 14px; max-width: 9.5em; }
  .feat p { margin: 0; color: var(--mute); font-size: 14px; line-height: 20px; text-wrap: pretty; }
  .feat.big p { font-size: 17px; line-height: 26px; max-width: 34ch; }
  .feat .go { display: inline-flex; margin-top: 22px; }

  /* toolbar: chips + search, pinned while you scroll */
  .toolbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 12px; align-items: center; padding: 14px 0 10px; margin-top: 18px;
    background: linear-gradient(var(--bg) calc(100% - 12px), rgba(255, 250, 246, 0)); }   /* solid behind the chips however many rows they wrap to */
  .chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  @media (min-width: 720px) { .chips { flex-wrap: wrap; overflow: visible; } }   /* phones scroll the row; desktops see every chip */
  .chip { flex: none; height: 36px; padding: 0 15px; border-radius: 18px; border: 1px solid var(--line); background: #fff; color: var(--w);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s, transform 0.25s var(--spring); }
  .chip:hover { transform: translateY(-1px); }
  .chip[aria-pressed="true"] { background: var(--w); color: #fff; border-color: var(--w); }
  input[type=search] { width: 220px; flex: none; background: #fff; color: var(--w); border: 1px solid var(--line);
    border-radius: 18px; height: 36px; padding: 0 15px; font: inherit; font-size: 14px; caret-color: var(--accent); }
  input[type=search]::placeholder { color: var(--faint); }
  .status { color: var(--mute); font-size: 13.5px; min-height: 20px; margin: 0 0 4px; }
  .status.ok { color: var(--accent-ink); } .status.err { color: var(--err); }

  /* shelves */
  .shead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 12px; }
  h2.cat { font-family: var(--display); font-size: 26px; font-weight: 900; letter-spacing: -0.02em; color: var(--w); margin: 0; }
  .shead p { margin: 2px 0 0; color: var(--mute); font-size: 14px; }
  .see { border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; padding: 4px 2px; white-space: nowrap; }
  .shelf { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 6px 24px 34px; margin: 0 -24px -16px; scroll-padding: 0 24px; scrollbar-width: none; }   /* room for the tiles' shadows, so the scroll box doesn't clip them into a visible band */
  .shelf::-webkit-scrollbar { display: none; }
  .tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; text-align: left;
    background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 16px; cursor: pointer; color: var(--w); font: inherit;
    box-shadow: var(--shadow); transition: transform 0.35s var(--spring), box-shadow 0.3s var(--ease); }
  .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .tile.idea { background: rgba(255, 255, 255, 0.55); border: 1.5px dashed rgba(46, 31, 25, 0.16); box-shadow: none; }
  .tile > div:last-child { padding: 0 6px; }
  .tile .nm { font-family: var(--display); font-weight: 900; font-size: 17px; letter-spacing: -0.01em; display: flex; gap: 8px; align-items: center; }
  .tile .sub { color: var(--mute); font-size: 13px; line-height: 18px; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* the stage: a tinted panel that puts the app's screen first, like a product shot */
  .stage { display: grid; place-items: center; border-radius: 16px; padding: 20px 0 22px;
    background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #FFF1E6 70%, #FFE6D6 100%); }
  .stage .puck { transition: transform 0.6s var(--spring); }
  .tile:hover .stage .puck, .app:hover .stage .puck { transform: rotate(-6deg) scale(1.03); }
  .idea .stage { background: rgba(255, 241, 230, 0.45); }

  /* grids: one category, or search results */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .app { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 10px 10px 16px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: var(--shadow); cursor: pointer; transition: transform 0.35s var(--spring), box-shadow 0.3s var(--ease); }
  .app:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
  .app.off { opacity: 0.5; }
  .app.idea { background: rgba(255, 255, 255, 0.55); border: 1.5px dashed rgba(46, 31, 25, 0.16); box-shadow: none; }
  .app > :not(.stage) { margin: 0 6px; }
  .app .top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 4px; }
  .app .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .app .nm { font-family: var(--display); font-weight: 900; font-size: 19px; letter-spacing: -0.015em; display: flex; gap: 8px; align-items: center; }
  .cat-tag { font-size: 12.5px; color: var(--faint); font-weight: 700; margin-top: 1px; }
  .desc { color: var(--mute); font-size: 14px; line-height: 20px; text-wrap: pretty; }
  .howto { background: var(--bg); border-radius: 12px; padding: 9px 12px; color: var(--mute); font-size: 13px; line-height: 19px; text-wrap: pretty; }
  .howto b { color: var(--w); font-weight: 800; }
  .act { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 2px; }
  .pill { font-family: var(--mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; background: var(--lift); color: var(--mute); white-space: nowrap; }
  .pill.hot { background: #FFE8DD; color: var(--accent-ink); }
  .pill.new { background: var(--accent-ink); color: #fff; font-weight: 700; }   /* manifest "added" under 30 days; white on accent-ink is 5:1 */
  .empty { color: var(--mute); padding: 28px 0; }

  @media (prefers-reduced-motion: reduce) { .feat, .tile, .app, .chip, .feat .puck, .stage .puck { transition: none; } }

  /* first-visit welcome, pinned just above the Tyrekick feedback button (bottom right) */
  .welcome { position: fixed; right: 24px; bottom: 108px; z-index: 50; width: min(340px, calc(100vw - 32px));
    background: #fff; border-radius: 24px; padding: 20px 20px 18px; box-shadow: 0 24px 60px -18px rgba(74, 38, 20, 0.45), 0 2px 6px rgba(74, 38, 20, 0.08); }
  .welcome::after { content: ""; position: absolute; right: 10px; bottom: -9px; width: 20px; height: 20px; background: #fff;
    transform: rotate(45deg); border-radius: 0 0 5px 0; }   /* the tail, pointing down at the button */
  .welcome[hidden] { display: none; }
  .welcome h2 { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 8px; }
  .welcome p { margin: 0 0 14px; color: var(--mute); font-size: 14.5px; line-height: 21px; }
  .welcome p b { color: var(--w); }
  .welcome .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .welcome .row span { color: var(--faint); font-size: 12.5px; }
  @media (prefers-reduced-motion: no-preference) {
    .welcome:not([hidden]) { animation: hello 0.6s var(--spring) both; }
    @keyframes hello { from { opacity: 0; transform: translateY(16px) scale(0.95); } }
  }
  @media (max-width: 560px) { .welcome { right: 16px; bottom: 96px; } }

  @media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .feat.big { min-height: 0; padding: 28px; grid-template-columns: 1fr; }
    .feat.big .puck { --s: 190px !important; margin: 0 auto; grid-row: 1; }
    .feat.big h2 { font-size: 34px; }
    .feat.demi { padding: 22px 24px; }
    .feat.demi .puck { --s: 116px !important; }
    .feat.demi h2 { font-size: 27px; }
    .band, .band.right { grid-template-columns: 1fr; }
    .band.right .feat.lead { order: 0; }
    .toolbar { flex-direction: column; align-items: stretch; }
    input[type=search] { width: 100%; }
  }
  @media (max-width: 560px) {
    .shelf { margin: 0 -16px -16px; padding: 6px 16px 34px; scroll-padding: 0 16px; }
  }

  /* a Lua app's icon is a plain white-on-black mask, not a screenshot: sit it inside the glass */
  .puck img.ico { inset: 17%; width: 66%; height: 66%; object-fit: contain; }

  /* "Want this" votes on idea cards */
  .want { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
  .act { flex-wrap: wrap; }
  .act .want { margin-top: 0; flex-wrap: wrap; gap: 6px 10px; }
  .want-btn { height: 28px; padding: 0 12px; font-size: 13px; }
  .want-btn[aria-pressed="true"] { background: #FFE8DD; color: var(--accent-ink); cursor: default; }
  .want-btn[aria-pressed="true"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .why { white-space: nowrap; color: var(--mute); font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
  .why:hover { color: var(--w); }
  /* "Tell us why" points at Tyrekick's round button */
  .tk-ring { position: fixed; z-index: 2147483000; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; animation: tk-ring 0.8s ease-out 3; }
  @keyframes tk-ring { from { transform: scale(0.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
