/* The page around the phone. Colours and type follow "Slope", the default look of Ski Instructor Logbook. The phone's own styles are in app.css (generated). */
@font-face { font-family: Roboto; font-weight: 400; font-display: swap; src: url(../fonts/roboto-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 500; font-display: swap; src: url(../fonts/roboto-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Roboto; font-weight: 700; font-display: swap; src: url(../fonts/roboto-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/roboto-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Roboto Condensed"; font-weight: 700; font-display: swap; src: url(../fonts/roboto-condensed-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 400; font-display: swap; src: url(../fonts/literata-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Literata; font-weight: 600; font-display: swap; src: url(../fonts/literata-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(../fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(../fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(../fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }

:root { --bg: #080e18; --surface: #111b2b; --ink: #f5f8fc; --muted: #9fb2ca; --line: #25354d; --accent: #ffc21a; --accent-ink: #0a0f18; --top: 56px; --fd: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif; --fb: Roboto, system-ui, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--fb); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:is(.x-top, .x-view, .x-foot) :is(button, a):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- top bar */
.x-top { position: sticky; top: 0; z-index: 50; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(16px, env(safe-area-inset-left)); background: rgba(8, 14, 24, .94); border-bottom: 1px solid var(--line); }
.x-brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 4px; font: 700 18px/1 var(--fd); letter-spacing: .03em; text-transform: uppercase; min-width: 0; }
.x-brand svg { width: 28px; height: 28px; flex: none; }
.x-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-modes { display: flex; gap: 6px; flex: none; }
.x-modes button { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font: 700 14px/1 var(--fd); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.x-modes button[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.x-view { flex: 1 0 auto; }

/* ---- start */
.x-hero { max-width: 1160px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 24px 32px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; }
.x-hero h1 { margin: 0; font: 700 clamp(40px, 6.2vw, 78px)/.98 var(--fd); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.x-sub { margin: 14px 0 0; color: var(--accent); font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--fd); letter-spacing: .02em; }
.x-lead { margin: 18px 0 0; color: var(--muted); font-size: 18px; max-width: 34em; }
.x-choices { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 620px; }
.x-choice { display: grid; gap: 6px; text-align: left; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); align-content: start; }
.x-choice b { font: 700 22px/1.1 var(--fd); letter-spacing: .04em; text-transform: uppercase; }
.x-choice span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.x-choice--pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.x-choice--pri span { color: #3a2f0b; }
.x-hero-phone { height: min(76vh, 760px); min-height: 480px; display: grid; place-items: center; pointer-events: none; }
.x-get { max-width: 1160px; margin: 0 auto; padding: 36px 24px 56px; border-top: 1px solid var(--line); text-align: center; }
.x-get h2 { margin: 0; font: 700 30px/1.1 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.x-get p { margin: 8px 0 0; color: var(--muted); }
.x-stores { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.x-store { position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 204px; min-height: 60px; padding: 8px 18px; border-radius: 12px; border: 1px solid #4a5d7c; background: #0c1422; color: var(--ink); text-decoration: none; text-align: left; }
.x-store svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.x-store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.x-store b { display: block; font: 700 19px/1.15 var(--fd); letter-spacing: .02em; }
.x-store[data-state="live"]:hover { border-color: var(--accent); }
.x-store--soon { cursor: default; padding-bottom: 22px; }
.x-store--soon svg, .x-store--soon span { opacity: .6; }
.x-store em { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 700 11px/18px var(--fd); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--accent-ink); background: var(--accent); border-radius: 0 0 11px 11px; }
.x-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 14px max(16px, env(safe-area-inset-left)) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.x-project { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.x-project a { color: inherit; }
body[data-view="story"] .x-foot { display: none; }

/* ---- the phone */
.ph-fit { position: relative; flex: none; }
.ph-frame { position: absolute; top: 0; left: 0; width: 414px; height: 836px; transform-origin: top left; padding: 12px; border-radius: 46px; background: #04070c; box-shadow: 0 0 0 2px #2a3850, 0 30px 70px rgba(0, 0, 0, .55); transition: opacity .7s ease; }
.ph-screen { position: relative; width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #080e18; }
.ph-status { position: absolute; z-index: 45; top: 0; left: 0; right: 0; height: 30px; padding: 9px 24px 0; display: flex; justify-content: space-between; font: 700 13px/1 var(--fb); color: #fff; mix-blend-mode: difference; pointer-events: none; }
.ph-screen[data-os="picture"] .ph-status { display: none; }
.ph-status-r { display: flex; gap: 5px; align-items: center; }
.ph-status-r i { width: 4px; height: 9px; background: #fff; border-radius: 1px; } .ph-status-r i + i { height: 12px; }
.ph-status-r b { width: 22px; height: 11px; border: 1.5px solid #fff; border-radius: 3px; }
.ph-app { position: absolute; inset: 0; }
.sl-app { box-sizing: border-box; position: relative; height: 100%; overflow: hidden; container-type: inline-size; padding-top: 30px; background: var(--bg); color: var(--ink); font: 16px/1.35 var(--font-b); text-align: left; }
.sl-app .sl-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sl-app .sl-scroll::-webkit-scrollbar { display: none; }
.sl-app .overlay { padding-top: 46px; }
.sl-app .toast { animation: sl-up .25s ease-out; }
.sl-app .sl-ph-thumb { width: 72px; height: 96px; border: 1px dashed var(--muted); border-radius: 8px; display: grid; place-items: center; text-align: center; font-size: 10.5px; line-height: 1.2; color: var(--muted); padding: 4px; }
.sl-app .entry:disabled { opacity: .45; cursor: not-allowed; }
.sl-app h3.lab { margin: 6px 0 0; }
.sl-app .info b { font-weight: 700; }
.sl-app .st-focus { outline: 3px solid var(--accent); outline-offset: 3px; transition: outline-color .3s; }
@keyframes sl-up { from { transform: translateY(8px); opacity: 0; } }

/* the other "apps" of the story */
.ph-os { position: absolute; inset: 0; z-index: 40; background: #101014; opacity: 0; transition: opacity .7s ease; }
.ph-os.on { opacity: 1; }
.ph-os img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.os-hot { position: absolute; width: 1px; height: 1px; }
.os-wall { height: 100%; padding: 70px 26px 20px; background: linear-gradient(160deg, #1c3358, #0b1526 60%, #0a0f18); }
.os-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.os-app { display: grid; justify-items: center; gap: 6px; }
.os-app span { width: 60px; height: 60px; border-radius: 17px; background: rgba(255, 255, 255, .13); display: grid; place-items: center; }
.os-app small { height: 12px; font: 500 11px/1 var(--fb); color: #dfe8f5; }
.os-app--imae span { background: #0a1a6b; border: 1px solid #5d78ff; font: 700 15px/1 var(--fd); color: #fff; }
.os-note { position: absolute; left: 16px; right: 16px; bottom: 26px; margin: 0; padding: 9px 12px; border: 1px dashed #9fb2ca; border-radius: 10px; background: rgba(4, 7, 12, .78); color: #dfe8f5; font: 500 12.5px/1.35 var(--fb); text-align: center; }
.os-sch { height: 100%; padding: 44px 8px 0; background: #14131a; color: #fff; }
.os-sch-head { padding: 10px 12px 18px; font: 700 22px/1 var(--fd); color: #cfd8e6; }
.os-sch-row { display: grid; grid-template-columns: 92px 1fr; margin-bottom: 7px; }
.os-sch-t { background: #1d1d1f; padding: 10px 6px; text-align: center; font: 700 25px/1.1 var(--fd); } .os-sch-t span { display: block; font-size: 19px; font-weight: 600; margin-top: 6px; }
.os-sch-b { background: #00007f; padding: 12px; display: grid; gap: 4px; align-content: center; } .os-sch-b b { font: 700 23px/1.1 var(--fd); } .os-sch-b span { font: 600 14px/1 var(--fd); }
.os-doc { height: 100%; padding: 30px 0 0; background: #3b3f47; display: grid; grid-template-rows: auto 1fr; }
.os-doc-bar { padding: 12px 16px; background: #23262c; color: #e6e9ee; font: 600 13px/1.2 var(--fb); overflow-wrap: anywhere; }
.os-doc-page { margin: 14px 12px 0; padding: 22px 18px; background: #fff; color: #1b1f27; border-radius: 3px 3px 0 0; display: grid; align-content: start; gap: 4px; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.os-doc-page b { font: 700 19px/1.2 Georgia, serif; } .os-doc-page span { font: 400 13px/1.3 Georgia, serif; color: #555; margin-bottom: 12px; }
.os-doc-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 9px 2px; border-top: 1px solid #d4d7dd; font: 400 15px/1.2 Georgia, serif; font-variant-numeric: tabular-nums; }
.os-doc-row i { font-style: normal; } .os-doc-row--h { border-top: 2px solid #1b1f27; font: 700 11px/1 var(--fb); letter-spacing: .08em; text-transform: uppercase; color: #555; }
.sl-app .sl-ph-thumb--doc { border-style: solid; background: #fff; color: #b3261e; font: 700 15px/1 var(--fb); }
.sl-app { transition: background-color .6s ease, color .6s ease; }
.sl-app :is(.card, .entry, .pbtn, .chip, .wd, .sum, .tabs, .inp, .stepper, .info, .flag, .vol, .ibtn, .disc) { transition: background-color .6s ease, color .6s ease, border-color .6s ease; }
.ph-flash { position: absolute; inset: 0; z-index: 46; background: #fff; opacity: 0; pointer-events: none; }
.ph-flash.go { animation: ph-flash .7s ease-out; }
@keyframes ph-flash { 0% { opacity: 0; } 12% { opacity: .85; } 100% { opacity: 0; } }
.ph-shot { position: absolute; z-index: 47; left: 50%; bottom: 96px; transform: translateX(-50%); padding: 10px 18px; border-radius: 22px; background: rgba(18, 22, 30, .95); border: 1px solid #3a4a63; color: #fff; font: 600 14px/1 var(--fb); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.ph-shot.on { opacity: 1; }
.ph-tap { position: absolute; z-index: 48; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 194, 26, .5); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; }
.ph-tap.go { animation: ph-tap 1.05s ease-out; }
@keyframes ph-tap { 0% { opacity: 0; transform: scale(1.7); } 35% { opacity: 1; transform: scale(1); } 62% { opacity: 1; transform: scale(.78); } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes ph-tap-still { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---- watch the story */
#story { height: calc(100dvh - var(--top)); min-height: 560px; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
#story-phone { pointer-events: none; }
.st-stage { width: 100%; max-width: 1180px; margin: 0 auto; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 0; }
.st-text { min-width: 0; }
.st-kicker { margin: 0; color: var(--accent); font: 700 15px/1.2 var(--fd); letter-spacing: .16em; text-transform: uppercase; }
.st-title { margin: 12px 0 0; font: 700 clamp(30px, 3.6vw, 50px)/1.05 var(--fd); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.st-cap { margin: 22px 0 0; min-height: 6.4em; max-width: 26em; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.42; color: #dfe8f5; opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; }
.st-cap.on { opacity: 1; transform: none; }
.st-device { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.st-device.st-nophone .ph-frame { opacity: 0; }
.st-device.st-final .ph-frame { opacity: .08; }
.st-props { position: absolute; inset: 0; pointer-events: none; }
.st-prop { position: absolute; width: min(250px, 44%); padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .4); display: grid; gap: 7px; opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.st-prop.on { opacity: 1; transform: none; }
.st-prop b { font: 700 13px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st-prop span { font-size: 15px; line-height: 1.3; }
.st-prop--1 { left: 6%; top: 8%; } .st-prop--1 span { font-variant-numeric: tabular-nums; }
.st-prop--2 { right: 4%; top: 22%; background: #f3ecd2; border-color: #cbbe9c; color: #2a2412; rotate: 2deg; } .st-prop--2 b { color: #6b5f3a; } .st-prop--2 span { font-style: italic; }
.st-prop--3 { left: 12%; top: 50%; rotate: -1.5deg; }
.st-prop--4 { right: 10%; top: 66%; border-color: var(--accent); } .st-prop--4 span { color: var(--accent); font-weight: 700; }
.st-end { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
/* the closing panel is built one part at a time during the last scene and then stays */
.st-end [data-end] { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; visibility: hidden; }
.st-end [data-end].on { opacity: 1; transform: none; visibility: visible; }
.st-end-slogan { color: var(--accent); font: 700 clamp(17px, 1.7vw, 22px)/1.25 var(--fd); letter-spacing: .08em; text-transform: uppercase; }
.st-end-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 6px; }
.st-end h3 { margin: 0; font: 700 34px/1.1 var(--fd); text-transform: uppercase; }
.st-end p { margin: 0; color: var(--muted); }
.st-end .x-choice { text-align: center; padding: 16px 30px; min-width: 190px; }
@keyframes st-in { from { opacity: 0; } }
.st-bar { border-top: 1px solid var(--line); background: #0a1220; padding: 8px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.st-segs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.st-seg { position: relative; min-height: 38px; padding: 0 8px 4px; border: 0; border-radius: 6px 6px 0 0; background: #111b2b; color: var(--muted); font: 600 12px/1.1 var(--fd); letter-spacing: .05em; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.st-seg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #25354d; }
.st-seg i { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--accent); z-index: 1; }
.st-seg.on { color: var(--ink); background: #18263c; }
.st-seg b { color: var(--accent); margin-right: 4px; }
.st-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-btn { min-width: 46px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--fd); letter-spacing: .05em; text-transform: uppercase; }
.st-btn svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st-btn--main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); min-width: 128px; }
.st-where { color: var(--muted); font-size: 13px; margin-left: 6px; white-space: nowrap; }
.st-gap { flex: 1; }
.st-speed { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.st-speed span { margin-right: 4px; }
.st-speed button { min-height: 40px; min-width: 52px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 700 14px/1 var(--fb); }
.st-speed button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.st-motion { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; color: var(--muted); cursor: pointer; }
.st-motion input { width: 20px; height: 20px; accent-color: var(--accent); }
/* reduced motion: the same steps, without movement */
.st-reduced .st-cap, .st-reduced .st-prop, .st-reduced .ph-frame, .st-reduced .ph-os, .st-reduced .ph-shot { transition: none; transform: none; }
.st-reduced .ph-flash.go { animation: none; }
.st-reduced .ph-tap.go { animation: ph-tap-still 1.05s linear; }
.st-reduced .st-end [data-end] { transition: none; transform: none; }
.st-reduced .sl-app .toast { animation: none; }
.st-reduced .sl-app, .st-reduced .sl-app * { transition: none !important; }

/* ---- try it yourself */
.tr-wrap { max-width: 1160px; margin: 0 auto; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; height: calc(100dvh - var(--top) - 52px); min-height: 620px; }
.tr-side { overflow-y: auto; display: grid; gap: 14px; align-content: start; padding-right: 4px; }
.tr-side h2 { margin: 0; font: 700 38px/1 var(--fd); text-transform: uppercase; }
.tr-side > p { margin: 0; color: var(--muted); }
.tr-card { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.tr-card--hi { border-color: var(--accent); }
.tr-card h3 { margin: 0; font: 700 20px/1.1 var(--fd); letter-spacing: .04em; text-transform: uppercase; }
.tr-card p, .tr-card ul { margin: 0; color: var(--muted); font-size: 14.5px; }
.tr-card ul { padding-left: 18px; display: grid; gap: 6px; }
.tr-btn { min-height: 50px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 700 15px/1.15 var(--fd); letter-spacing: .05em; text-transform: uppercase; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tr-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid #4a5d7c; background: transparent; color: var(--ink); font: 600 14.5px/1 var(--fb); }
.tr-chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.tr-btn--line { background: transparent; color: var(--ink); border-color: #4a5d7c; }
.tr-note { font-size: 13px; }
.tr-note b { color: var(--ink); }
.tr-reset { display: grid; gap: 8px; }
.tr-reset-ask { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.tr-reset-done { margin: 0; color: #4fe3a0; font-size: 14px; font-weight: 600; }
.tr-device { height: 100%; min-height: 0; display: grid; place-items: center; scroll-margin-top: calc(var(--top) + 8px); }

/* ---- tablet and phone */
@media (max-width: 900px) {
  .x-hero { grid-template-columns: 1fr; }
  .x-hero-phone { height: 620px; }
  .st-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 10px; padding: 12px 16px 8px; align-items: start; }
  .st-title { font-size: clamp(22px, 5vw, 30px); margin-top: 6px; }
  .st-kicker { font-size: 12px; }
  .st-cap { margin-top: 8px; min-height: 4.4em; font-size: 16px; max-width: none; }
  .st-seg span { font-size: 0; } .st-seg b { font-size: 13px; margin: 0; } .st-seg { text-align: center; }
  .st-where { display: none; }
  .tr-wrap { grid-template-columns: 1fr; height: auto; padding: 12px 16px 24px; }
  .tr-device { order: -1; height: calc(100dvh - var(--top) - 24px); min-height: 560px; }
  .tr-side { overflow: visible; }
}
@media (max-width: 560px) {
  .x-brand span { display: none; }
  .x-choices { grid-template-columns: 1fr; }
  .x-modes button { padding: 0 11px; font-size: 13px; }
  .st-btn--main { min-width: 0; } .st-btn--main span { display: none; }
  .st-speed span, .st-btn--text { display: none; }
  .st-speed button { min-width: 46px; }
  .st-stage { padding: 8px 14px 4px; gap: 6px; }
  .st-kicker { font-size: 11px; }
  .st-title { font-size: 19px; margin-top: 3px; }
  .st-cap { font-size: 14.5px; line-height: 1.35; min-height: 4.1em; margin-top: 5px; }
  .st-bar { padding-top: 6px; gap: 6px; }
  .st-segs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .st-seg { min-height: 36px; }
  .st-ctl { gap: 6px; }
  .st-btn, .st-speed button { min-height: 42px; min-width: 42px; }
  .st-motion { min-height: 28px; flex-basis: 100%; }
  .st-prop { width: 62%; } .st-prop--1 { left: 2%; top: 2%; } .st-prop--2 { right: 2%; top: 24%; } .st-prop--3 { left: 4%; top: 48%; } .st-prop--4 { right: 3%; top: 70%; }
}
@media (max-width: 560px) {
  .st-end { gap: 8px; padding: 6px 10px; align-content: center; }
  .st-end h3 { font-size: 21px; } .st-end p:not(.st-end-slogan):not(.x-project) { display: none; }
  .st-end-slogan { font-size: 14px; }
  .st-end-acts { gap: 8px; margin-top: 2px; flex-wrap: nowrap; width: 100%; }
  .st-end .x-choice { min-width: 0; flex: 1; padding: 12px 8px; } .st-end .x-choice b { font-size: 17px; }
  .st-end .x-stores { margin-top: 2px; gap: 8px; flex-wrap: nowrap; width: 100%; }
  .st-end .x-store { min-width: 0; flex: 1; min-height: 52px; padding: 6px 8px 20px; gap: 8px; } .st-end .x-store svg { width: 20px; height: 20px; } .st-end .x-store b { font-size: 15px; } .st-end .x-store small { font-size: 10px; }
}
@media (max-width: 560px) and (max-height: 720px) { .st-title { display: none; } .st-cap { min-height: 3.6em; } #story[data-scene="10"] .st-title { display: block; } #story[data-scene="10"] .st-cap { min-height: 1.4em; } .st-end-slogan { display: none; } }
@media (prefers-reduced-motion: reduce) { .ph-frame, .ph-os, .st-cap, .st-prop { transition: none; } .sl-app, .sl-app * { transition: none !important; } }
