/* Phone layout: explicit zero-minimum columns, compact readable text and room for the visual story. */
@media(max-width:860px){
 html,body{font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .topbar{gap:8px;padding-left:12px;padding-right:12px}.brand{font-size:11px;letter-spacing:.015em}
 .bar-actions{gap:5px}.chapters{display:none}#soundBtn{min-width:44px;min-height:44px;padding:8px 10px;font-size:12px}
 .language-trigger{max-width:132px;font-size:12px;min-height:44px;padding:8px 10px}.language-trigger svg{width:18px;height:18px}
 .scene{padding-left:12px;padding-right:12px;padding-top:calc(env(safe-area-inset-top,0px) + 64px);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 18px)}
 .wrap,.glass,.studio,.qpanel,.res-layout,.res-text,.path-final,.pf-part,.card-hub-head{min-width:0;max-width:100%}
 h1{font-size:clamp(28px,8vw,36px);line-height:1.08}.lede{font-size:14px;line-height:1.45}
 .eyebrow{font-size:10px;letter-spacing:.09em}.prototype-note{font-size:10px;line-height:1.45;margin-top:6px}
 .intro-copy{gap:11px}.intro-copy .lede{max-width:43ch}#s-intro .wrap{padding-bottom:2vh}
 .btn{font-size:14px;padding:12px 18px;min-height:44px;max-width:100%;white-space:normal;line-height:1.35}
 .nav .btn{font-size:14px;padding:11px 16px}.row{gap:8px}.ghost{min-height:40px}
 .glass{border-radius:18px}.qpanel{padding:14px;gap:10px}.q{gap:10px}.q h3,#tgPanel h3{font-size:clamp(20px,5.5vw,24px);line-height:1.25}
 .q p,#tgPanel p{font-size:13px;line-height:1.5}.field{font-size:16px;padding:10px 12px;min-height:44px;border-radius:12px}
 .input-label{font-size:12px}.chip{font-size:12px;padding:9px 12px;min-height:40px;line-height:1.3}.chips{gap:6px}
 .pass-layout,.res-layout,.tw-layout{grid-template-columns:minmax(0,1fr);gap:10px}
 .stage{min-height:28vh}.stage .stage-cap{font-size:11px;line-height:1.5}
 .year,.yr-reveal .year{font-size:clamp(48px,14vw,66px)}.yr-stats{gap:8px}.yr-stats>div{padding:9px 10px}.yr-stats b{font-size:22px}.yr-stats span,.yr-stats em{font-size:11px}
 .yr-lists{gap:8px}.yr-lists li{font-size:12px;padding:8px 10px}.yr-lists li em{font-size:10px}
 #dmWheel .wheel-columns,#dmWheel .wheel-column,.tw-wheel .wheel-columns,.tw-wheel .wheel-column{height:132px}
 #dmWheel .wheel-column,.tw-wheel .wheel-column{padding-top:44px;padding-bottom:44px}
 #dmWheel .wheel-band,.tw-wheel .wheel-band{top:44px;height:44px}
 #dmWheel .wheel-column [role=option],.tw-wheel .wheel-column [role=option]{font-size:16px;height:44px}
 .tw-wheel{margin-bottom:10px}.val{font-size:36px}.map-count b{font-size:32px}.country-list{height:150px}
 .country-option{font-size:12px;min-height:40px}.world-map{max-width:100%}
 .res-text{gap:10px}.res-text h2,.profile-discovery>h2{font-size:clamp(23px,6vw,28px);line-height:1.2}
 .res-text .huge,.reveal .huge{font-size:clamp(46px,13vw,66px);line-height:1.05}.reveal p{font-size:14px;line-height:1.45}
 .scene-explanation{margin-top:6px;padding:10px 12px}.scene-explanation h3{font-size:13px}.scene-explanation p{font-size:12px;line-height:1.5}
 .travel-layout .stage,.travel-orbit-stage{min-height:280px}.travel-orbit-caption{max-width:100%;font-size:11px;line-height:1.5}
 .overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ov{padding:12px}.ov .n{font-size:28px}.ov p{font-size:12px}
 .life-panel{padding:12px;gap:5px;max-width:100%;background:rgba(10,16,48,.65)}.life-panel h2{font-size:22px}.life-panel .beats{font-size:24px}
 .life-panel .bottom-link{font-size:12px;min-height:36px}.life-panel #lifeSlider{height:22px}.life-actions{left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 12px)}
 .light-life-caption{font-size:10px;margin-bottom:6px}
 .tw-layout #tgStage{min-height:28dvh!important;height:28dvh;max-height:28dvh!important}
 body.together-result .tw-layout #tgStage{min-height:38dvh!important;height:38dvh;max-height:38dvh!important}
 .tw-rel{padding:10px;font-size:12px;min-height:52px;gap:8px}.tw-rel span{font-size:21px}
 .tw-names{font-size:17px}.tg-big b{font-size:clamp(34px,10vw,46px)}.tg-big span{font-size:13px}.tw-lines li{font-size:12px;padding:8px 10px}
 .tw-offer-actions{margin:16px 0;gap:9px}.tw-switch{font-size:12px;margin:10px 0}.tw-details{margin:12px 0}
 /* A card must fit the column before the image, canvas or editor has loaded. */
 #s-final .wrap{gap:12px;padding-top:0;padding-bottom:20px;width:100%}
 .final-head{padding:4px 0 0;gap:7px}.final-head h2{font-size:clamp(22px,5.8vw,27px);line-height:1.2}
 .final-head .lede{font-size:13px;line-height:1.45;max-width:44ch}
 .final-head .light-signature{height:72px;margin-top:0}.light-signature-caption{font-size:10px;gap:6px}
 .card-hub-head{margin:3px auto;gap:8px}.card-hub-head h3{font-size:17px}.card-tabs{padding:4px;border-radius:14px}
 .card-tabs button{font-size:14px;min-width:56px;min-height:40px;padding:9px 13px}
 #personalStudio,#usStudio{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;padding:12px;gap:10px;min-width:0}
 .studio>*,.studio>div>*,.us-card-preview{min-width:0;max-width:100%}
 #personalStudio .preview,.us-studio .us-preview{width:100%;max-width:100%;min-width:0;padding:8px 8px 28px;border-radius:15px;overflow:hidden;min-height:0}
 #personalStudio .preview img,.us-preview img,.us-preview canvas.us-live{width:var(--mobile-card-width,180px)!important;max-width:100%!important;height:auto!important;aspect-ratio:9/16;object-fit:contain;border-radius:11px}
 #personalStudio .preview.sq img{width:var(--mobile-card-square-width,240px)!important;aspect-ratio:1}
 .preview-caption{font-size:10px;bottom:8px;left:8px;right:8px;line-height:1.3}
 .studio h3,.us-studio>div>h3{font-size:21px;margin:2px 0 7px;line-height:1.2;overflow-wrap:anywhere}
 .card-name-field{margin:6px 0}.story-summary{padding:3px 0 3px 10px;margin-bottom:10px}.story-summary b{font-size:14px}.story-summary p{font-size:13px;line-height:1.45;margin:5px 0 0}
 .studio .ctrl{gap:6px;margin-bottom:10px}.studio .ctrl .lab{font-size:10px;letter-spacing:.06em}
 .card-main-actions,.us-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}
 .card-main-actions .btn,.us-actions .btn{font-size:12px;padding:11px 8px;min-width:0;min-height:44px}
 .us-actions:has(.us-video){grid-template-columns:minmax(0,1fr);margin-top:8px}
 .card-edit-toggle,.studio .bottom-link{font-size:12px;min-height:36px;line-height:1.4}
 #personalStudio #cardStyle{display:flex;width:100%;max-width:100%;min-width:0;overflow-x:auto;flex-wrap:nowrap;padding:2px 0 6px;scrollbar-width:thin}
 #cardStyle .chip{flex-shrink:0;font-size:11px;padding:9px 11px}
 .link-privacy{font-size:10px;line-height:1.5;margin-top:8px}.us-studio p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
 .mobile-sky-details{padding:12px 14px;max-width:100%;border:1px solid var(--edge);border-radius:16px;background:var(--glass)}
 .mobile-sky-details summary{cursor:pointer;font-size:12px;color:var(--ice);line-height:1.5}.mobile-sky-details .birth-sky{margin:10px 0 0;gap:10px}.mobile-sky-details .birth-sky canvas{width:76px;height:76px}.birth-sky p{font-size:12px}.birth-sky .small{font-size:10px}
 .path-final{padding:14px;gap:16px}.pf-part{gap:7px}.pf-part h3{font-size:18px}.pf-part h4{font-size:13px}
 .pf-moments li{grid-template-columns:42px minmax(0,1fr) auto;gap:8px;padding:9px}.pf-moments b{font-size:14px}.pf-moments strong{font-size:13px}.pf-moments small,.pf-moments span{font-size:11px}
 .pf-line,.pf-countries{font-size:13px}.ch-part .ch-horizon{font-size:17px}.ch-dates li{padding:9px;font-size:12px;gap:8px}.ch-space{font-size:12px}
 .signature-heading h3{font-size:22px;margin:9px 0}.signature-heading p{font-size:13px;margin-bottom:12px}
 .signature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.signature-fact{padding:12px;gap:6px;min-height:0;border-radius:16px}
 .signature-fact strong{font-size:clamp(20px,5.5vw,26px)}.signature-fact .fact-label{font-size:9px;line-height:1.5;padding-right:12px}.signature-fact .fact-story{font-size:11px;line-height:1.5}.signature-fact small{font-size:9px;line-height:1.5}
 .point-badge,.visited-final,.duel-panel,.together{padding:14px;gap:10px}.point-badge strong{font-size:16px;overflow-wrap:anywhere}.point-badge p{font-size:11px}
 .story-basis,.pass-details{padding:12px 14px;font-size:12px;line-height:1.5}.pass-details .passport{margin-top:12px}.pp-left,.pp-right{padding:16px}.pp-titul{font-size:20px}.pp-grid .v{font-size:14px}
 .mu-card{padding:12px}.mu-card h3{font-size:16px}.mu-card p{font-size:12px}.mu-tile{padding:12px}.mu-tile b{font-size:24px}.mu-tile em{font-size:11px}
 .select-dialog,.method-dialog,.media-save-dialog{padding:16px;border-radius:18px;max-width:calc(100vw - 20px)}.method-dialog h2,.media-save-dialog h2{font-size:20px}.method-dialog p,.media-save-hint{font-size:13px}
 .card-view-toolbar{padding:8px;height:58px}.card-view-toolbar .ghost{padding:8px;font-size:11px;min-height:40px}.card-view-scroll{height:calc(100% - 58px);padding:10px}
}
@media(max-width:360px){.brand{font-size:10px}.topbar{padding-left:10px;padding-right:10px}.language-trigger{max-width:115px}#soundBtn{padding:8px}.signature-fact .fact-story{font-size:11px}.card-main-actions .btn{font-size:11px}}
@media(max-width:860px){.bar-actions{margin-left:auto}}
@media(max-width:360px){#soundBtn .sound-bars{display:none}#soundBtn{width:44px;gap:0}}
@media(max-width:860px) and (max-height:520px) and (orientation:landscape){
 #s-life .life-panel{max-width:45%;padding:10px}.life-actions{left:55%;right:12px}.life-panel h2{font-size:19px}.light-life-caption{display:none}
}
@media(max-width:860px){
 .mu-head{gap:7px}.mu-head h2{font-size:24px;line-height:1.2}.mu-portrait{padding:13px}.mu-portrait li{font-size:13px;line-height:1.5}
 .mu-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mu-tile:last-child{grid-column:1/-1}.mu-tile b{font-size:21px}.mu-tile small{font-size:9px;letter-spacing:.06em}
 .mu-card{padding:9px 10px}.mu-card h4{font-size:12px;line-height:1.35}.mu-card p{font-size:10px;line-height:1.4}
 .tm-controls{gap:10px}.tm-lines{font-size:12px;line-height:1.5}.tm-slider{font-size:12px}
}

/* ---- Phone polish, 15 Oct 2026 ---- */
@media(max-width:860px){
 /* the header gets a dark backdrop, so scrolled text never runs under the logo and buttons */
 .topbar{background:linear-gradient(180deg,rgba(4,7,26,.97) 0%,rgba(4,7,26,.9) 70%,rgba(4,7,26,0) 100%);padding-bottom:14px}
 /* the "you · number" tag sits on top of globes, galaxies and the name: on phones it is shown only on the first screen */
 body:not([data-scene="intro"]) #meLabel{display:none!important}
 /* heartbeat counter under the heart no longer covers the chapter label */
 .res-layout:has(.heart-live) .stage{margin-bottom:46px}
 /* the name made of light: room for the word, caption below it */
 .final-head .light-signature{height:96px;margin-bottom:26px}
 .final-head .light-signature-caption{bottom:-24px}
 /* profile facts: the corner arrow no longer overlaps the label */
 .signature-fact .fact-label{padding-right:22px}
 /* "World": the main button keeps its arrow on one line */
 .mu-actions .btn{white-space:nowrap;font-size:13px;padding-left:14px;padding-right:14px}
}
