/* 13 app: the navigable AAA app prototype on a tall gold-edged plinth, three collectible cards escaping behind it */
#app { background: var(--sf-dark); color: var(--tx-on-dark); overflow: hidden; padding-block: 78px 48px; outline: none; max-height: 100vh;
  --ap-h: min(calc(100vh - 132px), 860px); }
#app .ap__glow { position: absolute; z-index: -1; right: 4%; top: 6%; width: 58vw; height: 92vh; pointer-events: none;
  background: radial-gradient(closest-side, rgb(214 176 92 / 0.22), rgb(214 176 92 / 0.06) 55%, transparent 78%); }
#app .ap__in { display: grid; grid-template-columns: minmax(0, 6.2fr) minmax(0, 5.8fr); gap: 28px; align-items: center; }
#app .ap__h { margin-bottom: 14px; }
#app .ap__lead { max-width: 18em; margin: 0 0 22px; color: var(--tx-on-dark); }
#app .ap__pts { display: grid; gap: 14px; max-width: 30em; }
#app .ap__pts li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
#app .ap__ic { width: 40px; height: 40px; padding: 8px; border-radius: 12px; fill: none; stroke: var(--accent-text-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  background: rgb(214 176 92 / 0.08); box-shadow: inset 0 0 0 1px rgb(214 176 92 / 0.22); }
#app .ap__pts p { font-size: clamp(22px, calc(0.52vw + 15.4px), 26px); line-height: 1.34; color: var(--tx-on-dark-2); text-wrap: pretty; }
#app .ap__pts b { display: block; font-size: clamp(23px, calc(0.6vw + 15.4px), 28px); font-weight: 500; letter-spacing: -0.01em; color: var(--tx-on-dark); }
#app .ap__ok { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-left: 10px; font-size: clamp(16px, calc(0.3vw + 12px), 19px); line-height: 1.35; color: var(--tx-on-dark-2); }
#app .ap__ok svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent-text-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#app .ap__foot { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

#app .ap__ctl { display: flex; align-items: center; gap: 18px; }
#app .ap__back { color: var(--tx-on-dark); box-shadow: inset 0 0 0 1px var(--ln-on-dark-strong); }
#app .ap__full { padding-block: 0; min-height: 40px; font-size: 15px; color: var(--tx-on-dark-3); }
/* Volver is only for the presenter: it shows while the app holds the keyboard */
#app .ap__back { display: none; }
#app.is-playing .ap__back { display: inline-flex; }

/* stage */
#app .ap__stage { position: relative; display: grid; place-items: center; height: var(--ap-h); container-type: inline-size; }
/* no slab: the phone floats on the warm glow; the iframe document is transparent in embed mode */
#app .ap__frame { position: relative; z-index: 2; height: var(--ap-h); aspect-ratio: 470 / 960; background: transparent; }
#app .ap__frame::before { content: ""; position: absolute; inset: 8% -6% 4%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(214 176 92 / 0.22), rgb(214 176 92 / 0.06) 60%, transparent); filter: blur(8px); }
#app .ap__frame iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: normal; }
#app.is-playing .ap__frame::before { background: radial-gradient(closest-side, rgb(214 176 92 / 0.34), rgb(214 176 92 / 0.1) 60%, transparent); }
#app.is-playing .ap__back { background: var(--act-dark-bg); color: var(--act-dark-fg); box-shadow: none; }

/* collectible cards behind the phone (sized with the stage) */
#app .ap__cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#app .ap__card { position: absolute; top: 50%; left: 50%; width: min(calc(var(--ap-h) * 0.27), 25cqw); aspect-ratio: 5 / 7; margin: 0; padding: 5px; border-radius: 14px;
  background: linear-gradient(150deg, #6a4c16 0%, #d9b866 28%, #f3e2a8 44%, #b8913f 62%, #5e4515 100%);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.85); }
#app .ap__card img { width: 100%; height: 78%; object-fit: cover; object-position: 50% 18%; border-radius: 9px 9px 2px 2px; }
#app .ap__card figcaption { display: flex; justify-content: flex-start; align-items: baseline; gap: 6px; height: 22%; padding: 0 8px; border-radius: 2px 2px 9px 9px; background: linear-gradient(180deg, #23160f, #140c0a); color: var(--tx-on-dark); }
#app .ap__card figcaption { align-items: center; }
#app .ap__card b { font-size: max(13px, min(calc(var(--ap-h) * 0.024), 2.2cqw)); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
#app .ap__card--1 { transform: translate(calc(-50% - 42cqw), calc(-50% - var(--ap-h) * 0.14)) rotate(-12deg); }
#app .ap__card--2 { transform: translate(calc(-50% - 37cqw), calc(-50% + var(--ap-h) * 0.17)) rotate(-5deg); }
#app .ap__card--3 { transform: translate(calc(-50% + 44cqw), calc(-50% + var(--ap-h) * 0.02)) rotate(9deg); }

@media (min-width: 1500px) {
  #app .ap__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
@media (max-width: 1100px) {
  #app .ap__in { grid-template-columns: minmax(0, 1fr); }
  #app { --ap-h: min(86vh, 760px); padding-bottom: 64px; }
}
@media (max-width: 640px) {
  #app .ap__card--1, #app .ap__card--3 { display: none; }
  #app .ap__card--2 { transform: translate(calc(-50% - 34vw), -50%) rotate(-8deg); }
}
