/* Hero demo: the app's screens rebuilt in HTML from its own styles (components/SignDetailsView.tsx,
   components/Quiz/QuizRunner.tsx, components/Tests/TestRunner.tsx, app/sign-quiz.tsx) and its real assets.
   Screens are laid out in device points (phone 412×893, iPad 1210×834) and scaled to the frame. */

.duo { position: relative; width: min(640px, 100%); aspect-ratio: 640 / 450; justify-self: center; }

/* one device that morphs between an iPhone (15-class, 393×852 pt screen) and an iPad Pro 11" in landscape.
   demo.js sets the sizes (--gw/--gh screen, --bp bezel, --rr/--br/--gr corner radii) and each screen's scale --sk. */
.dev { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); --m: 0.7s cubic-bezier(0.65, 0, 0.3, 1); }
.rim { position: relative; padding: var(--rp); border-radius: var(--rr); transition: border-radius var(--m), padding var(--m);
  background: linear-gradient(145deg, #8a8e95 0%, #3b3e43 18%, #60646b 45%, #2c2f33 70%, #7d8188 100%);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 60px rgba(250, 204, 21, 0.05); }
.body { position: relative; padding: var(--bp); border-radius: var(--br); background: #050505; box-shadow: inset 0 0 0 1px #1d1f22; transition: border-radius var(--m), padding var(--m); }
.dev .glass { position: relative; overflow: hidden; width: var(--gw); height: var(--gh); border-radius: var(--gr); background: #000; transition: width var(--m), height var(--m), border-radius var(--m); }
.hw { position: absolute; border-radius: 2px; background: linear-gradient(90deg, #2a2d31, #74787f 50%, #2a2d31); transition: opacity 0.25s; }
.hw.p { width: 3px; }
.hw.p.l { left: -2px; }
.hw.p.r { right: -2px; }
.hw.t { height: 3px; top: -2px; background: linear-gradient(180deg, #2a2d31, #74787f 50%, #2a2d31); }
.cam { position: absolute; left: 50%; top: calc(var(--bp) / 2 - 3px); width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a55, #0b0d12 60%); transition: opacity 0.25s; }
.dev[data-dev="phone"] .hw.t, .dev[data-dev="phone"] .cam, .dev[data-dev="ipad"] .hw.p { opacity: 0; transition-delay: 0s; }
.dev .hw, .dev .cam { transition-delay: 0.45s; }
.scr { position: absolute; left: 50%; top: 50%; transform-origin: 50% 50%; transform: translate(-50%, -50%) scale(var(--sk)); overflow: hidden; color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, Inter, Roboto, sans-serif; -webkit-font-smoothing: antialiased;
  opacity: 0; }
.scr.on { opacity: 1; }
#scr-phone { width: 412px; height: 893px; }
#scr-ipad { width: 1210px; height: 834px; }
.dev.rafm .rim, .dev.rafm .body, .dev.rafm .glass { transition: none; }


/* the switch above the stage */
.duo-pick { display: inline-flex; justify-self: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--asphalt); }
.duo-pick button { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 9px 18px; background: none; color: var(--dust); font: 700 14px var(--body, system-ui); cursor: pointer; transition: background 0.2s, color 0.2s; }
.duo-pick button svg { width: 16px; height: 16px; }
.duo-pick button[aria-pressed="true"] { background: var(--sign); color: var(--ink); }
.scr * { box-sizing: border-box; }
.scr img { display: block; }

/* screens inside a device: a stack that slides like the app's navigation */
.page { position: absolute; inset: 0; background: #000; transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
.page.off-r { transform: translateX(100%); }
.page.gone { visibility: hidden; }
.page.off-l { transform: translateX(-28%); }
.page.under::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.noanim, .noanim *, .noanim-in * { transition: none !important; }

/* iOS status bar + home indicator */
.sb { position: absolute; left: 0; right: 0; top: 0; height: 54px; padding: 4px 30px 0 46px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; color: #fff; z-index: 40; }
.sb.dark { color: #000; }
.sb .ic { display: flex; align-items: center; gap: 6px; }
.sb svg { height: 12px; width: auto; }
.hi { position: absolute; left: 50%; bottom: 8px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: #fff; z-index: 40; }
.learn .hi { background: #000; }

/* touch indicator */
.finger { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; z-index: 50; pointer-events: none;
  background: rgba(255, 255, 255, 0.42); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75), 0 4px 14px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: scale(1.3); transition: opacity 0.18s, transform 0.18s; }
.finger.down { opacity: 1; transform: scale(1); }
.finger.move { transition: opacity 0.18s, transform 0.18s, left var(--d, 0.3s) cubic-bezier(0.3, 0.6, 0.3, 1), top var(--d, 0.3s) cubic-bezier(0.3, 0.6, 0.3, 1); }

/* ---- signs carousel (app/learn.tsx) ---- */
.learn { background: #f3f4f6; }
.back { position: absolute; left: 12px; top: 56px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: #111; font-size: 26px; font-weight: 500; line-height: 1; z-index: 5; }
.cards { position: absolute; left: 0; top: 0; height: 100%; transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.25, 1); }
.card { position: absolute; background: #000; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; overflow: hidden; }
.card .top, .card .bottom { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.card .badge { border: 1px solid #374151; border-radius: 20px; padding: 4px 12px; margin-bottom: 40px; font-size: 12px; letter-spacing: 0.5px; color: #9ca3af; text-transform: uppercase; }
.card .t { font-size: 48px; line-height: 48px; font-weight: 800; letter-spacing: -1px; text-align: center; text-transform: uppercase; }
.card .t em { display: block; font-style: normal; color: #facc15; }
.card .sub { font-size: 16px; color: #9ca3af; text-align: center; margin-top: 16px; line-height: 21px; }
.card .desc { font-size: 14px; color: #6b7280; text-align: center; margin-top: 8px; padding: 0 8px; line-height: 18px; }
.pill { position: absolute; display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px 0 7px; background: #fff; border-radius: 23px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); font-weight: 800; font-size: 17px; color: #111827; }
.pill img { width: 34px; height: 34px; }
.pill svg { width: 14px; height: 14px; }
.strip { position: absolute; left: 0; right: 0; }
.thumb { position: absolute; top: 0; border-radius: 50%; background: #fff; display: grid; place-items: center; transform: translate(-50%, -50%); transition: left 0.42s cubic-bezier(0.2, 0.85, 0.25, 1), width 0.42s, height 0.42s, opacity 0.42s; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.thumb img { width: 64%; height: 64%; }
.ring { position: absolute; top: 0; border-radius: 50%; border: 4px solid #facc15; transform: translate(-50%, -50%); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
.slabel { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: #374151; letter-spacing: 0.2px; }

/* ---- sign details (components/SignDetailsView.tsx) ---- */
.dtop { position: absolute; left: 0; right: 0; top: 0; z-index: 10; height: 112px; padding: 54px 12px 0; display: flex; align-items: flex-start; justify-content: space-between; background: rgba(0, 0, 0, 0.85); }
.close { width: 44px; height: 44px; border-radius: 22px; background: rgba(255, 255, 255, 0.08); display: grid; place-items: center; font-size: 30px; font-weight: 700; line-height: 1; margin-top: 6px; }
.chip { border: 1px solid #374151; border-radius: 16px; padding: 5px 12px; margin-top: 15px; font-size: 12px; letter-spacing: 0.6px; color: #9ca3af; }
.dscroll { position: absolute; left: 0; right: 0; top: 0; transition: transform 0.75s cubic-bezier(0.25, 0.7, 0.25, 1); }
.hero { display: flex; flex-direction: column; align-items: center; padding: 126px 24px 0; }
.hero > img { width: 176px; height: 176px; }
.dtitle { margin-top: 18px; font-size: 34px; line-height: 38px; font-weight: 800; letter-spacing: -1px; text-align: center; }
.dtitle em, .ptitle em { font-style: normal; color: #facc15; }
.rule { margin-top: 14px; align-self: stretch; background: #facc15; border-radius: 14px; padding: 12px 16px; font-size: 17px; line-height: 22px; font-weight: 800; color: #111827; text-align: center; }
.sec { padding: 0 16px; margin-top: 22px; }
.tabs { display: flex; gap: 8px; }
.tab { flex: 1; height: 64px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: rgba(255, 255, 255, 0.06); border: 1px solid #1f2937; font-size: 13px; font-weight: 700; color: #e5e7eb; transition: background 0.15s; }
.tab svg { width: 20px; height: 20px; }
.tab.on { background: #facc15; border-color: #facc15; color: #111827; }
.tpanel { margin-top: 10px; background: rgba(255, 255, 255, 0.06); border-radius: 14px; padding: 14px 16px; min-height: 66px; font-size: 15px; line-height: 22px; color: #e5e7eb; }
.shead { display: flex; align-items: baseline; justify-content: space-between; padding: 0 16px; margin: 22px 0 10px; }
.shead b { font-size: 20px; font-weight: 800; }
.shead span { font-size: 13px; color: #9ca3af; }
.gal { overflow: hidden; }
.gtrack { display: flex; gap: 10px; padding: 0 16px; transition: transform 0.45s cubic-bezier(0.2, 0.85, 0.25, 1); }
.gitem { flex: none; }
.gmedia { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #1f2937; }
.gmedia > img { width: 100%; height: 100%; object-fit: cover; }
.planted { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-19px, -46px); }
.planted i { display: block; background: #fff; border-radius: 7px; padding: 4px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.planted i img { width: 30px; height: 30px; }
.planted u { display: block; width: 2.5px; height: 10px; background: #9ca3af; }
.nogo { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; display: grid; place-items: center; font-size: 16px; font-weight: 900; line-height: 1; }
.gtitle { font-size: 16px; font-weight: 800; margin-top: 10px; }
.gcap { font-size: 14px; line-height: 20px; color: #9ca3af; margin-top: 3px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #4b5563; transition: width 0.3s, background 0.3s; }
.dots i.on { width: 18px; background: #facc15; }
.ends { display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 12px 14px; }
.ends img { width: 46px; height: 46px; }
.ends b { display: block; font-size: 15px; font-weight: 800; }
.ends span { display: block; font-size: 13px; line-height: 18px; color: #9ca3af; margin-top: 2px; }
.ends .chev { margin-left: auto; font-size: 24px; color: #6b7280; }
.looks { display: flex; gap: 10px; padding: 0 16px; }
.look { flex: none; width: 140px; background: rgba(255, 255, 255, 0.06); border-radius: 16px; padding: 12px; }
.look i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #fff; }
.look i img { width: 54px; height: 54px; }
.look b { display: block; font-size: 14px; font-weight: 800; margin-top: 10px; line-height: 17px; }
.look b small { font-size: 12px; font-weight: 600; color: #6b7280; }
.look span { display: block; font-size: 12px; line-height: 16px; color: #9ca3af; margin-top: 3px; }
.dbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 12px 16px 38px; background: #000; border-top: 1px solid #1f2937; }
.ladder { display: flex; gap: 6px; margin-bottom: 10px; }
.ladder div { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.ladder i { height: 5px; border-radius: 3px; background: #1f2937; }
.ladder span { font-size: 11px; font-weight: 600; color: #6b7280; }
.ladder .past i { background: #4b5563; }
.ladder .now i { background: #facc15; }
.ladder .now span { font-weight: 800; color: #fff; }
.learnbtn { height: 52px; border-radius: 26px; background: #facc15; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 800; color: #111827; }
.learnbtn small { font-size: 12px; font-weight: 700; color: rgba(17, 24, 39, 0.6); }

/* ---- 3-question sign quiz (components/Quiz/QuizRunner.tsx) ---- */
.qtop { position: absolute; left: 0; right: 0; top: 60px; display: flex; align-items: center; gap: 14px; padding: 0 12px; }
.qtop .close { margin-top: 0; }
.segs { flex: 1; display: flex; gap: 6px; }
.segs i { flex: 1; height: 6px; border-radius: 3px; background: #1f2937; transition: background 0.2s; }
.segs i.now { background: #4b5563; }
.segs i.ok { background: #22c55e; }
.qcount { width: 40px; text-align: right; font-size: 13px; color: #9ca3af; }
.qbody { position: absolute; left: 0; right: 0; top: 114px; padding: 10px 16px 0; }
.kick { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: #facc15; }
.prompt { font-size: 25px; line-height: 30px; font-weight: 800; letter-spacing: -0.5px; margin-top: 6px; }
.tiles { display: flex; flex-wrap: wrap; justify-content: space-between; row-gap: 12px; margin-top: 20px; }
.tile { position: relative; width: 48%; height: 158px; border-radius: 18px; background: #fff; display: grid; place-items: center; border: 3px solid transparent; transition: opacity 0.2s, border-color 0.2s; }
.tile > img { width: 100px; height: 100px; }
.tile.dim { opacity: 0.35; }
.tile.right { border-color: #22c55e; }
.mark { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 14px; background: #16a34a; display: grid; place-items: center; font-size: 15px; font-weight: 900; }
.tname { position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: center; font-size: 11px; font-weight: 800; color: #111827; }
.qsign { display: flex; justify-content: center; margin-top: 18px; }
.qsign img { width: 154px; height: 154px; }
.rows { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid #1f2937; font-size: 15px; line-height: 21px; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.row b { flex: none; width: 26px; height: 26px; border-radius: 13px; background: #1f2937; display: grid; place-items: center; font-size: 12px; font-weight: 900; transition: background 0.2s; }
.row.right { background: rgba(34, 197, 94, 0.16); border-color: #22c55e; }
.row.right b { background: #22c55e; }
.row.dim { background: rgba(255, 255, 255, 0.03); border-color: #111827; color: #6b7280; }
.qfoot { position: absolute; left: 16px; right: 16px; bottom: 50px; height: 54px; border-radius: 27px; background: #16a34a; display: grid; place-items: center; font-size: 16px; font-weight: 800; opacity: 0; transform: translateY(10px); transition: opacity 0.2s, transform 0.2s; }
.qfoot.on { opacity: 1; transform: none; }

/* ---- result (app/sign-quiz.tsx) ---- */
.res { position: absolute; left: 0; right: 0; top: 92px; padding: 0 20px; display: flex; flex-direction: column; align-items: center; }
.rhero { position: relative; width: 168px; height: 168px; display: grid; place-items: center; }
.rhero > img { width: 160px; height: 160px; }
.rbadge { position: absolute; right: -6px; bottom: 2px; width: 54px; height: 54px; border-radius: 27px; background: #16a34a; border: 4px solid #000; display: grid; place-items: center; font-size: 24px; font-weight: 900; transform: scale(0); transition: transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 0.25s; }
.on .rbadge { transform: scale(1); }
.rscore { font-size: 13px; letter-spacing: 1.4px; font-weight: 800; color: #4ade80; margin-top: 18px; }
.rtitle { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin-top: 4px; }
.rsub { font-size: 15px; line-height: 21px; color: #9ca3af; text-align: center; margin-top: 8px; max-width: 320px; }
.rcard { align-self: stretch; background: #111827; border: 1px solid #1f2937; border-radius: 16px; padding: 14px 16px; margin-top: 14px; }
.rcard > b { font-size: 12px; letter-spacing: 1px; font-weight: 700; color: #9ca3af; }
.sched { display: flex; align-items: flex-start; margin-top: 14px; }
.sched .st { width: 54px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #6b7280; }
.sched .st i { width: 26px; height: 26px; border-radius: 13px; border: 2px solid #374151; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 900; }
.sched .done i { background: #16a34a; border-color: #16a34a; }
.sched .done { color: #fff; font-weight: 800; }
.sched .next i { border-color: #facc15; }
.sched .next { color: #facc15; font-weight: 800; }
.sched .ln { flex: 1; height: 2px; background: #374151; margin-top: 12px; }
.rcard p { font-size: 14px; line-height: 20px; color: #d1d5db; margin: 10px 0 0; }
.rback { position: absolute; left: 16px; right: 16px; bottom: 50px; height: 54px; border-radius: 27px; border: 1px solid #374151; background: #111827; display: grid; place-items: center; font-size: 15px; font-weight: 700; }

/* ---- iPad ---- */
.isb { position: absolute; left: 0; right: 0; top: 0; height: 32px; padding: 0 22px 0 25px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 600; z-index: 30; }
.isb.dark { color: #111; }
.isb svg { height: 14px; margin-left: 6px; }
.ipad-learn { background: #f3f4f6; }
.pane { position: absolute; left: 520px; top: 76px; width: 674px; height: 726px; background: #000; border-radius: 24px; overflow: hidden; }
.pane .dtop { height: 52px; padding: 13px 0 0; justify-content: center; }
.pane .phead { padding-top: 78px; }
.pane .chip { margin-top: 0; }
.pane .dscroll { top: 0; }
.phead { padding: 78px 16px 0; display: flex; flex-direction: column; align-items: center; }
.ptitle { font-size: 22px; line-height: 26px; font-weight: 800; letter-spacing: -0.4px; text-align: center; }
.pane .rule { margin-top: 14px; padding: 12px 16px; }
.pane .dbar { bottom: 0; border-top: 0; padding: 14px 16px 14px; }
.ipad-learn .back { top: 31px; }
.ihome-bar { position: absolute; left: 50%; bottom: 8px; width: 320px; height: 5px; margin-left: -160px; border-radius: 3px; background: #000; z-index: 40; }
.itest .ihome-bar { background: #fff; }

.itest { background: #000; }
.itop { position: absolute; left: 12px; right: 12px; top: 40px; display: flex; align-items: center; gap: 12px; }
.itop .close { margin-top: 0; }
.track { flex: 1; height: 6px; border-radius: 3px; background: #1f2937; overflow: hidden; }
.track i { display: block; height: 6px; border-radius: 3px; background: #facc15; transition: width 0.3s; }
.itop span { min-width: 44px; text-align: right; font-size: 13px; color: #9ca3af; }
.iimg { position: absolute; left: 48px; top: 100px; width: 539px; height: 360px; border-radius: 16px; overflow: hidden; }
.iimg img { width: 100%; height: 100%; object-fit: cover; }
.icol { position: absolute; left: 623px; top: 100px; width: 539px; height: 734px; overflow: hidden; }
.icol .in { transition: transform 0.6s cubic-bezier(0.25, 0.7, 0.25, 1); padding-top: 8px; }
.iq { font-size: 29px; line-height: 36px; font-weight: 800; letter-spacing: -0.5px; }
.icol .rows { margin-top: 18px; }
.icol .row { padding: 18px; border-radius: 16px; font-size: 18px; line-height: 25px; align-items: center; }
.explain { margin-top: 16px; border-radius: 14px; border: 1px solid rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.1); padding: 12px 14px; opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s; }
.explain.on { opacity: 1; transform: none; }
.explain b { font-size: 14px; font-weight: 800; color: #4ade80; }
.explain p { font-size: 14px; line-height: 20px; color: #e5e7eb; margin: 6px 0 0; }
.explain em { display: block; font-size: 12px; line-height: 17px; color: #9ca3af; margin-top: 8px; }
.inext { position: absolute; left: 623px; width: 539px; top: 742px; height: 54px; border-radius: 27px; background: #fff; color: #111827; display: grid; place-items: center; font-size: 16px; font-weight: 800; opacity: 0; transition: opacity 0.3s; }
.inext.on { opacity: 1; }

/* captions under the devices */
.duo-caps { display: grid; margin-top: 18px; text-align: center; }
.duo-caps p { grid-area: 1 / 1; margin: 0; align-self: center; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2vw, 21px); line-height: 1.25; color: var(--chalk); opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s; }
.duo-caps p.on { opacity: 1; transform: none; }
.duo-caps p em { font-style: normal; color: var(--sign); }
.duo-bar { display: flex; gap: 6px; justify-content: center; margin-top: 4px; }
.duo-bar i { width: 34px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.duo-bar i b { display: block; height: 100%; width: 0; background: var(--sign); }

@media (max-width: 560px) {
  .duo { width: 100%; aspect-ratio: 390 / 274; }
}

/* ---- iPad quiz + result (landscape: question left, answers right) ---- */
.qw .qtop { top: 40px; padding: 0 24px; }
.qw .qbody { top: 112px; left: 48px; right: 48px; padding: 0; display: flex; gap: 40px; }
.qw .qcol { flex: 1; min-width: 0; }
.qw .qcol.l { flex: 0 0 440px; }
.qw .prompt { font-size: 32px; line-height: 38px; letter-spacing: -0.8px; }
.qw .qsign { justify-content: flex-start; margin-top: 28px; }
.qw .qsign img { width: 200px; height: 200px; }
.qw .tiles { margin-top: 0; }
.qw .tile { height: 220px; }
.qw .tile > img { width: 130px; height: 130px; }
.qw .rows { margin-top: 0; }
.qw .row { padding: 18px; border-radius: 16px; font-size: 18px; line-height: 25px; }
.qw .qfoot { left: auto; right: 48px; width: 634px; bottom: 30px; }
.resw .res { left: 50%; right: auto; width: 440px; margin-left: -220px; top: 64px; }
.resw .rback { left: 50%; right: auto; width: 440px; margin-left: -220px; bottom: 30px; }

/* ---- phone theory question (portrait: picture on top) ---- */
.pt .itop { top: 60px; }
.pbody { position: absolute; left: 16px; right: 16px; top: 114px; bottom: 0; overflow: hidden; }
.pbody .in { transition: transform 0.6s cubic-bezier(0.25, 0.7, 0.25, 1); }
.pimg { width: 100%; aspect-ratio: 3 / 2; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
.pt .iq { font-size: 25px; line-height: 30px; }
.pt .rows { margin-top: 18px; }
.pt .row { font-size: 15px; line-height: 21px; padding: 14px; border-radius: 14px; }
.pt .inext { left: 16px; right: 16px; width: auto; top: auto; bottom: 50px; }

/* the Dynamic Island is hardware here: it slides up out of view when the phone becomes an iPad */
.island-hw { position: absolute; left: 50%; z-index: 60; background: #000; pointer-events: none; }
