/* v53: compact phone layouts only. Source content, order, desktop and full players retained. */
.page-rail-toolbar{display:none!important}
@media(max-width:760px){
 .compact-pages .page-rail-toolbar{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px 12px;margin:12px 0 10px;padding:0;min-height:44px;max-width:100%;color:inherit;background:none}
 .page-rail-hint{font-size:12px;line-height:1.5;font-weight:500}
 .page-rail-hint>span{font-size:18px;color:var(--orange);margin-left:3px}
 .page-rail-buttons{display:flex;align-items:center;gap:6px;max-width:100%}
 .page-rail-buttons[hidden],.page-rail-buttons [hidden]{display:none!important}
 .page-rail-buttons button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:9px;border:1px solid currentColor;border-radius:24px;background:transparent;color:inherit;font:600 12px/1.3 var(--font);cursor:pointer}
 .page-rail-buttons svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 .page-rail-buttons button:disabled{opacity:.35;cursor:default}
 .page-rail-buttons button:focus-visible,[data-page-rail]:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
 .page-rail-buttons [data-page-count]{min-width:42px;text-align:center;font-size:12px;font-variant-numeric:tabular-nums}
 .page-rail-buttons [data-page-expand]{padding-inline:14px}
 .compact-pages [data-page-rail]{position:relative;isolation:isolate;display:flex;align-items:stretch;gap:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scroll-padding-inline:4px;overscroll-behavior-x:contain;padding:4px 4px 16px;margin:0 -4px;max-width:calc(100% + 8px);width:auto;scrollbar-width:thin;scrollbar-color:#ff5a24 #ddd;-webkit-overflow-scrolling:touch}
 .compact-pages [data-page-rail]>*{flex:0 0 min(86%,350px);min-width:0;max-width:none;margin:0;scroll-snap-align:start;scroll-margin-inline:0;grid-column:auto!important;grid-row:auto!important}
 .compact-pages [data-page-rail]>.work-card[hidden]{display:none}
 .compact-pages [data-page-rail].is-expanded{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;overflow:visible;scroll-snap-type:none}
 .compact-pages [data-page-rail].is-expanded>*{width:100%;max-width:100%}
 /* Readable feature cards replace many rows of narrow columns. No text clipping. */
 .compact-pages [data-page-rail-kind=features]>article{background:#f6f4f1;color:#171717;border:1px solid #e4ded7;border-radius:16px;padding:20px;min-height:0;text-align:left}
 .compact-pages [data-page-rail-kind=features] svg{width:36px;height:36px;margin:0 0 12px;color:#bf3f15}
 .compact-pages [data-page-rail-kind=features] h3{font-size:20px;line-height:1.25;margin:9px 0 10px}
 .compact-pages [data-page-rail-kind=features] p{font-size:15px;line-height:1.5;margin-top:0;color:#383838}
 /* Smaller but fully visible category heroes. */
 .compact-pages .category-hero{margin:12px 20px 28px;padding:30px 22px 28px}
 .compact-pages .category-hero h1,.compact-pages .category-hero-games h1{font-size:clamp(34px,8vw,46px);line-height:1.05}
 .compact-pages .category-kicker{font-size:17px;line-height:1.35;padding-right:28px}
 .compact-pages .category-availability{margin-bottom:12px}
 .compact-pages .category-phone{width:165px;max-width:52%;margin:23px 0 20px;transform:rotate(4deg);border-radius:23px;padding:4px;box-shadow:3px 5px #000,8px 12px 18px #0005}
 .compact-pages .category-phone-screen{border-radius:17px}
 .compact-pages .category-phone:not(.media-fit-phone) .category-phone-screen{height:300px;min-height:0}
 .compact-pages .category-phone .concept-screen{padding:24px 9px 12px}
 .compact-pages .category-phone .concept-screen h3{font-size:17px;line-height:1.2;margin-top:12px}
 .compact-pages .category-phone .concept-screen>div:not(.concept-options){min-height:45px}
 .compact-pages .category-phone .concept-options>span{font-size:11px;padding:4px 6px}
 .compact-pages .category-phone .concept-screen>small{font-size:11px}
 .compact-pages .category-support{font-size:15px;line-height:1.5;padding-right:96px}
 .compact-pages .category-orbit{width:82px;right:15px;bottom:22px}
 .compact-pages .category-orbit>span{font-size:9px}
 .compact-pages .category-game-phones{height:310px;aspect-ratio:auto;margin:20px 0 16px}
 .compact-pages .category-hero-games .category-phone{position:absolute;left:calc(50% - 138px);top:18px;width:130px;max-width:none;margin:0}
 .compact-pages .category-hero-games .category-phone-secondary{left:calc(50% - 6px);top:0}
 .compact-pages .category-hero-games .category-support{padding-right:0}
 /* Smaller section gaps, while the main explanation and contact form remain in the page flow. */
 .compact-pages .category-capabilities,.compact-pages .category-work,.compact-pages .category-approach,.compact-pages .category-faq{padding-top:10px;padding-bottom:30px;gap:12px}
 .compact-pages .category-capabilities>div>h2,.compact-pages .platform-capability-top>div>h2{font-size:30px;line-height:1.15}
 .compact-pages .category-capabilities>div>p,.compact-pages .platform-capability-top>div>p{font-size:16px;line-height:1.55;margin-top:16px;margin-bottom:16px}
 .compact-pages .games-capabilities>div:first-child{margin-bottom:15px}
 .compact-pages .platform-capability-bottom{margin-top:0}
 .compact-pages .category-section-heading{margin-bottom:16px}
 .compact-pages .category-section-heading h2,.compact-pages .category-complement>h2,.compact-pages .category-approach>h2,.compact-pages .category-faq>h2{font-size:29px;line-height:1.15;margin-bottom:18px}
 .compact-pages .category-mosaic .mosaic-tile{height:360px;min-height:0;aspect-ratio:auto}
 .compact-pages .category-mosaic .mosaic-caption{opacity:1;transform:none;padding:45px 16px 14px;background:linear-gradient(transparent,#000d)}
 .compact-pages .category-mosaic .mosaic-caption h3{font-size:18px;line-height:1.3;padding-right:45px}
 .compact-pages .category-mosaic .mosaic-caption>a{min-height:44px;display:inline-flex;align-items:center;font-size:13px}
 .compact-pages .category-mosaic .mosaic-watch .play-triangle{width:44px;height:44px;right:14px;bottom:25px}
 .compact-pages .category-directions>article{min-height:0;padding:22px 20px 0}
 .compact-pages .category-directions h3{font-size:24px;line-height:1.2}
 .compact-pages .category-directions p{font-size:15px;line-height:1.5}
 .compact-pages .direction-screen{width:200px;max-width:100%;height:300px;margin:20px auto 0}
 .compact-pages .direction-screen .concept-screen{padding:18px 12px 10px}
 .compact-pages .direction-screen .concept-screen h3{font-size:18px}
 .compact-pages .category-complement{padding:28px 20px}
 .compact-pages .category-complement>h2{width:auto}
 .compact-pages .complement-card{min-height:270px;padding:22px}
 .compact-pages .complement-card>span{font-size:24px;line-height:1.2}
 .compact-pages .complement-card>p{font-size:15px;line-height:1.45}
 .compact-pages .complement-graphic{width:80px;height:80px}
 .compact-pages .category-benefits{padding:30px 20px}
 .compact-pages .category-benefits>h2{font-size:32px;line-height:1.15;margin-bottom:18px}
 .compact-pages .category-benefits [data-page-rail-kind=features]>article{background:#fff}
 .compact-pages .category-benefits .page-rail-hint>span{color:inherit}
 .compact-pages .category-approach{padding-top:28px}
 .compact-pages .category-approach>div{gap:18px}
 .compact-pages .category-approach h3{font-size:20px;line-height:1.3;margin:7px 0}
 .compact-pages .category-approach p{font-size:15px;line-height:1.5}
 .compact-pages .category-faq .faq-list summary{min-height:56px;padding-block:14px;font-size:16px;line-height:1.45}
 .compact-pages .category-inquiry{padding-top:0;padding-bottom:30px}
 .compact-pages .category-inquiry h2{font-size:29px;line-height:1.2}
 .compact-pages .category-inquiry>p{margin:16px 0 20px}
 .compact-pages .category-inquiry form>label,.compact-pages .category-inquiry .form-two label{margin-bottom:12px}
 .compact-pages .portrait-work-strip,.compact-pages .platform-film-slot{padding:30px 20px}
 .compact-pages .portrait-work-strip>h2,.compact-pages .platform-film-slot h2{font-size:29px;line-height:1.2;margin-bottom:18px}
 .compact-pages .portrait-work-media{width:190px;max-width:100%;margin:0 auto}
 .compact-pages .portrait-work-strip h3,.compact-pages .portrait-work-strip p,.compact-pages .portrait-study{max-width:none;margin-inline:0}
 .compact-pages .games-distribution{padding:30px 20px}
 .compact-pages .games-distribution>h2,.compact-pages .playable-benefits>h2{font-size:29px;line-height:1.2;margin-bottom:20px}
 .compact-pages .games-distribution article{padding:16px 10px;gap:14px}
 .compact-pages .games-distribution h3{font-size:20px;line-height:1.25}
 .compact-pages .distribution-device{width:145px;max-width:100%}
 .compact-pages .games-spotlight{padding:30px 0;gap:22px}
 .compact-pages .spotlight-media{width:190px;max-width:70%}
 .compact-pages .playable-benefits{padding-bottom:30px}
 /* Full original players are unchanged; only inline previews are more compact. */
 .compact-pages .project-stage .project-watch-device{width:min(100%,225px);height:auto!important;max-height:none;aspect-ratio:var(--device-aspect)}
 .compact-pages .project-stage .presentation-phone{--presentation-height:420px}
 .compact-pages .project-story{padding-block:30px;gap:18px}
 .compact-pages .project-mechanics{gap:18px;padding-bottom:24px}
 .compact-pages .mechanics-grid{gap:16px}
 .compact-pages .mechanics-grid article{padding-block:0}
 .compact-pages .campaign-films,.compact-pages .project-gallery,.compact-pages .related-work{padding-block:28px}
 .compact-pages .section-heading{margin-bottom:16px}
 .compact-pages .campaign-film-preview{padding:18px}
 .compact-pages .campaign-film-preview .project-watch-device{width:160px;max-width:100%}
 .compact-pages .campaign-film h3{font-size:20px}
 .compact-pages .campaign-film>p:last-child{font-size:15px;line-height:1.5}
 .compact-pages .project-gallery .presentation-phone{--presentation-height:350px}
 .compact-pages .project-gallery .presentation-artboard{max-width:min(100%,calc(350px * var(--presentation-ratio)))}
 .compact-pages .project-gallery figcaption{font-size:14px;line-height:1.5}
 .compact-pages .related-work .archive-project .work-card-title{font-size:19px}
 /* The all-project archive stays a searchable vertical list, not a swipe-only directory. */
 .compact-pages .reference-work-page .work-grid{display:grid;grid-template-columns:1fr;gap:22px}
 .compact-pages .reference-work-page .archive-project{display:grid;grid-template-columns:128px minmax(0,1fr);gap:0 16px;border-bottom:1px solid #dedede;padding-bottom:20px}
 .compact-pages .reference-work-page .archive-project .archive-cover{grid-column:1;grid-row:1/6;width:128px;aspect-ratio:3/4;align-self:start}
 .compact-pages .reference-work-page .archive-project>p,.compact-pages .reference-work-page .archive-project>h3,.compact-pages .reference-work-page .work-card-actions{grid-column:2}
 .compact-pages .reference-work-page .archive-project .work-category{margin-top:0;font-size:11px;line-height:1.4}
 .compact-pages .reference-work-page .archive-project .work-card-title{font-size:18px;line-height:1.3;margin-top:7px}
 .compact-pages .reference-work-page .archive-project .work-summary{font-size:14px;line-height:1.5;margin-top:10px}
 .compact-pages .reference-work-page .work-card-actions{gap:2px 12px;flex-wrap:wrap;margin-top:6px}
 .compact-pages .reference-work-page .work-card-actions>a{min-width:0;min-height:44px;font-size:12px}
 .compact-pages .reference-work-page .archive-cover>.archive-cover-target{padding:7px;justify-content:center}
 .compact-pages .reference-work-page .archive-action-label{font-size:11px;min-height:44px;padding:7px;gap:4px}
 .compact-pages .reference-work-page .archive-cover .cover-title{font-size:22px}
 .compact-pages .reference-work-page .archive-cover .cover-brand{font-size:10px}
 .compact-pages .reference-work-page .archive-cover .cover-art-note{font-size:10px}
 /* Service directory stays fully visible; compact cards and optional family browsing. */
 .compact-pages .reference-service-overview{padding:20px 0 30px}
 .compact-pages .reference-service-overview .reference-services-grid{grid-template-columns:1fr;gap:12px}
 .compact-pages .reference-service-overview .reference-service-card{min-height:0;padding:18px 64px 16px 18px;background:#f5f3f1;border-radius:14px}
 .compact-pages .reference-service-overview .reference-service-card:before{display:none}
 .compact-pages .reference-service-overview .reference-service-card h3{font-size:20px;line-height:1.25;margin-bottom:8px;max-width:none}
 .compact-pages .reference-service-overview .reference-service-card p{font-size:14px;line-height:1.5;max-width:none}
 .compact-pages .reference-service-overview .reference-service-icon{position:static;display:inline-flex;width:28px;height:28px;margin-top:12px;vertical-align:middle}
 .compact-pages .reference-service-overview .reference-service-icon svg{width:28px;height:28px}
 .compact-pages .reference-service-overview .availability{position:static;display:inline-block;margin:12px 0 0 8px;font-size:10px;vertical-align:middle;color:#555}
 .compact-pages .reference-service-overview .reference-service-arrow{width:40px;height:40px;right:14px;bottom:calc(50% - 20px);font-size:24px}
 .compact-pages .reference-service-overview .reference-service-card:hover,.compact-pages .reference-service-overview .reference-service-card:focus-visible{color:#111;background:#ebe6e0}
 .compact-pages .reference-roadmap{padding-top:28px}
 .compact-pages .capability-family{background:#f5f3f1;border-radius:14px;padding:20px}
 .compact-pages .capability-family>a{min-height:44px;font-size:14px}
 /* Studio examples are optional browsable cards; the studio description remains vertical. */
 .compact-pages .reference-about-services[data-page-rail]{width:calc(100% - 40px);max-width:none;margin:0 20px;padding-block:4px 18px}
 .compact-pages main>.page-rail-toolbar{margin:12px 20px 10px}
 .compact-pages .reference-about-services>article{display:flex;flex-direction:column;gap:20px;padding:20px;border:1px solid #ded8d2;border-radius:16px;background:#f8f5f2}
 .compact-pages .reference-about-services .studio-service-copy{order:0!important}
 .compact-pages .reference-about-services .studio-framed-visual{order:1!important}
 .compact-pages .reference-about-services h2{font-size:26px;line-height:1.2}
 .compact-pages .reference-about-services p{font-size:15px;line-height:1.5}
 .compact-pages .reference-about-services .presentation-phone{--presentation-height:290px}
 .compact-pages .reference-process{padding-block:28px}
 .compact-pages .reference-proof-strip{padding-block:24px;gap:18px}
 .compact-pages .reference-about-hero .about-copy{padding:26px 24px}
}
@media(max-width:380px){
 .compact-pages .reference-work-page .archive-project{grid-template-columns:100px minmax(0,1fr);gap:0 12px}
 .compact-pages .reference-work-page .archive-project .archive-cover{width:100px}
 .compact-pages .reference-work-page .archive-action-label{font-size:10px}
 .compact-pages .category-hero{padding-inline:18px}
 .compact-pages .category-support{padding-right:85px}
 .compact-pages .category-orbit{width:74px;right:10px}
 .compact-pages .category-game-phones{height:285px}
 .compact-pages .category-hero-games .category-phone{left:calc(50% - 105px);width:105px;transform:rotate(-4deg)}
 .compact-pages .category-hero-games .category-phone-secondary{left:calc(50% - 4px);transform:rotate(4deg)}
}
@media(prefers-reduced-motion:reduce){.compact-pages [data-page-rail]{scroll-behavior:auto}}
@media(max-width:760px){
 .compact-pages [data-page-rail]{scroll-margin-top:110px}
 .compact-pages .reference-service-overview .reference-service-card{padding:14px 62px 14px 16px}
 .compact-pages .reference-service-overview .reference-service-icon{display:none}
 .compact-pages .reference-service-overview .availability{margin:9px 0 0;font-size:10px}
}
@media(min-width:480px) and (max-width:760px){
 .compact-pages .reference-service-overview .reference-services-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .compact-pages .reference-service-overview .reference-service-card{padding:18px 18px 62px}
 .compact-pages .reference-service-overview .availability{position:absolute;left:18px;bottom:20px;max-width:calc(100% - 80px)}
 .compact-pages .reference-service-overview .reference-service-arrow{bottom:13px}
}
