/* The app lockups (js/apps-grid.js) and what plays on them (js/lockup-play.js): the home page and The
   Calculator page, one look. Moved out of site.css (captain, 2026-11-25). */
.sound-btn { position: absolute; z-index: 2; right: 0; bottom: 5%; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); cursor: pointer; }
.sound-btn[hidden] { display: none; }
.sound-btn:hover { background: var(--surface-2); color: var(--text); }
.grid { display: grid; gap: 20px; }
.grid-rich { grid-template-columns: repeat(auto-fill, minmax(max(min(250px, 100%), (100% - 2 * 20px) / 3), 1fr)); }
.app-card[hidden] { display: none; }
.app-card { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 6px 0 var(--shadow); display: flex; flex-direction: column; }
.app-art { display: flex; justify-content: center; } /* the screen fills the card's top, as the device face frames it: bezel, then glass */
.app-screen { --sim-glass: var(--lcd); --sim-ink: var(--lcd-ink); width: 100%; background: #060808; border-radius: 0; padding: 2.2%; container-type: inline-size; }
#apps { position: relative; }
.lockup-sim { position: absolute; z-index: 1; left: 0; top: 0; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; opacity: 0.01; pointer-events: none; transition: opacity 140ms ease; }
.lockup-sim.is-live { opacity: 1; }
.lockup-sim iframe { position: absolute; left: 0; top: 0; width: 540px; height: 285px; border: 0; background: transparent; transform-origin: 0 0; transform: scale(var(--s, 1), var(--sy, 1)) translateX(-3px); }
.app-shot, .app-lcd { display: block; width: 100%; aspect-ratio: var(--screen-w) / var(--screen-h); height: auto; background: var(--sim-glass); border-radius: 2px; }
.app-shot { image-rendering: pixelated; }
.app-shot[hidden], .app-lcd[hidden] { display: none; }
.app-lcd { padding: 0 1.6cqw; display: flex; flex-direction: column; justify-content: center; gap: 4%; overflow: hidden; }
.app-lcd span { font-family: var(--font-lcd); font-size: 6.4cqw; line-height: 1; color: var(--sim-ink); white-space: pre; }
.app-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.app-body h3 { font-size: 19px; font-weight: 700; }
.app-by { font-size: 13px; color: var(--text-muted); }
.app-body p { font-size: 15px; line-height: 1.45; color: var(--text-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { font-size: 12px; font-weight: 500; background: var(--line); color: var(--text-soft); border-radius: var(--r-sm); padding: 3px 8px; }
.app-card { text-decoration: none; color: var(--text); }
[class^="theme-"] .app-card, [class*=" theme-"] .app-card { color: var(--text); }
.app-card:hover { background: var(--surface-2); }
.app-card .chips { margin-top: auto; padding-top: 6px; }
.lockup-sound { z-index: 2; right: auto; bottom: auto; background: rgb(0 0 0 / 0.6); color: #fff; }
.lockup-sound:hover { background: rgb(0 0 0 / 0.8); color: #fff; }
.app-body h3, .app-body p { margin: 0; }
.app-body h3 { font-family: var(--font-display); }
/* The filter's row of pills (also More to try's) and the utilities' badge. */
.try-row { display: flex; flex-wrap: wrap; gap: 8px; }
.try-pill { font-family: var(--font-ui); font-weight: 700; font-size: 14px; border: 2px solid transparent; border-radius: var(--r-sm); min-height: 44px; padding: 0 14px; background: var(--surface-3); color: var(--text); cursor: pointer; white-space: nowrap; }
.try-pill:hover { background: var(--btn-hover); }
.try-pill[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.apps-none { color: var(--text-soft); font-size: 17px; }
.apps-none[hidden], .try-row[hidden], .strong-link[hidden] { display: none; }
.chip-util { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
