/* Shared device shell: the exact same dimensions in all six chapters. */
.visual-stage.phone-ready[data-stage] { top:142px; height:clamp(530px,calc(100svh - 154px),800px); margin:12px 0 26px; background:radial-gradient(ellipse 75% 60% at 50% 65%,#d6e4dccc,transparent 80%); border-radius:30px; color:var(--ink); overflow:visible; }
.phone-ready>.stage-topline,.phone-ready>.stage-footer { display:none; }
.phone-ready .stage-panels { flex-direction:column; align-items:center; justify-content:center; padding:8px 0; }
.iphone-frame { --device-height:clamp(490px,calc(100svh - 188px),740px); width:calc(var(--device-height) / 1.98); height:var(--device-height); flex-shrink:0; position:relative; isolation:isolate; padding:7px; border:1px solid #85898a; border-radius:46px; background:#171a1b; color:var(--ink); box-shadow:0 0 0 1px #313839,0 24px 40px -20px #21382d66,inset 0 0 0 2px #34393a; }
.iphone-frame::before,.iphone-frame::after { content:""; position:absolute; width:3px; border-radius:3px; background:linear-gradient(90deg,#8e9290,#d5d9d5,#686d69); z-index:-1; }
.iphone-frame::before { height:45px; right:-4px; top:119px; }
.iphone-frame::after { height:66px; left:-4px; top:101px; }
.iphone-screen { height:100%; position:relative; overflow:hidden; border-radius:38px; background:#f7f8f8; }
.iphone-frame .scene-panel { position:absolute; inset:0; display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; width:100%; height:100%; min-height:0; padding:0; border-radius:0; overflow:hidden; background:#f7f8f8; }
.dynamic-island { position:absolute; top:10px; left:50%; transform:translateX(-50%); width:85px; height:24px; border-radius:99px; background:#090a0d; box-shadow:inset 0 -1px 0 #292b32; z-index:6; }
.dynamic-island i { position:absolute; right:9px; top:8px; width:6px; height:6px; border-radius:50%; background:radial-gradient(circle at 65% 35%,#26416a,#111b2b 45%,#07090e 65%); }
.iphone-status { position:relative; z-index:5; height:36px; padding:13px 18px 0; display:flex; justify-content:flex-end; align-items:center; gap:4px; }
.iphone-status::before { content:"9:41"; font-size:11px; font-weight:650; color:#14211c; margin-right:auto; }
.phone-signal { display:flex; align-items:flex-end; gap:1px; height:8px; }
.phone-signal i { display:block; width:2px; height:3px; background:#15211a; border-radius:1px; }
.phone-signal i:nth-child(2) { height:4px; } .phone-signal i:nth-child(3) { height:6px; } .phone-signal i:nth-child(4) { height:8px; }
.iphone-status>svg { width:12px; height:10px; fill:none; stroke:#15211a; stroke-width:1.7; }
.iphone-status>svg circle { fill:#15211a; stroke:0; }
.phone-battery { width:15px; height:7px; border:1px solid #15211a8c; border-radius:2px; position:relative; padding:1px; }
.phone-battery::after { content:""; width:1px; height:3px; background:#15211a; position:absolute; right:-2px; top:1px; }
.phone-battery i { display:block; height:100%; width:83%; background:#15211a; border-radius:1px; }
.iphone-home-indicator { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); width:92px; height:4px; border-radius:99px; background:#14221b; z-index:8; }
.phone-example-caption { font-size:10px; line-height:1.4; color:#78867c; text-align:center; margin:14px 10px 0; }

/* A quiet lock screen with the same typographic scale as the chat. */
.iphone-frame [data-panel="0"] { background:radial-gradient(ellipse at 5% 100%,#d3b3d3 0,transparent 68%),radial-gradient(ellipse at 100% 65%,#a4b6cc 0,transparent 65%),linear-gradient(155deg,#233e4a,#71888c 60%,#d4c3c9); color:#fff; }
.iphone-frame[data-phone-stage="0"] .iphone-status::before { content:""; }
.iphone-frame[data-phone-stage="0"] .phone-signal i,.iphone-frame[data-phone-stage="0"] .phone-battery i,.iphone-frame[data-phone-stage="0"] .phone-battery::after { background:#fff; }
.iphone-frame[data-phone-stage="0"] .phone-battery { border-color:#ffffffb0; }
.iphone-frame[data-phone-stage="0"] .iphone-status>svg { stroke:#fff; }
.iphone-frame[data-phone-stage="0"] .iphone-status>svg circle { fill:#fff; }
.iphone-frame[data-phone-stage="0"] .iphone-home-indicator { background:#fff; }
.iphone-clock { display:flex; flex-direction:column; align-items:center; padding-top:60px; text-shadow:0 1px 12px #19264625; }
.phone-lock { width:13px; height:16px; fill:#eef3f4; stroke:#eef3f4; stroke-width:1.7; margin-bottom:8px; }
.phone-lock path { fill:none; }
.iphone-clock>span { font-size:12px; color:#edf3f2; font-weight:500; }
.iphone-clock>strong { font-size:clamp(48px,calc(var(--device-height) * .095),70px); line-height:1.15; letter-spacing:-.055em; font-weight:550; color:#f3f5f3; }
.ios-notifications { display:grid; gap:8px; margin:20px 10px 0; }
.ios-notification { display:flex; align-items:flex-start; gap:9px; min-width:0; padding:11px 10px; border-radius:15px; background:#f7faf7ed; backdrop-filter:blur(16px); box-shadow:0 3px 12px #15203609; color:#18231e; }
.ios-app-icon { display:block; width:30px; height:30px; flex-shrink:0; margin-top:1px; border-radius:8px; overflow:hidden; }
.ios-app-icon svg { display:block; width:100%; height:100%; }
.app-whatsapp { background:linear-gradient(#5bdf77,#19b847); }
.app-telegram { background:linear-gradient(#36b9ed,#168ac8); }
.app-instagram { background:radial-gradient(circle at 25% 110%,#ffdc80 5%,#fcaf45 23%,#f77737 33%,#f56040 42%,transparent 62%),linear-gradient(145deg,#6154ce,#c13584 52%,#e1306c); }
.ios-notification-copy { min-width:0; flex:1; }
.ios-app-name { display:flex; justify-content:space-between; align-items:baseline; gap:5px; margin-bottom:3px; line-height:1.3; }
.ios-app-name>span { font-size:10px; color:#617367; font-weight:600; }
.ios-app-name>small { font-size:9px; color:#879188; white-space:nowrap; }
.ios-notification-copy>strong { display:block; font-size:12.5px; line-height:1.35; font-weight:650; }
.ios-notification-copy>p { font-size:13px; line-height:1.4; color:#45574b; margin:3px 0 0; overflow-wrap:normal; }
.iphone-quick-actions { position:absolute; bottom:27px; left:23px; right:23px; display:flex; justify-content:space-between; }
.iphone-quick-actions>span { width:32px; height:32px; display:grid; place-items:center; border-radius:50%; background:#263c4530; backdrop-filter:blur(10px); }
.iphone-quick-actions svg { width:16px; height:16px; fill:none; stroke:#fff; stroke-width:1.6; stroke-linejoin:round; }
@media(max-height:780px) and (min-width:801px) { .iphone-clock { padding-top:46px; } .phone-lock { height:13px; margin-bottom:6px; } .iphone-clock>span { font-size:11px; } .ios-notifications { margin-top:13px; gap:7px; } .ios-notification { padding-block:9px; } .ios-notification-copy>p { font-size:12px; } }
@media(max-width:800px) {
  .visual-stage { display:none; }
  .mobile-scene[data-mobile-scene] { display:flex; flex-direction:column; align-items:center; min-width:0; padding:0 0 22px; background:none; overflow:visible; max-width:600px; }
  .mobile-scene .iphone-frame { width:min(360px,100%); height:auto; aspect-ratio:1/1.98; }
  .mobile-scene .phone-example-caption { font-size:10px; }
}
@media(max-width:360px) { .ios-notification { padding:9px; } .ios-notification-copy>p { font-size:12px; } .iphone-clock { padding-top:52px; } }
