/* Mobile structure only. Artwork, typefaces, palettes and desktop rules stay owned by their original skins. */
#ar-mobile-menu152{display:none}
@layer ar-mobile152{
@media(max-width:900px),(max-width:1024px) and (pointer:coarse){
 html body #ar-site-header #ar-mobile-menu152{display:block!important}
 html body #library-main#library-main [hidden]{display:none!important}
 html body #ar-site-header .ar-site-header-inner{position:relative!important;grid-template-columns:minmax(0,1fr) auto!important;width:calc(100% - 24px)!important;min-height:88px!important;padding:12px 0!important;gap:10px!important}
 html body #ar-site-header .ar-site-brand{height:64px!important;gap:9px!important}
 html body #ar-site-header .ar-site-brand-icon{width:52px!important;height:52px!important;min-width:52px!important;flex-basis:52px!important}
 html body #ar-site-header .ar-site-brand-title{font-size:clamp(14px,4vw,20px)!important;line-height:1.25!important}
 html body #ar-site-header .ar-site-brand-home{font-size:12px!important}
 html body #ar-site-header .ar-site-brand-subtitle{font-size:11px!important;line-height:1.3!important}
 html body #ar-site-header #ar-mobile-menu152{display:block;min-width:52px;min-height:44px;padding:8px;border:1px solid var(--line,#8e784e);border-radius:4px;background:var(--surface,#12100c);color:var(--text,#eee5d6);font-family:inherit;font-size:12px;font-weight:600;line-height:1.3;cursor:pointer}
 html body #ar-site-header .ar-site-nav{grid-column:1/-1!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 html body #ar-site-header[data-mobile-nav152] .ar-site-nav{display:none!important}
 html body #ar-site-header[data-mobile-nav152][data-mobile-open152] .ar-site-nav{display:grid!important;max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain;padding:6px 2px!important}
 html body #ar-site-header .ar-site-nav > .ar-site-nav-item{min-height:44px!important;height:auto!important;padding:10px 8px!important;font-size:12px!important}
 html body #ar-site-header .ar-site-nav > .ar-site-nav-item:last-child{grid-column:1/-1!important}
 html body .hub-shell{width:100%!important;max-width:100%!important;padding:20px 12px 32px!important}
 html body #library-main .hub-intro{padding:20px 16px!important;gap:16px!important;flex-wrap:wrap!important}
 html body #library-main .hub-intro h1{font-size:clamp(30px,8vw,42px)!important;line-height:1.12!important}
 html body #library-main .hub-mode-control{min-width:0!important;min-height:44px!important;width:100%;padding:10px 14px!important}
 html body #library-main .hub-toolbar{display:flex!important;flex-wrap:wrap!important;gap:12px!important;padding:14px 0!important}
 html body #library-main .hub-filters{display:flex!important;flex-wrap:wrap!important;gap:6px!important}
 html body #library-main .hub-filter{min-height:44px!important;padding:8px 12px!important}
 html body #library-main :is(.hub-feature-grid,.hub-games-grid,.hub-app-grid,.hub-challenge-grid){grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 html body #library-main :is(.hub-feature,.hub-app-card){display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important}
 html body #library-main :is(.hub-feature-art,.hub-app-art,.hub-quest-art){flex:none!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;max-height:220px!important;overflow:hidden!important}
 html body #library-main :is(.hub-feature-art,.hub-app-art,.hub-quest-art)>img{width:100%!important;height:100%!important;}
 html body #library-main :is(.hub-feature-copy,.hub-card-body){padding:16px!important;gap:10px!important;min-height:0!important;flex:1!important}
 html body #library-main :is(.hub-feature-copy,.hub-card-body) h3{font-size:24px!important;line-height:1.2!important;margin:0 0 8px!important}
 html body #library-main :is(.hub-feature-copy,.hub-card-body) p{font-size:14px!important;line-height:1.6!important;margin:0 0 12px!important}
 html body #library-main .hub-play{min-height:44px!important;width:100%!important;margin-top:auto!important}
 html body :is(#hub-theme-menu,#ar-companion-menu){max-width:calc(100vw - 24px)!important;max-height:70dvh!important;overflow-y:auto!important;overscroll-behavior:contain}
 html body .ar-library-player{width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important;inset:0!important}
 html body .ar-library-player[data-player-app] .ar-library-player-top{padding:6px max(8px,env(safe-area-inset-right)) 6px max(8px,env(safe-area-inset-left));gap:8px}
 html body .ar-library-player .ar-library-player-actions>button{min-width:44px;min-height:44px}
 html body .ar-library-player-heading h2{font-size:15px!important;overflow-wrap:anywhere}
 html body .ar-library-frame-wrap{min-width:0;min-height:0}
}
}
@layer ar-mobile152{
 @media(max-width:900px),(max-width:1024px) and (pointer:coarse){
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid{grid-template-columns:minmax(0,1fr)!important;gap:18px!important;text-align:center!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid>*{grid-column:1!important;grid-row:auto!important;min-width:0!important;max-width:100%!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid>.hero-copy{order:2!important;width:100%!important;margin:0!important;padding:18px 0 8px!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid>.hero-medallion{order:-1!important;width:140px!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid :is(.eyebrow,.tagline){justify-content:center!important;text-align:center!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero-grid>.hero-medallion{position:relative!important;inset:auto!important;width:min(180px,48vw)!important;height:auto!important;justify-self:center!important;margin:0 auto!important}
  html body[data-ar-page=home] #main-content-home#main-content-home .hero h1{font-size:clamp(34px,9vw,50px)!important;line-height:1.1!important}
 }
}
@layer ar-mobile152{
 @media(max-width:900px),(max-width:1024px) and (pointer:coarse){
  html body #sidebar#sidebar{position:relative!important;top:auto!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;padding:14px!important;margin:0!important;background-size:100% auto!important}
  html body #sidebar#sidebar::before,html body #sidebar#sidebar::after{pointer-events:none!important}
  html body #sidebar#sidebar #ar-library-olive-trim.ar-ornament-frame{height:62px!important;aspect-ratio:auto!important;max-height:62px!important;width:calc(100% + 28px)!important;margin:-14px -14px 8px!important}
  html body #sidebar#sidebar #ar-library-olive-trim.ar-ornament-frame>img:not(.ar-workspace-sigil-r14){height:auto!important;object-fit:contain!important;object-position:center top!important;mask-image:linear-gradient(#000 60%,transparent)!important}
  html body #sidebar#sidebar .sidebar-heading{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding:0!important;margin:0!important;min-height:0!important}
  html body #sidebar#sidebar .sidebar-heading>.eyebrow{grid-column:1/-1!important;margin:0!important}
  html body #sidebar#sidebar .sidebar-heading>h1{grid-column:1/-1!important;margin:0!important;padding:0!important;font-size:25px!important;line-height:1.2!important;min-height:0!important}
  html body #sidebar#sidebar .visit-navigation{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;margin:0!important;gap:8px!important}
  html body #sidebar#sidebar :is(#visit-back,#visit-forward,#explorer-dashboard,#close-all67){width:100%!important;min-width:0!important;min-height:44px!important;padding:8px!important;margin:0!important;font-size:13px!important}
  html body #sidebar#sidebar #ar-study-menu-r24{margin:10px 0 0!important;padding:8px 0 0!important}
  html body #sidebar#sidebar #ar-study-menu-r24 > summary#ar-study-menu-toggle-r24{min-height:44px!important;padding:10px 12px!important}
  html body #sidebar#sidebar #ar-study-menu-r24[open]>#study-tree{max-height:none!important;overflow:visible!important}
  html body #sidebar#sidebar .sidebar-bottom{margin-top:8px!important;padding:0!important}
  html body #workspace#workspace{min-width:0!important;padding:16px 12px!important}
  html body .workspace-top{flex-wrap:wrap!important;gap:10px!important}
  html body #ar-explorer-beta-banner .ar-beta-ticker-track{display:block!important;width:auto!important;transform:none!important;animation:none!important}
  html body #ar-explorer-beta-banner .ar-beta-notice-copy{display:none!important}
  html body #ar-explorer-beta-banner .ar-beta-notice-original{white-space:normal!important;width:auto!important;max-width:100%!important;margin:0!important;line-height:1.5!important}
  html body #ar-explorer-beta-banner .ar-beta-ticker-viewport{overflow:visible!important;max-width:100%!important;width:100%!important}
  html body #ar-explorer-beta-banner .ar-beta-pause{display:none!important}
  html body #ar-explorer-engraved-sigil{position:absolute!important;left:12px!important;top:100px!important;width:min(160px,40vw)!important}
 }
}
@layer ar-mobile152{
 @media(min-width:600px) and (max-width:1024px) and (max-height:500px) and (pointer:coarse){
  html body #ar-site-header .ar-site-header-inner{min-height:68px!important;padding:6px 0!important}
  html body #ar-site-header .ar-site-brand{height:56px!important}
  html body #ar-site-header .ar-site-brand-icon{width:44px!important;height:44px!important;min-width:44px!important;flex-basis:44px!important}
  html body #sidebar#sidebar{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;padding:8px 12px!important}
  html body #sidebar#sidebar #ar-library-olive-trim.ar-ornament-frame{grid-column:1!important;grid-row:1!important;width:260px!important;max-width:100%!important;height:44px!important;margin:0 auto!important}
  html body #sidebar#sidebar .sidebar-heading{grid-column:1/-1!important;grid-row:2!important;display:flex!important;align-items:center!important;gap:8px!important}
  html body #sidebar#sidebar .sidebar-heading>h1{width:auto!important;flex:1!important;min-width:110px!important;font-size:18px!important;text-align:left!important}
  html body #sidebar#sidebar .visit-navigation{display:contents!important}
  html body #sidebar#sidebar :is(#visit-back,#visit-forward,#explorer-dashboard,#close-all67){flex:1!important;width:auto!important;min-width:0!important;font-size:12px!important}
  html body #sidebar#sidebar #ar-study-menu-r24{grid-column:2!important;grid-row:1!important;margin:0!important;padding:0!important;border-top:0!important}
  html body #sidebar#sidebar:has(#ar-study-menu-r24[open]) #ar-study-menu-r24{grid-column:1/-1!important;grid-row:3!important}
  html body #workspace#workspace{padding-top:10px!important}
 }
}

/* Keep the desktop composition where it fits, without shrinking text or touch targets. */
@layer ar-mobile152 {
 @media (min-width:600px) and (max-width:1024px) {
  html body #library-main :is(.hub-feature-grid,.hub-games-grid,.hub-app-grid,.hub-challenge-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body #library-main .hub-mode-control{width:auto!important}
  html body #ar-site-header .ar-site-nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body #ar-site-header .ar-site-nav>.ar-site-nav-item:last-child{grid-column:auto!important}
 }
 @media (max-width:900px),(max-width:1024px) and (pointer:coarse){
  html body #ar-site-header[data-mobile-nav152] .ar-site-nav{display:flex!important;overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;max-width:100%!important;padding:3px 0!important;scrollbar-width:thin;overscroll-behavior-x:contain}
  html body #ar-site-header .ar-site-nav>.ar-site-nav-item{flex:0 0 auto!important;width:auto!important;min-width:80px!important;white-space:nowrap!important}
  html body #ar-site-header #ar-mobile-menu152{display:none!important}
  html body #ar-site-header .ar-site-header-inner{grid-template-columns:minmax(0,1fr)!important}
 }
}
.ar-game-rotate167{position:absolute;z-index:50;left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));bottom:max(14px,env(safe-area-inset-bottom));display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;padding:12px;border:1px solid #887960;border-radius:10px;background:#181715f2;color:#f5eedf;font:14px/1.45 system-ui,sans-serif;box-shadow:0 4px 18px #0008;text-align:center}
.ar-game-rotate167[hidden]{display:none!important}
.ar-game-rotate167>span{flex:1 0 100%}
.ar-game-rotate167>button{min-height:44px;padding:8px 12px;color:inherit;border:1px solid #9b8a6f;border-radius:6px;background:#302b24;font:inherit;cursor:pointer}
/* Native orientation may be rejected. Preserve available viewport instead of 4:3 boxing. */
/* A visible touch toolbar must reserve space, not cover the game menu/HUD. */
.ar-library-player[data-game-landscape=true]:not([data-sheep-gameplay=true]) .ar-library-player-top{position:relative!important;flex:0 0 auto!important;transform:none!important;transition:none!important}
.ar-library-player[data-game-landscape=true]:not([data-sheep-gameplay=true]) .ar-library-frame-wrap{height:auto!important;flex:1 1 auto!important;min-height:0!important}
.ar-library-player[data-game-landscape=true]:not([data-sheep-gameplay=true]) .ar-library-edge-top{display:none!important}


.ar-nav-overflow184{display:block;grid-column:1/-1;text-align:right;font-size:12px;line-height:1.4;font-family:inherit;color:inherit;opacity:.75;padding:0 4px 4px}
.ar-nav-overflow184[hidden]{display:none!important}
@media(min-width:600px) and (max-height:500px) and (orientation:landscape){
 #hub-chooser{max-height:calc(100dvh - 16px)!important;overflow:auto!important;padding:12px!important}
 #hub-chooser h2{font-size:26px!important;margin:6px 0!important;line-height:1.2!important}
 #hub-chooser>p{margin:6px 0!important;font-size:13px!important;line-height:1.4!important}
 #hub-chooser .hub-choices{gap:12px!important;margin:8px 0!important}
 #hub-chooser .hub-choice-r26{min-height:200px!important}
 #hub-chooser .hub-choice-title-r26{inset:15% 10px auto!important;font-size:30px!important}
 #hub-chooser .hub-choice-r26 .hub-choice-copy{min-height:112px!important;padding:12px!important;gap:8px!important}
 #hub-chooser .hub-choice-r26 .hub-choice-copy p{font-size:13px!important;min-height:36px!important}
 #hub-chooser .hub-choice-enter-r26{min-height:44px!important;padding:8px 12px!important}
}

