/* R88.5–R88.9 original Owner product Web parity with native, no new UX/API. */
:root{--r88-shadow:0 13px 32px #344ba512;--r88-border:var(--domi-border,#e3e9f8)}
#exploreScreen,#worldsScreen,#cityScreen,#detailScreen,#profileScreen,#createScreen,
#communityScreen,#roomsScreen,#familyScreen,#marketScreen{min-width:0}
#exploreScreen .section-head,#worldsScreen .section-head,
#marketScreen .section-head,#createScreen .section-head,
#profileScreen .section-head,#familyScreen .section-head{
 border:1px solid var(--r88-border);border-radius:22px;padding:17px;
 background:linear-gradient(113deg,#f2edff,#ebf4ff 63%,#ffedf5)}
#exploreScreen input[type=search],#exploreScreen input:not([type]),#marketScreen input,
#createScreen input,#profileScreen input,#familyScreen input,
#marketScreen textarea,#createScreen textarea,#familyScreen select{
 border:1px solid var(--r88-border);border-radius:15px;min-height:45px;background:#fcfdff}
#exploreScreen input:focus-visible,#marketScreen input:focus-visible,
#createScreen input:focus-visible,#familyScreen input:focus-visible{
 outline:3px solid #80cdf7;outline-offset:2px}
.reels-view .feed-media{background:linear-gradient(140deg,#352969,#5a4395 62%,#e477a6)}
.reels-view .feed-card,.videos-view .feed-card{border:1px solid var(--r88-border);border-radius:24px;box-shadow:var(--r88-shadow)}
.reels-view .feed-actions button,.videos-view .feed-actions button{
 border-radius:15px;min-height:43px}
.world-frame,.city-scene{overflow:hidden;border-radius:25px;border:1px solid var(--r88-border);
 box-shadow:var(--r88-shadow)}
#worldsScreen .district-detail,#cityScreen .district-detail{
 border:1px solid var(--r88-border);border-radius:20px;background:#fff;padding:17px}
.city-place{border-color:var(--r88-border);box-shadow:var(--r88-shadow)}
#marketScreen button,#createScreen button,#profileScreen button,#familyScreen button{
 border-radius:14px;min-height:43px}
#marketScreen .panel,#createScreen .panel,#profileScreen .panel,
#familyScreen .panel,#communityScreen .panel{
 border:1px solid var(--r88-border);border-radius:20px;box-shadow:var(--r88-shadow)}
#marketScreen .card,#profileScreen .card,#createScreen .card{
 border-radius:20px;border-color:var(--r88-border)}
.bottom-nav{box-shadow:0 -7px 25px #333f9011}
.bottom-nav button:focus-visible,.sidebar button:focus-visible{outline:3px solid #4ab5e8;outline-offset:2px}
@media(max-width:620px){
 #exploreScreen .section-head,#worldsScreen .section-head,
 #marketScreen .section-head,#createScreen .section-head,#profileScreen .section-head,
 #familyScreen .section-head{padding:14px}
 .city-places{grid-template-columns:repeat(2,minmax(0,1fr))}
 #worldsScreen,#cityScreen,#marketScreen,#createScreen,#profileScreen,#familyScreen{
  overflow-wrap:anywhere}
 .reels-view .feed-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.city-place,.reels-view .feed-card{transition:none}}

/* R91: all three clients use one real history route and a consistent back affordance. */
.r91-back{border:1px solid var(--domi-border);background:var(--domi-violet-soft);
 color:var(--domi-primary-dark);padding:10px 13px;border-radius:14px;
 min-height:44px;font-size:12px;font-weight:850;flex:none}
.r91-back[hidden]{display:none!important}
.r91-back:focus-visible{outline:3px solid var(--domi-sky);outline-offset:2px}
@media(max-width:950px){.app-top{flex-wrap:wrap}.r91-back{order:-1}}
@media(max-width:640px){.r91-back{padding:9px 11px}}
/* Original web and iPhone Home Screen web app share correct system insets. */
@supports(padding:env(safe-area-inset-bottom)){
 body{padding-top:env(safe-area-inset-top,0px)}
 main{padding-bottom:max(24px,env(safe-area-inset-bottom,0px))}
}

/* R105: bridge old installed signed WebView to the new readable guest app. */
.r105-open-app{display:inline-flex;justify-content:center;align-items:center;min-height:48px;margin:12px 0 5px;padding:11px 19px;background:linear-gradient(115deg,#6d55dd,#4298c8);border-radius:16px;color:#fff!important;font-size:14px;font-weight:900;box-shadow:0 10px 22px #503ca72e;text-decoration:none!important}
.r105-open-app:focus-visible{outline:3px solid #f6cf64;outline-offset:3px}
