/* iOS 7 prologue. Artwork comes from the supplied SVGs; controls remain live HTML. */
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#1b1b1d}
body{font-family:Arial,Helvetica,sans-serif;color:#111}
:root{--ow:390px;--oh:818.26px;--ios-blue:#007aff;--ios-line:#c8c7cc;--ios-font:"Helvetica Neue",Helvetica,Arial,sans-serif}
.stage{position:relative;width:100%;height:100vh;height:100dvh;overflow:hidden;background:#1b1b1d}
.phoneScale{position:absolute;left:50%;top:50%;width:var(--ow);height:var(--oh);transform:translate(-50%,-50%);transform-origin:center;z-index:5;transition:opacity 300ms ease-out}
.phoneScale.gone{opacity:0;pointer-events:none}
.phone{position:absolute;inset:0;background:url("assets/ios7/iphone-frame.webp") center/100% 100% no-repeat;border-radius:12%/6%;box-shadow:0 28px 60px -12px #0009;font-family:var(--ios-font);-webkit-font-smoothing:antialiased}
.phone button,.phone input{font:inherit}
.phone button{cursor:pointer;-webkit-tap-highlight-color:transparent}
.phone button:focus-visible{outline:2px solid var(--ios-blue);outline-offset:3px}
.phone button:disabled{cursor:default}
.phone button svg,.phone svg.icon{display:block}
.phone .screen{position:absolute;left:7.516%;top:14.264%;width:86.251%;height:72.346%;overflow:hidden;background:#000}
.phone .ui{position:absolute;inset:0;background:#151620 url("assets/ios7/wallpaper.webp") center/cover;--status-height:20px;--composer-height:44px}
.phone .iphoneHome{position:absolute;left:50.7%;top:92.6%;width:15%;height:7.15%;transform:translate(-50%,-50%);border:0;border-radius:50%;background:transparent}
.phone .iphoneHome:active{background:#ffffff0b}
.phone.vibrate{animation:phone-buzz 120ms linear 4}
@keyframes phone-buzz{25%{transform:translateX(-1.5px)}75%{transform:translateX(1.5px)}}

/* Twenty-point status bar, then a forty-four-point navigation bar. */
.phone .status{position:absolute;inset:0 0 auto;height:var(--status-height);padding:0 6px;z-index:80;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#111;background:#f7f7f7;font-size:11px;line-height:1;white-space:nowrap}
.phone .sl,.phone .sr{display:flex;align-items:center;gap:5px;min-width:0}
.phone .sr{justify-content:flex-end}
.phone .statusClock{font-weight:500;font-variant-numeric:tabular-nums}
.phone .sig{display:flex;gap:1.5px}
.phone .sig i{width:4.5px;height:4.5px;border:1px solid currentColor;border-radius:50%;background:currentColor}
.phone .wifi{width:12px;height:10px}
.phone .airplane-indicator{display:flex;align-items:center}
.phone .airplane-indicator svg{width:13px;height:13px;transform:rotate(90deg)}
.phone .airplane-indicator[hidden]{display:none}
.phone .status.airplane-mode :is(.sig,.net,.wifi){display:none}
.phone .bat{position:relative;width:22px;height:9px;border:1px solid currentColor;border-radius:1.5px;padding:1px;margin-right:2px}
.phone .bat:after{content:"";position:absolute;right:-3px;top:2px;width:1.5px;height:3px;background:currentColor}
.phone .bat b{display:block;width:100%;height:100%;background:currentColor}
.phone .status.noService .sig,.phone .status.noService .wifi{display:none}
.phone .status.noService .net{font-size:0}
.phone .status.noService .net:after{content:"圏外 · Mất sóng";font-size:10px}
.phone[data-view="home"] .status,.phone[data-view="recents"] .status{background:transparent;color:#fff}
.phone .view{position:absolute;inset:var(--status-height) 0 0;display:none;background:#fff}
.phone .view.active,.phone .view.is-leaving{display:block}
.phone .topbar,.phone .appHeader{position:relative;height:44px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 7px;border-bottom:1px solid var(--ios-line);background:#f7f7f7;color:#111;z-index:5}
.phone .topBtn,.phone .ios-back{display:flex;align-items:center;gap:4px;min-width:0;min-height:44px;padding:0;border:0;background:transparent;color:var(--ios-blue);font-size:16px;font-weight:400;text-align:left;white-space:nowrap}
.phone .topBtn:last-child{justify-content:flex-end}
.phone .ios-back:before,.phone .topBack:before{content:"";width:11px;height:19px;flex:none;background:currentColor;clip-path:polygon(75% 0,100% 12%,33% 50%,100% 88%,75% 100%,0 50%)}
.phone .chatTitle,.phone .appHeader>strong{font-size:17px;font-weight:600;text-align:center;white-space:nowrap}
/* iOS 7 kept one motion language: springs settle, and each kind of change has its own
   spring rather than one shared zoom. Curves below come from the UIKit spring the OS used
   at the time (damping near 1, a slight overshoot) and from the two Beziers Apple ships:
   ease-out (0,0,.2,1) for something entering, ease-in (0.4,0,1,1) for something leaving.
   App open runs 400ms with a zoom from the icon, navigation 350ms, and the keyboard or
   sheet 500ms, the figure the OS itself used for those. */
.phone .view.active.from-icon{transform-origin:var(--launch-origin,50% 50%);animation:ios-app-open 400ms cubic-bezier(.22,.61,.36,1) both}
@keyframes ios-app-open{
  0%{transform:scale(.46) translateY(6%);opacity:0;border-radius:26px}
  55%{opacity:1}
  100%{transform:none;opacity:1;border-radius:0}
}
/* Leaving views keep a class of their own: active is dropped at once, so a rule keyed to it
   never ran and the app vanished instead of shrinking. */
.phone .view.is-leaving.from-icon-reverse{transform-origin:var(--launch-origin,50% 50%);animation:ios-app-close 320ms cubic-bezier(.4,0,1,1) both}
@keyframes ios-app-close{
  0%{transform:none;opacity:1;border-radius:0}
  100%{transform:scale(.46) translateY(6%);opacity:0;border-radius:26px}
}
/* Right-to-left push for drilling into a list, which iOS 7 also slid rather than zoomed. */
.phone .view.active.slideInFromRight{animation:ios-push-in 350ms cubic-bezier(.22,.61,.36,1) both}
@keyframes ios-push-in{0%{transform:translateX(22%);opacity:.72}100%{transform:none;opacity:1}}
.phone .view.is-leaving.slideOutToRight{animation:ios-push-out 350ms cubic-bezier(.4,0,1,1) both}
@keyframes ios-push-out{0%{transform:none;opacity:1}100%{transform:translateX(22%);opacity:.72}}
/* The shell spring: a hair of overshoot on the way in, as the OS spring had. */
@keyframes ios-settle{0%{transform:scale(1.016)}62%{transform:scale(.998)}100%{transform:none}}
.phone .view.active.settle{animation:ios-settle 320ms cubic-bezier(.22,.61,.36,1) both}

/* SpringBoard uses the original icon artwork at its natural proportions. */
.phone .homeView{background:transparent}
.phone .grid{position:absolute;left:15px;right:15px;top:24px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:21px 9px}
.phone .app{position:relative;min-width:0;margin:0;padding:0;border:0;background:none;text-align:center;color:#fff;font-size:11px;line-height:1.3;text-shadow:0 1px 3px #0009}
.phone button.app{border-radius:13px}
.phone .app-static{cursor:default}
.phone .icon{display:block;width:57px;height:57px;margin:0 auto 5px;object-fit:contain;border:0;border-radius:13px;box-shadow:none;text-shadow:none}
.phone .app>span:not(.icon){display:block;white-space:nowrap}
.phone .calendarIcon{display:flex;flex-direction:column;justify-content:center;align-items:center;background:#fff;font-weight:300;line-height:1;color:#161616;overflow:hidden}
.phone .calendarIcon small{font-size:10px;color:#f54438;font-weight:400;margin-bottom:2px}
.phone .calendarIcon b{font-size:37px;line-height:1;font-weight:200;letter-spacing:-2px;padding-right:2px}
.phone .app-badge{position:absolute;right:0;top:-6px;min-width:21px;height:21px;padding:2px 5px;border-radius:20px;background:#ff3b30;color:#fff;font-size:15px;line-height:17px;text-shadow:none}
.phone[data-unread="false"] .app-badge{display:none}
.phone .app-badge[hidden]{display:none}
.phone .page-dots{position:absolute;left:0;right:0;bottom:101px;display:flex;justify-content:center;gap:8px}
.phone .page-dots i{width:6px;height:6px;border-radius:50%;background:#ffffff59}
.phone .page-dots i:first-child{background:#fff}
.phone .dock{position:absolute;left:0;right:0;bottom:0;height:88px;display:grid;grid-template-columns:repeat(4,1fr);align-items:center;padding:8px 14px;background:#c0c0ca40;border-top:1px solid #ffffff12}
.phone .dock .icon{margin:0 auto}

/* Alert-style notifications preserve the original Close / View interaction. */
.phone .message-banner{position:absolute;top:20px;left:0;right:0;z-index:130;display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;gap:10px;min-height:66px;width:100%;margin:0;padding:10px 12px;border:0;border-bottom:1px solid #b5b5ba;border-radius:0;background:#f4f4f4fa;box-shadow:0 2px 4px #0002;color:#111;text-align:left;touch-action:none}
.phone .message-banner[hidden]{display:none}
.phone .message-banner>img{width:32px;height:32px;border-radius:7px;margin-top:2px}
.phone .message-banner-copy{min-width:0}
.phone .message-banner-copy>strong{display:block;margin-bottom:3px;font-size:15px;font-weight:600;line-height:1.2}
.phone .message-banner-copy>span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.35}
.phone .message-banner>time{padding-top:2px;color:#777;font-size:11px;line-height:1.3}
.phone .homeView:has(.popup.show):after{content:"";position:absolute;inset:0;background:#0003;z-index:85}
/* An iOS 7 alert rose from below and scaled up together, then its backdrop faded in. */
.phone .popup{position:absolute;top:45%;left:50%;width:270px;max-width:calc(100% - 38px);transform:translate(-50%,-38%) scale(.86);z-index:90;opacity:0;visibility:hidden;pointer-events:none;border-radius:13px;overflow:hidden;background:#f4f4f4f5;color:#111;text-align:center;transition:opacity 150ms cubic-bezier(0,0,.2,1),transform 240ms cubic-bezier(.22,.61,.36,1),visibility 150ms}
.phone .popup.show{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}
.phone .popupHead{padding:19px 16px 0;font-size:17px;font-weight:600;line-height:1.3}
.phone .popupBody{padding:8px 18px 18px;font-size:14px;line-height:1.4}
.phone .popupBody strong{display:block;margin-bottom:5px;font-weight:500}
.phone .popupActions{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #b5b5ba}
.phone .oldBtn{min-height:44px;margin:0;padding:10px 14px;border:0;border-radius:0;background:transparent;color:var(--ios-blue);font-size:17px;font-weight:400;box-shadow:none}
.phone .popupActions .oldBtn+.oldBtn{border-left:1px solid #b5b5ba}
.phone .oldBtn.primary{font-weight:600}

/* iMessage has no per-message avatar column or LINE-style textured background. */
.phone .lineView{background:#fff}
.phone .scroll{position:absolute;inset:44px 0 var(--composer-height);padding:12px 11px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;background:#fff}
.phone .scroll::-webkit-scrollbar{display:none}
.phone .dateChip{margin:0 auto 14px;text-align:center;color:#8e8e93;font-size:11px;font-weight:500;line-height:1.5}
.phone .row{display:flex;flex-direction:column;align-items:flex-start;position:relative;width:100%;margin:0 0 10px}
.phone .row.me{align-items:flex-end}
.phone .avatar{display:none}
.phone .bw{position:relative;max-width:82%;order:0}
.phone .bubble{position:relative;display:block;min-height:32px;padding:7px 12px 8px;border:0;border-radius:17px;background:#e5e5ea;color:#111;box-shadow:none;overflow-wrap:anywhere;font-size:17px;line-height:1.35}
.phone .bubble:before,.phone .bubble:after{position:absolute;bottom:0;content:"";width:15px;height:19px;pointer-events:none}
.phone .them .bubble:before{left:-6px;background:#e5e5ea;border-bottom-right-radius:13px}
.phone .them .bubble:after{left:-8px;width:8px;background:#fff;border-bottom-right-radius:11px}
.phone .me .bubble{background:var(--ios-blue);color:#fff}
.phone .me .bubble:before{right:-6px;background:var(--ios-blue);border-bottom-left-radius:13px}
.phone .me .bubble:after{right:-8px;width:8px;background:#fff;border-bottom-left-radius:11px}
.phone .bubbleTranslation{display:block;margin-top:4px;color:#66666d;font-size:12px;line-height:1.45;font-style:italic}
.phone .me .bubbleTranslation{color:#ffffffd9}
.phone .stamp{order:1;margin:3px 3px 0;color:#8e8e93;font-size:10px;line-height:1.3;text-align:right}
.phone .them .stamp:not(.anomaly){display:none}
.phone .typing{display:flex;align-items:center;justify-content:center;gap:4px;width:53px;height:32px;padding:0}
.phone .typing i{display:block;width:7px;height:7px;background:#99999f;border-radius:50%;animation:ios-typing 1100ms ease-in-out infinite}
.phone .typing i:nth-child(2){animation-delay:120ms}
.phone .typing i:nth-child(3){animation-delay:240ms}
@keyframes ios-typing{0%,70%,100%{opacity:.45}35%{opacity:1}}
.phone .composer{position:absolute;left:0;right:0;bottom:0;height:var(--composer-height);display:flex;align-items:center;gap:7px;padding:6px 8px;background:#f7f7f7;border-top:1px solid var(--ios-line)}
.phone .composer-camera{flex:none;width:26px;height:26px;color:#8e8e93}
.phone .input{flex:1;min-width:0;height:29px;padding:4px 8px;border:1px solid #c8c7cc;border-radius:6px;background:#fafafa;color:#8e8e93;font-size:15px;outline:0}
.phone .input::placeholder{color:#b4b4b8}
.phone .send{min-width:39px;height:30px;padding:0;border:0;background:none;color:#8e8e93;font-size:16px;font-weight:600}
.phone .choices{position:absolute;left:10px;right:10px;bottom:calc(var(--composer-height) + 9px);z-index:40;display:none;padding:0 12px;border:1px solid #dedee2;border-radius:12px;background:#f9f9fafc;box-shadow:0 3px 8px #00000008}
.phone .choices:before{content:"Chọn câu trả lời";display:block;padding:8px 0 5px;color:#8e8e93;font-size:11px;line-height:1.3}
.phone .choices.show{display:block}
.phone .choice{display:block;width:100%;min-height:44px;padding:11px 0;border:0;border-top:1px solid #e0e0e3;background:none;color:var(--ios-blue);text-align:left;font-size:16px;line-height:1.4}
.phone .choice:active{background:#eeeeef}
.phone .contact-backdrop{position:absolute;inset:0;z-index:99;border:0;background:#0003}
.phone .contact-backdrop[hidden]{display:none}
.phone .menu{position:absolute;left:8px;right:8px;bottom:calc(var(--composer-height) + 8px);z-index:100;display:none;border-radius:12px;background:#f4f4f4f8;overflow:hidden}
.phone .menu.show{display:block}
.phone .menu button{display:block;width:100%;min-height:48px;padding:12px 16px;border:0;border-bottom:1px solid #c8c7cc;background:none;color:var(--ios-blue);font-size:17px}
.phone .menu #blockBtn{color:#ff3b30}
.phone .menu button:last-child{border-bottom:0;font-weight:500}
.phone .toast{position:absolute;left:50%;top:45%;z-index:110;width:max-content;max-width:calc(100% - 40px);padding:13px 16px;border-radius:10px;background:#242424eb;color:#fff;transform:translate(-50%,-50%);opacity:0;visibility:hidden;pointer-events:none;font-size:13px;line-height:1.5;text-align:center;transition:opacity 180ms}
.phone .toast.show{opacity:1;visibility:visible}
.phone .dialogMask{position:absolute;inset:0;z-index:110;display:none;align-items:center;justify-content:center;background:#0005}
.phone .dialogMask.show{display:flex}
.phone .dialog{width:270px;max-width:calc(100% - 38px);overflow:hidden;border-radius:13px;background:#f4f4f4f7;text-align:center}
.phone .dialog h3{margin:0;padding:18px 12px 0;color:#111;font-size:17px;font-weight:600}
.phone .dialog p{margin:0;padding:13px 14px 18px;font-size:13px;line-height:1.5}
.phone .dialogTranslation{display:block;margin-top:4px;color:#454549;font-size:12px}
.phone .da{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #b5b5ba}
.phone .da button+button{border-left:1px solid #b5b5ba}
.phone .who{position:absolute;inset:0;z-index:120;display:grid;place-items:center;background:#000;color:#fff;font:700 24px Georgia,serif;letter-spacing:.1em;opacity:0;pointer-events:none}
.phone .who.flash{animation:ios-who 320ms steps(2,end)}
@keyframes ios-who{0%,65%,100%{opacity:0}35%{opacity:1}}

/* Existing side paths: Photos, Settings, About, and the app switcher. */
.phone .albumView{background:#fff}
.phone .albumGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:2px 0}
.phone .photo{aspect-ratio:1;position:relative;overflow:hidden;cursor:pointer;border:0}
.phone .p1{background:linear-gradient(#7f9bb1 0 58%,#556b4d 58%)}
.phone .p2{background:linear-gradient(#b3bac2 0 45%,#595c63 45%)}
.phone .p3{background:linear-gradient(135deg,#b9a69e,#504c50)}
.phone .p4{background:linear-gradient(#667680,#252b31)}
.phone .p5{background:linear-gradient(#ae9f90,#67554e)}
.phone .p6{background:linear-gradient(#7c8794,#29313a)}
.phone .secretPhoto{display:none;background:#050607}
.phone .secretPhoto.show{display:block}
.phone .secretPhoto:before,.phone .secretPhoto:after,.phone .redEyes:before,.phone .redEyes:after{content:"";position:absolute;top:46%;width:4px;height:4px;border-radius:50%;background:#8f0e22;box-shadow:0 0 4px #8f0e22}
.phone .secretPhoto:before,.phone .redEyes:before{left:43%}
.phone .secretPhoto:after,.phone .redEyes:after{right:43%}
.phone .fname{position:absolute;bottom:3px;left:3px;color:#fff;font-size:7px;text-shadow:0 1px 2px #000}
.phone .viewer{position:absolute;inset:0;z-index:105;display:none;background:#030405}
.phone .viewer.show{display:block}
.phone .viewerTop{height:44px;display:flex;align-items:center;gap:16px;padding:0 9px;color:#fff;font-size:12px}
.phone .viewerImage{position:absolute;inset:70px 12px 66px;background:#050607}
.phone .rune{position:absolute;right:18px;bottom:18px;color:#7c7470;font:700 15px Georgia,serif;letter-spacing:.3em;opacity:.28}
.phone .viewerMeta{position:absolute;left:12px;right:12px;bottom:20px;display:flex;justify-content:space-between;color:#aaa;font-size:11px}
.phone .settingsView,.phone .aboutView{background:#efeff4}
.phone .settings-list,.phone .aboutList{margin-top:28px;border-top:1px solid var(--ios-line);border-bottom:1px solid var(--ios-line);background:#fff}
.phone .settingRow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:calc(100% - 15px);min-height:46px;margin-left:15px;padding:8px 15px 8px 0;border:0;border-bottom:1px solid var(--ios-line);background:#fff;text-align:left;font-size:16px}
.phone .settingRow:last-child{border-bottom:0}
.phone .settingRow strong{font-weight:400}
.phone .settingRow span{color:#8e8e93;font-size:14px}
.phone .settingRow .chevron{font-size:24px;font-weight:300;color:#c7c7cc}
.phone .ios-switch{position:relative;flex:none;display:block;width:51px;height:31px;border:1px solid #e5e5ea;border-radius:20px;background:#fff;transition:background 180ms ease,border-color 180ms ease}
.phone .ios-switch:after{content:"";position:absolute;left:1px;top:1px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0004;transition:transform 180ms cubic-bezier(.22,1,.36,1)}
.phone .airplane-setting[aria-checked="true"] .ios-switch{border-color:#4cd964;background:#4cd964}
.phone .airplane-setting[aria-checked="true"] .ios-switch:after{transform:translateX(20px)}
.phone .network-note{margin:12px 15px;color:#777;font-size:13px;line-height:1.5}
.phone .network-note[hidden]{display:none}
@media(prefers-reduced-motion:reduce){.phone .ios-switch,.phone .ios-switch:after{transition:none}}
.phone .aboutRow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-left:15px;padding:8px 15px 8px 0;border-bottom:1px solid var(--ios-line);font-size:15px}
.phone .aboutRow:last-child{border-bottom:0}
.phone .aboutRow small{font-size:15px}
.phone .aboutRow>div{color:#8e8e93}
.phone .recentsView{background:#1114}
.phone .recentsTitle{padding:18px 16px 0;color:#fff;font-size:13px;text-align:center}
.phone .switcher-cards{position:absolute;inset:47px 0 25px;display:flex;align-items:center;gap:18px;padding:0 52px 24px;overflow:auto;overscroll-behavior:contain;scroll-snap-type:x proximity;scrollbar-width:none}
.phone .card{position:relative;flex:0 0 218px;height:calc(100% - 28px);min-height:290px;max-height:380px;padding:0;border:0;background:none;color:#fff;scroll-snap-align:center;text-align:center}
.phone .cardPreview{position:absolute;inset:0 0 48px;background:#fff;overflow:hidden;box-shadow:0 5px 20px #0005;pointer-events:none}
.phone .cardPreview:before{content:"Unknown";display:block;height:33px;padding:12px 0 7px;background:#f7f7f7;border-bottom:1px solid var(--ios-line);color:#111;font-size:10px;text-align:center}
.phone .linePrev:after{content:"";position:absolute;top:55px;left:8px;width:114px;height:26px;border-radius:13px;background:#e5e5ea;box-shadow:56px 44px 0 -3px var(--ios-blue),0 84px 0 #e5e5ea}
.phone .albumPrev{background:repeating-linear-gradient(90deg,#7f9bb1 0 70px,#b3bac2 70px 142px,#b9a69e 142px 218px)}
.phone .albumPrev:before{content:"Photos"}
.phone .settingsPrev{background:repeating-linear-gradient(#efeff4 0 53px,#fff 53px 90px,#c8c7cc 90px 91px)}
.phone .settingsPrev:before{content:"Settings"}
.phone .cardText{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;gap:8px;height:37px;font-size:13px;pointer-events:none}
.phone .cardText img{width:29px;height:29px;border-radius:7px}
.phone .cardText strong{font-weight:400}
.phone .cardText svg{width:29px;height:29px}
.phone .voidCard{display:none}
.phone .voidCard.show{display:block}
.phone .voidCard .cardPreview{background:#000}
.phone .voidCard .cardPreview:before{display:none}

/* Physical Home on desktop; period-appropriate AssistiveTouch on a real phone. */
.phone .assistive-trigger{display:none;position:absolute;top:76px;right:5px;z-index:125;width:42px;height:42px;padding:7px;border:1px solid #ffffff20;border-radius:10px;background:#262626bd;opacity:.45;touch-action:none}
.phone .assistive-trigger:before{content:"";display:block;width:26px;height:26px;border:3px solid #fff9;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 3px #777}
.phone .assistive-trigger:hover,.phone .assistive-trigger[aria-expanded="true"]{opacity:1}
.phone .system-menu{position:absolute;z-index:130;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;grid-template-columns:repeat(3,1fr);gap:6px;width:280px;max-width:calc(100% - 24px);padding:20px 10px;border-radius:18px;background:#222f;box-shadow:0 0 0 1000px #0003}
.phone .system-menu[hidden]{display:none}
.phone .system-menu button{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:9px;min-width:0;min-height:73px;border:0;background:none;color:#fff;font-size:12px}
.phone .system-symbol{font-size:27px;line-height:1;font-weight:300}
.phone .black{position:absolute;inset:0;z-index:150;background:#000;opacity:0;pointer-events:none;transition:opacity 180ms ease-out}
.phone .black.show{opacity:1}
.phone-transition{position:fixed;inset:0;z-index:200;opacity:0;visibility:hidden;pointer-events:none;touch-action:none;background:#000;transition:opacity 320ms ease-in-out}
.phone-transition.is-active{visibility:visible;pointer-events:auto}
.phone-transition.is-covered{opacity:1}
.phone-transition.is-releasing{transition-duration:120ms}

/* Prologue skip: outside .phoneScale so the phone transform and its fade do not touch it. */
.prologue-skip{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:210;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:11px 20px;border:1px solid #ffffff3d;border-radius:999px;background:#1b1b1db3;color:#fff;font:500 12px/1 var(--ios-font);letter-spacing:.02em;backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);transition:opacity 260ms ease,visibility 260ms,border-color 180ms ease,background 180ms ease;cursor:pointer}
.prologue-skip:hover{border-color:#ffffff7a;background:#1b1b1dcc}
/* Pressed state answers immediately; the handoff itself stays silent for its first frames. */
.prologue-skip.is-pressed{border-color:#ffffffa8;background:#ffffff2b;transform:translateX(-50%) scale(.96)}
.prologue-skip:focus-visible{outline:2px solid #fff;outline-offset:3px}
.prologue-skip>span{font-size:15px;line-height:1}
.prologue-skip.is-hidden{opacity:0;visibility:hidden;pointer-events:none}
@media(prefers-reduced-motion:reduce){.prologue-skip{transition:none}}

/* On a desktop viewport the phone owns the centre of the stage, so the skip pill
   moves into the bottom left corner instead of resting on the phone's bezel. */
@media(min-width:601px){
  .prologue-skip{left:28px;bottom:28px;transform:none}
  .prologue-skip.is-pressed{transform:scale(.96)}
}
/* A touch screen keeps the full bleed phone, so the pill stays centred under it. */
@media(pointer:coarse){
  .prologue-skip{left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translateX(-50%)}
  .prologue-skip.is-pressed{transform:translateX(-50%) scale(.96)}
}

@media(max-width:600px),(pointer:coarse){
 html,body{height:100%;height:100dvh}
 .phoneScale{position:fixed;inset:0;width:100%;height:100%;height:100dvh;transform:none!important}
 .phone{border-radius:0;background:#000;box-shadow:none}
 .phone .screen{inset:0;width:100%;height:100%}
 .phone .ui{--status-height:calc(20px + env(safe-area-inset-top,0px));--composer-height:calc(44px + env(safe-area-inset-bottom,0px))}
 .phone .status{padding-top:env(safe-area-inset-top,0px)}
 .phone .composer{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
 .phone .dock{height:calc(88px + env(safe-area-inset-bottom,0px));padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
 .phone .page-dots{bottom:calc(101px + env(safe-area-inset-bottom,0px))}
 .phone .iphoneHome{display:none}
 .phone .assistive-trigger{display:block;top:calc(var(--status-height) + 56px)}
 .phone-transition{transition-duration:80ms}
}
@media(prefers-reduced-motion:reduce){
 .phoneScale,.phone *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .phone .popup.show{transform:translate(-50%,-50%)}
 .phone-transition{transition:none!important}
}
